query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
/ access modifiers changed from: packageprivate
public long wallMicros() { return this.wallNanos / 1000; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\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 }", "public void mo115190b() {\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}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\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}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
/ access modifiers changed from: packageprivate
public long cpuMicros() { return this.cpuNanos / 1000; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\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 }", "public void mo115190b() {\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}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\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}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
Sets the view to our CardboardView and initializes the transformation
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); CardboardView cardboardView = (CardboardView) findViewById(R.id.cardboard_view1); cardboardView.setRenderer(this); setCardboardView(cardboardView); mVibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); mOverlayView = (CardboardOverlayView) findViewById(R.id.overlay); mOverlayView.show3DSplashImage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addCardsToViews()\n\t{\n\t\taddCardsToCorkboardView();\n\t\t\n\t}", "public void resetTransform() {\n this.mView.setScaleX(1.0f);\n this.mView.setScaleY(1.0f);\n this.mView.setTranslationX(0.0f);\n this.mView.setTranslationY(0.0f);\n }", "private void updateTransform() {\n Matrix matrix = new Matrix();\n float centerX = dataBinding.viewFinder.getWidth() / 2f;\n float centerY = dataBinding.viewFinder.getHeight() / 2f;\n int rotation = dataBinding.viewFinder.getDisplay().getRotation();\n int rotationDegrees = 0;\n switch (rotation) {\n case Surface.ROTATION_0:\n rotationDegrees = 0;\n break;\n case Surface.ROTATION_90:\n rotationDegrees = 90;\n break;\n case Surface.ROTATION_180:\n rotationDegrees = 180;\n break;\n case Surface.ROTATION_270:\n rotationDegrees = 270;\n break;\n default:\n }\n matrix.postRotate(-rotationDegrees, centerX, centerY);\n }", "private void setupBoardViews(){ //This resets the view for use by the UI. Forces out of Design mode\n Log.d(TAG, \"setupBoardViews: Started\");\n view_stage_map = VIEW_MAP_START;\n cycleMapView();\n }", "public void setTransform(AffineTransform transform)\n/* */ {\n/* 202 */ AffineTransform old = getTransform();\n/* 203 */ this.transform = transform;\n/* 204 */ setDirty(true);\n/* 205 */ firePropertyChange(\"transform\", old, transform);\n/* */ }", "private void initView(View view) {\n imageView = (ImageView) view.findViewById(R.id.imageView);\n imageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n// new Setting_ItemFragment().show(getFragmentManager(), \"\");\n Intent intent = new Intent(getContext(), setting_Activity.class);\n startActivity(intent);\n }\n });\n card1 = (CardView) view.findViewById(R.id.card1);\n card1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n// ViewGroup.LayoutParams layoutParams = card1.getLayoutParams();\n// layoutParams\n// card3.setLayoutParams(layoutParams);\n// card3.bringToFront();\n// ObjectAnimator animator = ObjectAnimator.ofFloat(card1, \"translationX\", 0, 200);\n// ObjectAnimator animator1 = ObjectAnimator.ofFloat(card1, \"translationY\", 0, 200);\n// ObjectAnimator animator2 = ObjectAnimator.ofFloat(card1, \"scaleX\", 1f, 2f);\n// ObjectAnimator animator3 = ObjectAnimator.ofFloat(card1, \"scaleY\", 1f, 2f);\n//\n// AnimatorSet set = new AnimatorSet();\n// set.setDuration(2500);\n// set.play(animator2).with(animator3).with(animator).with(animator1);\n// set.start();\n }\n });\n\n tv_healthy_point = (TextView) view.findViewById(R.id.tv_healthy_point);\n double num_1 = Math.random() * 100;\n tv_healthy_point.setText(String.format(\"%.0f\",num_1));\n tv_heart_mes = (TextView) view.findViewById(R.id.tv_heart_mes);\n tv_heart_mes.setText(String.format(\"%.0f\",Math.random() * 100));\n tv_xieya_mes = (TextView) view.findViewById(R.id.tv_xieya_mes);\n tv_xieya_mes.setText(String.format(\"%.0f\",Math.random() * 100));\n tv_weight_mes = (TextView) view.findViewById(R.id.tv_weight_mes);\n tv_weight_mes.setText(String.format(\"%.0f\",Math.random() * 100));\n\n tv_suggest_mes = (TextView) view.findViewById(R.id.tv_suggest_mes);\n String poi = tv_healthy_point.getText().toString();\n tv_suggest_mes.setText(\"哇赛,您的身体数据击败了全国\"+String.format(\"%.0f\",num_1)+\"%的人哦!身体是革命的本钱,继续加油,勇往直前,进击!\");\n\n btn_start = (Button) view.findViewById(R.id.btn_start);\n ll_heart = (LinearLayout) view.findViewById(R.id.ll11);\n ll_heart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent_from(\"1\");\n }\n });\n ll_xieya = (LinearLayout) view.findViewById(R.id.ll12);\n ll_xieya.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent_from(\"2\");\n }\n });\n ll_tz = (LinearLayout) view.findViewById(R.id.ll13);\n ll_tz.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent_from(\"3\");\n }\n });\n ll_more = (LinearLayout) view.findViewById(R.id.ll14);\n ll_more.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n new More_Fragment().show(getFragmentManager(), \"\");\n }\n });\n\n //MP表开始\n mChart = view.findViewById(R.id.chart1);\n mChart.setBackgroundColor(Color.rgb(230, 230, 250));\n\n// mChart.getDescription().setEnabled(false);\n\n mChart.setWebLineWidth(3f);\n Description description = new Description();\n description.setText(\"个人健康指标图\");\n description.setTextSize(15f);\n mChart.setDescription(description);\n mChart.setWebColor(Color.BLACK);\n mChart.setWebLineWidthInner(3f);\n mChart.setWebColorInner(Color.BLACK);\n mChart.setWebAlpha(300);\n setData();\n\n mChart.animateXY(2400,2400);\n XAxis xAxis = mChart.getXAxis();\n// xAxis.setTypeface(mTfLight);\n xAxis.setTextSize(9f);\n xAxis.setYOffset(0f);\n xAxis.setXOffset(0f);\n xAxis.setValueFormatter(new IAxisValueFormatter() {\n\n private String[] mActivities = new String[]{\"体重\", \"血压\", \"心率\", \"体脂\", \"水分\"};\n\n @Override\n public String getFormattedValue(float value, AxisBase axis) {\n return mActivities[(int) value % mActivities.length];\n }\n });\n xAxis.setTextColor(Color.BLACK);\n\n YAxis yAxis = mChart.getYAxis();\n// yAxis.setTypeface(mTfLight);\n yAxis.setLabelCount(5, false);\n yAxis.setTextSize(9f);\n yAxis.setAxisMinimum(0f);\n yAxis.setAxisMaximum(80f);\n yAxis.setDrawLabels(false);\n\n// Legend l = mChart.getLegend();\n// l.setVerticalAlignment(Legend.LegendVerticalAlignment.TOP);\n// l.setHorizontalAlignment(Legend.LegendHorizontalAlignment.CENTER);\n// l.setOrientation(Legend.LegendOrientation.HORIZONTAL);\n// l.setDrawInside(false);\n//// l.setTypeface(mTfLight);\n// l.setXEntrySpace(17f);\n// l.setYEntrySpace(15f);\n// l.setTextColor(Color.WHITE);\n }", "private void syncCardsWithViews()\n\t{\n\t\t\n\t\t// Remove all cards from all views\n\t\tremoveCardsFromViews();\n\t\t\n\t\t// Add all cards to all views\n\t\taddCardsToViews();\n\t\t\n\t\t// Repaint everything\n\t\trepaintViews();\n\t\t\n\t}", "private void initializeViews() {\n // header\n TextView tvHeader = findViewById(R.id.tv_title);\n tvHeader.setText(R.string.translate_spring_animation);\n ivBack = findViewById(R.id.iv_back);\n ivBack.setVisibility(View.VISIBLE);\n\n LinearLayout llWrapper = findViewById(R.id.ll_wrapper);\n llWrapper.setBackground(ContextCompat.getDrawable(this, R.drawable.bg_boxring_02));\n ivPunchingBag = findViewById(R.id.iv_generic_object);\n ivPunchingBag.setOnTouchListener(onTouchListener);\n ivPunchingBag.setImageResource(R.drawable.punching_bag);\n\n // final position provided is 0, because we want to ensure translationX/translationY of view\n // from wherever the view moved due to touch gesture to come back to its initial\n // translationX/translationY position which is 0.\n mSpringTranslationXAnimation = new SpringAnimation(ivPunchingBag,\n new FloatPropertyCompat<View>(TRANSLATION_X) {\n\n @Override\n public float getValue(View view) {\n return view.getTranslationX();\n }\n\n @Override\n public void setValue(View view, float value) {\n view.setTranslationX(value);\n }\n });\n\n mSpringTranslationYAnimation = new SpringAnimation(ivPunchingBag,\n new FloatPropertyCompat<View>(TRANSLATION_Y) {\n\n @Override\n public float getValue(View view) {\n return view.getTranslationY();\n }\n\n @Override\n public void setValue(View view, float value) {\n view.setTranslationY(value);\n }\n });\n\n // create SpringForce objects and apply animation settings\n SpringForce springForceX = new SpringForce(0f);\n springForceX.setStiffness(SpringForce.STIFFNESS_MEDIUM);\n springForceX.setDampingRatio(SpringForce.DAMPING_RATIO_MEDIUM_BOUNCY);\n mSpringTranslationXAnimation.setSpring(springForceX);\n\n SpringForce springForceY = new SpringForce(0f);\n springForceY.setStiffness(SpringForce.STIFFNESS_MEDIUM);\n springForceY.setDampingRatio(SpringForce.DAMPING_RATIO_MEDIUM_BOUNCY);\n mSpringTranslationYAnimation.setSpring(springForceY);\n }", "public void setTransform(Transform transform);", "private void applyTransform() {\n GlStateManager.rotate(180, 1.0F, 0.0F, 0.0F);\n GlStateManager.translate(offsetX, offsetY - 26, offsetZ);\n }", "public void set(Transform transform) {\n \tif(transform == null){ // TODO: Quick workaround for wap3 cars problem\n \t\tsetIdentity();\n \t}\n \telse {\n \t\tSystem.arraycopy(transform.matrix, 0, this.matrix, 0, 16);\n \t}\n }", "public Transform(Transform transform){\n System.arraycopy(transform.matrix, 0, matrix, 0, 16); \n }", "public View(Model m) {\n super(\"Group G: Danmarkskort\");\n model = m;\n iconPanel.addObserverToIcons(this);\n routePanel = new RouteView(this, model);\n optionsPanel = new OptionsPanel(this,model);\n /*Three helper functions to set up the AffineTransform object and\n make the buttons and layout for the frame*/\n setScale();\n makeGUI();\n adjustZoomFactor();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\n //This sets up a listener for when the frame is re-sized.\n createComponentListener();\n\n pack();\n canvas.requestFocusInWindow();\n model.addObserver(this);\n }", "public ViewCard(@NotNull Card modelCard, @NotNull GameView view, @NotNull Group group)\n {\n super(CARD_WIDTH, CARD_HEIGHT, CARD_DEPTH, \"file:./res/\" + getFileName(modelCard),\n CARD_FACE_TEXTURE_WIDTH, CARD_FACE_TEXTURE_HEIGHT);\n this.modelCard = modelCard;\n this.gameView = view;\n this.shown = true;\n group.getChildren().add(this);\n view.getViewCardToGroup().put(this, group);\n setPosition(view.getCardDefaultPosition(this));\n setRotationAxis(Rotate.Z_AXIS);\n setRotate(view.getCardDefaultRotation(this).z);\n\n //=== EVENTS\n\n this.setOnMouseEntered(event -> {\n if ( (gameView.getGameModel().getAwaitsUserEvent() == NotificationType.PICK_CARD )\n ||\n (gameView.getGameModel().getAwaitsUserEvent() == NotificationType.CHOOSE_ECART_CARD\n && gameView.getSouth().getChildren().contains(this) )\n ) {\n gameView.setCursor(Cursor.HAND);\n }\n });\n\n this.setOnMouseClicked(event -> {\n CardGroup cardGroup = null;\n if (gameView.getGameModel().getAwaitsUserEvent() == NotificationType.PICK_CARD)\n cardGroup = gameView.getCardGroupFromGroup(gameView.getWholeCardsDeck());\n else if (gameView.getGameModel().getAwaitsUserEvent() == NotificationType.CHOOSE_ECART_CARD)\n cardGroup = gameView.getCardGroupFromGroup(gameView.getSouth());\n\n if (cardGroup != null && cardGroup.contains(modelCard))\n {\n gameView.getAppPresenter().transmitUserChoice(cardGroup.indexOf(modelCard));\n gameView.getGameModel().setAwaitsUserEventToNull();\n gameView.getToolTip().setText(\"Please wait...\");\n }\n });\n\n this.setOnMouseExited(event -> gameView.setCursor(Cursor.DEFAULT));\n }", "public void setView(CMView _view) {\n mView = _view;\n }", "public BoardSurfaceView(Context context, AttributeSet attrs) {\n //Call super to initialize the parameters\n super(context, attrs);\n\n //Create the random number array and then create the array of cards\n numsArray = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};\n cardArray = createArray();\n\n //Initialize the xy index values for the card the user drags\n xCard = -1;\n yCard = -1;\n\n //Initialize the xy coordinates of where the user begins the drag\n xLoc = -1;\n yLoc = -1;\n\n //Initialize the coordinates that create a rectangle. These will be populated by\n //the set of xy coordinates contained by the card the user drags\n origX = -1;\n origY = -1;\n origBottomX = -1;\n origBottomY = -1;\n\n //Initialize the coordinates that create a rectangle. These will be populated by\n //the set of xy coordinates contained by the blank card\n blankCardTopX = -1;\n blankCardTopY = -1;\n blankCardBottomX = -1;\n blankCardBottomY = -1;\n\n //Set userClick to true so that the clock initially does not start timing\n userClick = true;\n\n //Set didDrag to false so that if a user clicks a square instead of drags\n //nothing will happen\n didDrag = false;\n\n //Set setWillNotDraw to false so we can draw on the surface view\n setWillNotDraw(false);\n }", "public void updateTransform() {\n \t\tif (viewBox != null) {\n \t\t\tOMSVGRect bbox = ((SVGRectElement)viewBox.getElement()).getBBox();\n //\t\t\tGWT.log(\"bbox = \" + bbox.getDescription());\n \t\t\tfloat d = (float)Math.sqrt((bbox.getWidth() * bbox.getWidth() + bbox.getHeight() * bbox.getHeight()) * 0.25) * scale * 2;\n //\t\t\tGWT.log(\"d = \" + d);\n \t\t\n \t\t\t// Compute the actual canvas size. It is the max of the window rect\n \t\t\t// and the transformed bbox.\n \t\t\tfloat width = Math.max(d, windowRect.getWidth());\n \t\t\tfloat height = Math.max(d, windowRect.getHeight());\n //\t\t\tGWT.log(\"width = \" + width);\n //\t\t\tGWT.log(\"height = \" + height);\n \n \t\t\t// Compute the display transform to center the image in the\n \t\t\t// canvas\n \t\t\tOMSVGMatrix m = svg.createSVGMatrix();\n \t\t\tfloat cx = bbox.getCenterX();\n \t\t\tfloat cy = bbox.getCenterY();\n \t\t\tm = m.translate(0.5f * (width - bbox.getWidth()) -bbox.getX(), 0.5f * (height - bbox.getHeight()) -bbox.getY())\n \t\t\t.translate(cx, cy)\n \t\t\t.rotate(angle)\n \t\t\t.scale(scale)\n \t\t\t.translate(-cx, -cy);\n \t\t\t((ISVGTransformable)xformGroup).getTransform().getBaseVal().getItem(0).setMatrix(m);\n \t\t\t((ISVGTransformable)modelGroup.getTwinWrapper()).getTransform().getBaseVal().getItem(0).setMatrix(m);\n //\t\t\tGWT.log(\"m=\" + m.getDescription());\n \t\t\tsvg.getStyle().setWidth(width, Unit.PX);\n \t\t\tsvg.getStyle().setHeight(height, Unit.PX);\n \t\t}\n \t}", "private void initDrawView() {\n\n Draw4Shader view = new Draw4Shader(this);\n\n // Draw5Animator view = new Draw5Animator(this);\n\n // Draw5AnimatorFrame view = new Draw5AnimatorFrame(this);\n\n setContentView(view);\n }", "public void setView(View view) {\n this.view = view;\n this.model = view.getModel();\n initControl();\n }", "private void animatePlacardViewToCenter() {\n CALayer welcomeLayer = placardView.getLayer();\n\n // Create a keyframe animation to follow a path back to the center.\n CAKeyframeAnimation bounceAnimation = new CAKeyframeAnimation(\"position\");\n bounceAnimation.setRemovedOnCompletion(false);\n\n double animationDuration = 1.5;\n\n // Create the path for the bounces.\n UIBezierPath bouncePath = new UIBezierPath();\n\n CGPoint centerPoint = getCenter();\n double midX = centerPoint.getX();\n double midY = centerPoint.getY();\n double originalOffsetX = placardView.getCenter().getX() - midX;\n double originalOffsetY = placardView.getCenter().getY() - midY;\n double offsetDivider = 4;\n\n boolean stopBouncing = false;\n\n // Start the path at the placard's current location.\n bouncePath.move(new CGPoint(placardView.getCenter().getX(), placardView.getCenter().getY()));\n bouncePath.addLine(new CGPoint(midX, midY));\n\n // Add to the bounce path in decreasing excursions from the center.\n while (!stopBouncing) {\n CGPoint excursion = new CGPoint(midX + originalOffsetX / offsetDivider, midY + originalOffsetY\n / offsetDivider);\n bouncePath.addLine(excursion);\n bouncePath.addLine(centerPoint);\n\n offsetDivider += 4;\n animationDuration += 1 / offsetDivider;\n if (Math.abs(originalOffsetX / offsetDivider) < 6 && Math.abs(originalOffsetY / offsetDivider) < 6) {\n stopBouncing = true;\n }\n }\n\n bounceAnimation.setPath(bouncePath.getCGPath());\n bounceAnimation.setDuration(animationDuration);\n\n // Create a basic animation to restore the size of the placard.\n CABasicAnimation transformAnimation = new CABasicAnimation(\"transform\");\n transformAnimation.setRemovedOnCompletion(true);\n transformAnimation.setDuration(animationDuration);\n transformAnimation.setToValue(NSValue.valueOf(CATransform3D.Identity()));\n\n // Create an animation group to combine the keyframe and basic\n // animations.\n CAAnimationGroup group = new CAAnimationGroup();\n\n group.setDelegate(new CAAnimationDelegateAdapter() {\n /**\n * Animation delegate method called when the animation's finished:\n * restore the transform and reenable user interaction.\n */\n @Override\n public void didStop(CAAnimation anim, boolean flag) {\n placardView.setTransform(CGAffineTransform.Identity());\n setUserInteractionEnabled(true);\n }\n });\n group.setDuration(animationDuration);\n group.setTimingFunction(new CAMediaTimingFunction(CAMediaTimingFunctionName.EaseIn));\n\n group.setAnimations(new NSArray<CAAnimation>(bounceAnimation, transformAnimation));\n\n // Add the animation group to the layer.\n welcomeLayer.addAnimation(group, \"animatePlacardViewToCenter\");\n\n // Set the placard view's center and transformation to the original\n // values in preparation for the end of the animation.\n placardView.setCenter(centerPoint);\n placardView.setTransform(CGAffineTransform.Identity());\n }", "public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}", "@Override\n\tprotected void setupAnimation(View view) {\n\t\tgetAnimatorSet().playTogether(\n\t\t\t\tObjectAnimator.ofFloat(view, \"scaleX\", 0.0f, 0.8f, 1.0f).setDuration(mDuration),\n\t\t\t\tObjectAnimator.ofFloat(view, \"scaleY\", 0.0f, 0.4f, 1.0f).setDuration(mDuration),\n\t\t\t\tObjectAnimator.ofFloat(view, \"alpha\", 0.0f, 1.0f).setDuration(mDuration),\n\t\t\t\tObjectAnimator.ofFloat(view, \"ratation\", 180.0f, 90.0f, 0.0f).setDuration(mDuration*3/2)\n\t\t\t\t);\n\t}", "private void rotateView(Canvas paramCanvas) {\n float degree = mDistance / 3f;\n paramCanvas.rotate(-degree, this.getWidth() / 2, this.getHeight() / 2);\n paramCanvas.drawBitmap(mBmp, this.getWidth() / 2 - mBmp.getWidth() / 2, this.getHeight()\n / 2 - mBmp.getHeight() / 2, mTxtPaint);\n }", "private void initView() {\n\n }", "public cambioView() {\n initComponents();\n }", "private void onViewInit() {\n setFocusable(true);\n setFocusableInTouchMode(true);\n setBackgroundColor(Color.WHITE);\n setOnTouchListener(this);\n onCanvasInit();\n }", "public ViewCard(@NotNull Card modelCard)\n {\n super(CARD_WIDTH, CARD_HEIGHT, CARD_DEPTH, \"file:./res/\" + getFileName(modelCard),\n CARD_FACE_TEXTURE_WIDTH, CARD_FACE_TEXTURE_HEIGHT);\n this.modelCard = modelCard;\n }", "@Override\n\tpublic void init() \n\t{\n\t\tthis.m_view.setCenter(new Vector2f(1024f,1024f));\n\t\t// initilisation de m_centerSought\n\t\tthis.m_centerSought = this.m_view.getCenter();\n\t\t// zoom\n\t\tthis.m_zoom = this.m_zoomSought = 1f;\t\t\n\t\t// size\n\t\tthis.m_sizeNormal = m_size = m_sizeSought = m_sizeBackup = m_sizeInit = this.getView().getSize();\n\t\tthis.m_sizeDown = Vector2f.mul(this.m_sizeNormal, 0.8f);\n\t\tthis.m_sizeUp = Vector2f.mul(m_sizeNormal, 1.2f);\n\t\t\n\t\t// cadre\n\t\tm_cadre = new IntRect(m_spaceScrolling,m_spaceScrolling,(int)this.getView().getSize().x - m_spaceScrolling * 2,(int) this.getView().getSize().y - m_spaceScrolling * 2);\n\t\t\n\t}", "@Override\n\tpublic void setCenterView() {\n\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "public Connect4View() {\n\t\tgame = new TilePane();\n\t\tcontroller = new SingleController(game);\n\t\tcontroller.getModel().addObserver(this);\n\t\tgameFinished = false;\n\t}", "void initView();", "private void initView() {\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerKapfenberg.refresh(true);\r\n\t\tviewerLeoben.refresh(true);\r\n\t\tviewerMariazell.refresh(true);\r\n\t\tviewerWien.refresh(true);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_four_in_row, container, false);\n board = new Board(numberOfRows, numberOfColumns);\n viewHolder = new ViewHolder();\n initUi(view);\n buildCells();\n boardView.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n switch (motionEvent.getAction()) {\n case MotionEvent.ACTION_POINTER_UP:\n case MotionEvent.ACTION_UP: {\n int col = colAtX(motionEvent.getX());\n if (col != -1)\n drop(col);\n }\n }\n return true;\n }\n });\n\n viewHolder.redPlayerWinTextView.setText(\"0\");\n viewHolder.yellowPlayerWinTextView.setText(\"0\");\n viewHolder.turnIndicatorImageView.setImageResource(resourceForTurn());\n\n viewHolder.resetButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (snackbar != null){\n snackbar.dismiss();\n }\n reset();\n }\n });\n return view;\n }", "@Override\n public void setMatrix(final com.bramosystems.oss.player.core.client.geom.TransformationMatrix matrix) {\n if (isPlayerOnPage(playerId)) {\n String mx = mxNf.format(matrix.getMatrix().getVx().getX()) + \", \"\n + mxNf.format(matrix.getMatrix().getVy().getX()) + \", \"\n + mxNf.format(matrix.getMatrix().getVz().getX()) + \" \"\n + mxNf.format(matrix.getMatrix().getVx().getY()) + \", \"\n + mxNf.format(matrix.getMatrix().getVy().getY()) + \", \"\n + mxNf.format(matrix.getMatrix().getVz().getY()) + \" \"\n + mxNf.format(matrix.getMatrix().getVx().getZ()) + \", \"\n + mxNf.format(matrix.getMatrix().getVy().getZ()) + \", \"\n + mxNf.format(matrix.getMatrix().getVz().getZ());\n impl.setMatrix(mx);\n if (resizeToVideoSize) {\n checkVideoSize(getVideoHeight() + 16, getVideoWidth());\n }\n } else {\n addToPlayerReadyCommandQueue(\"matrix\", new Command() {\n\n @Override\n public void execute() {\n setMatrix(matrix);\n }\n });\n }\n }", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "public void initView() {\n\t\t view.initView(model);\t \n\t }", "private void initializeView(int rowNumber, int colNumber, int width, int height){\n\n this.jobNumber = colNumber;\n this.machineNumber = rowNumber;\n\n this.graphWidth = (int) (width * 0.98);\n this.graphHeight = (int) (height * 0.98);\n this.boxHeight = graphHeight/machineNumber;\n this.graphPane = new Pane();\n this.graphPane.setLayoutX(width*0.02);\n this.graphPane.setLayoutY(height*0.02);\n\n this.setTitle(\"Chain Box Graph\");\n this.setHeight(height + 40);\n this.setWidth(width + 80);\n\n if (isIntegerMatrix) {\n drawGraph(intMatrix);\n }\n else {\n drawGraph(floatMatrix);\n }\n\n this.root = new Group(); //TODO : Ajouter tous les enfants dans le groupe.\n this.root.getChildren().addAll(graphPane);\n this.scene = new Scene(root, width, height);\n this.setScene(scene);\n this.setResizable(true);\n }", "public ManipularView() {\n initComponents();\n }", "@Override\n public void touchesCancelled(NSSet<UITouch> touches, UIEvent event) {\n placardView.setCenter(getCenter());\n placardView.setTransform(CGAffineTransform.Identity());\n }", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "protected final void viewChanged()\n {\n synchronized (this)\n {\n resetProjectionMatrixClipped();\n resetModelViewMatrix();\n resetClipPlanes();\n notifyViewChanged(ViewChangeSupport.ViewChangeType.VIEW_CHANGE);\n if (getPreferences() != null)\n {\n getPreferences().putJAXBObject(POSITION_PREF_KEY, getPosition().clone(), true, this);\n }\n }\n }", "private void setUpView(int width, int height){\n addKeyListener(new KeyPadListener());\n setFocusable(true);\n setLayout(null);\n setBounds(0,0,width,height);\n setBackground(new Color(0,0,0,0));\n requestFocus();\n addMouseListener(new MouseCatcher());\n }", "public void setView(IHUDView view) {\n\n this.view = view;\n stateChange(uiStateManager.getState());\n playerAttributeChange();\n }", "private void setupTransformationMatrix(ShapeRenderer renderer){\n\t\trenderer.identity();\n\t\trenderer.translate(cx, cy, 0);\n\t\trenderer.rotate(0, 0, 1, angle); \n\t\trenderer.translate(-cx, -cy, 0);\n\t}", "public YahtzeeView(){\n setLayout(null);\n cardLayout_Action = new CardLayout();\n gameCon_Layout = new FixSizeCardLayout();\n //panel used to house the cardLayout manager.\n mainBackGroundPanel = new MainSlot_JPanel();\n mainBackGroundPanel.setLayout(null);\n \n mainActionPanel = new JPanel(cardLayout_Action); \n mainActionPanel.setBounds(100, 48, 600, 434);\n gameControlPanel = new JPanel(gameCon_Layout);\n gameControlPanel.setBounds(120, 510, 540, 50);\n \n mainBackGroundPanel.add(mainActionPanel);\n mainBackGroundPanel.add(gameControlPanel);\n\n gameControlPanel.add(emptyGameControllerView(),\n \"Player-1GameController\");\n gameControlPanel.setOpaque(false);\n \n mainBackGroundPanel.setBounds(0,0,800,600);\n \n add(mainBackGroundPanel);\n setVisible(true);\n \n currentPage_ActionPanel = \"\";\n currentPage_ControlPanel = \"\";\n }", "@Override\n\tpublic void initView() {\n\t\t\n\t}", "public void setView(View view);", "@Override\n\tpublic void setView(View view) {\n\n\t}", "private void setView( boolean reset_zoom )\n {\n float azimuth = getAzimuthAngle();\n float altitude = getAltitudeAngle();\n float distance = getDistance();\n\n float r = (float)(distance * Math.cos( altitude * Math.PI/180.0 ));\n\n float x = (float)(r * Math.cos( azimuth * Math.PI/180.0 ));\n float y = (float)(r * Math.sin( azimuth * Math.PI/180.0 ));\n float z = (float)(distance * Math.sin( altitude * Math.PI/180.0 ));\n\n float vrp[] = getVRP().get();\n \n setCOP( new Vector3D( x + vrp[0], y + vrp[1], z + vrp[2] ) );\n\n apply( reset_zoom );\n }", "public void setTransform(CGAffineTransform transform) {\n \t\tthis.transform = transform;\n \t}", "public void draw()\n {\n imageView.setRotate(teta);\n imageView.relocate(super.getX(),super.getY());\n }", "@Override\n public void initView() {\n }", "private void initView(){\n\t\tinitSize();\n\t\tinitText();\n\t\tinitBackground();\n\t\tthis.setOnClickListener(this);\n\t\tthis.setOnLongClickListener(this);\n\t}", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "private void setUpScreen() {\n if (getView() != null) {\n setAmount(account.getArmedAmount());\n curIndex = 0;\n cvp.setPagingEnabled(false);\n if (account.getActiveCurrency() == CurrencyDAO.CURRENCY_BITCOIN) {\n // Bitcoin configurations are handled specially\n updateBitcoinDenominations();\n } else {\n new SetupArmImagesTask().execute(this);\n }\n }\n }", "private void setUpCreditCardViews() {\n\n mSingleLineCardEntry = (SingleLineCardEntryView) mView.findViewById(R.id.credit_card_number);\n\n\n mAddCreditCard = (Button) mView.findViewById(R.id.add_card);\n mAddCreditCard.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n AnalyticsHelper.getInstance(getActivity()).logEvent(\"Added Credit Card\");\n\n if (mSingleLineCardEntry.isValid()){\n progressDialog = new TapFitProgressDialog(getActivity());\n progressDialog.setMessage(\"Adding Credit Card...\");\n progressDialog.show();\n UserRequest.addPaymentMethod(getActivity(), BraintreePayments.encryptPayment(mSingleLineCardEntry.getCardDetails()), addCardCallback);\n }\n }\n });\n\n //mSingleLineCardEntry.getCardDetails().\n /*mExpirationDate = (EditText) mView.findViewById(R.id.expiration_date);\n mExpirationDate.addTextChangedListener(expirationListener);\n\n mExpirationDate.setNextFocusDownId(R.id.cvv);\n\n mPostalCode = (EditText) mView.findViewById(R.id.postal_code);\n mSecurityCode = (EditText) mView.findViewById(R.id.cvv);\n\n mSecurityCode.setNextFocusDownId(R.id.postal_code);*/\n }", "public void initialize(){\t\t\n\n\t\tsetBounds(100, 100, 900, 620);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBackground(SystemColor.control);\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tcontentPane.setLayout(null);\n\t\tsetLayout(null);\n\n\t\t//build the image of the board for toggling the active squares\n\t\t//buildBoardImage();\n\n\t\tboardView = new BoardView(new Color(20,200,160), model, 1, app);\n\t\tboardView.builderInitialize(app);\n\t\tboardView.setSize(408, 440);\n\t\tboardView.setLocation(39, 158);\n\t\tadd(boardView);\n\n\t\tcomboBox = new JComboBox<String>();\n\t\tcomboBox.setModel(new DefaultComboBoxModel<String>(new String[] {\"Puzzle\", \"Lightning\", \"Theme\"}));\n\t\tcomboBox.setToolTipText(\"\");\n\t\tcomboBox.setMaximumRowCount(3);\n\t\tcomboBox.setBounds(593, 158, 97, 26);\n\t\tcomboBox.addItemListener(this);\n\t\tthis.add(comboBox, \"ComboBox\");\n\n\t\tJLabel lblTitle = new JLabel(\"LetterCraze: Builder\");\n\t\tlblTitle.setFont(new Font(\"Impact\", Font.BOLD | Font.ITALIC, 40));\n\t\tlblTitle.setBounds(39, 11, 522, 109);\n\t\tadd(lblTitle);\n\n\t\tpnlLevelSwitch = new JPanel();\n\t\tpnlLevelSwitch.setName(\"pnlLevelSwitch\");\n\t\tpnlLevelSwitch.setBounds(479, 192, 379, 362);\n\t\tpnlLevelSwitch.setLayout(new CardLayout());\n\t\tadd(pnlLevelSwitch);\n\n\t\tJPanel pnlPuzzle = new BuilderPuzzlePanelView(labelFont);\n\t\tpnlLevelSwitch.add(pnlPuzzle, \"Puzzle\");\n\t\tpnlPuzzle.setBackground(new Color(102,255,102));\n\t\tpnlPuzzle.setLayout(null);\n\n\t\tJPanel pnlLightning = new BuilderLightningPanelView();\n\t\tpnlLightning.setBackground(Color.ORANGE);\n\t\tpnlLevelSwitch.add(pnlLightning, \"Lightning\");\n\t\tpnlLightning.setLayout(null);\n\n\n\t\tJPanel pnlTheme = new BuilderThemePanelView(labelFont);\n\t\tpnlTheme.setBackground(Color.PINK);\n\t\tpnlLevelSwitch.add(pnlTheme, \"Theme\");\n\t\tpnlTheme.setLayout(null);\n\n\t\tcontentPane.setVisible(true);\n\t\tcontentPane.repaint();\n\t\tJButton btnReset = new JButton(\"Reset Level\");\n\t\tbtnReset.addMouseListener(new ResetBoardSquaresController(this, model));\n\t\tbtnReset.setBounds(39, 118, 107, 29);\n\t\tadd(btnReset);\n\n\t\tJButton btnSaveLevel = new JButton(\"Save And Exit\");\n\t\tbtnSaveLevel.setBounds(156, 118, 111, 29);\n\t\tbtnSaveLevel.addMouseListener(new SaveLevelController(this, cardLayoutPanel, model));\n\t\t//btnSaveLevel.addMouseListener(new ExitWithoutSavingController(this, cardLayoutPanel, model));\n\t\tadd(btnSaveLevel);\n\n\t\tJLabel lblLevelType = new JLabel(\"Level Type\");\n\t\tlblLevelType.setFont(labelFont);\n\t\tlblLevelType.setBounds(491, 158, 92, 26);\n\t\tadd(lblLevelType);\n\n\t\tJButton btnCloseWithoutSaving = new JButton(\"Close Without Saving\");\n\t\t//TODO replace with close builder controller\n\t\tbtnCloseWithoutSaving.addMouseListener(new ExitWithoutSavingController(this, cardLayoutPanel, model));\n\t\tbtnCloseWithoutSaving.setBounds(273, 118, 174, 29);\n\t\tadd(btnCloseWithoutSaving);\n\t\t\n\t\tJButton btnPreviewLevel = new JButton(\"Show Me The Money!\");\n\t\tbtnPreviewLevel.addMouseListener(new PreviewLevelController(this, model, cardLayoutPanel));\n\t\tbtnPreviewLevel.setBounds(491, 118, 199, 29);\n\t\tadd(btnPreviewLevel);\n\t\trepaint();\n\t}", "public void initView() {\n setEllipsize(TruncateAt.MARQUEE);\n setSingleLine(true);\n setMarqueeRepeatLimit(-1);\n setFocusable(true);\n setFocusableInTouchMode(false);\n }", "public void setTransform(Rectangle view, Rectangle2D limits) {\n this.view = view;\n\t\tRectangle2D.Double lim = (Rectangle2D.Double)limits.clone();\n xUnit = (view.width/(lim.width - lim.x));\n yUnit = (view.height/(lim.height - lim.y));\n \n if (xUnit > yUnit){\n\t\t\txUnit = yUnit;\n\t\t\tlim.width = ((view.width/xUnit) + lim.x);\n }else{\n\t\t\tyUnit = xUnit;\n\t\t\tlim.height = ((view.height/yUnit) + lim.y);\n }\n\t\t\n aux.setToIdentity();\n transform.setToIdentity();\n aux.translate(lim.x, lim.y);\n transform.concatenate(aux);\n aux.setToIdentity();\n aux.scale(1/xUnit, -1/yUnit);\n transform.concatenate(aux);\n aux.setToIdentity();\n aux.translate(0, (-1) * (view.height - 1));\n transform.concatenate(aux);\n try {\n inverse = transform.createInverse();\n \t}catch (Exception e){\n\t\t\tSystem.out.println(\"Unable to create inverse trasform\");\n\t\t}\n\t\t\n this.limits = limits;\n\t\t\n }", "public View() {\n this.view = new ViewPanel();\n //this.view.setGraph(this.graph);\n initComponents();\n this.m_algoritmos.setEnabled(false);\n this.mi_maze.setEnabled(false);\n this.mi_salvarImagem.setEnabled(false);\n }", "public void setView(View view) {\n\t\tthis.view = view;\n\t}", "public ChessboardView() {\n\t\t\n\t\tcontroller = new ChessController(this);\n\t\t\n\t\tsetLayout(new GridLayout(10, 10));\n\t\t\n\t\t// creo i bottoni (caselle della scacchiera)\n\t\tcreateButtons();\n\t\t\n\t\t// assegno componenti alla griglia (buttons e labels)\n\t\taddComponents();\n\t}", "void setView(View v);", "private void setScaleToBoardViewPanes(double scale) {\n boardController.getDrawedBoard().setScaleX(scale);\n boardController.getDrawedBoard().setScaleY(scale);\n boardController.getCanvas().setScaleX(scale);\n boardController.getCanvas().setScaleY(scale);\n boardController.getDartBoard().setScaleX(scale);\n boardController.getDartBoard().setScaleY(scale);\n boardController.getPointsAreaPane().setScaleX(scale);\n boardController.getPointsAreaPane().setScaleY(scale);\n }", "public GameView() {\n initComponents();\n gameView(30, 30);\n }", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "public void resetView() {\n pause();\n if (spriteView != null) spriteView.setViewport(new Rectangle2D(0, 0, rect.getWidth(), rect.getHeight()));\n }", "@FXML\n\tvoid initialize() {\n\t\tm = new PR1Model();\n\t\tsetFile(null);\n\t\tselection = new SimpleObjectProperty<Shape>();\n\t\tapplication = new PR1();\n\t\tsetSelection(null);\n\t\tsetClipboard(null);\n\t\tviewState = new SimpleObjectProperty<ViewState>(ViewState.CLOSE);\n\t\tclipboardState = new SimpleObjectProperty<ClipboardState>(ClipboardState.IDLE);\n\t\tdefaultS = m.add(-50, -50);\n\t\tdefaultS.setText(defaultshape);\n\t\t\n\t\t\n\t\tcanvasListener = new ChangeListener<Number>() {\n\n\t\t\t/**\n\t\t\t * Handles the canvas resizing.\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tviewState.set(ViewState.RESIZE);\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t\n\n\t\t\n\t\tgc = canvas.getGraphicsContext2D();\n\t\tcanvas.heightProperty().set(1105);\n\t\tcanvas.widthProperty().set(1105);\n\t\tcanvas.heightProperty().addListener(canvasListener);\n\t\tcanvas.widthProperty().addListener(canvasListener);\n\t\t\n\t\t\n\t\ttcs.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttccx.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttccy.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcr.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcc.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcw.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttch.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcaw.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcah.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttct.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcd.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\t\n\t\ttcs.setCellValueFactory(new PropertyValueFactory<Shape, ShapeType>(\"type\"));\n\t\ttccx.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"centerX\"));\n\t\ttccy.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"centerY\"));\n\t\ttcr.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"radius\"));\n\t\ttcc.setCellValueFactory(new PropertyValueFactory<Shape, Color>(\"color\"));\n\t\ttcw.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"width\"));\n\t\ttch.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"height\"));\n\t\ttcaw.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"arcWidth\"));\n\t\ttcah.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"arcHeight\"));\n\t\ttct.setCellValueFactory(new PropertyValueFactory<Shape, String>(\"text\"));\n\t\ttcd.setCellValueFactory(new PropertyValueFactory<Shape, Boolean>(\"delete\"));\n\t\t\n\t\tObservableList<ShapeType> shapeValues = FXCollections.observableArrayList(ShapeType.CIRCLE, ShapeType.RECTANGLE, ShapeType.OVAL, ShapeType.ROUNDRECT, ShapeType.TEXT);\n\t\t\n\t\ttcs.setCellFactory(ComboBoxTableCell.forTableColumn(new PR1Model.ShapeTypeStringConverter(), shapeValues));\n\t\ttccx.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttccy.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttcr.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\t\n\t\ttcw.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttch.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttcaw.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttcah.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\t\n\t\ttcd.setCellFactory(CheckBoxTableCell.forTableColumn(tcd));\n\t\t\n\t\ttct.setCellFactory(TextFieldTableCell.forTableColumn());\n\t\t\n\t\ttcc.setCellFactory(ColorTableCell<Shape>::new);\n\t\t\n\t\tscrpaneright.setFitToHeight(true);\n\t\tscrpaneright.setFitToWidth(true);\n\t\t\n\t\t\n\t\taddMouseListener(new EventHandler<MouseEvent>() {\n\n\t\t\t/**\n\t\t\t * Handles the mouse events.\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void handle(MouseEvent e) {\n\t\t\t\tmouseLastX = e.getX();\n\t\t\t\tmouseLastY = e.getY();\n\t\t\t\tif (viewState.get() == ViewState.CLOSED) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_PRESSED){\n\t\t\t\t\t\n\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\t\tm.setTop(getSelection());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (e.getEventType() == MouseEvent.MOUSE_DRAGGED) {\n\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\t\tgetSelection().setCenterX(e.getX());\n\t\t\t\t\t\t\tgetSelection().setCenterY(e.getY());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (e.getButton() == MouseButton.SECONDARY) {\n\t\t\t\t\t\t\tif(getSelection().getType() == ShapeType.CIRCLE) {\n\t\t\t\t\t\t\t\tgetSelection().setRadius(getSelection().getRadius() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tgetSelection().setWidth(getSelection().getWidth() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t\tgetSelection().setHeight(getSelection().getHeight() + 0.25 * (e.getY() - getSelection().getCenterY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_CLICKED) {\n\t\t\t\t\tif (e.getButton().equals(MouseButton.PRIMARY)){\n\t\t\t\t\t\tswitch (e.getClickCount()) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tif (getSelection() == null) {\n\t\t\t\t\t\t\t\tsetSelection(m.add(defaultS.getType(), e.getX(), e.getY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\t\t\tapplication.goToCD(getSelection());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tm.drawDataProperty().addListener(new ListChangeListener<PR1Model.Shape>() {\n\n\t\t\t/**\n\t\t\t * Handles the model changes.\n\t\t\t * Always repaints, regardless of the event object. Inefficient but works!\n\t\t\t * \n\t\t\t * @param e The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onChanged(ListChangeListener.Change<? extends PR1Model.Shape> e) { \n\t\t\t\t\n\t\t\t\trepaint(); \n\t\t\t\treTable();\n\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tviewState.addListener(new ChangeListener<ViewState>() {\n\n\t\t\t/**\n\t\t\t * Handles the view state changes (from File menu and window resizing).\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends ViewState> observable, ViewState oldValue, ViewState newValue) {\n\t\t\t\tif (!newValue.equals(oldValue)) {\n\t\t\t\t\tswitch (newValue) {\n\t\t\t\t\tcase CLOSED: // No file opened (when the application starts or when the current file is closed.\n\t\t\t\t\t\tsetFileMenu(false, false, true, true, false); // Configures individual file menu items (enabled/disabled).\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NEW: // A new file to be opened.\n\t\t\t\t\t\tif (file != null) {\n\t\t\t\t\t\t\tif (file.exists()) {\n\t\t\t\t\t\t\t\tfile.delete(); // Delete the file if it the file with that name already exists (overwrite).\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tcase OPEN: // An existing file opened.\n\t\t\t\t\t\tif (file != null) {\n\t\t\t\t\t\t\tCharset charset = Charset.forName(\"US-ASCII\");\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tfile.createNewFile();\n\t\t\t\t\t\t\t\tBufferedReader reader = Files.newBufferedReader(file.toPath(), charset);\n\t\t\t\t\t\t\t\tString line = null;\n\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tm.add(line); // Read the file line by line and add the circle (line) to the model.\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcatch (NumberFormatException e) { } // Ignores an incorrectly formatted line.\n\t\t\t\t\t\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { } // Ignores an incorrectly formatted line.\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tviewState.set(ViewState.OPENED);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t\t\tviewState.set(ViewState.CLOSE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase OPENED: // The file is opened.\n\t\t\t\t\t\tsetFileMenu(true, true, false, true, false); // Configures individual file menu items (enabled/disabled).\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CLOSE: // The file has to be closed.\n\t\t\t\t\t\tsetFile(null); // Clears the file.\n\t\t\t\t\t\tsetSelection(null); // Clears the selection;\n\t\t\t\t\t\tsetClipboard(null); // Clears the selection;\n\t\t\t\t\t\tm.clear(); // Clears the model.\n\t\t\t\t\t\tclear(); // Clears the view.\n\t\t\t\t\t\tviewState.set(ViewState.CLOSED);\n\t\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\t\tcase MODIFIED: // The file has been modified, needs saving.\n\t\t\t\t\t\tsetFileMenu(true, true, true, false, false);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SAVE: // Save the file.\n\t\t\t\t\t\tif (file != null) {\n\t\t\t\t\t\t\tCharset charset = Charset.forName(\"US-ASCII\");\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tBufferedWriter writer = Files.newBufferedWriter(file.toPath(), charset, StandardOpenOption.WRITE);\n\t\t\t\t\t\t\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\t\t\t\t\t\t\t//For the project, the line needs to be created in a more complicated way than before,\n\t\t\t\t\t\t\t\t\t//so the work is passed off to a function here.\n\t\t\t\t\t\t\t\t\tString line = lineMaker(c);\n\t\t\t\t\t\t\t\t\twriter.write(line);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twriter.close();\n\t\t\t\t\t\t\t\tviewState.set(ViewState.OPENED);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t\t\tapplication.goToErrorDialog();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase QUIT: // Quit the application\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (oldValue == ViewState.MODIFIED) {\n\t\t\t\t\t\t\tapplication.goToQuitDialog();\n\t\t\t\t\t\t\t//if the application didn't quit, setback the viewState\n\t\t\t\t\t\t\tviewState.set(oldValue);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase RESIZE: // Redraw the view when the application window resizes.\n\t\t\t\t\t\trepaint();\n\t\t\t\t\t\tviewState.set(oldValue);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tclipboardState.addListener(new ChangeListener<ClipboardState>() {\n\n\t\t\t/**\n\t\t\t * Handles the clipboard changes.\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends ClipboardState> observable, ClipboardState oldValue, ClipboardState newValue) {\n\t\t\t\tShape c = null;\n\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\tswitch (newValue) {\n\t\t\t\t\tcase COPY: // Copy the selection to the clipboard. \n\t\t\t\t\t\tsetClipboard(getSelection());\n\t\t\t\t\t\tsetEditMenu(false, false, false); // Enable all Edit menu items.\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PASTE: // Paste the clipboard to the view.\n\t\t\t\t\t\tc = m.add(mouseLastX, mouseLastY);\n\t\t\t\t\t\tc.setRadius(getClipboard().getRadius());\n\t\t\t\t\t\tc.setColor(getClipboard().getColor());\n\t\t\t\t\t\tc.setHeight(getClipboard().getHeight());\n\t\t\t\t\t\tc.setWidth(getClipboard().getWidth());\n\t\t\t\t\t\tc.setArcheight(getClipboard().getAH());\n\t\t\t\t\t\tc.setArcwidth(getClipboard().getAW());\n\t\t\t\t\t\tc.setType(getClipboard().getType());\n\t\t\t\t\t\tc.setText(getClipboard().getText());\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DELETE: // delete the selection.\n\t\t\t\t\t\tc = getSelection();\n\t\t\t\t\t\tsetSelection(null);\n\t\t\t\t\t\tm.remove(c);\n\t\t\t\t\t\tsetEditMenu(true, true, true); // Disable all Edit menu items.\t\t\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase IDLE:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tclipboardState.set(ClipboardState.IDLE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tsetFileMenu(false, false, true, true, false);\n\t\tsetEditMenu(true, true, true);\n\t}", "public void changeToBoardView(){\n\t\tif (titlePage != null){\n\t\t\tgetContentPane().remove(titlePage); \t// remove the title page from the GUI\n\t\t\ttitlePage = null;\t\n\t\t}\n\t\tif (gameOverPage != null){\n\t\t\t// remove the page if it exists\n\t\t\tgetContentPane().remove(gameOverPage);\n\t\t\tgameOverPage = null;\t// set the page to null\n\t\t}\n\t\tscoreboard = new Scoreboard(this);\t\t// create a new scoreboard to track the game's score\n\t\tboard = new Board(this);\n\t\tvalidate(); \t// validate and repaint to reflect the removal of old panels\n\t\trepaint();\t\t// repaint the board\n\t\tthis.add(board, BorderLayout.EAST);\t\t// add board to the frame\n\t\tthis.add(scoreboard, BorderLayout.EAST);\t// add scoreboard to the frame\n\t}", "private void setupView(JLabel view, int w, int h, int x, int y) {\n\n view.setSize(w,h);\n view.setLocation(x,y);\n\n add(view);\n\n }", "public IView() {\n initComponents();\n setLocationRelativeTo(null); //Center form on screen\n }", "private void initialize() {\r\n \r\n // Set style\r\n setStroke(Color.BLACK);\r\n \r\n // Bind position to model.\r\n model.xProperty().addListener(new ChangeListener<Number>() {\r\n @Override\r\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\r\n if (newValue.doubleValue() == 1000) {\r\n setVisible(false);\r\n }\r\n else {\r\n setVisible(true);\r\n setCenterX(ShoeView.shoeToViewX(newValue.doubleValue(), model.getSide()));\r\n }\r\n }\r\n });\r\n model.yProperty().addListener(new ChangeListener<Number>() {\r\n @Override\r\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\r\n if (newValue.doubleValue() == 1000) {\r\n setVisible(false);\r\n }\r\n else {\r\n setVisible(true);\r\n setCenterY(ShoeView.shoeToViewY(newValue.doubleValue(), model.getSide()));\r\n }\r\n }\r\n });\r\n }", "private void setUpView()\n {\n view = new DefaultDrawingView();\n DrawingEditorProxy editor = new DrawingEditorProxy();\n editor.setTarget(new DefaultDrawingEditor());\n view.addNotify(editor);\n for (Handle h : handles)\n h.setView(view);\n }", "public AbstractBoardView() {\n\n }", "public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation,\n int viewWidth, int viewHeight) {\n matrix.setScale(mirror ? -1 : 1, 1);\n // This is the value for android.hardware.Camera.setDisplayOrientation.\n matrix.postRotate(displayOrientation);\n // Camera driver coordinates range from (-1000, -1000) to (1000, 1000).\n // UI coordinates range from (0, 0) to (width, height).\n matrix.postScale(viewWidth / 2000f, viewHeight / 2000f);\n matrix.postTranslate(viewWidth / 2f, viewHeight / 2f);\n }", "@Override\n public void initView() {\n\n }", "AnimationView setAnimationView(AnimationView view);", "@Override\n public void init(View view) {\n this.view = (BackstoryView) view;\n }", "private void setViews() {\n\n }", "private void setCamera() {\n\t\tVector viewTranslation = controller.getCameraPosition();\n\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\n\t\tfloat whRatio = (float) windowWidth / (float) windowHeight;\n\t\tGLU.gluPerspective(controller.getFOV(), whRatio, 1, 100000);\n\t\tGLU.gluLookAt((float) viewTranslation.x, (float) viewTranslation.y,\n\t\t\t\t(float) controller.getCameraDistance(), (float) viewTranslation.x,\n\t\t\t\t(float) viewTranslation.y, 0, 0, 1, 0);\n\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}", "public void setView(View view) {\n mView = view;\n mViewSpacingSpecified = false;\n }", "protected abstract void initializeView();", "private void moveViewToScreenCenter( View view )\n\t{\n\t DisplayMetrics dm = new DisplayMetrics();\n\t this.getWindowManager().getDefaultDisplay().getMetrics( dm );\n\t \n\t int originalPos[] = new int[2];\n\t view.getLocationOnScreen( originalPos );\n\t int xDest = dm.widthPixels/2 - dm.widthPixels/4;\n\t TranslateAnimation anim = new TranslateAnimation(dm.widthPixels,xDest , 0, 0 );\n\t anim.setDuration(16000);\n\t anim.setFillAfter( true );\n\t view.startAnimation(anim);\n\t}", "public AffineTransform3D() {\r\n\t\tthis.M11 = 1;\r\n\t\tthis.M12 = 0;\r\n\t\tthis.M13 = 0;\r\n\t\tthis.M14 = 0;\r\n\t\tthis.M21 = 0;\r\n\t\tthis.M22 = 1;\r\n\t\tthis.M23 = 0;\r\n\t\tthis.M24 = 0;\r\n\t\tthis.M31 = 0;\r\n\t\tthis.M32 = 0;\r\n\t\tthis.M33 = 1;\r\n\t\tthis.M34 = 0;\r\n\t\tthis.M41 = 0;\r\n\t\tthis.M42 = 0;\r\n\t\tthis.M43 = 0;\r\n\t\tthis.M44 = 1;\r\n\t}", "public void initView(){}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "protected abstract void setupMvpView();", "@Override\n\tprotected void initView()\n\t{\n\n\t}", "public TTTView(int[][] board) {\n\t\tthis.board = board;\n\t}", "public AnimationView(Context context) {\n\t\tsuper(context);\n\t\tinitialize();\n\t}", "public View() {\n initComponents();\n Paypal.setVisible(false);\n MasterCard.setVisible(false);\n Visa.setVisible(false);\n setLocationRelativeTo(null);\n setResizable(false);\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n generarFacturaBoton.setVisible(false);\n }", "private void addCardsToCorkboardView()\n\t{\n\t\tfor(Card card : cards) {\n\t\t\t\n\t\t\taddCardLabel(card);\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void initViews() {\n\n }" ]
[ "0.61615574", "0.6120228", "0.6053177", "0.60234594", "0.6020684", "0.5996523", "0.5977452", "0.590332", "0.5899398", "0.5888433", "0.5765831", "0.5762518", "0.5755471", "0.5729786", "0.57108444", "0.5634283", "0.5601723", "0.55538607", "0.55492723", "0.5542459", "0.55358225", "0.55108225", "0.55015844", "0.5496477", "0.54902357", "0.546773", "0.545836", "0.5457113", "0.54482627", "0.5433107", "0.5433107", "0.54226065", "0.54205954", "0.54129964", "0.5412058", "0.53781736", "0.5375044", "0.53747755", "0.53706414", "0.5370232", "0.5369812", "0.5364431", "0.5364431", "0.5362859", "0.53478765", "0.5343404", "0.5341859", "0.53341794", "0.5333713", "0.53327185", "0.531931", "0.53191876", "0.5314272", "0.5310615", "0.5309144", "0.5308275", "0.529991", "0.529991", "0.5299606", "0.52858615", "0.52830505", "0.52704996", "0.5253305", "0.5252769", "0.5250263", "0.52502334", "0.5246968", "0.5242496", "0.5239825", "0.5239663", "0.5239663", "0.5230835", "0.52306587", "0.52292883", "0.5227798", "0.5227223", "0.52254844", "0.5216887", "0.5211603", "0.5201929", "0.5199939", "0.5195474", "0.51928705", "0.5191382", "0.5190276", "0.51823264", "0.5182207", "0.51807505", "0.5180636", "0.5176826", "0.51714206", "0.51714206", "0.51546097", "0.51519096", "0.51418066", "0.51362836", "0.5136209", "0.5125414", "0.51209855", "0.51198614", "0.5110261" ]
0.0
-1
Creates the buffers we use to store information about the 3D world. OpenGL doesn't use Java arrays, but rather needs data in a format it can understand. Hence we use ByteBuffers.
@Override public void onSurfaceCreated(EGLConfig config) { Log.i(TAG, "onSurfaceCreated"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void mkMesh()\n\t{\n\t\t/* this initialises the the two FloatBuffer objects */\n\t\n\t\tfloat vertices[] = {\n\t\t\t-0.5f, -0.5f, 0.0f,\t\t// V1 - bottom left\n\t\t\t-0.5f, 0.5f, 0.0f,\t\t// V2 - top left\n\t\t\t 0.5f, -0.5f, 0.0f,\t\t// V3 - bottom right\n\t\t\t 0.5f, 0.5f, 0.0f\t\t\t// V4 - top right\n\t\t\t};\n\t\tfloat texture[] = { \t\t\n\t\t\t// Mapping coordinates for the vertices\n\t\t\t0.0f, 1.0f,\t\t// top left\t\t(V2)\n\t\t\t0.0f, 0.0f,\t\t// bottom left\t(V1)\n\t\t\t1.0f, 1.0f,\t\t// top right\t(V4)\n\t\t\t1.0f, 0.0f\t\t// bottom right\t(V3)\n\t\t\t};\n\t\t/* cache the number of floats in the vertices data */\n\t\tvertexCount = vertices.length;\n\t\t\n\t\t// a float has 4 bytes so we allocate for each coordinate 4 bytes\n\t\tByteBuffer byteBuffer = ByteBuffer.allocateDirect(vertices.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\t\n\t\t// allocates the memory from the byte buffer\n\t\tvertexBuffer = byteBuffer.asFloatBuffer();\n\t\t\n\t\t// fill the vertexBuffer with the vertices\n\t\tvertexBuffer.put(vertices);\n\t\t\n\t\t// set the cursor position to the beginning of the buffer\n\t\tvertexBuffer.position(0);\n\t\t\n\t\tbyteBuffer = ByteBuffer.allocateDirect(texture.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\ttextureBuffer = byteBuffer.asFloatBuffer();\n\t\ttextureBuffer.put(texture);\n\t\ttextureBuffer.position(0);\n\t}", "private void initializeBuffers()\n\t{\n\t\t// format vertex data so it can be passed to openGL\n\t\tFloatBuffer vertexBuffer = \n\t\t\t\tUtility.floatArrayToBuffer(mesh.vertexData);\n\t\t \n\t // create a buffer object and store the vertex data there\n\t\tvertexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vertexBufferObject);\n\t\tglBufferData(GL_ARRAY_BUFFER, vertexBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\t\t\n\t\t// format index data so it can be passed to openGL\n\t\tShortBuffer indexDataBuffer = \n\t\t\t\tUtility.shortArrayToBuffer(mesh.indexData);\n\t\t\n\t\t// create a buffer object and store the index data there\n\t\tindexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBufferObject);\n\t\tglBufferData(GL_ELEMENT_ARRAY_BUFFER, indexDataBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);\n\t}", "public void createBufferObjects(GL gl) {\n int[] vboIds = new int[2];\r\n GL11 gl11 = (GL11) gl;\r\n gl11.glGenBuffers(2, vboIds, 0);\r\n mVertexBufferObjectId = vboIds[0];\r\n mElementBufferObjectId = vboIds[1];\r\n\r\n // Upload the vertex data\r\n gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertexBufferObjectId);\r\n mVertexByteBuffer.position(0);\r\n gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mVertexByteBuffer.capacity(), mVertexByteBuffer, GL11.GL_STATIC_DRAW);\r\n\r\n gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mElementBufferObjectId);\r\n mIndexBuffer.position(0);\r\n gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer.capacity() * CHAR_SIZE, mIndexBuffer, GL11.GL_STATIC_DRAW);\r\n\r\n // We don't need the in-memory data any more\r\n mVertexBuffer = null;\r\n mVertexByteBuffer = null;\r\n mIndexBuffer = null;\r\n }", "public void createMesh(GL2 gl){\r\n\t\tfor(int x = 0; x < chunkSize; x++){\r\n\t\t\tfor(int y = 0; y < chunkHeight; y++){\r\n\t\t\t\tfor(int z = 0; z < chunkSize; z++){\r\n\t\t\t\t\tif(y + pos[1]*chunkHeight <= ChunkManager.map2D(x + pos[0]*chunkSize, z + pos[2]*chunkSize)){\r\n\t\t\t\t\t\tblocks[x][y][z] = (byte) (2.7*(y+pos[1]*chunkHeight)/13+1); // Initialize each block\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tblocks[x][y][z] = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tvertexCount = 0;\r\n\t\t// Allocate the buffers (Change to one buffer, or use short/byte buffer for normals and color)\r\n\t\tvertexData = Buffers.newDirectFloatBuffer(chunkSize*chunkSize*chunkSize*18*3);\r\n\t\tnormalData = Buffers.newDirectFloatBuffer(chunkSize*chunkHeight*chunkSize*18*3);\r\n\t\tcolorsData = Buffers.newDirectFloatBuffer(chunkSize*chunkSize*chunkSize*18*3);\r\n\t\tfor(int x = 0; x < chunkSize; x++){\r\n\t\t\tfor(int y = 0; y < chunkHeight; y++){\r\n\t\t\t\tfor(int z = 0; z < chunkSize; z++){\r\n\t\t\t\t\tif(BlockType.isActive(blocks[x][y][z])){\r\n\t\t\t\t\t\tcreateCube(x, y, z); // If the cube is active, add it to the Buffer\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// correct the buffer size, and rewind\r\n\t\tnormalData.flip();\r\n\t\tvertexData.flip();\r\n\t\tcolorsData.flip();\r\n\t\tgl.glGenBuffers(3, buffer, 0); // allocate the buffers and get IDs\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[0]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, vertexData, GL.GL_DYNAMIC_DRAW);\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[1]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, normalData, GL.GL_DYNAMIC_DRAW);\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[2]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, colorsData, GL.GL_DYNAMIC_DRAW);\r\n\t\t// set buffer as null now that it's done being used, hope it will be garbage collected\r\n\t\tvertexData = null;\r\n\t\tnormalData = null;\r\n\t\tcolorsData = null;\t\t\r\n\t}", "public void build_buffers(float[] color /*RGBA*/) {\n int i;\n int offset = 0;\n final float[] vertexData = new float[\n mVertices.size() / 3\n * STRIDE_IN_FLOATS];\n\n float vx, vy, vz;\n\n /*\n * loop to generate vertices.\n */\n for (i = 0; i < mVertices.size(); i += 3) {\n\n vertexData[offset++] = mVertices.get(i + 0);\n vertexData[offset++] = mVertices.get(i + 1);\n vertexData[offset++] = mVertices.get(i + 2);\n\n vertexData[offset++] = 0.0f; // set normal to zero for now\n vertexData[offset++] = 0.0f;\n vertexData[offset++] = 0.0f;\n\n if (mHaveMaterialColor) {\n vertexData[offset++] = mColors.get(i + 0);\n vertexData[offset++] = mColors.get(i + 1);\n vertexData[offset++] = mColors.get(i + 2);\n vertexData[offset++] = 1.0f; // TODO: unwire the alpha?\n } else {\n // color value\n vertexData[offset++] = color[0];\n vertexData[offset++] = color[1];\n vertexData[offset++] = color[2];\n vertexData[offset++] = color[3];\n }\n }\n\n // calculate the normal,\n // set it in the packed VBO.\n // If current normal is non-zero, average it with previous value.\n\n int v1i, v2i, v3i;\n for (i = 0; i < mIndices.size(); i += 3) {\n v1i = mIndices.get(i + 0) - 1;\n v2i = mIndices.get(i + 1) - 1;\n v3i = mIndices.get(i + 2) - 1;\n\n v1[0] = mVertices.get(v1i * 3 + 0);\n v1[1] = mVertices.get(v1i * 3 + 1);\n v1[2] = mVertices.get(v1i * 3 + 2);\n\n v2[0] = mVertices.get(v2i * 3 + 0);\n v2[1] = mVertices.get(v2i * 3 + 1);\n v2[2] = mVertices.get(v2i * 3 + 2);\n\n v3[0] = mVertices.get(v3i * 3 + 0);\n v3[1] = mVertices.get(v3i * 3 + 1);\n v3[2] = mVertices.get(v3i * 3 + 2);\n\n n = XYZ.getNormal(v1, v2, v3);\n\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n }\n\n /*\n * debug - print out list of formated vertex data\n */\n// for (i = 0; i < vertexData.length; i+= STRIDE_IN_FLOATS) {\n// vx = vertexData[i + 0];\n// vy = vertexData[i + 1];\n// vz = vertexData[i + 2];\n// String svx = String.format(\"%6.2f\", vx);\n// String svy = String.format(\"%6.2f\", vy);\n// String svz = String.format(\"%6.2f\", vz);\n//\n// Log.w(\"data \", i + \" x y z \"\n// + svx + \" \" + svy + \" \" + svz + \" and color = \"\n// + vertexData[i + 6] + \" \" + vertexData[i + 7] + \" \" + vertexData[i + 8]);\n// }\n\n final FloatBuffer vertexDataBuffer = ByteBuffer\n .allocateDirect(vertexData.length * BYTES_PER_FLOAT)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n vertexDataBuffer.put(vertexData).position(0);\n\n if (vbo[0] > 0) {\n GLES20.glDeleteBuffers(1, vbo, 0);\n }\n GLES20.glGenBuffers(1, vbo, 0);\n\n if (vbo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo[0]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexDataBuffer.capacity() * BYTES_PER_FLOAT,\n vertexDataBuffer, GLES20.GL_STATIC_DRAW);\n\n // GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n\n /*\n * create the buffer for the indices\n */\n offset = 0;\n int x;\n final short[] indexData = new short[mIndices.size()];\n for (x = 0; x < mIndices.size(); x++) {\n\n short index = mIndices.get(x).shortValue();\n indexData[offset++] = --index;\n }\n mTriangleIndexCount = indexData.length;\n\n /*\n * debug - print out list of formated vertex data\n */\n// short ix, iy, iz;\n// for (i = 0; i < indexData.length; i += 3) {\n// ix = indexData[i + 0];\n// iy = indexData[i + 1];\n// iz = indexData[i + 2];\n//\n// Log.w(\"data \", i + \" i1 i2 i3 \"\n// + ix + \" \" + iy + \" \" + iz );\n// }\n\n final ShortBuffer indexDataBuffer = ByteBuffer\n .allocateDirect(indexData.length * BYTES_PER_SHORT).order(ByteOrder.nativeOrder())\n .asShortBuffer();\n indexDataBuffer.put(indexData).position(0);\n\n if (ibo[0] > 0) {\n GLES20.glDeleteBuffers(1, ibo, 0);\n }\n GLES20.glGenBuffers(1, ibo, 0);\n if (ibo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, ibo[0]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER,\n indexDataBuffer.capacity()\n * BYTES_PER_SHORT, indexDataBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n }", "public static FloatBuffer createVector3Buffer(int vertices) {\n FloatBuffer vBuff = createFloatBuffer(3 * vertices);\n return vBuff;\n }", "public void rebuildMesh(float initX, float initY, float initZ) {\r\n VBOColorHandle = glGenBuffers();\r\n VBOVertexHandle = glGenBuffers();\r\n VBOTextureHandle = glGenBuffers();\r\n int height;\r\n FloatBuffer VertexPositionData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n FloatBuffer VertexColorData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n FloatBuffer VertexTextureData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n for (float x = -initX; x < -initX + CHUNK_SIZE; x++) {\r\n for (float z = -initZ; z < -initZ + CHUNK_SIZE; z++) {\r\n height = (int) (((sNoise.getNoise((int)x + (int)initX/2, (int)z + (int)initZ/2)) + 1) / 2 * 10) + 5;\r\n for (float y = 0; y <= height; y++) {\r\n VertexPositionData.put(createCube((float)(initX + x * CUBE_LENGTH), (float)(initY + y * CUBE_LENGTH), (float)(initZ + z * CUBE_LENGTH)));\r\n VertexColorData.put(createCubeVertexCol(getCubeColor(blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ])));\r\n VertexTextureData.put(createTexCube((float) 0, (float) 0, blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ]));\r\n }\r\n if (height < 11) {\r\n for (float y = height; y < 11; y++) {\r\n VertexPositionData.put(createCube((float)(initX + x * CUBE_LENGTH), (float)(initY + y * CUBE_LENGTH), (float)(initZ + z * CUBE_LENGTH)));\r\n VertexColorData.put(createCubeVertexCol(getCubeColor(blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ])));\r\n VertexTextureData.put(createTexCube((float) 0, (float) 0, blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ]));\r\n }\r\n }\r\n }\r\n }\r\n VertexColorData.flip();\r\n VertexPositionData.flip();\r\n VertexTextureData.flip();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexPositionData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexColorData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexTextureData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n }", "public static FloatBuffer createVector3Buffer(FloatBuffer buf, int vertices) {\n if (buf != null && buf.limit() == 3 * vertices) {\n buf.rewind();\n return buf;\n }\n\n return createFloatBuffer(3 * vertices);\n }", "@Override\n\t\t\tpublic void setUpData(int index, int[][] data, int dataSetupIndex) {\n\t\t\t\tint[] vboIds = data[dataSetupIndex];\n\t\t\t\tif(vboIds[0]!=0) { // le nombre de point\n\t\t\t\t\t// suppression des buffer inutilisés\n\t\t\t\t\tgl.glDeleteBuffers(vboIds.length-1, vboIds,1);\n\t\t\t\t}\n\t\t\t\t// création de deux nouveaux buffer\n\t\t\t\tvboIds = new int[] {0,0,0,0}; // nbPoints, vertex + texture\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\tgl.glGenBuffers(3, vboIds, 1);\n\t\t\t\tdata[dataSetupIndex] = vboIds;\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// les points\n\t\t\t\tFloatBuffer vertices = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\tFloatBuffer text = Buffers.newDirectFloatBuffer(nbHeight*4*2);\n\t\t\t\tFloatBuffer normals = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\t\n\t\t\t\tfloat positiony=0;\n\t\t\t\tfor(int j = 0;j<nbHeight; j++) {\n\t\t\t\t\tint val = ms.getTheMap()[j][index]; \n\t\t\t\t\tif(val>0){\n\t\t\t\t\t\t// points BL, BR, UR, RL\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// texture\n\t\t\t\t\t\tfloat[] coords = textCoords[val-1];\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[1]);\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[1]);\n\t\t\t\t\t}\n\t\t\t\t\tpositiony-=blockHeight;\n\t\t\t\t}\n\t\t\t\tvertices.flip();\n\t\t\t\ttext.flip();\n\t\t\t\tnormals.flip();\n\t\t\t\tvboIds[0] = vertices.limit() / 3; // nb points\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\n\t\t\t\t// les points\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, vertices.limit() * Buffers.SIZEOF_FLOAT, vertices, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t\t\t\n\t\t // les textures\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL2.GL_ARRAY_BUFFER, text.limit() * Buffers.SIZEOF_FLOAT, text, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t // normals\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, normals.limit() * Buffers.SIZEOF_FLOAT, normals, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t\t}", "static void initializeVertexBuffer(int divideCount)\n {\n ByteBuffer vb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n vertexData.length * 4);\n // use the device hardware's native byte order\n vb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = vb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(vertexData);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n // initialize index byte buffer for vertex indexes\n ByteBuffer sb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 2 bytes per short)\n indexData.length * 2);\n // use the device hardware's native byte order\n sb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n indexBuffer = sb.asShortBuffer();\n // add the coordinates to the FloatBuffer\n indexBuffer.put(indexData);\n // set the buffer to read the first coordinate\n indexBuffer.position(0);\n\n GLES20.glGenBuffers(1, vertexBufferObject, divideCount);\n GLES20.glGenBuffers(1, indexBufferObject, divideCount);\n\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, indexBufferObject[divideCount]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER, indexBuffer.capacity() * BYTES_PER_SHORT,\n indexBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vertexBufferObject[divideCount]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexBuffer.capacity() * BYTES_PER_FLOAT,\n vertexBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n }", "public static Object[][] createVBO(Model model) \n\t{\n\t\tint vboVertexHandle = glGenBuffers();\n\t\tint vboNormalHandle = glGenBuffers();\n\t\tint vboColorHandle = glGenBuffers();\n\t\tint vboTexHandle = glGenBuffers();\n\t\tint vboTexIDHandle = glGenBuffers();\n\n\t\tFloatBuffer vertices = reserveData(model.faces.size() * 9);\n\t\tFloatBuffer normals = reserveData(model.faces.size() * 9);\n\t\tFloatBuffer colors = reserveData(model.faces.size() * 9);\n\t\tFloatBuffer textCoords = reserveData(model.faces.size() * 6);\n\t\tIntBuffer textID = BufferUtils.createIntBuffer(model.faces.size() * 3);//reserveData(model.faces.size() * 3);\n\n\t\tfor (Face face : model.faces)\n\t\t{\n\t\t\tvertices.put(asFloats(face.points[0]));\n\t\t\tvertices.put(asFloats(face.points[1]));\n\t\t\tvertices.put(asFloats(face.points[2]));\n\n\t\t\tnormals.put(asFloats(face.normals[0]));\n\t\t\tnormals.put(asFloats(face.normals[1]));\n\t\t\tnormals.put(asFloats(face.normals[2]));\n\n\t\t\tif(face.material!=null)\n\t\t\t{\n\t\t\t\tcolors.put(asFloats(face.material.diffuse));\n\t\t\t\tcolors.put(asFloats(face.material.diffuse));\n\t\t\t\tcolors.put(asFloats(face.material.diffuse));\n\t\t\t}\n\t\t\tif(face.textureCoords!=null)\n\t\t\t{\n\t\t\t\ttextCoords.put(asFloats(face.textureCoords[0]));\n\t\t\t\ttextCoords.put(asFloats(face.textureCoords[1]));\n\t\t\t\ttextCoords.put(asFloats(face.textureCoords[2]));\n\t\t\t}\n\t\t\tif(face.material!=null)\n\t\t\t{\n\t\t\t\ttextID.put(face.material.id);\n\t\t\t\ttextID.put(face.material.id);\n\t\t\t\ttextID.put(face.material.id);\n\t\t\t}\n\t\t}\n\t\tvertices.flip();\n\t\tnormals.flip();\n\t\tcolors.flip();\n\t\ttextCoords.flip();\n\t\ttextID.flip();\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboVertexHandle);\n\t\tglBufferData(GL_ARRAY_BUFFER, vertices, GL_STATIC_DRAW);\n\t\tglVertexPointer(3, GL_FLOAT, 0, 0L);\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboNormalHandle);\n\t\tglBufferData(GL_ARRAY_BUFFER, normals, GL_STATIC_DRAW);\n\t\tglNormalPointer(GL_FLOAT, 0, 0L);\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboColorHandle);\n\t\tglBufferData(GL_ARRAY_BUFFER, colors, GL_STATIC_DRAW);\n\t\tglColorPointer(3, GL_FLOAT, 0, 0L);\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboTexHandle);\n\t\tglBufferData(GL_ARRAY_BUFFER, textCoords, GL_STATIC_DRAW);\n\t\tglTexCoordPointer(2, GL_FLOAT, 0, 0L);\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboTexIDHandle);\n\t\tglBufferData(GL_ARRAY_BUFFER, textID, GL_STATIC_DRAW);\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\n\t\treturn new Object[][]{\n\t\t\t\t{vboVertexHandle, vertices}, \n\t\t\t\t{vboNormalHandle, normals}, \n\t\t\t\t{vboTexHandle, textCoords}, \n\t\t\t\t{vboColorHandle, colors},\n\t\t\t\t{vboTexIDHandle, textID}\n\t\t};\n\t}", "public Cube() {\n\t\t// a float is 4 bytes, therefore we multiply the number if\n\t\t// vertices with 4.\n\t\tByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4);\n\t\tvbb.order(ByteOrder.nativeOrder());\n\t\tvertexBuffer = vbb.asFloatBuffer();\n\t\tvertexBuffer.put(vertices);\n\t\tvertexBuffer.position(0);\n\t\t\n\t\t// Setup texture-coords-array buffer, in float. An float has 4 bytes (NEW)\n\t ByteBuffer tbb = ByteBuffer.allocateDirect(texCoords.length * 4);\n\t tbb.order(ByteOrder.nativeOrder());\n\t texBuffer = tbb.asFloatBuffer();\n\t texBuffer.put(texCoords);\n\t texBuffer.position(0);\n\t\t\n\t\t// short is 2 bytes, therefore we multiply the number if\n\t\t// vertices with 2.\n//\t\tByteBuffer ibb = ByteBuffer.allocateDirect(indices.length * 2);\n//\t\tibb.order(ByteOrder.nativeOrder());\n//\t\tindexBuffer = ibb.asShortBuffer();\n//\t\tindexBuffer.put(indices);\n//\t\tindexBuffer.position(0);\n\t}", "public \n\tBitsGLRenderer( \n\t\t\tfinal Context context ) {\n\t\t\n\t\tsuper( context );\n\t\t\n\t\tthis.mBitsGame = BitsGame.getInstance( );\n\n\t\tthis.setRenderer( this );\n\t\tthis.setFocusable(true);\n\t\tthis.setFocusableInTouchMode(true);\n\t\t\n\t\tthis.mVertexBufferSize = BitsApp.sRenderBufferSize;\n\t\tthis.mIndexBufferSize = BitsApp.sRenderBufferSize / 16 * BitsGLImage.INDICES_PER_SPRITE;\n\n\t\t//init the rotation array\n\t\tthis.mLastRotation[0] = 0f;\n\t\tthis.mLastRotation[1] = -1f;\n\t\tthis.mLastRotation[2] = -1f;\t\t\n\t\t\n\t\tthis.mVertices = new float[this.mVertexBufferSize];\n\t\tByteBuffer buffer = ByteBuffer.allocateDirect( this.mVertices.length * 16 ); //16 -> (X,Y,U,V) are 4 Float values -> Float is 4 Bytes long\n\t buffer.order( ByteOrder.nativeOrder() );\n\t this.mVertexBuffer = buffer.asFloatBuffer();\n\t \n\t //Pre-Filling the index buffer. The buffer content will never change.\n\t //This buffer always contains a sequence of 0,1,2,2,3,0 values that are used to render BitsImages efficiently.\n\t final short[] indices = new short[this.mIndexBufferSize];\n\t final int len = indices.length;\n\t short j = 0;\n\t for ( int i = 0; i < len; i+= BitsGLImage.INDICES_PER_SPRITE, j += BitsGLImage.VERTICES_PER_SPRITE ) {\n\t \tindices[i + 0] = (short)( j + 0 ); // Calculate Index 0 (first Triangle)\n\t indices[i + 1] = (short)( j + 1 ); // Calculate Index 1 (first Triangle)\n\t indices[i + 2] = (short)( j + 2 ); // Calculate Index 2 (first Triangle)\n\t indices[i + 3] = (short)( j + 2 ); // Calculate Index 3 (second Triangle)\n\t indices[i + 4] = (short)( j + 3 ); // Calculate Index 4 (second Triangle)\n\t indices[i + 5] = (short)( j + 0 ); // Calculate Index 5 (second Triangle)\n\t }\n buffer = ByteBuffer.allocateDirect( indices.length * (Short.SIZE / 8) ); //Short == 2 Bytes\n buffer.order( ByteOrder.nativeOrder() );\n this.mIndexBuffer = buffer.asShortBuffer();\n this.mIndexBuffer.clear();\n this.mIndexBuffer.put( indices );\n this.mIndexBuffer.flip();\n\t}", "abstract public Buffer createBuffer();", "public final boolean makeRenderable() {\n if (isRenderable()) {\n return false;\n }\n\n vboIdList = new ArrayList<>();\n \n FloatBuffer positionBuffer = null;\n FloatBuffer textureCoordsBuffer = null;\n FloatBuffer normalsBuffer = null;\n IntBuffer indicesBuffer = null;\n FloatBuffer weightsBuffer = null;\n IntBuffer jointIndicesBuffer = null;\n\n try {\n //Create VAO\n vaoId = glGenVertexArrays();\n glBindVertexArray(vaoId);\n\n //Create position VBO\n int positionVboId = glGenBuffers();\n vboIdList.add(positionVboId);\n positionBuffer = MemoryUtil.memAllocFloat(positions.length);\n positionBuffer.put(positions).flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVboId);\n glBufferData(GL_ARRAY_BUFFER, positionBuffer, GL_STATIC_DRAW);\n glEnableVertexAttribArray(0);\n glVertexAttribPointer(0, 3, GL_FLOAT, false, 0, 0);\n\n //Create index VBO\n int indicesVboId = glGenBuffers();\n vboIdList.add(indicesVboId);\n indicesBuffer = MemoryUtil.memAllocInt(indices.length);\n indicesBuffer.put(indices).flip();\n glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indicesVboId);\n glBufferData(GL_ELEMENT_ARRAY_BUFFER, indicesBuffer, GL_STATIC_DRAW);\n\n //Create texture VBO\n int textureCoordsVboId = glGenBuffers();\n vboIdList.add(textureCoordsVboId);\n textureCoordsBuffer = MemoryUtil.memAllocFloat(textureCoords.length);\n textureCoordsBuffer.put(textureCoords).flip();\n glBindBuffer(GL_ARRAY_BUFFER, textureCoordsVboId);\n glBufferData(GL_ARRAY_BUFFER, textureCoordsBuffer, GL_STATIC_DRAW);\n glEnableVertexAttribArray(1);\n glVertexAttribPointer(1, 2, GL_FLOAT, false, 0, 0);\n\n //Create normal VBO\n int normalsVboId = glGenBuffers();\n vboIdList.add(normalsVboId);\n if (normals.length == 0) {\n normalsBuffer = MemoryUtil.memAllocFloat(normals.length);\n } else {\n normalsBuffer = MemoryUtil.memAllocFloat(positions.length);\n }\n normalsBuffer.put(normals).flip();\n glBindBuffer(GL_ARRAY_BUFFER, normalsVboId);\n glBufferData(GL_ARRAY_BUFFER, normalsBuffer, GL_STATIC_DRAW);\n glEnableVertexAttribArray(2);\n glVertexAttribPointer(2, 3, GL_FLOAT, false, 0, 0);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n\n //Create weight VBO\n int weightVboId = glGenBuffers();\n vboIdList.add(weightVboId);\n weightsBuffer = MemoryUtil.memAllocFloat(weights.length);\n weightsBuffer.put(weights).flip();\n glBindBuffer(GL_ARRAY_BUFFER, weightVboId);\n glBufferData(GL_ARRAY_BUFFER, weightsBuffer, GL_STATIC_DRAW);\n glEnableVertexAttribArray(3);\n glVertexAttribPointer(3, 4, GL_FLOAT, false, 0, 0);\n \n //Create joint indices VBO\n int jointIndicesVboId = glGenBuffers();\n vboIdList.add(jointIndicesVboId);\n jointIndicesBuffer = MemoryUtil.memAllocInt(jointIndices.length);\n jointIndicesBuffer.put(jointIndices).flip();\n glBindBuffer(GL_ARRAY_BUFFER, jointIndicesVboId);\n glBufferData(GL_ARRAY_BUFFER, jointIndicesBuffer, GL_STATIC_DRAW);\n glEnableVertexAttribArray(4);\n glVertexAttribPointer(4, 4, GL_FLOAT, false, 0, 0); \n\n glDisableVertexAttribArray(0);\n glDisableVertexAttribArray(1);\n glDisableVertexAttribArray(2);\n glDisableVertexAttribArray(3);\n glDisableVertexAttribArray(4);\n glBindVertexArray(0);\n } finally {\n freeBuffer(positionBuffer);\n freeBuffer(textureCoordsBuffer);\n freeBuffer(normalsBuffer);\n freeBuffer(indicesBuffer);\n freeBuffer(weightsBuffer);\n freeBuffer(jointIndicesBuffer);\n }\n\n return true;\n }", "FloatBuffer getInterleavedBuffers(float[] posDat, float[] colDat, float[]\n normDat, float[] texDat) {\n if (colDat == null && texDat == null) {\n throw new IllegalArgumentException(\"no color or texture\");\n }\n // interleaving pX,pY,pZ,r,g,b,a,nX,nY,nZ,u,v // 12*4 = 48bytes\n int posIndx = 0;\n int colIndx = 0;\n int norIndx = 0;\n int texIndx = 0;\n int size = posDat.length + normDat.length;\n size += (colDat != null) ? colDat.length : 0;\n size += (texDat != null) ? texDat.length : 0;\n int step = 3 + 3 + ((colDat != null) ? 4 : 0) + ((texDat != null) ? 2 : 0);\n float[] interleavedData = new float[size];\n// Log.e(\"InterleavedBuffers\", \"size=\" + size + \", step=\" + step);\n int i = 0;\n while(i < size){\n interleavedData[i + 0] = posDat[posIndx + 0];\n interleavedData[i + 1] = posDat[posIndx + 1];\n interleavedData[i + 2] = posDat[posIndx + 2];\n posIndx += 3;\n i += 3;\n if (colDat != null) {\n interleavedData[i + 0] = colDat[colIndx + 0];\n interleavedData[i + 1] = colDat[colIndx + 1];\n interleavedData[i + 2] = colDat[colIndx + 2];\n interleavedData[i + 3] = colDat[colIndx + 3];\n colIndx += 4;\n i += 4;\n }\n interleavedData[i + 0] = normDat[norIndx + 0];\n interleavedData[i + 1] = normDat[norIndx + 1];\n interleavedData[i + 2] = normDat[norIndx + 2];\n norIndx += 3;\n i += 3;\n if (texDat != null) {\n interleavedData[i + 0] = texDat[texIndx + 0];\n interleavedData[i + 1] = texDat[texIndx + 1];\n texIndx += 2;\n i += 2;\n }\n }\n final FloatBuffer buffer;\n\n buffer = floatArrayToFloatBuffer(interleavedData);\n\n return buffer;\n }", "private FloatBuffer createBuffer(int size)\n {\n // Need to allocate a byte buffer 4 times the size requested because the\n // size is treated as bytes, not number of floats.\n ByteBuffer buf = ByteBuffer.allocateDirect(size * 4);\n buf.order(ByteOrder.nativeOrder());\n FloatBuffer ret_val = buf.asFloatBuffer();\n\n return ret_val;\n }", "private void generateBoxGeom()\n {\n // textures all share the same array, so process separately.\n textureBuffer = createBuffer(BOX_TEX_COORDS.length);\n textureBuffer.put(BOX_TEX_COORDS);\n textureBuffer.rewind();\n\n vertexBuffer = new FloatBuffer[6];\n normalBuffer = new FloatBuffer[6];\n\n for(int i = 0; i < 6; i++)\n {\n vertexBuffer[i] = createBuffer(12);\n normalBuffer[i] = createBuffer(12);\n }\n\n vertexBuffer[POSITIVE_X].put(RIGHT_BOX_COORDS);\n normalBuffer[POSITIVE_X].put(RIGHT_BOX_NORMALS);\n\n vertexBuffer[NEGATIVE_X].put(LEFT_BOX_COORDS);\n normalBuffer[NEGATIVE_X].put(LEFT_BOX_NORMALS);\n\n vertexBuffer[POSITIVE_Y].put(TOP_BOX_COORDS);\n normalBuffer[POSITIVE_Y].put(TOP_BOX_NORMALS);\n\n vertexBuffer[NEGATIVE_Y].put(BOTTOM_BOX_COORDS);\n normalBuffer[NEGATIVE_Y].put(BOTTOM_BOX_NORMALS);\n\n vertexBuffer[POSITIVE_Z].put(BACK_BOX_COORDS);\n normalBuffer[POSITIVE_Z].put(BACK_BOX_NORMALS);\n\n vertexBuffer[NEGATIVE_Z].put(FRONT_BOX_COORDS);\n normalBuffer[NEGATIVE_Z].put(FRONT_BOX_NORMALS);\n\n for(int i = 0; i < 6; i++)\n {\n vertexBuffer[i].rewind();\n normalBuffer[i].rewind();\n }\n }", "private void createVertexBuffer(int attributeNumber, float[] data){\n\t\tint vboID = glGenBuffers();\n\t\tvbos.add(vboID);\n\n\t\t// activate buffer and upload data\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboID);\n\t\tFloatBuffer buffer = storeDataInFloatBuffer(data);\n\t\tglBufferData(GL_ARRAY_BUFFER, buffer, GL_STATIC_DRAW);\n\n\t\t// tell OpenGL how to interpret the data\n\t\tglVertexAttribPointer(attributeNumber,3,GL_FLOAT,false,0,0);\n\n\t\t// unbind buffer\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\t}", "private void createCube(float x, float y, float z){\r\n\t\tboolean[] sides = checkCubeSides((int)x,(int)y,(int)z);\r\n\t\tfloat[] color = BlockType.color(blocks[(int)x][(int)y][(int)z]);\r\n\t\t\r\n//\t\t gl.glNormal3f(0.0f, 1.0f, 0.0f);\r\n\t\tif(sides[0]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\t \r\n//\t // Bottom-face\r\n//\t gl.glNormal3f(0.0f, -1.0f, 0.0f);\r\n\t\t\r\n\t\tif(sides[1]){\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n//\t // Back-face\r\n//\t gl.glNormal3f(0.0f, 0.0f, -1.0f);\r\n\t\tif(sides[2]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n//\t // Front-face\r\n//\t gl.glNormal3f(0.0f, 0.0f, 1.0f);\r\n\t\tif(sides[3]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n//\t \r\n//\t // Left-face\r\n//\t gl.glNormal3f(-1.0f, 0.0f, 0.0f);\r\n\t\tif(sides[4]){\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n//\t // Right-face\r\n//\t gl.glNormal3f(1.0f, 0.0f, 0.0f);\r\n\t\tif(sides[5]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public FramebufferObject(GL2 gl, Texture2D.Format format, Texture2D.Datatype datatype, int width, int height, int colorTextureCount, boolean makeDepthTexture, boolean rectTextures) throws OpenGLException\n\t{\n\t\t/* Sanity check. */\n\t\tif (colorTextureCount == 0 && !makeDepthTexture)\n\t\t{\n\t\t\tthrow new OpenGLException(\"It is not valid to make an FBO with no color buffers and no depth buffer.\");\n\t\t}\n\t\t\n\t\tint maxColorTextures[] = new int[1];\n\t\tgl.glGetIntegerv(GL2.GL_MAX_COLOR_ATTACHMENTS, maxColorTextures, 0);\n\t\tif (colorTextureCount > maxColorTextures[0])\n\t\t{\n\t\t\tthrow new OpenGLException(\"Cannot create an FBO with \" + colorTextureCount + \" render targets. Your graphics card only supports \" + maxColorTextures[0] + \".\");\n\t\t}\n\t\t\n\t\tmWidth = width;\n\t\tmHeight = height;\n\t\t\n\t\t/* Create OpenGL FBO. */\n\t\tint names[] = new int[1];\n\t\tgl.glGenFramebuffers(1, names, 0);\n\t\tmHandle = names[0];\n\t\t\n\t\t/* Remember previous FBO binding, and then bind this one. */\n\t\tint previousBinding[] = new int[1];\n\t\tgl.glGetIntegerv(GL2.GL_FRAMEBUFFER_BINDING, previousBinding, 0);\n\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, mHandle);\n\t\t\n\t\t/* Create and attach color textures. */\n\t\tmColorTextures = new Texture2D[colorTextureCount];\n\t\t\n\t\tfor (int i = 0; i < colorTextureCount; ++i)\n\t\t{\n\t\t\tmColorTextures[i] = new Texture2D(gl, format, datatype, width, height, null, rectTextures);\n\t\t\tgl.glFramebufferTexture2D(GL2.GL_FRAMEBUFFER, GL2.GL_COLOR_ATTACHMENT0 + i, mColorTextures[i].getTextureTarget(), mColorTextures[i].getHandle(), 0);\n\t\t}\n\t\t\n\t\t/* Create and attach depth texture, if requested. */\n\t\tif (makeDepthTexture)\n\t\t{\n\t\t\tmDepthTexture = new Texture2D(gl, Format.DEPTH, Datatype.INT32, width, height, null, rectTextures);\n\t\t\tgl.glFramebufferTexture2D(GL2.GL_FRAMEBUFFER, GL2.GL_DEPTH_ATTACHMENT, mDepthTexture.getTextureTarget(), mDepthTexture.getHandle(), 0);\n\t\t}\n\n\t\t/* Make sure everything is set up properly. */\n\t\tint status = gl.glCheckFramebufferStatus(GL2.GL_FRAMEBUFFER);\n\t\tif (status != GL2.GL_FRAMEBUFFER_COMPLETE)\n\t\t{\n\t\t\tthrow new OpenGLException(\"Framebuffer incomplete: \" + status + \".\");\n\t\t}\n\t\t\n\t\t/* Restore whatever FBO was bound before this function was called. */\n\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, previousBinding[0]);\n\t}", "private void resizeArrays() {\r\n//\t\tThread.dumpStack();\r\n\t\t\r\n\t\t// coordinates, colors, 2 texunits\r\n\t\tint size = numElements * (3 + 3 + 2 + 2) * 4;\r\n\t\tSystem.out.println(\"resizeArrays \"+size+\" \"+numElements);\r\n\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, vboVertexId);\r\n\t\tARBVertexBufferObject.glBufferDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, size, ARBVertexBufferObject.GL_STATIC_DRAW_ARB);\r\n\t\t\r\n\t\tuploadBuffer.clear();\r\n\t\tfor (int i=0; i<uploadBuffer.capacity(); i++) {\r\n\t\t\tuploadBuffer.put(i, 1);\r\n\t\t}\r\n\t\t\r\n\t\t// clear the data\r\n\t\tint pos = 0;\r\n\t\twhile (pos < size) {\r\n\t\t\tif (size - pos < uploadBuffer.capacity() * 4) {\r\n\t\t\t\tuploadBuffer.limit((size - pos) / 4);\r\n\t\t\t}\r\n\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, pos, uploadBuffer);\r\n\t\t\tUtil.checkGLError();\r\n\t\t\tpos += uploadBuffer.capacity() * 4;\r\n\t\t}\r\n\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, 0);\r\n\t}", "public void initBuffers(VrState state);", "public static FloatBuffer createFloatBuffer(int floats) {\n SimpleLogger.d(BufferUtils.class, \"Creating float buffer with float size: \" + floats);\n return ByteBuffer.allocateDirect(floats * 4).order(ByteOrder.nativeOrder()).asFloatBuffer();\n }", "public void render(GL2 gl){\r\n\t\tgl.glEnableClientState(GL2.GL_VERTEX_ARRAY); // enable vertex array\r\n\t\tgl.glEnableClientState(GL2.GL_COLOR_ARRAY); // enable color array\r\n\t\tgl.glEnableClientState(GL2.GL_NORMAL_ARRAY); // enable normal array\r\n\t\t\r\n\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, buffer[0]);\r\n gl.glVertexPointer(3, GL.GL_FLOAT, 0, 0); // Set The Vertex Pointer To The Vertex Buffer \r\n \r\n gl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[1]);\r\n gl.glNormalPointer(GL.GL_FLOAT, 0, 0); // Set the normal pointer to the normal buffer\r\n \r\n gl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[2]);\r\n gl.glColorPointer(3, GL.GL_FLOAT, 0, 0); // set the color pointer to the color buffer\r\n \r\n\t\tgl.glDrawArrays(GL.GL_TRIANGLES, 0, vertexCount); // draw the buffer\r\n\t\t\r\n\t\tgl.glDisableClientState(GL2.GL_VERTEX_ARRAY); \r\n\t\tgl.glDisableClientState(GL2.GL_COLOR_ARRAY); \r\n\t\tgl.glDisableClientState(GL2.GL_NORMAL_ARRAY); \r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0); // reset bound buffer\r\n\t}", "@Override\n public void loadBuffer(final Tuple3d origin, final ByteBuffer buffer) {\n this.loadGpuBuffer(origin);\n buffer.put(this.gpuBuffer);\n this.gpuBuffer.rewind();\n }", "public void render() {\r\n glPushMatrix();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glVertexPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glColorPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBindTexture(GL_TEXTURE_2D, 1);\r\n glTexCoordPointer(2, GL_FLOAT, 0, 0l);\r\n glDrawArrays(GL_QUADS, 0, CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 24);\r\n glPopMatrix();\r\n }", "public static FloatBuffer createFloatBuffer(float... data) {\n\n FloatBuffer buff = BufferUtils.createFloatBuffer(data.length * 3);\n buff.clear();\n for (int i = 0; i < data.length; i++) {\n buff.put(data[i]);\n System.out.println(\"Buff: \" + buff.get(i));\n }\n buff.flip();\n return buff;\n }", "abstract void allocateBuffers();", "public static void init() {\n // init quad VAO\n vao = glGenVertexArrays();\n glBindVertexArray(vao);\n int positionVbo = glGenBuffers();\n FloatBuffer fb = BufferUtils.createFloatBuffer(2 * 4);\n fb.put(0.0f).put(0.0f);\n fb.put(1.0f).put(0.0f);\n fb.put(1.0f).put(1.0f);\n fb.put(0.0f).put(1.0f);\n fb.flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVbo);\n glBufferData(GL_ARRAY_BUFFER, fb, GL_STATIC_DRAW);\n glVertexAttribPointer(Main.shader.inPositionLoc, 2, GL_FLOAT, false, 0, 0L);\n glEnableVertexAttribArray(Main.shader.inPositionLoc);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n \n // init texture\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n byte[] dataArr = Main.loadResource(\"resources/font DF.png\");\n ByteBuffer data = BufferUtils.createByteBuffer(dataArr.length);\n data.put(dataArr).rewind();\n data = Objects.requireNonNull(stbi_load_from_memory(data, width, height, components, 1));\n int imgWidth = width.get();\n int imgHeight = height.get();\n charWidth = imgWidth / 16;\n charHeight = imgHeight / 16;\n \n texture = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, texture);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, imgWidth, imgHeight, 0, GL_RED, GL_UNSIGNED_BYTE, data);\n stbi_image_free(data);\n \n // set texScale uniform\n glUniform2f(Main.shader.texScaleLoc, 1/16f, 1/16f);\n }", "public static GeglBuffer newBuffer(GeglRectangle extent, BablFormat format)\n\t{\n\t\treturn com.jibee.gegl.priv.Gegl.INSTANCE.gegl_buffer_new(extent, format.getPointer());\n\t}", "void SetUpMeshArrays(int PosHandle, int TexHandle, int NormalHandle)\n\t{\n\t\tm_VertexBuffer.position(m_MeshVerticesDataPosOffset);\n\t GLES20.glVertexAttribPointer(PosHandle, \n\t \t\t\t\t\t\t\t3, \n\t \t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\tm_VertexBuffer);\n\t \n\t GLES20.glEnableVertexAttribArray(PosHandle);\n\t \n\t \n\t if (m_MeshHasUV)\n\t {\n\t \t// Set up Vertex Texture Data stream to shader \n\t \tm_VertexBuffer.position(m_MeshVerticesDataUVOffset);\n\t \tGLES20.glVertexAttribPointer(TexHandle, \n\t \t\t\t\t\t\t\t\t2, \n\t \t\t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\t\tm_VertexBuffer);\n\t \tGLES20.glEnableVertexAttribArray(TexHandle);\n\t }\n\t \n\t if (m_MeshHasNormals)\n\t {\n\t \t\n\t \t// Set up Vertex Texture Data stream to shader\n\t \tm_VertexBuffer.position(m_MeshVerticesDataNormalOffset);\n\t \tGLES20.glVertexAttribPointer(NormalHandle, \n\t \t\t\t\t\t\t\t\t3, \n\t \t\t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\t\tm_VertexBuffer);\n\t \tGLES20.glEnableVertexAttribArray(NormalHandle);\n\t } \n\t \n\t \n\t \n\t}", "static native ByteBuffer createJni(long[] nativeData, int width, int height);", "public Tile3D(Context context, int id, float w, float h) {\n\t // Setup vertex array buffer. Vertices in float. A float has 4 bytes\n\t ByteBuffer vbb = ByteBuffer.allocateDirect(12 * 4);\n\t vbb.order(ByteOrder.nativeOrder()); // Use native byte order\n\t vertexBuffer = vbb.asFloatBuffer(); // Convert from byte to float\n\t \n\t imageFileID = id;\n\t bitmap = BitmapFactory.decodeStream(context.getResources().openRawResource(imageFileID));\n\t //bitmap \n\t /*InputStream is= context.getResources().openRawResource(imageFileIDs);\n\t try {\n\t bitmap = BitmapFactory.decodeStream(is);\n\n\t } finally {\n\t //Always clear and close\n\t try {\n\t is.close();\n\t is = null;\n\t } catch (IOException e) {\n\t }\n\t }*/\n\t int imgWidth = bitmap.getWidth();\n\t int imgHeight = bitmap.getHeight();\n\t float faceWidth = w;\n\t float faceHeight = h;\n\t // Adjust for aspect ratio\n\t if (imgWidth > imgHeight) {\n\t faceHeight = faceHeight * imgHeight / imgWidth; \n\t }\n\t else {\n\t faceWidth = faceWidth * imgWidth / imgHeight;\n\t }\n\t float faceLeft = -faceWidth / 2;\n\t float faceRight = -faceLeft;\n\t float faceTop = faceHeight / 2;\n\t float faceBottom = -faceTop;\n\t \n\t \n\t \n\t // Define the vertices for this face\n\t float[] vertices = {\n\t faceLeft, faceBottom, 0.0f, // 0. left-bottom-front\n\t faceRight, faceBottom, 0.0f, // 1. right-bottom-front\n\t faceLeft, faceTop, 0.0f, // 2. left-top-front\n\t faceRight, faceTop, 0.0f, // 3. right-top-front\n\t };\n\t vertexBuffer.put(vertices); // Copy data into buffer\n\t\t vertexBuffer.position(0); // Rewind\n\t \n\t ByteBuffer tbb = ByteBuffer.allocateDirect(texCoords.length * 4);\n\t tbb.order(ByteOrder.nativeOrder());\n\t texBuffer = tbb.asFloatBuffer();\n\t \n\t texBuffer.put(texCoords);\n\t \n\t texBuffer.position(0); // Rewind\n\t \n\t }", "private void createIndexBuffer(int[] indices){\n\t\tint vboID = glGenBuffers();\n\t\tvbos.add(vboID);\n\n\t\t// activate buffer and upload data\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vboID);\n\t\tIntBuffer buffer = storeDataInIntBuffer(indices);\n\t\tglBufferData(GL_ELEMENT_ARRAY_BUFFER, buffer, GL_STATIC_DRAW);\n\t}", "public DataBuffer createDataBuffer() {\n DataBuffer dataBuffer = null;\n\n int size = getBufferSize();\n switch (dataType) {\n case DataBuffer.TYPE_BYTE:\n dataBuffer = new DataBufferByte(size, numBanks);\n break;\n case DataBuffer.TYPE_USHORT:\n dataBuffer = new DataBufferUShort(size, numBanks);\n break;\n case DataBuffer.TYPE_SHORT:\n dataBuffer = new DataBufferShort(size, numBanks);\n break;\n case DataBuffer.TYPE_INT:\n dataBuffer = new DataBufferInt(size, numBanks);\n break;\n case DataBuffer.TYPE_FLOAT:\n dataBuffer = new DataBufferFloat(size, numBanks);\n break;\n case DataBuffer.TYPE_DOUBLE:\n dataBuffer = new DataBufferDouble(size, numBanks);\n break;\n }\n\n return dataBuffer;\n }", "private void initializeBuffers(){\n if(isDiskBufferEnabled){\n this.persistenceService = PersistenceService.getService();\n this.synonymyBuffer = persistenceService.getMapDatabase(WIKIDATA_SYNONYMY_BUFFER);\n this.hypernymyBuffer = persistenceService.getMapDatabase(WIKIDATA_HYPERNYMY_BUFFER);\n this.askBuffer = persistenceService.getMapDatabase(WIKIDATA_ASK_BUFFER);\n } else {\n this.synonymyBuffer = new ConcurrentHashMap<>();\n this.hypernymyBuffer = new ConcurrentHashMap<>();\n this.askBuffer = new ConcurrentHashMap<>();\n }\n }", "private Mesh createMesh(final int pTrianglesCount) {\n\t\tfinal int pSpeed \t\t\t= 20;\n\t\tfinal int pVertexCount\t \t= Mesh.VERTEX_SIZE * pTrianglesCount * 3; \t\n\t\tfinal float pColor \t\t\t= new Color(0f,0f,0f).getABGRPackedFloat();\n\t\tfinal float pSegmentWidth \t= CAMERA_WIDTH/pTrianglesCount;\n\t\tfinal float[] pBufferData \t= new float[pVertexCount];\t\n\t\t\n\t\tmHeightOffsetCurrent = new float[pVertexCount];\t\t\n\t\t\n\t\t//create triangles \n\t\t// A--B\n\t\t// \\ |\n\t\t// \\|\n\t\t// C\n\t\t//\n\t\tint i = 0;\n\t\tfloat x = 0f;\n\t\tfinal float pInitialHeight = 400;\n\t\tfor (int triangleIndex = 0;triangleIndex<pTrianglesCount;triangleIndex++){\n\t\t\t //first triangle \n\t\t\t pBufferData[(i * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_X] = x;\n\t\t\t pBufferData[(i * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = pInitialHeight;\n\t\t\t pBufferData[(i * Mesh.VERTEX_SIZE) + Mesh.COLOR_INDEX] = pColor;\n\t\t\t \n\t\t\t pBufferData[((i+1) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_X] = x+pSegmentWidth;\n\t\t\t pBufferData[((i+1) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = pInitialHeight;\n\t\t\t pBufferData[((i+1) * Mesh.VERTEX_SIZE) + Mesh.COLOR_INDEX] = pColor;\n\t\t\t \n\t\t\t pBufferData[((i+2) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_X] = x+pSegmentWidth;\n\t\t\t pBufferData[((i+2) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = 0;\t\n\t\t\t pBufferData[((i+2) * Mesh.VERTEX_SIZE) + Mesh.COLOR_INDEX] = pColor;\t\n\t\t\t \n\t\t\t i = i+3;\n\t\t\t x = x+pSegmentWidth;\n\t\t }\n\t\t \n\t\tfinal VertexBufferObjectManager VBOM = getVertexBufferObjectManager();\n\t\tfinal HighPerformanceMeshVertexBufferObject pMeshVBO = new HighPerformanceMeshVertexBufferObject(VBOM, pBufferData, pBufferData.length, DrawType.DYNAMIC, true, Mesh.VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT);\n\t\t\n//\t\tpMesh = new Mesh(0, 0,pVertexCount,DrawMode.TRIANGLES,pMeshVBO){\t\t\n//\t\t\t\n//\t\t\tfloat progress_x = 0;\n//\t\t\t\n//\t\t\t@Override\n//\t\t protected void onManagedUpdate(final float pSecondsElapsed) { \n//\t\t\t\tsuper.onManagedUpdate(pSecondsElapsed);\n//\t\t\t\tdrawBySine(pSecondsElapsed);\n//\t\t this.mMeshVertexBufferObject.setDirtyOnHardware(); // include this line\n//\t\t progress_x+=(pSpeed*pSecondsElapsed);\n//\t\t };\n//\t\t\t\n//\t\t\tvoid drawBySine(final float pSecondsElapsed){\n//\t\t\t\tfinal float[] pBuff = pMeshVBO.getBufferData();\n//\t\t\t\tfor (int i = 0;i<((pTrianglesCount)*3);i++){ //FIRST part of triangles \n//\t\t\t\t\tif (i%3==0||i==0||((i-1)%3==0)){\n//\t\t\t\t\t\t//every vertex (v0) of triangle must be connected to previous triangle at second vertex (v1) to prevent stairs\n//\t\t\t\t\t\tif (i%3==0&&i>0){ \n//\t\t\t\t\t\t\tmHeightOffsetCurrent[i] = mHeightOffsetCurrent[i-2];\n//\t\t\t\t\t\t} else { \n//\t\t\t\t\t\t\tmHeightOffsetCurrent[i] = getNormalizedSine(i+progress_x, mTouchY, pTrianglesCount*3);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t} \n//\t\t\t\t\tpBuff[(i * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = mHeightOffsetCurrent[i];\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\t\n//\t\t\tfloat getNormalizedSine(float x, float halfY, float maxX) {\t\n//\t\t\t double factor = (2 * Math.PI) / maxX;\n//\t\t\t return (float) ((Math.sin(x * factor) * halfY) + halfY);\n//\t\t\t}\n//\t\t\t\n//\t\t};\n\t\treturn pMesh;\n\t}", "private void initRendering() {\n\t\tmActivity.showDebugMsg(\" initRendering\");\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f : 1.0f);\n\n\t\tfor (Texture t : mTextures) {\n\t\t\tGLES20.glGenTextures(1, t.mTextureID, 0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, t.mTextureID[0]);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, t.mWidth, t.mHeight, 0, GLES20.GL_RGBA,\n\t\t\t\t\tGLES20.GL_UNSIGNED_BYTE, t.mData);\n\t\t}\n\n\t\tshaderProgramID = ArUtils.createProgramFromShaderSrc(\n\t\t\t\tShaders.CUBE_MESH_VERTEX_SHADER,\n\t\t\t\tShaders.CUBE_MESH_FRAGMENT_SHADER);\n\n\t\tvertexHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexPosition\");\n\t\ttextureCoordHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexTexCoord\");\n\t\tmvpMatrixHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"modelViewProjectionMatrix\");\n\t\ttexSampler2DHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"texSampler2D\");\n\n\t\tif (!mModelIsLoaded) {\n\t\t\t//object = new Teapot();\n\t\t\tobject = mActivity.get3DObject();\n\t\t\tobjectScaleFloat *= object.getDefScale();\n\t\t\t//minObjectScale *= object.getDefScale();\n\t\t\t//maxObjectScale *= object.getDefScale();\n\n\t\t\tmActivity.showDebugMsg(\"Loading model Teapot\");\n\t\t\t// Hide the Loading Dialog\n\t\t\t//mActivity.loadingDialogHandler.sendEmptyMessage(LoadingDialogHandler.HIDE_DIALOG);\n\t\t}\n\n\t}", "public void draw(float[] vpMatrix, float[] mvMatrix, float[] positions, float[] sizes,\n float[] colors, boolean render3d) {\n // Add program to OpenGL ES environment\n GLES30.glUseProgram(mProgram);\n\n // get the handles to the attribute\n vertexAttr = GLES30.glGetAttribLocation(mProgram, \"a_vertex\");\n posAttr = GLES30.glGetAttribLocation(mProgram, \"a_position\");\n int sizeAttr = GLES30.glGetAttribLocation(mProgram, \"a_size\");\n int coloAttr = GLES30.glGetAttribLocation(mProgram, \"a_color\");\n int texAttr = GLES30.glGetAttribLocation(mProgram, \"a_texCoord\");\n int normalAttr = GLES30.glGetAttribLocation(mProgram, \"a_normal\");\n\n // load vertices\n if (render3d) {\n GLES30.glEnableVertexAttribArray(vertexAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mVertex3dVBO);\n GLES30.glVertexAttribPointer(vertexAttr, COORDS_PER_VERTEX,\n GLES30.GL_FLOAT, false,\n vertexStride, 0);\n GLES30.glVertexAttribDivisor(vertexAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(texAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mTex3dCoordVBO);\n GLES30.glVertexAttribPointer(texAttr, 2,\n GLES30.GL_FLOAT, false,\n 2 * 4, 0);\n GLES30.glVertexAttribDivisor(texAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(normalAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mNormal3dVBO);\n GLES30.glVertexAttribPointer(normalAttr, 3,\n GLES30.GL_FLOAT, false,\n 3 * 4, 0);\n GLES30.glVertexAttribDivisor(normalAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n } else {\n GLES30.glEnableVertexAttribArray(vertexAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mVertexVBO);\n GLES30.glVertexAttribPointer(vertexAttr, COORDS_PER_VERTEX,\n GLES30.GL_FLOAT, false,\n vertexStride, 0);\n GLES30.glVertexAttribDivisor(vertexAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(texAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mTexCoordVBO);\n GLES30.glVertexAttribPointer(texAttr, 2,\n GLES30.GL_FLOAT, false,\n 2 * 4, 0);\n GLES30.glVertexAttribDivisor(texAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(normalAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mNormal2dVBO);\n GLES30.glVertexAttribPointer(normalAttr, 3,\n GLES30.GL_FLOAT, false,\n 3 * 4, 0);\n GLES30.glVertexAttribDivisor(normalAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n }\n\n\n ByteBuffer bb = ByteBuffer.allocateDirect(positions.length * 4);\n bb.order(ByteOrder.nativeOrder());\n FloatBuffer fb = bb.asFloatBuffer();\n fb.put(positions);\n fb.position(0);\n\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mPosVBO);\n GLES30.glBufferData(GLES30.GL_ARRAY_BUFFER, positions.length * 4, null, GLES30.GL_DYNAMIC_DRAW);\n GLES30.glBufferSubData(GLES30.GL_ARRAY_BUFFER, 0, positions.length * 4, fb);\n\n GLES30.glEnableVertexAttribArray(posAttr);\n GLES30.glVertexAttribPointer(posAttr, COORDS_PER_VERTEX, GLES30.GL_FLOAT,\n false, vertexStride, 0);\n GLES30.glVertexAttribDivisor(posAttr, 1);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n\n ByteBuffer bb2 = ByteBuffer.allocateDirect(sizes.length * 4);\n bb2.order(ByteOrder.nativeOrder());\n FloatBuffer sb = bb2.asFloatBuffer();\n sb.put(sizes);\n sb.position(0);\n\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mSizeVBO);\n GLES30.glBufferData(GLES30.GL_ARRAY_BUFFER, sizes.length * 4, null, GLES30.GL_DYNAMIC_DRAW);\n GLES30.glBufferSubData(GLES30.GL_ARRAY_BUFFER, 0, sizes.length * 4, sb);\n\n GLES30.glEnableVertexAttribArray(sizeAttr);\n GLES30.glVertexAttribPointer(sizeAttr, 3, GLES30.GL_FLOAT,\n false, 3 * 4, 0);\n GLES30.glVertexAttribDivisor(sizeAttr, 1);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n\n ByteBuffer bb3 = ByteBuffer.allocateDirect(colors.length * 4);\n bb3.order(ByteOrder.nativeOrder());\n FloatBuffer cb = bb3.asFloatBuffer();\n cb.put(colors);\n cb.position(0);\n\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mColorVBO);\n GLES30.glBufferData(GLES30.GL_ARRAY_BUFFER, colors.length * 4, null, GLES30.GL_DYNAMIC_DRAW);\n GLES30.glBufferSubData(GLES30.GL_ARRAY_BUFFER, 0, colors.length * 4, cb);\n\n GLES30.glEnableVertexAttribArray(coloAttr);\n GLES30.glVertexAttribPointer(coloAttr, 4, GLES30.GL_FLOAT,\n false, 4 * 4, 0);\n GLES30.glVertexAttribDivisor(sizeAttr, 1);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n\n // get handle to fragment shader's uTexture member\n int mTextureUniformHandle = GLES30.glGetUniformLocation(mProgram, \"u_texture\");\n // Set the active texture unit to texture unit 0.\n GLES30.glActiveTexture(GLES30.GL_TEXTURE0);\n // Bind the texture to this unit.\n GLES30.glBindTexture(GLES30.GL_TEXTURE_CUBE_MAP, mTextureDataHandle);\n // Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n GLES30.glUniform1i(mTextureUniformHandle, 0);\n\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES30.glGetUniformLocation(mProgram, \"a_mvpMatrix\");\n // Pass the projection and view transformation to the shader\n GLES30.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, vpMatrix, 0);\n\n // get handle to shape's transformation matrix\n mMVMatrixHandle = GLES30.glGetUniformLocation(mProgram, \"u_mvMatrix\");\n // Pass the projection and view transformation to the shader\n GLES30.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mvMatrix, 0);\n\n // set the light position\n mLightPosHandle = GLES30.glGetUniformLocation(mProgram, \"u_lightPos\");\n GLES30.glUniform3f(mLightPosHandle, 100.0f, 10.0f, 10.0f);\n\n// int mRenderHandle = GLES30.glGetUniformLocation(mProgram, \"u_renderMode\");\n// GLES30.glUniform1ui(mRenderHandle, (render3d) ? 1 : 0);\n int mRenderHandle = GLES30.glGetUniformLocation(mProgram, \"u_renderMode\");\n// Log.d(\"asdf\", \"render mode: \" + render3d + ((render3d) ? 1 : 0));\n GLES30.glUniform1f(mRenderHandle, ((render3d) ? 1.0f : 0.0f));\n\n\n// GLES30.glDrawArraysInstanced(GLES30.GL_TRIANGLES, 0, 6, numInstances);\n if (render3d) {\n GLES30.glDrawArraysInstanced(GLES30.GL_TRIANGLES, 0, 36, numInstances);\n } else {\n GLES30.glDrawElementsInstanced(GLES30.GL_TRIANGLES, drawOrder.length, GLES30.GL_UNSIGNED_SHORT, orderBuffer, numInstances);\n }\n\n GLES30.glDisableVertexAttribArray(mPosVBO);\n GLES30.glDisableVertexAttribArray(mVertexVBO);\n }", "public FloatBuffer getFloatBuffer()\r\n {\r\n buffer16.clear();\r\n //give col x row ordering\r\n for(int col = 0; col < 4; col++)\r\n {\r\n for(int row = 0; row < 4; row ++)\r\n buffer16.put((float)matrix4x4[row][col]);\r\n }\r\n buffer16.rewind();\r\n return buffer16;\r\n }", "public IBuffer newBuffer();", "@Override\r\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\r\n\r\n\t\tgl.glMatrixMode(GL10.GL_PROJECTION);\r\n\t\tgl.glLoadIdentity();\r\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION,\r\n\t\t\t\tnew float[] { 5, 5, 5, 1 }, 0);\r\n\r\n\t\tgl.glRotatef(anglez, 0, 0, 1);\r\n\t\tgl.glRotatef(angley, 0, 1, 0);\r\n\t\tgl.glRotatef(anglex, 1, 0, 0);\r\n\t\tanglez += 0.1;\r\n\t\tangley += 0.2;\r\n\t\tanglex += 0.3;\r\n\r\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\r\n\t\t// gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);\r\n\t\tgl.glEnableClientState(GL10.GL_COLOR_ARRAY);\r\n\r\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexesBuffer);\r\n\t\tgl.glColorPointer(4, GL10.GL_FLOAT, 0, colorBuffer);\r\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, triangleBuffer.remaining(),\r\n\t\t\t\tGL10.GL_UNSIGNED_BYTE, triangleBuffer);\r\n\r\n\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\r\n\t\tgl.glDisableClientState(GL10.GL_COLOR_ARRAY);\r\n\t\tgl.glFinish();\r\n\r\n\t}", "private final void \n renderIt( ) {\n \t\n \tif( this.mImageCount > 0 || this.mLineCount > 0 || this.mRectCount > 0 || this.mTriangleCount > 0 ) {\n\t \n \t\tthis.mVertexBuffer.clear(); //clearing the buffer\n\t GLES11.glEnableClientState( GLES11.GL_VERTEX_ARRAY );\n\n\t //if there are images to render\n\t if( this.mImageCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mImageCount * 16 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer );\n\t\t this.mIndexBuffer.limit(this.mImageCount * 6); //DESKTOP VERSION ONLY\n\t\t GLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mImageCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t \tGLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t //if there are lines to render\n\t if( this.mLineCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mLineCount * 4 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 0, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glDrawArrays( GLES11.GL_LINES, 0, this.mLineCount * 2 ); //* 2 because every line got 2 points\n\t }\n\n\t //if there are rects to render\n\t if( this.mRectCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mRectCount * 8 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t this.mIndexBuffer.limit(this.mRectCount * 6); //DESKTOP VERSION ONLY\n\t \t GLES11.glVertexPointer(2, GLES11.GL_FLOAT, 0, this.mVertexBuffer); //copy the vertices into the GPU\t \t \n\t \t \tGLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mRectCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t }\n\t \n\t //if there are triangles to render\n\t if( this.mTriangleCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mTriangleCount * 12 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //16 == byteoffset -> es liegen 2 werte dazwischen\n\t\t GLES11.glDrawArrays( GLES11.GL_TRIANGLES, 0, this.mTriangleCount * 3 ); //* 2 because every line got 2 points\t \t\n\t\t GLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t GLES11.glDisableClientState( GLES11.GL_VERTEX_ARRAY );\n \t\t\n\t //resetting counters\n\t this.mBufferIndex = 0;\n\t \tthis.mImageCount = 0;\n\t \tthis.mLineCount = 0;\n\t \tthis.mRectCount = 0;\n\t \tthis.mTriangleCount = 0;\n \t}\n }", "public void drawBale() {\n\t\tvertexData.position(0);\n\t\tglVertexAttribPointer(mPositionHandle, POSITION_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, vertexData);\n\n\t\tglEnableVertexAttribArray(mPositionHandle);\n\n\t\t// Pass in the color information\n\t\tcolorData.position(0);\n\t\tglVertexAttribPointer(mColorHandle, COLOR_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, colorData);\n\n\t\tglEnableVertexAttribArray(mColorHandle);\n\t\t\n\t\t// Pass in the texture coordinate information\n textureData.position(0);\n GLES20.glVertexAttribPointer(mTextureCoordHandle, TEXTURE_COMPONENT_COUNT, GLES20.GL_FLOAT, false, \n \t\t0, textureData);\n \n GLES20.glEnableVertexAttribArray(mTextureCoordHandle);\n\n\t\t// This multiplies the view matrix by the model matrix, and stores the\n\t\t// result in the MVP matrix\n\t\t// (which currently contains model * view).\n\t\tmultiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n\t\t// Pass in the modelview matrix.\n\t\tglUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// This multiplies the modelview matrix by the projection matrix, and\n\t\t// stores the result in the MVP matrix\n\t\t// (which now contains model * view * projection).\n\t\tMatrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n\n\t\t// Pass in the combined matrix.\n\t\tglUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// Draw the cube.\n\t\tglDrawArrays(GL_TRIANGLES, 0, 60);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 60, 12);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 72, 12);\n\t}", "public void draw(float[] mvpMatrix, int note) {\n GLES30.glUseProgram(mProgram);\n MyGLRenderer.checkGlError(\"glUseProgram\");\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES30.glGetAttribLocation(mProgram, \"vPosition\");\n\n // Enable a handle to the triangle vertices\n GLES30.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the triangle coordinate data\n //Matrix.multiplyMV(vertexBuffer, 0, scaleMatrix, 0, vertexBuffer, 0);\n GLES30.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n GLES30.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n \n // get handle to fragment shader's vColor member\n //mColorHandle = GLES30.glGetUniformLocation(mProgram, \"vColor\");\n\n mTextureUniformHandle = GLES30.glGetUniformLocation(mProgram, \"u_Texture\");\n mTextureCoordinateHandle = GLES30.glGetAttribLocation(mProgram, \"a_TexCoordinate\");\n \n // Set the active texture unit to texture unit 1. (0 reserved for FBO?)\n GLES30.glActiveTexture(GLES30.GL_TEXTURE0);\n \n // Bind the texture to this unit.\n GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, mTextureDataHandles[note]);\n \n // Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n GLES30.glUniform1i(mTextureUniformHandle, 0);\n \n // Set color for drawing the triangle\n //GLES30.glUniform4fv(mColorHandle, 1, color, 0);\n\n // Pass in the texture coordinate information\n mCubeTextureCoordinates.position(0);\n GLES30.glVertexAttribPointer(mTextureCoordinateHandle, mTextureCoordinateDataSize, GLES30.GL_FLOAT, false, \n \t\t0, mCubeTextureCoordinates);\n \n GLES30.glEnableVertexAttribArray(mTextureCoordinateHandle);\n \n \n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES30.glGetUniformLocation(mProgram, \"uMVPMatrix\");\n MyGLRenderer.checkGlError(\"glGetUniformLocation\");\n\n // Apply the projection and view transformation\n GLES30.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n MyGLRenderer.checkGlError(\"glUniformMatrix4fv\");\n\n // Draw the square\n GLES30.glDrawElements(GLES30.GL_TRIANGLES, drawOrder.length,\n GLES30.GL_UNSIGNED_SHORT, drawListBuffer);\n\n // Disable vertex array\n GLES30.glDisableVertexAttribArray(mPositionHandle);\n }", "public static Object3DData buildWireframe(Object3DData objData) {\n try {\n FloatBuffer vertexArrayBuffer = objData.getVertexArrayBuffer();\n IntBuffer drawOrder = createNativeByteBuffer(vertexArrayBuffer.capacity() / 3 * 2 * 4).asIntBuffer();\n for (int i = 0; i < vertexArrayBuffer.capacity()/3; i+=3) {\n drawOrder.put((i));\n drawOrder.put((i+1));\n drawOrder.put((i+1));\n drawOrder.put((i+2));\n drawOrder.put((i+2));\n drawOrder.put((i));\n }\n return new Object3DData(vertexArrayBuffer).setDrawOrder(drawOrder)\n .setVertexNormalsArrayBuffer(objData.getVertexNormalsArrayBuffer())\n .setColor(objData.getColor())\n .setVertexColorsArrayBuffer(objData.getVertexColorsArrayBuffer())\n .setTextureCoordsArrayBuffer(objData.getTextureCoordsArrayBuffer())\n .setPosition(objData.getPosition())\n .setRotation(objData.getRotation())\n .setDrawMode(GLES20.GL_LINES)\n .setDrawSize(-1);\n } catch (Exception ex) {\n Log.e(\"Object3DBuilder\", ex.getMessage(), ex);\n }\n return objData;\n }", "protected void freeBuffers() {\n glDeleteVertexArrays(vao);\n glDeleteBuffers(vbo);\n glDeleteBuffers(ibo);\n }", "public GlBuffer allocate(final int usage, final int target, final boolean freeLocal){\n\t\t//android.util.//Log.d(TAG,\"createVBO(\"+usage+\",\"+target+\",\"+freeLocal+\")\");\n\t\tif(this.handle == UNBIND_HANDLE){\n\t\t\tfinal int[] handles = new int[1];\n\n\t\t\t//Create buffer on server\n\t\t\tGLES20.glGenBuffers(1, handles, 0);\n\t\t\tthis.handle = handles[0];\n\t\t\tthis.target = target;\n\n\t\t\tGlOperation.checkGlError(TAG, \"glGenBuffers\");\n\n\t\t\t//Bind it\n\t\t\tGLES20.glBindBuffer(target, this.handle);\n\t\t\tif(this.buffer == null){\n\t\t\t\tthis.commit(false);\n\t\t\t}\n\t\t\t//Push data into it\n\t\t\tthis.buffer.position(0);\n\t\t\tGLES20.glBufferData(target, this.size, this.buffer, usage);\n\t\t\t//Unbind it\n\t\t\tGLES20.glBindBuffer(target, UNBIND_HANDLE);\n\n\t\t\t//Check error on bind only\n\t\t\tGlOperation.checkGlError(TAG, \"glBufferData\");\n\n\t\t\t//Free local buffer is queried\n\t\t\tif(mManagedBuffer && freeLocal){\n\t\t\t\tswitch(this.datatype){\n\t\t\t\t\tcase TYPE_BYTE :\n\t\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ByteBuffer)this.buffer);\n\t\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TYPE_SHORT :\n\t\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ShortBuffer)this.buffer);\n\t\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TYPE_INT :\n\t\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((IntBuffer)this.buffer);\n\t\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((FloatBuffer)this.buffer);\n\t\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t}\n\t\t\t\tthis.buffer = null;\n\t\t\t}\n\n\t\t\tmode = MODE_VBO;\n\n if(GlOperation.getVersion()[0] >= 3 && this.vertexAttribHandles != null\n && this.vertexAttribHandles.length > 0){\n GLES30.glGenVertexArrays(1, handles, 0);\n mVaoHandle = handles[0];\n GlOperation.checkGlError(TAG, \"glGenVertexArrays\");\n\n GLES30.glBindVertexArray(mVaoHandle);\n GLES20.glBindBuffer(target, this.handle);\n\n for(int index=0; index < this.vertexAttribHandles.length; index++){\n GLES20.glEnableVertexAttribArray(this.vertexAttribHandles[index]);\n GLES20.glVertexAttribPointer(this.vertexAttribHandles[index], this.chunks[index].components,\n this.chunks[index].datatype, this.chunks[index].normalized, stride, this.chunks[index].offset);\n }\n GlOperation.checkGlError(TAG, \"glVertexAttribPointer\");\n\n GLES20.glBindBuffer(target, UNBIND_HANDLE);\n GLES30.glBindVertexArray(UNBIND_HANDLE);\n\n mode = MODE_VAO;\n }\n\t\t}\n\t\telse{\n\t\t Log.w(TAG, \"multiple allocation detected !\");\n }\n\n\t\treturn this;\n\t}", "public Buffers(double[] data) {\n for (int i = 0; i < (data.length - size); i++) {\n double[] bufferData = new double[size];\n for (int j = 0; j < size; j++) {\n bufferData[j] = data[i + j];\n }\n buffers.add(bufferData);\n }\n }", "public void initBufferStrategy() {\n // Triple-buffering\n createBufferStrategy(3);\n bufferStrategy = getBufferStrategy();\n }", "private static void convertToBuffers(ArrayList<DecompressedLine> lines, float _l0, float _b0, PfssDecompressed _frame)\n\t{\n\t\tint stoSize = 0;\n\t\tint stsSize = 0;\n\t\tint otsSize = 0;\n\t\tint totalSize = 0;\n\t\tfor (int i = 0; i < lines.size(); i++)\n\t\t{\n\t\t\tDecompressedLine currentLine = lines.get(i);\n\n\t\t\tDecompressedLine subsampledLine = new DecompressedLine(currentLine.points, currentLine.getType());\n\t\t\tlines.set(i, subsampledLine);\n\t\t\tswitch (subsampledLine.getType())\n\t\t\t{\n\t\t\t\tcase OUTSIDE_TO_SUN:\n\t\t\t\t\totsSize += subsampledLine.getSize() - 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUN_TO_OUTSIDE:\n\t\t\t\t\tstoSize += subsampledLine.getSize() - 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUN_TO_SUN:\n\t\t\t\t\tstsSize += subsampledLine.getSize() - 1;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\ttotalSize += subsampledLine.getSize();\n\t\t}\n\n\t\t// copy to buffers\n\t\tFloatBuffer vertices = Buffers.newDirectFloatBuffer(totalSize * 3);\n\t\tIntBuffer indicesSunToOutside = Buffers.newDirectIntBuffer(stoSize * 2);\n\t\tIntBuffer indicesSunToSun = Buffers.newDirectIntBuffer(stsSize * 2);\n\t\tIntBuffer indicesOutsideToSun = Buffers.newDirectIntBuffer(otsSize * 2);\n\n\t\tint vertexIndex = 0;\n\t\tfor (DecompressedLine line : lines)\n\t\t{\n\t\t\tIntBuffer indexBuffer = getLineType(line.getType(), indicesSunToOutside, indicesSunToSun, indicesOutsideToSun);\n\n\t\t\tint pointIndex = 0;\n\t\t\twhile (pointIndex + 1 < line.getSize())\n\t\t\t{\n\t\t\t\tDecompressedPoint point = line.getPoint(pointIndex);\n\t\t\t\tvertices.put(point.getX());\n\t\t\t\tvertices.put(point.getY());\n\t\t\t\tvertices.put(point.getZ());\n\t\t\t\tindexBuffer.put(vertexIndex);\n\t\t\t\tindexBuffer.put(vertexIndex + 1);\n\t\t\t\tvertexIndex++;\n\t\t\t\tpointIndex++;\n\t\t\t}\n\t\t\tDecompressedPoint point = line.getPoint(pointIndex);\n\t\t\tvertices.put(point.getX());\n\t\t\tvertices.put(point.getY());\n\t\t\tvertices.put(point.getZ());\n\t\t\tvertexIndex++;\n\t\t}\n\n\t\tvertices.flip();\n\t\tindicesSunToOutside.flip();\n\t\tindicesOutsideToSun.flip();\n\t\tindicesSunToSun.flip();\n\t\t_frame.setLoadedData(vertices, indicesSunToOutside, indicesSunToSun, indicesOutsideToSun, _l0, _b0);\n\t}", "public void upload() {\r\n\t\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, vboVertexId);\r\n\t\t\tFloatBuffer coordinates = shapePeer.shape.getVertexData().coordinates;\r\n\t\t\tint tempIdx=0;\r\n\t\t\tfor (int i=0; i<count; i++) {\r\n\t\t\t\ttempP3f.x = coordinates.get((minIndex+i)*3+0);\r\n\t\t\t\ttempP3f.y = coordinates.get((minIndex+i)*3+1);\r\n\t\t\t\ttempP3f.z = coordinates.get((minIndex+i)*3+2);\r\n\t\t\t\tshapePeer.shape.getModelMatrix().transform(tempP3f);\r\n\t\t\t\tuploadBuffer.put(tempIdx*3+0, tempP3f.x);\r\n\t\t\t\tuploadBuffer.put(tempIdx*3+1, tempP3f.y);\r\n\t\t\t\tuploadBuffer.put(tempIdx*3+2, tempP3f.z);\r\n\t\t\t\tif (tempIdx*3 >= uploadBuffer.capacity() || i==count-1) {\r\n\t\t\t\t\tint offset = (startIdx+i-tempIdx)*3;\r\n\t\t\t\t\tuploadBuffer.position(0).limit((tempIdx+1)*3);\r\n//\t\t\t\t\tSystem.out.println(\"upload \"+offset+\" \"+uploadBuffer.limit()+\" \"+startIdx);\r\n\t\t\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, offset*4, uploadBuffer);\r\n\t\t\t\t\tuploadBuffer.position(0).limit(uploadBuffer.capacity());\r\n\t\t\t\t\ttempIdx=0;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempIdx++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// upload colors\r\n\t\t\tFloatBuffer colors = shapePeer.shape.getVertexData().colors;\r\n\t\t\tif (colors != null) {\r\n\t\t\t\tcolors.position(minIndex).limit(minIndex+count*3);\r\n\t\t\t\tint offset = (numElements*3)+(startIdx*3);\r\n\t\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, offset*4, colors);\r\n\t\t\t} else {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// upload texture coordinates\r\n\t\t\tObjectArray<VertexData.TexCoordData> texCoords = shapePeer.shape.getVertexData().texCoords;\r\n\t\t\tif (texCoords != null) {\r\n\t\t\t\tfor (int unit=0; unit<texCoords.length(); unit++) {\r\n\t\t\t\t\tVertexData.TexCoordData texCoord = texCoords.get(unit);\r\n\t\t\t\t\tif (texCoord != null) {\r\n\t\t\t\t\t\tGL13.glClientActiveTexture(GL13.GL_TEXTURE0 + unit);\r\n\t\t\t\t\t\ttexCoord.data.position(minIndex*2).limit(minIndex*2+count*2);\r\n//\t\t\t\t\t\tint offset = (numElements*(6+unit*2))+(startIdx*2);\r\n\t\t\t\t\t\tint offset = (numElements*(6+unit*2))+startIdx+startIdx;\r\n\t\t\t\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, offset*4, texCoord.data);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tGL13.glClientActiveTexture(GL13.GL_TEXTURE0);\r\n\t\t\t\r\n\t\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, 0);\r\n\r\n\t\t\tVertexData vertexData = shapePeer.shape.getVertexData();\r\n\t\t\tIntBuffer indices = vertexData.indices;\r\n\t\t\tindices.position(0).limit(indices.capacity());\r\n\t\t\tthis.indices = new int[indices.capacity()];\r\n\t\t\tindices.get(this.indices);\r\n\t\t\tfor (int i=0; i<this.indices.length; i++) {\r\n\t\t\t\tthis.indices[i] += startIdx-minIndex;\r\n\t\t\t}\r\n\t\t\tUtil.checkGLError();\r\n\t\t}", "public Object3D() {\n objectVectors = new ArrayList<>();\n linesToDraw = new ArrayList<>();\n }", "public FloatBuffer data(String meshName)\n\t{\n\n\t\tMeshData meshData = meshes.get(meshName);\n\n\t\tFloatBuffer fb = ByteBuffer.allocateDirect(4 * 8 * 3 * (meshData.end - meshData.start))\n\t\t\t\t.order(ByteOrder.nativeOrder()).asFloatBuffer();\n\n\t\tfb.position(0);\n\n\t\tfor (int i = meshData.start; i < meshData.end; i++)\n\t\t{\n\t\t\tFace face = faces.get(i);\n\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tfb.put(verticies.get(face.v[j]).x);\n\t\t\t\t\tfb.put(verticies.get(face.v[j]).y);\n\t\t\t\t\tfb.put(verticies.get(face.v[j]).z);\n\n\t\t\t\t\tfb.put(normals.get(face.n[j]).x);\n\t\t\t\t\tfb.put(normals.get(face.n[j]).y);\n\t\t\t\t\tfb.put(normals.get(face.n[j]).z);\n\n\t\t\t\t\tfb.put(texCoordinates.get(face.t[j]).u);\n\t\t\t\t\tfb.put(texCoordinates.get(face.t[j]).v);\n\t\t\t\t}\n\t\t\t\tcatch (Exception e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn fb;\n\t}", "abstract public Buffer createBufferFromData(byte[] data, int size);", "public ElementBuffer(int[] indices, VertexArray vao)\n {\n this.ID = OpenGLMemoryManager.createVertexBuffer();\n this.size = indices.length;\n\n vao.bind();\n this.bind();\n IntBuffer buffer = OpenGLMemoryManager.toIntBuffer(indices);\n glBufferData(GL_ELEMENT_ARRAY_BUFFER, buffer, GL_STATIC_DRAW);\n this.unbind();\n vao.unbind();\n }", "interface WorldmapBuffer2 {\n final static byte[] image2 = {\n -125, 47, -3, 77, 51, 29, -45, -103, -120, 119, 76, -122, -82, -22, -106, 61, 113, 4, -59, 124, -116, 59, 115, -26, -44,\n 56, -115, 34, 106, -124, 98, 83, -115, 70, 9, -67, -116, 99, 92, -127, 89, -23, -68, -11, -41, 72, -15, -68, -48, 4,\n 29, 85, -30, 4, -79, -56, -20, 126, 69, 119, -119, -115, -116, 60, -37, -53, -107, 68, 90, -45, 79, -99, 108, 109, 45,\n 84, -65, -93, -44, -79, -23, -40, 23, -40, -48, 98, -92, -50, 125, -104, -52, -58, 50, -97, -119, 13, -78, -81, 82, -86,\n 15, -71, -92, 77, -115, -48, 48, 77, -88, 6, 61, 104, -117, -51, 103, -90, 5, -71, -52, 42, 76, -68, 113, 79, -7,\n 43, -42, -84, 38, -56, -100, 93, -44, 34, 71, -113, 100, -116, 64, 42, 88, -40, 94, 93, -83, -118, -115, 99, -32, -27,\n 72, -26, 43, -104, 35, 7, 37, 101, 12, -66, 107, -104, -128, -106, -116, 54, -93, -83, -119, -50, 23, -47, -117, 39, 89,\n 6, -9, 41, 47, 10, -37, -124, -2, 115, -40, -55, -67, -37, -118, -118, 92, 108, 24, -41, 35, -43, -61, 45, 44, 118,\n 87, 92, 70, -14, 108, -37, -22, -106, -41, -127, 124, -92, -70, -99, -42, 22, -38, 106, 43, -8, -84, -97, -99, -39, -48,\n -6, -62, 78, -10, -98, -38, 109, -98, -23, -87, -45, 112, -67, 73, 42, 21, 99, -25, 109, -40, -21, 10, 120, -88, -110,\n -99, 105, -37, -97, 68, -70, -112, 15, 54, -99, 111, 77, 37, 108, 52, -33, 113, 93, 59, -33, 56, -78, 124, -85, 42,\n 107, -3, -54, -94, 29, -37, 97, -53, -54, -24, 8, -113, -18, 45, 108, 61, 122, -124, 19, 102, 118, -65, -14, -31, 32,\n 30, -30, -8, 35, -40, 102, -106, -109, -33, -115, -58, -27, 38, -37, 43, 88, 106, -11, -104, -51, -16, 11, -39, 116, 24,\n -123, -48, -6, 107, 73, -39, -31, -107, 109, -98, 85, -36, 39, 115, 61, -37, -33, 53, -61, -49, 103, -119, -73, 84, -35,\n -64, -6, 97, -72, -85, -98, -94, 58, -33, 127, 77, -34, 96, 90, -127, 58, -22, -118, -61, -83, 58, 96, 59, 95, 27,\n 11, -29, -123, 76, 79, -108, 11, -48, -35, -100, -40, 82, 4, 97, 57, -18, -36, -63, -94, -28, -105, -87, -76, -57, -84,\n 122, -13, -40, -60, -37, -6, -28, -105, -42, -34, -105, 76, 61, 59, -2, -27, -103, -125, -76, 111, 39, -39, 118, -88, -119,\n 56, 43, 116, 50, 22, -87, 44, 43, -91, 63, -21, -51, -2, -14, -26, -38, -76, 36, -26, -52, -122, -26, 100, -61, -75,\n -108, 7, 24, -24, 92, -37, -28, -116, -51, 52, 126, -33, -103, -102, 114, -27, 77, -24, -124, 87, 68, -13, -119, -28, 99,\n -71, -33, 25, 88, -49, 120, 41, -24, -125, -82, -62, 102, -25, -49, -119, 25, -82, 111, 38, 63, -52, 76, 26, 81, 71,\n 118, -115, 39, 125, -58, -94, -26, 29, -109, -25, -4, -92, -80, 43, -42, -83, -108, -66, -86, -65, 43, -25, 19, 70, -23,\n -80, -68, -54, -72, -3, -43, 32, -117, -93, 102, -93, 27, -29, -77, 56, -70, -38, -34, 27, -67, -94, 52, -75, -119, -73,\n -5, -45, 58, 120, -48, 107, 125, -112, 109, -84, -25, 40, 78, -21, -8, 69, -27, -117, -36, 108, 57, 93, -114, 52, 120,\n -32, 100, 68, -48, -51, 65, -35, -42, 78, 82, 58, -88, 96, -121, 126, -39, 104, 34, -123, -6, 9, 66, -35, 40, 107,\n 66, -120, -65, 127, -125, -19, -75, 6, 122, -30, -21, -74, 42, 126, -121, 2, 3, -19, 22, 20, 53, 85, 89, 61, -21,\n -25, -95, 94, 18, -18, -35, 70, -101, 33, 10, -80, 18, 35, 94, 99, -98, -18, 40, -66, 87, 54, -18, -23, -36, 107,\n -24, 8, 47, -28, -113, -61, -87, -20, -98, -19, -71, 45, -35, -128, -82, -80, -23, -121, -38, 99, -117, -70, 7, 104, -20,\n 52, 122, -18, 76, -115, -40, 36, -6, -16, 88, -59, -72, 127, -58, -111, 59, 126, -2, 82, -17, -68, -49, -18, -63, -118,\n 111, -109, -33, 120, -118, -50, -52, 52, -29, -121, -2, -62, 126, 26, -124, -46, -18, -112, -115, 92, -65, 117, 125, -16, -74,\n 74, 90, -9, 27, -61, 0, 111, 110, 2, -72, -125, -102, 30, 22, 42, -33, 115, 23, -6, -24, 124, -102, -57, -16, 78,\n -62, 76, -119, 91, -48, -87, -65, -71, 126, -118, -123, -89, -18, -31, -92, -13, -95, -68, -35, -63, -100, 55, 88, -68, -47,\n -69, 55, -12, 99, 33, -16, -34, -22, -63, 66, 78, -11, -93, 78, 66, 17, 12, -75, -115, 6, -109, 34, 9, 114, -108,\n -72, -103, 8, -76, 112, 58, 126, -16, -74, -34, 102, 29, -56, -64, 88, 103, 123, -91, 100, 55, 61, -55, -50, 59, -33,\n -22, 90, 55, -90, -106, -3, -20, -79, -35, 53, -112, -2, -47, 49, -114, -23, 30, 95, -16, 25, 70, -17, 75, 53, -9,\n -38, 73, 109, 53, 38, -10, 106, -102, 55, -17, -31, 76, -26, -6, -128, -110, -1, -44, 25, 7, -56, 86, -56, -9, -6,\n 9, -10, -57, -66, -20, 5, 125, -8, 106, -83, -8, -1, -89, -13, -114, 31, -97, -88, -120, 75, -21, 42, -22, -19, -111,\n 101, -117, 107, -30, -71, 121, -11, -99, 23, 88, -68, -8, -88, -85, 25, -128, 72, 47, -95, -122, -125, -87, 50, -82, 50,\n -14, -34, -92, 112, 102, -29, -87, -113, -106, -64, -18, 108, 26, 107, 32, 69, -37, 120, 10, -113, 118, -20, -2, 38, -46,\n 93, -116, -63, 23, 126, -19, 25, -55, -113, -95, -99, 121, -55, 106, -122, 29, 72, -32, 117, 103, -106, 86, -52, 104, -37,\n 15, -14, -122, -27, -33, 77, 79, 96, 4, 27, 34, -87, -6, 69, -69, -69, -93, 113, 3, -49, 69, -75, 56, 101, 106,\n 78, 57, 62, -15, -16, 92, -8, -63, -114, -48, -59, -82, 95, 52, 116, 108, 104, 11, -69, 78, 6, 16, 1, 4, 14,\n 36, 88, -48, -32, 65, -124, 9, 21, 46, 100, 56, 80, 0, 0, 1, 7, 35, 10, -96, 8, 49, 98, -61, -126, 15,\n 1, 108, -28, -40, -47, -29, 71, -112, 33, 69, -114, 36, 89, -46, -28, 73, -108, 41, 47, 98, 76, -88, 113, 100, -59,\n -115, 43, 9, -62, -20, 72, 49, -128, 77, -121, 11, 93, -106, -92, 72, 83, -92, -52, -101, 61, 29, -6, -12, -120, 51,\n -88, -48, -116, 10, -127, 74, 100, 57, 115, 105, 83, -88, 45, -97, 10, -20, 57, 53, 42, 84, -93, 59, 85, 62, 20,\n -86, 53, -27, 87, -80, 97, -59, -114, 37, 91, -42, 108, 88, -85, 87, -43, -82, 101, -120, 52, -93, 70, -93, 87, -67,\n -98, -91, 91, -41, -82, -39, -86, 108, -25, 22, -35, 25, 119, -24, -57, -117, 50, -105, 86, 37, 10, 56, 110, -31, -102,\n 84, -111, 30, -2, -23, 23, -95, 85, -57, 65, 115, 98, -115, -52, 118, 109, 86, -73, -106, -43, 10, 30, -37, -109, 35,\n -30, -69, -2, -95, 69, -113, 38, 93, 58, 100, 90, -51, -87, 85, 27, -52, -85, 23, -76, 105, -40, -79, -47, 14, 69,\n -51, 122, 47, 95, -61, -84, 1, 83, 117, 74, -8, -90, 83, -117, 46, 43, 7, -83, 73, 24, -13, -17, -103, -89, 99,\n 54, -100, -24, -72, -7, 98, -29, -61, 21, -41, 94, -51, 50, 115, 117, -21, -103, 111, -13, -12, 44, -37, -5, 119, -16,\n -31, 65, 82, -57, 94, -34, -68, -50, -18, -30, -43, -81, 79, 60, 25, -29, -21, -94, 55, 79, -21, 110, -1, -5, -16,\n 68, -38, -48, -87, -73, 126, 59, 84, -30, 120, -72, -104, -29, -115, 53, -34, -116, -21, -17, 49, -14, -50, 83, -80, 41,\n -56, -2, -21, 108, 34, -10, 34, -108, 112, 66, -80, 18, 92, -16, -62, -43, -46, -93, 112, 67, -39, 4, -77, 78, 37,\n -86, 78, 3, -118, -90, -107, 112, 10, 44, -90, -86, -118, -77, -112, -71, 18, 31, -37, 77, -70, -57, -108, -102, 46, 58,\n 4, 49, -76, -47, -75, -89, 42, -37, -114, 39, -30, 56, -12, -15, 71, 9, 87, -68, 113, 72, -84, -128, 52, 114, 52,\n 15, -33, -5, -22, -60, -58, 104, 91, 14, 57, -59, -28, -5, -52, 64, 5, 3, 67, 48, -66, -53, 90, -126, 18, 61,\n 24, -119, -12, 50, -71, 39, -35, 123, -85, -84, 18, -113, 52, -13, 76, -46, -124, -4, 114, 77, 7, -47, 116, -77, -77,\n -103, 62, 4, 81, -54, -105, 66, -2, -124, 9, 63, -121, 32, -30, 107, -56, -25, -24, -29, 75, -51, 40, 9, -108, -18,\n 58, 54, 11, 5, 46, -52, -93, 108, -61, 11, -52, 55, 27, 117, 116, 73, 67, 35, 109, -53, -90, 29, 31, -75, 52,\n -52, 4, 43, 125, -47, 36, 38, -21, -53, 19, 75, 27, -97, -93, -76, 83, 80, 47, 27, 49, 63, 26, 37, 85, -107,\n -50, 39, 73, 100, -108, -52, 87, 47, -107, 117, 86, 64, 87, 93, -112, 43, -8, 102, -75, -76, 69, 37, -105, -52, -75,\n -43, -15, 14, 45, -11, -42, 1, 41, 101, 117, 79, -53, -4, 66, -83, 86, 91, 85, 35, -86, -71, 97, 53, -27, 49,\n 68, 93, -85, -107, -107, -39, 102, -85, -85, 8, 66, 107, -83, 53, -111, 65, -76, 78, -30, 118, -73, -93, -126, -67, 49,\n 48, -63, -74, -61, -42, 63, 49, 109, 91, 55, -37, -88, -26, 42, 108, -80, -77, -54, -20, -10, -34, 55, -33, -123, 87,\n -77, -82, -16, -11, 118, 75, -99, 68, 51, -18, 37, 19, -5, -22, -46, -39, -106, -22, -20, 109, -77, 1, -37, 117, 120,\n -33, 42, 81, 26, 76, -38, -97, 62, -11, -9, -30, 35, -7, -125, -40, 75, 13, 49, -34, 21, -32, -124, -21, -30, -17,\n -41, -32, -114, -123, -24, 92, -91, 42, 30, 89, -56, -26, -100, -118, 113, -29, 80, -59, 45, -40, 100, 72, -87, -11, -8,\n 102, 31, -11, -123, -103, 50, -118, 113, -34, -48, 74, -26, -2, 66, 51, -111, 83, 81, -55, 13, 85, 42, 17, -91, 34,\n 15, -49, -55, -46, -43, 121, -25, -128, -125, 123, -115, -79, 37, 17, -19, -39, 103, -84, -45, -124, -102, -29, -85, -77, -114,\n -80, -27, -74, -46, 36, -103, -44, -8, 8, -115, 55, 58, -115, 37, -14, -86, 54, -77, 103, 76, 21, 74, -96, -73, -66,\n 80, -39, -67, 56, -37, 74, 89, -81, -13, 86, -17, 105, -71, 83, -42, -37, -51, 59, -89, -22, -72, 49, -76, 83, 28,\n 79, 102, -102, -91, 62, 85, 109, -76, -109, 114, 92, 41, -31, 14, -114, 44, -45, -103, -5, 38, 114, -22, -116, 36, 6,\n 57, -15, -65, 59, 23, -38, 114, 12, -69, -10, -4, 107, 116, 65, 43, -4, 101, -50, 125, 37, -102, -72, -126, -17, -44,\n -119, 41, 22, 87, 84, -106, 103, 116, 65, -97, 123, -57, 17, 53, 119, 113, 116, -34, -111, -76, -3, -68, -63, 123, -49,\n -8, -74, -74, -75, -76, -7, 59, -83, -26, 125, 29, 118, -32, -29, -52, -82, 70, -105, 127, -41, 107, -38, -52, -87, -9,\n 83, 120, -20, -21, -107, 30, -8, -20, -49, 36, 12, 89, -84, 98, 37, 51, 120, -18, -124, 91, -98, -7, -14, -66, 101,\n 16, 61, -55, 54, -33, 62, 108, -21, -113, 87, 88, -47, -18, -21, 39, -117, 111, -23, 73, -74, 95, -68, 17, -45, 94,\n 95, -4, 7, 125, -81, 124, -84, 74, 75, 1, -101, -41, -66, -1, 65, -18, 113, -2, -17, -21, 21, 73, 114, 7, 32,\n -33, 108, -55, 112, -5, -93, -96, -18, 24, -104, -84, 10, 2, 73, 112, 122, 1, 96, 120, -58, -123, 40, 2, 25, 47,\n 125, 28, -20, -115, -1, -16, -73, 49, 105, -107, 14, 64, 74, -109, -110, -24, 50, 88, -65, -30, 93, 48, 106, 47, -4,\n -103, 8, -49, 102, -79, 32, -127, -49, 54, 54, -44, 22, 9, -99, -57, 67, 25, -50, -112, 96, 117, 43, -99, 91, -32,\n 66, 67, 36, 110, 37, -120, -17, 113, 97, 18, 5, 38, -93, 120, 9, 43, 103, 13, 99, 23, 16, 17, 38, 23, -25,\n 64, 113, -119, 65, -69, -33, 4, -115, -24, 68, 48, 90, 112, -117, 109, 10, -29, 122, 96, 4, -88, -2, -3, -120, 105,\n -127, 58, 31, 118, -48, -120, 58, -12, -115, -47, 111, 104, 73, 79, 119, -56, 87, 70, 60, 126, 70, -114, -41, -53, 35,\n 120, -10, -109, -91, -73, 52, -15, 46, -38, -79, -48, -63, -62, 119, -74, 28, 105, 113, -113, 33, -85, -48, -119, -122, -90,\n -89, 62, 70, -46, 92, 123, -44, -97, 36, 69, -74, 52, 64, -70, 103, -126, 14, 20, 100, -46, 2, 37, 59, 55, -54,\n 69, -127, 112, 92, 36, 25, 37, 118, 50, -55, 84, -46, -110, 97, 124, -37, -5, 58, -71, -54, -102, 89, 39, -109, -101,\n -53, -107, 10, -75, -89, 49, -106, -123, -14, -112, -118, -100, 78, 41, -123, 40, 46, 84, 114, 5, -106, -61, -2, 4, 85,\n -23, -74, -9, 74, 98, -118, 107, 82, -2, -5, 95, 1, 43, 22, -56, -15, 49, -82, -112, -70, 124, 30, 47, -87, -24,\n -53, 64, -118, -114, 108, -55, 36, -90, 49, -39, -120, -86, 19, -14, -117, -101, -90, 97, 91, 15, -35, 39, 63, 79, 101,\n 115, -120, 125, -111, -32, 125, 100, -103, -95, -3, 116, 105, -125, -40, 68, -112, 42, -127, 53, 78, 110, 50, -55, 105, -124,\n 10, -25, 101, -16, 89, -102, 114, 102, -24, -100, 127, 25, 86, 8, 55, -103, 21, 20, -127, -19, -102, -67, 108, -29, 21,\n -95, 39, 32, 82, -46, -77, -125, -100, -76, -25, 63, -111, -88, -49, 4, -50, -115, -117, 22, -3, 28, -5, -32, -55, 68,\n -72, 24, -48, 93, -3, 3, 90, -110, 30, 26, 71, 126, 89, -77, 45, -11, -108, 40, -3, 56, -6, -46, 105, 5, 40,\n -93, -38, 58, -35, -18, 96, 42, -78, 81, -102, -109, 65, 1, -35, -52, 96, 60, -54, 56, -121, -94, -76, -95, -46, -108,\n 104, 69, 111, -118, -49, 113, -127, -110, 123, -122, -71, 14, 50, -113, 42, 56, 67, 70, -47, 60, -52, -102, -35, 74, -43,\n 6, 66, 44, 102, 83, -87, -25, 99, -90, 12, 7, 118, 84, -80, 98, -55, 124, 9, -116, 33, 56, 35, 88, 41, -124,\n -122, -11, 126, 59, 36, -42, 84, 119, -7, -55, -91, -111, 52, -99, 88, -20, 42, 68, -83, 122, 32, -41, 64, -52, -87,\n 106, -59, -2, 99, 29, 17, -7, -80, -22, -119, 40, -123, 56, -28, 43, -30, -94, -89, 81, -73, -18, 114, 84, -120, -52,\n 11, 59, 125, -8, 88, -107, 2, -106, 69, 3, 53, -44, 94, 11, 91, 70, 87, 37, 11, 114, 56, 69, -25, 101, -97,\n -7, -61, -48, 29, 112, -89, 11, -107, -86, 98, -26, 90, 90, -122, 49, -47, -118, 92, 2, -19, -86, 44, -21, 89, 86,\n -114, 21, -78, -90, -75, -117, -35, 96, -21, -55, 5, -74, 53, -79, -76, -101, -22, 105, -33, -6, -37, -55, 10, -107, -95,\n 8, 92, -104, -83, 94, 123, 91, 26, 62, 18, -107, -77, -20, -47, 32, 39, 10, -37, 8, -110, 86, -76, 35, -116, -105,\n 69, 122, -21, -37, -103, 114, -87, 86, -109, 107, -36, 112, 89, 42, -87, -29, 34, 55, -125, -117, -63, -18, 123, -98, -69,\n -42, -13, -14, -107, -92, 101, 21, -24, 116, -63, -75, 92, 109, -23, 16, -75, 67, 53, 85, -125, 22, 39, -62, 126, 54,\n 80, -68, 96, -91, 84, 121, -19, 26, 94, -85, -19, 87, -113, 44, 68, -20, 110, -85, 11, -33, 12, -27, 102, 70, -26,\n -67, 43, 77, 103, 87, -94, -74, 25, 49, 82, 0, 22, -16, 11, 63, -120, 45, -27, 58, -105, -80, -73, 21, 41, 101,\n 83, -22, -34, -9, 34, 56, 53, 68, 116, 108, 100, 67, 88, -91, -82, -12, 73, 42, 39, 94, 19, -123, 43, 108, 97,\n 2, -14, -53, -88, -54, 76, 93, -2, 97, 33, 76, 37, -23, 6, -107, -102, 114, 25, 112, 124, -43, 37, 98, 22, -45,\n 119, -86, 107, -116, 104, -114, 67, -9, -30, -53, -6, 68, 95, 20, -34, 38, 116, 91, -85, -74, 42, 69, -39, -97, 64,\n -106, 113, 99, 18, 90, -28, -43, 38, 118, 89, -62, 61, 23, -110, 109, 76, -89, 119, -71, 56, 56, 21, 54, -87, -112,\n 71, 12, -30, 16, -29, -49, 116, -57, -117, -18, -115, 35, -52, 39, -17, 2, 54, -65, -65, -12, -14, 83, 109, -74, 46,\n 49, 35, -7, -66, -11, -116, 42, 112, 117, 124, 96, 42, -69, 6, -126, -60, -5, -22, 105, -25, -20, 48, -19, 112, 57,\n 102, 9, -83, 51, 76, -19, 21, -24, -115, 54, 90, -61, 79, 94, 96, -97, -33, -71, 99, 30, -9, -40, 89, 107, 67,\n -50, -116, -105, 27, -35, 2, -117, 105, -98, 45, 30, 112, -98, 37, -35, 59, 82, 89, 122, -61, -89, 94, 84, 110, -125,\n -20, 97, 81, 98, 58, -45, 88, 77, 22, -114, 33, 44, 22, 34, -93, -84, -75, -119, 84, 117, -83, 19, 99, 106, 86,\n -13, -82, -65, -2, -75, 105, -80, 91, 125, -40, 34, -97, 16, -44, -20, 125, 53, -96, 105, -51, 92, 68, -29, -102, 77,\n -89, -118, 91, 127, 14, 77, -48, 82, 27, -5, -91, -54, 115, -10, 32, 55, -23, -39, 61, -81, -74, -41, 39, 61, 10,\n -124, -77, -37, 109, -66, -31, -46, -108, -70, 27, 119, -84, -2, -93, -73, -27, -97, -10, -44, 92, -64, -42, -10, -24, -28,\n -43, -19, 122, -47, -51, -55, -82, 86, 116, -104, 121, 105, 72, -86, 126, 16, -46, 56, 18, 92, 0, 57, -106, 31, 88,\n 67, -75, 118, -17, -124, -113, -64, -21, 109, -25, 16, -25, -69, -36, 99, -6, 50, -65, -5, -67, 93, 120, -29, 53, -53,\n 13, 46, 49, -102, 59, -53, 41, -74, 74, 57, 64, -110, 115, -77, -94, -109, -13, 43, 79, 63, 92, -110, -78, -69, 100,\n -32, 8, -87, -42, 68, -38, 117, -29, 51, -49, -15, -96, 10, 119, 115, -25, 104, -38, -29, 77, -28, 76, 63, 83, -68,\n -100, 66, -30, 9, -86, 124, -82, -102, -54, -43, 91, 36, -94, 21, -70, 124, -24, -30, 47, -86, 24, 28, -17, 6, -101,\n -8, -101, -108, -34, -116, -50, 13, -68, -22, 57, 109, 107, -87, -49, -54, -22, 64, -47, 102, -12, 122, -77, 28, -28, -127,\n 85, 98, 115, 45, 10, -22, 75, 71, -99, -36, 102, -82, -94, 100, -99, 61, 103, 122, -31, 69, -74, -15, -3, 108, -38,\n -35, 103, 48, -80, -121, 125, -42, 117, -1, 56, -115, -51, -114, -44, -39, 74, 29, -42, -51, 14, -7, -32, 35, -99, -33,\n -72, 79, -102, -18, 124, -49, 41, -78, 77, 70, -17, -68, 3, 6, -77, 123, -97, 15, -39, 99, 41, -64, 127, 110, -105,\n 50, 80, 118, -9, 50, -37, 77, -58, -49, -1, -37, 119, 110, 28, -5, 40, 71, -2, 45, -81, -56, -17, 45, -27, 127,\n 83, -109, -70, -42, 45, -79, -114, 21, 14, -106, -102, 71, -19, -25, -73, -102, -32, -126, 18, -36, -14, -100, -59, 125, -4,\n 52, 14, -78, 71, -85, 8, -14, -87, 63, -39, -22, -11, 102, 105, -41, -13, -111, 46, -58, -62, 118, 31, 105, -49, -40,\n 15, -37, 125, -60, 70, -21, 105, -15, 0, -84, 51, 85, 54, 40, -73, -63, -49, 54, -15, -3, -24, -4, -96, 79, 50,\n -67, -72, 110, -22, -16, -15, -11, -4, -50, -89, -10, -36, 24, -92, 62, 72, 115, 45, -59, -114, -78, 63, -106, -108, -10,\n -23, -29, 29, -82, 58, -17, -13, 55, -24, 56, -98, -114, -73, -65, 117, -48, 111, -125, 49, -11, 75, 63, 2, 84, -69,\n -23, -53, -67, 21, -77, -72, 60, -61, 48, -98, 107, 54, 115, 75, -91, -61, -127, 21, -29, -53, 63, 48, 10, -67, 68,\n -103, 64, -63, 34, -94, -66, -126, -74, -11, -21, 64, -102, -85, 58, 4, 36, -68, 28, -119, 13, -86, -126, -107, 87, 3,\n -101, -1, -117, 63, -13, -93, 64, 97, 107, -67, 20, 124, 56, -86, -30, 64, 63, 99, -69, -22, 107, 63, 44, 3, 24,\n 12, -12, 61, 57, 65, -81, -100, -104, 24, -125, -86, -79, 10, 25, 63, 22, -20, -90, 92, -94, 45, -67, 11, -68, -89,\n -109, 65, -63, 43, 45, 78, 91, 48, -73, -77, -113, 28, 44, -67, -99, -46, 30, 118, -7, 35, 35, 92, -2, 62, 33,\n 28, 66, 34, -52, -88, 21, -76, 36, 111, -14, 64, 26, 52, 64, 49, -52, 36, 78, 115, 39, -54, -118, 66, 49, -46,\n 47, 19, 108, -95, -63, -77, -110, -67, -78, 45, 45, 12, -85, -5, -96, -101, -32, -61, 60, 61, -53, -118, 25, -108, -71,\n -7, -110, 62, -51, -38, 48, 94, -93, 51, -17, 8, -65, 75, 2, 51, 35, -45, 36, 32, -12, -69, 46, -116, 67, -20,\n 57, -88, -121, 73, -101, 68, 20, -64, -57, 57, -93, 1, -36, 67, -43, 106, 47, 63, -28, -68, 57, -30, 31, 53, 20,\n -103, -10, -64, -92, 78, -93, -62, 67, 84, 68, 57, 92, 40, 103, 122, -79, 13, 42, -94, -18, 114, -65, 62, -52, 67,\n 104, 75, 30, -109, 67, -61, -39, -128, 31, 114, 50, 60, 94, 65, -90, -5, 19, 69, 14, -117, -71, -111, 34, -77, 37,\n 116, -65, 37, 43, -64, -24, -117, -107, 112, -21, 13, 10, -39, -113, 14, -15, 68, -14, 90, -108, 71, -60, -59, 10, -86,\n 42, -68, 90, -58, -3, -47, -66, -68, 122, -102, 94, 83, -74, 98, 27, -58, -65, -101, 16, -74, 57, 70, -91, 57, -85,\n -66, -125, -108, 59, 98, 70, 27, 51, -106, -61, -40, 61, 14, -21, -59, -121, -62, 62, 92, 1, -61, 73, -92, -72, -2,\n 113, 18, 13, -110, -59, 89, -44, 69, -40, 113, -86, -42, -127, 70, 113, -20, 30, 3, -55, 57, 83, -76, -75, -82, -93,\n 58, -10, -2, 74, -58, 76, -71, -70, -1, 48, -73, 0, -100, 34, 64, 124, -94, 106, 19, 41, 91, -60, -107, 97, -53,\n 71, 61, 43, 54, -15, -22, -86, -96, 75, 64, 77, -62, 37, -68, 25, 72, -126, 44, 72, 59, -12, -98, -124, 124, 34,\n 40, -84, -74, 19, 107, -56, -104, -80, 8, -120, -84, -77, 17, -108, -69, 97, -62, 57, -24, -24, 69, -95, -29, 51, -117,\n 28, 67, 36, 100, -100, 107, -55, 68, -40, -128, -106, 86, -63, -81, 124, 43, -118, -109, 68, 73, -27, -13, -107, 22, 90,\n -91, -38, -15, -63, 14, 123, 29, -37, -101, 38, -99, 90, 38, -40, -29, -112, 82, -20, 16, 54, -45, -111, 44, -28, -92,\n -98, 100, -75, -60, 107, -92, 79, -127, 69, -42, -29, 21, 44, -117, -89, 39, 52, 74, 62, 84, -62, -85, -94, -88, 91,\n 52, 35, 70, 34, 65, 116, -14, -63, -88, -92, -88, -87, -108, -76, 7, 2, -54, -65, 120, -56, 72, 82, -88, -83, 28,\n 41, 34, -93, 61, -92, 60, 51, -43, 34, 49, 115, 100, 15, -56, 64, -98, 108, -124, -81, 52, -70, -97, 78, 92, -53,\n 70, 83, 58, -65, -93, 13, 0, -6, 58, 124, 100, -54, -89, -61, -56, 22, -87, 63, 38, 100, -57, 36, 52, 47, -105,\n 43, 56, -124, -4, 73, -128, -86, 27, 81, 123, -91, 103, 17, 38, -62, -116, -56, -88, -100, 24, -47, -60, 72, 20, 105,\n 70, 1, -63, 67, 68, -61, -58, -2, 36, -116, 43, -68, 84, -84, 109, -68, -52, -67, 20, 27, -62, 73, 75, 17, -111,\n 60, -84, -4, 76, 47, 76, -85, -61, -76, -113, -127, -109, -90, -15, -6, 61, -32, 83, -97, 30, -92, 58, -114, 99, 27,\n -111, 4, 70, -103, -116, -51, -81, 113, -87, 99, 116, -96, 43, -124, 19, 121, 73, 30, -36, 20, -80, -126, -103, 18, 110,\n -117, 19, -82, -112, -73, -33, 108, 31, -43, 76, 20, -20, 36, -50, -27, -111, 28, -16, -100, -52, -81, 124, 61, 109, 4,\n -114, -37, -100, 15, -41, -13, -52, -15, -87, -51, 41, -103, 78, 50, -13, 38, 47, 26, -55, -23, -79, -80, 50, 59, -61,\n -92, -72, -49, -43, -20, 70, -62, 43, -49, 101, -6, -56, -13, 36, 68, 96, 107, -78, -30, 88, 62, 7, -22, 62, -8,\n -100, 72, -6, 72, 17, 122, -84, -81, -59, 100, -52, 3, -111, 68, -115, 107, 61, -128, -124, 58, -55, -44, -82, -86, 84,\n -93, 24, 27, 80, -84, 43, -55, 122, -31, -114, 79, 75, 80, -22, -84, 67, -30, 26, -49, -25, 121, -48, 26, 26, 78,\n 15, -13, 41, -83, -108, 62, -76, 12, 67, -109, -93, -85, 111, 44, 70, -79, 50, -53, 25, 117, 74, 9, 18, -47, -8,\n 60, -106, -116, -101, 37, 20, 13, -48, 78, 43, 81, -108, 122, -55, 61, 44, -94, 11, 109, 59, 75, -4, 81, 101, 26,\n 80, 2, -11, -53, -74, -44, -47, -3, -46, 16, -29, -116, -2, -63, 14, 109, -63, 78, 123, 63, -6, 11, -46, 25, 108,\n 55, -106, -95, -58, 42, 53, -109, 38, -3, -100, -12, 76, -70, 79, 83, 82, 40, -75, 31, -54, -23, 41, -38, -52, 26,\n -56, -100, 75, 44, -91, -53, 27, 36, 79, 61, 36, 67, 90, -71, -47, -38, 58, 72, 3, -3, -119, 30, 27, -45, 51,\n 21, 74, -38, -111, -89, -108, -116, -58, -18, -68, -69, 84, -20, -49, -82, 76, -50, 56, 77, 59, 51, -107, -103, -31, -61,\n 15, -84, -84, 36, 8, 89, -44, 62, 93, -60, -103, 4, -56, 112, -12, -100, 114, -116, 40, -52, 49, -44, 67, 69, -44,\n 24, 109, 35, 73, -27, 20, -43, 11, 83, -85, -4, 75, 0, -103, -44, 83, 67, 63, 43, -38, 39, 24, 58, -50, -51,\n 116, 78, 78, 53, 60, 79, -75, -72, -55, 12, 85, 51, -38, 84, 59, -35, 77, 83, -27, 73, 84, 45, 76, -80, 68,\n 76, 57, -29, -45, 70, 33, 36, -33, -48, -97, 116, -103, 83, -57, -29, -77, -37, -85, -90, 47, 21, -98, -25, 104, 63,\n -50, -124, -86, 94, -115, -68, 55, -126, 28, -83, -100, 39, 97, -51, -105, -125, -20, 25, -90, -77, 46, 33, 91, 56, -73,\n -95, 67, -49, 83, 69, -52, -124, -95, 75, 108, 86, 78, 10, -53, 105, -51, -69, 106, 37, 48, -72, 121, -103, 108, 5,\n -100, 109, -51, -70, -112, 18, 67, 112, 45, -73, -14, -101, -46, -72, -102, -100, -117, -2, 58, -41, 92, 109, 18, -26, 92,\n 87, -107, 107, 87, -89, 115, 28, 105, 12, -59, 60, -70, -50, -71, 68, -72, 74, 44, 88, 39, 116, 88, -13, -116, 70,\n -62, -126, -61, 32, 68, 69, -127, -91, -42, 86, -76, 33, 122, 28, 75, -64, 11, -49, -70, -6, 83, -55, -14, 70, -101,\n 76, -82, -26, -93, 88, 49, -30, -66, -117, -123, -63, -116, 37, 37, -56, 36, -43, 124, 90, 41, -3, -28, 64, -115, -108,\n -56, 36, -78, 45, -109, -27, -114, 74, 75, 89, -93, -93, 82, 5, 116, -75, 107, 109, -70, -88, -13, 82, 90, 29, 90,\n 91, -115, 71, -117, -55, 48, -100, -35, 62, -99, 29, -40, -22, 19, -51, 56, 114, 51, -68, -71, -87, -101, 3, -83, 116,\n -5, -44, -66, -116, 75, 97, -31, 88, 27, 4, -66, -50, 88, 90, -104, -5, 43, 82, 60, 61, -76, 43, -41, -105, -107,\n -96, 11, 52, -47, 115, -13, 68, -78, 117, -94, -64, -68, 84, -83, 19, 65, 81, -27, 85, -81, -107, 90, 10, 125, -73,\n 101, 81, -75, -94, -83, -106, -123, 124, -64, 66, -12, 51, -75, 93, 83, 10, -102, 24, 15, 37, -100, 23, 13, 44, 59,\n -20, -52, -68, -99, -37, 107, 113, 85, -6, -78, -64, -78, -28, 40, 19, 74, -44, -76, 117, -47, 110, -94, 89, 114, 41,\n 84, 104, 90, -81, 50, 84, -36, -77, 27, 90, 119, -71, -100, -89, 58, 88, -76, -83, -43, -88, 122, -46, -2, -39, 115,\n 23, 88, -115, 56, -100, 99, 42, -50, -51, 60, 56, 69, -57, -34, 115, 52, -47, -19, -37, 75, -13, 43, -103, 75, -36,\n 124, -79, 92, 98, -13, 19, -83, 45, -48, -42, 29, -89, -69, -123, -35, 3, -108, -38, -58, 77, 82, -7, 66, 29, -36,\n 29, -42, -120, -75, -70, 76, -20, 93, -21, -124, -96, -33, 77, 88, 40, 42, -54, 35, -5, -109, -28, 5, -45, -30, 61,\n 51, 70, 100, -80, -21, 85, 94, -27, 124, 54, 83, -46, -89, 112, 76, -98, 91, -117, -34, 10, -44, -94, -39, -67, -107,\n 82, -119, 87, -84, -95, 94, 89, 101, -97, -92, 18, 82, -90, -24, 94, -17, -3, -34, 76, 17, 43, 60, 5, 88, -84,\n 99, 95, -13, 69, -109, -94, 28, -75, 80, 25, -37, 93, 101, 37, 40, 27, 84, -87, -30, -106, -104, 93, -37, -107, 92,\n -34, -91, 89, 95, -98, -93, -40, -22, -20, -33, 69, -52, -111, -47, 28, -35, 17, 19, 78, 5, 102, 91, -125, 77, 96,\n -122, -7, -71, 119, 124, 92, -56, 101, -32, 72, 3, 76, -71, -109, -46, -128, -107, 96, 76, 77, -42, -111, -46, -85, -114,\n 36, -32, -102, -93, -87, 2, -71, 59, -35, 117, -35, -120, 21, -32, -57, -117, 18, -118, -23, -52, -109, -125, -116, 25, -93,\n 95, 20, -74, -102, -47, -38, 26, -61, 36, 89, 25, -42, 37, -82, 4, -36, -107, -101, 97, 61, -46, -114, -53, 117, 94,\n -91, 43, -2, 41, -104, -67, 84, -61, -8, -31, -113, -95, 93, 96, -75, 29, 31, -10, -93, 115, 82, 51, 89, -67, -39,\n 109, 83, -30, -46, 68, -111, -65, 68, -63, -69, 89, -30, -103, 125, 78, 16, -91, 98, 121, -19, 84, 36, -75, 28, -2,\n -83, -55, 15, -36, -68, -51, -53, -30, 58, -51, 96, -55, 83, -49, -30, 35, 19, 49, 54, -64, 28, 54, 73, 53, -58,\n 94, -26, 107, 88, 87, -46, -32, -62, -77, 68, 124, 27, -59, -17, -83, -40, -30, 123, -61, 65, 1, -29, -46, 124, -29,\n 63, -66, 60, -42, 92, 34, 41, 118, 86, -2, -109, -75, 29, 76, 50, 47, -122, -50, -63, -11, -74, 27, 36, -76, -2,\n -94, 99, -50, 93, -42, 45, -126, 100, 109, -43, -75, 67, -82, 56, -124, 101, 84, 18, 108, 83, -44, -107, 26, 36, -114,\n 100, -65, 60, -46, -33, 17, 101, -128, -126, -40, 77, -93, 60, -24, 26, 98, -63, -60, -47, 67, 117, -71, 127, -107, -27,\n -27, -108, -45, 82, 78, -82, -90, 114, -93, -42, 51, -59, 18, -86, -28, 32, -119, 85, 30, -75, -27, -2, -75, 66, 108,\n -126, 102, -112, 124, 90, 102, -61, -60, 76, 86, 80, 107, 13, 85, 3, 94, 101, 97, 54, 90, 24, -67, 32, 106, -82,\n -26, 74, -77, 96, 21, -106, -57, -119, 52, 70, -28, 73, -61, -41, -4, -26, 58, -114, 99, 113, 38, -30, 122, -20, 102,\n 108, -34, -60, 116, -74, 62, 102, -2, -18, 34, 70, 125, -78, 47, 114, 103, 93, 113, 95, 74, -22, -41, -104, 100, -29,\n 115, 6, -48, 123, 94, -74, 20, 93, -116, -84, -19, 86, 127, -66, 20, -128, 30, -93, 113, 38, 103, -1, -28, 60, -28,\n -37, 89, 0, -52, 95, -42, -19, -94, -56, 65, -39, 16, 109, -24, 42, -42, 84, -120, -82, 89, 74, 4, 42, -32, 28,\n 89, 106, 77, -95, 22, 94, 62, -14, -39, 100, -113, -50, 24, -45, 107, 100, 55, 38, -28, 11, 29, 14, 102, -117, 104,\n -74, 101, -24, -67, -127, -65, -106, -58, 94, -113, 82, -72, -104, -106, -23, -119, 110, 99, 21, 69, 103, 113, -60, -55, 32,\n 73, -58, -99, -10, 95, 23, 101, -36, 125, -79, -23, 91, -98, -23, 2, 2, -44, -75, 92, 84, -116, 78, -22, 98, -52,\n -114, -59, 50, -25, 66, 113, -22, -89, 102, -72, 8, -117, -22, -88, -10, -26, 81, -74, -22, -117, -23, -46, 79, 5, -81,\n 13, -36, 41, 55, 44, 92, 69, -39, 39, -114, -18, -45, 124, -58, 13, -78, -10, 23, 82, -98, 58, 120, -31, 106, -83,\n -15, 33, 35, -126, 74, -121, -44, -111, -117, -75, 88, -112, -61, -21, -99, 46, -62, 122, 54, 46, -23, -99, -83, 76, -51,\n -49, -34, -20, 26, -63, 14, 92, -25, 104, 56, 116, -99, -21, -36, 101, 69, -7, -83, 44, -25, 91, -59, 64, -94, 37,\n -7, 104, 103, -103, -55, -57, -78, 74, 62, -79, -106, 108, -2, -105, 14, 106, -69, -98, -74, -53, 102, -84, 51, -86, -65,\n -20, 52, -23, 58, 105, -20, -20, 81, -25, -49, 114, -19, -122, -66, -53, -32, -78, -20, -61, -90, -20, -1, 90, -106, 57,\n 9, -19, 35, 52, -24, -73, 22, 109, -121, 38, 109, -83, -66, -82, -55, 67, 78, -84, -10, 78, 71, -82, 15, -39, 102,\n 83, -82, 27, 97, -22, 91, 110, 119, 62, 99, 98, -26, -109, -37, -58, 109, -104, 116, 27, 16, -98, 31, -24, -58, -103,\n -14, -19, -51, 26, 11, 76, -32, -42, 91, -98, -94, 101, -30, 118, -31, -111, 110, -68, 31, -78, -52, -92, 13, 102, -97,\n -36, 97, -40, -82, 60, -118, 11, -17, 127, 14, 107, -21, -114, -104, -76, 54, -18, 79, -106, 51, 41, 68, -29, -34, 118,\n 30, -110, 99, 60, -10, -106, 111, 35, -111, 86, -62, -2, -110, -19, -58, -62, 118, -60, -48, 31, 92, -34, -110, 57, -31,\n -2, 38, -24, -3, -51, 110, 1, 127, 20, -88, 68, 109, -114, -87, -18, -6, -50, -41, -90, 97, -32, -85, 29, -40, 6,\n -33, -76, -83, 13, -16, 9, 7, -25, -31, -10, -36, -12, -71, 111, -4, 22, -22, 118, 114, -16, -14, 58, -16, 110, 105,\n 25, 53, 11, 65, 23, -9, -25, -60, -2, -43, 19, -57, 44, -52, 69, -17, -110, -90, -38, 68, -42, 109, -90, 117, 92,\n -101, -14, -15, 17, -9, 22, -71, -76, -15, -59, 59, 95, 105, 26, 91, 37, 71, -2, 86, 59, 21, -14, 35, 68, -68,\n -43, -106, -16, 33, 15, 110, 127, -93, 110, 20, -9, -68, -77, -78, 97, -72, -35, -17, 68, 110, -17, -93, 49, -24, 41,\n -9, 94, 60, -77, -14, 43, 23, 100, 12, 70, -42, 28, 102, -19, 84, -67, -21, 48, -1, -105, -9, 61, -21, -31, 45,\n -13, 49, -92, 109, -2, -98, 31, 59, -26, 69, 54, 111, -13, 127, -122, -16, -58, 34, 115, 12, 103, 114, 43, -58, -63,\n 88, -68, 115, 60, -65, -21, 25, -113, -18, 78, 37, 36, 63, -1, 115, 26, -4, 91, 23, 82, -17, 96, -69, -26, -83,\n 62, 116, 97, 102, 106, 126, -69, 54, 17, 55, 87, 118, -108, -26, 71, -105, -14, 40, -3, -40, 60, -41, 115, 71, -79,\n 116, 57, -21, 50, 63, 13, -22, -15, -18, -12, -28, 30, 71, 76, 47, 111, 81, 7, 28, -38, 5, 96, -11, 61, -11,\n -23, 30, 79, -106, 6, -16, 76, 119, 52, -81, 122, -11, -6, 109, 81, -30, 60, 52, 74, 87, -68, 112, -114, -36, 46,\n -105, -15, 59, 12, -94, 96, 87, -29, 90, -28, -50, 55, 69, 110, 87, 79, -30, -1, -28, -103, 104, -37, 109, 6, -105,\n 67, -17, -2, 105, 94, -9, -56, 98, -87, -62, 35, 38, -67, 100, 26, -17, 102, -30, 87, 106, 47, -10, -48, -107, -93,\n -72, -50, 118, 45, -66, 98, 42, -110, -89, 11, -82, 106, 70, 55, -15, 66, 14, -44, 52, -116, 108, -120, -2, 11, 104,\n 116, 39, -15, -66, 5, 119, -54, -48, -11, 112, 110, -60, 85, 103, 94, -34, -18, -40, 82, 74, 118, -13, 117, -27, -75,\n 43, 104, 48, 95, -32, 126, -81, 112, 66, -89, 50, -126, -65, 106, 95, 122, -8, -33, -3, -32, -38, -122, -13, 58, 23,\n -8, 56, 126, 104, -58, 110, -8, 47, -98, -26, 123, -65, -52, 106, -124, -25, -128, -57, 90, -105, 12, 90, 109, -30, -8,\n 16, -90, 39, -119, 87, 92, 95, 15, 98, 120, 31, -32, -50, -43, 113, 120, -65, -11, -44, 53, 101, 72, -12, -8, -113,\n 111, 102, 8, 63, 65, -25, 6, -38, -127, -66, 100, -29, 49, 62, -25, 85, 101, -100, -49, 121, -78, -36, 121, -97, 61,\n 35, 112, -13, -54, 64, 87, -20, 60, 61, -10, -94, 50, 122, -66, 44, 113, 68, 43, -60, -107, 79, 119, 45, 105, -7,\n -55, -70, 122, -113, 105, 118, 74, -106, -6, -93, 111, 122, -98, 63, -61, 125, -117, 17, 80, 55, 123, -101, -105, -61, 86,\n -97, 48, -80, -49, 105, -79, 95, -31, 119, -11, 116, -30, 21, -7, -96, -9, -20, -106, 26, -7, -74, -105, -74, -73, 39,\n 48, 39, 39, 122, 103, -74, -25, 56, 92, 123, -74, -49, -5, 64, 68, 122, 64, -89, -9, -104, -73, -8, -124, -49, 63,\n -63, -33, 106, -62, 47, -4, -67, -9, 84, -82, -41, 68, -125, -97, 50, -69, -113, -6, -57, -73, -47, 55, -105, 124, -22,\n 52, -37, -2, 27, 34, 119, -17, 107, 124, -45, -50, -4, -101, -116, 124, -105, -60, -13, -77, -81, 71, -48, 15, 125, -52,\n 39, -3, -89, -82, -38, -98, 47, 123, -11, -93, 121, 45, 20, 125, 3, 119, -3, 89, -36, -4, -116, 7, -51, 1, 68,\n 90, -120, -76, -3, 11, -57, -3, -68, -58, -66, -54, 70, 124, 68, 22, -91, 126, 38, 76, -32, 95, 116, -31, -81, 45,\n -35, 71, 94, -71, -105, -3, 34, -59, -51, -27, 55, -11, -26, 23, -45, -92, -124, 116, -34, 23, -89, -23, -84, -2, -22,\n -67, 126, -25, 34, -2, -33, -101, 124, 8, -27, -2, -18, 31, 50, 73, 127, 118, -16, -65, 37, 67, 78, -17, 72, 55,\n -1, -13, -105, -79, 111, 75, -3, 35, 95, 127, -100, 18, 127, -125, 122, 127, 65, 19, -47, -128, -53, -31, -54, 7, -120,\n 0, 2, 7, 18, 44, 104, 112, -96, 0, 0, 10, 23, 50, 108, -24, -16, 33, -60, -120, 18, 39, 82, -84, 104, -15,\n 34, -58, -116, 26, 55, 114, -20, -24, -15, 35, -56, -123, 2, 4, -114, 60, 104, -14, 100, -128, -110, 7, 71, 38, 12,\n -23, -14, 37, -52, -104, 27, 85, -94, 60, -39, 82, 38, -50, -100, 58, 119, -30, -92, 89, -45, -96, -128, -101, 24, 125,\n 6, -3, 105, 20, 40, -49, -92, 74, -105, 50, 109, -22, 84, 105, 73, -97, 71, -127, -94, 12, -6, -12, 42, -42, -105,\n 82, -89, 10, -51, -22, -11, 43, -2, 88, -122, 91, 127, 90, -19, 72, -77, -24, -44, -93, 93, -61, -78, 109, -21, -10,\n -19, 85, -107, 99, -45, -90, -84, 10, -9, 46, -40, -71, 85, -41, -30, -19, -21, 87, -93, -34, -96, -126, 7, -125, -108,\n 11, 64, 47, 93, -110, 127, 23, 51, 110, -36, 88, 110, -30, -107, 104, 11, -14, 117, 108, 57, 36, 98, -54, -107, 47,\n 115, -10, 59, -103, -14, -50, -88, -103, 19, 111, -18, 108, -6, 52, 106, -114, 103, 35, 35, 61, 44, 88, 113, -22, -40,\n 67, 7, -45, -82, 93, 90, 54, 110, -84, -97, -53, -22, 20, 124, -72, 46, -21, -107, 95, 121, -25, 46, 110, -4, 35,\n -28, -32, -96, -59, -34, 62, -18, -4, 57, 116, -73, 69, -101, 107, 117, 61, 90, 109, 88, -33, -47, -73, 115, -1, -115,\n 80, -7, -14, -18, -30, -57, -109, 127, 74, 61, -26, -21, -49, -84, -49, -13, -116, 90, -2, 125, -22, -43, -32, 9, -78,\n -121, 111, -1, 62, -2, -20, 9, -81, -37, -51, -98, 50, 63, -128, -98, 81, 54, 31, 125, 1, 26, 120, 32, -126, -70,\n -127, 87, 95, 123, 12, 38, -8, 32, 122, -12, 17, 24, 30, -124, 21, 90, 120, -31, 80, 11, 74, -73, 31, -122, 29,\n -54, 68, -44, -124, 5, 122, 56, 34, -119, 24, -14, -41, 90, 91, -124, -107, -72, -30, 76, 3, -122, -8, 31, -117, 49,\n -54, 120, -33, -119, 20, -78, 53, -35, -116, 57, 70, 4, -2, 98, -120, 14, -22, -8, 35, -112, -114, -115, 53, -105, 118,\n -46, -111, 68, 91, -112, 51, -14, 56, -95, -113, 73, 58, -7, 100, -118, 72, -99, 85, 36, 92, 91, 53, 9, 37, -115,\n 18, 46, -88, 34, -106, 93, 122, -23, 25, 90, 55, -79, 116, 37, 83, 86, 126, 57, -94, 124, 116, 33, 121, 38, -101,\n 109, -34, 69, -100, 107, -116, -103, -23, -90, -123, 105, -90, 69, 38, -99, 121, -22, 25, -38, 98, 86, -30, -71, -25, 113,\n 75, -34, 9, 40, -95, -123, -42, -87, -103, -95, 7, 10, -54, 85, -94, -115, 58, -118, -33, 89, -113, 2, -72, 40, 118,\n -110, 90, 122, 41, 116, -122, 97, 106, 31, -91, -110, -123, -71, 41, -88, -95, 50, 39, -26, -97, -24, 53, -28, -98, -88,\n -28, 117, -118, 34, -107, -87, -70, -22, -88, 104, 44, 25, -39, 82, 122, -81, -114, 87, 91, -91, -74, -22, 42, -23, -100,\n -2, -91, 52, 38, -100, -69, 58, 71, 106, -91, -91, 10, 123, -84, -116, 82, 25, 91, 24, -118, -56, 102, -86, 16, 75,\n -40, 5, -21, 44, -75, 94, 42, 123, 35, 125, -53, 86, 91, 37, -83, -64, -111, -43, -22, -74, -31, 62, 25, -87, -81,\n -80, -119, 27, 104, -73, -4, 77, 123, 46, -69, 57, 106, 58, 28, -71, -19, 26, -105, 110, -82, -14, -38, -85, 35, -72,\n 113, 53, 123, 47, 110, -55, -43, -92, 45, -65, 1, -17, -87, -34, -111, 2, -9, -2, -5, 29, 89, 6, 43, -84, -85,\n -97, 11, -53, -26, -81, 77, 14, 75, 28, -22, -112, 19, -57, 22, 109, -62, 22, 107, 12, -85, 73, 0, 111, -36, 84,\n 84, -33, 126, 60, 50, -95, 21, -109, 124, 89, -56, 54, 121, 124, 50, -53, -121, 10, -41, -14, 95, 86, 65, 108, 35,\n -52, 53, -113, -37, -80, -51, 111, 30, -119, 112, -57, 57, -5, 124, -77, 104, 63, -65, -7, 26, -49, 61, 11, 125, -12,\n -113, -21, 34, -99, -105, -117, -3, 45, -3, 52, -44, -37, -38, -23, 116, -44, 85, 91, -3, 106, -104, 70, -83, 124, 53,\n -41, 93, 39, 61, -104, -42, 94, -117, 61, -74, -95, -109, -115, -74, 53, -39, 105, -85, -99, -96, -39, 25, -81, -3, 54,\n -36, 73, -18, -25, 109, -60, 113, -37, 125, 119, -78, -45, -3, -117, 55, -33, 125, -93, 73, 55, 85, 104, -5, 61, 56,\n -31, -90, 17, -35, -79, -32, -123, 43, -66, -72, -100, -121, 35, -60, 56, -28, -111, -33, 90, -76, -71, -110, 91, 126, 121,\n 110, -47, 18, 53, -45, -102, -104, 123, -2, -71, 110, 41, 87, 126, -111, -52, -7, -126, 126, 58, -22, -24, 77, 71, 52,\n -125, -76, 38, -98, 58, -20, -96, 59, -2, -85, -46, -79, -37, 126, 59, 84, -23, 117, -114, 59, -17, -67, -73, 71, -69,\n 92, -81, -5, 62, 124, -22, -91, 3, -1, 43, -15, -55, 43, 111, 86, -23, -34, -115, -71, 60, -12, -47, 59, 83, -124,\n -85, -73, -75, 75, 127, 61, -15, -70, 3, 110, 61, -10, -35, -13, -98, 30, 66, 92, 122, 63, -66, -14, -69, -109, 127,\n 126, -10, -74, -95, -65, 126, -7, -36, -77, -1, 62, -4, -15, -53, 63, 63, -3, -11, -37, 127, 63, -2, -7, -21, -65,\n 63, -1, -3, -81, 24, 16, 0, 0, 59\n };\n}", "public void setVertices(float x0, float y0, float z0,\n float x1, float y1, float z1,\n float x2, float y2, float z2) {\n x_array[0] = x0;\n x_array[1] = x1;\n x_array[2] = x2;\n \n y_array[0] = y0;\n y_array[1] = y1;\n y_array[2] = y2;\n \n z_array[0] = z0;\n z_array[1] = z1;\n z_array[2] = z2;\n }", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "private void renderSkybox(int p_73971_1_, int p_73971_2_, float p_73971_3_) {\n\t\tthis.mc.getFramebuffer().unbindFramebuffer();\n\t\tGlStateManager.viewport(0, 0, 256, 256);\n\t\tthis.drawPanorama(p_73971_1_, p_73971_2_, p_73971_3_);\n\t\tthis.rotateSkybox();\n\t\tthis.mc.getFramebuffer().bindFramebuffer(true);\n\t\tGlStateManager.viewport(0, 0, this.mc.displayWidth, this.mc.displayHeight);\n\t\tTessellator var4 = Tessellator.getInstance();\n\t\tWorldRenderer var5 = var4.getWorldRenderer();\n\t\tvar5.startDrawingQuads();\n\t\tfloat var6 = this.width > this.height ? 120.0F / (float) this.width : 120.0F / (float) this.height;\n\t\tfloat var7 = (float) this.height * var6 / 256.0F;\n\t\tfloat var8 = (float) this.width * var6 / 256.0F;\n\t\tvar5.func_178960_a(1.0F, 1.0F, 1.0F, 1.0F);\n\t\tint var9 = this.width;\n\t\tint var10 = this.height;\n\t\tvar5.addVertexWithUV(0.0D, (double) var10, (double) this.zLevel, (double) (0.5F - var7),\n\t\t\t\t(double) (0.5F + var8));\n\t\tvar5.addVertexWithUV((double) var9, (double) var10, (double) this.zLevel, (double) (0.5F - var7),\n\t\t\t\t(double) (0.5F - var8));\n\t\tvar5.addVertexWithUV((double) var9, 0.0D, (double) this.zLevel, (double) (0.5F + var7), (double) (0.5F - var8));\n\t\tvar5.addVertexWithUV(0.0D, 0.0D, (double) this.zLevel, (double) (0.5F + var7), (double) (0.5F + var8));\n\t\tvar4.draw();\n\t}", "public void store(FloatBuffer buf){\n\t\tambient.store(buf);\n\t\tdiffuse.store(buf);\n\t\tspecular.store(buf);\n\t\tposition.store(buf);\n\t\tbuf.put(range);\n\t\tdirection.store(buf);\n\t\tbuf.put(spot);\n\t\tatt.store(buf);\n\t\tbuf.put(pad);\n\t}", "public void loadObjData() {\n this.updateGeometryAndUVs(SquareCoords, UVCoords, DrawOrder);\n SquareCoords = new float[0];\n UVCoords = new float[0];\n DrawOrder = new int[0];\n }", "public GlBuffer free(){\n\t\t//android.util.//Log.d(TAG,\"free()\");\n final int[] handles = new int[1];\n if(this.handle != UNBIND_HANDLE){\n handles[0] = this.handle;\n this.handle = UNBIND_HANDLE;\n GLES20.glDeleteBuffers(1, handles, 0);\n GlOperation.checkGlError(TAG, \"glDeleteBuffers\");\n }\n\n if(mVaoHandle != UNBIND_HANDLE){\n handles[0] = mVaoHandle;\n mVaoHandle = UNBIND_HANDLE;\n GLES30.glDeleteVertexArrays(1, handles, 0);\n GlOperation.checkGlError(TAG, \"glDeleteVertexArrays\");\n }\n\n\t\tif(mManagedBuffer && this.buffer != null){\n\t\t\tswitch(this.datatype){\n\t\t\t\tcase TYPE_BYTE :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ByteBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TYPE_SHORT :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ShortBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TYPE_INT :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((IntBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((FloatBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t}\n\t\t\tthis.buffer = null;\n\t\t}\n\t\tthis.size = 0;\n\t\treturn this;\n\t}", "public void outputBuffers ()\n\t{\n\t\toutput (\"\\n> (buffers)\\n\");\n\t\tif (model!=null) model.outputBuffers();\n\t}", "public Framebuffer(int width, int height) {\n\t\tviewWidth = width;\n\t\tviewHeight = height;\n\t\tid = glGenFramebuffers();\n\t}", "@Override\n\tpublic void create() {\n\t\tthis.mesh = new Mesh(VertexDataType.VertexArray, false, 4, 6, \n\t\t\t\tnew VertexAttribute(VertexAttributes.Usage.Position, 3, \"attr_position\"));\n\n\t\tmesh.setVertices(new float[] {\n\t\t\t\t-8192f, -512f, 0,\n\t\t\t\t8192f, -512f, 0,\n\t\t\t\t8192f, 512f, 0,\n\t\t\t\t-8192f, 512f, 0\n\t\t});\n\t\tmesh.setIndices(new short[] {0, 1, 2, 2, 3, 0});\n\n\t\t// creates the camera\n\t\tcamera = new OrthographicCamera(CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\n\t\t// Sets the positions of the camera\n\t\tcamera.position.set(CoordinateConverter.getCameraWidth()/2, CoordinateConverter.getCameraHeight()/2, 0);\n\t\tcamera.update();\n\n\t\t// Sets how much of the map that is shown on the screen\n\t\tglViewport = new Rectangle(0, 0, CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\t\t\n\t}", "public ByteBuffer getColorBuffer() {\n if (colorBuf == null){\n \tcolorBuf = ByteBuffer.allocateDirect(getIndicesBuffer().limit()*4*4);\n \tcolorBuf.order(ByteOrder.nativeOrder());\n \tFloatBuffer fb = colorBuf.asFloatBuffer();\n \tfor (int i=0; i<getIndicesBuffer().limit(); i++){\n \t\tfb.put(defaultColor);\n \t}\n\t\t\tcolorBuf.position(0);\n }\n \treturn colorBuf;\n }", "final protected void prepareVertexBuffer() {\n vertexReference = new VectorQD[calculateVertexNumber()];\n vertexBuffer = new VectorQD[vertexReference.length];\n for (int i = 0; i < vertexBuffer.length; i++) {\n vertexBuffer[i] = new VectorQD();\n }\n }", "private void get_buffer(Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3,\r\n\t\t\tint bufferCount) {\r\n\r\n\t\tbuffList.clear();\r\n\t\tdouble steps = 0;\r\n\t\tdouble step = 0.0;\r\n\t\tdouble t = 0.0;\r\n\t\tdouble tt = 0.0;\r\n\t\tdouble ttt = 0.0;\r\n\t\tdouble p0x = p0.x;\r\n\t\tdouble p1x = p1.x;\r\n\t\tdouble p2x = p2.x;\r\n\t\tdouble p3x = p3.x;\r\n\t\tdouble p0y = p0.y;\r\n\t\tdouble p1y = p1.y;\r\n\t\tdouble p2y = p2.y;\r\n\t\tdouble p3y = p3.y;\r\n\r\n\t\tint ipps = bufferCount;\r\n\r\n\t\tint i = 0;\r\n\t\tsteps = ipps - 1;\r\n\t\tif (steps > 0) {\r\n\t\t\tstep = 1.0 / steps;\r\n\t\t\tbuffList.add(new Vector2(p1.x, p1.y));\r\n\r\n\t\t\tfor (i = 1; i < steps; ++i) {\r\n\t\t\t\tt += step;\r\n\t\t\t\ttt = t * t;\r\n\t\t\t\tttt = tt * t;\r\n\t\t\t\tbuffList.add(new Vector2(0.5 * ((2 * p1x) + (-p0x + p2x) * t\r\n\t\t\t\t\t\t+ (2 * p0x - 5 * p1x + 4 * p2x - p3x) * tt + (-p0x + 3\r\n\t\t\t\t\t\t* p1x - 3 * p2x + p3x)\r\n\t\t\t\t\t\t* ttt), 0.5 * ((2 * p1y) + (-p0y + p2y) * t\r\n\t\t\t\t\t\t+ (2 * p0y - 5 * p1y + 4 * p2y - p3y) * tt + (-p0y + 3\r\n\t\t\t\t\t\t* p1y - 3 * p2y + p3y)\r\n\t\t\t\t\t\t* ttt)));\r\n\t\t\t}\r\n\t\t\tbuffList.add(new Vector2(p2.x, p2.y));\r\n\t\t}\r\n\t}", "public FloatBuffer putInBufferC(FloatBuffer buffer) {\n\t\tbuffer.clear();\n\t\tbuffer.put(x).put(y).put(z).put(w);\n\t\tbuffer.flip();\n\t\treturn buffer;\n\t}", "private static ByteBuffer createNativeByteBuffer(int length) {\n ByteBuffer bb = ByteBuffer.allocateDirect(length);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n return bb;\n }", "private void process(ArrayList<Float> points) {\n downsample(3, points);\n vertices = new Vector3f[nrows * ncols];\n texcoord = BufferUtils.createFloatBuffer(2 * nrows * ncols);\n indexes = BufferUtils.createIntBuffer(6 * (nrows - 1) * (ncols - 1));\n Vector3f[][][] fnormals = new Vector3f[nrows - 1][ncols - 1][2];\n normals = new Vector3f[nrows * ncols];\n float x, z;\n\n System.out.println(\"Processing \" + nrows + \"x\" + ncols + \" terrain...\");\n\n // First make vertices + texcoords\n x = 0.0f;\n for (int row = 0; row < nrows; row++) {\n z = 0.0f;\n for (int col = 0; col < ncols; col++) {\n vertices[(row * ncols) + col] = new Vector3f(x, data[row][col], z);\n texcoord.put(col / (float) ncols);\n texcoord.put(row / (float) nrows);\n z += cellsize;\n }\n x += cellsize;\n }\n // Indexes + face normals\n System.out.println(\"Populating faces...\");\n for (int row = 0; row < (nrows - 1); row++) {\n for (int col = 0; col < (ncols - 1); col++) {\n int base = 6 * ((row * (ncols - 1)) + col);\n // Triangle 1\n indexes.put((row * ncols) + col); // a\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col); // c\n // Triangle 2\n indexes.put(((row + 1) * ncols) + col); // c\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col + 1); // d\n // Faces\n base = (row * ncols) + col;\n Vector3f a = vertices[base];\n Vector3f b = vertices[base + 1];\n Vector3f c = vertices[base + ncols];\n Vector3f d = vertices[base + ncols + 1];\n Vector3f ba = b.subtract(a);\n Vector3f ca = c.subtract(a);\n Vector3f bc = b.subtract(c);\n Vector3f dc = d.subtract(c);\n // ormal.subtractLocal(pointa).crossLocal(pointc.x - pointa.x,\n // pointc.y - pointa.y, pointc.z - pointa.z);\n fnormals[row][col][0] = ba.crossLocal(ca).normalizeLocal();\n fnormals[row][col][1] = bc.crossLocal(dc).normalizeLocal();\n // Triangle ta = new Triangle(a,b,c);\n // Triangle tb = new Triangle(c,b,d);\n }\n }\n System.out.println(\"Calculating face normals...\");\n // Vector normals\n Vector3f t;\n // Corners\n // TL\n t = fnormals[0][0][0].add(fnormals[0][0][1]);\n t.normalizeLocal();\n normals[0] = t;\n // TR\n t = fnormals[0][ncols - 2][0].add(fnormals[0][ncols - 2][1]);\n t.normalizeLocal();\n normals[ncols - 1] = t;\n // BL\n t = fnormals[nrows - 2][0][0].add(fnormals[nrows - 2][0][1]);\n t.normalizeLocal();\n normals[(nrows - 1) * ncols] = t;\n // BR\n t = fnormals[nrows - 2][ncols - 2][0].add(fnormals[nrows - 2][ncols - 2][1]);\n t.normalizeLocal();\n normals[(nrows * ncols) - 1] = t;\n // Do first row and last row\n for (int col = 1; col < (ncols - 1); col++) {\n // First row\n t = fnormals[0][col - 1][0].add(fnormals[0][col - 1][1]);\n t.addLocal(fnormals[0][col][0]);\n t.addLocal(fnormals[0][col][1]);\n t.normalizeLocal();\n normals[col] = t;\n // Last row\n t = fnormals[nrows - 2][col - 1][0].add(fnormals[nrows - 2][col - 1][1]);\n t.addLocal(fnormals[nrows - 2][col][0]);\n t.addLocal(fnormals[nrows - 2][col][1]);\n t.normalizeLocal();\n normals[((nrows - 1) * ncols) + col] = t;\n }\n // Do first and last column\n for (int row = 1; row < (nrows - 1); row++) {\n // First col\n t = fnormals[row - 1][0][0].add(fnormals[row - 1][0][1]);\n t.addLocal(fnormals[row][0][0]);\n t.addLocal(fnormals[row][0][1]);\n t.normalizeLocal();\n normals[row * ncols] = t;\n // Last col\n t = fnormals[row - 1][ncols - 2][0].add(fnormals[row - 1][ncols - 2][1]);\n t.addLocal(fnormals[row][ncols - 2][0]);\n t.addLocal(fnormals[row][ncols - 2][1]);\n t.normalizeLocal();\n normals[(row * ncols) + (ncols - 1)] = t;\n // Centre cols\n for (int col = 1; col < (ncols - 1); col++) {\n t = fnormals[row - 1][col - 1][0].add(fnormals[row - 1][col - 1][1]);\n t.addLocal(fnormals[row - 1][col][0]);\n t.addLocal(fnormals[row - 1][col][1]);\n t.addLocal(fnormals[row][col - 1][0]);\n t.addLocal(fnormals[row][col - 1][1]);\n t.addLocal(fnormals[row][col][0]);\n t.addLocal(fnormals[row][col][1]);\n t.normalizeLocal();\n normals[(row * ncols) + col] = t;\n }\n }\n System.out.println(\"Processing finished...\");\n setBuffer(VertexBuffer.Type.Position, 3, BufferUtils.createFloatBuffer(vertices));\n setBuffer(VertexBuffer.Type.TexCoord, 2, texcoord);\n setBuffer(VertexBuffer.Type.Index, 3, indexes);\n setBuffer(VertexBuffer.Type.Normal, 3, BufferUtils.createFloatBuffer(normals));\n updateBound();\n System.out.println(\"NE corner: \" + vertices[vertices.length - 1].mult(0.006f));\n // Hint to renderer that we don't plan on modifying the terrain.\n this.setStatic();\n }", "public void backBufferIntoTexture()\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tif (InternalTexture[0] == 0) {\r\n\t\t\tgl.glGenTextures(1,InternalTexture);\r\n\t\t\tSystem.out.print(\"Initializing internal texture \"+InternalTexture[0]+\":[\"+getWidth()+\",\"+getHeight()+\"]\\n\");\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, this.getWidth(), this.getHeight(), 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, this.getWidth(), this.getHeight());\r\n\t\t}\r\n\t\tglut.glutReportErrors();\r\n\t}", "public StarsMesh() {\r\n\r\n\t\tvertices = new float[star_count * 3];\r\n\t\tindices = new short[star_count];\r\n\r\n\t\tRandom gen = new Random(System.currentTimeMillis());\r\n\r\n\t\tfor (int x = 0; x < star_count * 3; x += 3) {\r\n\t\t\tint rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(250) - 125) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x] = rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(130) - 65) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x + 1] = rand;\r\n\r\n\t\t\twhile ((rand = gen.nextInt(200) - 100) == 0)\r\n\t\t\t\t;\r\n\t\t\tvertices[x + 2] = rand;\r\n\r\n\t\t\t// vertices[x+2] = 0;\r\n\r\n\t\t\tindices[x / 3] = (short) ((short) x / 3);\r\n\t\t}\r\n\r\n\t\tByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length * 4);\r\n\t\tvbb.order(ByteOrder.nativeOrder());\r\n\t\tvertexBuffer = vbb.asFloatBuffer();\r\n\t\tvertexBuffer.put(vertices);\r\n\t\tvertexBuffer.position(0);\r\n\r\n\t\tByteBuffer ibb = ByteBuffer.allocateDirect(indices.length * 2);\r\n\t\tibb.order(ByteOrder.nativeOrder());\r\n\t\tindexBuffer = ibb.asShortBuffer();\r\n\t\tindexBuffer.put(indices);\r\n\t\tindexBuffer.position(0);\r\n\t}", "public static void bgfx_encoder_set_vertex_buffer(@NativeType(\"bgfx_encoder_t *\") long _this, @NativeType(\"uint8_t\") int _stream, @NativeType(\"bgfx_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _startVertex, @NativeType(\"uint32_t\") int _numVertices) {\n nbgfx_encoder_set_vertex_buffer(_this, (byte)_stream, _handle, _startVertex, _numVertices);\n }", "public JUMIMesh createMesh(ArrayList<Vector3> vertexPool, ArrayList<Vector3> normalPool, ArrayList<Vector2> uvPool) {\r\n JUMIMesh result = new JUMIMesh(name);\r\n\r\n // We're going to take the total vertices/normals/UVs and divide them up among each JUMIMesh in the scene\r\n ArrayList<Vector3> modelVertices = new ArrayList();\r\n ArrayList<Vector3> modelNormals = new ArrayList();\r\n ArrayList<Vector2> modelUVs = new ArrayList();\r\n\r\n // First create the set of vertices, UVs and normals relevant to this model. Do this using the unique indices associated with it\r\n for (String a : uniqueIndexDefinitions) {\r\n String[] indexDef = a.split(\"/\");\r\n int vindex = Integer.valueOf(indexDef[0]);\r\n\r\n // Retrieve from the wider vertex pool, the vertices for this model. -1 as OBJ goes from 1...n\r\n modelVertices.add(vertexPool.get(vindex - 1));\r\n\r\n // If UVs are defined, retrieve from the wider UV pool the UVs for this model. -1 as OBJ goes from 1...n\r\n if (indexDef.length > 1 && !indexDef[1].equals(\"\")) {\r\n int uvIndex = Integer.valueOf(indexDef[1]);\r\n modelUVs.add(uvPool.get(uvIndex - 1));\r\n }\r\n\r\n // If normals are defined, retrieve from the wider normal pool the normals for this model. -1 as OBJ goes from 1...n\r\n if (indexDef.length > 2 && !indexDef[2].equals(\"\")) {\r\n int nIndex = Integer.valueOf(indexDef[2]);\r\n modelNormals.add(normalPool.get(nIndex - 1));\r\n }\r\n }\r\n\r\n // Create the arrays ready to hold the raw float data\r\n result.vertices = new float[modelVertices.size() * 3];\r\n result.normals = new float[modelNormals.size() * 3];\r\n result.uvs = new float[modelUVs.size() * 2];\r\n result.indices = new int[allIndexDefinitions.size()];\r\n\r\n int arrayCounter = 0;\r\n\r\n // Create a hashmap with each unique face mapped against the order in which it appears. Lookup is MUCH faster than ArrayList for large models\r\n HashMap<String, Integer> uniqueIndices = new HashMap();\r\n\r\n for (String a : uniqueIndexDefinitions) {\r\n uniqueIndices.put(a, arrayCounter++);\r\n }\r\n\r\n arrayCounter = 0;\r\n\r\n // For every index defined, retrieve the index within the hashmap to get our final index!\r\n for (String a : allIndexDefinitions) {\r\n result.indices[arrayCounter++] = uniqueIndices.get(a);\r\n }\r\n\r\n arrayCounter = 0;\r\n\r\n // Now populate the raw float data for vertices, UVs and normals (if applicable)\r\n for (Vector3 a : modelVertices) {\r\n result.vertices[arrayCounter++] = a.x;\r\n result.vertices[arrayCounter++] = a.y;\r\n result.vertices[arrayCounter++] = a.z;\r\n }\r\n\r\n arrayCounter = 0;\r\n\r\n for (Vector3 a : modelNormals) {\r\n result.normals[arrayCounter++] = a.x;\r\n result.normals[arrayCounter++] = a.y;\r\n result.normals[arrayCounter++] = a.z;\r\n }\r\n\r\n arrayCounter = 0;\r\n\r\n for (Vector2 a : modelUVs) {\r\n result.uvs[arrayCounter++] = a.x;\r\n result.uvs[arrayCounter++] = a.y;\r\n }\r\n \r\n // Now create all the materials for the mesh\r\n result.materials = new JUMIMaterial[materialDefinitions.size()];\r\n\r\n int materialCounter = 0;\r\n\r\n // TODO: What happens if a .obj references a material by its diffuse map rather than name? (see Ax.obj)\r\n for (OBJMaterialDefinition a : materialDefinitions) {\r\n if (a == null) {\r\n continue;\r\n }\r\n JUMIMaterial newMat = new JUMIMaterial();\r\n newMat.name = a.name;\r\n newMat.ambientColor = a.ambientColour;\r\n newMat.diffuseColor = a.diffuseColour;\r\n newMat.specularColor = a.specularColour;\r\n newMat.specularFactor = a.specularWeight;\r\n newMat.opacity = a.alpha;\r\n\r\n // If a diffuse/specular/normal map is defined, make sure it's included in the JUMIMaterial!\r\n if (!a.diffuseMap.equals(\"\")) {\r\n JUMITexture newTexture = new JUMITexture();\r\n newTexture.fileName = a.diffuseMap;\r\n newTexture.name = a.diffuseMap;\r\n newMat.diffuseTexture = newTexture;\r\n }\r\n\r\n if (!a.specularMap.equals(\"\")) {\r\n JUMITexture newTexture = new JUMITexture();\r\n newTexture.fileName = a.specularMap;\r\n newTexture.name = a.specularMap;\r\n newMat.specularTexture = newTexture;\r\n }\r\n \r\n if (!a.bumpMap.equals(\"\")) {\r\n JUMITexture newTexture = new JUMITexture();\r\n newTexture.fileName = a.bumpMap;\r\n newTexture.name = a.bumpMap;\r\n newMat.normalTexture = newTexture;\r\n }\r\n\r\n result.materials[materialCounter++] = newMat;\r\n\r\n }\r\n \r\n result.faceType = FaceType.TRIANGLES;\r\n\r\n return result;\r\n }", "public FloatBuffer putInBuffer(FloatBuffer buffer) {\n\t\tbuffer.put(x).put(y).put(z).put(w);\n\t\treturn buffer;\n\t}", "public static void bgfx_encoder_set_vertex_buffer_with_layout(@NativeType(\"bgfx_encoder_t *\") long _this, @NativeType(\"uint8_t\") int _stream, @NativeType(\"bgfx_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _startVertex, @NativeType(\"uint32_t\") int _numVertices, @NativeType(\"bgfx_vertex_layout_handle_t\") short _layoutHandle) {\n nbgfx_encoder_set_vertex_buffer_with_layout(_this, (byte)_stream, _handle, _startVertex, _numVertices, _layoutHandle);\n }", "public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.1f, 0.1f, 0.25f, 1.0f);\n RSGFXShaderManager.loadShaders();\n next_game_tick = SystemClock.elapsedRealtime();\n // No culling of back faces\n GLES20.glDisable(GLES20.GL_CULL_FACE);\n \n // No depth testing\n //GLES20.glDisable(GLES20.GL_DEPTH_TEST);\n setupRender();\n // Enable blending\n // GLES20.glEnable(GLES20.GL_BLEND);\n // GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE);\n \n // Setup quad \n \t\t// Generate your vertex, normal and index buffers\n \t\t// vertex buffer\n \t\t_qvb = ByteBuffer.allocateDirect(_quadv.length\n \t\t\t\t* FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer();\n \t\t_qvb.put(_quadv);\n \t\t_qvb.position(0);\n\n \t\t// index buffer\n \t\t_qib = ByteBuffer.allocateDirect(_quadi.length\n \t\t\t\t* 4).order(ByteOrder.nativeOrder()).asIntBuffer();\n \t\t_qib.put(_quadi);\n \t\t_qib.position(0);\n }", "public ByteBuffer getVertexBuffer() {\n \treturn vertBuf;\n }", "@Override\n public void onSurfaceCreated(EGLConfig config) {\n Log.i(TAG, \"onSurfaceCreated\");\n GLES20.glClearColor(0.1f, 0.1f, 0.1f, 0.5f); // Dark background so text shows up well\n\n ByteBuffer bb = ByteBuffer.allocateDirect(squareVertices.length * 4);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(squareVertices);\n vertexBuffer.position(0);\n\n ByteBuffer dlb = ByteBuffer.allocateDirect(drawOrder.length * 2);\n dlb.order(ByteOrder.nativeOrder());\n drawListBuffer = dlb.asShortBuffer();\n drawListBuffer.put(drawOrder);\n drawListBuffer.position(0);\n\n ByteBuffer bb2 = ByteBuffer.allocateDirect(textureVertices.length * 4);\n bb2.order(ByteOrder.nativeOrder());\n textureVerticesBuffer = bb2.asFloatBuffer();\n textureVerticesBuffer.put(textureVertices);\n textureVerticesBuffer.position(0);\n\n int vertexShader = loadGLShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode);\n int fragmentShader = loadGLShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL ES Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram);\n\n texture = createTexture();\n startCamera(texture);\n }", "public static Buffer createBuffer(String sagaFactoryClassname, byte[] data)\n throws BadParameterException, NoSuccessException {\n\tBufferFactory factory = getFactory(sagaFactoryClassname);\n return factory.doCreateBuffer(data);\n }", "public void setupOpenGL() {\n try {\n PixelFormat pixelFormat = new PixelFormat();\n ContextAttribs contextAtrributes = new ContextAttribs(3, 2)\n .withForwardCompatible(true)\n .withProfileCore(true);\n\n DisplayMode displayMode = new DisplayMode(WIDTH, HEIGHT);\n Display.setDisplayMode(displayMode);\n Display.setTitle(WINDOW_TITLE);\n Display.create(pixelFormat, contextAtrributes);\n\n GL11.glEnable(GL11.GL_DEPTH_TEST);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n } catch (LWJGLException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n // Setup an XNA like background color\n GL11.glClearColor(0.4f, 0.6f, 0.9f, 0f);\n\n // Map the internal OpenGL coordinate system to the entire screen\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n\n this.exitOnGLError(\"Error in setupOpenGL\");\n }", "public static Buffer createBuffer(byte[] data)\n throws BadParameterException, NoSuccessException {\n\treturn createBuffer(null, data);\n }", "int glCreateProgram();", "public GlBuffer commit(final Chunk<E>[] chunks, boolean push){\n\t\t//android.util.//Log.d(TAG,\"update(\"+chunks+\", \"+commit+\")\");\n\t\tint startPosition = 0;\n\t\tint offset = this.stride;\n\t\tswitch(this.datatype){\n\t\t\tcase TYPE_FLOAT :\n\t\t\t\tif(this.buffer == null){\n\t\t\t\t\tthis.buffer = ByteBufferPool.getInstance().getDirectFloatBuffer(this.size >> 2);\n\t\t\t\t\tmManagedBuffer = true;\n\t\t\t\t}\n\t\t\t\telse if(mManagedBuffer){\n\t\t\t\t\tthis.buffer.position(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstartPosition = this.buffer.position();\n\t\t\t\t}\n offset = this.stride >> 2;\n for(final Chunk<E> chunk : chunks){\n for(int elementIndex=0, compIndex=0; elementIndex < this.count ; elementIndex++, compIndex+=chunk.components){\n this.buffer.position(startPosition + chunk.position + (elementIndex * offset));\n ((FloatBuffer)this.buffer).put(((float[])chunk.data),compIndex,chunk.components);\n }\n }\n\t\t\t\tbreak;\n case TYPE_INT :\n if(this.buffer == null){\n this.buffer = ByteBufferPool.getInstance().getDirectIntBuffer(this.size >> 2);\n\t\t\t\t\tmManagedBuffer = true;\n\t\t\t\t}\n\t\t\t\telse if(mManagedBuffer){\n\t\t\t\t\tthis.buffer.position(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstartPosition = this.buffer.position();\n\t\t\t\t}\n offset = this.stride >> 2;\n for(final Chunk<E> chunk : chunks){\n for(int elementIndex=0, compIndex=0; elementIndex < this.count ; elementIndex++, compIndex+=chunk.components){\n this.buffer.position(startPosition + chunk.position + (elementIndex * offset));\n ((IntBuffer)this.buffer).put(((int[])chunk.data),compIndex,chunk.components);\n }\n }\n break;\n\t\t\tcase TYPE_SHORT :\n\t\t\t\tif(this.buffer == null){\n\t\t\t\t\tthis.buffer = ByteBufferPool.getInstance().getDirectShortBuffer(this.size >> 1);\n\t\t\t\t\tmManagedBuffer = true;\n\t\t\t\t}\n\t\t\t\telse if(mManagedBuffer){\n\t\t\t\t\tthis.buffer.position(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstartPosition = this.buffer.position();\n\t\t\t\t}\n offset = this.stride >> 1;\n for(final Chunk<E> chunk : chunks){\n for(int elementIndex=0, compIndex=0; elementIndex < this.count ; elementIndex++, compIndex+=chunk.components){\n this.buffer.position(startPosition + chunk.position + (elementIndex * offset));\n ((ShortBuffer)this.buffer).put(((short[])chunk.data),compIndex,chunk.components);\n }\n }\n\t\t\t\tbreak;\n default :\n if(this.buffer == null){\n this.buffer = ByteBufferPool.getInstance().getDirectByteBuffer(this.size);\n\t\t\t\t\tmManagedBuffer = true;\n\t\t\t\t}\n\t\t\t\telse if(mManagedBuffer){\n\t\t\t\t\tthis.buffer.position(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tstartPosition = this.buffer.position();\n\t\t\t\t}\n for(final Chunk<E> chunk : chunks){\n for(int elementIndex=0, compIndex=0; elementIndex < this.count ; elementIndex++, compIndex+=chunk.components){\n this.buffer.position(startPosition + chunk.position + (elementIndex * offset));\n ((ByteBuffer)this.buffer).put(((byte[])chunk.data),compIndex,chunk.components);\n }\n }\n break;\n\t\t}\n\n //Update server if needed\n if(push){\n push();\n }\n\n\t\treturn this;\n\t}", "public interface IGLWrapper {\n\n /** Indicates that the color buffer should be cleared. */\n int GL_COLOR_BUFFER_BIT = 0x00004000;\n /** Indicates that elements should be drawn as triangles using indices. */\n int GL_TRIANGLES = 0x0004;\n /** Indicates that the texture should be loaded to 2D. */\n int GL_TEXTURE_2D = 0x0DE1;\n /** Indicates that the data type is an unsigned short. */\n int GL_UNSIGNED_SHORT = 0x1403;\n /** Indicates that the data type is a float. */\n int GL_FLOAT = 0x1406;\n /** Indicates that the fragment shader should be loaded. */\n int GL_FRAGMENT_SHADER = 0x8B30;\n /** Indicates that the vertex shader should be loaded. */\n int GL_VERTEX_SHADER = 0x8B31;\n /** Indicates that the nearest neighbor should be used for interpolation. */\n int GL_NEAREST = 0x2600;\n /** Indicates that the texture magnification filter should be modified. */\n int GL_TEXTURE_MAG_FILTER = 0x2800;\n /** Indicates that the texture minification filter should be modified. */\n int GL_TEXTURE_MIN_FILTER = 0x2801;\n /** The 0th texture location. */\n int GL_TEXTURE0 = 0x84C0;\n\n /**\n * Checks whether the application is on desktop or Android.\n * @return True if the application is on desktop, false if on Android.\n */\n boolean isDesktopGL();\n\n /**\n * Sets the active texture index.\n * @param texture The active texture index.\n */\n void glActiveTexture(int texture);\n\n /**\n * Attaches a shader to a shader program.\n * @param program The program to attach the shader to.\n * @param shader The shader to attach to the program.\n */\n void glAttachShader(int program, int shader);\n\n /**\n * Binds a texture to a texture index.\n * @param target The texture index to bind to.\n * @param texture The texture to bind.\n */\n void glBindTexture(int target, int texture);\n\n /**\n * Sets the background color.\n * @param mask A bitmask containing the background color.\n */\n void glClear(int mask);\n\n /**\n * Sets the background color.\n * @param red The red component of the color.\n * @param green The green component of the color.\n * @param blue The blue component of the color.\n * @param alpha The alpha component of the color.\n */\n void glClearColor(float red, float green, float blue, float alpha);\n\n /**\n * Compiles a shader.\n * @param shader The shader to compile.\n */\n void glCompileShader(int shader);\n\n /**\n * Creates a shader program.\n * @return The created shader program.\n */\n int glCreateProgram();\n\n /**\n * Initializes a shader.\n * @param type The type of shader to initialize.\n * @return The initialized shader.\n */\n int glCreateShader(int type);\n\n /**\n * Disables a vertex attribute.\n * @param index The vertex attribute to disable.\n */\n void glDisableVertexAttribArray(int index);\n\n /**\n * Draws vertices on the screen.\n * @param mode The drawing mode to use.\n * @param count The number of vertices to draw.\n * @param type The primitive data type of the vertices.\n * @param indices The vertices to draw.\n * @param bufferIndex The index of the buffer handle to use.\n * @param bufferSize The size of the triangle buffer.\n */\n void glDrawElements(int mode, int count, int type,\n Buffer indices, int bufferIndex, int bufferSize);\n\n /**\n * Enables a vertex attribute.\n * @param index The vertex attribute to enable.\n */\n void glEnableVertexAttribArray(int index);\n\n /**\n * Generates textures in a given array.\n * @param n The number of textures to generate.\n * @param textures The array to generate textures in.\n * @param offset The offset for the starting position in the array to generate textures at.\n */\n void glGenTextures(int n, int[] textures, int offset);\n\n /**\n * Gets a shader attribute.\n * @param program The program to get the shader attribute from.\n * @param name The name of the shader attribute to get.\n * @return The specified shader attribute.\n */\n int glGetAttribLocation(int program, String name);\n\n /**\n * Gets a uniform shader attribute.\n * @param program The program to get the shader attribute from.\n * @param name The name of the uniform shader attribute to get.\n * @return The specified uniform shader attribute.\n */\n int glGetUniformLocation(int program, String name);\n\n /**\n * Links a shader program to OpenGL.\n * @param program The program to link.\n */\n void glLinkProgram(int program);\n\n /**\n * Loads shader code into a shader.\n * @param shader The shader to load code into.\n * @param string The shader code to load.\n */\n void glShaderSource(int shader, String string);\n\n /**\n * Sets the texture paramters for OpenGL.\n * @param target The type of the currently active texture.\n * @param pname The parameter to set.\n * @param param The value to set the parameter to.\n */\n void glTexParameteri(int target, int pname, int param);\n\n /**\n * Sets a uniform shader attribute.\n * @param location The attribute to set.\n * @param x The value to set the attribute to.\n */\n void glUniform1i(int location, int x);\n\n /**\n * Sets a uniform shader attribute.\n * @param location The attribute to set.\n * @param count The number of elements in the new value.\n * @param v The value to set the attribute to.\n * @param offset The offset of the starting index to set.\n */\n void glUniform4fv(int location, int count, float[] v, int offset);\n\n /**\n * Sets a matrix attribute.\n * @param location The matrix attribute to set.\n * @param count The number of elements in the array of matrices.\n * @param transpose Whether to transpose the matrix.\n * @param value The value to set the matrix to.\n * @param offset The offset of the starting index to set in the array of matrices.\n */\n void glUniformMatrix4fv(int location, int count, boolean transpose,\n float[] value, int offset);\n\n /**\n * Sets a shader program to be used by OpenGL.\n * @param program The program to use.\n */\n void glUseProgram(int program);\n\n /**\n * Sets the initial vertices in the vertex shader.\n * @param indx The vertex attribute to use.\n * @param size The number of coordinates per vertex.\n * @param type The type of primitive that the vertices are stored as.\n * @param normalized Whether the vertices are normalized.\n * @param stride The number of bytes per vertex.\n * @param ptr The vertex array.\n * @param bufferIndex The index of the buffer handle to use.\n * @param bufferSize The size of the vertex array in bytes.\n */\n void glVertexAttribPointer(int indx, int size, int type, boolean normalized,\n int stride, Buffer ptr, int bufferIndex, int bufferSize);\n\n /**\n * Sets the viewport of the camera.\n * @param x The x coordinate of the viewport's center.\n * @param y The y coordinate of the viewport's center.\n * @param width The width of the viewport.\n * @param height The height of the viewport.\n */\n void glViewport(int x, int y, int width, int height);\n\n /**\n * Loads a texture into OpenGL.\n * @param target The texture to load the bitmap to.\n * @param level The detail level of the image.\n * @param resourceId The image file to load from\n * @param border 0.\n */\n void texImage2D(int target, int level, int resourceId, int border);\n\n /**\n * Cleans up OpenGL after closing the desktop application.\n */\n void exit(int vertexShader, int fragmentShader);\n}", "public Triangle() {\n // initialize vertex byte buffer for shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n triangleCoords.length * 4);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = bb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(triangleCoords);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n // prepare shaders and OpenGL program\n int vertexShader = MyGLRenderer.loadShader(\n GLES20.GL_VERTEX_SHADER, vertexShaderCode);\n int fragmentShader = MyGLRenderer.loadShader(\n GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram); // create OpenGL program executables\n\n }", "public static long[] createFrameBuffers(\n VkDevice device,\n long renderPass,\n long[] imageViews,\n long[] attachments,\n int width,\n int height)\n throws VulkanException {\n\n long[] frameBuffers;\n\n LongBuffer attachmentsBuffer = memAllocLong(attachments.length);\n for (int i = 0; i < attachments.length; i++) {\n attachmentsBuffer.put(i, attachments[i]);\n }\n\n VkFramebufferCreateInfo frameBufferCreateInfo =\n VkFramebufferCreateInfo.calloc()\n .sType(VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO)\n .pNext(NULL)\n .flags(0)\n .renderPass(renderPass)\n .pAttachments(attachmentsBuffer)\n .width(width)\n .height(height)\n .layers(1);\n\n frameBuffers = new long[imageViews.length];\n LongBuffer pFrameBuffer = memAllocLong(1);\n\n for (int i = 0; i < imageViews.length; i++) {\n pFrameBuffer.put(0, imageViews[i]);\n int err = vkCreateFramebuffer(device, frameBufferCreateInfo, null, pFrameBuffer);\n long frameBuffer = pFrameBuffer.get(0);\n VulkanResult.validate(err, \"Failed to create frame buffer!\");\n frameBuffers[i] = frameBuffer;\n }\n\n memFree(pFrameBuffer);\n memFree(attachmentsBuffer);\n frameBufferCreateInfo.free();\n\n return frameBuffers;\n }", "private DFEVar[][] createBuffer(DFEVector<DFEVar> reference,\n\t\t\t DFEVar writeEnable,\n\t\t\t DFEVar[] writeAddress,\n\t\t\t DFEVar[] readAddress1,\n\t\t\t DFEVar[] readAddress2,\n\t\t\t DFEVar whichBuffer,\n\t\t\t int cyclesToReadAhead)\n\t{\n\t\tDFEVar[][] bufferOutput = new DFEVar[m_scalars.blockSize][m_scalars.blockSize + m_scalars.numPipes - 1];\n\t\tfor (int i = 0; i < m_scalars.blockSize; i++) {\n\t\t\tRamPortParams<DFEVector<DFEVar>> writePort = mem.makeRamPortParams(RamPortMode.WRITE_ONLY, writeAddress[0], reference.getType())\n\t\t\t .withDataIn(reference)\n .withWriteEnable((writeAddress[1] === i) & writeEnable);\n\n\t\t\tRamPortParams<DFEVector<DFEVar>> readPort1 = mem.makeRamPortParams(RamPortMode.READ_ONLY, readAddress1[i], reference.getType());\n\t\t\tRamPortParams<DFEVector<DFEVar>> readPort2 = mem.makeRamPortParams(RamPortMode.READ_ONLY, readAddress2[i], reference.getType());\n\n\t\t\tDFEVector<DFEVar> ram1 = mem.ramDualPort(m_scalars.bufferDepth, RamWriteMode.READ_FIRST, writePort, readPort1).getOutputB();\n\t\t\tDFEVector<DFEVar> ram2 = mem.ramDualPort(m_scalars.bufferDepth, RamWriteMode.READ_FIRST, writePort, readPort2).getOutputB();\n\n\t\t\tfor (int j = 0; j < cyclesToReadAhead; j++) {\n\t\t\t\tDFEVector<DFEVar> temp = whichBuffer ? stream.offset(ram2, j - cyclesToReadAhead + 1) : stream.offset(ram1, j - cyclesToReadAhead + 1);\n\t\t\t\tfor (int k = 0; k < m_scalars.numPipes; k++) {\n\t\t\t\t\tif (j * m_scalars.numPipes + k < bufferOutput[0].length) {\n\t\t\t\t\t\tbufferOutput[i][j * m_scalars.numPipes + k] = temp[k];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn bufferOutput;\n\t}", "protected void initBuffer() throws IOException {\n if (buf != null) {\r\n Util.disposeDirectByteBuffer(buf);\r\n }\r\n // this check is overestimation:\r\n int size = bufferNumLength << Main.log2DataLength;\r\n assert (size > 0);\r\n if (Main.debug) { System.out.println(\"Allocating direct buffer of \"+bufferNumLength+\" ints.\"); }\r\n buf = ByteBuffer.allocateDirect(size).order(Main.byteOrder);\r\n buf.clear();\r\n }", "public PMVMatrix(boolean useBackingArray) {\n projectFloat = new ProjectFloat();\n \n // I Identity\n // T Texture\n // P Projection\n // Mv ModelView\n // Mvi Modelview-Inverse\n // Mvit Modelview-Inverse-Transpose\n if(useBackingArray) {\n matrixBufferArray = new float[6*16];\n matrixBuffer = null;\n // matrixBuffer = FloatBuffer.wrap(new float[12*16]);\n } else {\n matrixBufferArray = null;\n matrixBuffer = Buffers.newDirectByteBuffer(6*16 * Buffers.SIZEOF_FLOAT);\n matrixBuffer.mark();\n }\n \n matrixIdent = slice2Float(matrixBuffer, matrixBufferArray, 0*16, 1*16); // I\n matrixTex = slice2Float(matrixBuffer, matrixBufferArray, 1*16, 1*16); // T\n matrixPMvMvit = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 4*16); // P + Mv + Mvi + Mvit \n matrixPMvMvi = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 3*16); // P + Mv + Mvi\n matrixPMv = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 2*16); // P + Mv\n matrixP = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 1*16); // P\n matrixMv = slice2Float(matrixBuffer, matrixBufferArray, 3*16, 1*16); // Mv\n matrixMvi = slice2Float(matrixBuffer, matrixBufferArray, 4*16, 1*16); // Mvi\n matrixMvit = slice2Float(matrixBuffer, matrixBufferArray, 5*16, 1*16); // Mvit\n \n if(null != matrixBuffer) {\n matrixBuffer.reset();\n } \n ProjectFloat.gluMakeIdentityf(matrixIdent);\n \n vec3f = new float[3];\n matrixMult = new float[16];\n matrixTrans = new float[16];\n matrixRot = new float[16];\n matrixScale = new float[16];\n matrixOrtho = new float[16];\n matrixFrustum = new float[16];\n ProjectFloat.gluMakeIdentityf(matrixTrans, 0);\n ProjectFloat.gluMakeIdentityf(matrixRot, 0);\n ProjectFloat.gluMakeIdentityf(matrixScale, 0);\n ProjectFloat.gluMakeIdentityf(matrixOrtho, 0);\n ProjectFloat.gluMakeZero(matrixFrustum, 0);\n \n matrixPStack = new ArrayList<float[]>();\n matrixMvStack= new ArrayList<float[]>();\n \n // default values and mode\n glMatrixMode(GL_PROJECTION);\n glLoadIdentity();\n glMatrixMode(GL_MODELVIEW);\n glLoadIdentity();\n glMatrixMode(GL.GL_TEXTURE);\n glLoadIdentity();\n setDirty();\n update();\n }", "private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }", "private void drawMesh(GL10 gl)\n\t{\n\t\t// Point to our buffers\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t\t\n\t\t// Set the face rotation\n\t\tgl.glFrontFace(GL10.GL_CW);\n\t\t\n\t\t// Point to our vertex buffer\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);\n\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer);\n\t\t\n\t\t// Draw the vertices as triangle strip\n\t\t//gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices.length / 3);\n\t\tgl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertexCount / 3);\n\n\t\t//Disable the client state before leaving\n\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t}", "static public void init() {\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=MeshFrame.HEIGHT; i>=HeightScale;i-=HeightScale){\r\n\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\r\n\t\t\tfor (int j = 0; j <= MeshFrame.WIDTH; j+=WidthScale) {\r\n\t\t\t\tGL11.glVertex3f(j, i, 0);\r\n\t\t\t\tGL11.glVertex3f(j, i-HeightScale, 0);\r\n\t\t\t}\r\n\t\t\tGL11.glEnd();\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t}", "private int[] createFrameBuffer(int length) {\n\t\tint[] buffer = null;\n\n\t\tlong size = length * Integer.SIZE / 8;\n\n\t\ttry {\n\t\t\tif (memoryUsed < maxMemory) {\n\t\t\t\tbuffer = new int[length];\n\t\t\t\tmemoryUsed += size;\n\t\t\t}\n\t\t} catch (OutOfMemoryError e) {\n\t\t\te.printStackTrace();\n\t\t\tLog.w(LOG_TAG, e);\n\t\t\tbuffer = null;\n\t\t}\n\n\t\tif (buffer == null)\n\t\t\tLog.w(LOG_TAG, \"Can not create frame buffer. No such memory.\");\n\n\t\treturn buffer;\n\t}", "public static VertexBuffer createColorBuffer() {\n return new VertexBuffer(\"a_Color\", new ColorData(BufferTestUtil.createColors()), BufferUsage.STATIC);\n }", "public Triangle(float c0X, float c0Y, float c1X, float c1Y, float c2X, float c2Y, float r, float g, float b) {\n triangleCoords[0] = c0X;\n triangleCoords[1] = c0Y;\n triangleCoords[2] = 0;\n triangleCoords[3] = c1X;\n triangleCoords[4] = c1Y;\n triangleCoords[5] = 0;\n triangleCoords[6] = c2X;\n triangleCoords[7] = c2Y;\n triangleCoords[8] = 0;\n color[0] = r;\n color[1] = g;\n color[2] = b;\n centerX = (c0X+c1X) / 2.0f;\n centerY = (float)(c0Y - ((c1X-c0X)/(Math.sqrt(3)*2.0f)));\n\n // initialize vertex byte buffer for shape coordinates\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n triangleCoords.length * 4);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = bb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(triangleCoords);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n\n // The drawn object (This triangle) needs to claim shaders for vertex and fragment, so it can be drawn\n int vertexShader = MyGLRenderer.loadShader(GLES20.GL_VERTEX_SHADER,\n vertexShaderCode);\n int fragmentShader = MyGLRenderer.loadShader(GLES20.GL_FRAGMENT_SHADER,\n fragmentShaderCode);\n\n // create empty OpenGL ES Program ( = one openGL procedure responsible for drawing this shape)\n mProgram = GLES20.glCreateProgram();\n\n // add the vertex shader to program\n GLES20.glAttachShader(mProgram, vertexShader);\n\n // add the fragment shader to program\n GLES20.glAttachShader(mProgram, fragmentShader);\n\n // creates OpenGL ES program executables\n GLES20.glLinkProgram(mProgram);\n }", "public OpenGLModel() {\n\n\n\t}", "public ByteBuffer getTextureBuffer(String name) {\n\t\treturn TextureManager.global.getTextureBuffer(name);\n\t}" ]
[ "0.71997875", "0.7131934", "0.6991309", "0.6596832", "0.6367097", "0.6251878", "0.6191184", "0.61064637", "0.60361403", "0.6027081", "0.5974507", "0.5953713", "0.59380203", "0.58726555", "0.5855887", "0.5848349", "0.583555", "0.5788694", "0.57569337", "0.5739516", "0.5699469", "0.5671496", "0.55977434", "0.5581126", "0.5569599", "0.55518115", "0.5548809", "0.5540121", "0.55083126", "0.54661", "0.5464196", "0.5457337", "0.54052424", "0.5385088", "0.53617364", "0.53565574", "0.5344485", "0.53194076", "0.5318885", "0.5318114", "0.53088176", "0.53048646", "0.5302136", "0.5292201", "0.52592766", "0.5242571", "0.52161896", "0.519909", "0.51974374", "0.51922166", "0.51734835", "0.5172978", "0.51694643", "0.51463884", "0.5137115", "0.5125584", "0.5122887", "0.51130056", "0.5071807", "0.5068777", "0.50671613", "0.50638676", "0.5051282", "0.50472605", "0.5046139", "0.50453466", "0.50376403", "0.50275373", "0.5023498", "0.50107086", "0.5008919", "0.5005924", "0.49976867", "0.49856794", "0.49820673", "0.49803165", "0.49746948", "0.49627885", "0.49517307", "0.49502414", "0.49235275", "0.4921806", "0.491498", "0.49079114", "0.4906439", "0.490336", "0.4896654", "0.4896053", "0.48925045", "0.48752785", "0.48743525", "0.48738262", "0.4869456", "0.48602158", "0.48563114", "0.48522022", "0.48485592", "0.48430917", "0.48384264", "0.4837482", "0.48362818" ]
0.0
-1
Prepares OpenGL ES before we draw a frame.
@Override public void onNewFrame(HeadTransform headTransform) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void prepare(){\n\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\tGL11.glClear( GL11.GL_COLOR_BUFFER_BIT|GL11.GL_DEPTH_BUFFER_BIT );\n\t\tGL11.glClearColor(1, 0, 0, 1);\n\t\t\n\t}", "@Override\n\tpublic void prepareScreen() {\n\t\tgl.glColor3d(0.0, 0.0, 0.0);\n\t\tgl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t}", "private void initOpenGL()\n\t{\n\t\t// Create an OpenGL ES 2.0 context.\n\t\tsetEGLContextClientVersion(2);\n\n\t\t// Set the drawing quality.\n\t\t// Alpha isn't needed and the color choice is limited anyway, so we can get away with this setting.\n\t\tgetHolder().setFormat(PixelFormat.RGB_565);\n\t\tsetEGLConfigChooser(5, 6, 5, 0, 0, 0);\n\n\t\t// Prepare the renderer.\n\t\trenderer = new GLRenderer();\n\t\tsetRenderer(renderer);\n\n\t\t// Choose to only render the view on demand.\n\t\tsetRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\n\n\t\t// Disable the unneeded depth test and stencil test.\n\t\tGLES20.glDisable(GLES20.GL_DEPTH_TEST);\n\t\tGLES20.glDisable(GLES20.GL_STENCIL_TEST);\n\n\t\t// Render the canvas for the first time.\n\t\trequestRender();\n\t}", "private void initialRenderPhase(final GL10 gl)\n {\n gl.glViewport(0, 0, width, height);\n gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\n gl.glMatrixMode(GL10.GL_PROJECTION);\n gl.glLoadIdentity();\n GLU.gluOrtho2D(gl, 0, width, 0, height);\n }", "public void initGLState() {\n\n\t\tm.setPerspective(fovy, aspect, zNear, zFar);\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\n\t\tm.get(fb);\n\n\t\tglLoadMatrixf(fb);\n\n\t\tglMatrixMode(GL_MODELVIEW);\n\t\tglLoadIdentity();\n\n\t\t/* Smooth-Shading soll benutzt werden */\n\t\tglEnable(GL_NORMALIZE);\n\t\tglShadeModel(GL_SMOOTH);\n\t\tinitLighting();\n\t}", "@Override\n public void prepareRendering() {\n GL11.glClearStencil(0);\n GL11.glClear(GL11.GL_STENCIL_BUFFER_BIT);\n \n GlStateManager.enableDepthTest();\n GL11.glEnable(GL_STENCIL_TEST);\n \n IEFrameBuffer ieFrameBuffer = (IEFrameBuffer) client.getFramebuffer();\n if (!ieFrameBuffer.getIsStencilBufferEnabled()) {\n ieFrameBuffer.setIsStencilBufferEnabledAndReload(true);\n if (Minecraft.func_238218_y_()) {\n client.worldRenderer.loadRenderers();\n }\n }\n \n }", "private void initOpenGL(){\n\t\tcaps = GL.createCapabilities();\n\t\tglViewport(0,0,WIDTH,HEIGHT);\n\t\tif(caps.OpenGL44)System.out.println(\"All OK\");\n\t\tglEnable(GL_DEPTH_TEST);\n\t\t//glPolygonMode(GL_BACK, GL_LINE);\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t}", "public void setupOpenGL() {\n try {\n PixelFormat pixelFormat = new PixelFormat();\n ContextAttribs contextAtrributes = new ContextAttribs(3, 2)\n .withForwardCompatible(true)\n .withProfileCore(true);\n\n DisplayMode displayMode = new DisplayMode(WIDTH, HEIGHT);\n Display.setDisplayMode(displayMode);\n Display.setTitle(WINDOW_TITLE);\n Display.create(pixelFormat, contextAtrributes);\n\n GL11.glEnable(GL11.GL_DEPTH_TEST);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n } catch (LWJGLException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n // Setup an XNA like background color\n GL11.glClearColor(0.4f, 0.6f, 0.9f, 0f);\n\n // Map the internal OpenGL coordinate system to the entire screen\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n\n this.exitOnGLError(\"Error in setupOpenGL\");\n }", "private static void initGL() {\n glClearColor(152/255f, 175/255f, 199/255f, 0.0f);\n glMatrixMode(GL_PROJECTION);\n glLoadIdentity();\n GLU.gluPerspective(100.0f, (float)displayMode.getWidth()/(float)\n displayMode.getHeight(), 0.1f, 500);\n glMatrixMode(GL_MODELVIEW);\n glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\n glClearDepth(1.0f);\n glEnable(GL_DEPTH_TEST);\n glEnable(GL_TEXTURE_2D);\n glEnableClientState(GL_VERTEX_ARRAY);\n glEnableClientState(GL_COLOR_ARRAY);\n glEnableClientState(GL_TEXTURE_COORD_ARRAY);\n glEnable(GL_LIGHTING);\n glEnable(GL_LIGHT0);\n glEnable(GL_NORMALIZE);\n\n }", "protected void initRender() {\n glActiveTexture(GL_TEXTURE0);\n // Bind the texture\n glBindTexture(GL_TEXTURE_2D, texture.getId());\n\n // Draw the mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n }", "private void initGL() {\n\t\ttry {\n\t\t\tDisplay.setDisplayMode(new DisplayMode(displayWidth, displayHeight));\n\t\t\tDisplay.setVSyncEnabled(true);\n\t\t\tDisplay.setTitle(\"Shooter\");\n\t\t\tDisplay.create();\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t// init OpenGL\n\t\tglEnable(GL_TEXTURE_2D);\n\t\t\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t\t\n\t\t// enable alpha blending\n\t\tglEnable(GL_BLEND);\n\t\tglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\n\t\t\n\t\tglViewport(0, 0, displayWidth, displayHeight);\n\t\t\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\t\tglOrtho(0, displayWidth, displayHeight, 0, 1, -1);\n\t\tglMatrixMode(GL_MODELVIEW);\n\t}", "@Override\n\t@GLContextRequired\n\tpublic void initGL() {\n\t\tif(Objects.isNull(va)){\n\t\t\tva = new VertexArray(4);\n\t\t\tupdateGL(false);\t\t\n\t\t}\n\t}", "private void initOpenGlView() {\n setEGLContextClientVersion(2);\n setPreserveEGLContextOnPause(true);\n System.out.println(\"************************************************************* init OpenGlView ********************\");\n// setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\n// setEGLConfigChooser(8, 8, 8, 8, 0, 0); // added 10.05\n// getHolder().setFormat(PixelFormat.TRANSLUCENT); // // added 10.05\n }", "public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.1f, 0.1f, 0.25f, 1.0f);\n RSGFXShaderManager.loadShaders();\n next_game_tick = SystemClock.elapsedRealtime();\n // No culling of back faces\n GLES20.glDisable(GLES20.GL_CULL_FACE);\n \n // No depth testing\n //GLES20.glDisable(GLES20.GL_DEPTH_TEST);\n setupRender();\n // Enable blending\n // GLES20.glEnable(GLES20.GL_BLEND);\n // GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE);\n \n // Setup quad \n \t\t// Generate your vertex, normal and index buffers\n \t\t// vertex buffer\n \t\t_qvb = ByteBuffer.allocateDirect(_quadv.length\n \t\t\t\t* FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer();\n \t\t_qvb.put(_quadv);\n \t\t_qvb.position(0);\n\n \t\t// index buffer\n \t\t_qib = ByteBuffer.allocateDirect(_quadi.length\n \t\t\t\t* 4).order(ByteOrder.nativeOrder()).asIntBuffer();\n \t\t_qib.put(_quadi);\n \t\t_qib.position(0);\n }", "private void endRender() {\n //Restore state by unbinding everything\n glDisableVertexAttribArray(0);\n glDisableVertexAttribArray(1);\n glDisableVertexAttribArray(2);\n glDisableVertexAttribArray(3);\n glDisableVertexAttribArray(4);\n glBindVertexArray(0);\n\n glBindTexture(GL_TEXTURE_2D, 0);\n }", "@Override\r\n\tpublic void surfaceCreated(GL10 gl) {\n\t\tgl.glDisable(GL10.GL_DITHER);\r\n\t\t\r\n\t\t// One-time OpenGL initialization based on context...\r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,\r\n GL10.GL_NICEST);\r\n\t\t\r\n gl.glClearColor(0, 0, 0, 1); \r\n gl.glEnable(GL10.GL_CULL_FACE);\r\n gl.glCullFace(GL10.GL_BACK);\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\r\n gl.glEnable(GL10.GL_LIGHTING);\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\r\n gl.glShadeModel(GL10.GL_SMOOTH);\r\n \r\n if(scene != null && use_vbos) {\r\n \t\t// TODO messy...\r\n \t\tscene.forgetHardwareBuffers();\r\n \t\tscene.generateHardwareBuffers(gl);\r\n }\r\n }", "protected void prepareRenderState()\n\t{\n\t\tsuper.prepareRenderState();\n\t\t\n\t\t//Bind back to front, so that the last bound unit is (ideally) texture unit 0\n\t\tfor (int i = getTexCoordCount() - 1; i >= 0; i--)\n\t\t{\n\t\t\tif (textures[i] != null)\n\t\t\t{\n\t\t\t\ttextures[i].getTexture().bind(i);\n\t\t\t}\n\t\t}\n\t}", "private void init(Context context) {\n setEGLContextClientVersion(3);\n\n mRenderer = new MyGLRenderer(context);\n\n // Set the Renderer for drawing on the GLSurfaceView\n setRenderer(mRenderer);\n// setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);\n }", "public void initialize()\r\n\t{\r\n\t\tgl.glClearColor(0.0F, 0.0F, 0.0F, 1.0F);\r\n\t\t// initialize blending for transparency\r\n\t\tgl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\r\n\t\tgl.glEnable(GL_DEPTH_TEST);\r\n\t\tgl.glEnable(GL_DITHER);\r\n\t\t//gl.disable(GL_ALPHA_TEST);\r\n\t\t//gl.disable(GL_COLOR_MATERIAL);\r\n\t\tgl.glShadeModel(GL_SMOOTH);\r\n\t\tgl.glDepthFunc( GL_LEQUAL );\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\r\n\t\tgl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\r\n\t\tgl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);\r\n\t\tgl.glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);\r\n\t\tgl.glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1);\r\n\t\tglj.gljCheckGL();\r\n\t}", "static public void init() {\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=MeshFrame.HEIGHT; i>=HeightScale;i-=HeightScale){\r\n\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\r\n\t\t\tfor (int j = 0; j <= MeshFrame.WIDTH; j+=WidthScale) {\r\n\t\t\t\tGL11.glVertex3f(j, i, 0);\r\n\t\t\t\tGL11.glVertex3f(j, i-HeightScale, 0);\r\n\t\t\t}\r\n\t\t\tGL11.glEnd();\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t}", "protected void preparePainting() {\n if (paintRegion == null) {\n prepareRegionProperties();\n prepareOption();\n }\n\n calculateCameraMatrix();\n }", "public void beforeDraw()\n {\n INDirector.setProjection(ProjectionFormat.DirectorProjection2D);\n this.grabber.beforeRender();\n }", "private void initGL() {\r\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\r\n glMatrixMode(GL_PROJECTION);\r\n glLoadIdentity();\r\n\r\n glOrtho(-320, 320, -240, 240, 1, -1);\r\n\r\n glMatrixMode(GL_MODELVIEW);\r\n glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);\r\n }", "@Override\n public void onFrameAvailable(SurfaceTexture st) {\n mGLView.requestRender();\n }", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n \n // Do backface culling\n GLES20.glEnable(GLES20.GL_CULL_FACE);\n GLES20.glFrontFace(GLES20.GL_CCW);\n // Why using GL_BACK won't work is a mystery\n GLES20.glCullFace(GLES20.GL_BACK);\n // Enable depth buffer\n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n GLES20.glDepthFunc(GLES20.GL_LEQUAL);\n GLES20.glDepthMask(true);\n \n for (int i = 0; i < NUM_CARS; i++) {\n mCarBody[i] = new CarBody((float) Math.random(),\n (float) Math.random(),\n (float) Math.random());\n mCarWheels[i] = new CarWheels();\n }\n \n // Create transformation matrices for each car\n for (int i = 0; i < NUM_CARS; i++) {\n mCarXOffsets[i] = (i % NUM_LANES) * 1.1f;\n mCarZOffsets[i] = ((i / NUM_LANES) * -2) + ((i % NUM_LANES) * 1.3f);\n }\n \n road = new Square(0.6f, 0.6f, 0.6f);\n land = new Square(0.1f, 0.6f, 0.1f);\n sky = new Square(0.6f, 0.6f, 0.9f);\n background = new Sprite(mActivityContext);\n \n }", "@Override\n public void onNewFrame(HeadTransform headTransform) {\n float[] mtx = new float[16];\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n surface.updateTexImage();\n surface.getTransformMatrix(mtx);\n }", "@Override\r\n\tpublic void onDrawFrame(GL10 gl) {\n\r\n\t\tLog.d(TAG, \"onDrawFrame\"\t);\r\n\t\t\tsetGL(gl);\r\n\t\t\tDrawObjects(gl);\r\n\t\t\tunSetGl(gl);\r\n\t}", "private void initRendering() {\n\t\tmActivity.showDebugMsg(\" initRendering\");\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f : 1.0f);\n\n\t\tfor (Texture t : mTextures) {\n\t\t\tGLES20.glGenTextures(1, t.mTextureID, 0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, t.mTextureID[0]);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, t.mWidth, t.mHeight, 0, GLES20.GL_RGBA,\n\t\t\t\t\tGLES20.GL_UNSIGNED_BYTE, t.mData);\n\t\t}\n\n\t\tshaderProgramID = ArUtils.createProgramFromShaderSrc(\n\t\t\t\tShaders.CUBE_MESH_VERTEX_SHADER,\n\t\t\t\tShaders.CUBE_MESH_FRAGMENT_SHADER);\n\n\t\tvertexHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexPosition\");\n\t\ttextureCoordHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexTexCoord\");\n\t\tmvpMatrixHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"modelViewProjectionMatrix\");\n\t\ttexSampler2DHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"texSampler2D\");\n\n\t\tif (!mModelIsLoaded) {\n\t\t\t//object = new Teapot();\n\t\t\tobject = mActivity.get3DObject();\n\t\t\tobjectScaleFloat *= object.getDefScale();\n\t\t\t//minObjectScale *= object.getDefScale();\n\t\t\t//maxObjectScale *= object.getDefScale();\n\n\t\t\tmActivity.showDebugMsg(\"Loading model Teapot\");\n\t\t\t// Hide the Loading Dialog\n\t\t\t//mActivity.loadingDialogHandler.sendEmptyMessage(LoadingDialogHandler.HIDE_DIALOG);\n\t\t}\n\n\t}", "@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n Log.d(LOGTAG, \"GLRenderer.onSurfaceCreated\");\n\n initRendering();\n\n vuforiaAppSession.onSurfaceCreated();\n }", "public void onDrawFrame(GL10 unused) {\n\n \tGLES20.glClearColor(0.5f,0.5f,0.5f,0.5f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n \n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n\n \t//GLES20.glCullFace(GLES20.GL_BACK);\n\n /* Update MVP matrix */\n\n mat4 mvp = mProj\n \t.mul(mat4.translation(0.0f, 0.0f, -5.0f))\n \t.mul(mat4.rotateY(-mAngleX))\n \t.mul(mat4.rotateX(mAngleY));\n \t\n \n // Add program to OpenGL environment\n GLES20.glUseProgram(mProgram);\n \n /* Set model view projection matrix */\n GLES20.glUniformMatrix4fv(muMVPHandle, 1, false, mvp.f(), 0);\n \n /*\n * Now we're ready to draw some 3D objects\n */\n mCube.draw(maPositionHandle, maColorHandle);\n }", "@Override\n\tpublic void glSetup(Context cx) {\n\t\tmShader = ShaderHelper.glGenerateShader(cx, \"vertex_shader\",\n\t\t\t\t\"scene_enhance_fragment_shader\", \"aPosition\", \"uMVPMatrix\",\n\t\t\t\t\"uTexture\", \"uTextureCurve\");\n\n\t}", "@Override\r\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t\tLog.d(TAG, \"onSurfaceCreated\");\r\n//\t\tgl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Set color's clear-value to\r\n\t\tgl.glClearColor(0.f, 0.f, 0.f, 0.f);\r\n/////new/////\t\t\r\n\t\t gl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA);\r\n\t\t gl.glEnable(gl.GL_BLEND);\r\n///////\t\t \r\n\t\tgl.glClearDepthf(1.0f); // Set depth's clear-value to farthest\r\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST); // Enables depth-buffer for hidden\r\n\t\t\t\t\t\t\t\t\t\t\t// surface removal\r\n\t\tgl.glDepthFunc(GL10.GL_LEQUAL); // The type of depth testing to do\r\n\t\tgl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); // nice\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// perspective\r\n\t\t// view\r\n\t\tgl.glShadeModel(GL10.GL_SMOOTH); // Enable smooth shading of color\r\n\t\tgl.glDisable(GL10.GL_DITHER); // Disable dithering for better\r\n\t\t\t\t\t\t\t\t\t\t// performance\r\n\t\t// You OpenGL|ES initialization code here\r\n\t\t// ......\r\n\t\tgl.glGenTextures(MAX_MODEL_NUM, texIDS, 0);\r\n\r\n//\t\tglview.loadTexture(gl); // Load image into Texture (NEW)\r\n\t\tgl.glEnable(gl.GL_TEXTURE_2D); // Enable texture (NEW)\r\n\t\t\r\n\t}", "private void applyOpenGLStartSettings(){\r\n\t\t//TODO pa.smooth() / pa.noSmooth() ver�ndert auch line_smooth!\r\n\t\t//f�r test ob multisampling lines ohne Line_smooth okay rendered m�ssen\r\n\t\t//sicherheitshalber auch die pa.smoot() etc abgefangen werden und line_smooth immer disabled sein!\r\n\t\t\r\n\t\t//TODO check line drawing and abstractvisible at stencil in this context (line_smooth)\r\n\t\t\r\n\t //TODO \r\n\t\t// - if multisampling enabled dont do line smoothing at all\r\n\t\t// - OR: disable multisampling each time before doing line_smoothing! (better but expensive?) \r\n\t\t// -> info: disabling multisampling isnt possible at runtime..\r\n\r\n\t // - or disable mutisample before drawing with line_smooth!\r\n\t\t//TOOD dont use lines to smooth some objects then (fonts, etc)\r\n\t if (MT4jSettings.getInstance().isOpenGlMode() ){\r\n\t \t\r\n\t \t//////////////////////////////\r\n\t \tthis.loadGL();\r\n\t //////////////////////////\r\n\t \r\n//\t \tGL gl = Tools3D.getGL(this);\r\n\t GLCommon gl = getGLCommon();\r\n\t \t\r\n\t \tlogger.info(\"OpenGL Version: \\\"\" + gl.glGetString(GL.GL_VERSION) + \"\\\"\" + \" - Vendor: \\\"\" + gl.glGetString(GL.GL_VENDOR) + \"\\\"\" + \" - Renderer: \\\"\" + gl.glGetString(GL.GL_RENDERER) + \"\\\"\");\r\n//\t \tlogger.info(\"Shading language version: \\\"\" + gl.glGetString(GL.GL_SHADING_LANGUAGE_VERSION) + \"\\\"\");\r\n\t \tlogger.info(\"Non power of two texture sizes allowed: \\\"\" + Tools3D.supportsNonPowerOfTwoTexture(this) + \"\\\"\");\r\n\t \tlogger.info(\"OpenGL Framebuffer Object Extension available: \\\"\" + GLFBO.isSupported(this) + \"\\\"\");\r\n\t \t\r\n\t\t\t//Set VSyncing on -> to avoid tearing \r\n\t\t\t//-> check if gfx card settings allow apps to set it!\r\n\t\t\t//-> Use with caution! only use with fps rate == monitor Hz!\r\n\t\t\t//and fps never drop below Hz! -> else choppy!\r\n\t\t\t//-> only works with opengl!\r\n\t \tTools3D.setVSyncing(this, MT4jSettings.getInstance().isVerticalSynchronization());\r\n\t\t\tlogger.info(\"Vertical Sync enabled: \\\"\" + MT4jSettings.getInstance().isVerticalSynchronization() + \"\\\"\");\r\n\t \t\r\n\t \tif ( MT4jSettings.getInstance().isMultiSampling()){\r\n\t \t\tgl.glEnable(GL.GL_MULTISAMPLE);\r\n//\t \t\tgl.glDisable(GL.GL_MULTISAMPLE);\r\n\t \t\tlogger.info(\"OpenGL multi-sampling enabled.\");\r\n\t \t}\r\n\t \tgl.glEnable(GL.GL_LINE_SMOOTH);\r\n//\t \tgl.glDisable(GL.GL_LINE_SMOOTH);\r\n\t }\r\n\t}", "@Override\r\n\tpublic void init(GL10 gl, EGLConfig config) {\n try {\r\n loadGLTextures(gl);\t\t\t\t\t\t\t\t\t\t// Jump To Texture Loading Routine ( NEW )\r\n } catch (IOException e) {\r\n \tLog.e(\"120\", \"An error occured!\");\r\n e.printStackTrace();\r\n }\r\n\r\n gl.glEnable(GL10.GL_TEXTURE_2D);\t\t\t\t\t\t\t\t\t// Enable Texture Mapping ( NEW )\r\n gl.glShadeModel(GL10.GL_SMOOTH);\t\t\t\t\t\t\t\t\t// Enable Smooth Shading\r\n gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f);\t\t\t\t\t\t// Black Background\r\n gl.glClearDepthf(1.0f);\t\t\t\t\t\t\t\t\t\t\t// Depth Buffer Setup\r\n gl.glEnable(GL10.GL_DEPTH_TEST);\t\t\t\t\t\t\t\t\t// Enables Depth Testing\r\n gl.glDepthFunc(GL10.GL_LEQUAL);\t\t\t\t\t\t\t\t\t\t// The Type Of Depth Testing To Do\r\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);\t\t\t// Really Nice Perspective Calculations\r\n\t}", "public static void init() {\n // init quad VAO\n vao = glGenVertexArrays();\n glBindVertexArray(vao);\n int positionVbo = glGenBuffers();\n FloatBuffer fb = BufferUtils.createFloatBuffer(2 * 4);\n fb.put(0.0f).put(0.0f);\n fb.put(1.0f).put(0.0f);\n fb.put(1.0f).put(1.0f);\n fb.put(0.0f).put(1.0f);\n fb.flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVbo);\n glBufferData(GL_ARRAY_BUFFER, fb, GL_STATIC_DRAW);\n glVertexAttribPointer(Main.shader.inPositionLoc, 2, GL_FLOAT, false, 0, 0L);\n glEnableVertexAttribArray(Main.shader.inPositionLoc);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n \n // init texture\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n byte[] dataArr = Main.loadResource(\"resources/font DF.png\");\n ByteBuffer data = BufferUtils.createByteBuffer(dataArr.length);\n data.put(dataArr).rewind();\n data = Objects.requireNonNull(stbi_load_from_memory(data, width, height, components, 1));\n int imgWidth = width.get();\n int imgHeight = height.get();\n charWidth = imgWidth / 16;\n charHeight = imgHeight / 16;\n \n texture = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, texture);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, imgWidth, imgHeight, 0, GL_RED, GL_UNSIGNED_BYTE, data);\n stbi_image_free(data);\n \n // set texScale uniform\n glUniform2f(Main.shader.texScaleLoc, 1/16f, 1/16f);\n }", "public void begin() {\r\n GL11.glViewport(0, 0, colorTexture.getWidth(), colorTexture.getHeight());\r\n bind();\r\n }", "@Override\n public void onSurfaceCreated(EGLConfig config) {\n Log.i(TAG, \"onSurfaceCreated\");\n GLES20.glClearColor(0.1f, 0.1f, 0.1f, 0.5f); // Dark background so text shows up well\n\n ByteBuffer bb = ByteBuffer.allocateDirect(squareVertices.length * 4);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(squareVertices);\n vertexBuffer.position(0);\n\n ByteBuffer dlb = ByteBuffer.allocateDirect(drawOrder.length * 2);\n dlb.order(ByteOrder.nativeOrder());\n drawListBuffer = dlb.asShortBuffer();\n drawListBuffer.put(drawOrder);\n drawListBuffer.position(0);\n\n ByteBuffer bb2 = ByteBuffer.allocateDirect(textureVertices.length * 4);\n bb2.order(ByteOrder.nativeOrder());\n textureVerticesBuffer = bb2.asFloatBuffer();\n textureVerticesBuffer.put(textureVertices);\n textureVerticesBuffer.position(0);\n\n int vertexShader = loadGLShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode);\n int fragmentShader = loadGLShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL ES Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram);\n\n texture = createTexture();\n startCamera(texture);\n }", "public void onSurfaceCreated(GL10 gl, EGLConfig config)\n {\n // Call native function to initialize rendering:\n initRendering();\n\n // Call QCAR function to (re)initialize rendering after first use\n // or after OpenGL ES context was lost (e.g. after onPause/onResume):\n QCAR.onSurfaceCreated();\n }", "public native void initRendering();", "public native void initRendering();", "private void initializeBuffers()\n\t{\n\t\t// format vertex data so it can be passed to openGL\n\t\tFloatBuffer vertexBuffer = \n\t\t\t\tUtility.floatArrayToBuffer(mesh.vertexData);\n\t\t \n\t // create a buffer object and store the vertex data there\n\t\tvertexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vertexBufferObject);\n\t\tglBufferData(GL_ARRAY_BUFFER, vertexBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\t\t\n\t\t// format index data so it can be passed to openGL\n\t\tShortBuffer indexDataBuffer = \n\t\t\t\tUtility.shortArrayToBuffer(mesh.indexData);\n\t\t\n\t\t// create a buffer object and store the index data there\n\t\tindexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBufferObject);\n\t\tglBufferData(GL_ELEMENT_ARRAY_BUFFER, indexDataBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);\n\t}", "@Override\r\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\r\n\t\tgl.glDisable(GL10.GL_DITHER);\r\n\t\tgl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\r\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\r\n\t\tgl.glDepthFunc(GL10.GL_LEQUAL);\r\n\t\tgl.glClearDepthf(1f);\r\n\t}", "private void initRendering() {\n ring = new Ring(0.3f, 0.7f);\n line = new Line(ImageTargets.screenWidth / 2, ImageTargets.screenHeight / 2);\n state_txt = createObject(68f, state_txt_cx, state_txt_cy, R.drawable.state);\n state_img = createObject(120f, state_img_cx, state_img_cy, R.drawable.open);\n record_txt = createObject(68f, record_txt_cx, record_txt_cy, R.drawable.record_txt);\n record_img = createObject(95f, record_img_cx, record_img_cy, R.drawable.record_img);\n recog_txt = createObject(68f, recog_txt_cx, recog_txt_cy, R.drawable.recog_txt);\n recog_img = createObject(155, recog_img_cx, recog_img_cy, R.drawable.person);\n record_num = createObject(85, record_num_cx, record_num_cy, R.drawable.num);\n\n histogram = createHistogram(85, 275.0f, 1150, 2.0f);\n histogram1 = createHistogram(85, 405, 1150, 2.2f);\n histogram2 = createHistogram(85, 540, 1150, 2.58f);\n histogram3 = createHistogram(85, 675, 1150, 0.9f);\n mRenderer = Renderer.getInstance();\n\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f\n : 1.0f);\n setBgTransparent();\n //初始化纹理\n initTexture(res);\n mActivity.loadingDialogHandler\n .sendEmptyMessage(LoadingDialogHandler.HIDE_LOADING_DIALOG);\n\n }", "final protected void prepareVertexBuffer() {\n vertexReference = new VectorQD[calculateVertexNumber()];\n vertexBuffer = new VectorQD[vertexReference.length];\n for (int i = 0; i < vertexBuffer.length; i++) {\n vertexBuffer[i] = new VectorQD();\n }\n }", "private void initRender() {\n if (!isRenderable()) {\n throw new IllegalStateException(\"Make the mesh renderable before rendering!\");\n }\n \n //Set active texture if it exists\n if (material.hasTexture()) {\n glActiveTexture(GL_TEXTURE0);\n glBindTexture(GL_TEXTURE_2D, material.getTexture().getId());\n }\n\n if (material.hasNormalMap()) {\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, material.getNormalMap().getId());\n }\n\n //Draw mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n glEnableVertexAttribArray(2);\n glEnableVertexAttribArray(3);\n glEnableVertexAttribArray(4);\n }", "private void init()\n\t{\n\t\tinitOpenGL();\n\t\tlatestStroke = new Stroke(this, true);\n\t}", "@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tLibNative.render();\n\t}", "public void end() {\r\n GL11.glViewport(0, 0, GLContext.getCurrent().getWidth(), GLContext.getCurrent().getHeight());\r\n glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);\r\n }", "@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Set color's clear-value to black\n gl.glClearDepthf(1.0f); // Set depth's clear-value to farthest\n gl.glEnable(GL10.GL_DEPTH_TEST); // Enables depth-buffer for hidden surface removal\n gl.glDepthFunc(GL10.GL_LEQUAL); // The type of depth testing to do\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); // nice perspective view\n gl.glShadeModel(GL10.GL_SMOOTH); // Enable smooth shading of color\n gl.glDisable(GL10.GL_DITHER); // Disable dithering for better performance\n \n // You OpenGL|ES initialization code here\n\n \n \n }", "private void finalRenderToTexture() {\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\t\tGL11.glCullFace(GL11.GL_BACK);\n\t\tGL11.glColorMask(true, true, true, true);\n\t\tGL11.glDepthFunc(GL11.GL_LEQUAL);\n\t\tGL11.glStencilOp(GL11.GL_KEEP, GL11.GL_KEEP, GL11.GL_KEEP);\n\t\tGL11.glDepthMask(false);\n\t\tGL11.glEnable(GL11.GL_STENCIL_TEST);\n\n\t\t// ambient pass\n\t\tGL11.glStencilFunc(GL11.GL_NOTEQUAL, 0, 0xff);\n\t\tphongShadowContext.uniform1f(\"ambientOnly\", 1);\n\t\tfor (PhysicsEntity<? extends RenderEntity> e : entities) {\n\t\t\tRenderEntity re = e.getWorldEntity();\n\t\t\tre.render(phongShadowContext);\n\t\t}\n\n\t\t// diffuse pass\n\t\tGL11.glStencilFunc(GL11.GL_EQUAL, 0, 0xff);\n\t\tphongShadowContext.uniform1f(\"ambientOnly\", 0);\n\t\tfor (PhysicsEntity<? extends RenderEntity> e : entities) {\n\t\t\tRenderEntity re = e.getWorldEntity();\n\t\t\tre.render(phongShadowContext);\n\t\t}\n\n\t\tGL11.glDisable(GL11.GL_BLEND);\n\t\tGL11.glDepthFunc(GL11.GL_LEQUAL);\n\t\tGL11.glDepthMask(true);\n\t\tGL11.glDisable(GL11.GL_STENCIL_TEST);\n\n\t\t// SCREEN POST PROCESSING\n\t\tscreenBuffer.copyPixels();\n\t}", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "void init(){\n if(DEBUG) Log.d(TAG, \"Creating GlHelper and Surface\");\n mGLHelper = new GLHelper();\n int mDefaultTextureID = 10001;\n SurfaceTexture st = new SurfaceTexture(mDefaultTextureID);\n st.setDefaultBufferSize(mWidth, mHeight);\n mGLHelper.init(st);\n\n textureID = mGLHelper.createOESTexture();\n sTexture = new SurfaceTexture(textureID);\n sTexture.setOnFrameAvailableListener(this);\n surface = new Surface(sTexture);\n }", "@Override\n public void onDrawFrame(GL10 glUnused) {\n // Clear the rendering surface.\n glClear(GL_COLOR_BUFFER_BIT);\n\n\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_LINES, 0, 108);\n\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_LINES, 108, 40);\n\t\t\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 0.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 148, 988);\n\t\t\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 988, 997);\n\t\t\n\t\tglUniform4f(uColorLocation, 1.0f, 1.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 997, 6);\n\t\n\t\tglUniform4f(uColorLocation, 0.0f, 0.0f, 1.0f, 0.0f);\n\t\tglDrawArrays(GL_TRIANGLES, 1003, 6);\n\t\t\n\t\tglUniform4f(uColorLocation, 0.5f, 0.5f, 0.5f, 0.5f);\n\t\tglDrawArrays(GL_TRIANGLES, 1009, 9);\n }", "public void init(GL2 gl) {\n\t}", "public void setup(){\n\t\t gl.glEnable(GL.GL_BLEND);\n\t\t gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);\n\t\t for (int i = 0; i< cubes.length; i++){\n\t\t cubes[i] = this.s.new Cube(\n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\t5,//Math.round(random(-100, 100)),\n\t\t \t\tMath.round(p.random(-10, 10)), \n\t\t \t\t\tMath.round(p.random(-10, 10)), \n\t\t\t\t\tMath.round( p.random(-10, 10))\n\t\t );\n\t\t cubRotation[i]=new Vector3D();\n\t\t cubRotationFactor[i]=new Vector3D();\n\t\t cubRotationFactor[i].x = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].y = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].z = (float)Math.random()/2f;\n\t\t \n\t\t cubColor[i]=new Vector3D();\n\t\t cubColor[i].x = (float)Math.random();\n\t\t cubColor[i].y = (float)Math.random();\n\t\t cubColor[i].z = (float)Math.random();\n\t\t }\n\t\t \n\t\t try {\n\t\t\togl.makeProgram(\n\t\t\t\t\t\t\"glass\",\n\t\t\t\t\t\tnew String[] {},\n\t\t\t\t\t\tnew String[] {\"SpecularColor1\",\"SpecularColor2\",\"SpecularFactor1\",\"SpecularFactor2\",\"LightPosition\"}, //\"GlassColor\",\n\t\t\t\t\t\togl.loadGLSLShaderVObject(\t\"resources/robmunro/perform/ol5/glass_c.vert\" ), \n\t\t\t\t\t\togl.loadGLSLShaderFObject(\t\"resources/robmunro/perform/ol5/glass_c.frag\"\t)\n\t\t\t\t);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "private void setup2DGraphics() {\n\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\t\tGL11.glOrtho(0, width, 0, height, 1, -1);\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}", "public void bind() {GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, mFrameBufferHandle[0]);}", "public void onSurfaceCreated(GL10 gl, EGLConfig config)\r\n {\r\n DebugLog.LOGD(\"GLRenderer::onSurfaceCreated\");\r\n \r\n // Call native function to initialize rendering:\r\n initRendering();\r\n \r\n // Call QCAR function to (re)initialize rendering after first use\r\n // or after OpenGL ES context was lost (e.g. after onPause/onResume):\r\n QCAR.onSurfaceCreated();\r\n \r\n // Call native function to store information about the Java environment\r\n // It is important that we make this call from this thread (the rendering thread)\r\n // as the native code will want to make callbacks from this thread\r\n initNativeCallback();\r\n }", "public void onSurfaceCreated(int vertexShader, int gridShader, int passthroughShader) {\r\n \tstuff();\r\n program = GLES20.glCreateProgram();\r\n GLES20.glAttachShader(program, vertexShader);\r\n if (this instanceof GLSelectableObject) {\r\n GLES20.glAttachShader(program, passthroughShader);\r\n } else {\r\n GLES20.glAttachShader(program, gridShader);\r\n }\r\n GLES20.glLinkProgram(program);\r\n GLES20.glUseProgram(program);\r\n\r\n checkGLError(\"Floor program\");\r\n\r\n modelParam = GLES20.glGetUniformLocation(program, \"u_Model\");\r\n modelViewParam = GLES20.glGetUniformLocation(program, \"u_MVMatrix\");\r\n modelViewProjectionParam = GLES20.glGetUniformLocation(program, \"u_MVP\");\r\n lightPosParam = GLES20.glGetUniformLocation(program, \"u_LightPos\");\r\n\r\n positionParam = GLES20.glGetAttribLocation(program, \"a_Position\");\r\n normalParam = GLES20.glGetAttribLocation(program, \"a_Normal\");\r\n colorParam = GLES20.glGetAttribLocation(program, \"a_Color\");\r\n\r\n GLES20.glEnableVertexAttribArray(positionParam);\r\n GLES20.glEnableVertexAttribArray(normalParam);\r\n GLES20.glEnableVertexAttribArray(colorParam);\r\n\r\n checkGLError(\"Floor program params\");\r\n Matrix.setIdentityM(model, 0);\r\n Matrix.translateM(model, 0, -xPos, -yPos, -zPos); // Floor appears\r\n // below user.\r\n\r\n }", "protected void preUpdate() {\n freeX = true;\n freeY = true;\n }", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\n mTriangle = new Triangle();\n mSquare = new Square();\n }", "@Override\n public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n \n String vertexShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_vertex_shader);\n String fragmentShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_fragment_shader);\n \n int vertexShaderId = ShaderHelper.compileVertexShader(vertexShaderSource);\n int fragmentShaderId = ShaderHelper.compileFragmentShader(fragmentShaderSource);\n \n program = ShaderHelper.linkProgram(vertexShaderId, fragmentShaderId);\n \n if(LoggerConfig.ON){\n \tShaderHelper.validateProgram(program);\n }\n glUseProgram(program);\n uColorLocation = glGetUniformLocation(program, U_COLOR);\n aPositionLocation = glGetAttribLocation(program, A_POSITION);\n \n vertexData.position(0);\n glVertexAttribPointer(aPositionLocation, POSITION_COMPONENT_COUNT, GL_FLOAT, false, 0, vertexData);\n glEnableVertexAttribArray(aPositionLocation); \n }", "public void previewOglRender();", "public static void onPreRenderShaders(float partialTicks) {\n\t\tMinecraftForge.EVENT_BUS.post(new PreRenderShadersEvent(partialTicks));\n\t}", "private void renderEngine() {\r\n GL11.glDisable(GL11.GL_LIGHTING);\r\n\r\n GL11.glEnable(GL11.GL_BLEND);\r\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);\r\n\r\n shotTexture.bind();\r\n engine.render();\r\n\r\n GL11.glDisable(GL11.GL_BLEND);\r\n }", "@Override\n\tpublic void init () {\n\t\tframeBuffers = new FrameBuffer[getPassQuantity()];\n\t\tpassShaderProviders = new ShaderProvider[getPassQuantity()];\n\n\t\tfor (int i = 0; i < getPassQuantity(); i++) {\n\t\t\tinit(i);\n\t\t}\n\t}", "private void init()\n {\n batch = new SpriteBatch();\n \n camera = new OrthographicCamera(Constants.VIEWPORT_WIDTH, Constants.VIEWPORT_HEIGHT);\n camera.position.set(0, 0, 0);\n camera.update();\n \n cameraGui = new OrthographicCamera(Constants.VIEWPORT_GUI_WIDTH, Constants.VIEWPORT_GUI_HEIGHT);\n cameraGui.position.set(0, 0, 0);\n cameraGui.setToOrtho(true); // flip y-axis\n cameraGui.update();\n \n cameraBg = new OrthographicCamera(Constants.VIEWPORT_GUI_WIDTH, Constants.VIEWPORT_GUI_HEIGHT);\n cameraBg.position.set(0, 0, 0);\n //cameraBg.setToOrtho(true);\n cameraBg.update();\n \n b2Debug = new Box2DDebugRenderer();\n }", "public void render() {\r\n glPushMatrix();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glVertexPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glColorPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBindTexture(GL_TEXTURE_2D, 1);\r\n glTexCoordPointer(2, GL_FLOAT, 0, 0l);\r\n glDrawArrays(GL_QUADS, 0, CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 24);\r\n glPopMatrix();\r\n }", "public void dispose() {\r\n\r\n// ByteBuffer tmp = ByteBuffer.allocateDirect(4);\r\n// tmp.order(ByteOrder.nativeOrder());\r\n// IntBuffer handle = tmp.asIntBuffer();\r\n IntBuffer handle = BufferUtils.createIntBuffer(1);\r\n\r\n// colorTexture.dispose();\r\n if (hasDepth) {\r\n handle.put(depthbufferHandle);\r\n handle.flip();\r\n glDeleteRenderbuffersEXT(handle);\r\n }\r\n\r\n handle.put(framebufferHandle);\r\n handle.flip();\r\n glDeleteFramebuffersEXT(handle);\r\n\r\n }", "private void init(Context context) {\n FilterParam.context = this.getContext();\n this.setEGLContextClientVersion(2);// @see android.opengl.GLSurfaceView\n this.mRender = new MyRenderer(this);\n this.setRenderer(this.mRender);//@see android.opengl.GLSurfaceView\n this.setZOrderMediaOverlay(true);//@see android.opengl.GLSurfaceView\n this.setRenderMode(RENDERMODE_WHEN_DIRTY);\n }", "abstract public void init(GL gl);", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n Log.d(TAG, \"surfaceCreated\");\n mRenderingPaused = false;\n mHolder = holder;\n updateRenderingState();\n }", "@Override\r\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\r\n\r\n\t\tgl.glMatrixMode(GL10.GL_PROJECTION);\r\n\t\tgl.glLoadIdentity();\r\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION,\r\n\t\t\t\tnew float[] { 5, 5, 5, 1 }, 0);\r\n\r\n\t\tgl.glRotatef(anglez, 0, 0, 1);\r\n\t\tgl.glRotatef(angley, 0, 1, 0);\r\n\t\tgl.glRotatef(anglex, 1, 0, 0);\r\n\t\tanglez += 0.1;\r\n\t\tangley += 0.2;\r\n\t\tanglex += 0.3;\r\n\r\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\r\n\t\t// gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);\r\n\t\tgl.glEnableClientState(GL10.GL_COLOR_ARRAY);\r\n\r\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexesBuffer);\r\n\t\tgl.glColorPointer(4, GL10.GL_FLOAT, 0, colorBuffer);\r\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, triangleBuffer.remaining(),\r\n\t\t\t\tGL10.GL_UNSIGNED_BYTE, triangleBuffer);\r\n\r\n\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\r\n\t\tgl.glDisableClientState(GL10.GL_COLOR_ARRAY);\r\n\t\tgl.glFinish();\r\n\r\n\t}", "public void unbind() {GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);}", "@Override\n\tprotected void init() {\n\t\tShaderProgram shaderProgram = new ShaderProgram(\"aufgabe2\");\n\t\tglUseProgram(shaderProgram.getId());\n\t\tfloat [] vertex_data = {\n\t\t\t\t-0.5f,-0.5f,\n\t\t\t\t0.5f,-0.5f,\n\t\t\t\t0.0f,0.5f,\n\t\t};\n\t\tfloat[] frag_data = { 1f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 1f };\n\t\t// Koordinaten, VAO, VBO, ... hier anlegen und im Grafikspeicher ablegen\n\t\tint vaoId = glGenVertexArrays();\n\t\tglBindVertexArray(vaoId);\n\t\tint vboId = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboId);\n\t\tglBufferData(GL_ARRAY_BUFFER,vertex_data, GL_STATIC_DRAW);\n\t\tglVertexAttribPointer(0, 2, GL_FLOAT,false, 0, 0);\n\t\tglEnableVertexAttribArray(0);\n\t\tint vboId2 = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboId2);\n\t\tglBufferData(GL_ARRAY_BUFFER,frag_data, GL_STATIC_DRAW);\n\t\tglVertexAttribPointer(1, 3, GL_FLOAT, false, 0, 0);\n\t\tglEnableVertexAttribArray(1);\n\t}", "public GLRenderer(Context context){\n\n lastTime=System.currentTimeMillis();\n mCuboid=new ndCuboid();\n\n\n }", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "public native void renderOneFrame();", "public void prepareModel() {\n //Since many models have different scale amplitudes, we calculate a uniform scale factor for the model\n setScaleFactor();\n //Since the 3ds file does not provide normal values, we must calculate them ourselves\n calculateNormals();\n //Finally we need to setup the buffers for drawing\n setupBuffers();\n }", "public void onSurfaceChanged(GL10 gl, int width, int height)\n {\n\n nativeInitialize(width, height);\n }", "@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n float[] backgroundColor = new float[]{0.2f, 0.2f, 0.2f, 1.0f};\n //float[] backgroundColor = main.getModelActivity().getBackgroundColor();\n GLES20.glClearColor(backgroundColor[0], backgroundColor[1], backgroundColor[2], backgroundColor[3]);\n\n // Use culling to remove back faces.\n // Don't remove back faces so we can see them\n GLES20.glEnable(GLES20.GL_CULL_FACE);\n\n // Enable depth testing for hidden-surface elimination.\n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n// Create the GLText\n\t\t/*glText = new GLText(unused,context.getAssets());\n\n\t\t// Load the font from file (set size + padding), creates the texture\n\t\t// NOTE: after a successful call to this the font is ready for rendering!\n\t\tglText.load( \"Roboto-Regular.ttf\", 14, 2, 2 ); // Create Font (Height: 14 Pixels / X+Y Padding 2 Pixels)\n*/\n // Enable blending for combining colors when there is transparency\n GLES20.glEnable(GLES20.GL_BLEND);\n GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\n // This component will draw the actual models using OpenGL\n drawer = new DrawerFactory();\n }", "public void backBufferIntoTexture()\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tif (InternalTexture[0] == 0) {\r\n\t\t\tgl.glGenTextures(1,InternalTexture);\r\n\t\t\tSystem.out.print(\"Initializing internal texture \"+InternalTexture[0]+\":[\"+getWidth()+\",\"+getHeight()+\"]\\n\");\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, this.getWidth(), this.getHeight(), 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, this.getWidth(), this.getHeight());\r\n\t\t}\r\n\t\tglut.glutReportErrors();\r\n\t}", "public void reset() {\n _oldColorBuffer = _oldNormalBuffer = _oldVertexBuffer = _oldInterleavedBuffer = null;\n Arrays.fill(_oldTextureBuffers, null);\n }", "public void startRendering() {\n if (!justRendered) {\n justRendered = true;\n \n if (Flags.wireFrame) p.render_wireFrame();\n else p.render();\n }\n }", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "private void resizeArrays() {\r\n//\t\tThread.dumpStack();\r\n\t\t\r\n\t\t// coordinates, colors, 2 texunits\r\n\t\tint size = numElements * (3 + 3 + 2 + 2) * 4;\r\n\t\tSystem.out.println(\"resizeArrays \"+size+\" \"+numElements);\r\n\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, vboVertexId);\r\n\t\tARBVertexBufferObject.glBufferDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, size, ARBVertexBufferObject.GL_STATIC_DRAW_ARB);\r\n\t\t\r\n\t\tuploadBuffer.clear();\r\n\t\tfor (int i=0; i<uploadBuffer.capacity(); i++) {\r\n\t\t\tuploadBuffer.put(i, 1);\r\n\t\t}\r\n\t\t\r\n\t\t// clear the data\r\n\t\tint pos = 0;\r\n\t\twhile (pos < size) {\r\n\t\t\tif (size - pos < uploadBuffer.capacity() * 4) {\r\n\t\t\t\tuploadBuffer.limit((size - pos) / 4);\r\n\t\t\t}\r\n\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, pos, uploadBuffer);\r\n\t\t\tUtil.checkGLError();\r\n\t\t\tpos += uploadBuffer.capacity() * 4;\r\n\t\t}\r\n\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, 0);\r\n\t}", "static void initializeVertexBuffer(int divideCount)\n {\n ByteBuffer vb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n vertexData.length * 4);\n // use the device hardware's native byte order\n vb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = vb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(vertexData);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n // initialize index byte buffer for vertex indexes\n ByteBuffer sb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 2 bytes per short)\n indexData.length * 2);\n // use the device hardware's native byte order\n sb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n indexBuffer = sb.asShortBuffer();\n // add the coordinates to the FloatBuffer\n indexBuffer.put(indexData);\n // set the buffer to read the first coordinate\n indexBuffer.position(0);\n\n GLES20.glGenBuffers(1, vertexBufferObject, divideCount);\n GLES20.glGenBuffers(1, indexBufferObject, divideCount);\n\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, indexBufferObject[divideCount]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER, indexBuffer.capacity() * BYTES_PER_SHORT,\n indexBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vertexBufferObject[divideCount]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexBuffer.capacity() * BYTES_PER_FLOAT,\n vertexBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n }", "public void fullRenderRefresh() {\n gameChanged = true;\n visionChanged = true;\n backgroundChanged = true;\n selectionChanged = true;\n movementChanged = true;\n }", "private void init()\n {\n holder = getHolder();\n holder.addCallback(this);\n holder.setType(SurfaceHolder.SURFACE_TYPE_GPU);\n }", "public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n\t\tGLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\t\tmVertexShader = RawResourceReader.readTextFileFromRawResource(mContext,\n\t\t\t\tde.moliso.shelxle.R.raw.atoms_vetrex_shader);\n\t\tmFragmentShader = RawResourceReader.readTextFileFromRawResource(\n\t\t\t\tmContext, de.moliso.shelxle.R.raw.atoms_fragment_shader);\n\n\t\tmProgram = createProgram(mVertexShader, mFragmentShader);\n\t\tif (mProgram == 0) {\n\t\t\treturn;\n\t\t}\n\t\ttry{\n\t\t\tversionName = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName;\n\t\t}catch (NameNotFoundException e){\n\t\t\t//wurst\n\t\t}\n\t\ttexturH = GLES20.glGetUniformLocation(mProgram, \"text\");\n\t\tellipsoidH = GLES20.glGetUniformLocation(mProgram, \"eli\");\n\t\tlichtH = GLES20.glGetUniformLocation(mProgram, \"lighting\");\n\n\t\tvertexAttr1 = GLES20.glGetAttribLocation(mProgram, \"vertex\");\n\n\t\tnormalAttr1 = GLES20.glGetAttribLocation(mProgram, \"normal\");\n\t\tmatrixUniform1 = GLES20.glGetUniformLocation(mProgram, \"matrix\");\n\t\tinvmatrixUniform1 = GLES20.glGetUniformLocation(mProgram, \"invmatrix\");\n\t\tcolorUniform1 = GLES20.glGetUniformLocation(mProgram, \"col\");\n\n\t\tmTextureLoc = GLES20.glGetUniformLocation(mProgram, \"textureSampler\");\n\t\tMatrix.setIdentityM(mv, 0);\n\t\tMatrix.scaleM(mv, 0, 9.0f, 9.0f, 9.0f);\n\n\t\t// Matrix.setLookAtM(mVMatrix, 0, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n\n\t}", "private void afterLoad( ) \r\n {\r\n //fill, regardless of setting in env...\r\n GLShape state = new GLShape();\r\n state.addGLState(new GLFill());\r\n avatarRenderNode.getGLShapeList().prepend(state);\r\n }", "@Override\n public void preUpdate(GameState currentState) {\n if (window.isCloseRequested())\n engine.shutdown();\n if (glUtils != null) {\n glUtils.color(0.1960784314f, 0.3921568627f, 0.6588235294f, 1.0f);\n glUtils.clear(true, true);\n }\n }", "public void endRender () {\n\t\tglFlush();\n\t\tglfwSwapBuffers(window.window);\n\t\t//System.out.println(\"Swapped buffers\");\n\t\tglfwPollEvents();\n\t\t//shaderProgram.bind();\n\t}", "@Override\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t\tgl.glClearColor(0,0,0,1); \n\t\t//enable vertex array for vertex pointer\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY); \n\t\t//enable normal array\n\t\tgl.glEnableClientState(GL10.GL_NORMAL_ARRAY);\n\t\t//enable DepthTest\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST); \n\t\t//enable Blend\n\t\tgl.glEnable(GL10.GL_BLEND);\n\t\t//set blend function\n\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t//Gen texture\n\t\t//initialize array\n\t\tint textureIds[] = new int[1];\n\t\t//generate 1 texture return handle to textureIds\n\t\tgl.glGenTextures(1, textureIds, 0);\n\t\t//get handle from array to an int\n\t\ttextureId = textureIds[0];\n\t\t//bind using array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textureId);\n\t\t//copy image pixels data to texture buffer on video mem\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t\t//filter for minif\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\t//filter for magnif\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_NEAREST);\n\t\t//unbind texture buffer\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, 0);\n\t\t//bitmap.recycle(); just if not used anymore \n\t}", "@Override\n public void postRender(GL2 gl)\n {\n gl.glDisable(GL.GL_TEXTURE_2D);\n }", "@Override\n public void clearBuffers() {\n if (defaultStateList.containsKey(RenderState.StateType.ZBuffer)) {\n defaultStateList.get(RenderState.StateType.ZBuffer).setNeedsRefresh(true);\n applyState(defaultStateList.get(RenderState.StateType.ZBuffer));\n }\n GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n }", "public void onDrawFrame(GL2 gl) {\n gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT);\r\n\r\n if (updatePerspective) {\r\n if (gl != null) {\r\n gl.glMatrixMode(GLMatrixFunc.GL_PROJECTION);\r\n gl.glLoadIdentity();\r\n glu.gluPerspective(camera.getOpeningAngle(), aspectRatio, nearClippingPlane, farClippingPlane);\r\n gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);\r\n }\r\n updatePerspective = false;\r\n }\r\n\r\n updateView(gl);\r\n\r\n // Flat shading\r\n gl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_FILL);\r\n\r\n if (renderFrame != null) {\r\n renderFrame.getRoot().drawGl(gl);\r\n }\r\n }", "public void rebuildMesh(float initX, float initY, float initZ) {\r\n VBOColorHandle = glGenBuffers();\r\n VBOVertexHandle = glGenBuffers();\r\n VBOTextureHandle = glGenBuffers();\r\n int height;\r\n FloatBuffer VertexPositionData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n FloatBuffer VertexColorData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n FloatBuffer VertexTextureData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n for (float x = -initX; x < -initX + CHUNK_SIZE; x++) {\r\n for (float z = -initZ; z < -initZ + CHUNK_SIZE; z++) {\r\n height = (int) (((sNoise.getNoise((int)x + (int)initX/2, (int)z + (int)initZ/2)) + 1) / 2 * 10) + 5;\r\n for (float y = 0; y <= height; y++) {\r\n VertexPositionData.put(createCube((float)(initX + x * CUBE_LENGTH), (float)(initY + y * CUBE_LENGTH), (float)(initZ + z * CUBE_LENGTH)));\r\n VertexColorData.put(createCubeVertexCol(getCubeColor(blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ])));\r\n VertexTextureData.put(createTexCube((float) 0, (float) 0, blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ]));\r\n }\r\n if (height < 11) {\r\n for (float y = height; y < 11; y++) {\r\n VertexPositionData.put(createCube((float)(initX + x * CUBE_LENGTH), (float)(initY + y * CUBE_LENGTH), (float)(initZ + z * CUBE_LENGTH)));\r\n VertexColorData.put(createCubeVertexCol(getCubeColor(blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ])));\r\n VertexTextureData.put(createTexCube((float) 0, (float) 0, blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ]));\r\n }\r\n }\r\n }\r\n }\r\n VertexColorData.flip();\r\n VertexPositionData.flip();\r\n VertexTextureData.flip();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexPositionData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexColorData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexTextureData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n }", "@Override\n\tpublic void initCameraGlSurfaceView() {\n\t\t\n\t}", "private final void \n renderIt( ) {\n \t\n \tif( this.mImageCount > 0 || this.mLineCount > 0 || this.mRectCount > 0 || this.mTriangleCount > 0 ) {\n\t \n \t\tthis.mVertexBuffer.clear(); //clearing the buffer\n\t GLES11.glEnableClientState( GLES11.GL_VERTEX_ARRAY );\n\n\t //if there are images to render\n\t if( this.mImageCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mImageCount * 16 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer );\n\t\t this.mIndexBuffer.limit(this.mImageCount * 6); //DESKTOP VERSION ONLY\n\t\t GLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mImageCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t \tGLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t //if there are lines to render\n\t if( this.mLineCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mLineCount * 4 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 0, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glDrawArrays( GLES11.GL_LINES, 0, this.mLineCount * 2 ); //* 2 because every line got 2 points\n\t }\n\n\t //if there are rects to render\n\t if( this.mRectCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mRectCount * 8 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t this.mIndexBuffer.limit(this.mRectCount * 6); //DESKTOP VERSION ONLY\n\t \t GLES11.glVertexPointer(2, GLES11.GL_FLOAT, 0, this.mVertexBuffer); //copy the vertices into the GPU\t \t \n\t \t \tGLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mRectCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t }\n\t \n\t //if there are triangles to render\n\t if( this.mTriangleCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mTriangleCount * 12 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //16 == byteoffset -> es liegen 2 werte dazwischen\n\t\t GLES11.glDrawArrays( GLES11.GL_TRIANGLES, 0, this.mTriangleCount * 3 ); //* 2 because every line got 2 points\t \t\n\t\t GLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t GLES11.glDisableClientState( GLES11.GL_VERTEX_ARRAY );\n \t\t\n\t //resetting counters\n\t this.mBufferIndex = 0;\n\t \tthis.mImageCount = 0;\n\t \tthis.mLineCount = 0;\n\t \tthis.mRectCount = 0;\n\t \tthis.mTriangleCount = 0;\n \t}\n }", "@Override\n public void onDrawFrame(GL10 glUnused) {\n glClear(GL_COLOR_BUFFER_BIT);\n \n \n multiplyMM(viewProjectionMatrix, 0, projectionMatrix, 0,\n viewMatrix, 0);\n invertM(invertedViewProjectionMatrix, 0, viewProjectionMatrix, 0);\n\n refreshGameState();\n \n setPerspectiveView();\n // Draw the table.\n positionTableInScene();\n textureProgram.useProgram();\n textureProgram.setUniforms(modelViewProjectionMatrix, texture);\n table.bindData(textureProgram);\n table.draw();\n\n // Draw the mallets.\n// positionObjectInScene(0f, mallet.height / 2f, -0.4f);\n colorProgram.useProgram();\n\n \n //draw grids\n for (int i = 0; i<lines.length; i++)\n {\n positionObjectInScene(0,0,0);\n colorProgram.setUniforms(modelViewProjectionMatrix,0.5f + i*0.1f, 0.4f+ i*0.1f, 1f);\n lines[i].bindData(colorProgram);\n lines[i].draw();\n }\n \n \n // Draw the puck.\n for (int i = 0; i<2; i++)\n {\n\t positionObjectInScene(puckPosition[i].x, puckPosition[i].y, puckPosition[i].z);\n\t colorProgram.setUniforms(modelViewProjectionMatrix, 0.5f + i*0.2f, 0.015f + 0*0.1f, 0.9f);\n\t //colorProgram.setUniforms(modelViewProjectionMatrix, 0.5f, 0.01f , 0.9f);\n\t puck[i].bindData(colorProgram);\n\t puck[i].draw();\n }\n \n //draw Obstacles\n for (int i = 0; i< obstacles.length; i++){\n positionObjectInScene(obstaclePosition[i].x, obstaclePosition[i].y, obstaclePosition[i].z);\n colorProgram.setUniforms(modelViewProjectionMatrix, 0.1f, 0.3f, 0.11f);\n obstacles[i].bindData(colorProgram);\n obstacles[i].draw();\n \n \n }\n \n\n \n }" ]
[ "0.76273394", "0.7232147", "0.72055656", "0.68025637", "0.66471595", "0.6628519", "0.6580069", "0.6567812", "0.65440065", "0.6387957", "0.63753045", "0.6310121", "0.63101006", "0.62929523", "0.62583643", "0.62291485", "0.6194948", "0.6148927", "0.6122743", "0.61216915", "0.6107543", "0.6107347", "0.61035687", "0.6059128", "0.603147", "0.60305995", "0.5989045", "0.5986394", "0.5977472", "0.5975562", "0.5952322", "0.59521973", "0.5914463", "0.59143555", "0.5911119", "0.5877011", "0.5873741", "0.5872382", "0.58647984", "0.58647984", "0.58611697", "0.58284175", "0.5815891", "0.5814943", "0.58141625", "0.5811712", "0.5805741", "0.57905746", "0.57903445", "0.57625407", "0.57515395", "0.5738653", "0.5718036", "0.57136506", "0.57126826", "0.5708803", "0.56962085", "0.56886107", "0.5647571", "0.5635388", "0.562758", "0.5625202", "0.5621049", "0.560183", "0.5601742", "0.5596811", "0.5594647", "0.55879164", "0.55855894", "0.5571035", "0.55643827", "0.5556223", "0.5551148", "0.5547983", "0.55478317", "0.55426645", "0.55420357", "0.5538761", "0.5531109", "0.5519099", "0.5518351", "0.5517587", "0.551586", "0.55082786", "0.5507854", "0.55039626", "0.55014116", "0.5493892", "0.5491735", "0.54789126", "0.5476579", "0.5470957", "0.5469377", "0.5464159", "0.54496104", "0.5442203", "0.54353124", "0.54307795", "0.5430526", "0.542747", "0.5425683" ]
0.0
-1
Draws a frame for an eye. The transformation for that eye (from the camera) is passed in as a parameter.
@Override public void onDrawEye(EyeTransform transform) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDrawEye(EyeTransform transform) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n GLES20.glUseProgram(mProgram);\n GLES20.glActiveTexture(GL_TEXTURE_EXTERNAL_OES);\n GLES20.glBindTexture(GL_TEXTURE_EXTERNAL_OES, texture);\n\n mPositionHandle = GLES20.glGetAttribLocation(mProgram, \"position\");\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX, GLES20.GL_FLOAT,\n false, vertexStride, vertexBuffer);\n\n mTextureCoordHandle = GLES20.glGetAttribLocation(mProgram, \"inputTextureCoordinate\");\n GLES20.glEnableVertexAttribArray(mTextureCoordHandle);\n GLES20.glVertexAttribPointer(mTextureCoordHandle, COORDS_PER_VERTEX, GLES20.GL_FLOAT,\n false, vertexStride, textureVerticesBuffer);\n\n mColorHandle = GLES20.glGetAttribLocation(mProgram, \"s_texture\");\n\n GLES20.glDrawElements(GLES20.GL_TRIANGLES, drawOrder.length,\n GLES20.GL_UNSIGNED_SHORT, drawListBuffer);\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n GLES20.glDisableVertexAttribArray(mTextureCoordHandle);\n\n Matrix.multiplyMM(mView, 0, transform.getEyeView(), 0, mCamera, 0);\n }", "@Override\n\tpublic void onDrawEye(EyeTransform transform) {\n\t\tglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t\t\n\t\tpositionPointer = glGetAttribLocation(programPointer, \"a_Position\");\n\t\tnormalPointer = glGetAttribLocation(programPointer, \"a_Normal\");\n\t\tcolorPointer = glGetAttribLocation(programPointer, \"a_Color\");\n\t\t\n\t\t// Enable the vertex attributes\n\t\tglEnableVertexAttribArray(positionPointer);\n\t\tglEnableVertexAttribArray(normalPointer);\n\t\tglEnableVertexAttribArray(colorPointer);\n\t\tcheckGLError(\"onDrawEyePointer\");\n\t\t\n\t\t// Place the light\n\t\tlight.place(lightPosPointer, camera);\n\t\t\n\t\t// Draw each of the cubes\n\t\tfor(Cube cube : cubes) {\n\t\t\tcube.draw(camera, transform, programPointer, modelPointer, viewPointer,\n\t\t\t\t\tviewProjectionPointer);\n\t\t}\n\t\t\n\t\t// Draw the floor\n\t\tfloor.draw(camera, transform, programPointer, modelPointer, viewPointer,\n\t\t\t\tviewProjectionPointer);\n\t\t\n\t}", "public void onDrawEye(Eye eye) {\r\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\r\n\r\n checkGLError(\"colorParam\");\r\n\r\n // Apply the eye transformation to the camera.\r\n Matrix.multiplyMM(view, 0, eye.getEyeView(), 0, camera, 0);\r\n\r\n // Set the position of the light\r\n Matrix.multiplyMV(lightPosInEyeSpace, 0, view, 0, LIGHT_POS_IN_WORLD_SPACE, 0);\r\n\r\n float[] perspective = eye.getPerspective(Z_NEAR, Z_FAR);\r\n for (GLSelectableObject cube : cubes) {\r\n // Build the ModelView and ModelViewProjection matrices\r\n // for calculating cube position and light.\r\n Matrix.multiplyMM(modelView, 0, view, 0, cube.getModel(), 0);\r\n Matrix.multiplyMM(modelViewProjection, 0, perspective, 0, modelView, 0);\r\n cube.drawCube();\r\n }\r\n\r\n // Set modelView for the floor, so we draw floor in the correct location\r\n Matrix.multiplyMM(modelView, 0, view, 0, floor.getModel(), 0);\r\n Matrix.multiplyMM(modelViewProjection, 0, perspective, 0, modelView, 0);\r\n floor.drawFloor();\r\n currentTool.getTool().onDrawEye(eye);\r\n }", "@Override\n public void onDrawFrame(GL10 unused) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glClearColor(Player.colorBG[0], Player.colorBG[1], Player.colorBG[2], 1.0f);\n // Set the camera position (View matrix)\n Matrix.setLookAtM(mViewMatrix, 0, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n\n // Calculate the projection and view transformation\n Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n\n Matrix.translateM(mMVPMatrix, 0, getScreenWidth()/2, -getScreenHeight()/2, 0); // apply translation\n Matrix.scaleM(mMVPMatrix,0,scaler,scaler,scaler);\n mSquare.draw(mMVPMatrix,Player.colorP1);\n mHat.draw(mMVPMatrix);\n\n robe.draw(mMVPMatrix, Robe.LEFT_ROBE);\n p1Eye.draw(mMVPMatrix, Circle.FACE_RIGHT, true, true);\n\n Matrix.multiplyMM(mMVPMatrix2, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n Matrix.translateM(mMVPMatrix2, 0, -getScreenWidth()/2, -getScreenHeight()/2, 0);\n Matrix.scaleM(mMVPMatrix2,0,scaler,scaler,scaler);\n mSquare2.draw(mMVPMatrix2,Player.colorP2);\n mHat2.draw(mMVPMatrix2);\n\n robe2.draw(mMVPMatrix2, Robe.RIGHT_ROBE);\n p2Eye.draw(mMVPMatrix2, Circle.FACE_LEFT, true, true);\n }", "public void onDrawFrame(GL10 unused) {\n\n \tGLES20.glClearColor(0.5f,0.5f,0.5f,0.5f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n \n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n\n \t//GLES20.glCullFace(GLES20.GL_BACK);\n\n /* Update MVP matrix */\n\n mat4 mvp = mProj\n \t.mul(mat4.translation(0.0f, 0.0f, -5.0f))\n \t.mul(mat4.rotateY(-mAngleX))\n \t.mul(mat4.rotateX(mAngleY));\n \t\n \n // Add program to OpenGL environment\n GLES20.glUseProgram(mProgram);\n \n /* Set model view projection matrix */\n GLES20.glUniformMatrix4fv(muMVPHandle, 1, false, mvp.f(), 0);\n \n /*\n * Now we're ready to draw some 3D objects\n */\n mCube.draw(maPositionHandle, maColorHandle);\n }", "public void drawBale() {\n\t\tvertexData.position(0);\n\t\tglVertexAttribPointer(mPositionHandle, POSITION_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, vertexData);\n\n\t\tglEnableVertexAttribArray(mPositionHandle);\n\n\t\t// Pass in the color information\n\t\tcolorData.position(0);\n\t\tglVertexAttribPointer(mColorHandle, COLOR_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, colorData);\n\n\t\tglEnableVertexAttribArray(mColorHandle);\n\t\t\n\t\t// Pass in the texture coordinate information\n textureData.position(0);\n GLES20.glVertexAttribPointer(mTextureCoordHandle, TEXTURE_COMPONENT_COUNT, GLES20.GL_FLOAT, false, \n \t\t0, textureData);\n \n GLES20.glEnableVertexAttribArray(mTextureCoordHandle);\n\n\t\t// This multiplies the view matrix by the model matrix, and stores the\n\t\t// result in the MVP matrix\n\t\t// (which currently contains model * view).\n\t\tmultiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n\t\t// Pass in the modelview matrix.\n\t\tglUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// This multiplies the modelview matrix by the projection matrix, and\n\t\t// stores the result in the MVP matrix\n\t\t// (which now contains model * view * projection).\n\t\tMatrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n\n\t\t// Pass in the combined matrix.\n\t\tglUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// Draw the cube.\n\t\tglDrawArrays(GL_TRIANGLES, 0, 60);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 60, 12);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 72, 12);\n\t}", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "public void draw(float[] mvpMatrix, int note) {\n GLES30.glUseProgram(mProgram);\n MyGLRenderer.checkGlError(\"glUseProgram\");\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES30.glGetAttribLocation(mProgram, \"vPosition\");\n\n // Enable a handle to the triangle vertices\n GLES30.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the triangle coordinate data\n //Matrix.multiplyMV(vertexBuffer, 0, scaleMatrix, 0, vertexBuffer, 0);\n GLES30.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n GLES30.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n \n // get handle to fragment shader's vColor member\n //mColorHandle = GLES30.glGetUniformLocation(mProgram, \"vColor\");\n\n mTextureUniformHandle = GLES30.glGetUniformLocation(mProgram, \"u_Texture\");\n mTextureCoordinateHandle = GLES30.glGetAttribLocation(mProgram, \"a_TexCoordinate\");\n \n // Set the active texture unit to texture unit 1. (0 reserved for FBO?)\n GLES30.glActiveTexture(GLES30.GL_TEXTURE0);\n \n // Bind the texture to this unit.\n GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, mTextureDataHandles[note]);\n \n // Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n GLES30.glUniform1i(mTextureUniformHandle, 0);\n \n // Set color for drawing the triangle\n //GLES30.glUniform4fv(mColorHandle, 1, color, 0);\n\n // Pass in the texture coordinate information\n mCubeTextureCoordinates.position(0);\n GLES30.glVertexAttribPointer(mTextureCoordinateHandle, mTextureCoordinateDataSize, GLES30.GL_FLOAT, false, \n \t\t0, mCubeTextureCoordinates);\n \n GLES30.glEnableVertexAttribArray(mTextureCoordinateHandle);\n \n \n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES30.glGetUniformLocation(mProgram, \"uMVPMatrix\");\n MyGLRenderer.checkGlError(\"glGetUniformLocation\");\n\n // Apply the projection and view transformation\n GLES30.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n MyGLRenderer.checkGlError(\"glUniformMatrix4fv\");\n\n // Draw the square\n GLES30.glDrawElements(GLES30.GL_TRIANGLES, drawOrder.length,\n GLES30.GL_UNSIGNED_SHORT, drawListBuffer);\n\n // Disable vertex array\n GLES30.glDisableVertexAttribArray(mPositionHandle);\n }", "@Override\n public void onDrawFrame(GL10 gl) {\n synchronized (this) {\n Matrix.multiplyMM(tempMatrix, 0, deviceOrientationMatrix, 0, touchYawMatrix, 0);\n Matrix.multiplyMM(viewMatrix, 0, touchPitchMatrix, 0, tempMatrix, 0);\n }\n\n Matrix.multiplyMM(viewProjectionMatrix, 0, projectionMatrix, 0, viewMatrix, 0);\n scene.glDrawFrame(viewProjectionMatrix, Type.MONOCULAR);\n }", "@Override\n\tpublic void draw(Graphics2D graphics) {\n\t\tdrawRays(graphics);\n\t\t\n\t\t//Debug Info\n\t\tif(r_debug) {\n\t\t\tgraphics.setColor(Color.RED);\n\t\t\tgraphics.drawString(posxString + eye.position.getX(), 10, 20);\n\t\t\tgraphics.drawString(posyString + eye.position.getY(), 10, 35);\n\t\t\tgraphics.drawString(angleString + eye.angle, 10, 50);\n\t\t}\n\t\t\n\t\t//Let's increment our frame-count.\n\t\tframeCount++;\n\t}", "public void draw() {\n background(255);\n pushMatrix();\n translate(width/2,height/2+20,-160);\n rotateX(PI/3);\n rotateZ(theta);\n land.render(); \n popMatrix();\n\n land.calculate();\n \n theta += 0.0025f;\n}", "private static void draw() {\n\t\tinitField();\n\t\tview = new View(field);\n\t\tview.setSize(viewWidth, viewHeight);\n\t\tframe = new JFrame();\n\t\tframe.setSize(fwidth, fheight);\n\t\tframe.setTitle(\"Land Mine\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.add(view);\n\t\tframe.setVisible(true);\n\t}", "@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\n\n\t\t// Reset the Modelview Matrix\n\t\tgl.glLoadIdentity();\n\n\t\t// Drawing\n\n\t\t\t\t\t\t\t\t\t\t\t\t// is the same as moving the camera 5 units away\n float widthRation = (float)this.screenWidth / this.bitmap.getWidth();\n float heightRatio = (float)this.screenHeight / this.bitmap.getHeight();\n// Log.v(\"justin\",)\n// gl.glScalef((float)this.screenWidth / this.bitmap.getWidth(), (float)this.screenHeight / this.bitmap.getHeight(), 1.0f);\n gl.glTranslatef(0.0f, 0.0f, -5.0f);\t\t// move 5 units INTO the screen\n\n//\t\tgl.glScalef(0.5f, 0.5f, 0.5f);\t\t\t// scale the square to 50% \n\t\t\t\t\t\t\t\t\t\t\t\t// otherwise it will be too large\n\t\t/*\n if(!this.bitmapDrawed) {\n WeakReference<Bitmap> weakBm = this.getBitmap();\n square.loadGLTexture(gl, this.context, weakBm.get());\n }else{\n\t\t\tsquare.loadGLTexture(gl, this.context);\n\t\t}\n\t\t*/\n\t\tsquare.loadGLTexture(gl, this.context, this.bitmap);\n\t\tsquare.draw(gl);\t\t\t\t\t\t// Draw the triangle\n\n\t}", "private void drawFace(final Canvas canvas, final Bitmap view, final int top, final int left,\n final int centerX, final int centerY, final float scale, final float rotation) {\n\n // create the camera if we haven't before\n if (mCamera == null) {\n mCamera = new Camera();\n }\n\n // save the camera state\n mCamera.save();\n\n // translate and then rotate the camera\n mCamera.translate(0, 0, centerY);\n mCamera.rotateX(rotation);\n mCamera.translate(0, 0, -centerY);\n\n // create the matrix if we haven't before\n if (mMatrix == null) {\n mMatrix = new Matrix();\n }\n\n // get the matrix from the camera and then restore the camera\n mCamera.getMatrix(mMatrix);\n mCamera.restore();\n\n // translate and scale the matrix\n mMatrix.preTranslate(-centerX, -centerY);\n mMatrix.postScale(scale, scale);\n mMatrix.postTranslate(left + centerX, top + centerY);\n\n // create and initialize the paint object\n if (mPaint == null) {\n mPaint = new Paint();\n mPaint.setAntiAlias(true);\n mPaint.setFilterBitmap(true);\n }\n\n // set the light\n if (mLightEnabled) {\n mPaint.setColorFilter(calculateLight(rotation));\n } else {\n mPaint.setAlpha(0xFF - (int)(2 * Math.abs(rotation)));\n }\n\n // draw the bitmap\n canvas.drawBitmap(view, mMatrix, mPaint);\n }", "@Override\n public void onNewFrame(HeadTransform headTransform) {\n float[] mtx = new float[16];\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n surface.updateTexImage();\n surface.getTransformMatrix(mtx);\n }", "@Override\n public void draw() {\n /** preparacion de la ventana **/\n background(255);\n lights();\n directionalLight(40, 90, 100, 1, 40, 40);\n\n translate(origin.x,origin.y);\n scale(zoom);\n\n\n /** entrada del usuario **/\n userInput();\n /** ejes X Y Z **/\n drawAxes();\n /** aplicar ik **/\n writePos();\n\n /** escala de los objetos**/\n scale(-1.2f);\n\n /** esfera que muestra la posicion en coord X Y Z\n *\n * X -> coord[0]\n * Y -> coord[1]\n * Z -> coord[2]\n *\n * **/\n pushMatrix();\n noStroke();\n fill(250, 100, 1);\n translate(-coord_cartesian[1] ,-coord_cartesian[2] -11,-coord_cartesian[0] );\n sphere(2);\n popMatrix();\n\n\n /**\n * Dibuja el brazo\n */\n pushMatrix();\n arm.drawArm();\n popMatrix();\n }", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "private void updateView(GL2 gl) {\r\n gl.glLoadIdentity();\r\n final float eyeX = (float) camera.getEye().get(0);\r\n final float eyeY = (float) camera.getEye().get(1);\r\n final float eyeZ = (float) camera.getEye().get(2);\r\n final float refX = (float) camera.getRef().get(0);\r\n final float refY = (float) camera.getRef().get(1);\r\n final float refZ = (float) camera.getRef().get(2);\r\n final float upX = (float) camera.getUp().get(0);\r\n final float upY = (float) camera.getUp().get(1);\r\n final float upZ = (float) camera.getUp().get(2);\r\n glu.gluLookAt(eyeX, eyeY, eyeZ, refX, refY, refZ, upX, upY, upZ);\r\n }", "void renderFrame(){\n if(getPlayer().isChoosingFile()) return; // don't render while filechooser is active\n \n if(canvasFileWriter.writingMovieEnabled) chipCanvas.grabNextImage();\n chipCanvas.paintFrame(); // actively paint frame now, either with OpenGL or Java2D, depending on switch\n \n if(canvasFileWriter.writingMovieEnabled){\n canvasFileWriter.writeMovieFrame();\n }\n }", "public void onDrawFrame(GL10 gl) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\n\t\t// Replace the current matrix with the identity matrix\n\t\tgl.glLoadIdentity();\n\n\t\tgl.glTranslatef(0, 0, -6); // OpenGL docs\n\n\t\tgl.glRotatef(angle, 1, 1, 1);\n//\t\tgl.glRotatef(angle, 0, 1, 0);\n//\t\tgl.glRotatef(angle, 0, 0, 1);\n\t\tangle++;\n\t\t// Draw our cube.\n\t\tmesh.draw(gl);\n\t}", "@Override\n\tpublic void draw(Graphics2D g, Camera cam) {\n\n\t}", "public void render() { image.drawFromTopLeft(getX(), getY()); }", "@Override\n protected void doDraw(Canvas canvas, long now) {\n // Render the hack into the given canvas.\n eyeCandy.render(canvas, 0, 0);\n }", "public void draw(Object... params) {\n Camera cam = (Camera) params[1];\n \n Vector u = cam.getTransform().transformVector(transform.transformVector(A));\n Vector v = cam.getTransform().transformVector(transform.transformVector(B));\n \n if(u.Y <= 0 && v.Y <= 0)\n return;\n else if(v.Y <= 0) {\n double error = -v.Y + 0.0625;\n Vector diff = u.sub(v);\n diff = diff.mul(error / diff.Y);\n v = u.add(diff);\n } else if(u.Y <= 0) {\n double error = -u.Y + 0.0625;\n Vector diff = v.sub(u);\n diff = diff.mul(error / diff.Y);\n v = v.add(diff);\n }\n\n Point2D a = cam.simpleProject(u);\n Point2D b = cam.simpleProject(v);\n \n if(a.X < 0 || a.X >= 2*cam.getCenterPoint().X\n || a.Y < 0 || a.Y >= 2*cam.getCenterPoint().Y\n || b.X < 0 || b.X >= 2*cam.getCenterPoint().X\n || b.Y < 0 || b.Y >= 2*cam.getCenterPoint().Y)\n return;\n \n //Draw line from a to b on the screen.\n Graphics2D g2 = (Graphics2D) params[0];\n g2.drawLine((int) a.X, (int) a.Y, (int) b.X, (int) b.Y);\n }", "private void render()\n\t{\n\t\ttheta = (float) (velocity.heading() + Math.toRadians(90.0));\n\n\t\t// se baser sur le temps écoulé depuis le lancement\n\t\tf = parent.frameCount / 4;\n\t\tint fi = f + 1;\n\t\tfloat x = fi % DIM * W;\n\t\tfloat y = fi / DIM % DIM * H;\n\n\t\tparent.pushMatrix();\n\t\tparent.translate(location.x, location.y);\n\t\tparent.rotate(theta);\n\t\tparent.beginShape();\n\t\tparent.texture(spritesheet);\n\t\tparent.vertex(0, 0, x, y);\n\t\tparent.vertex(100, 0, x + W, y);\n\t\tparent.vertex(100, 100, x + W, y + H);\n\t\tparent.vertex(0, 100, x, y + H);\n\t\tparent.endShape();\n\t\tparent.popMatrix();\n\t}", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "public static void setCameraFrame() {\n\t\tCAMERA.src = VERTICES[CAMERA.v];\n\t\tVector zc = CAMERA.src.d.scale(-1).normalized();\n\t\tCAMERA.zAxis = zc;\n\t\tVector xc = MathUtils.cross(CAMERA.src.d, new Vector(0, 1, 0)).normalized();\n\t\tCAMERA.xAxis = xc;\n\t\tVector yc = MathUtils.cross(zc, xc).normalized();\n\t\tCAMERA.yAxis = yc;\n\t\t\n\t\tSystem.out.println(\"***** just set camera: \" + CAMERA.toString());\n\t}", "@Override\r\n\tpublic void render(Graphics g) {\n\t\timg.setPosition(x - cam.getX(), y - cam.getY());\r\n\t\timg.render(g);\r\n\t}", "public static void generateRay(final int i, final int j, final double[] pixelOffset, Point3d eyeOffset, final Camera cam, Ray ray) {\n\t\tdouble width = cam.imageSize.getWidth();\n\t\tdouble height = cam.imageSize.getHeight();\n\t\tPoint3d eyePoint = new Point3d();\n\t\teyePoint.set(cam.from);\n\t\teyePoint.add(eyeOffset); //small eyeOffset to simulate the focal lens\n\t\tray.eyePoint.set(eyePoint);\n\t\t\n\t\tdouble dToImage = cam.from.distance(cam.to); //distance from camera to image plane\n\t\tdouble focalLength = cam.focalLength; //Distance from camera to focal plane\n\t\t\n\t\t//For pixel (j, i), we calculate it's camera coordinates (u, v) first.\n\t\tdouble aspectRatio = width / height;\n\t\tdouble top = Math.tan(Math.toRadians(cam.fovy)/2.0) * dToImage;\n\t\t\n\t\tdouble left = -aspectRatio*top;\n\t\tdouble right = aspectRatio*top;\n\t\tdouble bot = -top;\n\t\tdouble u = left + (right - left) * (j+0.5+pixelOffset[0]) / width;\n\t\tdouble v = bot + (top - bot) * (i+0.5+pixelOffset[1]) / height; \n\t\t\n\t\t//Then transfer the camera coordinates (u, v) to world coordinates (x, y, z).\n\t\tVector3d wCam = new Vector3d();\n\t\twCam.sub(cam.from, cam.to);\n\t\twCam.normalize(); \n\t\tVector3d uCam = new Vector3d();\n\t\tuCam.cross(cam.up, wCam);\n\t\tuCam.normalize();\n\t\tVector3d vCam = new Vector3d();\n\t\tvCam.cross(uCam, wCam); //Why not w cross u?\n\t\tvCam.normalize();\n\t\tuCam.scale(u);\n\t\tvCam.scale(v);\n\t\twCam.scale(-dToImage);\n\t\tdouble xPixel = cam.from.x + uCam.x + vCam.x + wCam.x;\n\t\tdouble yPixel = cam.from.y + uCam.y + vCam.y + wCam.y;\n\t\tdouble zPixel = cam.from.z + uCam.z + vCam.z + wCam.z; //world coordinates (x, y, z) of pixel (j, i)\n\t\t\n\t\t//Find the corresponding focal plane world coordinates.\n\t\tdouble xFocal, yFocal, zFocal;\n\t\tdouble tmpRatio = focalLength / dToImage;\n\t\txFocal = (xPixel-cam.from.x) * tmpRatio + cam.from.x;\n\t\tyFocal = (yPixel-cam.from.y) * tmpRatio + cam.from.y;\n\t\tzFocal = (zPixel-cam.from.z) * tmpRatio + cam.from.z; //world coordinates of corresponding focal point\n\t\t\n\t\t//Calculate direction of ray\n\t\tVector3d dirToFocal = new Vector3d(xFocal, yFocal, zFocal);\n\t\tdirToFocal.sub(ray.eyePoint); //dirToFocal = focalPointCoordinates - eyePoint\n\t\tdirToFocal.normalize();\n\t\tray.viewDirection.set(dirToFocal);\t\n\t}", "public void previewOglRender();", "public void onDrawFrame( GL10 gl ) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); \n\t\tgl.glLoadIdentity();\n\n\t\t\n\t\t//Move \"camera\"\n\t\tgl.glMatrixMode(GL10.GL_MODELVIEW);\n\t\tgl.glLoadIdentity();\n\t\t//gl.glTranslatef(x, y, z);\n\n\t\tQuaternion q= new Quaternion(qx,qy,qz,qw);\n\t\tVector3f rv = q.getEulerAngles();\n\t\tgl.glRotatef(rv.x, -1.0f, 0.0f, 0.0f);\n\t\tgl.glRotatef(rv.y, 0.0f, -1.0f, 0.0f);\n\t\tgl.glRotatef(rv.z, 0.0f, 0.0f, -1.0f);\n\t\t//End camera move\n\t\t\n\t\tgl.glTranslatef(-10*x, -10*y, -10*z);\n\t\t\n\t\n\t\t\n\t\t//gl.glRotatef(mCubeRotation, 1.0f, 1.0f, 1.0f);\n\n\t\tmCube.draw(gl);\n\t\t\n\t\t\n\t\t\n\n\t\tgl.glLoadIdentity(); \n\n\t\n\t\t\n\t\tmCubeRotation -= 0.15f; \n\n\t}", "public void draw()\n {\n imageView.setRotate(teta);\n imageView.relocate(super.getX(),super.getY());\n }", "public void draw(Graphics2D g2, int xPos, int yPos, int width, int height){\r\n int eyeD = width/10;\r\n if (this.isLeft){\r\n eye = new Arc2D.Double(xPos+width/4 ,yPos+height/3, eyeD, eyeD, 180, 180, Arc2D.PIE);\r\n eyeC = new Arc2D.Double(xPos+width/4-eyeD/2 ,yPos+height/3-eyeD/2, 2*eyeD, 2*eyeD, 180, 180, Arc2D.PIE);\r\n }\r\n else{\r\n eye = new Arc2D.Double(xPos+width*5/8 ,yPos+height/3, eyeD, eyeD, 180, 180, Arc2D.PIE);\r\n eyeC = new Arc2D.Double(xPos+width*5/8-eyeD/2 ,yPos+height/3-eyeD/2, 2*eyeD, 2*eyeD, 180, 180, Arc2D.PIE);\r\n }\r\n g2.setColor(color);\r\n g2.fill(eye);\r\n g2.setColor(Color.BLACK);\r\n g2.setStroke(new BasicStroke(2.0f));\r\n g2.draw(eye);\r\n g2.draw(eyeC);\r\n }", "@Override\r\n\tpublic void draw(GL10 gl) {\n\r\n\t gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\t\t\t// Clear The Screen And The Depth Buffer\r\n\t gl.glLoadIdentity();\t\t\t\t\t\t\t\t\t\t\t// Reset The Modelview Matrix\r\n//\t gl.glTranslatef(0.0f, 0.0f, -10.0f);\t\t\t\t\t\t\t\t// Translate 20 Units Into The Screen\r\n\r\n\t spin += 0.05f;\t\t\t\t\t\t\t\t\t\t\t\t// Increase Spin\r\n\t \r\n\t gl.glRotatef(spin, 0, 1, 0);\r\n\r\n\t gl.glPushMatrix();\r\n\t gl.glTranslatef(-1.0f, 0, 0);\r\n\t \r\n\t drawSquare(gl);\r\n\t gl.glPopMatrix();\r\n\t \r\n//\t gl.glPushMatrix();\r\n//\t gl.glTranslatef(1.0f, 0, 0);\r\n//\t gl.glBindTexture(GL10.GL_TEXTURE_2D, texture[1].texID[0]);\r\n//\t drawSquare(gl);\r\n//\t gl.glPopMatrix();\r\n\t}", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "public void displayRotAboutPoint(int px, int py, float angleDegrees)\n { \n pushMatrix();\n translate(px, py);\n rotate(radians(angleDegrees));\n shape(fullCar);\n popMatrix();\n }", "private void drawMovieFrame(Canvas canvas) {\n if(canvas == null){\n return;\n }\n// Log.d(TAG, \"drawMovieFrame: mCurrentAnimationTime \" + mCurrentAnimationTime);\n mMovie.setTime(mCurrentAnimationTime);\n\n canvas.save(Canvas.MATRIX_SAVE_FLAG);\n canvas.scale(mScale, mScale);\n mMovie.draw(canvas, mLeft / mScale, mTop / mScale);\n canvas.restore();\n }", "void display() {\n pushMatrix();\n pushStyle();\n \n translate(_x, _y);\n rotate(_rotVector.heading() - _front);\n if (_flipped) scale(-1, 1);\n imageMode(CENTER);\n image(_img, 0, 0, _w, _h);\n \n popStyle();\n popMatrix();\n }", "public native void renderFrame();", "public native void renderFrame();", "public void drawSimple(int pitch, int yaw, int roll, int eyePitch, int eyeX, int eyeY, int eyeZ) {\n\t\tint centerX = Draw3D.centerX;\n\t\tint centerY = Draw3D.centerY;\n\t\tint sinPitch = sin[pitch];\n\t\tint cosPitch = cos[pitch];\n\t\tint sinYaw = sin[yaw];\n\t\tint cosYaw = cos[yaw];\n\t\tint sinRoll = sin[roll];\n\t\tint cosRoll = cos[roll];\n\t\tint sinEyePitch = sin[eyePitch];\n\t\tint cosEyePitch = cos[eyePitch];\n\t\tint midZ = ((eyeY * sinEyePitch) + (eyeZ * cosEyePitch)) >> 16;\n\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tint x = vertexX[v];\n\t\t\tint y = vertexY[v];\n\t\t\tint z = vertexZ[v];\n\n\t\t\t// Local Space -> Model Space\n\n\t\t\tif (roll != 0) {\n\t\t\t\tint x_ = ((y * sinRoll) + (x * cosRoll)) >> 16;\n\t\t\t\ty = ((y * cosRoll) - (x * sinRoll)) >> 16;\n\t\t\t\tx = x_;\n\t\t\t}\n\n\t\t\tif (pitch != 0) {\n\t\t\t\tint y_ = ((y * cosPitch) - (z * sinPitch)) >> 16;\n\t\t\t\tz = ((y * sinPitch) + (z * cosPitch)) >> 16;\n\t\t\t\ty = y_;\n\t\t\t}\n\n\t\t\tif (yaw != 0) {\n\t\t\t\tint x_ = ((z * sinYaw) + (x * cosYaw)) >> 16;\n\t\t\t\tz = ((z * cosYaw) - (x * sinYaw)) >> 16;\n\t\t\t\tx = x_;\n\t\t\t}\n\n\t\t\t// Model Space -> View Space\n\n\t\t\tx += eyeX;\n\t\t\ty += eyeY;\n\t\t\tz += eyeZ;\n\n\t\t\tint y_ = ((y * cosEyePitch) - (z * sinEyePitch)) >> 16;\n\t\t\tz = ((y * sinEyePitch) + (z * cosEyePitch)) >> 16;\n\t\t\ty = y_;\n\n\t\t\t// View Space -> Screen Space\n\n\t\t\tvertexScreenX[v] = centerX + ((x << 9) / z);\n\t\t\tvertexScreenY[v] = centerY + ((y << 9) / z);\n\t\t\tvertexScreenZ[v] = z - midZ;\n\n\t\t\t// Store viewspace coordinates to be transformed into screen space later (textured or clipped triangles)\n\n\t\t\tif (texturedFaceCount > 0) {\n\t\t\t\tvertexViewSpaceX[v] = x;\n\t\t\t\tvertexViewSpaceY[v] = y;\n\t\t\t\tvertexViewSpaceZ[v] = z;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tdraw(false, false, 0);\n\t\t} catch (Exception ignored) {\n\t\t}\n\t}", "@Override\n public void onDrawFrame(GL10 gl) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n\n if (session == null) {\n return;\n }\n // Notify ARCore session that the view size changed so that the perspective matrix and\n // the video background can be properly adjusted.\n displayRotationHelper.updateSessionIfNeeded(session);\n\n try {\n session.setCameraTextureName(backgroundRenderer.getTextureId());\n\n // Obtain the current frame from ARSession. When the configuration is set to\n // UpdateMode.BLOCKING (it is by default), this will throttle the rendering to the\n // camera framerate.\n frame = session.update();\n Camera camera = frame.getCamera();\n TrackingState cameraTrackingState = camera.getTrackingState();\n\n // Check anchor after update.\n checkUpdatedAnchor();\n\n // Handle taps.\n handleTapOnDraw(cameraTrackingState, frame);\n\n // Draw background.\n backgroundRenderer.draw(frame);\n\n // If not tracking, don't draw 3d objects.\n if (cameraTrackingState == TrackingState.PAUSED) {\n return;\n }\n\n // Get projection and camera matrices.\n camera.getProjectionMatrix(projectionMatrix, 0, 0.1f, 100.0f);\n camera.getViewMatrix(viewMatrix, 0);\n\n // Visualize tracked points.\n PointCloud pointCloud = frame.acquirePointCloud();\n pointCloudRenderer.update(pointCloud);\n pointCloudRenderer.draw(viewMatrix, projectionMatrix);\n\n // Application is responsible for releasing the point cloud resources after\n // using it.\n pointCloud.release();\n\n // Visualize planes.\n planeRenderer.drawPlanes(\n session.getAllTrackables(Plane.class), camera.getDisplayOrientedPose(), projectionMatrix);\n\n // Visualize anchor.\n\n for (Anchor ak: anchors) {\n boolean shouldDrawAnchor = false;\n synchronized (singleTapAnchorLock) {\n if (ak != null && ak.getTrackingState() == TrackingState.TRACKING) {\n frame.getLightEstimate().getColorCorrection(colorCorrectionRgba, 0);\n\n // Get the current pose of an Anchor in world space. The Anchor pose is updated\n // during calls to session.update() as ARCore refines its estimate of the world.\n ak.getPose().toMatrix(anchorMatrix, 0);\n shouldDrawAnchor = true;\n }\n }\n if (shouldDrawAnchor) {\n draw_Anchor(frame);\n }\n }\n } catch (Throwable t) {\n // Avoid crashing the application due to unhandled exceptions.\n Log.e(TAG, \"Exception on the OpenGL thread\", t);\n }\n }", "@Override\n public void run() {\n final Renderer canvas = new Renderer();\n canvas.setPreferredSize(new Dimension(CANVAS_WIDTH, CANVAS_HEIGHT));\n\n // Create a animator that drives canvas' display() at the specified FPS.\n final FPSAnimator animator = new FPSAnimator(canvas, FPS, true);\n\n // Create the top-level container\n final JFrame frame = new JFrame(); // Swing's JFrame or AWT's Frame\n frame.getContentPane().add(canvas);\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // Use a dedicate thread to run the stop() to ensure that the\n // animator stops before program exits.\n new Thread() {\n @Override\n public void run() {\n if (animator.isStarted()) animator.stop();\n System.exit(0);\n }\n }.start();\n }\n });\n frame.addKeyListener(new KeyListener() {\n @Override\n public void keyTyped(KeyEvent e) {\n System.out.println(e.getKeyCode() + \" typed\");\n }\n\n @Override\n public void keyPressed(KeyEvent e) {\n switch (e.getKeyCode()) {\n case 37:\n canvas.camRotation.coor[1]++;\n break;\n case 38:\n canvas.camRotation.coor[0]++;\n break;\n case 39:\n canvas.camRotation.coor[1]--;\n break;\n case 40:\n canvas.camRotation.coor[0]--;\n break;\n default:\n System.out.println(e.getKeyCode() + \" pressed\");\n break;\n }\n System.out.printf(\"x=%f, y=%f, z=%f, w=%f\",\n canvas.camRotation.coor[0], canvas.camRotation.coor[1],\n canvas.camRotation.coor[2], canvas.camRotation.coor[3]);\n System.out.println(e.getKeyCode() + \" pressed\");\n\n }\n\n @Override\n public void keyReleased(KeyEvent e) {\n System.out.println(e.getKeyCode() + \" released\");\n }\n });\n frame.setTitle(TITLE);\n frame.pack();\n frame.setVisible(true);\n animator.start(); // start the animation loop\n }", "public static void drawPlayerModel(int x, int y, int scale, float yaw, float pitch, EntityLivingBase entity) {\r\n\t\tGL11.glEnable(GL11.GL_COLOR_MATERIAL);\r\n\t\tGL11.glPushMatrix();\r\n\t\tGL11.glTranslatef(x + 76, y, 50.0F);\r\n\t\tGL11.glScalef(-scale, scale, scale);\r\n\t\tGL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);\r\n\t\tfloat f2 = entity.renderYawOffset;\r\n\t\tfloat f3 = entity.rotationYaw;\r\n\t\tfloat f4 = entity.rotationPitch;\r\n\t\tfloat f5 = entity.prevRotationYawHead;\r\n\t\tfloat f6 = entity.rotationYawHead;\r\n\t\tGL11.glRotatef(135.0F, 0.0F, 1.0F, 0.0F);\r\n\t\tRenderHelper.enableStandardItemLighting();\r\n\t\tGL11.glRotatef(-135.0F, 0.0F, 1.0F, 0.0F);\r\n\t\tGL11.glRotatef(-((float) Math.atan(pitch / 40.0F)) * 20.0F, 1.0F, 0.0F, 0.0F);\r\n\t\tentity.renderYawOffset = (float) Math.atan(yaw / 40.0F) * 20.0F;\r\n\t\tentity.rotationYaw = (float) Math.atan(yaw / 40.0F) * 40.0F;\r\n\t\tentity.rotationPitch = -((float) Math.atan(pitch / 40.0F)) * 20.0F;\r\n\t\tentity.rotationYawHead = entity.rotationYaw;\r\n\t\tentity.prevRotationYawHead = entity.rotationYaw;\r\n\t\tGL11.glTranslatef(0.0F, entity.yOffset, 0.0F);\r\n\t\tRenderManager.instance.playerViewY = 180.0F;\r\n\t\tRenderManager.instance.renderEntityWithPosYaw(entity, 0.0D, 0.0D, 0.0D, 0.0F, 1.0F);\r\n\t\tentity.renderYawOffset = f2;\r\n\t\tentity.rotationYaw = f3;\r\n\t\tentity.rotationPitch = f4;\r\n\t\tentity.prevRotationYawHead = f5;\r\n\t\tentity.rotationYawHead = f6;\r\n\t\tGL11.glPopMatrix();\r\n\t\tRenderHelper.disableStandardItemLighting();\r\n\t\tGL11.glDisable(GL12.GL_RESCALE_NORMAL);\r\n\t\tOpenGlHelper.setActiveTexture(OpenGlHelper.lightmapTexUnit);\r\n\t\tGL11.glDisable(GL11.GL_TEXTURE_2D);\r\n\t\tOpenGlHelper.setActiveTexture(OpenGlHelper.defaultTexUnit);\r\n\t}", "public void renderTileEntityAt(TileGolemBuilder tile, double par2, double par4, double par6, float pt, int destroyStage) {\n/* 41 */ GL11.glPushMatrix();\n/* 42 */ GL11.glTranslatef((float)par2 + 0.5F, (float)par4, (float)par6 + 0.5F);\n/* 43 */ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n/* */ \n/* 45 */ func_147499_a(TEX);\n/* */ \n/* 47 */ if (destroyStage >= 0) {\n/* */ \n/* 49 */ func_147499_a(field_178460_a[destroyStage]);\n/* 50 */ GlStateManager.func_179128_n(5890);\n/* 51 */ GlStateManager.func_179094_E();\n/* 52 */ GlStateManager.func_179152_a(5.0F, 5.0F, 2.0F);\n/* 53 */ GlStateManager.func_179109_b(0.0625F, 0.0625F, 0.0625F);\n/* 54 */ GlStateManager.func_179128_n(5888);\n/* */ } else {\n/* 56 */ GL11.glMatrixMode(5890);\n/* 57 */ GL11.glLoadIdentity();\n/* 58 */ GL11.glScalef(1.0F, -1.0F, 1.0F);\n/* 59 */ GL11.glMatrixMode(5888);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 64 */ EnumFacing facing = BlockStateUtils.getFacing(tile.func_145832_p());\n/* 65 */ if (tile.func_145831_w() != null) {\n/* 66 */ switch (facing.ordinal()) { case 5:\n/* 67 */ GL11.glRotatef(270.0F, 0.0F, 1.0F, 0.0F); break;\n/* 68 */ case 4: GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F); break;\n/* 69 */ case 3: GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);\n/* */ break; }\n/* */ \n/* */ \n/* */ \n/* */ }\n/* 75 */ this.model.renderAllExcept(new String[] { \"press\" });\n/* */ \n/* 77 */ GL11.glPushMatrix();\n/* 78 */ float h = tile.press;\n/* 79 */ double s = Math.sin(Math.toRadians(h)) * 0.625D;\n/* 80 */ GL11.glTranslated(0.0D, -s, 0.0D);\n/* 81 */ this.model.renderPart(\"press\");\n/* 82 */ GL11.glPopMatrix();\n/* */ \n/* 84 */ if (destroyStage >= 0) {\n/* */ \n/* 86 */ GlStateManager.func_179128_n(5890);\n/* 87 */ GlStateManager.func_179121_F();\n/* 88 */ GlStateManager.func_179128_n(5888);\n/* */ } else {\n/* 90 */ GL11.glMatrixMode(5890);\n/* 91 */ GL11.glLoadIdentity();\n/* 92 */ GL11.glScalef(1.0F, 1.0F, 1.0F);\n/* 93 */ GL11.glMatrixMode(5888);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 98 */ GL11.glTranslatef(-0.3125F, 0.625F, 1.3125F);\n/* 99 */ GL11.glRotatef(90.0F, -1.0F, 0.0F, 0.0F);\n/* 100 */ TextureAtlasSprite icon = Minecraft.func_71410_x().func_175602_ab().func_175023_a().func_178122_a(Blocks.field_150353_l.func_176223_P());\n/* 101 */ UtilsFX.renderQuadFromIcon(icon, 0.625F, 1.0F, 1.0F, 1.0F, 200, 771, 1.0F);\n/* */ \n/* 103 */ GL11.glPopMatrix();\n/* */ }", "public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n // Create the OpenGL rendering canvas\n final Renderer canvas = new Renderer();\n canvas.setPreferredSize(new Dimension(CANVAS_WIDTH, CANVAS_HEIGHT));\n\n // Create a animator that drives canvas' display() at the specified FPS.\n final FPSAnimator animator = new FPSAnimator(canvas, FPS, true);\n\n // Create the top-level container\n final JFrame frame = new JFrame(); // Swing's JFrame or AWT's Frame\n frame.getContentPane().add(canvas);\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // Use a dedicate thread to run the stop() to ensure that the\n // animator stops before program exits.\n new Thread() {\n @Override\n public void run() {\n if (animator.isStarted()) animator.stop();\n System.exit(0);\n }\n }.start();\n }\n });\n frame.addKeyListener(new KeyListener() {\n @Override\n public void keyTyped(KeyEvent e) {\n System.out.println(e.getKeyCode() + \" typed\");\n }\n\n @Override\n public void keyPressed(KeyEvent e) {\n switch (e.getKeyCode()) {\n case 37:\n canvas.camRotation.coor[1]++;\n break;\n case 38:\n canvas.camRotation.coor[0]++;\n break;\n case 39:\n canvas.camRotation.coor[1]--;\n break;\n case 40:\n canvas.camRotation.coor[0]--;\n break;\n default:\n System.out.println(e.getKeyCode() + \" pressed\");\n break;\n }\n System.out.printf(\"x=%f, y=%f, z=%f, w=%f\",\n canvas.camRotation.coor[0], canvas.camRotation.coor[1],\n canvas.camRotation.coor[2], canvas.camRotation.coor[3]);\n System.out.println(e.getKeyCode() + \" pressed\");\n\n }\n\n @Override\n public void keyReleased(KeyEvent e) {\n System.out.println(e.getKeyCode() + \" released\");\n }\n });\n frame.setTitle(TITLE);\n frame.pack();\n frame.setVisible(true);\n animator.start(); // start the animation loop\n }\n });\n }", "public void render() {\n float theta = velocity.heading2D() + radians(90);\n\n\n fill(255, 0, 0);\n stroke(255, 0, 0);\n strokeWeight(0.5f);\n pushMatrix();\n translate(position.x, position.y);\n rotate(theta);\n beginShape(QUAD);\n fill(255, 0, 0);\n vertex(r, -r*2);\n\n vertex(-r, -r*2);\n vertex(-r, r*2);\n vertex(r, r*2);\n\n endShape();\n beginShape(TRIANGLES);\n vertex(-r, -r*2);\n vertex(r, -r*2);\n vertex(0, -r*4);\n endShape();\n beginShape(TRIANGLES);\n vertex(-r, r*5);\n vertex(r, r*5);\n vertex(0, r*2);\n endShape();\n fill(0);\n stroke(255);\n fill(255);\n strokeWeight(1.7f*r);\n\n point(0, -r*2.5f);\n stroke(0);\n fill(0);\n strokeWeight(0.75f*r);\n point(0, -r*2.5f);\n\n\n popMatrix();\n textSize(6+(this.kidsHad/2));\n textMode(CENTER);\n stroke(0);\n text(\" g:\"+this.gen+\"/\"+kidsHad + \"/id: \" + (this.id+1), this.position.x, this.position.y);\n }", "private void renderTex() {\n final float\n w = xdim(),\n h = ydim(),\n x = xpos(),\n y = ypos() ;\n GL11.glBegin(GL11.GL_QUADS) ;\n GL11.glTexCoord2f(0, 0) ;\n GL11.glVertex2f(x, y + (h / 2)) ;\n GL11.glTexCoord2f(0, 1) ;\n GL11.glVertex2f(x + (w / 2), y + h) ;\n GL11.glTexCoord2f(1, 1) ;\n GL11.glVertex2f(x + w, y + (h / 2)) ;\n GL11.glTexCoord2f(1, 0) ;\n GL11.glVertex2f(x + (w / 2), y) ;\n GL11.glEnd() ;\n }", "public void display(GLAutoDrawable drawable){\n GL4 gl = (GL4) GLContext.getCurrentGL();\n \n gl.glClear(GL_DEPTH_BUFFER_BIT);\n \n // not needed if bkg is black\n float bkg[] = { 1.0f, 1.0f, 1.0f, 1.0f };\n FloatBuffer bkgBuffer = Buffers.newDirectFloatBuffer(bkg);\n gl.glClearBufferfv(GL_COLOR, 0, bkgBuffer);\n\n \n gl.glUseProgram(rendering_program); // loads program from init with the two shaders\n \n // define perspective matrix \n //perspective\n float aspect = (float) myCanvas.getWidth()/(float) myCanvas.getHeight();\n Matrix3D pMat = this.perspectiveMethod(60.0f, aspect, 0.1f, 100.0f);\t\t//for persective projection /zentrische Projektion\n Matrix3D oMat = this.orthographicMethod(1.0f, -1.0f, 1.0f, -1.0f, 0.1f, 100.0f); //for orthographic projection\n \n \n //copy perspective and MV matricies to corressponding uniform variables\n int mv_loc = gl.glGetUniformLocation(rendering_program, \"mv_matrix\");\n int proj_loc = gl.glGetUniformLocation(rendering_program, \"proj_matrix\");\n \n //build view matrix\n Matrix3D vMat = new Matrix3D();\n vMat.translate(-cameraX, -cameraY, -cameraZ);\n \n //build model matrix\n Matrix3D mMat = new Matrix3D(); //for right now we dont do anything (rotate, translate etc.) in with the mMat in this project\n\n Matrix3D mvMat = new Matrix3D();\n mvMat.concatenate(vMat);\t\t\t//first view matrix \n mvMat.concatenate(mMat);\t\t\t//second we put the model matrix on it (A * B)\n \n\n //plug the mvMat and pMat into the shader uniform variables \n gl.glUniformMatrix4fv(mv_loc, 1, false, mvMat.getFloatValues(),0);\n gl.glUniformMatrix4fv(proj_loc, 1, false, pMat.getFloatValues(),0);\n \n \n //be sure to bind the vbo before assigning the attribute pointer\n gl.glBindBuffer(GL_ARRAY_BUFFER, vbo[0]); \n // now set the \"location = 0\" info in the shaders to the point info from vbo[0]\n gl.glVertexAttribPointer(0, 3, GL_FLOAT, false, 0, 0);\n gl.glEnableVertexAttribArray(0);\n \n gl.glBindBuffer(GL_ARRAY_BUFFER, vbo[1]);\n gl.glVertexAttribPointer(1, 3, GL_FLOAT, false, 0, 0);\n gl.glEnableVertexAttribArray(1);\n \n gl.glLineWidth(10.0f);\n \n gl.glEnable(GL_DEPTH_TEST);\n gl.glDrawArrays(GL_LINES, 0, 4);\n\n }", "@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n GLES20.glClearColor(0.15f, 0.15f, 0.15f, 0.15f);\n\n // Position the eye behind the origin.\n final float eyeX = 0.0f;\n final float eyeY = 0.0f;\n final float eyeZ = 1.5f;\n\n // We are looking toward the distance\n final float lookX = 0.0f;\n final float lookY = 0.0f;\n final float lookZ = -5.0f;\n\n // Set our up vector. This is where our head would be pointing were we holding the camera.\n final float upX = 0.0f;\n final float upY = 1.0f;\n final float upZ = 0.0f;\n\n Matrix.setLookAtM(mViewMatrix, 0, eyeX, eyeY, eyeZ, lookX,\n lookY, lookZ, upX, upY, upZ);\n\n String fragmentShader = \"precision mediump float; \\n\"\n // This is the color from the vertex shader interpolated across the\n + \"varying vec4 v_Color; \\n\"\n // triangle per fragment.\n + \"void main() \\n\"\n + \"{ \\n\"\n + \" gl_FragColor = v_Color; \\n\"\n + \"} \\n\";\n String vertexShader = \"uniform mat4 u_MVPMatrix; \\n\"\n // Per-vertex position information we will pass in.\n + \"attribute vec4 a_Position; \\n\"\n\n // Per-vertex color information we will pass in.\n + \"attribute vec4 a_Color; \\n\"\n\n // This will be passed into the fragment shader.\n + \"varying vec4 v_Color; \\n\"\n\n + \"void main() \\n\"\n + \"{ \\n\"\n\n // Pass the color through to the fragment shader.\n + \" v_Color = a_Color; \\n\"\n\n // gl_Position is a special variable used to store the final position.\n // Multiply the vertex by the matrix to get the final point in\n // normalized screen coordinates.\n + \" gl_Position = u_MVPMatrix \\n\"\n + \" * a_Position; \\n\"\n + \"} \\n\";\n\n program = new GLProgram(vertexShader, fragmentShader);\n\n String positionVariableName = \"a_Position\";\n program.declareAttribute(positionVariableName);\n\n String colorVariableName = \"a_Color\";\n program.declareAttribute(colorVariableName);\n\n program.declareUniform(U_MVP_MATRIX);\n\n // Tell OpenGL to use this program when rendering.\n program.activate();\n\n // This triangle is red, green, and blue.\n final float[] triangle1VerticesData = {\n // X, Y, Z,\n // R, G, B, A\n -0.5f, -0.25f, 0.0f,\n 0.5f, -0.25f, 0.0f,\n 0.0f, 0.559016994f, 0.0f,\n };\n\n final float[] triangleColorData = {\n 1.0f, 0.0f, 0.0f, 1.0f,\n 0.0f, 1.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f, 1.0f,\n };\n\n VertexArray mTriangleVertices = new VertexArray(triangle1VerticesData,\n program.getVariableHandle(positionVariableName), true);\n /*\n Store our model data in a float buffer.\n */\n ColorArray mTriangleColors = new ColorArray(triangleColorData,\n program.getVariableHandle(colorVariableName), true);\n\n positionVbo = new VertexBufferObject(mTriangleVertices);\n colorVbo = new VertexBufferObject(mTriangleColors);\n }", "public void draw() {\n \n }", "public static void generateRay(final int i, final int j, final double[] offset, final Camera cam, Ray ray) {\n\t\tdouble width = cam.imageSize.getWidth();\n\t\tdouble height = cam.imageSize.getHeight();\n\t\tPoint3d eyePoint = new Point3d();\n\t\teyePoint.set(cam.from);\n\t\tray.eyePoint.set(eyePoint);\n\t\t\n\t\tdouble dToImage = cam.from.distance(cam.to); //distance from camera to image plane\n\t\tdouble focalLength = cam.focalLength; //Distance from camera to focal plane\n\t\t\n\t\t//For pixel (j, i), we calculate it's camera coordinates (u, v) first.\n\t\tdouble aspectRatio = width / height;\n\t\tdouble top = Math.tan(Math.toRadians(cam.fovy)/2.0) * dToImage;\n\t\t\n\t\tdouble left = -aspectRatio*top;\n\t\tdouble right = aspectRatio*top;\n\t\tdouble bot = -top;\n\t\tdouble u = left + (right - left) * (j+0.5+offset[0]) / width;\n\t\tdouble v = bot + (top - bot) * (i+0.5+offset[1]) / height; \n\t\t\n\t\t//Then transfer the camera coordinates (u, v) to world coordinates (x, y, z).\n\t\tVector3d wCam = new Vector3d();\n\t\twCam.sub(cam.from, cam.to);\n\t\twCam.normalize(); \n\t\tVector3d uCam = new Vector3d();\n\t\tuCam.cross(cam.up, wCam);\n\t\tuCam.normalize();\n\t\tVector3d vCam = new Vector3d();\n\t\tvCam.cross(uCam, wCam); //Why not w cross u?\n\t\tvCam.normalize();\n\t\tuCam.scale(u);\n\t\tvCam.scale(v);\n\t\twCam.scale(dToImage);\n\t\t\n\t\tVector3d s = new Vector3d(cam.from);\n\t\ts.add(uCam);\n\t\ts.add(vCam);\n\t\ts.sub(wCam);\n\t\ts.sub(cam.from);\n\t\ts.normalize();\n\t\tray.viewDirection.set(s);\n\t}", "void render(GraphicsContext gc, double xOffSet, double yOffSet);", "public synchronized void display() {\r\n\r\n\t\t// clear the screen and draw a yellow square\r\n\t\tgl.clear(GL.COLOR_BUFFER_BIT);\r\n\t\t// First rectangle\r\n\t\tgl.pushMatrix();\r\n\t\tgl.translate(-0.5, 0.0, 0.0);\r\n\t\tgl.rotate(spin, 0.0, 0.0, 1.0);\r\n\t\tgl.rect(-0.5, -0.5, 0.5, 0.5);\r\n\t\tgl.popMatrix();\r\n\t\t// Second rectangle\r\n\t\tgl.pushMatrix();\r\n\t\tgl.translate(0.5, 0.0, 0.0);\r\n\t\tgl.rotate(-spin, 0.0, 0.0, 1.0);\r\n\t\tgl.rect(-0.5, -0.5, 0.5, 0.5);\r\n\t\tgl.popMatrix();\r\n\t\tgl.flush(); // Make sure all commands have completed.\r\n\t\tgl.swap();\t // Swap the render buffer with the screen buffer\r\n\t}", "public void paint(){\n\t\tif(this.x+GameScreen.backCam<900 && this.x+GameScreen.backCam>-60){\n\t\t\tGraphicsHandler.drawImage(texture,this.x+GameScreen.backCam,this.y+GameScreen.yCam,size,size);\n\t\t}\n\t}", "public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}", "@Override\n\tpublic void onNewFrame(HeadTransform transform) {\n\t\tglUseProgram(programPointer);\n\t\t\n\t\t// Find the pointers\n\t\tviewProjectionPointer = glGetUniformLocation(programPointer, \"u_MVP\");\n\t\tlightPosPointer = glGetUniformLocation(programPointer, \"u_LightPos\");\n\t\tviewPointer = glGetUniformLocation(programPointer, \"u_MVMatrix\");\n\t\tmodelPointer = glGetUniformLocation(programPointer, \"u_Model\");\n\t\t\n\t\t// Slowly rotate each of the cubes\n\t\tfor(Cube cube : cubes){\n\t\t\tcube.rotate(TIME_DELTA, 0.5f, 0.5f, 1.0f);\n\t\t}\n\t\t\n\t\t// Update the camera\n\t\tcamera.pointAt(0f, 0f, CAMERA_Z, 0f, 0f, 0f, 0f, 1f, 0f);\n\t\tcamera.setHeadCorrection(transform);\n\t\t\n\t\tcheckGLError(\"onNewFrame\");\n\t}", "private void drawToScreen() {\n \n Graphics g2 = getGraphics();\n /*g2.drawImage(image, 0, 0, \n WIDTH * SCALE, HEIGHT * SCALE, \n 0, 0, WIDTH, HEIGHT, \n this);*/\n g2.drawImage(image,\n (int)gsm.getAttribute(\"CAMERA_X1\"),\n (int)gsm.getAttribute(\"CAMERA_Y1\"),\n (int)gsm.getAttribute(\"CAMERA_X1\") + WIDTH*SCALE,\n (int)gsm.getAttribute(\"CAMERA_Y1\") + HEIGHT*SCALE,\n (int)gsm.getAttribute(\"WORLD_X1\"),\n (int)gsm.getAttribute(\"WORLD_Y1\"),\n (int)gsm.getAttribute(\"WORLD_X1\") + WIDTH,\n (int)gsm.getAttribute(\"WORLD_Y1\") + HEIGHT,\n this);\n\t\t/*g2.drawImage(image, 0, 0,\n\t\t\t\tWIDTH * SCALE, HEIGHT * SCALE,\n\t\t\t\tnull);*/\n\t\tg2.dispose();}", "public void render () {\n\t\tcam.update();\n\t\tbatch.setProjectionMatrix(cam.combined);\n\t\trenderBackground();\n\t\t/*shapeRender.setProjectionMatrix(cam.combined);\n\t\tshapeRender.begin(ShapeRenderer.ShapeType.Line);\n\t\tshapeRender.ellipse(world.trout.hitBox.x, world.trout.hitBox.y, world.trout.hitBox.width, world.trout.hitBox.height);\n\t\tshapeRender.circle(world.hook.circleBounds.x, world.hook.circleBounds.y, world.hook.circleBounds.radius);\n\t\tshapeRender.point(world.trout.position.x, world.trout.position.y, 0f);*/\n\t\trenderObjects();\n\t\t\n\t}", "public void draw() {\n \n // TODO\n }", "public void draw(float[] mvpMatrix) {\n // Add program to OpenGL environment\n GLES20.glUseProgram(mProgram);\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n\n // Enable a handle to the triangle vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the triangle coordinate data\n GLES20.glVertexAttribPointer(\n mPositionHandle, COORDS_PER_VERTEX,\n GLES20.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n\n // get handle to fragment shader's vColor member\n mColorHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n\n // Set color for drawing the triangle\n GLES20.glUniform4fv(mColorHandle, 1, color, 0);\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, \"uMVPMatrix\");\n MyGLRenderer.checkGlError(\"glGetUniformLocation\");\n\n // Apply the projection and view transformation\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n MyGLRenderer.checkGlError(\"glUniformMatrix4fv\");\n\n // Draw the square\n GLES20.glDrawElements(\n GLES20.GL_TRIANGLES, drawOrder.length,\n GLES20.GL_UNSIGNED_SHORT, drawListBuffer);\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n }", "public void draw(WorldLocation coord){\n \n }", "public void onDrawFrame(GL2 gl) {\n gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT);\r\n\r\n if (updatePerspective) {\r\n if (gl != null) {\r\n gl.glMatrixMode(GLMatrixFunc.GL_PROJECTION);\r\n gl.glLoadIdentity();\r\n glu.gluPerspective(camera.getOpeningAngle(), aspectRatio, nearClippingPlane, farClippingPlane);\r\n gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);\r\n }\r\n updatePerspective = false;\r\n }\r\n\r\n updateView(gl);\r\n\r\n // Flat shading\r\n gl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_FILL);\r\n\r\n if (renderFrame != null) {\r\n renderFrame.getRoot().drawGl(gl);\r\n }\r\n }", "public void render(){ \r\n\t\tGL11.glPushMatrix();\r\n\t\tGL11.glTranslatef(x, y, z);\r\n\t\tGL11.glColor4f(Color.x, Color.y, Color.z, (float)(Math.random())); //Color.vx\r\n\t\tVGO v=getModel();\r\n\t\tv.orientPlain(r);\r\n\t\tv.orient(base);\r\n\t\t\r\n\t\ttFling+=0.01f;\r\n\t\tif(tFling>5){\r\n\t\t\ttHide=tActive;\r\n\t\t\ttActive+=0.1f;\r\n\t\t\tif(tHide>=1){\r\n\t\t\t\ttHide=0f;\r\n\t\t\t\ttActive=0.1f;\r\n\t\t\t}\r\n\t\t\ttFling=0f;\r\n\t\t}\r\n\t\t\r\n\t\tv.render();//tHide,tActive,tFling,1);\r\n\t\tGL11.glPopMatrix();\r\n\t}", "public native void renderOneFrame();", "public void render() {\n float theta = velocity.heading2D() + radians(90);\n\n\n fill(255, 0, 0);\n stroke(0, 0, 0);\n strokeWeight(0.5f);\n pushMatrix();\n translate(position.x, position.y);\n rotate(theta);\n beginShape(QUAD);\n fill(130);\n vertex(r, -r*2);\n\n vertex(-r, -r*2);\n vertex(-r, r*2);\n vertex(r, r*2);\n\n endShape();\n strokeWeight(0.5f);\n beginShape(TRIANGLES);\n vertex(r,-r*2);\n vertex(r*2.5f,r);\n vertex(r,r);\n endShape();\n strokeWeight(0.5f);\n beginShape(TRIANGLES);\n vertex(-r, -r*2);\n vertex(r, -r*2);\n vertex(0, -r*4);\n endShape();\n beginShape(TRIANGLES);\n vertex(-r, r*5);\n vertex(r, r*5);\n vertex(0, r*2);\n endShape();\n strokeWeight(1.7f*r);\n stroke(255);\n fill(255);\n point(0, -r*2.5f);\n stroke(0);\n fill(0);\n strokeWeight(0.75f*r);\n point(0, -r*2.5f);\n popMatrix();\n }", "@Override\n public void onDrawFrame(GL10 gl) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n\n if (session == null) {\n return;\n }\n // Notify ARCore session that the view size changed so that the perspective matrix and\n // the video background can be properly adjusted.\n displayRotationHelper.updateSessionIfNeeded(session);\n\n try {\n session.setCameraTextureName(backgroundRenderer.getTextureId());\n\n // Obtain the current frame from ARSession. When the configuration is set to\n // UpdateMode.BLOCKING (it is by default), this will throttle the rendering to the\n // camera framerate.\n Frame frame = session.update();\n globalFrameVar = frame;\n Camera camera = frame.getCamera();\n\n // Keep the screen unlocked while tracking, but allow it to lock when tracking stops.\n trackingStateHelper.updateKeepScreenOnFlag(camera.getTrackingState());\n\n // If frame is ready, render camera preview image to the GL surface.\n backgroundRenderer.draw(frame);\n\n // Get projection matrix.\n float[] projmtx = new float[16];\n camera.getProjectionMatrix(projmtx, 0, 0.1f, 100.0f);\n\n // Get camera matrix and draw.\n float[] viewmtx = new float[16];\n camera.getViewMatrix(viewmtx, 0);\n\n // Compute lighting from average intensity of the image.\n final float[] colorCorrectionRgba = new float[4];\n frame.getLightEstimate().getColorCorrection(colorCorrectionRgba, 0);\n\n // Visualize augmented images.\n drawAugmentedImages(frame, projmtx, viewmtx, colorCorrectionRgba);\n } catch (Throwable t) {\n // Avoid crashing the application due to unhandled exceptions.\n Log.e(TAG, \"Exception on the OpenGL thread\", t);\n }\n }", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "public void draw();", "public void draw();", "public void draw();", "public void draw(){\n\t\t/* Stamps a copy of the planet at the position. the file of the planet image is under folder of \"images\".\n\t\t * a mistake easily to be ignored here..*/\n\t\tString imageToDraw = \"images/\" + imgFileName;\n\t\tStdDraw.picture(xxPos, yyPos, imageToDraw);\n\n\t}", "public void drawWorld(Canvas canvas) {\n\t\tTransformation outerTransformation = canvas.getTransformation();\n\t\tcanvas.setTransformation(outerTransformation.with(transformation.inverse()));\n\t\tif (changedArea != null) {\n//\t\t\tcanvas.setColor(Color.random());\n//\t\t\tcanvas.drawRectangle(changedArea.insetBy(-0.01f));\n//\t\t\tcanvas.setClipping(changedArea.insetBy(-0.01f));//FIXME\n\t\t}\n\t\tchangedArea = null;\n\t\t(new DelegatingCanvas(canvas) {\n\t\t\tboolean draw = true;\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void drawMorph(Morph morph) {\n\t\t\t\t/* draw until this eye is reached, and then stop drawing\n\t\t\t\t * (since everything else is above it in Z-order and thus\n\t\t\t\t * not visible from this eye point of view)\n\t\t\t\t */\n\t\t\t\tif (morph == EyeMorph.this) {\n\t\t\t\t\tdraw = false;\n\t\t\t\t} else if (draw) {\n\t\t\t\t\tsuper.drawMorph(morph);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).drawMorph(getWorld());\n\n\t\tcanvas.setTransformation(outerTransformation);\n\t\tdrawSubmorphs(canvas);\n\t}", "public void drawImage() {\n mTextureRender.drawFrame(mSurfaceTexture);\n }", "public void draw(float[] mvpMatrix) {\n\t\tGLES20.glUseProgram(program);\n\t\t\n\t\t//get handle to vertex shader's vPosition memer\n\t\tint positionHandle = GLES20.glGetAttribLocation(program, \"vPosition\");\n\t\t\n\t\t//enalge a handle to the triangle vertices\n\t\tGLES20.glEnableVertexAttribArray(positionHandle);\n\t\t\n\t\t//preper the triangle coordintate data\n\t\tGLES20.glVertexAttribPointer(positionHandle, \n\t\t\t\tCOORDS_PER_VERTEX, \n\t\t\t\tGLES20.GL_FLOAT, \n\t\t\t\tfalse, \n\t\t\t\tvertexStride, \n\t\t\t\tvertexBuffer);\n\t\t\n\t\t//get handle to fragment shader's vColor member\n\t\tint colorHandle = GLES20.glGetUniformLocation(program, \"vColor\");\n\t\t\n\t\t//set color for drawing the triangle\n\t\tGLES20.glUniform4fv(colorHandle, 1, color, 0);\n\t\t\t\t\n\t\t//get handle to shape's transformation matrix\n\t\tmMVPMatrixHandle = GLES20.glGetUniformLocation(program, \"uMVPMatrix\");\n\t\t\t\t\n\t\t// pass the projection and view transformation to the shder\n\t\tGLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\t\t\t\t\n\t\t//draw the triangle\n\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, vertexCount);\n\t\t\n\t\t//disable vertex array\n\t\tGLES20.glDisableVertexAttribArray(positionHandle);\n\t}", "@Override\n public void activateView(String outFile, int animationFrameRate) throws IOException {\n }", "public void renderFrame(State state, float[] lPMatrix) {\n\t\tisModelVisible = false;\n\t\t// Renders video background replacing Renderer.DrawVideoBackground()\n\t\tmRenderer.renderVideoBackground();\n\n\t\tGLES20.glEnable(GLES20.GL_DEPTH_TEST);\n\t\tGLES20.glEnable(GLES20.GL_CULL_FACE);\n\t\tGLES20.glCullFace(GLES20.GL_BACK);\n\t\tGLES20.glEnable(GLES20.GL_BLEND);\n\t\tGLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\n\t\t// Did we find any trackables this frame?\n\t\tfor (int tIdx = 0; tIdx < state.getNumTrackableResults(); tIdx++) {\n\t\t\tmActivity.setFirstLoading();\n\t\t\tisModelVisible = true;\n\t\t\tTrackableResult result = state.getTrackableResult(tIdx);\n\t\t\t//Trackable trackable = result.getTrackable();\n\t\t\t//printUserData(trackable);\n\t\t\tMatrix44F modelViewMatrix_Vuforia = Tool.convertPose2GLMatrix(result.getPose());\n\n\t\t\tfloat[] lMVMatrix = modelViewMatrix_Vuforia.getData();\n\t\t\tfloat[] lMVPMatrix = new float[16];\n\n\t\t\t//String trackName = trackable.getName();\n\t\t\tint textureIndex = 0;\n\n\t\t\t//mActivity.showDebugMsg(trackable.getName());\n\n\t\t\t// deal with the modelview and projection matrices\n\n\n\t\t\tMatrix.translateM(lMVMatrix, 0, startX, startY, startZ);\n\t\t\tMatrix.scaleM(lMVMatrix, 0, objectScaleFloat, objectScaleFloat, objectScaleFloat);\n\t\t\t/// rotate based on gestures\n\t\t\tMatrix.rotateM(lMVMatrix, 0, objectRotateFloatZ, 0, 0, 1.0f);\n\t\t\tMatrix.rotateM(lMVMatrix, 0, objectRotateFloatY, 0, 1.0f, 0);\n\n\t\t\tMatrix.multiplyMM(lMVPMatrix, 0, lPMatrix, 0, lMVMatrix, 0);\n\n\t\t\t// activate the shader program and bind the vertex/normal/tex coords\n\t\t\tGLES20.glUseProgram(shaderProgramID);\n\n\t\t\tGLES20.glVertexAttribPointer(vertexHandle, 3, GLES20.GL_FLOAT, false, 0, object.getVertices());\n\t\t\tGLES20.glVertexAttribPointer(textureCoordHandle, 2, GLES20.GL_FLOAT, false, 0, object.getTexCoords());\n\n\t\t\tGLES20.glEnableVertexAttribArray(vertexHandle);\n\t\t\tGLES20.glEnableVertexAttribArray(textureCoordHandle);\n\n\t\t\t// bind the texture and pass to shader\n\t\t\tGLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextures.get(textureIndex).mTextureID[0]);\n\t\t\tGLES20.glUniform1i(texSampler2DHandle, 0);\n\n\t\t\t// pass the model view matrix to the shader\n\t\t\tGLES20.glUniformMatrix4fv(mvpMatrixHandle, 1, false, lMVPMatrix, 0);\n\n\t\t\t// vykreslit objekt\n\t\t\t// if indices are set in 3D object\n\t\t\tif(object.getNumObjectIndex() > 0) {\n\t\t\t\tGLES20.glDrawElements(GLES20.GL_TRIANGLES, object.getNumObjectIndex(), GLES20.GL_UNSIGNED_SHORT,\n\t\t\t\t\t\tobject.getIndices());\n\t\t\t\t//Log.d(LOGTAG, \"Draw Elements with INDICES\");\n\t\t\t}else {\n\t\t\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, object.getNumObjectVertex());\n\t\t\t\t//Log.d(LOGTAG, \"Draw Elements without INDICES\");\n\t\t\t}\n\n\t\t\t// disable the enabled arrays\n\t\t\tGLES20.glDisableVertexAttribArray(vertexHandle);\n\t\t\tGLES20.glDisableVertexAttribArray(textureCoordHandle);\n\t\t\tArUtils.checkGLError(\"Render Frame\");\n\t\t}\n\n\t\tGLES20.glDisable(GLES20.GL_BLEND);\n\t\tGLES20.glDisable(GLES20.GL_DEPTH_TEST);\n\n\t}", "public void simpleDraw(int posHandle, int colourHandle, int mvpHandle, float[] mvpMat, float[] viewMat, float[] projMat) {\n // Pass in the position information\n mCubeVertices.position(0);\n GLES20.glVertexAttribPointer(posHandle, 3, GLES20.GL_FLOAT, false,\n 0, mCubeVertices);\n GLES20.glEnableVertexAttribArray(posHandle);\n // Pass in the color information\n mCubeColours.position(0);\n GLES20.glVertexAttribPointer(colourHandle, 4, GLES20.GL_FLOAT, false,\n 0, mCubeColours);\n GLES20.glEnableVertexAttribArray(colourHandle);\n // This multiplies the view matrix by the model matrix, and stores the result in the MVP matrix\n Matrix.multiplyMM(mvpMat, 0, viewMat, 0, mModelMatrix, 0);\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n Matrix.multiplyMM(mvpMat, 0, projMat, 0, mvpMat, 0);\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mvpHandle, 1, false, mvpMat, 0);\n // Draw the cube.\n if(!sMesh){\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 36);\n }else{\n GLES20.glDrawArrays(GLES20.GL_LINES, 0, 36);\n }\n }", "@Override\n\tpublic void render(float delta) {\n\t\tsetupDisplay();\n\t\tcamera.update();\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t\t\n\t\t//Matrix4 normalProjection = new Matrix4().setToOrtho2D(0, 0,\n\t\t//\t\tGdx.graphics.getWidth(), Gdx.graphics.getHeight()); //required to render sprites properly\n\t\t//batch.setProjectionMatrix(normalProjection);\n\t\tbatch.begin();\n\t\t\n\t\t//Draw Background\n\t\tdrawBackground();\n\t\t\n\t\t//Draw Buttons (if input falls in the draw region for a button, change the image to a 'clicked' button)\n\t\tdrawButtons();\n\t\t\n\t\t//Draw Text(if you draw anything else after this, the projection matrix must be reset)\n\t\tdrawText();\n\t\tbatch.end();\n\t}", "public void draw()\n\t{\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, texture_id);\n\t\tdrawMesh(gl);\n\t}", "public void drawImage(float x, float y, float width, float height);", "@Override\n\tpublic void glDraw(float[] mvpMatrix, int vboHandle, FrameBufferInfo fbi,\n\t\t\tint posDataSize, int textureHandle) {\n\t\tGLES20.glUseProgram(mShader.program);\n\t\tGLES20.glViewport(0, 0, mImageSize.x, mImageSize.y);\n\t\tGLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fbi == null ? 0\n\t\t\t\t: fbi.frameBufferHandle);\n\t\tGLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textureHandle);\n\t\tGLES20.glUniform1i(mShader.uniforms.get(\"uTexture\"), 0);\n\t\tGLES20.glActiveTexture(GLES20.GL_TEXTURE1);\n\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mCurveHandle);\n\t\tGLES20.glUniform1i(mShader.uniforms.get(\"uTextureCurve\"), 1);\n\t\tGLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vboHandle);\n\t\tGLES20.glVertexAttribPointer(mShader.attribute, posDataSize,\n\t\t\t\tGLES20.GL_FLOAT, false, 0, 0);\n\t\tGLES20.glEnableVertexAttribArray(mShader.attribute);\n\t\tGLES20.glUniformMatrix4fv(mShader.uniforms.get(\"uMVPMatrix\"), 1, false,\n\t\t\t\tmvpMatrix, 0);\n\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 6);\n\n\t}", "public void draw(float[] mvpMatrix) {\n\n // Add program to OpenGL ES environment\n GLES20.glUseProgram(mProgram);\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n\n // Enable a handle to the triangle vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the triangle coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n GLES20.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n\n // get handle to fragment shader's vColor member\n mColorHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n\n // Set color for drawing the triangle\n GLES20.glUniform4fv(mColorHandle, 1, color, 0);\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, \"uMVPMatrix\");\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n // Draw the triangle\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, vertexCount);\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n }", "public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}", "@Override\n\tpublic void render() {\n\t\tGdx.gl.glViewport(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);\n\n\n\t\t// TODO: begin the model batch with the current camera\n\t\t// render the instance of the model in the set-up environment using the model batch\n\t\t// end the model batch rendering process\n\t\tmodelBatch.begin(cam);\n\t\tmodelBatch.render(instance, environment);\n\t\tmodelBatch.end();\n\n\t\t// TODO: begin the sprite batch rendering\n\t\t// draw the new order logo at (50, 50, 200, 200)\n\t\t// end the sprite batch rendering process\n\t\tsprites.begin();\n\t\tsprites.draw(logo,50, 50, 200, 200);\n\t\tsprites.end();\n\t}", "void draw();", "private void drawStatic() {\n Matrix.multiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n // Pass in the modelview matrix.\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "@Override\n public void setCamera (GL2 gl, GLU glu, GLUT glut) {\n glu.gluLookAt(0, 0, 2.5, // from position\n 0, 0, 0, // to position\n 0, 1, 0); // up direction\n }", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "public void drawFloor() {\r\n GLES20.glUseProgram(program);\r\n\r\n // Set ModelView, MVP, position, normals, and color.\r\n GLES20.glUniform3fv(lightPosParam, 1, lightPosInEyeSpace, 0);\r\n GLES20.glUniformMatrix4fv(modelParam, 1, false, model, 0);\r\n GLES20.glUniformMatrix4fv(modelViewParam, 1, false, modelView, 0);\r\n GLES20.glUniformMatrix4fv(modelViewProjectionParam, 1, false, modelViewProjection, 0);\r\n GLES20.glVertexAttribPointer(positionParam, COORDS_PER_VERTEX, GLES20.GL_FLOAT, false, 0, vertices);\r\n GLES20.glVertexAttribPointer(normalParam, 3, GLES20.GL_FLOAT, false, 0, normals);\r\n GLES20.glVertexAttribPointer(colorParam, 4, GLES20.GL_FLOAT, false, 0, colors);\r\n\r\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 6);\r\n\r\n checkGLError(\"drawing floor\");\r\n }", "public Framebuffer render(int framebufferWidth, int framebufferHeight) throws OpenGLException;", "public void draw(){\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tMat frame = grabFrame();\n\t\t\t\t\t\t// convert and show the frame\n\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\n\t\t\t\t\t\tupdateImageView(imgPanel, imageToShow);\n\t\t\t\t\t}", "public void draw(Matrix4 projectionMatrix){\n batch.setProjectionMatrix(projectionMatrix);\n batch.begin();\n boatSprite.setPosition(boatPosition.getPosX(), boatPosition.getPosY());\n boatSprite.draw(batch);\n batch.end();\n }", "@Override\r\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\r\n\r\n\t\tgl.glMatrixMode(GL10.GL_PROJECTION);\r\n\t\tgl.glLoadIdentity();\r\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION,\r\n\t\t\t\tnew float[] { 5, 5, 5, 1 }, 0);\r\n\r\n\t\tgl.glRotatef(anglez, 0, 0, 1);\r\n\t\tgl.glRotatef(angley, 0, 1, 0);\r\n\t\tgl.glRotatef(anglex, 1, 0, 0);\r\n\t\tanglez += 0.1;\r\n\t\tangley += 0.2;\r\n\t\tanglex += 0.3;\r\n\r\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\r\n\t\t// gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);\r\n\t\tgl.glEnableClientState(GL10.GL_COLOR_ARRAY);\r\n\r\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexesBuffer);\r\n\t\tgl.glColorPointer(4, GL10.GL_FLOAT, 0, colorBuffer);\r\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, triangleBuffer.remaining(),\r\n\t\t\t\tGL10.GL_UNSIGNED_BYTE, triangleBuffer);\r\n\r\n\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\r\n\t\tgl.glDisableClientState(GL10.GL_COLOR_ARRAY);\r\n\t\tgl.glFinish();\r\n\r\n\t}", "public void draw(){\n StdDraw.picture(this.xCoordinate,this.yCoordinate,this.img);\n }", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "public void Display() \n {\n float theta = velocity.heading() + PI/2;\n fill(175);\n stroke(0);\n pushMatrix();\n translate(pos.x,pos.y);\n rotate(theta);\n beginShape();\n vertex(0, -birdSize*2);\n vertex(-birdSize, birdSize*2);\n vertex(birdSize, birdSize*2);\n endShape(CLOSE);\n popMatrix();\n }", "@Override\n\tpublic void render(Graphics g) {\n\t\tg.drawImage(getAnimationFrame(), (int)(x - handler.getCamera().getxOffset()), (int)(y - handler.getCamera().getyOffset()), width, height, null);\n\t //drawBoudingBox(g);\n\t}" ]
[ "0.6988311", "0.6365046", "0.63515645", "0.5988914", "0.5779638", "0.56874096", "0.56556344", "0.5627343", "0.5592684", "0.5526143", "0.55191755", "0.54655", "0.54466486", "0.53829664", "0.5379701", "0.5368822", "0.53219134", "0.530978", "0.5284783", "0.5274238", "0.52666676", "0.5252128", "0.5186325", "0.5173658", "0.5169845", "0.5162312", "0.5134604", "0.5128672", "0.5096575", "0.5089235", "0.50798434", "0.50649923", "0.5062071", "0.50613356", "0.5061201", "0.50572824", "0.505603", "0.505568", "0.5039094", "0.503222", "0.503222", "0.5028372", "0.50121886", "0.5006172", "0.498992", "0.498783", "0.49870214", "0.49867272", "0.4979264", "0.49684456", "0.4964879", "0.49637166", "0.4941068", "0.49358645", "0.49285808", "0.49219877", "0.4918349", "0.49099702", "0.49097437", "0.4900937", "0.48999095", "0.48998275", "0.48988745", "0.48977146", "0.4895905", "0.48875162", "0.48865506", "0.48840198", "0.4866968", "0.48579562", "0.48579562", "0.48579562", "0.48568934", "0.48526177", "0.484643", "0.48413542", "0.48341528", "0.48178545", "0.4817144", "0.48139635", "0.4812772", "0.48085108", "0.48043385", "0.48040003", "0.48033306", "0.47950768", "0.47916567", "0.4787785", "0.47843182", "0.4782737", "0.4777056", "0.4773896", "0.4772468", "0.4751378", "0.4742303", "0.47416708", "0.47404468", "0.47384337", "0.4736436", "0.47346407" ]
0.6620146
1
Tears down test environment.
protected void tearDown() throws Exception { instance = null; manager = null; AccuracyTestsHelper.clearConfig(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void tearDown() {\n testEnv.close();\n }", "@AfterClass\r\n\tpublic static void testCleanup() {\r\n\t\tConfig.teardown();\r\n\t}", "public void teardown() {\n LOGGER.info(\"Shutting down driver\");\n driver.quit();\n }", "@AfterSuite\n\tpublic void teardown() {\n\t\t\n\t\tdriver.quit();\n\t}", "@AfterSuite\n\tpublic void teardown() {\n\t\tlogger.info(\"ALL TESTS COMPLETED: Quiting driver\");\n\t\tgmailPg.quitDriver();\n\t}", "public static void teardown() {\n\t\tdriver.quit();\n\t}", "@AfterClass(alwaysRun = true)\n public void stopEnvironment() {\n \ttry {\n al.closeMongoDbConnection();\n \t} catch (Exception e) {\n\t\t\tfail(e.toString());\n\t\t\t}\n }", "@AfterTest\n\tpublic void teardown()\n\t{\n\t\t\n\t\tdriver.close();\n\t}", "@After\r\n public void tearDown() throws Exception {\r\n super.tearDown();\r\n TestHelper.cleanupEnvironment();\r\n instance = null;\r\n }", "@After\n\tpublic void teardown() {\n\t\tdrv.quit();\n\t}", "@Teardown\n public void tearDown() {\n if (channel != null) {\n channel.shutdownNow();\n channel = null;\n }\n }", "@AfterClass\n\tpublic void teardown()\n\t{\n\t\tdriver.close();\n\t}", "@After\n\tpublic void teardown() {\n\t\tthis.driver.quit();\n\t}", "@AfterClass\n public static void teardown() {\n app = null;\n\n }", "@AfterTest\n\tpublic void tearDown() throws Exception\n\t{\n\t\tlog.info(\"Starting tear Down\");\n//\t\t\t\tdriver.close();\n\t}", "@AfterClass\n\tpublic static void tearDownClass() {\n\t\tTEST_ENVIRONMENT.stopServer();\n\t\tTEST_ENVIRONMENT.tearDownDb();\n\t}", "@AfterMethod(alwaysRun = true)\n public void cleanupTest() throws Exception {\n busService.getBus().unregister(testListener);\n busService.getBus().stop();\n \n // STOP NOTIFICATION QUEUE\n ((Engine)entitlementService).stop();\n\n log.warn(\"DONE WITH TEST\\n\");\n }", "@AfterSuite\r\n\tpublic void tearDown() {\r\n\t\tSystem.out.println(\"Driver teared down\");\r\n\t}", "@Override\n public void tearDown() {\n testEngine = null;\n }", "void teardown();", "void teardown();", "@AfterClass\n\tpublic static void tearDown() {\n\t\tdriver.quit();\n\t}", "protected void tearDown() {\n config = null;\n }", "@AfterClass\n public static void tearDownClass() throws Exception {\n TestHelper.stopServer(serverSyncObject);\n TestHelper.deleteViewStore();\n TestHelper.removeArchiveFiles();\n LOGGER.log(Level.INFO, \"Ending test class\");\n }", "@AfterTest\n public void tearDown() {\n Log.endLog(\"Test is ending!\");\n driver.close();\n }", "@AfterClass\n\tpublic static void testCleanup() {\n\t}", "public static void tearDown() {\n\t\tif (driver != null) {\n\t\t\tdriver.quit();\n\t\t}\n\t}", "@After\n public void tearDown() throws Exception {\n testInstance = null;\n }", "@After\n public void teardown() {\n RoboGuice.Util.reset();\n }", "@AfterClass\n\tpublic void tearDown() {\n\n\t\tsettings.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t\tapp.quit();\n\t\ttest.log(Status.INFO, \"Closed firefox\");\n\n\t}", "@Override\n public void test_tearDown() throws Exception {\n UiBinderContext.disposeSharedGWTState();\n super.test_tearDown();\n }", "@AfterClass\n public static void shutdown()\n {\n }", "@AfterClass\n public static void tearDownClass() {\n ApplicationSessionManager.getInstance().stopSession();\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n FailureTestHelper.unloadConfig();\r\n }", "@AfterAll\n\tpublic static void destroy() {\n\t\tif (isSingleTest) {\n\t\t\tlogger.debug(\"Closing ChromeDriver for single test class.\");\n\t\t\tIntegrationUITestListener.stopWebDriver();\n\t\t}\n\t}", "@AfterClass\n\tpublic static void tearDown() throws RemoteException, NotBoundException {\n\t\tSystem.out.println(\n\t\t\t\t\"----------------------------------------Test Recovery Tearing down----------------------------------------\");\n\t\treg.unbind(BINDING_NAME);\n\t\treg = null;\n\t\tSystem.out.println(\n\t\t\t\t\"----------------------------------------Test Recovery Tear down done----------------------------------------\");\n\t}", "@AfterClass\n\tpublic static void tearDownAfterClass() throws Exception {\n\t\tydelseService = null;\n\t}", "@Override\n public void tearDown() {\n setName(caseLabel + '-' + getName());\n\n if (env != null) {\n try {\n closeAll();\n } catch (Throwable e) {\n System.out.println(\"During tearDown: \" + e);\n }\n }\n envHome = null;\n env = null;\n store = null;\n caseCls = null;\n caseObj = null;\n caseLabel = null;\n\n /* Do not delete log files so they can be used by 2nd phase of test. */\n }", "@After\n\t\t public void tearDown() throws Exception {\n\t\t\t testHelper.tearDown();\n\t\t }", "@AfterEach\n public void tearDown() throws Exception\n {\n\n application = null;\n config = null;\n externalContext = null;\n if (facesContext != null)\n {\n facesContext.release();\n }\n facesContext = null;\n lifecycle = null;\n lifecycleFactory = null;\n renderKit = null;\n request = null;\n response = null;\n servletContext = null;\n session = null;\n FactoryFinder.releaseFactories();\n ResourceBundleVarNames.resetNames();\n\n tearDownClassloader();\n }", "@AfterClass\n public static void stop() {\n }", "@AfterClass\n public static void cleanup() throws Exception {\n try {\n if (client != null) client.close();\n if (runners != null) {\n int i = 0;\n for (final NodeRunner runner: runners) {\n print(false, false, \"<<< stoping the JPPF node \" + (++i));\n runner.shutdown();\n }\n }\n if (driver != null) {\n print(false, false, \"<<< shutting down driver\");\n driver.shutdown();;\n }\n } finally {\n BaseTestHelper.generateClientThreadDump();\n }\n }", "@AfterClass\n public static void destroyDriver() {\n driver.quit();\n driver = null;\n }", "@After\n public void tearDown() {\n try {\n removeKeyPair(ALIAS_IMPORTED);\n removeKeyPair(ALIAS_GENERATED);\n removeKeyPair(ALIAS_1);\n } catch (RemoteException e) {\n // Nothing to do here but warn that clean-up was not successful.\n Log.w(TAG, \"Failed cleaning up installed keys\", e);\n }\n unbindTestSupportService();\n assertThat(mIsSupportServiceBound).isFalse();\n unbindKeyChainService();\n assertThat(mIsKeyChainServiceBound).isFalse();\n }", "@AfterMethod\r\n\tpublic void tearDown() {\r\n\t\tdriver.quit();\r\n\t\tsoftAssert.assertAll();\r\n\t}", "@AfterClass\n\tpublic void teardown(){\n\t}", "@After\r\n\tpublic void tearDown() {\r\n\t\tvend = null; \r\n\t\tcsListen = null;\r\n\t\tdcListen = null;\r\n\t}", "@After\n public void teardown() throws Exception{\n localScribenginCluster.shutdown();\n }", "@AfterClass\n public static void tear() {\n System.out.println(\"*** After class ***\");\n }", "@AfterClass\r\n\t\t\tpublic static void tearDown(){\r\n\t\t\t\t//Cierra navegador y la instancia del driver\r\n\t\t\t\tdriver.quit();\t\t\r\n\t\t\t}", "@AfterClass\r\n public static void tearDown() throws Exception {\r\n instance = null;\r\n }", "@AfterClass\n public static void shutDown() {\n // \"override\" parent shutDown\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tserverChannel.close();\n\t\tchannel = null;\n\t\tclient = null;\n\t}", "@Override\r\n protected void tearDown() throws Exception {\r\n ctx = null;\r\n projectService = null;\r\n }", "@After\n public void tearDown() {\n controller\n .pause()\n .stop()\n .destroy();\n }", "@After\n public void cleanUp(){\n mockUserRepo = null;\n mockSession = null;\n sut = null;\n }", "@AfterClass\n\tpublic static void cleanup() {\n\t\ttestDir.delete();\n\t\tfile.delete();\n\t}", "@AfterClass\n\tpublic static void teardown() {\n\t\tdataMunger = null;\n\n\t}", "@Override\n\tprotected void tearDown() throws Exception {\n\t\tsuper.tearDown();\n\t\tmCore.destroy();\n\t\tmCore=null;\n\t}", "protected void tearDown() throws Exception {\n action = null;\n manager = null;\n activityGraph = null;\n state = null;\n\n TestHelper.clearProjectConfiguration();\n }", "@Override\n\tpublic void teardown() {\n\t}", "@AfterClass\n public void cleanUp() {\n }", "@AfterClass(alwaysRun = true)\n public static void cleanup() {\n try {\n driver.close();\n driver.quit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@After\n public void pslBaseCleanup() {\n AbstractRule.unregisterAllRulesForTesting();\n\n // Close any known open models.\n TestModel.ModelInformation.closeAll();\n\n // Clear all options.\n Options.clearAll();\n\n disableLogger();\n }", "@AfterMethod\n\tpublic void tearDown()\n\t{\n\t\tdriver.close();\n\t\tdriver.quit();\n\t}", "protected void tearDown() throws Exception {\n actionManager = null;\n TestHelper.clearConfig();\n super.tearDown();\n }", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "@AfterClass\n public static void closeTestFixture() {\n entityManager.close();\n entityManagerFactory.close();\n }", "public void tearDown() {\n tearDown(true);\n }", "@After\n public void tearDown() {\n GWTMockUtilities.restore();\n }", "@AfterMethod\r\n\t\tpublic void tearDown(){\r\n\t\t\t\r\n\t\t \r\n\t\t\tdriver.close();\r\n\t\t\tdriver.quit();\r\n\t\t\t\t\r\n\t\t\t}", "private void tearDown() {\n if (tempDir != null) {\n OS.deleteDirectory(tempDir);\n tempFiles.clear();\n tempDir = null;\n }\n }", "@After\n public void cleanup()\n throws Exception\n {\n moduleManager.stop();\n }", "protected void tearDown()\r\n {\r\n /* Add any necessary cleanup code here (e.g., close a socket). */\r\n }", "@After\n public void tearDown() {\n fixture.cleanUp();\n }", "@AfterClass\n public static void tearDown() {\n em.clear();\n em.close();\n emf.close();\n }", "public static void tearDown() {\n \tif(driver != null) {//if you get a nullpointer exception, the driver is not initialized\n \tdriver.quit(); //only when the driver is initialized only then driver will quit, not if not initialized\n \t}\n }", "@Override\n public void teardown() {\n }", "@AfterTest\npublic void end()\n{\n\tlogin.s.quit();\n}", "protected void tearDown() throws Exception {\r\n validator = null;\r\n bundle = null;\r\n TestHelper.clearConfiguration();\r\n }", "@Override\n public void afterEach(ExtensionContext context) throws Exception {\n if (!failedBoot) {\n RestAssuredURLManager.clearURL();\n TestScopeManager.tearDown(true);\n }\n }", "public void tearDown() {\n instance = null;\n }", "@AfterClass\r\n public static void cleanUpTestFixture(){\r\n entityManagerFactory.close();\r\n }", "protected void tearDown() throws Exception {\n TestHelper.clearConfig();\n super.tearDown();\n }", "@AfterClass(alwaysRun = true)\n public void tearDownClass() throws Exception {\n testNGCucumberRunner.finish();\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tSystem.setOut(null);\n\t\tSystem.setErr(null);\n\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t\tydelseService.setEntityManager(null);\n\t}", "protected void tearDown()\n {\n /* Add any necessary cleanup code here (e.g., close a socket). */\n }", "@AfterMethod\n public void tearDown(ITestResult result) throws Exception {\n driver.quit();\n }", "@After\n\tpublic void cleanUp() {\n\t\tsuper.unload();\n\n\t\t// shutdown the database\n\t\tif (db != null) {\n\t\t\tdb.shutDownDb();\n\t\t}\n\t\tassertTrue(Files.deleteDir(tmpDir));\n\t}", "@AfterEach\n public void tearDown() {\n scope.close();\n tracer = null;\n assertNull(tracer);\n }", "@AfterEach\n public void teardown() {\n mockDAO = null;\n addFlight = null;\n flight = null;\n }", "@AfterClass(alwaysRun = true)\n\tpublic void destroy() throws Exception {\n\t\tsuper.cleanup();\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t\teventDao = null;\t\t\n\t\tcontroller = null;\n\t\tresponse = null;\n\t\trequest = null;\n\t}", "public static void tearDown() {\n reset();\n clear();\n APIConfig.getInstance().setAppId(null, null);\n APIConfig.getInstance().setDeviceId(null);\n APIConfig.getInstance().setToken(null);\n APIConfig.getInstance().setUserId(null);\n Leanplum.setApplicationContext(null);\n }", "@AfterMethod(alwaysRun = true)\n public static void tearDown() {\n try {\n if (driver != null) {\n try {\n driver.quit();\n } catch (Exception x) {\n Log.error(\"Did not manage to quit driver object cleanly: \" + x.getMessage());\n }\n }\n } catch (Exception x) {\n Log.error(\"Error Quitting Browser: \" + x.getMessage());\n Log.error(\"Killing Selenium!\");\n Runtime.getRuntime().halt(1);\n }\n }", "@AfterMethod //Test cases to be independenent with each other \n\tpublic void tearDown() {\n\t\tdriver.quit(); //after each test case---- close the browser\n\t}", "@After\n public void tearDown() {\n fixture = null;\n }", "@After\n public void endingTests() throws Exception {\n driver.quit();\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tinstance.unlock();\n\t}" ]
[ "0.800837", "0.76213956", "0.7501416", "0.74659353", "0.74478614", "0.73999876", "0.73679805", "0.73664963", "0.7296697", "0.7230914", "0.72147137", "0.7208223", "0.71691406", "0.71253234", "0.712046", "0.70704573", "0.7064009", "0.7056549", "0.7055528", "0.7054756", "0.7054756", "0.7004815", "0.69562536", "0.6955863", "0.6935865", "0.69352907", "0.6928054", "0.69222724", "0.69199675", "0.69142497", "0.69033116", "0.68977183", "0.6895999", "0.68945634", "0.6893959", "0.6886691", "0.68836814", "0.6877458", "0.68701017", "0.68658096", "0.6827877", "0.68121916", "0.6803954", "0.67989415", "0.6794693", "0.678817", "0.6785319", "0.6780842", "0.67723614", "0.67643833", "0.6761953", "0.6752508", "0.67392904", "0.6729018", "0.6724183", "0.6723573", "0.67185754", "0.6717877", "0.67102355", "0.67058575", "0.67057496", "0.67037016", "0.6703664", "0.670344", "0.6697932", "0.6685221", "0.6684467", "0.6676708", "0.66758573", "0.6670237", "0.66609", "0.66560936", "0.6645143", "0.66412044", "0.6634135", "0.6630847", "0.6624341", "0.6610029", "0.6609237", "0.66029334", "0.65963393", "0.65963066", "0.6592836", "0.6586595", "0.65852475", "0.6580516", "0.657121", "0.657054", "0.6569142", "0.6567819", "0.65632176", "0.65630466", "0.655994", "0.6552849", "0.6548082", "0.65465236", "0.65434766", "0.6542828", "0.65409875", "0.65393955" ]
0.6718591
56
Tests ctor PropertiesPanelPropertiesPanel(String,UMLModelManager) for accuracy.
public void testCtor1() throws Exception { assertNotNull("Failed to create PropertiesPanel instance.", new PropertiesPanel(NAMESPACE, manager)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCtor2() {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", instance);\n }", "public void testCtor() {\n assertNotNull(\"Failed to create a new ConcurrencyPropertyPanel instance.\", panel);\n }", "public void testCtor_NullPropertiesPanel() throws Exception {\n try {\n new StereotypeListPropertyPanel(null, new ImageIcon(), new ImageIcon());\n fail(\"Expect IllegalArgumentException.\");\n } catch (IllegalArgumentException iae) {\n // expect\n }\n }", "public Panel() {\n }", "public void testConfigurePanel1() {\n Package packageObject = new PackageImpl();\n List<ModelElement> modelElements = new ArrayList<ModelElement>();\n modelElements.add(packageObject);\n instance.configurePanel(modelElements);\n\n assertEquals(\"Failed to configure the panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the panel.\", 1, ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "public DemoPanel() {\n }", "protected void setUp() throws Exception {\n TestHelper.loadSingleXMLConfig(TestHelper.NAMESPACE, TestHelper.CONFIG_FILE);\n propertiesPanel = new PropertiesPanel(new UMLModelManager());\n\n panel = new ConcurrencyPropertyPanel(propertiesPanel);\n }", "public InstallerPanel(SuiteInstallerProjectProperties props) {\n this.installerProps = props;\n initComponents();\n\n jCheckBox1.setModel(installerProps.windowsModel);\n jCheckBox2.setModel(installerProps.linuxModel);\n jCheckBox3.setModel(installerProps.macModel);\n jCheckBox4.setModel(installerProps.solarisModel);\n jCheckBox5.setModel(installerProps.pack200Model);\n \n licenseComboBox.setModel(installerProps.licenseModel);\n }", "protected void setUp() throws Exception {\n // get the config manager\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"failure/config.xml\");\n\n propertiesPanel = new PropertiesPanel(umlModelManager);\n }", "public void testCtor_NullPropertiesPanel() {\n try {\n new ConcurrencyPropertyPanel(null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public DimensionProperties() {\n }", "public Panel() {\n initComponents();\n\n\n }", "public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}", "public PropertiesView(){\n\n\t\tbtnDescTemplate = new DescTemplateWidget(this);\n\t\tbtnCalculation = new DescTemplateWidget(this);\n\n\t\ttable.setWidget(0, 0, new Label(LocaleText.get(\"text\")));\n\t\ttable.setWidget(1, 0, new Label(LocaleText.get(\"helpText\")));\n\t\ttable.setWidget(2, 0, new Label(LocaleText.get(\"type\")));\n\t\ttable.setWidget(3, 0, new Label(LocaleText.get(\"binding\")));\n\t\ttable.setWidget(4, 0, new Label(LocaleText.get(\"visible\")));\n\t\ttable.setWidget(5, 0, new Label(LocaleText.get(\"enabled\")));\n\t\ttable.setWidget(6, 0, new Label(LocaleText.get(\"locked\")));\n\t\ttable.setWidget(7, 0, new Label(LocaleText.get(\"required\")));\n\t\ttable.setWidget(8, 0, new Label(LocaleText.get(\"defaultValue\")));\n\t\ttable.setWidget(9, 0, new Label(LocaleText.get(\"calculation\")));\n\t\t\n\t\tlblDescTemplate = new Label(LocaleText.get(\"descriptionTemplate\"));\n\t\ttable.setWidget(10, 0, lblDescTemplate);\n\t\ttable.setWidget(11, 0, new Label(LocaleText.get(\"formKey\")));\n\n\t\ttable.setWidget(0, 1, txtText);\n\t\ttable.setWidget(1, 1, txtHelpText);\n\t\ttable.setWidget(2, 1, cbDataType);\n\t\ttable.setWidget(3, 1, txtBinding);\n\t\ttable.setWidget(4, 1, chkVisible);\n\t\ttable.setWidget(5, 1, chkEnabled);\n\t\ttable.setWidget(6, 1, chkLocked);\n\t\ttable.setWidget(7, 1, chkRequired);\n\t\ttable.setWidget(8, 1, txtDefaultValue);\n\n\t\tHorizontalPanel panel = new HorizontalPanel();\n\t\tpanel.add(txtCalculation);\n\t\tpanel.add(btnCalculation);\n\t\tpanel.setCellWidth(btnCalculation, \"20%\");\n\t\tFormUtil.maximizeWidget(txtCalculation);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(9, 1, panel);\n\n\t\tpanel = new HorizontalPanel();\n\t\tpanel.add(txtDescTemplate);\n\t\tpanel.add(btnDescTemplate);\n\t\tpanel.setCellWidth(btnDescTemplate, \"20%\");\n\t\tFormUtil.maximizeWidget(txtDescTemplate);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(10, 1, panel);\n\t\t\n\t\ttable.setWidget(11, 1, txtFormKey);\n\n\t\ttable.setStyleName(\"cw-FlexTable\");\n\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeText\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeNumber\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDecimal\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDate\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDateTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBoolean\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeMultSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeRepeat\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypePicture\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeVideo\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeAudio\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelectDynamic\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeGPS\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBarcode\"));\n\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\n\t\tcellFormatter.setHorizontalAlignment(15, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\n\t\ttable.setWidth(\"100%\");\n\t\tcellFormatter.setWidth(0, 0, \"20%\");\n\t\t//cellFormatter.setColSpan(0, 0, 2);\n\t\t\n\t\t//cellFormatter.setWidth(9, 0, \"20\"+PurcConstants.UNITS);\n\t\t//cellFormatter.setWidth(9, 1, \"20\"+PurcConstants.UNITS);\n\n\t\ttxtText.setWidth(\"100%\");\n\t\ttxtHelpText.setWidth(\"100%\");\n\t\ttxtBinding.setWidth(\"100%\");\n\t\ttxtDefaultValue.setWidth(\"100%\");\n\t\tcbDataType.setWidth(\"100%\");\n\t\ttxtFormKey.setWidth(\"100%\");\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tverticalPanel.setSpacing(5);\n\t\tverticalPanel.add(table);\n\n\t\tDecoratedTabPanel tabs = new DecoratedTabPanel();\n\t\ttabs.add(skipRulesView, LocaleText.get(\"skipLogic\"));\n\t\ttabs.add(validationRulesView, LocaleText.get(\"validationLogic\"));\n\t\ttabs.add(dynamicListsView, LocaleText.get(\"dynamicLists\"));\n\n\t\ttabs.selectTab(0);\n\t\tverticalPanel.add(tabs);\n\t\tFormUtil.maximizeWidget(tabs);\n\n\t\tFormUtil.maximizeWidget(verticalPanel);\n\t\tinitWidget(verticalPanel);\n\n\t\tsetupEventListeners();\n\n\t\tcbDataType.setSelectedIndex(-1);\n\n\t\tenableQuestionOnlyProperties(false);\n\t\ttxtText.setEnabled(false);\n\t\t//txtDescTemplate.setVisible(false);\n\t\t//btnDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\t\ttxtCalculation.setEnabled(false);\n\t\tbtnCalculation.setEnabled(false);\n\t\ttxtBinding.setEnabled(false);\n\n\t\ttxtText.setTitle(LocaleText.get(\"questionTextDesc\"));\n\t\ttxtHelpText.setTitle(LocaleText.get(\"questionDescDesc\"));\n\t\ttxtBinding.setTitle(LocaleText.get(\"questionIdDesc\"));\n\t\ttxtDefaultValue.setTitle(LocaleText.get(\"defaultValDesc\"));\n\t\tcbDataType.setTitle(LocaleText.get(\"questionTypeDesc\"));\n\n\t\tDOM.sinkEvents(getElement(), Event.ONKEYDOWN | DOM.getEventsSunk(getElement()));\n\t}", "private mxPropertiesManager()\n\t{\n\t}", "PanelOptionsVisual(PanelConfigureProject panel) {\n this.panel = panel;\n\n preInitComponents();\n initComponents();\n postInitComponents();\n }", "public PropertiesChooserView() {\n initComponents();\n choicesModel = new DefaultListModel();\n chosenModel = new DefaultListModel();\n chooseList.setModel(choicesModel);\n chosenList.setModel(chosenModel);\n }", "public VirtualPanel() {}", "public PropertyClassificationPage() {\n initComponents();\n }", "public EnvironmentPanelTest()\n {\n }", "@Test\n\tpublic void testGUIPanels() {\n\t\tfinal int RGB_GRAY = 238;\n\t\tColor defaultColor = new Color(RGB_GRAY, RGB_GRAY, RGB_GRAY);\n\n\t\tassertThat(window.requireEnabled());\n\t\tassertThat(window.requireVisible());\n\t\tassertThat(window.requireTitle(\"Parabolic shot!\"));\n\n\t\tassertThat(window.panel(\"Control panel\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Control panel\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireVisible());\n\n\t\tassertThat(window.panel(\"Information panel\").requireVisible());\n\t\tassertThat(window.panel(\"Information panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Information panel\").requireEnabled());\n\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireVisible());\n\t\tassertThat(window.panel(\"Parabolic shot panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireEnabled());\n\t}", "public PropsGUI() {\n initComponents();\n }", "public void testConfigurePanel2() {\n instance.configurePanel(new PackageImpl());\n\n assertEquals(\"Failed to configure the panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the panel.\", 1, ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "public ControlPanel(String propFile) {\n super(propFile);\n frame = new JFrame(\"Control Panel\");\n frame.setPreferredSize(new Dimension(900, 500));\n frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);\n }", "public Properties(){\n\n }", "public PrincipalPanel() {\n\t\tinitialize();\n\t}", "public Panel(LayoutManager paramLayoutManager)\n/* */ {\n/* 65 */ setLayout(paramLayoutManager);\n/* */ }", "public ClassParametersPanel(Annotated propertiesClass) {\n initComponents();\n this.propertiesClass = propertiesClass;\n loadTableProperties(this.propertiesClass);\n\n }", "public ControlPanel() {\n\t\tpanelName = null;\n\t}", "public MarkersViewPropertyTester() {\n }", "@Test\n\tpublic void testInformationPanel() {\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Time\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Max height\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t}", "public ProblemPanel()\r\n\t{\r\n\t\tsetVerticalAlignment(ALIGN_MIDDLE);\r\n\r\n\t\tquestionPanel = new QuestionPanel(null);\r\n\t\tanswerPanel = new AnswerPanel(null);\r\n\r\n\t\tadd(questionPanel);\r\n\t\tadd(answerPanel);\r\n\r\n\t\tsetCellHeight(questionPanel, \"50%\");\r\n\t\tsetCellHeight(answerPanel, \"50%\");\r\n\r\n\t\taddStyleName(\"problem-panel\");\r\n\t}", "public static JPanel makeSizeClassPanel() throws ModelException {\n return makeSizeClassPanel(null, null, NUM_SIZE_CLASS_DEFAULT, \n SIZE_CLASS_SIZE_DEFAULT, 0, INCLUDE_LIVE_DEFAULT, INCLUDE_SNAGS_DEFAULT);\n }", "private void manualTestPanel() {\n\t\tJPanel manualPanel = new JPanel();\n\t\tmanualPanel.setSize(PanelsDimension);\n\t\tmanualPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tmanualPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\t\n\t\t//Title\n\t\tc.weighty = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.gridwidth = 2;\n\t\tJLabel manualConfigLabel = new JLabel(\"Manual Configuration\");\n\t\tmanualConfigLabel.setHorizontalAlignment(0);\n\t\tmanualPanel.add(manualConfigLabel, c);\n\t\t\n\t\t//ComboBox\n\t\tc.weightx = 0.7;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 1;\n\t\tc.ipady = 20;\n\t\tc.gridwidth = 1;\n\t\trulesCB = new DefaultComboBoxModel<String>();\n\t\tmanualCBRules.setPrototypeDisplayValue(\"XXXXXXXXXXXXXXXXXXXXXXXXXX\");\n\t\tmanualCBRules.setModel(rulesCB);\n\t\tmanualCBRules.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualPanel.add(manualCBRules, c);\n\t\t\n\t\t//WeigthValue\n\t\tc.weightx = 0.3;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 1;\n\t\tc.ipady = 0;\n\t\tc.gridwidth = 1;\n\t\tmanualRuleValue = new JTextField();\n\t\tmanualPanel.add(manualRuleValue, c);\n\t\t\n\t\t//Save Configurations Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualSaveValuesButton = new JButton(\"Save Manual configurations\");\n\t\tmanualSaveValuesButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetValueToRule();\n\t\t\t\t\t\tAntiSpamFilterControl.saveRulesFile(true);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualSaveValuesButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualSaveValuesButton, c);\n\t\t\n\t\t//Test Values Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 3;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualTestButton = new JButton(\"Test Values\");\n\t\tmanualTestButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t\tAntiSpamFilterControl.Evaluater(true);\n\t\t\t\t\tsetResultString(\"manual\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualTestButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualTestButton, c);\n\t\t\n\t\t//Show Results\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 4;\n\t\tc.ipady = 0;\n\t\tmanualResults = new JTextArea();\n\t\tmanualResults.setEnabled(false);\n\t\tmanualPanel.add(manualResults, c);\n\t\t\n\t\tframe.add(manualPanel);\n\t}", "@Test\n public void testGetPanel()\n {\n assertNotNull(MusicPlayer.getInstance().getPanel());\n }", "private CompetitivePropertiesPanel(final NetworkPanel np,\r\n final CompetitivePropsPanelType panelType)\r\n throws IllegalArgumentException {\r\n if (panelType.equals(CompetitivePropsPanelType.EDIT_GROUP)) {\r\n throw new IllegalArgumentException(\"No competitive group to\"\r\n + \" edit.\");\r\n }\r\n this.networkPanel = np;\r\n this.panelType = panelType;\r\n this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\r\n if (panelType == CompetitivePropsPanelType.CREATE_GROUP) {\r\n topPanel.addItem(\"Number of neurons\", tfNumCompetitiveNeurons);\r\n } else if (panelType == CompetitivePropsPanelType.CREATE_NETWORK) {\r\n topPanel.addItem(\"Number of competitive neurons\",\r\n tfNumCompetitiveNeurons);\r\n topPanel.addItem(\"Number of input neurons\", tfNumInputNeurons);\r\n }\r\n add(topPanel);\r\n JSeparator separator = new JSeparator(SwingConstants.HORIZONTAL);\r\n add(separator);\r\n initPanel();\r\n }", "public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }", "public JPanel setUpPropertyCheckBoxes(Player player) {\n JPanel propertyCheckBoxesPanel = new JPanel();\n propertyCheckBoxesPanel.setLayout(new BoxLayout(propertyCheckBoxesPanel,\n BoxLayout.Y_AXIS));\n \n for (Space space : player.getProperties()) {\n JCheckBox checkBox = new JCheckBox(space.getName());\n checkBox.setBackground(Board.getColor(space.getColorNumber()));\n checkBox.setForeground(Board.getMatchingTextColor(space.getColorNumber()));\n if (playersCheckBoxes.containsKey(player)) {\n playersCheckBoxes.get(player).put(checkBox, space);\n } else {\n Map<JCheckBox, Space> checkBoxSpaceMap = new HashMap();\n checkBoxSpaceMap.put(checkBox, space);\n playersCheckBoxes.put(player, checkBoxSpaceMap);\n }\n propertyCheckBoxesPanel.add(checkBox);\n }\n \n return propertyCheckBoxesPanel;\n }", "public TShapePanel() {\r\ncommonInitialization();\r\n }", "@Override\n public void setupPanel()\n {\n\n }", "public PanelSgamacView1()\n {\n }", "public ControladorPanel() { }", "public PreferencesPanel() {\n initComponents();\n }", "public AssociationEndsPropertyPanel(PropertiesPanel propertiesPanel) {\n super(Collections.singletonList(PropertyKind.ASSOCIATION_ENDS_LINK), propertiesPanel);\n\n JPanel panel = retrievePanel();\n Util.setFixedSize(panel, 230, 50);\n\n panel.setLayout(new GridBagLayout());\n\n // initializes the two labels for the two association ends\n // the foreground colors are set to BLUE and the cursors are set to hand cursor\n labelAssociationEnd1 = new JLabel();\n labelAssociationEnd1.setForeground(new Color(4, 87, 162));\n labelAssociationEnd1.setCursor(new Cursor(Cursor.HAND_CURSOR));\n labelAssociationEnd2 = new JLabel();\n labelAssociationEnd2.setForeground(new Color(4, 87, 162));\n labelAssociationEnd2.setCursor(new Cursor(Cursor.HAND_CURSOR));\n\n panel.setBorder(BorderFactory.createTitledBorder(\"Association Ends\"));\n\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 1;\n constraints.fill = GridBagConstraints.BOTH;\n constraints.insets = new Insets(-5, 40, 0, 0);\n panel.add(labelAssociationEnd1, constraints);\n constraints.gridx = 1;\n constraints.insets = new Insets(-5, 0, 0, 0);\n panel.add(labelAssociationEnd2, constraints);\n\n // Creates an MouseListener instance and assign it to the two labels for association ends\n MouseListener listener = new MouseAdapter() {\n /**\n * <p>\n * Invoked when the mouse has been clicked on a component.\n * </p>\n *\n * <p>\n * When the <code>JLabel</code> is clicked, this method will be invoked\n * </p>\n *\n * @param e an event which indicates that a mouse action occurred in a component\n */\n public void mouseClicked(MouseEvent e) {\n JLabel label = (JLabel) e.getSource();\n\n // The logic will be executed only when all the configured model elements have\n // the same first and second association ends\n if (label.getText().length() > 0) {\n Association association = (Association) getConfiguredModelElements().get(0);\n List<AssociationEnd> ends = association.getConnections();\n\n if (label == labelAssociationEnd1) {\n // configure the panel with the first association end\n if (ends.size() > 0) {\n //getPropertiesPanel().fireSelectionChangeEvent(association);\n getPropertiesPanel().configurePanel(ends.get(0));\n getPropertiesPanel().fireSelectionChangeEvent(ends.get(0));\n\n // set it visible back, since listeners may hide it\n getPropertiesPanel().setVisible(true);\n }\n } else {\n // configure the panel with the second association end\n if (ends.size() > 1) {\n getPropertiesPanel().configurePanel(ends.get(1));\n getPropertiesPanel().fireSelectionChangeEvent(ends.get(1));\n\n // set it visible back, since listeners may hide it\n getPropertiesPanel().setVisible(true);\n }\n }\n }\n }\n };\n\n // install the mouse listener to the two labels\n labelAssociationEnd1.addMouseListener(listener);\n labelAssociationEnd2.addMouseListener(listener);\n }", "public PaperSettingsJPanel() {\n initComponents();\n }", "@Test\n\tpublic void testControlPanelButtons() {\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\n\t\tfinal int DEFAULT_ANGLE = 45;\n\t\tfinal int NEW_HEIGHT = 50;\n\t\tfinal int NEW_VELOCITY = 100;\n\t\twindow.panel(\"Control panel\").textBox(\"Angle text field\").setText(\"-12\");\n\t\twindow.panel(\"Control panel\").button(\"Set angle\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getAngleSlider().getValue() == DEFAULT_ANGLE);\n\n\t\twindow.panel(\"Control panel\").textBox(\"Height text field\").setText(\"50\");\n\t\twindow.panel(\"Control panel\").button(\"Set height\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getHeightSlider().getValue() == NEW_HEIGHT);\n\n\t\twindow.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.slideTo(NEW_VELOCITY);\n\t\tassertThat(gui.getControlPanel().getVelocityTextField().getText()\n\t\t\t\t.equals(\"\" + NEW_VELOCITY));\n\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Height slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Continue\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Stop\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Clear\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles().size() == 0);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors().size() == 0);\n\t\tfinal int EXPECTED_PROJECTILES = 3;\n\t\tfor (int i = 0; i < EXPECTED_PROJECTILES; ++i) {\n\t\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\t}\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t}", "private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}", "public PanelAmigo() {\n initComponents();\n \n }", "@Test\r\n\tpublic void test()\r\n\t{\r\n\t\ttry {\r\n\t\t\tpanel=new Panels();\r\n\t\t\tpanel.map=new DrawMap();\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\tpanel.waveLevel=2; \r\n\t\tpanel.map.map=new int [1][1];\r\n\t\tpanel.waveInitial();\r\n\t\tassertEquals(3,panel.waveLevel);\r\n\t}", "public MazeSettingsPanel(MazeSettings settings){\r\n \tsuper();\r\n \tthis.settings=settings;\r\n \tthis.layout = new GridLayout(0,2);\r\n \tthis.layout.setVgap(10);\r\n \tthis.setLayout(this.layout);\r\n \r\n \tpadding = BorderFactory.createEmptyBorder(20,20,15,10);\r\n \tthis.setBorder(padding);\r\n \r\n \tinitFields();\r\n \tupdateFieldValues();\r\n }", "public JavaPanel() {\n\t\tsuper();\n\t}", "public WindowPanel() {\r\n\t\tsetLayout(null);\r\n\t\t\r\n\t\tIPropertyService svc = ServiceManager.getService();\r\n\t\t\r\n\t\tlXmin = new JLabel(\"XMin:\");\r\n\t\tlXmin.setBounds(10, 10, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lXmin);\r\n\t\t\r\n\t\tlXmax = new JLabel(\"XMax:\");\r\n\t\tlXmax.setBounds(10, 40, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lXmax);\r\n\t\t\r\n\t\tlYmin = new JLabel(\"YMin:\");\r\n\t\tlYmin.setBounds(10, 70, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lYmin);\r\n\t\t\r\n\t\tlYmax = new JLabel(\"YMax:\");\r\n\t\tlYmax.setBounds(10, 100, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lYmax);\r\n\t\t\r\n\t\tsXmin = new JSpinner(new SpinnerNumberModel(-10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsXmin.setBounds(60, 10, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sXmin);\r\n\t\tsXmin.addChangeListener((ChangeEvent e) -> svc.setXMin((double) sXmin.getValue()));\r\n\t\t\r\n\t\tsXmax = new JSpinner(new SpinnerNumberModel(10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsXmax.setBounds(60, 40, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sXmax);\r\n\t\tsXmax.addChangeListener((ChangeEvent e) -> svc.setXMax((double) sXmax.getValue()));\r\n\t\t\r\n\t\tsYmin = new JSpinner(new SpinnerNumberModel(-10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsYmin.setBounds(60, 70, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sYmin);\r\n\t\tsYmin.addChangeListener((ChangeEvent e) -> svc.setYMin((double) sYmin.getValue()));\r\n\t\t\r\n\t\tsYmax = new JSpinner(new SpinnerNumberModel(10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsYmax.setBounds(60, 100, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sYmax);\r\n\t\tsYmax.addChangeListener((ChangeEvent e) -> svc.setYMax((double) sYmax.getValue()));\r\n\t\t\r\n\t\tlGridStepX2D = new JLabel(\"Grid step X:\");\r\n\t\tlGridStepX2D.setBounds(120, 10, 100, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lGridStepX2D);\r\n\t\t\r\n\t\tlGridStepY2D = new JLabel(\"Grid step Y:\");\r\n\t\tlGridStepY2D.setBounds(120, 40, 100, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lGridStepY2D);\r\n\t\t\r\n\t\tsGridStepX2D = new JSpinner(new SpinnerNumberModel(1.0d, 0.125d, 1000.0d, 0.25d));\r\n\t\tsGridStepX2D.setBounds(230, 10, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sGridStepX2D);\r\n\t\tsGridStepX2D.addChangeListener((ChangeEvent e) -> svc.setGridX((double) sGridStepX2D.getValue()));\r\n\t\t\r\n\t\tsGridStepY2D = new JSpinner(new SpinnerNumberModel(1.0d, 0.125d, 1000.0d, 0.25d));\r\n\t\tsGridStepY2D.setBounds(230, 40, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sGridStepY2D);\r\n\t\tsGridStepY2D.addChangeListener((ChangeEvent e) -> svc.setGridY((double) sGridStepY2D.getValue()));\r\n\t\t\r\n\t}", "public MundoJuego( JPanel panel ) {\r\n\t\tthis.panel = panel;\r\n\t}", "@Test\n public void testCreateField() {\n System.out.println(\"createField\"); \n JPanel result = instance.createField();\n assertNotNull(result); \n }", "private void setupPanel()\n\t{\n\t\tsetLayout(numberLayout);\n\t\tsetBorder(new EtchedBorder(EtchedBorder.RAISED, Color.GRAY, Color.DARK_GRAY));\n\t\tsetBackground(Color.LIGHT_GRAY);\n\t\tadd(ans);\n\t\tadd(clear);\n\t\tadd(backspace);\n\t\tadd(divide);\n\t\tadd(seven);\n\t\tadd(eight);\n\t\tadd(nine);\n\t\tadd(multiply);\n\t\tadd(four);\n\t\tadd(five);\n\t\tadd(six);\n\t\tadd(subtract);\n\t\tadd(one);\n\t\tadd(two);\n\t\tadd(three);\n\t\tadd(add);\n\t\tadd(negative);\n\t\tadd(zero);\n\t\tadd(point);\n\t\tadd(equals);\n\t}", "public PanelPhysicalExam() {\n initComponents();\n setLanguage(null);\n }", "public MenuPanel() {\n initComponents();\n }", "private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }", "public PropertyInspector()\n {\n super( new BorderLayout() );\n\n add(splitPane, BorderLayout.CENTER); \n splitPane.setDividerSize(5);\n\n setupPopupMenu( popup = new JPopupMenu() );\n\n //inspectorActionManager = new InspectorActionManager( mobile );\n\n addComponentListener(new ComponentAdapter()\n {\n @Override\n public void componentResized(ComponentEvent evt)\n {\n updateSplitPaneDivider();\n }\n });\n\n }", "public ViewProperty() {\n initComponents();\n }", "private void buildMainPanel() {\n\t\t\n\t\tif(theMode == MODE_FPC) {\n\t\t\ttheFields = new PropertyComponent[9];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"\", 1, false, false);\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", FPC_GRP_SORT, 0, true, false);\t\t\t\n\t\t\t//theFields[5] = new PropertyComponent(\"grp_order\", \"\", 1, true, false);\t\t\t\n\t\t\ttheFields[4] = new PropertyComponent(\"cbsize\", \"1200\", 1, false, false);\t\t\t\n\t\t\ttheFields[5] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[6] = new PropertyComponent(\"fpc_file\", \"\", true, true, true);\n\t\t\ttheFields[7] = new PropertyComponent(\"bes_files\", \"\", true, true, false);\n\t\t\ttheFields[8] = new PropertyComponent(\"marker_files\", \"\", true, true, false);\n\t\t} else { //MODE_PSEUDO\n\t\t\ttheFields = new PropertyComponent[13];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"Chr\", 1, false, false);\t\t\t\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", PSEUDO_GRP_SORT, 0, true, false);\n\t\t\ttheFields[4] = new PropertyComponent(\"order_against\", getProjectSelections(), 0, false, true);\n\t\t\ttheFields[5] = new PropertyComponent(\"mask_all_but_genes\", PSEUDO_MASK_GENES, 1, false, true);\n\t\t\ttheFields[6] = new PropertyComponent(\"min_size\", \"100000\", 1, true, false);\t\t\t\n\t\t\ttheFields[7] = new PropertyComponent(\"min_display_size_bp\", \"0\", 1, false, false);\t\t\t\n\t\t\ttheFields[8] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[9] = new PropertyComponent(\"annot_keywords\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[10] = new PropertyComponent(\"annot_kw_mincount\", \"50\", 2, false, false);\t\n\t\t\ttheFields[11] = new PropertyComponent(\"anno_files\", \"\", true, true, false);\n\t\t\ttheFields[12] = new PropertyComponent(\"sequence_files\", \"\", true, true, false);\n\t\t}\n\t\t\t\n\t\tJPanel tempPanel = new JPanel();\n\t\ttempPanel.setLayout(new BoxLayout(tempPanel, BoxLayout.PAGE_AXIS));\n\t\ttempPanel.setBackground(Color.WHITE);\n\t\t\n\t\tfor(int x=0; x<theFields.length; x++) {\n\t\t\ttempPanel.add(Box.createVerticalStrut(5));\n\t\t\ttheFields[x].setTextListener(theListener);\n\t\t\ttempPanel.add(theFields[x]);\n\t\t}\n\t\ttempPanel.add(Box.createVerticalStrut(20));\n\t\ttempPanel.add(createButtonPanel());\n\t\ttempPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n\t\ttempPanel.setMaximumSize(tempPanel.getPreferredSize());\n\t\ttempPanel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\t\t\n\t\tgetContentPane().add(tempPanel);\n\t}", "public LayerViewPanel()\r\n {\r\n \r\n }", "private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}", "public MaintenanceWindowsProperties() {\n }", "public AdminProfile_panel() {\n initComponents();\n \n }", "public ChooseParameterPanel() {\n initComponents();\n }", "public VivariumPanel()\n {\n // Call super constructor\n super();\n\n // Initialize properties\n this.turtles = new HashSet<>();\n this.isDebug = false;\n }", "private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }", "public Element createJDOMRepresentation(PropertySet properties){\n\t\t\n\t\t//Create an empty \"root\" element\n\t\tElement rootProp = new Element(\"properties\");\n\t\trootProp.setName(\"properties\");\n\t\t\n\t\t//Iterate through the properties of this PropertySet\n\t\tIterator<Property> iterator = properties.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\t\n\t\t\t//Get the current Property\n\t\t\tProperty property = iterator.next();\n\t\t\t\n\t\t\t//Create a new Element representing this property\n\t\t\tElement prop = new Element(\"property\");\n\t\t\t\n\t\t\t//Add the appropriate attributes\n\t\t\tprop.setAttribute(\"name\", property.getName());\n\t\t\tprop.setAttribute(\"type\",String.valueOf(property.getMeasure().getType()));\n\t\t\tprop.setAttribute(\"description\", property.getDescription());\n\t\t\tprop.setAttribute(\"positive_impact\", String.valueOf(property.isPositive()));\n\t\t\t\n\t\t\t//TODO: Check how to get rid of this if statements - IDEA: Initialize these fields at value \"\"\n\t\t\tif(property.getMeasure().getMetricName() != null){\n\t\t\t\tprop.setAttribute(\"metricName\", property.getMeasure().getMetricName());\n\t\t\t}else{\n\t\t\t\tprop.setAttribute(\"metricName\", \"\");\n\t\t\t}\n\t\t\t\n\t\t\tif(property.getMeasure().getRulesetPath() != null){\n\t\t\t\tprop.setAttribute(\"ruleset\", property.getMeasure().getRulesetPath());\n\t\t\t}else{\n\t\t\t\tprop.setAttribute(\"ruleset\", \"\");\n\t\t\t}\n\t\t\tprop.setAttribute(\"tool\", property.getMeasure().getTool());\n\t\t\t//Save the thresholds as well (ascending order) \n\t\t\t//Create a node (element) containing the thresholds of the property\n\t\t\tElement thresholds = new Element(\"thresholds\");\n\t\t\tfor(int i = 0; i < property.getThresholds().length; i++){\n\t\t\t\t\n\t\t\t\t//Create a threshold Element\n\t\t\t\tElement t = new Element(\"threshold\");\n\t\t\t\t\n\t\t\t\t//Set the appropriate value of the threshold\n\t\t\t\tt.setText(String.valueOf(property.getThresholds()[i]));\n\t\t\t\t\n\t\t\t\t//Attach the current threshold element to the element named \"thresholds\"\n\t\t\t\tthresholds.addContent(t);\n\t\t\t}\n\t\t\t\n\t\t\t//Attach the \"thresholds\" sub element to the \"property\" element\n\t\t\tprop.addContent(thresholds);\n\t\t\t\n\t\t\t//Attach the \"property\" element to the \"properties\" parent element\n\t\t\trootProp.addContent(prop);\n\t\t}\n\t\t\n\t\t//Return the \"root\" element of the properties\n\t\treturn rootProp;\t\n\t}", "private void crearPanel() {\r\n\t\tJLabel lbl_Empresa = new JLabel(\"Empresa:\");\r\n\t\tlbl_Empresa.setBounds(10, 52, 72, 14);\r\n\t\tadd(lbl_Empresa);\r\n\r\n\t\ttxField_Empresa = new JTextField();\r\n\t\ttxField_Empresa.setBounds(116, 49, 204, 20);\r\n\t\tadd(txField_Empresa);\r\n\t\ttxField_Empresa.setColumns(10);\r\n\r\n\t\tlbl_Oferta = new JLabel(\" \");\r\n\t\tlbl_Oferta.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlbl_Oferta.setBounds(10, 11, 742, 20);\r\n\t\tadd(lbl_Oferta);\r\n\r\n\t\tJLabel lbl_sueldoMin = new JLabel(\"Sueldo Minimo:\");\r\n\t\tlbl_sueldoMin.setBounds(10, 83, 96, 14);\r\n\t\tadd(lbl_sueldoMin);\r\n\r\n\t\ttxField_sueldoMin = new JTextField();\r\n\t\ttxField_sueldoMin.setColumns(10);\r\n\t\ttxField_sueldoMin.setBounds(116, 80, 93, 20);\r\n\t\tadd(txField_sueldoMin);\r\n\r\n\t\tJLabel lbl_sueldoMax = new JLabel(\"Sueldo Maximo:\");\r\n\t\tlbl_sueldoMax.setBounds(10, 115, 96, 14);\r\n\t\tadd(lbl_sueldoMax);\r\n\r\n\t\ttxField_sueldoMax = new JTextField();\r\n\t\ttxField_sueldoMax.setColumns(10);\r\n\t\ttxField_sueldoMax.setBounds(116, 112, 93, 20);\r\n\t\tadd(txField_sueldoMax);\r\n\r\n\t\tJLabel lbl_experiencia = new JLabel(\"A\\u00F1os de experiencia minimos:\");\r\n\t\tlbl_experiencia.setBounds(10, 143, 185, 14);\r\n\t\tadd(lbl_experiencia);\r\n\r\n\t\ttxField_experiencia = new JTextField();\r\n\t\ttxField_experiencia.setColumns(10);\r\n\t\ttxField_experiencia.setBounds(205, 140, 93, 20);\r\n\t\tadd(txField_experiencia);\r\n\r\n\t\tJLabel lbl_aspectosValorar = new JLabel(\"Aspectos a valorar:\");\r\n\t\tlbl_aspectosValorar.setBounds(10, 178, 137, 14);\r\n\t\tadd(lbl_aspectosValorar);\r\n\r\n\t\ttxArea_aspectosValorar = new JTextArea();\r\n\t\ttxArea_aspectosValorar.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosValorar.setBounds(157, 172, 253, 41);\r\n\t\tadd(txArea_aspectosValorar);\r\n\r\n\t\tJLabel lbl_aspectosImpres = new JLabel(\"Aspectos imprescindibles:\");\r\n\t\tlbl_aspectosImpres.setBounds(10, 238, 133, 14);\r\n\t\tadd(lbl_aspectosImpres);\r\n\r\n\t\ttxArea_aspectosImpres = new JTextArea();\r\n\t\ttxArea_aspectosImpres.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosImpres.setBounds(157, 232, 253, 41);\r\n\t\tadd(txArea_aspectosImpres);\r\n\r\n\t\tJLabel lbl_descripcion = new JLabel(\"Descripcion:\");\r\n\t\tlbl_descripcion.setBounds(10, 302, 107, 14);\r\n\t\tadd(lbl_descripcion);\r\n\r\n\t\ttxArea_descripcion = new JTextArea();\r\n\t\ttxArea_descripcion.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_descripcion.setBounds(10, 328, 465, 149);\r\n\t\tadd(txArea_descripcion);\r\n\r\n\t\tJLabel lbl_conocimientos = new JLabel(\"Conocimientos requeridos:\");\r\n\t\tlbl_conocimientos.setBounds(537, 125, 169, 14);\r\n\t\tadd(lbl_conocimientos);\r\n\r\n\t\tpa_conocimientos = new PanelListaDoble(Usuario.getConocimientosTotales(), miOferta.getConocimientos());\r\n\t\tpa_conocimientos.setBounds(537, 174, 215, 180);\r\n\t\tadd(pa_conocimientos);\r\n\r\n\t\ttxField_buscarCono = new JTextField();\r\n\t\ttxField_buscarCono.setBounds(537, 140, 135, 20);\r\n\t\tadd(txField_buscarCono);\r\n\t\ttxField_buscarCono.setColumns(10);\r\n\r\n\t\tJButton btn_buscar = new JButton(\"\");\r\n\t\tbtn_buscar.setBounds(682, 138, 24, 23);\r\n\t\tadd(btn_buscar);\r\n\r\n\t\tbtn_crear = new JButton(\"\");\r\n\t\tbtn_crear.setBounds(716, 138, 24, 23);\r\n\t\tadd(btn_crear);\r\n\r\n\t\ttxField_lugar = new JTextField();\r\n\t\ttxField_lugar.setEditable(false);\r\n\t\ttxField_lugar.setColumns(10);\r\n\t\ttxField_lugar.setBounds(506, 49, 234, 20);\r\n\t\tadd(txField_lugar);\r\n\r\n\t\tJLabel lbl_lugar = new JLabel(\"Lugar de trabajo:\");\r\n\t\tlbl_lugar.setBounds(392, 52, 104, 14);\r\n\t\tadd(lbl_lugar);\r\n\r\n\t\tJLabel lbl_contrato = new JLabel(\"Tipo de contrato:\");\r\n\t\tlbl_contrato.setBounds(392, 83, 104, 14);\r\n\t\tadd(lbl_contrato);\r\n\r\n\t\tcombo_contrato = new JComboBox<Contrato>();\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORAL_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORTAL_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.setBounds(506, 83, 159, 20);\r\n\t\tadd(combo_contrato);\r\n\t\t// d\r\n\t\tinicializar(miOferta);\r\n\t\tdesHabCampos(false);\r\n\t\tif (miOferta.getEmpresa().getNumID().compareToIgnoreCase(Aplicacion.getUsuario().getNumID()) == 0) {\r\n\t\t\tbtnEliminar = new JButton(\"Eliminar\");\r\n\t\t\tbtnEliminar.setToolTipText(\"Eliminar\");\r\n\t\t\tbtnEliminar.setBounds(492, 384, 125, 41);\r\n\t\t\tadd(btnEliminar);\r\n\r\n\t\t\tbtnRetirar = new JButton(\"\\uD83D\\uDC40\");\r\n\t\t\tbtnRetirar.setToolTipText(\"Retirar Oferta\");\r\n\t\t\tbtnRetirar.setBounds(627, 384, 125, 41);\r\n\t\t\tadd(btnRetirar);\r\n\r\n\t\t\tbutton_Editar = new JButton(\"Editar\");\r\n\t\t\tbutton_Editar.setToolTipText(\"Editar\");\r\n\t\t\tbutton_Editar.setBounds(627, 436, 125, 41);\r\n\t\t\tadd(button_Editar);\r\n\r\n\t\t\tbutton_Editar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tdesHabCampos(true);\r\n\t\t\t\t\tbutton_Editar.setVisible(false);\r\n\t\t\t\t\tbtnEliminar.setVisible(false);\r\n\t\t\t\t\tbtnRetirar.setVisible(false);\r\n\t\t\t\t\tbtn_crear.setVisible(false);\r\n\r\n\t\t\t\t\tbtn_guardar = new JButton(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setToolTipText(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setBounds(627, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_guardar);\r\n\r\n\t\t\t\t\tbtn_cancelar = new JButton(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setToolTipText(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setBounds(492, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_cancelar);\r\n\r\n\t\t\t\t\tbtn_cancelar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tbtn_guardar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\t\t\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\t\t\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\t\t\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\t\t\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\t\t\t\t\tbtn_crear.setVisible(true);\r\n\t\t\t\t\t\t\tinicializar(miOferta);\r\n\t\t\t\t\t\t\tdesHabCampos(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tbtn_guardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tEmergenteCambios.createWindow(\"┐Desea guardar los cambios?\", (TieneEmergente) padre);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "public SettingsPanel() {\n initComponents();\n }", "public LoadTestProperties() {\n }", "@Override\r\n public void setup(Panel panel) {\n }", "public WeaponPanel() {\n initComponents();\n }", "public void testOnePanel() {\n\t\t// Instantiate nested panels\n\t\tRasterFileTestPlotPanel parent =\n\t\t\tnew RasterFileTestPlotPanel(TEST_DIR);\n\t\t\n\t\t// Add background widgets to panel such that\n\t\t// they are top aligned and non-overlapping\n\t\tparent.add(new Background(WIDTH, HEIGHT, COLOR_1), true);\n\t\tparent.add(new Background(WIDTH, HEIGHT, COLOR_2),\n\t\t\t\tHorizontalAlignment.RIGHT_OF,\n\t\t\t\tVerticalAlignment.TOP_JUSTIFIED);\n\t\t\n\t\t// Output graphics to file\n\t\tparent.toPngFile(\"one-panel.png\");\n\t}", "public static CompetitivePropertiesPanel createCompetitivePropertiesPanel(\r\n final NetworkPanel np, final CompetitivePropsPanelType panelType)\r\n throws IllegalArgumentException {\r\n\r\n CompetitivePropertiesPanel cpp = new CompetitivePropertiesPanel(np,\r\n panelType);\r\n cpp.addListeners();\r\n return cpp;\r\n }", "public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}", "public JJPanel() {\n\n\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "@Test\n public void testCreateFromProperties_String() throws Exception {\n System.out.println(\"createFromProperties\");\n \n EngineConfiguration result = EngineConfiguration.createFromProperties(propertiesName);\n assertProperties(result);\n }", "public OptionPanel() {\n initComponents();\n }", "public abstract void init(JPanel panel);", "private void constructMainPanel() {\n // initialize the main panel\n mainPanel = new JPanel();\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\n mainPanel.setPreferredSize(new Dimension(model.getWidth() + 50,\n model.getHeight() + 240));\n JScrollPane mainPane = new JScrollPane(mainPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n this.add(mainPane);\n\n }", "public PropertyInstanceTest(String name) {\n\t\tsuper(name);\n\t}", "public EOProductPanel2() {\n initComponents();\n }", "private void $$$setupUI$$$() {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n targetClassesTextField = new JTextField();\n panel.add(targetClassesTextField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel.add(spacer1, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n targetClassesLabel = new JLabel();\n targetClassesLabel.setText(\"Target classes\");\n panel.add(targetClassesLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n sourceDirTextField = new JTextField();\n panel.add(sourceDirTextField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n sourceDirLabel = new JLabel();\n sourceDirLabel.setText(\"Source dir\");\n panel.add(sourceDirLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n reportDirTextField = new JTextField();\n panel.add(reportDirTextField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n reportDirLabel = new JLabel();\n reportDirLabel.setText(\"Report dir\");\n panel.add(reportDirLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n otherParamsTextField = new JTextField();\n panel.add(otherParamsTextField, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n otherParamsLabel = new JLabel();\n otherParamsLabel.setText(\"Other params\");\n panel.add(otherParamsLabel, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public ManageProductPanel(JPanel belowPanel, ProductDirectory proList) {\n initComponents();\n this.belowPanel = belowPanel;\n this.proDir = proList;\n\n loadTable();\n }", "static JPanel createConfigPanel(Viewer viewer,\r\n SelectionModel<Point2D> selectionModel,\r\n SelectionHandler<Point2D> lassoSelectionHandler,\r\n SelectionHandler<Point2D> rectangleSelectionHandler)\r\n {\r\n JPanel configPanel = new JPanel(new BorderLayout());\r\n \r\n JPanel controlPanel = new JPanel(new GridLayout(0,1));\r\n \r\n JCheckBox lassoCheckBox = \r\n new JCheckBox(\"Lasso\", true);\r\n lassoCheckBox.addActionListener(e -> \r\n {\r\n lassoSelectionHandler.disconnect();\r\n rectangleSelectionHandler.disconnect();\r\n if (lassoCheckBox.isSelected())\r\n {\r\n lassoSelectionHandler.connect(viewer, selectionModel);\r\n }\r\n else\r\n {\r\n rectangleSelectionHandler.connect(viewer, selectionModel);\r\n }\r\n });\r\n controlPanel.add(lassoCheckBox);\r\n \r\n JButton setDisplayedWorldAreaButton = \r\n new JButton(\"Reset displayed world area\");\r\n setDisplayedWorldAreaButton.addActionListener(\r\n e -> viewer.setDisplayedWorldArea(\r\n new Rectangle2D.Double(-0.1, -0.1, 1.2, 1.2)));\r\n controlPanel.add(setDisplayedWorldAreaButton);\r\n \r\n JButton resetTransformButton = \r\n new JButton(\"Reset transform\");\r\n resetTransformButton.addActionListener(\r\n e -> viewer.resetTransform());\r\n controlPanel.add(resetTransformButton);\r\n \r\n configPanel.add(controlPanel, BorderLayout.NORTH);\r\n \r\n return configPanel;\r\n }", "public MainMenuPanel() {\n\t\tinitComponents();\n\t}", "public void testGetUMLModelManager() {\n assertSame(\"Failed to get the UMLModelManager.\", manager, instance.getUMLModelManager());\n }", "private PropertiesUtils() {}", "public AboutUsPanel() {\n initComponents();\n }", "public RTwoPanelListBox() {\n }", "private void createOCPanel() {\n\n // this.createPanel(); <--- will be called via our constructor -> super ->\n // createPanel()\n\n GridBagLayout gridbag = (GridBagLayout) this.getLayout();\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.anchor = GridBagConstraints.WEST;\n // this.setLayout(gridbag); <-- already set by super class\n\n ConstraintsBuilder.buildConstraints(constraints, 0, 7, 1, 1, 5, 10);\n OMLabel LunusualShape = new OMLabel(this.bundle.getString(\"panel.findingOC.label.unusualShape\"), false);\n LunusualShape.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.unusualShape\"));\n gridbag.setConstraints(LunusualShape, constraints);\n this.add(LunusualShape);\n ConstraintsBuilder.buildConstraints(constraints, 1, 7, 2, 1, 45, 10);\n this.unusualShape = new TristateCheckbox();\n this.unusualShape.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.unusualShape\"));\n constraints.fill = GridBagConstraints.BOTH;\n gridbag.setConstraints(this.unusualShape, constraints);\n this.add(this.unusualShape);\n\n ConstraintsBuilder.buildConstraints(constraints, 0, 8, 1, 1, 5, 10);\n OMLabel LpartlyUnresolved = new OMLabel(this.bundle.getString(\"panel.findingOC.label.partlyUnresolved\"), false);\n LpartlyUnresolved.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.partlyUnresolved\"));\n gridbag.setConstraints(LpartlyUnresolved, constraints);\n this.add(LpartlyUnresolved);\n ConstraintsBuilder.buildConstraints(constraints, 1, 8, 2, 1, 45, 10);\n this.partlyUnresolved = new TristateCheckbox();\n this.partlyUnresolved.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.partlyUnresolved\"));\n constraints.fill = GridBagConstraints.BOTH;\n gridbag.setConstraints(this.partlyUnresolved, constraints);\n this.add(this.partlyUnresolved);\n\n ConstraintsBuilder.buildConstraints(constraints, 0, 9, 1, 1, 5, 10);\n OMLabel LcolorContrasts = new OMLabel(this.bundle.getString(\"panel.findingOC.label.colorContrasts\"), false);\n LcolorContrasts.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.colorContrasts\"));\n gridbag.setConstraints(LcolorContrasts, constraints);\n this.add(LcolorContrasts);\n ConstraintsBuilder.buildConstraints(constraints, 1, 9, 2, 1, 45, 10);\n this.colorContrasts = new TristateCheckbox();\n this.colorContrasts.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.colorContrasts\"));\n constraints.fill = GridBagConstraints.BOTH;\n gridbag.setConstraints(this.colorContrasts, constraints);\n this.add(this.colorContrasts);\n\n ConstraintsBuilder.buildConstraints(constraints, 3, 7, 1, 1, 5, 10);\n OMLabel Lcharacter = new OMLabel(this.bundle.getString(\"panel.findingOC.label.character\"), false);\n Lcharacter.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.character\"));\n constraints.anchor = GridBagConstraints.SOUTHWEST;\n constraints.fill = GridBagConstraints.HORIZONTAL;\n gridbag.setConstraints(Lcharacter, constraints);\n this.add(Lcharacter);\n ConstraintsBuilder.buildConstraints(constraints, 3, 8, 1, 2, 45, 10);\n this.characterButton = new JButton();\n this.characterButton.addActionListener(this);\n if ((this.finding != null) && (((DeepSkyFindingOC) this.finding).getCharacter() != null)) {\n Character c = ((DeepSkyFindingOC) this.finding).getCharacter();\n Image image = Toolkit.getDefaultToolkit().getImage(this.imagePath + Character.toLowerCase(c) + \".png\");\n image = image.getScaledInstance(90, 90, Image.SCALE_FAST);\n ImageIcon icon = new ImageIcon(image);\n this.characterButton.setIcon(icon);\n this.characterButton.setDisabledIcon(icon);\n this.characterButton.setText(\" \" + ((DeepSkyFindingOC) this.finding).getCharacter() + \" \");\n this.characterButton.setToolTipText(this.bundle.getString(\"dialog.oc.trait.explanation.\"\n + ((DeepSkyFindingOC) this.finding).getCharacter().toString().toLowerCase()));\n } else {\n this.characterButton.setText(this.bundle.getString(\"panel.findingOC.button.character\"));\n this.characterButton.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.character\"));\n }\n constraints.fill = GridBagConstraints.BOTH;\n gridbag.setConstraints(this.characterButton, constraints);\n this.add(this.characterButton);\n\n ConstraintsBuilder.buildConstraints(constraints, 0, 10, 4, 1, 50, 60);\n constraints.fill = GridBagConstraints.BOTH;\n JLabel Lfill = new JLabel(\"\");\n gridbag.setConstraints(Lfill, constraints);\n this.add(Lfill);\n\n }", "public GuidedWizardPanel()\r\n\t{\t\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\t\r\n\t\twizardPanel = new WizardPanel(panelList, groupLabels);\r\n\t\twizardPanel.addSaveListener(this);\r\n\t\tpanel.add(wizardPanel);\r\n\r\n\t\t// set up listener relationships\r\n\t\tsolvingForPanel.addSolvingForListener(powerPanel);\r\n\t\tsolvingForPanel.addSolvingForListener(perGroupSampleSizePanel);\r\n\t\tsolvingForPanel.addSolvingForListener(resultsPanel);\r\n\t\t// listeners for outcome measures\r\n\t\toutcomesPanel.addOutcomesListener(hypothesisIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(hypothesisRepeatedPanel);\r\n\t\toutcomesPanel.addOutcomesListener(meanDifferencesIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(meanDifferencesPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityRepeatedPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityCovariateOutcomePanel);\r\n\t\t// listeners for predictor information\r\n\t\tcatPredictorsPanel.addPredictorsListener(relativeGroupSizePanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(hypothesisIndependentPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(hypothesisRepeatedPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(meanDifferencesIndependentPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(meanDifferencesPanel);\r\n\t\t// listeners for relative group sizes\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisIndependentPanel);\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisRepeatedPanel);\r\n\t\t// listeners for baseline covariates\r\n\t\tcovariatePanel.addCovariateListener(meanDifferencesIndependentPanel);\r\n\t\tcovariatePanel.addCovariateListener(meanDifferencesPanel);\r\n\t\t// TODO: covariatePanel.addCovariateListener(meanDifferencesRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(hypothesisIndependentPanel);\r\n\t\tcovariatePanel.addCovariateListener(hypothesisRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityIndependentPanel);\r\n\t\t// TODO: covariatePanel.addCovariateListener(variabilityRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityCovariatePanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityCovariateOutcomePanel);\r\n\t\tcovariatePanel.addCovariateListener(optionsTestsPanel);\r\n\t\tcovariatePanel.addCovariateListener(optionsPowerMethodsPanel);\r\n\t\t// listeners for repeated measures \r\n\t\trepeatedMeasuresPanel.addRepeatedMeasuresListener(hypothesisIndependentPanel);\r\n\t\trepeatedMeasuresPanel.addRepeatedMeasuresListener(hypothesisRepeatedPanel);\r\n\t\t// listeners for hypotheses\r\n\t\thypothesisIndependentPanel.addHypothesisListener(meanDifferencesIndependentPanel);\r\n\t\thypothesisRepeatedPanel.addHypothesisListener(meanDifferencesRepeatedPanel);\r\n\t\t// group size listeners\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisIndependentPanel);\r\n\t\t// variability listeners\r\n\t\tvariabilityIndependentPanel.addVariabilityListener(variabilityCovariateOutcomePanel);\r\n\t\tvariabilityCovariatePanel.addVariabilityListener(variabilityCovariateOutcomePanel);\r\n\t\toptionsDisplayPanel.addChartOptionsListener(resultsPanel);\r\n\t\t// callbacks to fill in the power curve options screen\r\n\t\talphaPanel.addAlphaListener(optionsDisplayPanel);\r\n\t\toptionsTestsPanel.addTestListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addPowerMethodListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addQuantileListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addQuantileCheckboxListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addPowerCheckboxListener(optionsDisplayPanel);\r\n\t\tmeanDifferencesScalePanel.addBetaScaleListener(optionsDisplayPanel);\r\n\t\tperGroupSampleSizePanel.addPerGroupSampleSizeListener(optionsDisplayPanel);\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(optionsDisplayPanel);\r\n\t\tvariabilityScalePanel.addSigmaScaleListener(optionsDisplayPanel);\r\n\t\t// initialize\r\n\t\tinitWidget(panel);\r\n\t}", "@Inject\n public PhasesUILeftPanel(EngineEventManager eventManager, FullEditorDodleOverlayRegistry fedoRegistry, ModifyPhaseSettingsView modifyPhaseSettingsView, NewPhaseSettingsView newPhaseSettingsView, PhaseConfigView phaseConfigView, PropertiesSettingsView propertiesSettingsView) {\n this.eventManager = eventManager;\n this.modifyPhaseSettingsView = modifyPhaseSettingsView;\n this.newPhaseSettingsView = newPhaseSettingsView;\n this.phaseConfigView = phaseConfigView;\n this.propertiesSettingsView = propertiesSettingsView;\n\n fedoRegistry.registerOverlay(this);\n }", "@Override\n public void newPanelModel() {\n\n }", "@Override\n public void newPanelModel() {\n\n }", "public Property(int xLength, int yWidth, int xLeft, int yTop, int regNum) {\n setXLength(xLength);\n setYWidth(yWidth);\n setXLeft(xLeft);\n setYTop(yTop);\n setRegNum(regNum);\n }", "public AboutPanel() {\n super();\n initialize();\n }" ]
[ "0.7018053", "0.63658494", "0.62860477", "0.6035404", "0.5965278", "0.5941238", "0.5919685", "0.5865375", "0.584893", "0.5790847", "0.5705478", "0.5543051", "0.55378014", "0.5521894", "0.55134493", "0.5468395", "0.5441587", "0.54319775", "0.54246736", "0.54174566", "0.5413005", "0.54032755", "0.5389391", "0.53862196", "0.53679526", "0.53609955", "0.5359701", "0.5343937", "0.53408945", "0.53386253", "0.5334494", "0.53344935", "0.5319112", "0.5317699", "0.5307309", "0.52930367", "0.52881175", "0.5285778", "0.52816504", "0.5279373", "0.52623975", "0.5259369", "0.5242699", "0.5232431", "0.52178377", "0.52167594", "0.5216459", "0.5202501", "0.51970714", "0.5196996", "0.51937026", "0.51892865", "0.51868445", "0.5181151", "0.5160883", "0.5142187", "0.51402014", "0.51390326", "0.5123557", "0.5116806", "0.5116712", "0.5110247", "0.510996", "0.51041645", "0.5097641", "0.5084138", "0.5083051", "0.5081243", "0.5072553", "0.5071303", "0.5061682", "0.5060841", "0.50450516", "0.50449544", "0.5043065", "0.50374246", "0.503546", "0.502995", "0.5028554", "0.5025644", "0.5021047", "0.5019275", "0.5017795", "0.5016954", "0.50097734", "0.5003742", "0.50036395", "0.49945515", "0.4986448", "0.49861196", "0.49821395", "0.49740866", "0.4974042", "0.49707976", "0.49697337", "0.4966624", "0.49618027", "0.49618027", "0.4951409", "0.49485677" ]
0.7665871
0
Tests ctor PropertiesPanelPropertiesPanel(UMLModelManager) for accuracy.
public void testCtor2() { assertNotNull("Failed to create PropertiesPanel instance.", instance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCtor1() throws Exception {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", new PropertiesPanel(NAMESPACE, manager));\n }", "public void testCtor() {\n assertNotNull(\"Failed to create a new ConcurrencyPropertyPanel instance.\", panel);\n }", "protected void setUp() throws Exception {\n TestHelper.loadSingleXMLConfig(TestHelper.NAMESPACE, TestHelper.CONFIG_FILE);\n propertiesPanel = new PropertiesPanel(new UMLModelManager());\n\n panel = new ConcurrencyPropertyPanel(propertiesPanel);\n }", "protected void setUp() throws Exception {\n // get the config manager\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"failure/config.xml\");\n\n propertiesPanel = new PropertiesPanel(umlModelManager);\n }", "public void testConfigurePanel1() {\n Package packageObject = new PackageImpl();\n List<ModelElement> modelElements = new ArrayList<ModelElement>();\n modelElements.add(packageObject);\n instance.configurePanel(modelElements);\n\n assertEquals(\"Failed to configure the panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the panel.\", 1, ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "public void testCtor_NullPropertiesPanel() throws Exception {\n try {\n new StereotypeListPropertyPanel(null, new ImageIcon(), new ImageIcon());\n fail(\"Expect IllegalArgumentException.\");\n } catch (IllegalArgumentException iae) {\n // expect\n }\n }", "public void testGetUMLModelManager() {\n assertSame(\"Failed to get the UMLModelManager.\", manager, instance.getUMLModelManager());\n }", "public Panel() {\n }", "public DemoPanel() {\n }", "public InstallerPanel(SuiteInstallerProjectProperties props) {\n this.installerProps = props;\n initComponents();\n\n jCheckBox1.setModel(installerProps.windowsModel);\n jCheckBox2.setModel(installerProps.linuxModel);\n jCheckBox3.setModel(installerProps.macModel);\n jCheckBox4.setModel(installerProps.solarisModel);\n jCheckBox5.setModel(installerProps.pack200Model);\n \n licenseComboBox.setModel(installerProps.licenseModel);\n }", "private mxPropertiesManager()\n\t{\n\t}", "@Test\n\tpublic void testGUIPanels() {\n\t\tfinal int RGB_GRAY = 238;\n\t\tColor defaultColor = new Color(RGB_GRAY, RGB_GRAY, RGB_GRAY);\n\n\t\tassertThat(window.requireEnabled());\n\t\tassertThat(window.requireVisible());\n\t\tassertThat(window.requireTitle(\"Parabolic shot!\"));\n\n\t\tassertThat(window.panel(\"Control panel\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Control panel\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireVisible());\n\n\t\tassertThat(window.panel(\"Information panel\").requireVisible());\n\t\tassertThat(window.panel(\"Information panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Information panel\").requireEnabled());\n\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireVisible());\n\t\tassertThat(window.panel(\"Parabolic shot panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireEnabled());\n\t}", "public static JPanel makeSizeClassPanel() throws ModelException {\n return makeSizeClassPanel(null, null, NUM_SIZE_CLASS_DEFAULT, \n SIZE_CLASS_SIZE_DEFAULT, 0, INCLUDE_LIVE_DEFAULT, INCLUDE_SNAGS_DEFAULT);\n }", "public void testCtor_NullPropertiesPanel() {\n try {\n new ConcurrencyPropertyPanel(null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public DimensionProperties() {\n }", "public PropertiesChooserView() {\n initComponents();\n choicesModel = new DefaultListModel();\n chosenModel = new DefaultListModel();\n chooseList.setModel(choicesModel);\n chosenList.setModel(chosenModel);\n }", "public void testConfigurePanel2() {\n instance.configurePanel(new PackageImpl());\n\n assertEquals(\"Failed to configure the panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the panel.\", 1, ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "public Panel(LayoutManager paramLayoutManager)\n/* */ {\n/* 65 */ setLayout(paramLayoutManager);\n/* */ }", "public PropertiesView(){\n\n\t\tbtnDescTemplate = new DescTemplateWidget(this);\n\t\tbtnCalculation = new DescTemplateWidget(this);\n\n\t\ttable.setWidget(0, 0, new Label(LocaleText.get(\"text\")));\n\t\ttable.setWidget(1, 0, new Label(LocaleText.get(\"helpText\")));\n\t\ttable.setWidget(2, 0, new Label(LocaleText.get(\"type\")));\n\t\ttable.setWidget(3, 0, new Label(LocaleText.get(\"binding\")));\n\t\ttable.setWidget(4, 0, new Label(LocaleText.get(\"visible\")));\n\t\ttable.setWidget(5, 0, new Label(LocaleText.get(\"enabled\")));\n\t\ttable.setWidget(6, 0, new Label(LocaleText.get(\"locked\")));\n\t\ttable.setWidget(7, 0, new Label(LocaleText.get(\"required\")));\n\t\ttable.setWidget(8, 0, new Label(LocaleText.get(\"defaultValue\")));\n\t\ttable.setWidget(9, 0, new Label(LocaleText.get(\"calculation\")));\n\t\t\n\t\tlblDescTemplate = new Label(LocaleText.get(\"descriptionTemplate\"));\n\t\ttable.setWidget(10, 0, lblDescTemplate);\n\t\ttable.setWidget(11, 0, new Label(LocaleText.get(\"formKey\")));\n\n\t\ttable.setWidget(0, 1, txtText);\n\t\ttable.setWidget(1, 1, txtHelpText);\n\t\ttable.setWidget(2, 1, cbDataType);\n\t\ttable.setWidget(3, 1, txtBinding);\n\t\ttable.setWidget(4, 1, chkVisible);\n\t\ttable.setWidget(5, 1, chkEnabled);\n\t\ttable.setWidget(6, 1, chkLocked);\n\t\ttable.setWidget(7, 1, chkRequired);\n\t\ttable.setWidget(8, 1, txtDefaultValue);\n\n\t\tHorizontalPanel panel = new HorizontalPanel();\n\t\tpanel.add(txtCalculation);\n\t\tpanel.add(btnCalculation);\n\t\tpanel.setCellWidth(btnCalculation, \"20%\");\n\t\tFormUtil.maximizeWidget(txtCalculation);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(9, 1, panel);\n\n\t\tpanel = new HorizontalPanel();\n\t\tpanel.add(txtDescTemplate);\n\t\tpanel.add(btnDescTemplate);\n\t\tpanel.setCellWidth(btnDescTemplate, \"20%\");\n\t\tFormUtil.maximizeWidget(txtDescTemplate);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(10, 1, panel);\n\t\t\n\t\ttable.setWidget(11, 1, txtFormKey);\n\n\t\ttable.setStyleName(\"cw-FlexTable\");\n\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeText\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeNumber\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDecimal\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDate\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDateTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBoolean\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeMultSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeRepeat\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypePicture\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeVideo\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeAudio\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelectDynamic\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeGPS\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBarcode\"));\n\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\n\t\tcellFormatter.setHorizontalAlignment(15, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\n\t\ttable.setWidth(\"100%\");\n\t\tcellFormatter.setWidth(0, 0, \"20%\");\n\t\t//cellFormatter.setColSpan(0, 0, 2);\n\t\t\n\t\t//cellFormatter.setWidth(9, 0, \"20\"+PurcConstants.UNITS);\n\t\t//cellFormatter.setWidth(9, 1, \"20\"+PurcConstants.UNITS);\n\n\t\ttxtText.setWidth(\"100%\");\n\t\ttxtHelpText.setWidth(\"100%\");\n\t\ttxtBinding.setWidth(\"100%\");\n\t\ttxtDefaultValue.setWidth(\"100%\");\n\t\tcbDataType.setWidth(\"100%\");\n\t\ttxtFormKey.setWidth(\"100%\");\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tverticalPanel.setSpacing(5);\n\t\tverticalPanel.add(table);\n\n\t\tDecoratedTabPanel tabs = new DecoratedTabPanel();\n\t\ttabs.add(skipRulesView, LocaleText.get(\"skipLogic\"));\n\t\ttabs.add(validationRulesView, LocaleText.get(\"validationLogic\"));\n\t\ttabs.add(dynamicListsView, LocaleText.get(\"dynamicLists\"));\n\n\t\ttabs.selectTab(0);\n\t\tverticalPanel.add(tabs);\n\t\tFormUtil.maximizeWidget(tabs);\n\n\t\tFormUtil.maximizeWidget(verticalPanel);\n\t\tinitWidget(verticalPanel);\n\n\t\tsetupEventListeners();\n\n\t\tcbDataType.setSelectedIndex(-1);\n\n\t\tenableQuestionOnlyProperties(false);\n\t\ttxtText.setEnabled(false);\n\t\t//txtDescTemplate.setVisible(false);\n\t\t//btnDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\t\ttxtCalculation.setEnabled(false);\n\t\tbtnCalculation.setEnabled(false);\n\t\ttxtBinding.setEnabled(false);\n\n\t\ttxtText.setTitle(LocaleText.get(\"questionTextDesc\"));\n\t\ttxtHelpText.setTitle(LocaleText.get(\"questionDescDesc\"));\n\t\ttxtBinding.setTitle(LocaleText.get(\"questionIdDesc\"));\n\t\ttxtDefaultValue.setTitle(LocaleText.get(\"defaultValDesc\"));\n\t\tcbDataType.setTitle(LocaleText.get(\"questionTypeDesc\"));\n\n\t\tDOM.sinkEvents(getElement(), Event.ONKEYDOWN | DOM.getEventsSunk(getElement()));\n\t}", "@Test\n public void testGetPanel()\n {\n assertNotNull(MusicPlayer.getInstance().getPanel());\n }", "public VirtualPanel() {}", "private void manualTestPanel() {\n\t\tJPanel manualPanel = new JPanel();\n\t\tmanualPanel.setSize(PanelsDimension);\n\t\tmanualPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tmanualPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\t\n\t\t//Title\n\t\tc.weighty = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.gridwidth = 2;\n\t\tJLabel manualConfigLabel = new JLabel(\"Manual Configuration\");\n\t\tmanualConfigLabel.setHorizontalAlignment(0);\n\t\tmanualPanel.add(manualConfigLabel, c);\n\t\t\n\t\t//ComboBox\n\t\tc.weightx = 0.7;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 1;\n\t\tc.ipady = 20;\n\t\tc.gridwidth = 1;\n\t\trulesCB = new DefaultComboBoxModel<String>();\n\t\tmanualCBRules.setPrototypeDisplayValue(\"XXXXXXXXXXXXXXXXXXXXXXXXXX\");\n\t\tmanualCBRules.setModel(rulesCB);\n\t\tmanualCBRules.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualPanel.add(manualCBRules, c);\n\t\t\n\t\t//WeigthValue\n\t\tc.weightx = 0.3;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 1;\n\t\tc.ipady = 0;\n\t\tc.gridwidth = 1;\n\t\tmanualRuleValue = new JTextField();\n\t\tmanualPanel.add(manualRuleValue, c);\n\t\t\n\t\t//Save Configurations Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualSaveValuesButton = new JButton(\"Save Manual configurations\");\n\t\tmanualSaveValuesButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetValueToRule();\n\t\t\t\t\t\tAntiSpamFilterControl.saveRulesFile(true);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualSaveValuesButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualSaveValuesButton, c);\n\t\t\n\t\t//Test Values Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 3;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualTestButton = new JButton(\"Test Values\");\n\t\tmanualTestButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t\tAntiSpamFilterControl.Evaluater(true);\n\t\t\t\t\tsetResultString(\"manual\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualTestButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualTestButton, c);\n\t\t\n\t\t//Show Results\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 4;\n\t\tc.ipady = 0;\n\t\tmanualResults = new JTextArea();\n\t\tmanualResults.setEnabled(false);\n\t\tmanualPanel.add(manualResults, c);\n\t\t\n\t\tframe.add(manualPanel);\n\t}", "PanelOptionsVisual(PanelConfigureProject panel) {\n this.panel = panel;\n\n preInitComponents();\n initComponents();\n postInitComponents();\n }", "public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }", "public JPanel setUpPropertyCheckBoxes(Player player) {\n JPanel propertyCheckBoxesPanel = new JPanel();\n propertyCheckBoxesPanel.setLayout(new BoxLayout(propertyCheckBoxesPanel,\n BoxLayout.Y_AXIS));\n \n for (Space space : player.getProperties()) {\n JCheckBox checkBox = new JCheckBox(space.getName());\n checkBox.setBackground(Board.getColor(space.getColorNumber()));\n checkBox.setForeground(Board.getMatchingTextColor(space.getColorNumber()));\n if (playersCheckBoxes.containsKey(player)) {\n playersCheckBoxes.get(player).put(checkBox, space);\n } else {\n Map<JCheckBox, Space> checkBoxSpaceMap = new HashMap();\n checkBoxSpaceMap.put(checkBox, space);\n playersCheckBoxes.put(player, checkBoxSpaceMap);\n }\n propertyCheckBoxesPanel.add(checkBox);\n }\n \n return propertyCheckBoxesPanel;\n }", "public PrincipalPanel() {\n\t\tinitialize();\n\t}", "public EnvironmentPanelTest()\n {\n }", "public Panel() {\n initComponents();\n\n\n }", "public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}", "public PropertyInspector()\n {\n super( new BorderLayout() );\n\n add(splitPane, BorderLayout.CENTER); \n splitPane.setDividerSize(5);\n\n setupPopupMenu( popup = new JPopupMenu() );\n\n //inspectorActionManager = new InspectorActionManager( mobile );\n\n addComponentListener(new ComponentAdapter()\n {\n @Override\n public void componentResized(ComponentEvent evt)\n {\n updateSplitPaneDivider();\n }\n });\n\n }", "public ProblemPanel()\r\n\t{\r\n\t\tsetVerticalAlignment(ALIGN_MIDDLE);\r\n\r\n\t\tquestionPanel = new QuestionPanel(null);\r\n\t\tanswerPanel = new AnswerPanel(null);\r\n\r\n\t\tadd(questionPanel);\r\n\t\tadd(answerPanel);\r\n\r\n\t\tsetCellHeight(questionPanel, \"50%\");\r\n\t\tsetCellHeight(answerPanel, \"50%\");\r\n\r\n\t\taddStyleName(\"problem-panel\");\r\n\t}", "public MarkersViewPropertyTester() {\n }", "@Override\n public void setupPanel()\n {\n\n }", "static JPanel createConfigPanel(Viewer viewer,\r\n SelectionModel<Point2D> selectionModel,\r\n SelectionHandler<Point2D> lassoSelectionHandler,\r\n SelectionHandler<Point2D> rectangleSelectionHandler)\r\n {\r\n JPanel configPanel = new JPanel(new BorderLayout());\r\n \r\n JPanel controlPanel = new JPanel(new GridLayout(0,1));\r\n \r\n JCheckBox lassoCheckBox = \r\n new JCheckBox(\"Lasso\", true);\r\n lassoCheckBox.addActionListener(e -> \r\n {\r\n lassoSelectionHandler.disconnect();\r\n rectangleSelectionHandler.disconnect();\r\n if (lassoCheckBox.isSelected())\r\n {\r\n lassoSelectionHandler.connect(viewer, selectionModel);\r\n }\r\n else\r\n {\r\n rectangleSelectionHandler.connect(viewer, selectionModel);\r\n }\r\n });\r\n controlPanel.add(lassoCheckBox);\r\n \r\n JButton setDisplayedWorldAreaButton = \r\n new JButton(\"Reset displayed world area\");\r\n setDisplayedWorldAreaButton.addActionListener(\r\n e -> viewer.setDisplayedWorldArea(\r\n new Rectangle2D.Double(-0.1, -0.1, 1.2, 1.2)));\r\n controlPanel.add(setDisplayedWorldAreaButton);\r\n \r\n JButton resetTransformButton = \r\n new JButton(\"Reset transform\");\r\n resetTransformButton.addActionListener(\r\n e -> viewer.resetTransform());\r\n controlPanel.add(resetTransformButton);\r\n \r\n configPanel.add(controlPanel, BorderLayout.NORTH);\r\n \r\n return configPanel;\r\n }", "@Test\n\tpublic void testInformationPanel() {\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Time\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Max height\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t}", "@Inject\n public PhasesUILeftPanel(EngineEventManager eventManager, FullEditorDodleOverlayRegistry fedoRegistry, ModifyPhaseSettingsView modifyPhaseSettingsView, NewPhaseSettingsView newPhaseSettingsView, PhaseConfigView phaseConfigView, PropertiesSettingsView propertiesSettingsView) {\n this.eventManager = eventManager;\n this.modifyPhaseSettingsView = modifyPhaseSettingsView;\n this.newPhaseSettingsView = newPhaseSettingsView;\n this.phaseConfigView = phaseConfigView;\n this.propertiesSettingsView = propertiesSettingsView;\n\n fedoRegistry.registerOverlay(this);\n }", "@Test\n\tpublic void testControlPanelButtons() {\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\n\t\tfinal int DEFAULT_ANGLE = 45;\n\t\tfinal int NEW_HEIGHT = 50;\n\t\tfinal int NEW_VELOCITY = 100;\n\t\twindow.panel(\"Control panel\").textBox(\"Angle text field\").setText(\"-12\");\n\t\twindow.panel(\"Control panel\").button(\"Set angle\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getAngleSlider().getValue() == DEFAULT_ANGLE);\n\n\t\twindow.panel(\"Control panel\").textBox(\"Height text field\").setText(\"50\");\n\t\twindow.panel(\"Control panel\").button(\"Set height\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getHeightSlider().getValue() == NEW_HEIGHT);\n\n\t\twindow.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.slideTo(NEW_VELOCITY);\n\t\tassertThat(gui.getControlPanel().getVelocityTextField().getText()\n\t\t\t\t.equals(\"\" + NEW_VELOCITY));\n\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Height slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Continue\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Stop\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Clear\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles().size() == 0);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors().size() == 0);\n\t\tfinal int EXPECTED_PROJECTILES = 3;\n\t\tfor (int i = 0; i < EXPECTED_PROJECTILES; ++i) {\n\t\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\t}\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t}", "public AssociationEndsPropertyPanel(PropertiesPanel propertiesPanel) {\n super(Collections.singletonList(PropertyKind.ASSOCIATION_ENDS_LINK), propertiesPanel);\n\n JPanel panel = retrievePanel();\n Util.setFixedSize(panel, 230, 50);\n\n panel.setLayout(new GridBagLayout());\n\n // initializes the two labels for the two association ends\n // the foreground colors are set to BLUE and the cursors are set to hand cursor\n labelAssociationEnd1 = new JLabel();\n labelAssociationEnd1.setForeground(new Color(4, 87, 162));\n labelAssociationEnd1.setCursor(new Cursor(Cursor.HAND_CURSOR));\n labelAssociationEnd2 = new JLabel();\n labelAssociationEnd2.setForeground(new Color(4, 87, 162));\n labelAssociationEnd2.setCursor(new Cursor(Cursor.HAND_CURSOR));\n\n panel.setBorder(BorderFactory.createTitledBorder(\"Association Ends\"));\n\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 1;\n constraints.fill = GridBagConstraints.BOTH;\n constraints.insets = new Insets(-5, 40, 0, 0);\n panel.add(labelAssociationEnd1, constraints);\n constraints.gridx = 1;\n constraints.insets = new Insets(-5, 0, 0, 0);\n panel.add(labelAssociationEnd2, constraints);\n\n // Creates an MouseListener instance and assign it to the two labels for association ends\n MouseListener listener = new MouseAdapter() {\n /**\n * <p>\n * Invoked when the mouse has been clicked on a component.\n * </p>\n *\n * <p>\n * When the <code>JLabel</code> is clicked, this method will be invoked\n * </p>\n *\n * @param e an event which indicates that a mouse action occurred in a component\n */\n public void mouseClicked(MouseEvent e) {\n JLabel label = (JLabel) e.getSource();\n\n // The logic will be executed only when all the configured model elements have\n // the same first and second association ends\n if (label.getText().length() > 0) {\n Association association = (Association) getConfiguredModelElements().get(0);\n List<AssociationEnd> ends = association.getConnections();\n\n if (label == labelAssociationEnd1) {\n // configure the panel with the first association end\n if (ends.size() > 0) {\n //getPropertiesPanel().fireSelectionChangeEvent(association);\n getPropertiesPanel().configurePanel(ends.get(0));\n getPropertiesPanel().fireSelectionChangeEvent(ends.get(0));\n\n // set it visible back, since listeners may hide it\n getPropertiesPanel().setVisible(true);\n }\n } else {\n // configure the panel with the second association end\n if (ends.size() > 1) {\n getPropertiesPanel().configurePanel(ends.get(1));\n getPropertiesPanel().fireSelectionChangeEvent(ends.get(1));\n\n // set it visible back, since listeners may hide it\n getPropertiesPanel().setVisible(true);\n }\n }\n }\n }\n };\n\n // install the mouse listener to the two labels\n labelAssociationEnd1.addMouseListener(listener);\n labelAssociationEnd2.addMouseListener(listener);\n }", "@Test\r\n\tpublic void test()\r\n\t{\r\n\t\ttry {\r\n\t\t\tpanel=new Panels();\r\n\t\t\tpanel.map=new DrawMap();\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\tpanel.waveLevel=2; \r\n\t\tpanel.map.map=new int [1][1];\r\n\t\tpanel.waveInitial();\r\n\t\tassertEquals(3,panel.waveLevel);\r\n\t}", "public MundoJuego( JPanel panel ) {\r\n\t\tthis.panel = panel;\r\n\t}", "private void setupPanel()\n\t{\n\t\tsetLayout(numberLayout);\n\t\tsetBorder(new EtchedBorder(EtchedBorder.RAISED, Color.GRAY, Color.DARK_GRAY));\n\t\tsetBackground(Color.LIGHT_GRAY);\n\t\tadd(ans);\n\t\tadd(clear);\n\t\tadd(backspace);\n\t\tadd(divide);\n\t\tadd(seven);\n\t\tadd(eight);\n\t\tadd(nine);\n\t\tadd(multiply);\n\t\tadd(four);\n\t\tadd(five);\n\t\tadd(six);\n\t\tadd(subtract);\n\t\tadd(one);\n\t\tadd(two);\n\t\tadd(three);\n\t\tadd(add);\n\t\tadd(negative);\n\t\tadd(zero);\n\t\tadd(point);\n\t\tadd(equals);\n\t}", "public JPanel setUpDealMakerPanel(Player player) {\n JPanel dealMakerPanel = new JPanel();\n dealMakerPanel.setLayout(new BoxLayout(dealMakerPanel, BoxLayout.Y_AXIS));\n \n dealMakerPanel.add(Box.createVerticalGlue());\n dealMakerPanel.add(setUpPropertyCheckBoxes(player));\n dealMakerPanel.add(Box.createVerticalGlue());\n \n return dealMakerPanel;\n }", "private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}", "public PaintPanel(PaintModel model){\r\n\t\tthis.setBackground(Color.WHITE);\r\n\t\tthis.setPreferredSize(new Dimension(1600,900));\r\n\t\tthis.addMouseListener(this);\r\n\t\tthis.addMouseMotionListener(this);\r\n\r\n\t\t\r\n\t\tthis.model = model;\r\n\t\t\r\n\t\t// paintPanel will now observe model\r\n\t\t// Every time model is changed (model calls notifyObservers()), this update method gets called\r\n\t\tthis.model.addObserver(this);\t\r\n\t}", "public TShapePanel() {\r\ncommonInitialization();\r\n }", "public void testRefreshPanel() {\n Package packageObject = new PackageImpl();\n instance.configurePanel(packageObject);\n\n assertEquals(\"Failed to configure the left panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the right panel.\", 1,\n ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "public void testConfigureProject() {\n UMLModelManager umlModelManager = new UMLModelManager();\n instance.configureProject(umlModelManager);\n\n assertSame(\"Failed to configure project.\", umlModelManager, instance.getUMLModelManager());\n }", "private void constructMainPanel() {\n // initialize the main panel\n mainPanel = new JPanel();\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\n mainPanel.setPreferredSize(new Dimension(model.getWidth() + 50,\n model.getHeight() + 240));\n JScrollPane mainPane = new JScrollPane(mainPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n this.add(mainPane);\n\n }", "public PaperSettingsJPanel() {\n initComponents();\n }", "public LayerViewPanel()\r\n {\r\n \r\n }", "public PaintPanel(PaintModel model, View view){\n\t\tthis.setBackground(Color.blue);\n\t\tthis.setPreferredSize(new Dimension(300,300));\n\t\tthis.addMouseListener(this);\n\t\tthis.addMouseMotionListener(this);\n\t\tthis.lineThickness = 1;\n\t\tthis.mode=\"Circle\"; // bad code here?\n\t\t\n\t\tthis.model = model;\n\t\tthis.model.addObserver(this);\n\t\t\n\t\tthis.view=view;\n\t}", "public WindowPanel() {\r\n\t\tsetLayout(null);\r\n\t\t\r\n\t\tIPropertyService svc = ServiceManager.getService();\r\n\t\t\r\n\t\tlXmin = new JLabel(\"XMin:\");\r\n\t\tlXmin.setBounds(10, 10, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lXmin);\r\n\t\t\r\n\t\tlXmax = new JLabel(\"XMax:\");\r\n\t\tlXmax.setBounds(10, 40, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lXmax);\r\n\t\t\r\n\t\tlYmin = new JLabel(\"YMin:\");\r\n\t\tlYmin.setBounds(10, 70, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lYmin);\r\n\t\t\r\n\t\tlYmax = new JLabel(\"YMax:\");\r\n\t\tlYmax.setBounds(10, 100, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lYmax);\r\n\t\t\r\n\t\tsXmin = new JSpinner(new SpinnerNumberModel(-10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsXmin.setBounds(60, 10, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sXmin);\r\n\t\tsXmin.addChangeListener((ChangeEvent e) -> svc.setXMin((double) sXmin.getValue()));\r\n\t\t\r\n\t\tsXmax = new JSpinner(new SpinnerNumberModel(10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsXmax.setBounds(60, 40, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sXmax);\r\n\t\tsXmax.addChangeListener((ChangeEvent e) -> svc.setXMax((double) sXmax.getValue()));\r\n\t\t\r\n\t\tsYmin = new JSpinner(new SpinnerNumberModel(-10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsYmin.setBounds(60, 70, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sYmin);\r\n\t\tsYmin.addChangeListener((ChangeEvent e) -> svc.setYMin((double) sYmin.getValue()));\r\n\t\t\r\n\t\tsYmax = new JSpinner(new SpinnerNumberModel(10.0d, -100.0d, 100.0d, 1.0d));\r\n\t\tsYmax.setBounds(60, 100, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sYmax);\r\n\t\tsYmax.addChangeListener((ChangeEvent e) -> svc.setYMax((double) sYmax.getValue()));\r\n\t\t\r\n\t\tlGridStepX2D = new JLabel(\"Grid step X:\");\r\n\t\tlGridStepX2D.setBounds(120, 10, 100, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lGridStepX2D);\r\n\t\t\r\n\t\tlGridStepY2D = new JLabel(\"Grid step Y:\");\r\n\t\tlGridStepY2D.setBounds(120, 40, 100, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(lGridStepY2D);\r\n\t\t\r\n\t\tsGridStepX2D = new JSpinner(new SpinnerNumberModel(1.0d, 0.125d, 1000.0d, 0.25d));\r\n\t\tsGridStepX2D.setBounds(230, 10, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sGridStepX2D);\r\n\t\tsGridStepX2D.addChangeListener((ChangeEvent e) -> svc.setGridX((double) sGridStepX2D.getValue()));\r\n\t\t\r\n\t\tsGridStepY2D = new JSpinner(new SpinnerNumberModel(1.0d, 0.125d, 1000.0d, 0.25d));\r\n\t\tsGridStepY2D.setBounds(230, 40, 50, ProgramInfo.DEFAULTCOMPONENTHEIGHT);\r\n\t\tadd(sGridStepY2D);\r\n\t\tsGridStepY2D.addChangeListener((ChangeEvent e) -> svc.setGridY((double) sGridStepY2D.getValue()));\r\n\t\t\r\n\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public ViewProperty() {\n initComponents();\n }", "@Override\n public void newPanelModel() {\n\n }", "@Override\n public void newPanelModel() {\n\n }", "@Test\n public void testCreateField() {\n System.out.println(\"createField\"); \n JPanel result = instance.createField();\n assertNotNull(result); \n }", "@Override\r\n public void setup(Panel panel) {\n }", "public VivariumPanel()\n {\n // Call super constructor\n super();\n\n // Initialize properties\n this.turtles = new HashSet<>();\n this.isDebug = false;\n }", "public ControladorPanel() { }", "public EnhancedVisualView(IReadOnlyModel model, int speed) {\n super();\n this.mm = (AnimationModel) model;\n VisualView vView = new VisualView(mm, speed);\n this.setTitle(vView.getTitle());\n this.setSize(vView.getSize());\n this.setExtendedState(this.getExtendedState() | JFrame.MAXIMIZED_BOTH);\n this.setDefaultCloseOperation(vView.getDefaultCloseOperation());\n\n //use a borderlayout with drawing panel in center and button panel in south\n this.setLayout(vView.getLayout());\n this.vPanel = new VisualPanel(mm, speed);\n vPanel.setPreferredSize(new Dimension(500, 500));\n this.add(vPanel, BorderLayout.CENTER);\n\n //set play button\n buttonPanel = new ButtonPanel();\n this.add(buttonPanel, BorderLayout.SOUTH);\n\n //sets the menu bar\n menuBar = new MenuPanel(mm.getShapes());\n this.add(menuBar, BorderLayout.WEST);\n\n vPanel.setSlider(menuBar.getJSlider());\n this.menuBar.getJSlider().setMinimum(0);\n this.menuBar.getJSlider().setMaximum(this.vPanel.getMaxTick());\n menuBar.getJSlider().setValue(0);\n menuBar.getJSlider().addChangeListener((ChangeEvent e) -> {\n JSlider source = (JSlider) e.getSource();\n int fps = (int) source.getValue();\n if (source.getValueIsAdjusting()) {\n vPanel.stopTimer();\n vPanel.setTick(fps);\n vPanel.repaint();\n } else {\n vPanel.startTimer();\n }\n });\n\n }", "public PanelAmigo() {\n initComponents();\n \n }", "public Element createJDOMRepresentation(PropertySet properties){\n\t\t\n\t\t//Create an empty \"root\" element\n\t\tElement rootProp = new Element(\"properties\");\n\t\trootProp.setName(\"properties\");\n\t\t\n\t\t//Iterate through the properties of this PropertySet\n\t\tIterator<Property> iterator = properties.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\t\n\t\t\t//Get the current Property\n\t\t\tProperty property = iterator.next();\n\t\t\t\n\t\t\t//Create a new Element representing this property\n\t\t\tElement prop = new Element(\"property\");\n\t\t\t\n\t\t\t//Add the appropriate attributes\n\t\t\tprop.setAttribute(\"name\", property.getName());\n\t\t\tprop.setAttribute(\"type\",String.valueOf(property.getMeasure().getType()));\n\t\t\tprop.setAttribute(\"description\", property.getDescription());\n\t\t\tprop.setAttribute(\"positive_impact\", String.valueOf(property.isPositive()));\n\t\t\t\n\t\t\t//TODO: Check how to get rid of this if statements - IDEA: Initialize these fields at value \"\"\n\t\t\tif(property.getMeasure().getMetricName() != null){\n\t\t\t\tprop.setAttribute(\"metricName\", property.getMeasure().getMetricName());\n\t\t\t}else{\n\t\t\t\tprop.setAttribute(\"metricName\", \"\");\n\t\t\t}\n\t\t\t\n\t\t\tif(property.getMeasure().getRulesetPath() != null){\n\t\t\t\tprop.setAttribute(\"ruleset\", property.getMeasure().getRulesetPath());\n\t\t\t}else{\n\t\t\t\tprop.setAttribute(\"ruleset\", \"\");\n\t\t\t}\n\t\t\tprop.setAttribute(\"tool\", property.getMeasure().getTool());\n\t\t\t//Save the thresholds as well (ascending order) \n\t\t\t//Create a node (element) containing the thresholds of the property\n\t\t\tElement thresholds = new Element(\"thresholds\");\n\t\t\tfor(int i = 0; i < property.getThresholds().length; i++){\n\t\t\t\t\n\t\t\t\t//Create a threshold Element\n\t\t\t\tElement t = new Element(\"threshold\");\n\t\t\t\t\n\t\t\t\t//Set the appropriate value of the threshold\n\t\t\t\tt.setText(String.valueOf(property.getThresholds()[i]));\n\t\t\t\t\n\t\t\t\t//Attach the current threshold element to the element named \"thresholds\"\n\t\t\t\tthresholds.addContent(t);\n\t\t\t}\n\t\t\t\n\t\t\t//Attach the \"thresholds\" sub element to the \"property\" element\n\t\t\tprop.addContent(thresholds);\n\t\t\t\n\t\t\t//Attach the \"property\" element to the \"properties\" parent element\n\t\t\trootProp.addContent(prop);\n\t\t}\n\t\t\n\t\t//Return the \"root\" element of the properties\n\t\treturn rootProp;\t\n\t}", "public MazeSettingsPanel(MazeSettings settings){\r\n \tsuper();\r\n \tthis.settings=settings;\r\n \tthis.layout = new GridLayout(0,2);\r\n \tthis.layout.setVgap(10);\r\n \tthis.setLayout(this.layout);\r\n \r\n \tpadding = BorderFactory.createEmptyBorder(20,20,15,10);\r\n \tthis.setBorder(padding);\r\n \r\n \tinitFields();\r\n \tupdateFieldValues();\r\n }", "@Before\n public void setup() {\n presenter = new MapEditor(view, valueChangeEvent);\n assertEquals(view.asWidget(), presenter.asWidget());\n }", "public PropertyClassificationPage() {\n initComponents();\n }", "public PropsGUI() {\n initComponents();\n }", "protected void setUp() throws Exception {\n super.setUp();\n TestHelper.loadConfigurations();\n DocumentTreeTabbedPane parent =\n new DocumentTreeTabbedPaneImpl(TestHelper.createUMLModelManager(), TestHelper.NAMESPACE_NEW);\n panel = parent.getCurrentPanel();\n }", "public PanelSgamacView1()\n {\n }", "public void testOnePanel() {\n\t\t// Instantiate nested panels\n\t\tRasterFileTestPlotPanel parent =\n\t\t\tnew RasterFileTestPlotPanel(TEST_DIR);\n\t\t\n\t\t// Add background widgets to panel such that\n\t\t// they are top aligned and non-overlapping\n\t\tparent.add(new Background(WIDTH, HEIGHT, COLOR_1), true);\n\t\tparent.add(new Background(WIDTH, HEIGHT, COLOR_2),\n\t\t\t\tHorizontalAlignment.RIGHT_OF,\n\t\t\t\tVerticalAlignment.TOP_JUSTIFIED);\n\t\t\n\t\t// Output graphics to file\n\t\tparent.toPngFile(\"one-panel.png\");\n\t}", "public PreferencesPanel() {\n initComponents();\n }", "public OptionsWindow(Manager m) {\n super(\"Options\");\n manager = m; \n JPanel optionsPanel = new JPanel(new SpringLayout());\n JLabel managerPoll = new JLabel(\"Manager Poll\", JLabel.TRAILING);\n optionsPanel.add(managerPoll);\n managerPollTextField = new JTextField(10);\n currentManagerPollPeriod = manager.getPollPeriod();\n managerPollTextField.setText(new Integer(currentManagerPollPeriod).toString());\n managerPoll.setLabelFor(managerPollTextField);\n optionsPanel.add(managerPollTextField);\n JLabel performancePoll = new JLabel(\"Performance Poll\", JLabel.TRAILING);\n optionsPanel.add(performancePoll);\n performancePollTextField = new JTextField(10);\n currentPerformancePollPeriod = manager.getPerformanceUpdatePeriod();\n performancePollTextField.setText(new Integer(currentPerformancePollPeriod).toString()); \n performancePoll.setLabelFor(performancePollTextField);\n optionsPanel.add(performancePollTextField); \n\n SpringUtilities.makeCompactGrid(optionsPanel,\n 2, 2, //rows, cols\n 6, 6, //initX, initY\n 6, 6); //xPad, yPad\n \n JPanel buttonPanel = new JPanel();\n buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n JButton okButton = new JButton(OKCOMMAND);\n okButton.setActionCommand(OKCOMMAND);\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n if (OKCOMMAND.equals(evt.getActionCommand())) { \n Integer i = new Integer(managerPollTextField.getText());\n Integer j = new Integer(currentManagerPollPeriod);\n if (!(i.equals(j))) {\n OMMLogger.logger.info(\"change of manager poll period from \" + j + \" to \" + i);\n currentManagerPollPeriod = i.intValue();\n manager.setPollPeriod(currentManagerPollPeriod);\n }\n i = new Integer(performancePollTextField.getText());\n j = new Integer(currentPerformancePollPeriod);\n if (!(i.equals(j))) {\n OMMLogger.logger.info(\"change of performance poll period from \" + j + \" to \" + i);\n currentPerformancePollPeriod = i.intValue();\n manager.setPerformancePollPeriod(currentPerformancePollPeriod);\n }\n dispose();\n }\n }\n }); \n \n buttonPanel.add(okButton); \n \n JButton cancelButton = new JButton(CANCELCOMMAND);\n cancelButton.setActionCommand(CANCELCOMMAND);\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n }\n }); \n \n buttonPanel.add(cancelButton);\n \n optionsPanel.setOpaque(true);\n buttonPanel.setOpaque(true);\n \n Container mainPane = getContentPane();\n mainPane.setLayout(new BoxLayout(mainPane, BoxLayout.PAGE_AXIS));\n mainPane.add(optionsPanel, BorderLayout.PAGE_START); \n mainPane.add(buttonPanel, BorderLayout.PAGE_END); \n \n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); \n pack();\n }", "public interface PropertyManager extends Manager {\n\t/**\n\t * The attribute \"attr\" has been added (instantiated for the first time).\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param newValue\n\t * . The new value of that attribute.\n\t */\n\tpublic void attributeAdded(Component component, String attr, String newValue);\n\n\t/**\n\t * The attribute \"attr\" has been modified.\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param newValue\n\t * . The new value of that attribute.\n\t * @param oldValue\n\t * . The previous value of that attribute.\n\t */\n\tpublic void attributeChanged(Component component, String attr, String newValue, String oldValue);\n\n\t/**\n\t * The attribute \"attr\" has been removed.\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param oldValue\n\t * . The previous value of that attribute.\n\t */\n\tpublic void attributeRemoved(Component component, String attr, String oldValue);\n}", "public GuidedWizardPanel()\r\n\t{\t\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\t\r\n\t\twizardPanel = new WizardPanel(panelList, groupLabels);\r\n\t\twizardPanel.addSaveListener(this);\r\n\t\tpanel.add(wizardPanel);\r\n\r\n\t\t// set up listener relationships\r\n\t\tsolvingForPanel.addSolvingForListener(powerPanel);\r\n\t\tsolvingForPanel.addSolvingForListener(perGroupSampleSizePanel);\r\n\t\tsolvingForPanel.addSolvingForListener(resultsPanel);\r\n\t\t// listeners for outcome measures\r\n\t\toutcomesPanel.addOutcomesListener(hypothesisIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(hypothesisRepeatedPanel);\r\n\t\toutcomesPanel.addOutcomesListener(meanDifferencesIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(meanDifferencesPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityRepeatedPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityCovariateOutcomePanel);\r\n\t\t// listeners for predictor information\r\n\t\tcatPredictorsPanel.addPredictorsListener(relativeGroupSizePanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(hypothesisIndependentPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(hypothesisRepeatedPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(meanDifferencesIndependentPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(meanDifferencesPanel);\r\n\t\t// listeners for relative group sizes\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisIndependentPanel);\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisRepeatedPanel);\r\n\t\t// listeners for baseline covariates\r\n\t\tcovariatePanel.addCovariateListener(meanDifferencesIndependentPanel);\r\n\t\tcovariatePanel.addCovariateListener(meanDifferencesPanel);\r\n\t\t// TODO: covariatePanel.addCovariateListener(meanDifferencesRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(hypothesisIndependentPanel);\r\n\t\tcovariatePanel.addCovariateListener(hypothesisRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityIndependentPanel);\r\n\t\t// TODO: covariatePanel.addCovariateListener(variabilityRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityCovariatePanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityCovariateOutcomePanel);\r\n\t\tcovariatePanel.addCovariateListener(optionsTestsPanel);\r\n\t\tcovariatePanel.addCovariateListener(optionsPowerMethodsPanel);\r\n\t\t// listeners for repeated measures \r\n\t\trepeatedMeasuresPanel.addRepeatedMeasuresListener(hypothesisIndependentPanel);\r\n\t\trepeatedMeasuresPanel.addRepeatedMeasuresListener(hypothesisRepeatedPanel);\r\n\t\t// listeners for hypotheses\r\n\t\thypothesisIndependentPanel.addHypothesisListener(meanDifferencesIndependentPanel);\r\n\t\thypothesisRepeatedPanel.addHypothesisListener(meanDifferencesRepeatedPanel);\r\n\t\t// group size listeners\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisIndependentPanel);\r\n\t\t// variability listeners\r\n\t\tvariabilityIndependentPanel.addVariabilityListener(variabilityCovariateOutcomePanel);\r\n\t\tvariabilityCovariatePanel.addVariabilityListener(variabilityCovariateOutcomePanel);\r\n\t\toptionsDisplayPanel.addChartOptionsListener(resultsPanel);\r\n\t\t// callbacks to fill in the power curve options screen\r\n\t\talphaPanel.addAlphaListener(optionsDisplayPanel);\r\n\t\toptionsTestsPanel.addTestListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addPowerMethodListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addQuantileListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addQuantileCheckboxListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addPowerCheckboxListener(optionsDisplayPanel);\r\n\t\tmeanDifferencesScalePanel.addBetaScaleListener(optionsDisplayPanel);\r\n\t\tperGroupSampleSizePanel.addPerGroupSampleSizeListener(optionsDisplayPanel);\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(optionsDisplayPanel);\r\n\t\tvariabilityScalePanel.addSigmaScaleListener(optionsDisplayPanel);\r\n\t\t// initialize\r\n\t\tinitWidget(panel);\r\n\t}", "public JavaPanel() {\n\t\tsuper();\n\t}", "private void createOCPanel() {\n\n // this.createPanel(); <--- will be called via our constructor -> super ->\n // createPanel()\n\n GridBagLayout gridbag = (GridBagLayout) this.getLayout();\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.anchor = GridBagConstraints.WEST;\n // this.setLayout(gridbag); <-- already set by super class\n\n ConstraintsBuilder.buildConstraints(constraints, 0, 7, 1, 1, 5, 10);\n OMLabel LunusualShape = new OMLabel(this.bundle.getString(\"panel.findingOC.label.unusualShape\"), false);\n LunusualShape.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.unusualShape\"));\n gridbag.setConstraints(LunusualShape, constraints);\n this.add(LunusualShape);\n ConstraintsBuilder.buildConstraints(constraints, 1, 7, 2, 1, 45, 10);\n this.unusualShape = new TristateCheckbox();\n this.unusualShape.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.unusualShape\"));\n constraints.fill = GridBagConstraints.BOTH;\n gridbag.setConstraints(this.unusualShape, constraints);\n this.add(this.unusualShape);\n\n ConstraintsBuilder.buildConstraints(constraints, 0, 8, 1, 1, 5, 10);\n OMLabel LpartlyUnresolved = new OMLabel(this.bundle.getString(\"panel.findingOC.label.partlyUnresolved\"), false);\n LpartlyUnresolved.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.partlyUnresolved\"));\n gridbag.setConstraints(LpartlyUnresolved, constraints);\n this.add(LpartlyUnresolved);\n ConstraintsBuilder.buildConstraints(constraints, 1, 8, 2, 1, 45, 10);\n this.partlyUnresolved = new TristateCheckbox();\n this.partlyUnresolved.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.partlyUnresolved\"));\n constraints.fill = GridBagConstraints.BOTH;\n gridbag.setConstraints(this.partlyUnresolved, constraints);\n this.add(this.partlyUnresolved);\n\n ConstraintsBuilder.buildConstraints(constraints, 0, 9, 1, 1, 5, 10);\n OMLabel LcolorContrasts = new OMLabel(this.bundle.getString(\"panel.findingOC.label.colorContrasts\"), false);\n LcolorContrasts.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.colorContrasts\"));\n gridbag.setConstraints(LcolorContrasts, constraints);\n this.add(LcolorContrasts);\n ConstraintsBuilder.buildConstraints(constraints, 1, 9, 2, 1, 45, 10);\n this.colorContrasts = new TristateCheckbox();\n this.colorContrasts.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.colorContrasts\"));\n constraints.fill = GridBagConstraints.BOTH;\n gridbag.setConstraints(this.colorContrasts, constraints);\n this.add(this.colorContrasts);\n\n ConstraintsBuilder.buildConstraints(constraints, 3, 7, 1, 1, 5, 10);\n OMLabel Lcharacter = new OMLabel(this.bundle.getString(\"panel.findingOC.label.character\"), false);\n Lcharacter.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.character\"));\n constraints.anchor = GridBagConstraints.SOUTHWEST;\n constraints.fill = GridBagConstraints.HORIZONTAL;\n gridbag.setConstraints(Lcharacter, constraints);\n this.add(Lcharacter);\n ConstraintsBuilder.buildConstraints(constraints, 3, 8, 1, 2, 45, 10);\n this.characterButton = new JButton();\n this.characterButton.addActionListener(this);\n if ((this.finding != null) && (((DeepSkyFindingOC) this.finding).getCharacter() != null)) {\n Character c = ((DeepSkyFindingOC) this.finding).getCharacter();\n Image image = Toolkit.getDefaultToolkit().getImage(this.imagePath + Character.toLowerCase(c) + \".png\");\n image = image.getScaledInstance(90, 90, Image.SCALE_FAST);\n ImageIcon icon = new ImageIcon(image);\n this.characterButton.setIcon(icon);\n this.characterButton.setDisabledIcon(icon);\n this.characterButton.setText(\" \" + ((DeepSkyFindingOC) this.finding).getCharacter() + \" \");\n this.characterButton.setToolTipText(this.bundle.getString(\"dialog.oc.trait.explanation.\"\n + ((DeepSkyFindingOC) this.finding).getCharacter().toString().toLowerCase()));\n } else {\n this.characterButton.setText(this.bundle.getString(\"panel.findingOC.button.character\"));\n this.characterButton.setToolTipText(this.bundle.getString(\"panel.findingOC.tooltip.character\"));\n }\n constraints.fill = GridBagConstraints.BOTH;\n gridbag.setConstraints(this.characterButton, constraints);\n this.add(this.characterButton);\n\n ConstraintsBuilder.buildConstraints(constraints, 0, 10, 4, 1, 50, 60);\n constraints.fill = GridBagConstraints.BOTH;\n JLabel Lfill = new JLabel(\"\");\n gridbag.setConstraints(Lfill, constraints);\n this.add(Lfill);\n\n }", "private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}", "public MenuPanel() {\n initComponents();\n }", "private CompetitivePropertiesPanel(final NetworkPanel np,\r\n final CompetitivePropsPanelType panelType)\r\n throws IllegalArgumentException {\r\n if (panelType.equals(CompetitivePropsPanelType.EDIT_GROUP)) {\r\n throw new IllegalArgumentException(\"No competitive group to\"\r\n + \" edit.\");\r\n }\r\n this.networkPanel = np;\r\n this.panelType = panelType;\r\n this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\r\n if (panelType == CompetitivePropsPanelType.CREATE_GROUP) {\r\n topPanel.addItem(\"Number of neurons\", tfNumCompetitiveNeurons);\r\n } else if (panelType == CompetitivePropsPanelType.CREATE_NETWORK) {\r\n topPanel.addItem(\"Number of competitive neurons\",\r\n tfNumCompetitiveNeurons);\r\n topPanel.addItem(\"Number of input neurons\", tfNumInputNeurons);\r\n }\r\n add(topPanel);\r\n JSeparator separator = new JSeparator(SwingConstants.HORIZONTAL);\r\n add(separator);\r\n initPanel();\r\n }", "public final void initializePhasePropertiesView() {\n resetViews();\n propertiesSettingsView.initialize(phasesUI, skin);\n }", "void loadNewAnimatorPanel(ReadOnlyModel m, int width, int height);", "private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }", "@Test\n\tpublic void testPowerUpView_6()\n\t\tthrows Exception {\n\t\tGameObject gameObject = new Player(new Point());\n\t\tGfxFactory gfxFactory = new GfxFactory();\n\n\t\tPowerUpView result = new PowerUpView(gameObject, gfxFactory);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NoClassDefFoundError: common.Actor\n\t\t// at java.lang.Class.getDeclaredConstructors0(Native Method)\n\t\t// at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)\n\t\t// at java.lang.Class.getConstructor0(Class.java:2885)\n\t\t// at java.lang.Class.getDeclaredConstructor(Class.java:2058)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.findConstructor(InstanceCreationExpression.java:572)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:452)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:449)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:745)\n\t\tassertNotNull(result);\n\t}", "public JJPanel() {\n\n\t}", "public ControlPanel() {\n\t\tpanelName = null;\n\t}", "public TogglePropertiesPanelAction(Application app, @Nullable View view) {\r\n super(app, view);\r\n setPropertyName(\"propertiesPanelVisible\");\r\n ResourceBundleUtil labels = ODGLabels.getLabels();\r\n putValue(AbstractAction.NAME, labels.getString(\"propertiesPanel\"));\r\n }", "public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}", "public PanelPhysicalExam() {\n initComponents();\n setLanguage(null);\n }", "private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }", "public DemoComponentManager() {\n this(PROJECT_ROOT_PATH, DEFAULT_EFFECTS_PATHS, DEFAULT_CALCULATORS_PATHS);\n }", "public void setComponentModel( ComponentModel componentModel )\n {\n unregisterListeners();\n\n if ( componentModel == null )\n {\n return;\n }\n\n this.componentModel = componentModel;\n\n treeTable = new JTreeTable(\n new PropertyInspectorTreeTableModel( componentModel, propertyShowMode ) )\n {\n @Override\n public String getToolTipText( MouseEvent event )\n {\n String tip = showToolTip ? getToolTip( event ) : null;\n return tip;\n }\n };\n treeTable.getColumnModel().getColumn(1).setResizable( false );\n\n treeTable.getTableHeader().setReorderingAllowed( false );\n treeTable.getTree().setCellRenderer( new NameRenderer() );\n\n\n treeTable.setDefaultRenderer( Object.class, valueRenderer);\n treeTable.setDefaultEditor( Object.class, new ValueEditor(this) );\n treeTable.setIntercellSpacing( new Dimension( 2, 2 ) );\n treeTable.setShowGrid( showGrid );\n treeTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n treeTable.setRowSelectionAllowed( false );\n treeTable.setColumnSelectionAllowed( false );\n treeTable.setCellSelectionEnabled( true );\n\ntreeTable.setFocusTraversalPolicy(new java.awt.DefaultFocusTraversalPolicy());\n\n treeListener = new PropertyTreeListenerAdapter();\n\n treePane = new JScrollPane(treeTable); \n\n splitPane.setTopComponent(treePane);\n validate();\n\n selectCell( 0, 0 );\n\n if ( componentModel.isExpanded() )\n {\n restoreCollapsingState();\n }\n else\n {\n treeTable.getTree().collapseRow( 0 );\n }\n\n registerListeners();\n updateToolTipPane(componentModel);\n }", "public ManageProductPanel(JPanel belowPanel, ProductDirectory proList) {\n initComponents();\n this.belowPanel = belowPanel;\n this.proDir = proList;\n\n loadTable();\n }", "public PaletteManagerOperator() {\n super(\"Palette Manager\"); // NOI18N\n }", "public Properties(){\n\n }", "private RestrictionEnzymeManager() { }", "public TMCropperPanel() {\n initComponents();\n this.setBorder(new WorkflowModuleBorder(WorkflowModuleBorder.BLUE_SHADOW));\n }", "private void constructContainer(LayoutManager manager) {\n this.container = new JPanel();\n container.setLayout(manager);\n setGraphPanels();\n }", "public View() {\n this.view = new ViewPanel();\n //this.view.setGraph(this.graph);\n initComponents();\n this.m_algoritmos.setEnabled(false);\n this.mi_maze.setEnabled(false);\n this.mi_salvarImagem.setEnabled(false);\n }", "final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }", "public VisualView(IModel model1, int tickPerSecond) {\n super();\n this.tickPerSecond = tickPerSecond;\n panel = new MyPanel(model1, tickPerSecond);\n model = model1;\n }" ]
[ "0.71204436", "0.5936843", "0.5922817", "0.5908657", "0.58556014", "0.58494246", "0.56778735", "0.55381763", "0.54869676", "0.5453738", "0.53187263", "0.53060555", "0.5297563", "0.52740896", "0.5249677", "0.5244676", "0.52301085", "0.52102447", "0.5192969", "0.51886535", "0.5160337", "0.51571816", "0.51345396", "0.51218903", "0.51021785", "0.51005733", "0.5082044", "0.50751996", "0.5074187", "0.50740814", "0.5052615", "0.5051519", "0.50491965", "0.50481063", "0.5045984", "0.50322247", "0.50202394", "0.5009308", "0.5002046", "0.4995249", "0.49902067", "0.49701652", "0.49682358", "0.4963983", "0.49621585", "0.49474597", "0.49462473", "0.49458218", "0.4945133", "0.49399093", "0.4928735", "0.49216047", "0.49164662", "0.4907525", "0.49054635", "0.49054635", "0.49028793", "0.48847488", "0.4880614", "0.48763573", "0.4873437", "0.4872218", "0.48715052", "0.48711914", "0.48673216", "0.48635456", "0.4853371", "0.48516536", "0.48478726", "0.4842193", "0.48412693", "0.48374173", "0.48364887", "0.48196134", "0.4818309", "0.4814753", "0.4811895", "0.48092633", "0.48072404", "0.4797066", "0.4796833", "0.47968313", "0.47716025", "0.47690347", "0.47659403", "0.47655976", "0.476242", "0.47610363", "0.47590885", "0.4750819", "0.47358078", "0.4732364", "0.4729554", "0.4729538", "0.47289664", "0.47269586", "0.4724866", "0.47201478", "0.47138324", "0.47128844" ]
0.6451845
1
Tests PropertiesPanelconfigurePanel(List) for accuracy.
public void testConfigurePanel1() { Package packageObject = new PackageImpl(); List<ModelElement> modelElements = new ArrayList<ModelElement>(); modelElements.add(packageObject); instance.configurePanel(modelElements); assertEquals("Failed to configure the panel.", 4, ((JPanel) instance.getComponent(0)).getComponentCount()); assertEquals("Failed to configure the panel.", 1, ((JPanel) instance.getComponent(1)).getComponentCount()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCtor1() throws Exception {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", new PropertiesPanel(NAMESPACE, manager));\n }", "@Test\n public void testGetPropertyAsList() {\n System.out.println(\"getPropertyAsList\");\n Properties props = new Properties();\n String key = \"testProp\";\n props.setProperty(key, \"alpha, beta, gamma\");\n List<String> expResult = Arrays.asList(\"alpha\", \"beta\", \"gamma\");\n List<String> result = EngineConfiguration.getPropertyAsList(props, key);\n assertEquals(expResult, result);\n }", "public void testCtor2() {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", instance);\n }", "private void manualTestPanel() {\n\t\tJPanel manualPanel = new JPanel();\n\t\tmanualPanel.setSize(PanelsDimension);\n\t\tmanualPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tmanualPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\t\n\t\t//Title\n\t\tc.weighty = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.gridwidth = 2;\n\t\tJLabel manualConfigLabel = new JLabel(\"Manual Configuration\");\n\t\tmanualConfigLabel.setHorizontalAlignment(0);\n\t\tmanualPanel.add(manualConfigLabel, c);\n\t\t\n\t\t//ComboBox\n\t\tc.weightx = 0.7;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 1;\n\t\tc.ipady = 20;\n\t\tc.gridwidth = 1;\n\t\trulesCB = new DefaultComboBoxModel<String>();\n\t\tmanualCBRules.setPrototypeDisplayValue(\"XXXXXXXXXXXXXXXXXXXXXXXXXX\");\n\t\tmanualCBRules.setModel(rulesCB);\n\t\tmanualCBRules.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualPanel.add(manualCBRules, c);\n\t\t\n\t\t//WeigthValue\n\t\tc.weightx = 0.3;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 1;\n\t\tc.ipady = 0;\n\t\tc.gridwidth = 1;\n\t\tmanualRuleValue = new JTextField();\n\t\tmanualPanel.add(manualRuleValue, c);\n\t\t\n\t\t//Save Configurations Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualSaveValuesButton = new JButton(\"Save Manual configurations\");\n\t\tmanualSaveValuesButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetValueToRule();\n\t\t\t\t\t\tAntiSpamFilterControl.saveRulesFile(true);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualSaveValuesButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualSaveValuesButton, c);\n\t\t\n\t\t//Test Values Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 3;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualTestButton = new JButton(\"Test Values\");\n\t\tmanualTestButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t\tAntiSpamFilterControl.Evaluater(true);\n\t\t\t\t\tsetResultString(\"manual\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualTestButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualTestButton, c);\n\t\t\n\t\t//Show Results\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 4;\n\t\tc.ipady = 0;\n\t\tmanualResults = new JTextArea();\n\t\tmanualResults.setEnabled(false);\n\t\tmanualPanel.add(manualResults, c);\n\t\t\n\t\tframe.add(manualPanel);\n\t}", "public void testConfigurePanel2() {\n instance.configurePanel(new PackageImpl());\n\n assertEquals(\"Failed to configure the panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the panel.\", 1, ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "public void testRefreshPanel() {\n Package packageObject = new PackageImpl();\n instance.configurePanel(packageObject);\n\n assertEquals(\"Failed to configure the left panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the right panel.\", 1,\n ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "@Test\n\tpublic void testInformationPanel() {\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Time\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Max height\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n public void initGui()\n {\n if (this.propertyList == null || this.needsRefresh)\n {\n this.propertyList = new GuiPropertyList(this, mc);\n this.needsRefresh = false;\n }\n \n int doneWidth = Math.max(mc.fontRenderer.getStringWidth(I18n.format(\"gui.done\")) + 20, 100);\n int undoWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.tooltip.undoChanges\")) + 20;\n int resetWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.tooltip.resetToDefault\")) + 20;\n int checkWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.applyGlobally\")) + 13;\n int buttonWidthHalf = (doneWidth + 5 + undoWidth + 5 + resetWidth + 5 + checkWidth) / 2;\n this.buttonList.add(new GuiButtonExt(2000, this.width / 2 - buttonWidthHalf, this.height - 29, doneWidth, 20, I18n.format(\"gui.done\")));\n this.buttonList.add(this.btnDefaultAll = new GuiButtonExt(2001, this.width / 2 - buttonWidthHalf + doneWidth + 5 + undoWidth + 5, this.height - 29, resetWidth, 20, I18n.format(\"bspkrs.configgui.tooltip.resetToDefault\")));\n this.buttonList.add(btnUndoAll = new GuiButtonExt(2002, this.width / 2 - buttonWidthHalf + doneWidth + 5, this.height - 29, undoWidth, 20, I18n.format(\"bspkrs.configgui.tooltip.undoChanges\")));\n this.buttonList.add(chkApplyGlobally = new GuiCheckBox(2003, this.width / 2 - buttonWidthHalf + doneWidth + 5 + undoWidth + 5 + resetWidth + 5, this.height - 24, I18n.format(\"bspkrs.configgui.applyGlobally\"), false));\n \n this.checkBoxHoverChecker = new HoverChecker(chkApplyGlobally, 800);\n this.propertyList.initGui();\n }", "@Test\n\tpublic void testControlPanelButtons() {\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\n\t\tfinal int DEFAULT_ANGLE = 45;\n\t\tfinal int NEW_HEIGHT = 50;\n\t\tfinal int NEW_VELOCITY = 100;\n\t\twindow.panel(\"Control panel\").textBox(\"Angle text field\").setText(\"-12\");\n\t\twindow.panel(\"Control panel\").button(\"Set angle\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getAngleSlider().getValue() == DEFAULT_ANGLE);\n\n\t\twindow.panel(\"Control panel\").textBox(\"Height text field\").setText(\"50\");\n\t\twindow.panel(\"Control panel\").button(\"Set height\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getHeightSlider().getValue() == NEW_HEIGHT);\n\n\t\twindow.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.slideTo(NEW_VELOCITY);\n\t\tassertThat(gui.getControlPanel().getVelocityTextField().getText()\n\t\t\t\t.equals(\"\" + NEW_VELOCITY));\n\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Height slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Continue\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Stop\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Clear\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles().size() == 0);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors().size() == 0);\n\t\tfinal int EXPECTED_PROJECTILES = 3;\n\t\tfor (int i = 0; i < EXPECTED_PROJECTILES; ++i) {\n\t\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\t}\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t}", "public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }", "@When(\"verify list of options\")\n\tpublic void verify_list_of_options() {\n\t int sizeoflist = driver.findElements(By.xpath(\"//*[@class='admin-tab-menus']//child::li\")).size();\n\t\t//*[@id=\"page-content-wrapper\"]/div/div[1]/div/div[1]/ul\n\t System.out.println(\"The lists of different settings counts are: \" +sizeoflist);\n\t}", "public void testCtor_NullPropertiesPanel() throws Exception {\n try {\n new StereotypeListPropertyPanel(null, new ImageIcon(), new ImageIcon());\n fail(\"Expect IllegalArgumentException.\");\n } catch (IllegalArgumentException iae) {\n // expect\n }\n }", "ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);", "protected void setUp() throws Exception {\n // get the config manager\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"failure/config.xml\");\n\n propertiesPanel = new PropertiesPanel(umlModelManager);\n }", "@Test\r\n public void testListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> property = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"listProperty must fire on not-same list\", 1, report.getEventCount());\r\n }", "protected void setUp() throws Exception {\n TestHelper.loadSingleXMLConfig(TestHelper.NAMESPACE, TestHelper.CONFIG_FILE);\n propertiesPanel = new PropertiesPanel(new UMLModelManager());\n\n panel = new ConcurrencyPropertyPanel(propertiesPanel);\n }", "private void autoTestPanel() {\n\t\tJPanel autoPanel = new JPanel();\n\t\tautoPanel.setSize(PanelsDimension);\n\t\tautoPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tautoPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\n\t\t//Title\n\t\tc.weighty = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.gridwidth = 2;\n\t\tJLabel autoConfigLabel = new JLabel(\"Automatic Config\");\n\t\tautoConfigLabel.setHorizontalAlignment(0);\n\t\tautoPanel.add(autoConfigLabel, c);\n\t\t\n\t\t//ComboBox Auto\n\t\tc.weightx = 0.4;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 1;\n\t\tc.ipady = 20;\n\t\tc.gridwidth = 1;\t\t\n\t\tautoRulesCB = new DefaultComboBoxModel<String>();\n\t\tautoCBRules.setPrototypeDisplayValue(\"XXXXXXXXXXXXXXXXXXXXXXXXXX\");\n\t\tautoCBRules.setModel(autoRulesCB);\n\t\tautoCBRules.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tautoRuleValue.setText(AntiSpamFilterControl.getWeigthByRule(autoRulesCB.getSelectedItem().toString(), false) + \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tautoPanel.add(autoCBRules, c);\n\t\t\n\t\t//WeigthValue\n\t\tc.weightx = 0.6;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 1;\n\t\tc.ipady = 0;\n\t\tc.gridwidth = 1;\n\t\tautoRuleValue = new JTextField();\n\t\tautoPanel.add(autoRuleValue, c);\n\t\t\n\t\t\n\t\t//Save Configurations Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tautoSaveValuesButton = new JButton(\"Save Auto configurations\");\n\t\tautoSaveValuesButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetValueToRule();\n\t\t\t\t\t\tAntiSpamFilterControl.saveRulesFile(false);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tautoSaveValuesButton.setSize(frameWidth/2, 80);\n\t\tautoPanel.add(autoSaveValuesButton, c);\n\t\t\n\t\t//Test Values Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 3;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tautoTestButton = new JButton(\"Run Auto Algorithm\");\n\t\tautoTestButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\tAntiSpamFilterAutomaticConfiguration w = new AntiSpamFilterAutomaticConfiguration();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tw.run(AntiSpamFilterControl.ruleList.size());\n\t\t\t\t\t\tAntiSpamFilterControl.selectAutoConfiguration();\n\t\t\t\t\t\tsetResultString(\"auto\");\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"END Auto Config\");\n\t\t\t\t\tAntiSpamFilterControl.generateFiles();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tautoTestButton.setSize(frameWidth/2, 80);\n\t\tautoPanel.add(autoTestButton, c);\n\t\t\n\t\t//Show Results\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 4;\n\t\tc.ipady = 0;\n\t\tautoResults = new JTextArea();\n\t\tautoResults.setEnabled(false);\n\t\tautoPanel.add(autoResults, c);\n\t\t\n\t\tframe.add(autoPanel);\n\t}", "public JPanel setUpPropertyCheckBoxes(Player player) {\n JPanel propertyCheckBoxesPanel = new JPanel();\n propertyCheckBoxesPanel.setLayout(new BoxLayout(propertyCheckBoxesPanel,\n BoxLayout.Y_AXIS));\n \n for (Space space : player.getProperties()) {\n JCheckBox checkBox = new JCheckBox(space.getName());\n checkBox.setBackground(Board.getColor(space.getColorNumber()));\n checkBox.setForeground(Board.getMatchingTextColor(space.getColorNumber()));\n if (playersCheckBoxes.containsKey(player)) {\n playersCheckBoxes.get(player).put(checkBox, space);\n } else {\n Map<JCheckBox, Space> checkBoxSpaceMap = new HashMap();\n checkBoxSpaceMap.put(checkBox, space);\n playersCheckBoxes.put(player, checkBoxSpaceMap);\n }\n propertyCheckBoxesPanel.add(checkBox);\n }\n \n return propertyCheckBoxesPanel;\n }", "public void testRefreshPanel() {\n Operation element = new OperationImpl();\n element.setConcurrency(CallConcurrencyKind.CONCURRENT);\n\n panel.configurePanel(element);\n\n assertTrue(\"Failed to refresh panel correctly.\",\n ((JCheckBox) panel.retrievePanel().getComponent(0)).isSelected());\n }", "public static void viewListAllProperties() {\n\t\tArrayList<Property> prop_list = getRegControl().listOfAllProperties();\r\n\t\t// if the prop_list is empty, print out the warning message and stop the method\r\n\t\tif (prop_list.size() == 0) {\r\n\t\t\tSystem.out.println(\"Property Registry empty; no properties to display\\n\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// loop through all found properties and print out their toString()\r\n\t\tfor (Property property : prop_list) {\r\n\t\t\tSystem.out.println(property.toString());\r\n\t\t}\r\n\t}", "public Properties getPropertyInfo(Properties list);", "@Test\r\n public void testListPropertyNotificationMultipleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ChangeReport otherListener = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "public PropertiesChooserView() {\n initComponents();\n choicesModel = new DefaultListModel();\n chosenModel = new DefaultListModel();\n chooseList.setModel(choicesModel);\n chosenList.setModel(chosenModel);\n }", "public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }", "@Test @Ignore\r\n public void testListPropertyNotificationDetails() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> lp = new SimpleListProperty<>(list);\r\n ListChangeListener l = c -> FXUtils.prettyPrint(c);\r\n LOG.info(\"change from listProperty: modifying list\");\r\n lp.addListener(l);\r\n LOG.info(\"set same element\");\r\n list.set(0, list.get(0));\r\n LOG.info(\"set same list\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with two changes\r\n LOG.info(\"remove two not subsequent\");\r\n list.removeAll(list.get(1), list.get(5)); \r\n LOG.info(\"retain all with complete list\");\r\n // fires nothing \r\n list.retainAll(createObservableList(true));\r\n LOG.info(\"setAll to initial\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with 3 changes of type remove\r\n list.retainAll(list.get(0), list.get(3), list.get(7));\r\n LOG.info(\"setall with new list\");\r\n list.setAll(\"one\", \"twoorwhat\");\r\n // fires one replaced event for each element \r\n UnaryOperator<String> op = p -> {\r\n if (p.length() > 3) return p;\r\n return p + 3;\r\n }; \r\n list.replaceAll(op); \r\n // fires setAll\r\n FXCollections.replaceAll(list, \"one\", \"other\");\r\n list.removeAll(\"one\", \"two\");\r\n LOG.info(\"reset ListProperty to initial list\");\r\n lp.set(createObservableList(true));\r\n }", "PanelOptionsVisual(PanelConfigureProject panel) {\n this.panel = panel;\n\n preInitComponents();\n initComponents();\n postInitComponents();\n }", "private void storComponentProperties(){\n\t\t//IPreferenceStore prefStore = JFacePreferences.getPreferenceStore();\n\t\t//PreferenceStore prefStore = mOyster2.getPreferenceStore();\n\t\tProperties mprop = mOyster2.getProperties();\n\t\tint count = mprop.getInteger(Constants.NUMBER_OF_COLUMNS);\n\t\tfor(int i=0; i<count; i++){\n\t\t\tmprop.setString(Constants.COLUMN_TYPE+i, mprop.getDefaultString(Constants.COLUMN_TYPE+i));\n\t\t\tmprop.setString(Constants.COLUMN_NAME+i, mprop.getDefaultString(Constants.COLUMN_NAME+i));\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH+i, mprop.getDefaultString(Constants.COLUMN_WIDTH+i));\n\t\t\t/*\n\t\t\tprefStore.setToDefault(Constants.COLUMN_TYPE+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_NAME+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_WIDTH+i);\n\t\t\t*/\n\t\t}\n\t\tmprop.setString(Constants.NUMBER_OF_COLUMNS, \"\"+columns.size());\n\t\tfor(int i=0; i<columns.size(); i++){\n\t\t\tResultViewerColumnInfo colInf = getColumnInfo(i);\n\t\t\tmprop.setString(Constants.COLUMN_NAME + i, colInf.getColumnName());\n\t\t\tmprop.setString(Constants.COLUMN_TYPE + i, colInf.getColumnType());\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH + i, \"\"+colInf.getWidth());\n\t\t}\n\t\ttry{\n\t\t\tmprop.storeOn();\n\t\t\t//prefStore.save();\n\t\t}\n\t\tcatch(Exception IO){\n\t\t\tSystem.out.println(\"couldnt save properties\");\n\t\t}\n\t\t\n\t}", "@Test\r\n\tpublic void test()\r\n\t{\r\n\t\ttry {\r\n\t\t\tpanel=new Panels();\r\n\t\t\tpanel.map=new DrawMap();\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\tpanel.waveLevel=2; \r\n\t\tpanel.map.map=new int [1][1];\r\n\t\tpanel.waveInitial();\r\n\t\tassertEquals(3,panel.waveLevel);\r\n\t}", "@Test\n\tpublic void test3_checkButtons() throws GeneralLeanFtException{\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Started\");\n\t\t\t\n\t\t\t//Check that the Main window should exist\n\t\t\tassertTrue(mySet.appExistsorNot());\t\t\t\n\t\t\t\n\t\t\t//Toolbar Object\n\t\t\tToolBar toolbar = mySet.OR.MainWindow().ToolBar(); \n\n\t\t\t// Clicking the JButton displays the required frame\n\t\t\ttoolbar.getButton(\"JButton\").press();\n\t\t\t\n\t\t\t//Getting the Image Buttons in the Panel\n\t\t\tButton[] imgButtons = mySet.OR.MainWindow().ImageButtonsPanelUiObject()\n\t\t\t .findChildren(Button.class,new ButtonDescription.Builder().nativeClass(\"javax.swing.JButton\").build());\n\t\t\t \n\t\t\t//There should be 3 Image Buttons\n\t\t\tassertEquals(3, imgButtons.length);\n\t\t\t\n\t\t\t//Trigger the Mouse Entered Event for the each button in the Panel\t\t\t\t\n\t\t\tRobot robo = new Robot();\t\t\t\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\t\t\t\t\n\t\t\t\trobo.mouseMove(btn.getAbsoluteLocation().x,btn.getAbsoluteLocation().y);\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\t//Store the Original Dimension\n\t\t\tDimension orginalDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Increase the Size by Selecting the Pad Radio Button\n\t\t\tmySet.OR.MainWindow().Pad10RadioButton().click();\n\t\t\t\n\t\t\t//Verify that the radio button is checked\n\t\t\tassertTrue(mySet.OR.MainWindow().Pad10RadioButton().isChecked()==true);\n\t\t\t\n\t\t\t//Store the New Dimension\n\t\t\tDimension newDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Assert that Height Increases and Width Decreases\n\t\t\tassertTrue((newDimension.width < orginalDimension.width) && (newDimension.height > orginalDimension.height));\n\t\t\t\n\t\t\t//Click the Enabled Check box\n\t\t\tmySet.OR.MainWindow().EnabledCheckBox().click();\n\t\t\t\n\t\t\t//Check that the Check Box has been unchecked \n\t\t\tassertTrue(mySet.OR.MainWindow().EnabledCheckBox().getState()==CheckedState.UNCHECKED);\n\t\t\t\n\t\t\t//Check that all Image Buttons are disabled\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\n\t\t\t\tassertTrue(btn.isEnabled()==false);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unexpected Error Occurred. Message = \" + e.getMessage() + \"Stack Trace = \");\n\t\t\te.printStackTrace();\n\t\t\tassertTrue(false);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Finished\");\n\t\t}\n\t\t\n\t}", "@Test\n\tpublic void testGUIPanels() {\n\t\tfinal int RGB_GRAY = 238;\n\t\tColor defaultColor = new Color(RGB_GRAY, RGB_GRAY, RGB_GRAY);\n\n\t\tassertThat(window.requireEnabled());\n\t\tassertThat(window.requireVisible());\n\t\tassertThat(window.requireTitle(\"Parabolic shot!\"));\n\n\t\tassertThat(window.panel(\"Control panel\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Control panel\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireVisible());\n\n\t\tassertThat(window.panel(\"Information panel\").requireVisible());\n\t\tassertThat(window.panel(\"Information panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Information panel\").requireEnabled());\n\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireVisible());\n\t\tassertThat(window.panel(\"Parabolic shot panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireEnabled());\n\t}", "@Test\n public void testGetLoadWindows() {\n\tLoadCategoriesForm instance = new LoadCategoriesForm();\n\tList<LoadWindow> expResult = new ArrayList();\n\tinstance.setLoadWindows(expResult);\n\tList<LoadWindow> result = instance.getLoadWindows();\n\tassertEquals(expResult, result);\n }", "private void initList() {\r\n\t\tthis.panelList = new JPanel();\r\n\t\tthis.panelList.setLayout(new BoxLayout(this.panelList,\r\n\t\t\t\tBoxLayout.PAGE_AXIS));\r\n\r\n\t\tJLabel labelList = new JLabel(\"Weapons list\");\r\n\t\tlabelList.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.dlm = new DefaultListModel<String>();\r\n\t\tthis.list = new JList<String>(dlm);\r\n\t\tthis.scrollPane = new JScrollPane(this.list,\r\n\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\r\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\tthis.scrollPane.setBounds(new Rectangle(10, 10, 450, 80));\r\n\t\tthis.list.addMouseListener(this.editWeaponControl);\r\n\t\tthis.updateList();\r\n\t\tthis.panelList.add(labelList);\r\n\t\tthis.panelList.add(this.scrollPane);\r\n\t}", "public AssociationEndsPropertyPanel(PropertiesPanel propertiesPanel) {\n super(Collections.singletonList(PropertyKind.ASSOCIATION_ENDS_LINK), propertiesPanel);\n\n JPanel panel = retrievePanel();\n Util.setFixedSize(panel, 230, 50);\n\n panel.setLayout(new GridBagLayout());\n\n // initializes the two labels for the two association ends\n // the foreground colors are set to BLUE and the cursors are set to hand cursor\n labelAssociationEnd1 = new JLabel();\n labelAssociationEnd1.setForeground(new Color(4, 87, 162));\n labelAssociationEnd1.setCursor(new Cursor(Cursor.HAND_CURSOR));\n labelAssociationEnd2 = new JLabel();\n labelAssociationEnd2.setForeground(new Color(4, 87, 162));\n labelAssociationEnd2.setCursor(new Cursor(Cursor.HAND_CURSOR));\n\n panel.setBorder(BorderFactory.createTitledBorder(\"Association Ends\"));\n\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 1;\n constraints.fill = GridBagConstraints.BOTH;\n constraints.insets = new Insets(-5, 40, 0, 0);\n panel.add(labelAssociationEnd1, constraints);\n constraints.gridx = 1;\n constraints.insets = new Insets(-5, 0, 0, 0);\n panel.add(labelAssociationEnd2, constraints);\n\n // Creates an MouseListener instance and assign it to the two labels for association ends\n MouseListener listener = new MouseAdapter() {\n /**\n * <p>\n * Invoked when the mouse has been clicked on a component.\n * </p>\n *\n * <p>\n * When the <code>JLabel</code> is clicked, this method will be invoked\n * </p>\n *\n * @param e an event which indicates that a mouse action occurred in a component\n */\n public void mouseClicked(MouseEvent e) {\n JLabel label = (JLabel) e.getSource();\n\n // The logic will be executed only when all the configured model elements have\n // the same first and second association ends\n if (label.getText().length() > 0) {\n Association association = (Association) getConfiguredModelElements().get(0);\n List<AssociationEnd> ends = association.getConnections();\n\n if (label == labelAssociationEnd1) {\n // configure the panel with the first association end\n if (ends.size() > 0) {\n //getPropertiesPanel().fireSelectionChangeEvent(association);\n getPropertiesPanel().configurePanel(ends.get(0));\n getPropertiesPanel().fireSelectionChangeEvent(ends.get(0));\n\n // set it visible back, since listeners may hide it\n getPropertiesPanel().setVisible(true);\n }\n } else {\n // configure the panel with the second association end\n if (ends.size() > 1) {\n getPropertiesPanel().configurePanel(ends.get(1));\n getPropertiesPanel().fireSelectionChangeEvent(ends.get(1));\n\n // set it visible back, since listeners may hide it\n getPropertiesPanel().setVisible(true);\n }\n }\n }\n }\n };\n\n // install the mouse listener to the two labels\n labelAssociationEnd1.addMouseListener(listener);\n labelAssociationEnd2.addMouseListener(listener);\n }", "public Properties getProperties(Properties getList);", "@Test\r\n public void testListPropertyNotificationSingleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "@Test(groups = {\"Sprint54\"}, description = \"Search bar should not be availble in Listing pane and properties pane layout.\")\r\n\tpublic void SprintTest54_1_20_6() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select No Java applet, no task area layout and save the settings\r\n\t\t\t//-------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value); //Sets as Listing pane and properties pane layout\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getLayout().equalsIgnoreCase(Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value)) //Verifies if Listing pane and properties pane layout is selected\r\n\t\t\t\tthrow new Exception(\"Default layout is not selected.\");\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Saves the settings\r\n\t\t\t\tthrow new Exception(\"Settings are not saved properly.\");\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout is selected and settings are saved.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and click Advanced Search in search pane\r\n\t\t\t//--------------------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page.\");\r\n\r\n\t\t\t//Verification : Verify if advanced search is displayed\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tif (!homePage.isSearchbarPresent()) //Verifies if Advanced search is displayed in No Java applet, no task area, but show Go To shortcuts layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Search is not displayed in \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Search bar is displayed in \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout.\", driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "public void testGetArenaDisplayConfigItems() throws Exception {\n final List items = arenaWrapperBean.getArenaDisplayConfigItems();\n assertFalse(items.isEmpty());\n assertEquals(getViewDisplayConfigs().size(), items.size());\n\n // check state of wrappers\n for (int i = 0; i < items.size(); i++) {\n ArenaDisplayConfigItemWrapper itemWrapper = (ArenaDisplayConfigItemWrapper) items.get(i);\n assertEquals(selectedDisplayConfigItems[i].getId(), itemWrapper.getSelectedItemId());\n assertEquals(selectedDisplayConfigItems[i].getDisplayConfig().getLabel(), itemWrapper.getLabel());\n assertEquals(selectedDisplayConfigItems[i].getDisplayConfig().getDisplayConfigItems(), itemWrapper.getDisplayConfigItems());\n }\n }", "@Test\n\tpublic void addButtons__wrappee__PlaylistTest() throws Exception {\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.ogg &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.volumecontrol &&\n\t\t\t\tConfiguration.shufflerepeat &&\n\t\t\t\tConfiguration.playlist\n\t\t) {\n\t\t\tstart();\n\t\t\t\n\t\t\t\n\t\t\tWhitebox.invokeMethod(gui, \"addButtons__wrappee__Playlist\");\n\t\t\tJScrollPane scroll = (JScrollPane) MemberModifier.field(Application.class, \"scrollPane\").get(gui);\n\t\t\tassertTrue(scroll.getBounds().getX() == 361);\n\t\t\tassertTrue(scroll.getBounds().getY() == 49);\n\t\t\tassertTrue(scroll.getBounds().getWidth() == 409);\n\t\t\tassertTrue(scroll.getBounds().getHeight() == 264);\n\t\t}\n\t}", "public void setProperties(Properties setList);", "@Test\n public void showPanelWhenUserEnablesPanel() throws Throwable {\n Utils.openDrawer(getActivityTestRule());\n clickAdapterViewItem(10, R.id.navigation_drawer); //Show preference screen\n SharedPreferences.Editor edit = PreferenceManager.getDefaultSharedPreferences(getActivity()).edit();\n edit.putBoolean(Settings.KEY_PREF_SHOW_NOW_PLAYING_PANEL, false);\n edit.apply();\n pressBack();\n\n Utils.openDrawer(getActivityTestRule());\n clickAdapterViewItem(10, R.id.navigation_drawer); //Show preference screen\n edit.putBoolean(Settings.KEY_PREF_SHOW_NOW_PLAYING_PANEL, true);\n edit.apply();\n pressBack();\n\n waitForPanelState(BottomSheetBehavior.STATE_COLLAPSED);\n }", "@Test(enabled = false)\n public void addPropertyInCompositionScreenTest() throws Exception {\n ResourceReqDetails vfMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());\n ResourceUIUtils.createVF(vfMetaData, getUser());\n\n ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();\n\n CompositionPage.showPropertiesAndAttributesTab();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = CompositionPage.getProperties().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n AssertJUnit.assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> CompositionPage.getProperties()));\n }", "public PropertiesChooser(List<KeyItem> data) {\n\n DefaultListModel defaultListModel = new DefaultListModel();\n for (KeyItem item : data){\n defaultListModel.addElement(item);\n }\n\n initComponents();\n properties.setModel(defaultListModel);\n cbGetters.getModel().setSelected(paramGetters);\n cbBoolean.getModel().setSelected(paramBoolean);\n cbSetters.getModel().setSelected(paramSetters);\n cbJavaDoc.getModel().setSelected(paramJavaDoc);\n cbDomainClass.getModel().setSelected(paramDomainClass);\n }", "@Test\n public void testGetPanel()\n {\n assertNotNull(MusicPlayer.getInstance().getPanel());\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "private void makePanelList() {\r\n if (panelList == null) {\r\n panelList = makePanel(jframe, BorderLayout.CENTER,\r\n \"List of Tasks\", 180, 50, 200, 25);\r\n list = makeList(10, 10, 100, 470, 500);\r\n\r\n JButton clickUpdate = makeButton(\"updateTask\", \"Update\",\r\n 20, 620, 100, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton clickDelete = makeButton(\"deleteTask\", \"Delete\",\r\n 125, 620, 100, 25, JComponent.CENTER_ALIGNMENT, null);\r\n\r\n JButton clickComplete = makeButton(\"completeTask\", \"Complete\",\r\n 230, 620, 100, 25, JComponent.CENTER_ALIGNMENT, null);\r\n\r\n JButton clickIncomplete = makeButton(\"IncompleteTask\", \"UndoComplete\",\r\n 335, 620, 130, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton clickCreate = makeButton(\"newTask\", \"Create A Task\",\r\n 175, 670, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton showComplete = makeButton(\"showComplete\", \"Show Completed\",\r\n 175, 700, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n showComplete.getModel().setPressed(showCompleted);\r\n\r\n JButton clickSave = makeButton(\"saveTodo\", \"Save List\",\r\n 175, 730, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n addElementsToPanelList(list, clickUpdate, clickDelete, clickComplete, clickIncomplete, clickCreate,\r\n showComplete, clickSave);\r\n }\r\n }", "public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}", "public Result testGetPropertyDescriptors() {\n beanInfo.getPropertyDescriptors();\n PropertyDescriptor[] propertyDescriptors = beanInfo\n .getPropertyDescriptors();\n assertTrue(findProperty(\"property8\", propertyDescriptors));\n assertTrue(findProperty(\"class\", propertyDescriptors));\n assertEquals(propertyDescriptors.length, 2);\n return passed();\n }", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = { \"Sprint54\", \"Get Hyperlink\"}, \r\n\t\t\tdescription = \"Listing pane only layout will be displayed for hyperlink url on selecting Listing pane only layout in configuration and default in hyperlink dialog - Context menu.\")\r\n\tpublic void SprintTest54_1_30_7A_1(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConcurrentHashMap <String, String> dataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//---------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select Listing pane layout layout and save the settings\r\n\t\t\t//--------------------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_ListingPaneOnly.Value); //Sets as Listing pane layout\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getLayout().equalsIgnoreCase(Caption.ConfigSettings.Config_ListingPaneOnly.Value)) //Verifies if Listing pane and properties pane layout is selected\r\n\t\t\t\tthrow new Exception(Caption.ConfigSettings.Config_ListingPaneOnly.Value + \" layout is not selected.\");\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Saves the settings\r\n\t\t\t\tthrow new Exception(\"Settings are not saved properly.\");\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. \" + Caption.ConfigSettings.Config_ListingPaneOnly.Value + \" layout is selected and settings are saved.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and navigate to any view\r\n\t\t\t//-------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\r\n\t\t\tString viewToNavigate = SearchPanel.searchOrNavigatetoView(driver, dataPool.get(\"NavigateToView\"), dataPool.get(\"ObjectName\"));\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page and navigated to '\" + viewToNavigate + \"' view.\");\r\n\r\n\t\t\t//Step-4 : Open Get Hyperlink dialog for the object from context menu\r\n\t\t\t//-------------------------------------------------------------------\r\n\t\t\tif (!homePage.listView.rightClickItem(dataPool.get(\"ObjectName\"))) //Selects the Object in the list\r\n\t\t\t\tthrow new Exception(\"Object (\" + dataPool.get(\"ObjectName\") + \") is not got selected.\");\r\n\r\n\t\t\thomePage.listView.clickContextMenuItem(Caption.MenuItems.GetMFilesWebURL.Value); //Selects Get Hyperlink from context menu\r\n\r\n\t\t\tMFilesDialog mfilesDialog = new MFilesDialog(driver); //Instantiating MFilesDialog wrapper class\r\n\r\n\t\t\tif (!mfilesDialog.isGetMFilesWebURLDialogOpened()) //Checks for MFiles dialog title\r\n\t\t\t\tthrow new Exception(\"M-Files dialog with 'Get Hyperlink' title is not opened.\");\r\n\r\n\t\t\tLog.message(\"4. Hyperlink dialog of an object (\" + dataPool.get(\"ObjectName\") + \") is opened through context menu.\");\r\n\r\n\t\t\t//Step-5 : Copy the link from text box and close the Get Hyperlink dialog\r\n\t\t\t//-----------------------------------------------------------------------\r\n\t\t\tString hyperlinkText = mfilesDialog.getHyperlink(); //Gets the hyperlink\r\n\t\t\tmfilesDialog.close(); //Closes the Get Hyperlink dialog\r\n\r\n\t\t\tLog.message(\"5. Hyperlink is copied and Get Hyperlink dialog is closed.\");\r\n\r\n\t\t\t//Step-6 : Open the copied Hyperlink in the browser\r\n\t\t\t//-------------------------------------------------\r\n\t\t\thomePage = Utility.navigateToPage(driver, hyperlinkText, userName, password, \"\"); //Navigates to the hyperlink url\r\n\r\n\r\n\t\t\tif (!driver.getCurrentUrl().equalsIgnoreCase(hyperlinkText))\r\n\t\t\t\tthrow new Exception (\"Browser is not opened with copied object Hyperlink.[Expected URL: \"+hyperlinkText+\" & Current URL : \"+ driver.getCurrentUrl() +\"]\");\r\n\r\n\t\t\tLog.message(\"6. Object Hyperlink is opened in the browser.\");\r\n\r\n\t\t\t//Verification : Verify if default layout is displayed\r\n\t\t\t//----------------------------------------------------\r\n\t\t\tString unAvailableLayouts = \"\";\r\n\r\n\t\t\tif (homePage.isSearchbarPresent()) //Checks if Search bar present\r\n\t\t\t\tunAvailableLayouts = \"Search Bar is available;\";\r\n\r\n\t\t\tif (homePage.isTaskPaneDisplayed()) //Checks if Task Pane present\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Task Pane is available;\";\r\n\r\n\t\t\tif (homePage.previewPane.isTabExists(Caption.PreviewPane.MetadataTab.Value))\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Properties Pane is available;\";\r\n\r\n\t\t\tif (homePage.menuBar.isMenuInMenubarDisplayed()) //Checks if Menu Bar present\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Menu Bar is available;\";\r\n\r\n\t\t\tif (homePage.menuBar.isBreadCrumbDisplayed()) //Checks if Breadcrumb present\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Breadcrumb is available;\";\r\n\r\n\t\t\tif (homePage.taskPanel.isAppletEnabled())\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Java Applet is available;\";\r\n\r\n\t\t\tif (!homePage.isListViewDisplayed())\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"List View is not available;\";\r\n\r\n\t\t\tif (homePage.isTreeViewDisplayed())\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Tree View is available;\";\r\n\r\n\t\t\tif (unAvailableLayouts.equals(\"\")) //Verifies default layout have selected default custom layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Hyperlink URL page is displayed as .\" + Caption.ConfigSettings.Config_ListingPaneOnly.Value);\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Few layots are not as expected on selecting \" + Caption.ConfigSettings.Config_ListingPaneOnly.Value + \". Refer additional information : \" \r\n\t\t\t\t\t\t+ unAvailableLayouts, driver);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\r\n\t\t} //End finally\r\n\r\n\t}", "public JPanel getSettingsPanel() {\n\t\t//edgeAttributeHandler.updateAttributeList();\n\t\t// Everytime we ask for the panel, we want to update our attributes\n\t\tTunable attributeTunable = clusterProperties.get(\"attributeList\");\n\t\tattributeArray = getAllAttributes();\n\t\tattributeTunable.setLowerBound((Object)attributeArray);\n\n\t\treturn clusterProperties.getTunablePanel();\n\t}", "@Override\n public void setupPanel()\n {\n\n }", "@Test(enabled = false)\n public void addUpdateDeleteSimplePropertiesToDCAEAssetTest() throws Exception {\n createDCAEAsset();\n\n ResourceGeneralPage.getLeftMenu().moveToPropertiesScreen();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = PropertiesPage.getElemenetsFromTable().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> PropertiesPage.getElemenetsFromTable()));\n VfVerificator.verifyPropertiesInUI(propertyList);\n PropertiesPage.verifyTotalProperitesField(propertiesCount + propertyList.size());\n\n PropertyTypeEnum prop = propertyList.get(0);\n prop.setDescription(\"updatedDescription\");\n prop.setValue(\"value\");\n PropertiesUIUtils.updateProperty(prop);\n\n PropertiesPage.clickDeletePropertyArtifact(prop.getName());\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size() - 1, () -> PropertiesPage.getElemenetsFromTable()));\n }", "@Test\n public void testGetSETTINGS() {\n System.out.println(\"getSETTINGS\");\n List<Setting> expResult = null;\n List<Setting> result = Setting.getSETTINGS();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void verify_Alternateproperty(String[] propertynames)\r\n\t{\r\n\t\tList<String>lst=new ArrayList<String>();\r\n\t\tfor(WebElement propertys:Alternateproperty_name)\t\r\n\t\t{\t\r\n\t\t\tlst.add(propertys.getText());\r\n\t\t}\r\n\t\tfor(int i=0;i<propertynames.length;i++)\t\t\r\n\t\t{\r\n\t\t\tif(lst.contains(propertynames[i]))\r\n\t\t\t{\r\n\t\t\t\ttest.log(Status.PASS, \"Alternate Property \"+propertynames[i]+\" displayed successfully\");\r\n\t\t\t\tlogger.info(\"Alternate Property \"+propertynames[i]+\" displayed successfully\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttest.log(Status.FAIL, \"Alternate Property \"+propertynames[i]+\" not found in Booking Engine\");\r\n\t\t\t\tlogger.error(\"Alternate Property \"+propertynames[i]+\" not found in Booking Engine\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n @CoversAttributes(\"orderable\")\n public void testOrderable() {\n pickListAttributes.set(PickListAttributes.orderable, Boolean.FALSE);\n assertNotPresent(pickList.advanced().getBottomButtonElement(), \"Button should not be present\");\n assertNotPresent(pickList.advanced().getDownButtonElement(), \"Button should not be present\");\n assertNotPresent(pickList.advanced().getTopButtonElement(), \"Button should not be present\");\n assertNotPresent(pickList.advanced().getUpButtonElement(), \"Button should not be present\");\n // then make sure that controls appear near pickList when allow ordering behavior\n pickListAttributes.set(PickListAttributes.orderable, Boolean.TRUE);\n assertVisible(pickList.advanced().getBottomButtonElement(), \"Button should be visible\");\n assertVisible(pickList.advanced().getDownButtonElement(), \"Button should be visible\");\n assertVisible(pickList.advanced().getTopButtonElement(), \"Button should be visible\");\n assertVisible(pickList.advanced().getUpButtonElement(), \"Button should be visible\");\n // then add some items to target list\n pickList.addMultiple(ChoicePickerHelper.byIndex().index(0).index(1).index(2));\n // all items should remain selected and in this case ordering controls should be disabled\n assertEquals(pickList.advanced().getTargetList().getItems().size(), 3);\n for (ListItem item : pickList.advanced().getTargetList().getItems()) {\n assertTrue(item.getRootElement().getAttribute(\"class\").contains(\"rf-pick-sel\"));\n }\n // so check ordering controls if they are disabled\n assertButtonDisabled(pickList.advanced().getBottomButtonElement());\n assertButtonDisabled(pickList.advanced().getDownButtonElement());\n assertButtonDisabled(pickList.advanced().getTopButtonElement());\n assertButtonDisabled(pickList.advanced().getUpButtonElement());\n // now is time to select one item. This should cause ordering controls enable\n pickList.advanced().getTargetList().getItem(0).select(true);\n // since it was first item, \"Down\" and \"Last\" buttons should be enabled\n assertButtonEnabled(pickList.advanced().getBottomButtonElement());\n assertButtonEnabled(pickList.advanced().getDownButtonElement());\n assertButtonDisabled(pickList.advanced().getTopButtonElement());\n assertButtonDisabled(pickList.advanced().getUpButtonElement());\n // move first item to last\n OrderingList orderingTargetList = pickList.advanced().getOrderTargetList();\n List<? extends ListItem> items = pickList.advanced().getTargetList().getItems();\n List<String> targetStrings = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(), items.get(2)\n .getText());\n\n orderingTargetList.select(0).putItAfter(2);\n // verify that previously first item is now the last item (select 3rd item, and verify text)\n items = pickList.advanced().getTargetList().getItems();\n List<String> targetStringsAfter = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(),\n items.get(2).getText());\n targetStrings.add(targetStrings.remove(0));\n assertEquals(targetStringsAfter, targetStrings);\n // then move this item one step \"up\"\n orderingTargetList.select(2).putItBefore(1);\n // and then verify if all items are submitted in user defined order as well\n submitAjax();\n items = pickList.advanced().getTargetList().getItems();\n targetStrings = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(), items.get(2).getText());\n assertEquals(output.getText(), targetStrings.toString());\n }", "public void testCtor() {\n assertNotNull(\"Failed to create a new ConcurrencyPropertyPanel instance.\", panel);\n }", "@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}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"Controls 'Save view settings'\")\r\n\tpublic void SprintTest25_10_4A(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the controls link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault + \">>\" + Caption.ConfigSettings.Config_Controls.Value);\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the controls link.\");\r\n\r\n\t\t\t//Verification: To verify the 'Save view settings'\r\n\t\t\t//--------------------------------------------------\r\n\t\t\tList<WebElement> row = driver.findElements(By.cssSelector(\"div[id='configControls']>table>tbody>tr>td\"));\r\n\t\t\tint count = 0;\r\n\t\t\tfor(count = 0; count < row.size(); count++) {\r\n\t\t\t\tif(row.get(count).getText().contains(dataPool.get(\"Label\")))\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif(count != row.size()) {\r\n\t\t\t\trow = row.get(count+1).findElements(By.cssSelector(\"span\"));\r\n\t\t\t\tif(row.get(0).getText().contains(dataPool.get(\"Allow\")) && row.get(1).getText().contains(dataPool.get(\"Disallow\")))\r\n\t\t\t\t\tLog.pass(\"Test Case Passed. The Text changes for Save View settings was verified successfully.\");\r\n\t\t\t\telse\r\n\t\t\t\t\tLog.fail(\"Test Case Failed. The Text changes for the 'Allow & Disallow' of save view settings was not as expected.\", driver);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The option \" + dataPool.get(\"Label\") + \" was not found.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "void initProperties()\n\t{\n\t\tpropertyPut(LIST_SIZE, 10);\n\t\tpropertyPut(LIST_LINE, 1);\n\t\tpropertyPut(LIST_MODULE, 1); // default to module #1\n\t\tpropertyPut(COLUMN_WIDTH, 70);\n\t\tpropertyPut(UPDATE_DELAY, 25);\n\t\tpropertyPut(HALT_TIMEOUT, 7000);\n\t\tpropertyPut(BPNUM, 0);\t\t\t\t// set current breakpoint number as something bad\n\t\tpropertyPut(LAST_FRAME_DEPTH, 0);\t\t// used to determine how much context information should be displayed\n\t\tpropertyPut(CURRENT_FRAME_DEPTH, 0); // used to determine how much context information should be displayed\n\t\tpropertyPut(DISPLAY_FRAME_NUMBER, 0); // houses the current frame we are viewing\n\t\tpropertyPut(FILE_LIST_WRAP, 999999); // default 1 file name per line\n\t\tpropertyPut(NO_WAITING, 0);\n\t\tpropertyPut(INFO_STACK_SHOW_THIS, 1); // show this pointer for info stack\n\t}", "public ManageProductPanel(JPanel belowPanel, ProductDirectory proList) {\n initComponents();\n this.belowPanel = belowPanel;\n this.proDir = proList;\n\n loadTable();\n }", "public static void main(String[] args){\n PropertiesDemo.check();\n }", "void updateProperties(@NotNull List<NlComponent> components,\n @NotNull Map<String, NlProperty> properties,\n @NotNull PropMgr propertiesManager);", "@Test(groups = {\"Sprint54\"}, description = \"Search bar should not be availble in Listing pane only layout.\")\r\n\tpublic void SprintTest54_1_20_7() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select Listing pane only and save the settings\r\n\t\t\t//-------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_ListingPaneOnly.Value); //Sets as Listing pane only layout\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getLayout().equalsIgnoreCase(Caption.ConfigSettings.Config_ListingPaneOnly.Value)) //Verifies if Listing pane only layout is selected\r\n\t\t\t\tthrow new Exception(\"Default layout is not selected.\");\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Saves the settings\r\n\t\t\t\tthrow new Exception(\"Settings are not saved properly.\");\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. \" + Caption.ConfigSettings.Config_ListingPaneOnly.Value + \" layout is selected and settings are saved.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and click Advanced Search in search pane\r\n\t\t\t//--------------------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page.\");\r\n\r\n\t\t\t//Verification : Verify if advanced search is displayed\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tif (!homePage.isSearchbarPresent()) //Verifies if Advanced search is displayed in No Java applet, no task area, but show Go To shortcuts layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Search is not displayed in \" + Caption.ConfigSettings.Config_ListingPaneOnly.Value + \" layout.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Search bar is displayed in \" + Caption.ConfigSettings.Config_ListingPaneOnly.Value + \" layout.\", driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "public void rebuild()\n {\n this.tilePropertyPanel.table.clearChildren();\n this.spritePropertyPanel.table.clearChildren();\n this.mapPropertyPanel.removeablePropertyPanel.table.clearChildren();\n if(map.selectedLayer != null)\n {\n this.layerPropertyPanel.setVisible(true);\n this.layerPropertyPanel.layerWidthProperty.value.setText(Integer.toString(map.selectedLayer.width));\n this.layerPropertyPanel.layerHeightProperty.value.setText(Integer.toString(map.selectedLayer.height));\n this.layerPropertyPanel.layerZProperty.value.setText(Float.toString(map.selectedLayer.z));\n }\n else\n this.layerPropertyPanel.setVisible(false);\n if(map.tileMenu.selectedTiles.size == 1)\n {\n if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.TILE)\n {\n Array<PropertyField> tileProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < tileProperties.size; i++)\n this.tilePropertyPanel.table.add(tileProperties.get(i)).padBottom(1).row();\n this.tilePropertyPanel.setVisible(true);\n }\n else if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.SPRITE)\n {\n Array<PropertyField> spriteProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n }\n if(map.selectedSprites.size > 0)\n {\n Array<PropertyField> spriteProperties = map.selectedSprites.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n if(map.selectedSprites.size == 0 && map.tileMenu.selectedTiles.size == 0)\n {\n for(int i = 0; i < mapPropertyPanel.properties.size; i ++)\n {\n this.mapPropertyPanel.removeablePropertyPanel.table.add(mapPropertyPanel.properties.get(i)).padBottom(1).row();\n }\n this.mapPropertyPanel.removeablePropertyPanel.setVisible(true);\n }\n if(this.layerPropertyPanel.isVisible())\n this.layerPropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.layerPropertyPanel.setSize(getWidth(), 0);\n if(this.tilePropertyPanel.isVisible())\n this.tilePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.tilePropertyPanel.setSize(getWidth(), 0);\n if(this.spritePropertyPanel.isVisible())\n this.spritePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.spritePropertyPanel.setSize(getWidth(), 0);\n if(this.mapPropertyPanel.removeablePropertyPanel.isVisible())\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), 0);\n\n this.propertyPanel.rebuild();\n this.propertyTable.invalidateHierarchy();\n\n setSize(getWidth(), getHeight()); // refits everything\n }", "public void listarParametros(String idPanel) throws Exception;", "@Test\r\n public void testListPropertyAdapterSetEqualListOnObjectProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = listProperty(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n ChangeReport report = new ChangeReport(listProperty);\r\n objectProperty.set(otherList);\r\n assertEquals(\"must fire change on setting list to objectProperty\", 1, report.getEventCount());\r\n }", "@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListValuedObjectPropertyChange() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"not supported: \\n list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }", "public PropertiesView(){\n\n\t\tbtnDescTemplate = new DescTemplateWidget(this);\n\t\tbtnCalculation = new DescTemplateWidget(this);\n\n\t\ttable.setWidget(0, 0, new Label(LocaleText.get(\"text\")));\n\t\ttable.setWidget(1, 0, new Label(LocaleText.get(\"helpText\")));\n\t\ttable.setWidget(2, 0, new Label(LocaleText.get(\"type\")));\n\t\ttable.setWidget(3, 0, new Label(LocaleText.get(\"binding\")));\n\t\ttable.setWidget(4, 0, new Label(LocaleText.get(\"visible\")));\n\t\ttable.setWidget(5, 0, new Label(LocaleText.get(\"enabled\")));\n\t\ttable.setWidget(6, 0, new Label(LocaleText.get(\"locked\")));\n\t\ttable.setWidget(7, 0, new Label(LocaleText.get(\"required\")));\n\t\ttable.setWidget(8, 0, new Label(LocaleText.get(\"defaultValue\")));\n\t\ttable.setWidget(9, 0, new Label(LocaleText.get(\"calculation\")));\n\t\t\n\t\tlblDescTemplate = new Label(LocaleText.get(\"descriptionTemplate\"));\n\t\ttable.setWidget(10, 0, lblDescTemplate);\n\t\ttable.setWidget(11, 0, new Label(LocaleText.get(\"formKey\")));\n\n\t\ttable.setWidget(0, 1, txtText);\n\t\ttable.setWidget(1, 1, txtHelpText);\n\t\ttable.setWidget(2, 1, cbDataType);\n\t\ttable.setWidget(3, 1, txtBinding);\n\t\ttable.setWidget(4, 1, chkVisible);\n\t\ttable.setWidget(5, 1, chkEnabled);\n\t\ttable.setWidget(6, 1, chkLocked);\n\t\ttable.setWidget(7, 1, chkRequired);\n\t\ttable.setWidget(8, 1, txtDefaultValue);\n\n\t\tHorizontalPanel panel = new HorizontalPanel();\n\t\tpanel.add(txtCalculation);\n\t\tpanel.add(btnCalculation);\n\t\tpanel.setCellWidth(btnCalculation, \"20%\");\n\t\tFormUtil.maximizeWidget(txtCalculation);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(9, 1, panel);\n\n\t\tpanel = new HorizontalPanel();\n\t\tpanel.add(txtDescTemplate);\n\t\tpanel.add(btnDescTemplate);\n\t\tpanel.setCellWidth(btnDescTemplate, \"20%\");\n\t\tFormUtil.maximizeWidget(txtDescTemplate);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(10, 1, panel);\n\t\t\n\t\ttable.setWidget(11, 1, txtFormKey);\n\n\t\ttable.setStyleName(\"cw-FlexTable\");\n\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeText\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeNumber\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDecimal\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDate\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDateTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBoolean\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeMultSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeRepeat\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypePicture\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeVideo\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeAudio\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelectDynamic\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeGPS\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBarcode\"));\n\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\n\t\tcellFormatter.setHorizontalAlignment(15, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\n\t\ttable.setWidth(\"100%\");\n\t\tcellFormatter.setWidth(0, 0, \"20%\");\n\t\t//cellFormatter.setColSpan(0, 0, 2);\n\t\t\n\t\t//cellFormatter.setWidth(9, 0, \"20\"+PurcConstants.UNITS);\n\t\t//cellFormatter.setWidth(9, 1, \"20\"+PurcConstants.UNITS);\n\n\t\ttxtText.setWidth(\"100%\");\n\t\ttxtHelpText.setWidth(\"100%\");\n\t\ttxtBinding.setWidth(\"100%\");\n\t\ttxtDefaultValue.setWidth(\"100%\");\n\t\tcbDataType.setWidth(\"100%\");\n\t\ttxtFormKey.setWidth(\"100%\");\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tverticalPanel.setSpacing(5);\n\t\tverticalPanel.add(table);\n\n\t\tDecoratedTabPanel tabs = new DecoratedTabPanel();\n\t\ttabs.add(skipRulesView, LocaleText.get(\"skipLogic\"));\n\t\ttabs.add(validationRulesView, LocaleText.get(\"validationLogic\"));\n\t\ttabs.add(dynamicListsView, LocaleText.get(\"dynamicLists\"));\n\n\t\ttabs.selectTab(0);\n\t\tverticalPanel.add(tabs);\n\t\tFormUtil.maximizeWidget(tabs);\n\n\t\tFormUtil.maximizeWidget(verticalPanel);\n\t\tinitWidget(verticalPanel);\n\n\t\tsetupEventListeners();\n\n\t\tcbDataType.setSelectedIndex(-1);\n\n\t\tenableQuestionOnlyProperties(false);\n\t\ttxtText.setEnabled(false);\n\t\t//txtDescTemplate.setVisible(false);\n\t\t//btnDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\t\ttxtCalculation.setEnabled(false);\n\t\tbtnCalculation.setEnabled(false);\n\t\ttxtBinding.setEnabled(false);\n\n\t\ttxtText.setTitle(LocaleText.get(\"questionTextDesc\"));\n\t\ttxtHelpText.setTitle(LocaleText.get(\"questionDescDesc\"));\n\t\ttxtBinding.setTitle(LocaleText.get(\"questionIdDesc\"));\n\t\ttxtDefaultValue.setTitle(LocaleText.get(\"defaultValDesc\"));\n\t\tcbDataType.setTitle(LocaleText.get(\"questionTypeDesc\"));\n\n\t\tDOM.sinkEvents(getElement(), Event.ONKEYDOWN | DOM.getEventsSunk(getElement()));\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = { \"Sprint54\", \"Get Hyperlink\"}, \r\n\t\t\tdescription = \"Listing pane and properties pane only layout will be displayed for hyperlink url on selecting Listing pane and properties pane only layout in configuration and default in hyperlink dialog - Context menu.\")\r\n\tpublic void SprintTest54_1_30_6A_1(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConcurrentHashMap <String, String> dataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, true);\r\n\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//---------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select Listing pane and properties pane layout layout and save the settings\r\n\t\t\t//------------------------------------------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value); //Sets as Listing pane and properties pane layout\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getLayout().equalsIgnoreCase(Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value)) //Verifies if Listing pane and properties pane layout is selected\r\n\t\t\t\tthrow new Exception(Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout is not selected.\");\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Saves the settings\r\n\t\t\t\tthrow new Exception(\"Settings are not saved properly.\");\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout is selected and settings are saved.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and navigate to any view\r\n\t\t\t//-------------------------------------------------------------\r\n\t\t\thomePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\r\n\t\t\tString viewToNavigate = SearchPanel.searchOrNavigatetoView(driver, dataPool.get(\"NavigateToView\"), dataPool.get(\"ObjectName\"));\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page and navigated to '\" + viewToNavigate + \"' view.\");\r\n\r\n\t\t\t//Step-4 : Open Get Hyperlink dialog for the object from context menu\r\n\t\t\t//-------------------------------------------------------------------\r\n\t\t\tif (!homePage.listView.rightClickItem(dataPool.get(\"ObjectName\"))) //Selects the Object in the list\r\n\t\t\t\tthrow new Exception(\"Object (\" + dataPool.get(\"ObjectName\") + \") is not got selected.\");\r\n\r\n\t\t\thomePage.listView.clickContextMenuItem(Caption.MenuItems.GetMFilesWebURL.Value); //Selects Get Hyperlink from context menu\r\n\r\n\t\t\tMFilesDialog mfilesDialog = new MFilesDialog(driver); //Instantiating MFilesDialog wrapper class\r\n\r\n\t\t\tif (!mfilesDialog.isGetMFilesWebURLDialogOpened()) //Checks for MFiles dialog title\r\n\t\t\t\tthrow new Exception(\"M-Files dialog with 'Get Hyperlink' title is not opened.\");\r\n\r\n\t\t\tLog.message(\"4. Hyperlink dialog of an object (\" + dataPool.get(\"ObjectName\") + \") is opened through context menu.\");\r\n\r\n\t\t\t//Step-5 : Copy the link from text box and close the Get Hyperlink dialog\r\n\t\t\t//-----------------------------------------------------------------------\r\n\t\t\tString hyperlinkText = mfilesDialog.getHyperlink(); //Gets the hyperlink\r\n\t\t\tmfilesDialog.close(); //Closes the Get Hyperlink dialog\r\n\r\n\t\t\tLog.message(\"5. Hyperlink is copied and Get Hyperlink dialog is closed.\");\r\n\r\n\t\t\t//Step-6 : Open the copied Hyperlink in the browser\r\n\t\t\t//-------------------------------------------------\r\n\t\t\thomePage = Utility.navigateToPage(driver, hyperlinkText, userName, password, \"\"); //Navigates to the hyperlink url\r\n\r\n\r\n\t\t\tif (!driver.getCurrentUrl().equalsIgnoreCase(hyperlinkText))\r\n\t\t\t\tthrow new Exception (\"Browser is not opened with copied object Hyperlink.[Expected URL: \"+hyperlinkText+\" & Current URL : \"+ driver.getCurrentUrl() +\"]\");\r\n\r\n\t\t\tLog.message(\"6. Object Hyperlink is opened in the browser.\");\r\n\r\n\t\t\t//Verification : Verify if default layout is displayed\r\n\t\t\t//----------------------------------------------------\r\n\t\t\tString unAvailableLayouts = \"\";\r\n\r\n\t\t\tif (homePage.isSearchbarPresent()) //Checks if Search bar present\r\n\t\t\t\tunAvailableLayouts = \"Search Bar is available;\";\r\n\r\n\t\t\tif (homePage.isTaskPaneDisplayed()) //Checks if Task Pane present\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Task Pane is available;\";\r\n\r\n\t\t\tif (!homePage.previewPane.isTabExists(Caption.PreviewPane.MetadataTab.Value))\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Properties Pane is not available;\";\r\n\r\n\t\t\tif (homePage.menuBar.isMenuInMenubarDisplayed()) //Checks if Menu Bar present\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Menu Bar is available;\";\r\n\r\n\t\t\tif (homePage.menuBar.isBreadCrumbDisplayed()) //Checks if Breadcrumb present\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Breadcrumb is available;\";\r\n\r\n\t\t\tif (homePage.taskPanel.isAppletEnabled())\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Java Applet is available;\";\r\n\r\n\t\t\tif (!homePage.isListViewDisplayed())\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"List View is not available;\";\r\n\r\n\t\t\tif (homePage.isTreeViewDisplayed())\r\n\t\t\t\tunAvailableLayouts = unAvailableLayouts + \"Tree View is available;\";\r\n\r\n\t\t\tif (unAvailableLayouts.equals(\"\")) //Verifies default layout have selected default custom layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Hyperlink URL page is displayed as .\" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value);\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Few layots are not as expected on selecting \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \". Refer additional information : \" \r\n\t\t\t\t\t\t+ unAvailableLayouts, driver);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\r\n\t\t} //End finally\r\n\r\n\t}", "void setPropertyKeySettings(List<PropertyKeySetting> settingList);", "void configure(Properties properties);", "private void addElementsToPanelList(JList<String> jlist, JButton clickUpdate, JButton clickDelete,\r\n JButton clickComplete, JButton clickIncomplete,\r\n JButton clickCreate, JButton showComplete,\r\n JButton clickSave) {\r\n panelList.add(jlist);\r\n panelList.add(clickUpdate);\r\n panelList.add(clickDelete);\r\n panelList.add(clickComplete);\r\n panelList.add(clickIncomplete);\r\n panelList.add(clickCreate);\r\n panelList.add(showComplete);\r\n panelList.add(clickSave);\r\n }", "@Test\n public void testDropDown() throws Exception {\n final ListBoxModel bin = wrapper.getDescriptor().doFillBinConfigItems();\n assertEquals(2, bin.size());\n assertEquals(\"bin1\", bin.get(0).name);\n assertEquals(\"bin1\", bin.get(0).value);\n assertEquals(\"bin2\", bin.get(1).name);\n assertEquals(\"bin2\", bin.get(1).value);\n \n final ListBoxModel metrics = wrapper.getDescriptor().doFillMetricsConfigItems();\n assertEquals(3, metrics.size());\n assertEquals(\"<unset>\", metrics.get(0).name);\n assertEquals(\"<unset>\", metrics.get(0).value);\n assertEquals(\"metrics1\", metrics.get(1).name);\n assertEquals(\"metrics1\", metrics.get(1).value);\n assertEquals(\"metrics2\", metrics.get(2).name);\n assertEquals(\"metrics2\", metrics.get(2).value);\n \n final ListBoxModel access = wrapper.getDescriptor().doFillServerConfigItems();\n assertEquals(3, access.size());\n assertEquals(\"<unset>\", access.get(0).name);\n assertEquals(\"<unset>\", access.get(0).value);\n assertEquals(\"access1\", access.get(1).name);\n assertEquals(\"access1\", access.get(1).value);\n assertEquals(\"access2\", access.get(2).name);\n assertEquals(\"access2\", access.get(2).value); \n }", "@Test\n\tvoid test2ConstructorWithList() {\n\t\t// comp1.setHeight(500); this is now component 4\n\t\tlistItems.add(comp1);\n\t\t// comp3.setWidth(678); now component 5\n\t\tlistItems.add(comp2);\n\t\tlistItems.add(comp3);\n\t\tlistItems.add(comp4);\n\t\tlistItems.add(comp5);\n\t\tvc = new VerticalComponentList(x, y, listItems,0);\n\t\tassertEquals(comp5, vc.getComponentsList().get(4));\n\t\tassertTrue(this.x == vc.getX() && this.y == vc.getY() && 678 == vc.getWidth()\n\t\t\t\t&& (comp1.getHeight() + comp2.getHeight() + comp3.getHeight()) + comp4.getHeight()\n\t\t\t\t\t\t+ comp5.getHeight() == vc.getHeight());\n\t}", "@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 }", "@Test\r\n public void testListPropertyAdapterSetListOnObjectProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = listProperty(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n otherList.remove(0);\r\n ChangeReport objectReport = new ChangeReport(objectProperty);\r\n ChangeReport report = new ChangeReport(listProperty);\r\n objectProperty.set(otherList);\r\n assertEquals(\"sanity: change event from objectProperty\", 1, objectReport.getEventCount());\r\n assertEquals(\"must fire change on setting list to objectProperty\", 1, report.getEventCount());\r\n }", "@Ignore //Refactor this test to Integration Test project\n @Test\n public void testWritePropertyFile() throws Exception\n {\n System.out.println(\"writePropertyFile\");\n String sPropertyFile = \"testprops\";\n Properties oProps = new Properties();\n oProps.setProperty(\"CacheRefreshDuration\", \"0\");\n oProps.setProperty(\"Prop1\", \"Value1\");\n oProps.setProperty(\"Prop2\", \"Value2\");\n PropertyFileManager.writePropertyFile(sPropertyFile, oProps);\n \n String sValue = PropertyAccessor.getProperty(sPropertyFile, \"CacheRefreshDuration\");\n assertEquals(\"0\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop1\");\n assertEquals(\"Value1\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop2\");\n assertEquals(\"Value2\", sValue);\n \n oProps.setProperty(\"Prop3\", \"Value3\");\n PropertyFileManager.writePropertyFile(sPropertyFile, oProps);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"CacheRefreshDuration\");\n assertEquals(\"0\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop1\");\n assertEquals(\"Value1\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop2\");\n assertEquals(\"Value2\", sValue);\n\n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop3\");\n assertEquals(\"Value3\", sValue);\n \n PropertyFileManager.deletePropertyFile(sPropertyFile);\n \n }", "@Test\n public void testAddPropertyChangeListener() {\n // trivial\n }", "private void setupPanel()\n\t{\n\t\tsetLayout(numberLayout);\n\t\tsetBorder(new EtchedBorder(EtchedBorder.RAISED, Color.GRAY, Color.DARK_GRAY));\n\t\tsetBackground(Color.LIGHT_GRAY);\n\t\tadd(ans);\n\t\tadd(clear);\n\t\tadd(backspace);\n\t\tadd(divide);\n\t\tadd(seven);\n\t\tadd(eight);\n\t\tadd(nine);\n\t\tadd(multiply);\n\t\tadd(four);\n\t\tadd(five);\n\t\tadd(six);\n\t\tadd(subtract);\n\t\tadd(one);\n\t\tadd(two);\n\t\tadd(three);\n\t\tadd(add);\n\t\tadd(negative);\n\t\tadd(zero);\n\t\tadd(point);\n\t\tadd(equals);\n\t}", "private void initComponents() {\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n parameterList = new javax.swing.JList();\n\n setLayout(new java.awt.BorderLayout());\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n parameterList.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"H2\", \"H2O\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n parameterList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n parameterList.setToolTipText(\"List of possible parameters\");\n parameterList.setMaximumSize(new java.awt.Dimension(200, 2000));\n parameterList.setMinimumSize(new java.awt.Dimension(50, 3000));\n parameterList.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n parameterListMouseClicked(evt);\n }\n });\n\n jScrollPane1.setViewportView(parameterList);\n\n jPanel2.add(jScrollPane1, java.awt.BorderLayout.CENTER);\n\n add(jPanel2, java.awt.BorderLayout.CENTER);\n\n }", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Bug\"}, \r\n\t\t\tdescription = \"Verify if logout option is displayed in context menu while selecting Listing pane only layout\")\r\n\tpublic void SprintTest95_1_1(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tString prevLayout = null;\r\n\t\tConfigurationPage configurationPage = null;\r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConcurrentHashMap <String, String> dataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Set the layout\r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"Vault-specific settings>>\" + testVault); // Clicks Vault item\r\n\r\n\t\t\tprevLayout = configurationPage.configurationPanel.getLayout(); // Gets the current layout selection\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(dataPool.get(\"Layout\")); // Sets the Listing pane only layout\r\n\r\n\t\t\tLog.message(\"2. \"+dataPool.get(\"Layout\") +\" is selected\");\r\n\r\n\t\t\t//3. Save the changes in configuration page\r\n\t\t\t//-------------------------------------------\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) // Verifies the Changes has been saved in configuration page\r\n\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\r\n\t\t\tLog.message(\"3. Settings are saved in configuration page\");\r\n\r\n\t\t\t//4. Logout from configurationpage and launch the default webpage\r\n\t\t\t//--------------------------------------------------------------\r\n\t\t\tif (!configurationPage.logOut()) // Verified if user is successfully logged out from configuration page\r\n\t\t\t\tthrow new Exception(\"Configuration page is not logged out to login page.\");\r\n\r\n\t\t\tHomePage homePage1= LoginPage.launchDriverAndLogin(driver, false);\r\n\r\n\t\t\tLog.message(\"4. Default webpage is launched\");\r\n\r\n\t\t\t//5. Right click on the default webpage\r\n\r\n\t\t\thomePage1.listView.rightClickListview();\r\n\t\t\tLog.message(\"5. Right clicked on the list view\");\r\n\r\n\t\t\t//6. Verification if Logout option is displayed in context menu\t\t\t\r\n\t\t\tif(homePage1.listView.isItemAvailableinContextmenu(dataPool.get(\"MenuItem\")))\r\n\t\t\t{\r\n\t\t\t\tLog.message(\"6. Logout option is displayed in context menu\");\r\n\r\n\t\t\t\t//7.Logout from default webpage using context menu\r\n\t\t\t\thomePage1.listView.clickContextMenuItem(dataPool.get(\"MenuItem\"));\r\n\r\n\r\n\t\t\t\tif(driver.getCurrentUrl().toUpperCase().trim().contains(\"LOGIN.ASPX\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.message(\"7. Logged out from default webpage using context menu\");\r\n\t\t\t\t\tLog.pass(\"Test case Passed. The \" + dataPool.get(\"MenuItem\") + \" option is displayed in context menu in Listing area only layout and successfully logged out using context menu\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tLog.fail(\"Test case failed. Error while logging out from webaccess using context menu\", driver);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. The \" + dataPool.get(\"MenuItem\") + \" option is not displayed in Context menu in Listing area only layout.\", driver);\r\n\r\n\t\t}//End Try\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\t\t\tif (driver != null)\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tconfigurationPage.configurationPanel.resetLayout(prevLayout, testVault);\r\n\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\r\n\t\t}//End Finally\r\n\r\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 }", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"Vault general settings - Layout dropdown\")\r\n\tpublic void SprintTest25_10_2C(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the vault link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"Vault-specific settings>>\" + testVault);\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the vault link.\");\r\n\r\n\t\t\t//Verification: To verify the caption \"Vault general settings 'Other [specify view ID]'\"for other views\r\n\t\t\t//------------------------------------------------------------------------------------------------------\r\n\t\t\tConfigurationPanel configSettingsPanel = new ConfigurationPanel(driver);\r\n\r\n\t\t\t/*//Variable Declaration\r\n\t\t\tList<WebElement> layoutOptions; //Stores the web element of the default view select box\r\n\t\t\tint optionCount; //Stores the number of options that are available in the list\r\n\t\t\tint itemIdx; //Stores the item index\r\n\t\t\tint count = 0;\r\n\r\n\t\t\tList<WebElement> vaultTableRows=driver.findElements(By.cssSelector(\"div[id='configvault'][style*='display: block;']>table[class='fullLength']\"));\r\n\t\t\tWebElement defaultViewRow = configSettingsPanel.getWebElement(vaultTableRows, \"Layout:\"); //Web Element of default view row\r\n\r\n\t\t\tlayoutOptions = defaultViewRow.findElements(By.cssSelector(\"select[id='ddlLayout']>option\")); //Web Element options of the default view list\r\n\r\n\t\t\toptionCount = layoutOptions.size(); //Number of available default view options in the list*/\r\n\t\t\tint i,j = 1;\r\n\t\t\tString[] expectedOptions = dataPool.get(\"Options\").split(\"\\n\");\r\n\t\t\tString[] actualOptions = new String[configSettingsPanel.getallLayouts().length];\r\n\t\t\tactualOptions = configSettingsPanel.getallLayouts();\r\n\t\t\tfor (int k=0; k < actualOptions.length ;k++)\r\n\t\t\t\tSystem.out.println(actualOptions[k]);\r\n\t\t\tArrays.sort(expectedOptions);\t\r\n\t\t\tArrays.sort(actualOptions);\t\r\n\r\n\t\t\t/*for (itemIdx=0; itemIdx<expectedOptions.length; itemIdx++) {//Loops to identify the web element of the default view to be selected\r\n\t\t\t\tfor(count = 0; count < optionCount; count++) {\r\n\t\t\t\t\tif(layoutOptions.get(count).getText().contains(expectedOptions[itemIdx]))\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(count == optionCount)\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t}*/\r\n\r\n\t\t\tfor( i=0;i< actualOptions.length;i++)\r\n\t\t\t{\r\n\t\t\t\tif (!(actualOptions[i].equalsIgnoreCase(expectedOptions[i])))\r\n\t\t\t\t{\r\n\t\t\t\t\tj=0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t\tif(j !=0)\r\n\t\t\t\tLog.pass(\"Test Case Passed. The expected options were found in the layout dropdown box.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The expected option \" + expectedOptions[i] + \" was not found in the layout dropdown.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n mainPanel.add(scrollPane1, new GridConstraints(0, 0, 1, 1, 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 listResults = new JList();\n listResults.setDoubleBuffered(true);\n final DefaultListModel defaultListModel1 = new DefaultListModel();\n listResults.setModel(defaultListModel1);\n listResults.setValueIsAdjusting(false);\n scrollPane1.setViewportView(listResults);\n mainButton = new JButton();\n mainButton.setText(\"Button\");\n mainPanel.add(mainButton, new GridConstraints(3, 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 final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n radioButtonAllStyles = new JRadioButton();\n radioButtonAllStyles.setLabel(\"Alle Styles\");\n radioButtonAllStyles.setSelected(true);\n radioButtonAllStyles.setText(\"Alle Styles\");\n panel1.add(radioButtonAllStyles, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n radioButtonStyle = new JRadioButton();\n radioButtonStyle.setLabel(\"Ein Style\");\n radioButtonStyle.setSelected(false);\n radioButtonStyle.setText(\"Ein Style\");\n panel1.add(radioButtonStyle, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n radioButtonAllBeers = new JRadioButton();\n radioButtonAllBeers.setLabel(\"Alle Biere\");\n radioButtonAllBeers.setText(\"Alle Biere\");\n panel1.add(radioButtonAllBeers, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n radioButtonBeerWithId = new JRadioButton();\n radioButtonBeerWithId.setActionCommand(\"Beer mit bestimmter Style\");\n radioButtonBeerWithId.setLabel(\"Beer mit bestimmter Id\");\n radioButtonBeerWithId.setText(\"Beer mit bestimmter Id\");\n panel1.add(radioButtonBeerWithId, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textFieldArgs = new JTextField();\n mainPanel.add(textFieldArgs, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n }", "void setNewCollectionPanel();", "private void setUpList(JPanel panel){\n panel.setLayout(new BorderLayout());\n JPanel holder = new JPanel();\n holder.setLayout(new BoxLayout(holder,BoxLayout.Y_AXIS));\n for(Object t: agenda.getConnector().getTasks(currentList)) {\n Tasks task = (Tasks)t;\n add = false;\n this.addTask(holder,task);\n add = true;\n }\n JScrollPane scrollPane = new JScrollPane(holder,ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n JButton showCompleted = new JButton(\"Show completed\");\n showCompleted.addActionListener(e -> {\n JPanel completedPanels = new JPanel();\n this.setUpSize(completedPanels,400,400,AgendaConstants.ALL);\n completedPanels.setLayout(new BoxLayout(completedPanels,BoxLayout.Y_AXIS));\n for(Object o: agenda.getConnector().getCTasks(currentList)){\n CompletedTodo t = (CompletedTodo) o;\n Task task = new Task(t);\n this.setUpSize(task,390,50,AgendaConstants.MAXIMUM);\n completedPanels.add(task);\n }\n JOptionPane.showMessageDialog(null,completedPanels);\n });\n panel.add(showCompleted,BorderLayout.NORTH);\n panel.add(scrollPane,BorderLayout.CENTER);\n this.updateComponent(panel);\n }", "int givePropSize(List<Integer[]> coordsInProp) throws Exception;", "boolean assignPropToKingdom(List<Property> list, Kingdom kingdom) throws Exception;", "public void testOptions() {\n OptionsOperator optionsOper = OptionsOperator.invoke();\n optionsOper.selectEditor();\n optionsOper.selectFontAndColors();\n optionsOper.selectKeymap();\n optionsOper.selectGeneral();\n // \"Manual Proxy Setting\"\n String hTTPProxyLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Use_HTTP_Proxy\");\n new JRadioButtonOperator(optionsOper, hTTPProxyLabel).push();\n // \"HTTP Proxy:\"\n String proxyHostLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Proxy_Host\");\n JLabelOperator jloHost = new JLabelOperator(optionsOper, proxyHostLabel);\n new JTextFieldOperator((JTextField) jloHost.getLabelFor()).setText(\"www-proxy.uk.oracle.com\"); // NOI18N\n // \"Port:\"\n String proxyPortLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Proxy_Port\");\n JLabelOperator jloPort = new JLabelOperator(optionsOper, proxyPortLabel);\n new JTextFieldOperator((JTextField) jloPort.getLabelFor()).setText(\"80\"); // NOI18N\n optionsOper.ok();\n }", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\t System.setProperty(\"webdriver.firefox.marionette\", \"C:\\\\GeckoSelenium\\\\geckodriver.exe\");\n\t\t driver = new FirefoxDriver();\n//\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\ChromeDriver\\\\chromedriver.exe\");\n//\t\tdriver = new ChromeDriver();\n\n\t\tprop = new Properties();\n\t\tprop.load(new FileInputStream(\"./Configuration/Configuration.properties\"));\n\t\tint timewait = (Integer.parseInt(prop.getProperty(\"wait_time\")));\n\t\tdriver.manage().timeouts().implicitlyWait(timewait, TimeUnit.SECONDS);\n\t\tappUrl = prop.getProperty(\"AppUrl\");\n\t\tsharedUIMapPath = prop.getProperty(\"SharedUIMapPath\");\n\t\tprop.load(new FileInputStream(sharedUIMapPath));\n\t\tdriver.get(appUrl);\n\t\tfakeUrl = prop.getProperty(\"FakeUrl\");\n\t\tdriver.manage().window().setSize(new Dimension(1440, 850));\n\t}", "private void buildMainPanel() {\n\t\t\n\t\tif(theMode == MODE_FPC) {\n\t\t\ttheFields = new PropertyComponent[9];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"\", 1, false, false);\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", FPC_GRP_SORT, 0, true, false);\t\t\t\n\t\t\t//theFields[5] = new PropertyComponent(\"grp_order\", \"\", 1, true, false);\t\t\t\n\t\t\ttheFields[4] = new PropertyComponent(\"cbsize\", \"1200\", 1, false, false);\t\t\t\n\t\t\ttheFields[5] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[6] = new PropertyComponent(\"fpc_file\", \"\", true, true, true);\n\t\t\ttheFields[7] = new PropertyComponent(\"bes_files\", \"\", true, true, false);\n\t\t\ttheFields[8] = new PropertyComponent(\"marker_files\", \"\", true, true, false);\n\t\t} else { //MODE_PSEUDO\n\t\t\ttheFields = new PropertyComponent[13];\n\t\t\t\n\t\t\ttheFields[0] = new PropertyComponent(\"category\", \"Uncategorized\", 1, false, false);\n\t\t\ttheFields[1] = new PropertyComponent(\"display_name\", theDisplayName, 1, false, false);\n\t\t\ttheFields[2] = new PropertyComponent(\"grp_type\", \"Chromosome\", 1, false, false);\n\t\t\ttheFields[3] = new PropertyComponent(\"grp_prefix\", \"Chr\", 1, false, false);\t\t\t\n\t\t\t//theFields[4] = new PropertyComponent(\"grp_sort\", PSEUDO_GRP_SORT, 0, true, false);\n\t\t\ttheFields[4] = new PropertyComponent(\"order_against\", getProjectSelections(), 0, false, true);\n\t\t\ttheFields[5] = new PropertyComponent(\"mask_all_but_genes\", PSEUDO_MASK_GENES, 1, false, true);\n\t\t\ttheFields[6] = new PropertyComponent(\"min_size\", \"100000\", 1, true, false);\t\t\t\n\t\t\ttheFields[7] = new PropertyComponent(\"min_display_size_bp\", \"0\", 1, false, false);\t\t\t\n\t\t\ttheFields[8] = new PropertyComponent(\"description\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[9] = new PropertyComponent(\"annot_keywords\", \"\", 2, false, false);\t\t\t\n\t\t\ttheFields[10] = new PropertyComponent(\"annot_kw_mincount\", \"50\", 2, false, false);\t\n\t\t\ttheFields[11] = new PropertyComponent(\"anno_files\", \"\", true, true, false);\n\t\t\ttheFields[12] = new PropertyComponent(\"sequence_files\", \"\", true, true, false);\n\t\t}\n\t\t\t\n\t\tJPanel tempPanel = new JPanel();\n\t\ttempPanel.setLayout(new BoxLayout(tempPanel, BoxLayout.PAGE_AXIS));\n\t\ttempPanel.setBackground(Color.WHITE);\n\t\t\n\t\tfor(int x=0; x<theFields.length; x++) {\n\t\t\ttempPanel.add(Box.createVerticalStrut(5));\n\t\t\ttheFields[x].setTextListener(theListener);\n\t\t\ttempPanel.add(theFields[x]);\n\t\t}\n\t\ttempPanel.add(Box.createVerticalStrut(20));\n\t\ttempPanel.add(createButtonPanel());\n\t\ttempPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n\t\ttempPanel.setMaximumSize(tempPanel.getPreferredSize());\n\t\ttempPanel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\t\t\n\t\tgetContentPane().add(tempPanel);\n\t}", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToEmpty() {\r\n ListProperty listProperty = new SimpleListProperty(createObservableList(false));\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }", "@Test(groups = {\"Sprint54\"}, description = \"Advanced search bar should be opened in No Java applet, no task area layout.\")\r\n\tpublic void SprintTest54_1_20_4() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select No Java applet, no task area layout and save the settings\r\n\t\t\t//-------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setJavaApplet(Caption.ConfigSettings.Config_Disable.Value);\r\n\r\n\t\t\tif(configurationPage.configurationPanel.isJavaAppletEnabled())\r\n\t\t\t\tthrow new Exception(\"Java applet is enabled\");\r\n\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_NoTaskArea.Value);\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Save the settings\r\n\t\t\t\tthrow new Exception(\"Configuration settings are not saved after changing its layout.\");\r\n\r\n\t\t\tLog.message(\"1. No java applet and no task area layout is selected and saved.\");\r\n\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. Log out from the configuration page.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and click Advanced Search in search pane\r\n\t\t\t//--------------------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\t\t\thomePage.searchPanel.clickAdvancedSearch(true); //Clicks Advanced search button\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page and advanced search button is clicked.\");\r\n\r\n\t\t\t//Verification : Verify if advanced search is displayed\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tif (homePage.searchPanel.isAdvancedSearchDisplayed()) //Verifies if Advanced search is displayed in default layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Advanced search is displayed in No java applet and No task area layout.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Advanced search is not displayed in No java applet and No task area layout.\", driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "public PreferencesPanel()\n {\n initComponents();\n CB_CHECK_NEW.setSelected( Main.get_long_prop(Preferences.CHECK_NEWS) > 0);\n CB_CACHE_MAILS.setSelected( Main.get_long_prop(Preferences.CACHE_MAILFILES) > 0);\n\n\n\n COMBO_UI.removeAllItems();\n ArrayList<String> ui_names = UI_Generic.get_ui_names();\n for (int i = 0; i < ui_names.size(); i++)\n {\n String string = ui_names.get(i);\n COMBO_UI.addItem(string);\n }\n\n last_ui = (int)Main.get_long_prop(Preferences.UI, 0l);\n if (last_ui < COMBO_UI.getItemCount())\n COMBO_UI.setSelectedIndex( last_ui );\n else\n COMBO_UI.setSelectedIndex( 0 );\n\n String ds = Main.get_prop( Preferences.DEFAULT_STATION );\n if (ds != null && ds.length() > 0)\n {\n ParseToken pt = new ParseToken(ds);\n String ip = pt.GetString(\"IP:\");\n long po = pt.GetLongValue(\"PO:\");\n boolean only_this = pt.GetBoolean(\"OT:\");\n TXT_SERVER_IP.setText(ip);\n if (po > 0)\n TXT_SERVER_PORT.setText(Long.toString(po) );\n CB_NO_SCANNING.setSelected(only_this);\n }\n\n String l_code = Main.get_prop( Preferences.COUNTRYCODE, \"DE\");\n\n if (l_code.compareTo(\"DE\") == 0)\n COMBO_LANG.setSelectedIndex(0);\n if (l_code.compareTo(\"EN\") == 0)\n COMBO_LANG.setSelectedIndex(1); \n }", "@Test\r\n public void testListValuedObjectPropertyInvalidation() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n InvalidationReport report = new InvalidationReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"supported: list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Bug\"}, \r\n\t\t\tdescription = \"Verify if logout option is displayed in context menu while selecting Listing area and right pane only layout\")\r\n\tpublic void SprintTest95_1_2(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tString prevLayout = null;\r\n\t\tConfigurationPage configurationPage = null; //Launched driver and logged in\r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConcurrentHashMap <String, String> dataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tconfigurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Set the layout\r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"Vault-specific settings>>\" + testVault); // Clicks Vault item\r\n\r\n\t\t\tprevLayout = configurationPage.configurationPanel.getLayout(); // Gets the current layout selection\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(dataPool.get(\"Layout\")); // Sets the Listing pane only layout\r\n\r\n\t\t\tLog.message(\"2. \"+dataPool.get(\"Layout\") +\" is selected\");\r\n\r\n\t\t\t//3. Save the changes in configuration page\r\n\t\t\t//-------------------------------------------\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) // Verifies the Changes has been saved in configuration page\r\n\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\r\n\t\t\tLog.message(\"3. Settings are saved in configuration page\");\r\n\r\n\t\t\t//4. Logout from configurationpage and launch the default webpage\r\n\t\t\t//--------------------------------------------------------------\r\n\t\t\tif (!configurationPage.logOut()) // Verified if user is successfully logged out from configuration page\r\n\t\t\t\tthrow new Exception(\"Configuration page is not logged out to login page.\");\r\n\r\n\t\t\tLog.message(\"4. Default webpage is launched\");\r\n\r\n\t\t\t//5. Right click on the default webpage\r\n\t\t\tHomePage homePage1= LoginPage.launchDriverAndLogin(driver, false);\r\n\t\t\thomePage1.listView.rightClickListview();\r\n\t\t\tLog.message(\"5. Right clicked on the list view\");\r\n\r\n\t\t\t//6. Verification for logout option is displayed in context menu\r\n\t\t\tif(homePage1.listView.isItemAvailableinContextmenu(dataPool.get(\"MenuItem\")))\r\n\t\t\t{\r\n\r\n\t\t\t\tLog.message(\"6. Logout option is displayed in context menu\");\r\n\r\n\t\t\t\t//7.Logout from default webpage using context menu\r\n\t\t\t\thomePage1.listView.clickContextMenuItem(dataPool.get(\"MenuItem\"));\r\n\r\n\r\n\t\t\t\tif(driver.getCurrentUrl().toUpperCase().trim().contains(\"LOGIN.ASPX\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.message(\"7. Logged out from default webpage\");\r\n\t\t\t\t\tLog.pass(\"Test case Passed. The \" + dataPool.get(\"MenuItem\") + \" option is displayed in context menu in Listing area and right pane only layout. and successfully logged out using context menu\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tLog.fail(\"Test case failed. Error while logging out from webaccess using context menu\", driver);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. The \" + dataPool.get(\"MenuItem\") + \" option is not displayed in Context menu in Listing area and right pane only layout.\", driver);\r\n\r\n\t\t}//End Try\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif (driver != null)\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tconfigurationPage.configurationPanel.resetLayout(prevLayout, testVault);\r\n\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\r\n\t\t}//End Finally\r\n\r\n\t}", "public void _addPropertyConfigMenuItem(JComponent parentMenu, String name, BasicPropertyList pl) {\n JMenu menu = new JMenu(name + \" Display\");\n parentMenu.add(menu);\n\n for (BasicPropertyList.BasicProperty bp : pl.getProperties()) {\n if (bp instanceof BasicPropertyList.BooleanProperty)\n menu.add(_createBooleanPropertyMenuItem((BasicPropertyList.BooleanProperty)bp, pl));\n else if (bp instanceof BasicPropertyList.ChoiceProperty)\n menu.add(_createChoicePropertyMenu((BasicPropertyList.ChoiceProperty)bp, pl));\n }\n }" ]
[ "0.6555297", "0.6094515", "0.5984139", "0.5947118", "0.5928131", "0.5749842", "0.5650233", "0.56500787", "0.56127596", "0.56078804", "0.55693895", "0.55177987", "0.5515143", "0.5510604", "0.55002606", "0.5485871", "0.54686916", "0.54356205", "0.53903407", "0.5377424", "0.537033", "0.53458774", "0.5313505", "0.5301375", "0.52865326", "0.52743", "0.52731955", "0.52151126", "0.51950413", "0.5193122", "0.51865596", "0.51772475", "0.51615393", "0.51600045", "0.51574194", "0.5147193", "0.51470786", "0.51465136", "0.51422524", "0.5142066", "0.5132232", "0.51319885", "0.5131881", "0.5128827", "0.51203316", "0.5119162", "0.5110228", "0.5095863", "0.5092712", "0.5087969", "0.50693285", "0.50532585", "0.50489074", "0.5044002", "0.5012569", "0.5011631", "0.5010752", "0.5006385", "0.50003356", "0.4982555", "0.49819326", "0.4978852", "0.49654275", "0.49614266", "0.4960617", "0.49593496", "0.4958994", "0.4957268", "0.49548095", "0.49468723", "0.49401915", "0.49374783", "0.4929259", "0.49292067", "0.49281815", "0.4923715", "0.49138948", "0.49069992", "0.49002934", "0.48997858", "0.48981208", "0.48808742", "0.48795944", "0.48792863", "0.48771855", "0.48726407", "0.4870281", "0.48699805", "0.48663202", "0.48607746", "0.48521405", "0.4850584", "0.48505175", "0.48432305", "0.48393923", "0.48372155", "0.48323962", "0.4831907", "0.48297122", "0.48282054" ]
0.59952617
2
Tests PropertiesPanelconfigurePanel(ModelElement) for accuracy.
public void testConfigurePanel2() { instance.configurePanel(new PackageImpl()); assertEquals("Failed to configure the panel.", 4, ((JPanel) instance.getComponent(0)).getComponentCount()); assertEquals("Failed to configure the panel.", 1, ((JPanel) instance.getComponent(1)).getComponentCount()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testConfigurePanel1() {\n Package packageObject = new PackageImpl();\n List<ModelElement> modelElements = new ArrayList<ModelElement>();\n modelElements.add(packageObject);\n instance.configurePanel(modelElements);\n\n assertEquals(\"Failed to configure the panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the panel.\", 1, ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "private void manualTestPanel() {\n\t\tJPanel manualPanel = new JPanel();\n\t\tmanualPanel.setSize(PanelsDimension);\n\t\tmanualPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tmanualPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\t\n\t\t//Title\n\t\tc.weighty = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.gridwidth = 2;\n\t\tJLabel manualConfigLabel = new JLabel(\"Manual Configuration\");\n\t\tmanualConfigLabel.setHorizontalAlignment(0);\n\t\tmanualPanel.add(manualConfigLabel, c);\n\t\t\n\t\t//ComboBox\n\t\tc.weightx = 0.7;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 1;\n\t\tc.ipady = 20;\n\t\tc.gridwidth = 1;\n\t\trulesCB = new DefaultComboBoxModel<String>();\n\t\tmanualCBRules.setPrototypeDisplayValue(\"XXXXXXXXXXXXXXXXXXXXXXXXXX\");\n\t\tmanualCBRules.setModel(rulesCB);\n\t\tmanualCBRules.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualPanel.add(manualCBRules, c);\n\t\t\n\t\t//WeigthValue\n\t\tc.weightx = 0.3;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 1;\n\t\tc.ipady = 0;\n\t\tc.gridwidth = 1;\n\t\tmanualRuleValue = new JTextField();\n\t\tmanualPanel.add(manualRuleValue, c);\n\t\t\n\t\t//Save Configurations Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualSaveValuesButton = new JButton(\"Save Manual configurations\");\n\t\tmanualSaveValuesButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetValueToRule();\n\t\t\t\t\t\tAntiSpamFilterControl.saveRulesFile(true);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualSaveValuesButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualSaveValuesButton, c);\n\t\t\n\t\t//Test Values Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 3;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualTestButton = new JButton(\"Test Values\");\n\t\tmanualTestButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t\tAntiSpamFilterControl.Evaluater(true);\n\t\t\t\t\tsetResultString(\"manual\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualTestButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualTestButton, c);\n\t\t\n\t\t//Show Results\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 4;\n\t\tc.ipady = 0;\n\t\tmanualResults = new JTextArea();\n\t\tmanualResults.setEnabled(false);\n\t\tmanualPanel.add(manualResults, c);\n\t\t\n\t\tframe.add(manualPanel);\n\t}", "public void testCtor1() throws Exception {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", new PropertiesPanel(NAMESPACE, manager));\n }", "protected void setUp() throws Exception {\n // get the config manager\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"failure/config.xml\");\n\n propertiesPanel = new PropertiesPanel(umlModelManager);\n }", "protected void setUp() throws Exception {\n TestHelper.loadSingleXMLConfig(TestHelper.NAMESPACE, TestHelper.CONFIG_FILE);\n propertiesPanel = new PropertiesPanel(new UMLModelManager());\n\n panel = new ConcurrencyPropertyPanel(propertiesPanel);\n }", "private void autoTestPanel() {\n\t\tJPanel autoPanel = new JPanel();\n\t\tautoPanel.setSize(PanelsDimension);\n\t\tautoPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tautoPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\n\t\t//Title\n\t\tc.weighty = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.gridwidth = 2;\n\t\tJLabel autoConfigLabel = new JLabel(\"Automatic Config\");\n\t\tautoConfigLabel.setHorizontalAlignment(0);\n\t\tautoPanel.add(autoConfigLabel, c);\n\t\t\n\t\t//ComboBox Auto\n\t\tc.weightx = 0.4;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 1;\n\t\tc.ipady = 20;\n\t\tc.gridwidth = 1;\t\t\n\t\tautoRulesCB = new DefaultComboBoxModel<String>();\n\t\tautoCBRules.setPrototypeDisplayValue(\"XXXXXXXXXXXXXXXXXXXXXXXXXX\");\n\t\tautoCBRules.setModel(autoRulesCB);\n\t\tautoCBRules.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tautoRuleValue.setText(AntiSpamFilterControl.getWeigthByRule(autoRulesCB.getSelectedItem().toString(), false) + \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tautoPanel.add(autoCBRules, c);\n\t\t\n\t\t//WeigthValue\n\t\tc.weightx = 0.6;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 1;\n\t\tc.ipady = 0;\n\t\tc.gridwidth = 1;\n\t\tautoRuleValue = new JTextField();\n\t\tautoPanel.add(autoRuleValue, c);\n\t\t\n\t\t\n\t\t//Save Configurations Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tautoSaveValuesButton = new JButton(\"Save Auto configurations\");\n\t\tautoSaveValuesButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetValueToRule();\n\t\t\t\t\t\tAntiSpamFilterControl.saveRulesFile(false);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tautoSaveValuesButton.setSize(frameWidth/2, 80);\n\t\tautoPanel.add(autoSaveValuesButton, c);\n\t\t\n\t\t//Test Values Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 3;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tautoTestButton = new JButton(\"Run Auto Algorithm\");\n\t\tautoTestButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\tAntiSpamFilterAutomaticConfiguration w = new AntiSpamFilterAutomaticConfiguration();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tw.run(AntiSpamFilterControl.ruleList.size());\n\t\t\t\t\t\tAntiSpamFilterControl.selectAutoConfiguration();\n\t\t\t\t\t\tsetResultString(\"auto\");\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"END Auto Config\");\n\t\t\t\t\tAntiSpamFilterControl.generateFiles();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tautoTestButton.setSize(frameWidth/2, 80);\n\t\tautoPanel.add(autoTestButton, c);\n\t\t\n\t\t//Show Results\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 4;\n\t\tc.ipady = 0;\n\t\tautoResults = new JTextArea();\n\t\tautoResults.setEnabled(false);\n\t\tautoPanel.add(autoResults, c);\n\t\t\n\t\tframe.add(autoPanel);\n\t}", "@Test\n\tpublic void testControlPanelButtons() {\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\n\t\tfinal int DEFAULT_ANGLE = 45;\n\t\tfinal int NEW_HEIGHT = 50;\n\t\tfinal int NEW_VELOCITY = 100;\n\t\twindow.panel(\"Control panel\").textBox(\"Angle text field\").setText(\"-12\");\n\t\twindow.panel(\"Control panel\").button(\"Set angle\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getAngleSlider().getValue() == DEFAULT_ANGLE);\n\n\t\twindow.panel(\"Control panel\").textBox(\"Height text field\").setText(\"50\");\n\t\twindow.panel(\"Control panel\").button(\"Set height\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getHeightSlider().getValue() == NEW_HEIGHT);\n\n\t\twindow.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.slideTo(NEW_VELOCITY);\n\t\tassertThat(gui.getControlPanel().getVelocityTextField().getText()\n\t\t\t\t.equals(\"\" + NEW_VELOCITY));\n\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Height slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Continue\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Stop\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Clear\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles().size() == 0);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors().size() == 0);\n\t\tfinal int EXPECTED_PROJECTILES = 3;\n\t\tfor (int i = 0; i < EXPECTED_PROJECTILES; ++i) {\n\t\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\t}\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t}", "public void testRefreshPanel() {\n Package packageObject = new PackageImpl();\n instance.configurePanel(packageObject);\n\n assertEquals(\"Failed to configure the left panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the right panel.\", 1,\n ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "@Test\n\tpublic void testInformationPanel() {\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Time\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Max height\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t}", "public void testRefreshPanel() {\n Operation element = new OperationImpl();\n element.setConcurrency(CallConcurrencyKind.CONCURRENT);\n\n panel.configurePanel(element);\n\n assertTrue(\"Failed to refresh panel correctly.\",\n ((JCheckBox) panel.retrievePanel().getComponent(0)).isSelected());\n }", "public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }", "private void updatePanel() {\n\t\tProbeUtilities.updateModelProbePanel();\n\t}", "public void testCtor2() {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", instance);\n }", "public void testAddModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to add the listener.\", listener.IsCalled());\n }", "PanelOptionsVisual(PanelConfigureProject panel) {\n this.panel = panel;\n\n preInitComponents();\n initComponents();\n postInitComponents();\n }", "@Test\r\n\tpublic void test()\r\n\t{\r\n\t\ttry {\r\n\t\t\tpanel=new Panels();\r\n\t\t\tpanel.map=new DrawMap();\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\tpanel.waveLevel=2; \r\n\t\tpanel.map.map=new int [1][1];\r\n\t\tpanel.waveInitial();\r\n\t\tassertEquals(3,panel.waveLevel);\r\n\t}", "@Test\n public void testGetPanel()\n {\n assertNotNull(MusicPlayer.getInstance().getPanel());\n }", "@Override\n public void setupPanel()\n {\n\n }", "public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }", "static JPanel createConfigPanel(Viewer viewer,\r\n SelectionModel<Point2D> selectionModel,\r\n SelectionHandler<Point2D> lassoSelectionHandler,\r\n SelectionHandler<Point2D> rectangleSelectionHandler)\r\n {\r\n JPanel configPanel = new JPanel(new BorderLayout());\r\n \r\n JPanel controlPanel = new JPanel(new GridLayout(0,1));\r\n \r\n JCheckBox lassoCheckBox = \r\n new JCheckBox(\"Lasso\", true);\r\n lassoCheckBox.addActionListener(e -> \r\n {\r\n lassoSelectionHandler.disconnect();\r\n rectangleSelectionHandler.disconnect();\r\n if (lassoCheckBox.isSelected())\r\n {\r\n lassoSelectionHandler.connect(viewer, selectionModel);\r\n }\r\n else\r\n {\r\n rectangleSelectionHandler.connect(viewer, selectionModel);\r\n }\r\n });\r\n controlPanel.add(lassoCheckBox);\r\n \r\n JButton setDisplayedWorldAreaButton = \r\n new JButton(\"Reset displayed world area\");\r\n setDisplayedWorldAreaButton.addActionListener(\r\n e -> viewer.setDisplayedWorldArea(\r\n new Rectangle2D.Double(-0.1, -0.1, 1.2, 1.2)));\r\n controlPanel.add(setDisplayedWorldAreaButton);\r\n \r\n JButton resetTransformButton = \r\n new JButton(\"Reset transform\");\r\n resetTransformButton.addActionListener(\r\n e -> viewer.resetTransform());\r\n controlPanel.add(resetTransformButton);\r\n \r\n configPanel.add(controlPanel, BorderLayout.NORTH);\r\n \r\n return configPanel;\r\n }", "@Test\n\tpublic void testGUIPanels() {\n\t\tfinal int RGB_GRAY = 238;\n\t\tColor defaultColor = new Color(RGB_GRAY, RGB_GRAY, RGB_GRAY);\n\n\t\tassertThat(window.requireEnabled());\n\t\tassertThat(window.requireVisible());\n\t\tassertThat(window.requireTitle(\"Parabolic shot!\"));\n\n\t\tassertThat(window.panel(\"Control panel\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Control panel\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireVisible());\n\n\t\tassertThat(window.panel(\"Information panel\").requireVisible());\n\t\tassertThat(window.panel(\"Information panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Information panel\").requireEnabled());\n\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireVisible());\n\t\tassertThat(window.panel(\"Parabolic shot panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireEnabled());\n\t}", "public JPanel getSettingsPanel() {\n\t\t//edgeAttributeHandler.updateAttributeList();\n\t\t// Everytime we ask for the panel, we want to update our attributes\n\t\tTunable attributeTunable = clusterProperties.get(\"attributeList\");\n\t\tattributeArray = getAllAttributes();\n\t\tattributeTunable.setLowerBound((Object)attributeArray);\n\n\t\treturn clusterProperties.getTunablePanel();\n\t}", "public void testFirePropertyChangeEvent() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "public interface PropertiesModel {\n\n /**\n * Clears all defined properties from this model, but does not modify the set of observers.\n */\n void clear();\n\n /**\n * Adds a new {@link Property} to this model.\n * <p>\n * All properties must have case insensitive unique names and aliases. If a property with the same name (or names)\n * exists, it will be replaced by this property.\n *\n * @param property The property to be added.\n */\n void add(Property property);\n\n /**\n * Sets the value bound to the identified property without notifying observers that the value has been changed. This\n * method is intended to handle cases where setting a value could cause a cycle in the notification chain or\n * otherwise produce unintended side effects.\n * <p>\n * In most situations, {@link #set(ExecutionContext, String, Value)} is more appropriate.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property\n * @param propertyValue The value to set the property to.\n * @throws HtUncheckedSemanticException Thrown if no such property exists.\n */\n void setQuietly(ExecutionContext context, String propertyName, Value propertyValue);\n\n /**\n * Sets the value bound to the identified property. This method is intended for WyldCard-internal (i.e., not\n * scripted) access to properties.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property\n * @param propertyValue The value to set the property to.\n * @throws HtUncheckedSemanticException Thrown if no such property exists.\n */\n void set(ExecutionContext context, String propertyName, Value propertyValue);\n\n /**\n * Attempts to set the value bound to the identified property, throwing an {@link HtException} when the value cannot\n * by set, either because it doesn't exist, it isn't writable, or an error occurred writing it. This method is\n * intended for use by script/programmatic-access to property values.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property to be set\n * @param propertyValue The value to be written into the property\n * @throws HtException Thrown if the property doesn't exist, cannot be written, or an error occurs writing to it.\n */\n void trySet(ExecutionContext context, String propertyName, Value propertyValue) throws HtException;\n\n /**\n * Gets the value bound to the identified property. This method is intended for WyldCard-internal (i.e., not\n * scripted) access to properties.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return The value bound to the property\n * @throws IllegalStateException Thrown if an error occurs while evaluating the property.\n * @throws IllegalArgumentException Thrown if the property does not exist.\n */\n Value get(ExecutionContext context, String propertyName);\n\n /**\n * Attempts to get the value bound to the identified property, throwing an {@link HtException} when the value\n * cannot be retrieved. This method is intended for use by script/programmatic-access to property values.\n *\n * @param context The execution context.\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return The value bound to this property.\n * @throws HtException Thrown if the property cannot be retreived, perhaps because it doesn't exist or an error\n * occurred while trying to evaluate it.\n */\n Value tryGet(ExecutionContext context, String propertyName) throws HtException;\n\n /**\n * Returns the property identified by the given name, or null, if no such property exists.\n *\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return The identified property, or null if it doesn't exist.\n */\n Property findProperty(String propertyName);\n\n /**\n * Determines if a property identified by a given name exists.\n *\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return True if the property exists, false otherwise.\n */\n boolean hasProperty(String propertyName);\n\n /**\n * Adds an observer of property value changes. Note that observers are always notified of property changes on the\n * Swing dispatch thread.\n *\n * @param observer The observer\n */\n void addPropertyChangedObserver(PropertyChangeObserver observer);\n\n /**\n * Adds an observer of property value changes and immediately fires the\n * {@link PropertyChangeObserver#onPropertyChanged(ExecutionContext, PropertiesModel, String, Value, Value)} method\n * for each property defined in the model.\n * <p>\n * This is a convenience method to use instead of {@link #addPropertyChangedObserver(PropertyChangeObserver)}\n * followed immediately by {@link #notifyPropertyChangedObserver(ExecutionContext, PropertyChangeObserver, boolean)}.\n *\n * @param context The execution context\n * @param observer The property change observer.\n */\n void addPropertyChangedObserverAndNotify(ExecutionContext context, PropertyChangeObserver observer);\n\n /**\n * Invokes the {@link PropertyChangeObserver#onPropertyChanged(ExecutionContext, PropertiesModel, String, Value, Value)} method for\n * all properties on the provided observer. Useful for listeners that wish to initialize themselves with the current\n * state of the model.\n *\n * @param context The execution context.\n * @param observer This listener to be notified; does not have to be an active listener of this model.\n * @param includeComputedGetters When false, do not notify computed/synthesized properties\n */\n void notifyPropertyChangedObserver(ExecutionContext context, PropertyChangeObserver observer, boolean includeComputedGetters);\n\n /**\n * Removes an observer of property value changes; this listener will not be notified of future changes.\n *\n * @param observer The property change observer\n */\n void removePropertyChangedObserver(PropertyChangeObserver observer);\n}", "@Test\n public void f9EditParametersTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(1000);\n\n //select 1st asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n FlowPane allModels = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n Pane selectedModel = (Pane) allModels.getChildren().get(0);\n clickOn(selectedModel).sleep(1000);\n\n //Changing Parameters\n VBox paraBox = (VBox) scene.getRoot().lookup(\"#modelParameters\");\n Pane batchSizePara = (Pane) paraBox.getChildren().get(0);\n TextField batchSizeVal = (TextField) batchSizePara.getChildren().get(1);\n clickOn(batchSizeVal).type(KeyCode.BACK_SPACE).sleep(500).type(KeyCode.BACK_SPACE).sleep(500).write(\"60\").sleep(1500);\n\n Pane qrPara = (Pane) paraBox.getChildren().get(1);\n CheckBox qrVal = (CheckBox) qrPara.getChildren().get(1);\n clickOn(qrVal).sleep(1500);\n\n Pane collinearPara = (Pane) paraBox.getChildren().get(2);\n CheckBox colinearVal = (CheckBox) collinearPara.getChildren().get(1);\n clickOn(colinearVal).sleep(1500);\n\n //Parameter after changing it from the default value should be 160\n assertEquals(\"Batch Size value is a now 160\", \"160\", batchSizeVal.getText());\n\n //reset to default\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(1000);\n clickOn(paraBox.getChildren().get(0)).sleep(1500);\n\n //Now go to the last model (Multilayer Perceptron)\n selectedModel = (Pane) allModels.getChildren().get(allModels.getChildren().size() - 1);\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n\n moveBy(0, 200).scroll(65, VerticalDirection.UP);\n clickOn(selectedModel).sleep(1000);\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n\n //Change parameters\n Pane autoBuildPara = (Pane) paraBox.getChildren().get(0);\n CheckBox autoBuildVal = (CheckBox) autoBuildPara.getChildren().get(1);\n clickOn(autoBuildVal).sleep(1500);\n\n Pane showGUIPara = (Pane) paraBox.getChildren().get(2);\n CheckBox showGUIVal = (CheckBox) showGUIPara.getChildren().get(1);\n clickOn(showGUIVal).sleep(1500);\n\n Pane momentumPara = (Pane) paraBox.getChildren().get(3);\n TextField momentumVal = (TextField) momentumPara.getChildren().get(1);\n clickOn(momentumVal).type(KeyCode.BACK_SPACE).sleep(500).write(\"1\").sleep(1500);\n\n //Momentum after changing shouldn't be the default 0.2 value anymore\n assertFalse(\"Momentum is default 0.2\", momentumVal.getText().equals(\"0.2\"));\n\n Pane decayPara = (Pane) paraBox.getChildren().get(9);\n CheckBox decayVal = (CheckBox) decayPara.getChildren().get(1);\n clickOn(decayVal).sleep(1500);\n\n// //Go to RandomForest Model\n selectedModel = (Pane) allModels.getChildren().get(2);\n clickOn(selectedModel).sleep(1000);\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n\n// //Change parameters\n Pane execPara = (Pane) paraBox.getChildren().get(1);\n TextField execVal = (TextField) execPara.getChildren().get(1);\n clickOn(execVal).sleep(1500);\n//\n Pane calcBagPara = (Pane) paraBox.getChildren().get(3);\n CheckBox calcBagVal = (CheckBox) calcBagPara.getChildren().get(1);\n clickOn(calcBagVal).sleep(1500);\n//\n Pane bagSizePara = (Pane) paraBox.getChildren().get(6);\n TextField bagSizeVal = (TextField) bagSizePara.getChildren().get(1);\n clickOn(bagSizeVal).type(KeyCode.BACK_SPACE).sleep(500).type(KeyCode.BACK_SPACE).sleep(500).write(\"0\").sleep(1500);\n\n //Bag Size after changing shouldn't be the default 100 value anymore\n assertFalse(\"Bag size is default 100\", bagSizeVal.getText().equals(\"100\"));\n //Have parameters VBox\n assertNotNull(\"Parameters box for the model exists\", paraBox);\n\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n clickOn(paraBox.getChildren().get(0)).sleep(2000);\n }", "public void setPanelConfiguration(){\n\t\tthis.panelConfiguration.setStructurePanel();\n\t\tthis.panelConfiguration.setPanelConfiguration();\n\t}", "public MazeSettingsPanel(MazeSettings settings){\r\n \tsuper();\r\n \tthis.settings=settings;\r\n \tthis.layout = new GridLayout(0,2);\r\n \tthis.layout.setVgap(10);\r\n \tthis.setLayout(this.layout);\r\n \r\n \tpadding = BorderFactory.createEmptyBorder(20,20,15,10);\r\n \tthis.setBorder(padding);\r\n \r\n \tinitFields();\r\n \tupdateFieldValues();\r\n }", "@Override\r\n public void setup(Panel panel) {\n }", "public void testConfigureProject() {\n UMLModelManager umlModelManager = new UMLModelManager();\n instance.configureProject(umlModelManager);\n\n assertSame(\"Failed to configure project.\", umlModelManager, instance.getUMLModelManager());\n }", "@Test\n public void showPanelWhenUserEnablesPanel() throws Throwable {\n Utils.openDrawer(getActivityTestRule());\n clickAdapterViewItem(10, R.id.navigation_drawer); //Show preference screen\n SharedPreferences.Editor edit = PreferenceManager.getDefaultSharedPreferences(getActivity()).edit();\n edit.putBoolean(Settings.KEY_PREF_SHOW_NOW_PLAYING_PANEL, false);\n edit.apply();\n pressBack();\n\n Utils.openDrawer(getActivityTestRule());\n clickAdapterViewItem(10, R.id.navigation_drawer); //Show preference screen\n edit.putBoolean(Settings.KEY_PREF_SHOW_NOW_PLAYING_PANEL, true);\n edit.apply();\n pressBack();\n\n waitForPanelState(BottomSheetBehavior.STATE_COLLAPSED);\n }", "@Test\n\tpublic void test3_checkButtons() throws GeneralLeanFtException{\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Started\");\n\t\t\t\n\t\t\t//Check that the Main window should exist\n\t\t\tassertTrue(mySet.appExistsorNot());\t\t\t\n\t\t\t\n\t\t\t//Toolbar Object\n\t\t\tToolBar toolbar = mySet.OR.MainWindow().ToolBar(); \n\n\t\t\t// Clicking the JButton displays the required frame\n\t\t\ttoolbar.getButton(\"JButton\").press();\n\t\t\t\n\t\t\t//Getting the Image Buttons in the Panel\n\t\t\tButton[] imgButtons = mySet.OR.MainWindow().ImageButtonsPanelUiObject()\n\t\t\t .findChildren(Button.class,new ButtonDescription.Builder().nativeClass(\"javax.swing.JButton\").build());\n\t\t\t \n\t\t\t//There should be 3 Image Buttons\n\t\t\tassertEquals(3, imgButtons.length);\n\t\t\t\n\t\t\t//Trigger the Mouse Entered Event for the each button in the Panel\t\t\t\t\n\t\t\tRobot robo = new Robot();\t\t\t\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\t\t\t\t\n\t\t\t\trobo.mouseMove(btn.getAbsoluteLocation().x,btn.getAbsoluteLocation().y);\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\t//Store the Original Dimension\n\t\t\tDimension orginalDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Increase the Size by Selecting the Pad Radio Button\n\t\t\tmySet.OR.MainWindow().Pad10RadioButton().click();\n\t\t\t\n\t\t\t//Verify that the radio button is checked\n\t\t\tassertTrue(mySet.OR.MainWindow().Pad10RadioButton().isChecked()==true);\n\t\t\t\n\t\t\t//Store the New Dimension\n\t\t\tDimension newDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Assert that Height Increases and Width Decreases\n\t\t\tassertTrue((newDimension.width < orginalDimension.width) && (newDimension.height > orginalDimension.height));\n\t\t\t\n\t\t\t//Click the Enabled Check box\n\t\t\tmySet.OR.MainWindow().EnabledCheckBox().click();\n\t\t\t\n\t\t\t//Check that the Check Box has been unchecked \n\t\t\tassertTrue(mySet.OR.MainWindow().EnabledCheckBox().getState()==CheckedState.UNCHECKED);\n\t\t\t\n\t\t\t//Check that all Image Buttons are disabled\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\n\t\t\t\tassertTrue(btn.isEnabled()==false);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unexpected Error Occurred. Message = \" + e.getMessage() + \"Stack Trace = \");\n\t\t\te.printStackTrace();\n\t\t\tassertTrue(false);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Finished\");\n\t\t}\n\t\t\n\t}", "public AssociationEndsPropertyPanel(PropertiesPanel propertiesPanel) {\n super(Collections.singletonList(PropertyKind.ASSOCIATION_ENDS_LINK), propertiesPanel);\n\n JPanel panel = retrievePanel();\n Util.setFixedSize(panel, 230, 50);\n\n panel.setLayout(new GridBagLayout());\n\n // initializes the two labels for the two association ends\n // the foreground colors are set to BLUE and the cursors are set to hand cursor\n labelAssociationEnd1 = new JLabel();\n labelAssociationEnd1.setForeground(new Color(4, 87, 162));\n labelAssociationEnd1.setCursor(new Cursor(Cursor.HAND_CURSOR));\n labelAssociationEnd2 = new JLabel();\n labelAssociationEnd2.setForeground(new Color(4, 87, 162));\n labelAssociationEnd2.setCursor(new Cursor(Cursor.HAND_CURSOR));\n\n panel.setBorder(BorderFactory.createTitledBorder(\"Association Ends\"));\n\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 1;\n constraints.fill = GridBagConstraints.BOTH;\n constraints.insets = new Insets(-5, 40, 0, 0);\n panel.add(labelAssociationEnd1, constraints);\n constraints.gridx = 1;\n constraints.insets = new Insets(-5, 0, 0, 0);\n panel.add(labelAssociationEnd2, constraints);\n\n // Creates an MouseListener instance and assign it to the two labels for association ends\n MouseListener listener = new MouseAdapter() {\n /**\n * <p>\n * Invoked when the mouse has been clicked on a component.\n * </p>\n *\n * <p>\n * When the <code>JLabel</code> is clicked, this method will be invoked\n * </p>\n *\n * @param e an event which indicates that a mouse action occurred in a component\n */\n public void mouseClicked(MouseEvent e) {\n JLabel label = (JLabel) e.getSource();\n\n // The logic will be executed only when all the configured model elements have\n // the same first and second association ends\n if (label.getText().length() > 0) {\n Association association = (Association) getConfiguredModelElements().get(0);\n List<AssociationEnd> ends = association.getConnections();\n\n if (label == labelAssociationEnd1) {\n // configure the panel with the first association end\n if (ends.size() > 0) {\n //getPropertiesPanel().fireSelectionChangeEvent(association);\n getPropertiesPanel().configurePanel(ends.get(0));\n getPropertiesPanel().fireSelectionChangeEvent(ends.get(0));\n\n // set it visible back, since listeners may hide it\n getPropertiesPanel().setVisible(true);\n }\n } else {\n // configure the panel with the second association end\n if (ends.size() > 1) {\n getPropertiesPanel().configurePanel(ends.get(1));\n getPropertiesPanel().fireSelectionChangeEvent(ends.get(1));\n\n // set it visible back, since listeners may hide it\n getPropertiesPanel().setVisible(true);\n }\n }\n }\n }\n };\n\n // install the mouse listener to the two labels\n labelAssociationEnd1.addMouseListener(listener);\n labelAssociationEnd2.addMouseListener(listener);\n }", "private void storComponentProperties(){\n\t\t//IPreferenceStore prefStore = JFacePreferences.getPreferenceStore();\n\t\t//PreferenceStore prefStore = mOyster2.getPreferenceStore();\n\t\tProperties mprop = mOyster2.getProperties();\n\t\tint count = mprop.getInteger(Constants.NUMBER_OF_COLUMNS);\n\t\tfor(int i=0; i<count; i++){\n\t\t\tmprop.setString(Constants.COLUMN_TYPE+i, mprop.getDefaultString(Constants.COLUMN_TYPE+i));\n\t\t\tmprop.setString(Constants.COLUMN_NAME+i, mprop.getDefaultString(Constants.COLUMN_NAME+i));\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH+i, mprop.getDefaultString(Constants.COLUMN_WIDTH+i));\n\t\t\t/*\n\t\t\tprefStore.setToDefault(Constants.COLUMN_TYPE+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_NAME+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_WIDTH+i);\n\t\t\t*/\n\t\t}\n\t\tmprop.setString(Constants.NUMBER_OF_COLUMNS, \"\"+columns.size());\n\t\tfor(int i=0; i<columns.size(); i++){\n\t\t\tResultViewerColumnInfo colInf = getColumnInfo(i);\n\t\t\tmprop.setString(Constants.COLUMN_NAME + i, colInf.getColumnName());\n\t\t\tmprop.setString(Constants.COLUMN_TYPE + i, colInf.getColumnType());\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH + i, \"\"+colInf.getWidth());\n\t\t}\n\t\ttry{\n\t\t\tmprop.storeOn();\n\t\t\t//prefStore.save();\n\t\t}\n\t\tcatch(Exception IO){\n\t\t\tSystem.out.println(\"couldnt save properties\");\n\t\t}\n\t\t\n\t}", "public void testRemoveModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "private void setupPanel()\n\t{\n\t\tsetLayout(numberLayout);\n\t\tsetBorder(new EtchedBorder(EtchedBorder.RAISED, Color.GRAY, Color.DARK_GRAY));\n\t\tsetBackground(Color.LIGHT_GRAY);\n\t\tadd(ans);\n\t\tadd(clear);\n\t\tadd(backspace);\n\t\tadd(divide);\n\t\tadd(seven);\n\t\tadd(eight);\n\t\tadd(nine);\n\t\tadd(multiply);\n\t\tadd(four);\n\t\tadd(five);\n\t\tadd(six);\n\t\tadd(subtract);\n\t\tadd(one);\n\t\tadd(two);\n\t\tadd(three);\n\t\tadd(add);\n\t\tadd(negative);\n\t\tadd(zero);\n\t\tadd(point);\n\t\tadd(equals);\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Override\n public void newPanelModel() {\n\n }", "@Override\n public void newPanelModel() {\n\n }", "public static JPanel makeSizeClassPanel() throws ModelException {\n return makeSizeClassPanel(null, null, NUM_SIZE_CLASS_DEFAULT, \n SIZE_CLASS_SIZE_DEFAULT, 0, INCLUDE_LIVE_DEFAULT, INCLUDE_SNAGS_DEFAULT);\n }", "public GuidedWizardPanel()\r\n\t{\t\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\t\r\n\t\twizardPanel = new WizardPanel(panelList, groupLabels);\r\n\t\twizardPanel.addSaveListener(this);\r\n\t\tpanel.add(wizardPanel);\r\n\r\n\t\t// set up listener relationships\r\n\t\tsolvingForPanel.addSolvingForListener(powerPanel);\r\n\t\tsolvingForPanel.addSolvingForListener(perGroupSampleSizePanel);\r\n\t\tsolvingForPanel.addSolvingForListener(resultsPanel);\r\n\t\t// listeners for outcome measures\r\n\t\toutcomesPanel.addOutcomesListener(hypothesisIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(hypothesisRepeatedPanel);\r\n\t\toutcomesPanel.addOutcomesListener(meanDifferencesIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(meanDifferencesPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityRepeatedPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityCovariateOutcomePanel);\r\n\t\t// listeners for predictor information\r\n\t\tcatPredictorsPanel.addPredictorsListener(relativeGroupSizePanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(hypothesisIndependentPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(hypothesisRepeatedPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(meanDifferencesIndependentPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(meanDifferencesPanel);\r\n\t\t// listeners for relative group sizes\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisIndependentPanel);\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisRepeatedPanel);\r\n\t\t// listeners for baseline covariates\r\n\t\tcovariatePanel.addCovariateListener(meanDifferencesIndependentPanel);\r\n\t\tcovariatePanel.addCovariateListener(meanDifferencesPanel);\r\n\t\t// TODO: covariatePanel.addCovariateListener(meanDifferencesRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(hypothesisIndependentPanel);\r\n\t\tcovariatePanel.addCovariateListener(hypothesisRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityIndependentPanel);\r\n\t\t// TODO: covariatePanel.addCovariateListener(variabilityRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityCovariatePanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityCovariateOutcomePanel);\r\n\t\tcovariatePanel.addCovariateListener(optionsTestsPanel);\r\n\t\tcovariatePanel.addCovariateListener(optionsPowerMethodsPanel);\r\n\t\t// listeners for repeated measures \r\n\t\trepeatedMeasuresPanel.addRepeatedMeasuresListener(hypothesisIndependentPanel);\r\n\t\trepeatedMeasuresPanel.addRepeatedMeasuresListener(hypothesisRepeatedPanel);\r\n\t\t// listeners for hypotheses\r\n\t\thypothesisIndependentPanel.addHypothesisListener(meanDifferencesIndependentPanel);\r\n\t\thypothesisRepeatedPanel.addHypothesisListener(meanDifferencesRepeatedPanel);\r\n\t\t// group size listeners\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisIndependentPanel);\r\n\t\t// variability listeners\r\n\t\tvariabilityIndependentPanel.addVariabilityListener(variabilityCovariateOutcomePanel);\r\n\t\tvariabilityCovariatePanel.addVariabilityListener(variabilityCovariateOutcomePanel);\r\n\t\toptionsDisplayPanel.addChartOptionsListener(resultsPanel);\r\n\t\t// callbacks to fill in the power curve options screen\r\n\t\talphaPanel.addAlphaListener(optionsDisplayPanel);\r\n\t\toptionsTestsPanel.addTestListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addPowerMethodListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addQuantileListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addQuantileCheckboxListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addPowerCheckboxListener(optionsDisplayPanel);\r\n\t\tmeanDifferencesScalePanel.addBetaScaleListener(optionsDisplayPanel);\r\n\t\tperGroupSampleSizePanel.addPerGroupSampleSizeListener(optionsDisplayPanel);\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(optionsDisplayPanel);\r\n\t\tvariabilityScalePanel.addSigmaScaleListener(optionsDisplayPanel);\r\n\t\t// initialize\r\n\t\tinitWidget(panel);\r\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\t System.setProperty(\"webdriver.firefox.marionette\", \"C:\\\\GeckoSelenium\\\\geckodriver.exe\");\n\t\t driver = new FirefoxDriver();\n//\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\ChromeDriver\\\\chromedriver.exe\");\n//\t\tdriver = new ChromeDriver();\n\n\t\tprop = new Properties();\n\t\tprop.load(new FileInputStream(\"./Configuration/Configuration.properties\"));\n\t\tint timewait = (Integer.parseInt(prop.getProperty(\"wait_time\")));\n\t\tdriver.manage().timeouts().implicitlyWait(timewait, TimeUnit.SECONDS);\n\t\tappUrl = prop.getProperty(\"AppUrl\");\n\t\tsharedUIMapPath = prop.getProperty(\"SharedUIMapPath\");\n\t\tprop.load(new FileInputStream(sharedUIMapPath));\n\t\tdriver.get(appUrl);\n\t\tfakeUrl = prop.getProperty(\"FakeUrl\");\n\t\tdriver.manage().window().setSize(new Dimension(1440, 850));\n\t}", "@Test\n public void f8DisplayParametersTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(1000);\n\n //select first asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n\n FlowPane models = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n VBox parameters = (VBox) scene.getRoot().lookup(\"#modelParameters\");\n\n int i;\n //Iterate through all the models and their parameters\n for (int j = 0; j < models.getChildren().size(); j++) {\n i = 0;\n clickOn(models.getChildren().get(j));\n\n if (j == 4) {\n scroll(90, VerticalDirection.UP);\n }\n\n while (i < parameters.getChildren().size()) {\n clickOn(parameters.getChildren().get(i++)).sleep(500);\n\n if (i == 10) {\n scroll(60, VerticalDirection.UP);\n }\n }\n }\n\n assertEquals(\"There should be 8 models\", 8, models.getChildren().size());\n assertNotNull(\"Parameters exist\", parameters);\n }", "@Test(groups = {\"Sprint54\"}, description = \"Search bar should not be availble in Listing pane and properties pane layout.\")\r\n\tpublic void SprintTest54_1_20_6() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select No Java applet, no task area layout and save the settings\r\n\t\t\t//-------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value); //Sets as Listing pane and properties pane layout\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getLayout().equalsIgnoreCase(Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value)) //Verifies if Listing pane and properties pane layout is selected\r\n\t\t\t\tthrow new Exception(\"Default layout is not selected.\");\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Saves the settings\r\n\t\t\t\tthrow new Exception(\"Settings are not saved properly.\");\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout is selected and settings are saved.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and click Advanced Search in search pane\r\n\t\t\t//--------------------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page.\");\r\n\r\n\t\t\t//Verification : Verify if advanced search is displayed\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tif (!homePage.isSearchbarPresent()) //Verifies if Advanced search is displayed in No Java applet, no task area, but show Go To shortcuts layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Search is not displayed in \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Search bar is displayed in \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout.\", driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "public PaintPanel(PaintModel model){\r\n\t\tthis.setBackground(Color.WHITE);\r\n\t\tthis.setPreferredSize(new Dimension(1600,900));\r\n\t\tthis.addMouseListener(this);\r\n\t\tthis.addMouseMotionListener(this);\r\n\r\n\t\t\r\n\t\tthis.model = model;\r\n\t\t\r\n\t\t// paintPanel will now observe model\r\n\t\t// Every time model is changed (model calls notifyObservers()), this update method gets called\r\n\t\tthis.model.addObserver(this);\t\r\n\t}", "public void testCtor() {\n assertNotNull(\"Failed to create a new ConcurrencyPropertyPanel instance.\", panel);\n }", "public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "@Test\n public void testCreateField() {\n System.out.println(\"createField\"); \n JPanel result = instance.createField();\n assertNotNull(result); \n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setGroundColor((-733));\n homeEnvironment0.setPhotoHeight(0);\n homeEnvironment0.setVideoFrameRate(0);\n PropertyChangeListener propertyChangeListener0 = mock(PropertyChangeListener.class, new ViolatedAssumptionAnswer());\n PropertyChangeListenerProxy propertyChangeListenerProxy0 = new PropertyChangeListenerProxy(\"Content isn't a JAR entry\", propertyChangeListener0);\n PropertyChangeListenerProxy propertyChangeListenerProxy1 = new PropertyChangeListenerProxy(\"Content isn't a JAR entry\", propertyChangeListenerProxy0);\n homeEnvironment0.setPhotoHeight(0);\n assertEquals(0, homeEnvironment0.getVideoFrameRate());\n }", "public void testCtor_NullPropertiesPanel() throws Exception {\n try {\n new StereotypeListPropertyPanel(null, new ImageIcon(), new ImageIcon());\n fail(\"Expect IllegalArgumentException.\");\n } catch (IllegalArgumentException iae) {\n // expect\n }\n }", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "@Before\n public void setup() {\n presenter = new MapEditor(view, valueChangeEvent);\n assertEquals(view.asWidget(), presenter.asWidget());\n }", "protected JPanel getModelPane() {\n JPanel result = new JPanel(new BorderLayout());\n ButtonGroup radios = new ButtonGroup();\n JPanel radioPanel = new JPanel();\n radioPanel.setLayout(new BoxLayout(radioPanel, BoxLayout.Y_AXIS));\n radioPanel.setBorder(BorderFactory.createTitledBorder(\n \"select model & object information source\"));\n\n expModelReflect = new JRadioButton(\"ReflectionFacade\");\n radios.add(expModelReflect);\n expModelReflect.setSelected(true);\n JTextArea explReflect = new JTextArea(\n \" contains the \\\"Person-Company\\\" model\\n\" + \n \" out of the OCL-Sepcification via reflection\\n\" + \n \" (Source and Binarys have to be in the same folder)\");\n explReflect.setEditable(false);\n explReflect.setOpaque(false);\n explReflect.setAlignmentX(0);\n\n expModelDummy = new JRadioButton(\"DummyFacade\");\n radios.add(expModelDummy);\n String expl = \" contains a simple model with classes A and B\\n\" + \n \" explained in the source of: \\n\" + \n \" tudresden.ocl.interp.test.ABDummyFacade\\n\" + \n \" Does not work with usage of oclType\";\n JTextArea explDummy = new JTextArea(expl);\n explDummy.setEditable(false);\n explDummy.setOpaque(false);\n explDummy.setAlignmentX(0);\n\n\tRadioListener rl = new RadioListener();\n\texpModelReflect.addActionListener(rl);\n\texpModelDummy.addActionListener(rl);\n\n radioPanel.add(expModelReflect);\n radioPanel.add(explReflect);\n radioPanel.add(expModelDummy);\n radioPanel.add(explDummy);\n\n \tclassPicture = new JLabel(getImage(\"interp/core/intern/company_class.gif\"));\n \tobjectPicture = new JLabel(getImage(\"interp/core/intern/company_object.gif\"));\n\t\n JPanel rightSide = new JPanel(new GridLayout(0, 1));\n rightSide.add(classPicture);\n rightSide.add(objectPicture);\n rightSide.setBorder(BorderFactory.createTitledBorder(\n \"The class and object information in UML\"));\n\t\n\trightSide.setPreferredSize(new Dimension(400,300));\n\t\n result.add(radioPanel,BorderLayout.WEST);\n result.add(rightSide);\n \n return panelAround(result);\n }", "public JPanel setUpPropertyCheckBoxes(Player player) {\n JPanel propertyCheckBoxesPanel = new JPanel();\n propertyCheckBoxesPanel.setLayout(new BoxLayout(propertyCheckBoxesPanel,\n BoxLayout.Y_AXIS));\n \n for (Space space : player.getProperties()) {\n JCheckBox checkBox = new JCheckBox(space.getName());\n checkBox.setBackground(Board.getColor(space.getColorNumber()));\n checkBox.setForeground(Board.getMatchingTextColor(space.getColorNumber()));\n if (playersCheckBoxes.containsKey(player)) {\n playersCheckBoxes.get(player).put(checkBox, space);\n } else {\n Map<JCheckBox, Space> checkBoxSpaceMap = new HashMap();\n checkBoxSpaceMap.put(checkBox, space);\n playersCheckBoxes.put(player, checkBoxSpaceMap);\n }\n propertyCheckBoxesPanel.add(checkBox);\n }\n \n return propertyCheckBoxesPanel;\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "@Test(groups = {\"Sprint54\"}, description = \"Advanced search bar should be opened in No Java applet, no task area layout.\")\r\n\tpublic void SprintTest54_1_20_4() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select No Java applet, no task area layout and save the settings\r\n\t\t\t//-------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setJavaApplet(Caption.ConfigSettings.Config_Disable.Value);\r\n\r\n\t\t\tif(configurationPage.configurationPanel.isJavaAppletEnabled())\r\n\t\t\t\tthrow new Exception(\"Java applet is enabled\");\r\n\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_NoTaskArea.Value);\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Save the settings\r\n\t\t\t\tthrow new Exception(\"Configuration settings are not saved after changing its layout.\");\r\n\r\n\t\t\tLog.message(\"1. No java applet and no task area layout is selected and saved.\");\r\n\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. Log out from the configuration page.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and click Advanced Search in search pane\r\n\t\t\t//--------------------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\t\t\thomePage.searchPanel.clickAdvancedSearch(true); //Clicks Advanced search button\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page and advanced search button is clicked.\");\r\n\r\n\t\t\t//Verification : Verify if advanced search is displayed\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tif (homePage.searchPanel.isAdvancedSearchDisplayed()) //Verifies if Advanced search is displayed in default layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Advanced search is displayed in No java applet and No task area layout.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Advanced search is not displayed in No java applet and No task area layout.\", driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "private void configurePanel(ContentPanel panel){\r\n\t\t\t\tpanel.setSize(325, 185);\t\t\t\t\r\n\t\t\t\tpanel.setHeaderVisible(false);\r\n\t\t\t\tpanel.setBodyStyle(\"padding:7px\");\r\n\t\t\t\tpanel.setScrollMode(Scroll.AUTOY);\r\n\t\t\t\tpanel.setStyleAttribute(\"marginTop\", \"15px\");\r\n\t\t\t}", "public PropertiesView(){\n\n\t\tbtnDescTemplate = new DescTemplateWidget(this);\n\t\tbtnCalculation = new DescTemplateWidget(this);\n\n\t\ttable.setWidget(0, 0, new Label(LocaleText.get(\"text\")));\n\t\ttable.setWidget(1, 0, new Label(LocaleText.get(\"helpText\")));\n\t\ttable.setWidget(2, 0, new Label(LocaleText.get(\"type\")));\n\t\ttable.setWidget(3, 0, new Label(LocaleText.get(\"binding\")));\n\t\ttable.setWidget(4, 0, new Label(LocaleText.get(\"visible\")));\n\t\ttable.setWidget(5, 0, new Label(LocaleText.get(\"enabled\")));\n\t\ttable.setWidget(6, 0, new Label(LocaleText.get(\"locked\")));\n\t\ttable.setWidget(7, 0, new Label(LocaleText.get(\"required\")));\n\t\ttable.setWidget(8, 0, new Label(LocaleText.get(\"defaultValue\")));\n\t\ttable.setWidget(9, 0, new Label(LocaleText.get(\"calculation\")));\n\t\t\n\t\tlblDescTemplate = new Label(LocaleText.get(\"descriptionTemplate\"));\n\t\ttable.setWidget(10, 0, lblDescTemplate);\n\t\ttable.setWidget(11, 0, new Label(LocaleText.get(\"formKey\")));\n\n\t\ttable.setWidget(0, 1, txtText);\n\t\ttable.setWidget(1, 1, txtHelpText);\n\t\ttable.setWidget(2, 1, cbDataType);\n\t\ttable.setWidget(3, 1, txtBinding);\n\t\ttable.setWidget(4, 1, chkVisible);\n\t\ttable.setWidget(5, 1, chkEnabled);\n\t\ttable.setWidget(6, 1, chkLocked);\n\t\ttable.setWidget(7, 1, chkRequired);\n\t\ttable.setWidget(8, 1, txtDefaultValue);\n\n\t\tHorizontalPanel panel = new HorizontalPanel();\n\t\tpanel.add(txtCalculation);\n\t\tpanel.add(btnCalculation);\n\t\tpanel.setCellWidth(btnCalculation, \"20%\");\n\t\tFormUtil.maximizeWidget(txtCalculation);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(9, 1, panel);\n\n\t\tpanel = new HorizontalPanel();\n\t\tpanel.add(txtDescTemplate);\n\t\tpanel.add(btnDescTemplate);\n\t\tpanel.setCellWidth(btnDescTemplate, \"20%\");\n\t\tFormUtil.maximizeWidget(txtDescTemplate);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(10, 1, panel);\n\t\t\n\t\ttable.setWidget(11, 1, txtFormKey);\n\n\t\ttable.setStyleName(\"cw-FlexTable\");\n\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeText\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeNumber\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDecimal\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDate\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDateTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBoolean\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeMultSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeRepeat\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypePicture\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeVideo\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeAudio\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelectDynamic\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeGPS\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBarcode\"));\n\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\n\t\tcellFormatter.setHorizontalAlignment(15, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\n\t\ttable.setWidth(\"100%\");\n\t\tcellFormatter.setWidth(0, 0, \"20%\");\n\t\t//cellFormatter.setColSpan(0, 0, 2);\n\t\t\n\t\t//cellFormatter.setWidth(9, 0, \"20\"+PurcConstants.UNITS);\n\t\t//cellFormatter.setWidth(9, 1, \"20\"+PurcConstants.UNITS);\n\n\t\ttxtText.setWidth(\"100%\");\n\t\ttxtHelpText.setWidth(\"100%\");\n\t\ttxtBinding.setWidth(\"100%\");\n\t\ttxtDefaultValue.setWidth(\"100%\");\n\t\tcbDataType.setWidth(\"100%\");\n\t\ttxtFormKey.setWidth(\"100%\");\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tverticalPanel.setSpacing(5);\n\t\tverticalPanel.add(table);\n\n\t\tDecoratedTabPanel tabs = new DecoratedTabPanel();\n\t\ttabs.add(skipRulesView, LocaleText.get(\"skipLogic\"));\n\t\ttabs.add(validationRulesView, LocaleText.get(\"validationLogic\"));\n\t\ttabs.add(dynamicListsView, LocaleText.get(\"dynamicLists\"));\n\n\t\ttabs.selectTab(0);\n\t\tverticalPanel.add(tabs);\n\t\tFormUtil.maximizeWidget(tabs);\n\n\t\tFormUtil.maximizeWidget(verticalPanel);\n\t\tinitWidget(verticalPanel);\n\n\t\tsetupEventListeners();\n\n\t\tcbDataType.setSelectedIndex(-1);\n\n\t\tenableQuestionOnlyProperties(false);\n\t\ttxtText.setEnabled(false);\n\t\t//txtDescTemplate.setVisible(false);\n\t\t//btnDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\t\ttxtCalculation.setEnabled(false);\n\t\tbtnCalculation.setEnabled(false);\n\t\ttxtBinding.setEnabled(false);\n\n\t\ttxtText.setTitle(LocaleText.get(\"questionTextDesc\"));\n\t\ttxtHelpText.setTitle(LocaleText.get(\"questionDescDesc\"));\n\t\ttxtBinding.setTitle(LocaleText.get(\"questionIdDesc\"));\n\t\ttxtDefaultValue.setTitle(LocaleText.get(\"defaultValDesc\"));\n\t\tcbDataType.setTitle(LocaleText.get(\"questionTypeDesc\"));\n\n\t\tDOM.sinkEvents(getElement(), Event.ONKEYDOWN | DOM.getEventsSunk(getElement()));\n\t}", "private void updateProperties(){\n loadProperties();\n GameModel gameModel = GameModel.getInstance();\n int level = gameModel.getCurrentLevelIndex();\n //int health = gameModel.getPlayer().getLives();\n //int ammo = gameModel.getPlayer().getAmmunition();\n int highestReachedLevel = getHighestLevelFromProperties();\n\n //checks if player has reached a higher level than before\n if (level>=highestReachedLevel){\n properties.setProperty(\"highestReachedLevel\", Integer.toString(level));\n gameModel.setHighestCompletedLevel(level); //gives model the new highest completed level\n } else {\n properties.setProperty(\"highestReachedLevel\", Integer.toString(highestReachedLevel));\n gameModel.setHighestCompletedLevel(highestReachedLevel);\n }\n\n System.out.println(\"Saved Highest reached levl: \"+properties.getProperty(\"highestReachedLevel\"));\n\n properties.setProperty(\"level\", Integer.toString(level));\n //properties.setProperty(\"health\", Integer.toString(health));\n //properties.setProperty(\"ammo\", Integer.toString(ammo));\n }", "protected void createParameterPanel() {\n \n Collection_Button = new KButtonPanel(0, 0, 0, 0, 1, \n KButtonPanel.HORIZONTAL_RIGHT);\n Collection_Button.addSingleButton(\"...\", \n KeyEvent.VK_C, true, true, \"CollectionButton\", this,\n \"Click this button to select the collection file.\"); \n \n SourceDirectory_Button = new KButtonPanel(0, 0, 0, 0, 1,\n KButtonPanel.HORIZONTAL_RIGHT);\n SourceDirectory_Button.addSingleButton(\"...\",\n KeyEvent.VK_R, true, true, \"SourceDirectoryButton\", this,\n \"Click this button to select the Reuters-21578 file directory.\");\n \n IncludeSubdirectories_CheckBox = new KCheckBox(\n \"Include Subdirectories\", false, true, \n \"IncludeSubdirectories\", this, KeyEvent.VK_I, \n \"If this box is checked, files will be search in subdirectories \"\n + \"of Reuters-21578 directory.\");\n\n if (CastParameter != null) {\n Collection_Text = new KTextField(CastParameter\n .getCollectionFileName(), 30);\n SourceDirectory_Text = new KTextField(CastParameter\n .getSourceDirectory(), 30);\n FileNameFilter_Text = new KTextField(CastParameter\n .getFileNameFilter(), 30);\n TopicOfCollection_Text = new KTextField(CastParameter\n .getTopicOfCollection(), 30);\n if (CastParameter.includeSubdirectories()) {\n IncludeSubdirectories_CheckBox.setSelected(true);\n }\n else {\n IncludeSubdirectories_CheckBox.setSelected(false);\n }\n }\n else {\n Collection_Text = new KTextField(DiasdemProject.getProperty(\n \"DEFAULT_COLLECTION_FILE\"), 30);\n SourceDirectory_Text = new KTextField(DiasdemProject.getProperty(\n \"DEFAULT_REUTERS_21578_FILE_DIRECTORY\"), 30);\n FileNameFilter_Text = new KTextField(\".sgm\", 30);\n TopicOfCollection_Text = new KTextField(DiasdemProject.getProperty(\n \"DEFAULT_REUTERS_21578_COLLECTION_TOPIC\"), 30);\n }\n Collection_Text.setCaretAtEnding();\n SourceDirectory_Text.setCaretAtEnding();\n FileNameFilter_Text.setCaretAtEnding();\n TopicOfCollection_Text.setCaretAtEnding();\n \n Parameter_Panel = new KGridBagPanel(0, 0, 0, 0);\n Parameter_Panel.startFocusForwarding(Collection_Text);\n \n Parameter_Panel.addLabel(\"Collection File:\", 0, 0, KeyEvent.VK_C,\n Collection_Button.getDefaultButton(), true,\n \"Task input: This collection file contains references \" +\n \"to all DIAsDEM documents.\");\n Parameter_Panel.addBlankColumn(1, 0, 12);\n Parameter_Panel.addComponent(Collection_Text, 2, 0);\n Parameter_Panel.addBlankColumn(3, 0, 12);\n Parameter_Panel.addKButtonPanel(Collection_Button, 4, 0);\n Parameter_Panel.addBlankRow(0, 1, 11, this.getPreferredSizeX());\n Parameter_Panel.addLabel(\"Reuters-21578 Directory:\", 0, 2, KeyEvent.VK_R,\n SourceDirectory_Button.getDefaultButton(), true,\n \"Task input: This directory must contain \" +\n \"original Reuters-21578 SGML files to be imported.\");\n Parameter_Panel.addComponent(SourceDirectory_Text, 2, 2);\n Parameter_Panel.addKButtonPanel(SourceDirectory_Button, 4, 2);\n Parameter_Panel.addBlankRow(0, 3, 11);\n Parameter_Panel.addComponent( IncludeSubdirectories_CheckBox, 2, 4,\n new Insets(0, 0, 0, 0), 3, 1);\n Parameter_Panel.addBlankRow(0, 5, 11);\n Parameter_Panel.addLabel(\"File Name Extension:\", 0, 6, KeyEvent.VK_N,\n FileNameFilter_Text, true,\n \"Task input: Reuters-21578 files to be imported \" +\n \"must have this file name extension.\");\n Parameter_Panel.addComponent( FileNameFilter_Text, 2, 6,\n new Insets(0, 0, 0, 0), 3, 1);\n Parameter_Panel.addBlankRow(0, 7, 11);\n Parameter_Panel.addLabel(\"Topic of Collection:\", 0, 8, KeyEvent.VK_T,\n TopicOfCollection_Text, true,\n \"Task input: Reuters-21578 news to be imported \" +\n \"must have this topic (e.g., earn).\");\n Parameter_Panel.addComponent( TopicOfCollection_Text, 2, 8,\n new Insets(0, 0, 0, 0), 3, 1);\n \n this.removeAll();\n this.validate();\n this.addNorth(Parameter_Panel);\n this.validate();\n this.setComponentStatus();\n \n }", "public void testPropertyChange() {\n System.out.println(\"propertyChange\");\n PropertyChangeEvent evt = null;\n Wizard instance = new Wizard();\n instance.propertyChange(evt);\n }", "public Element createJDOMRepresentation(PropertySet properties){\n\t\t\n\t\t//Create an empty \"root\" element\n\t\tElement rootProp = new Element(\"properties\");\n\t\trootProp.setName(\"properties\");\n\t\t\n\t\t//Iterate through the properties of this PropertySet\n\t\tIterator<Property> iterator = properties.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\t\n\t\t\t//Get the current Property\n\t\t\tProperty property = iterator.next();\n\t\t\t\n\t\t\t//Create a new Element representing this property\n\t\t\tElement prop = new Element(\"property\");\n\t\t\t\n\t\t\t//Add the appropriate attributes\n\t\t\tprop.setAttribute(\"name\", property.getName());\n\t\t\tprop.setAttribute(\"type\",String.valueOf(property.getMeasure().getType()));\n\t\t\tprop.setAttribute(\"description\", property.getDescription());\n\t\t\tprop.setAttribute(\"positive_impact\", String.valueOf(property.isPositive()));\n\t\t\t\n\t\t\t//TODO: Check how to get rid of this if statements - IDEA: Initialize these fields at value \"\"\n\t\t\tif(property.getMeasure().getMetricName() != null){\n\t\t\t\tprop.setAttribute(\"metricName\", property.getMeasure().getMetricName());\n\t\t\t}else{\n\t\t\t\tprop.setAttribute(\"metricName\", \"\");\n\t\t\t}\n\t\t\t\n\t\t\tif(property.getMeasure().getRulesetPath() != null){\n\t\t\t\tprop.setAttribute(\"ruleset\", property.getMeasure().getRulesetPath());\n\t\t\t}else{\n\t\t\t\tprop.setAttribute(\"ruleset\", \"\");\n\t\t\t}\n\t\t\tprop.setAttribute(\"tool\", property.getMeasure().getTool());\n\t\t\t//Save the thresholds as well (ascending order) \n\t\t\t//Create a node (element) containing the thresholds of the property\n\t\t\tElement thresholds = new Element(\"thresholds\");\n\t\t\tfor(int i = 0; i < property.getThresholds().length; i++){\n\t\t\t\t\n\t\t\t\t//Create a threshold Element\n\t\t\t\tElement t = new Element(\"threshold\");\n\t\t\t\t\n\t\t\t\t//Set the appropriate value of the threshold\n\t\t\t\tt.setText(String.valueOf(property.getThresholds()[i]));\n\t\t\t\t\n\t\t\t\t//Attach the current threshold element to the element named \"thresholds\"\n\t\t\t\tthresholds.addContent(t);\n\t\t\t}\n\t\t\t\n\t\t\t//Attach the \"thresholds\" sub element to the \"property\" element\n\t\t\tprop.addContent(thresholds);\n\t\t\t\n\t\t\t//Attach the \"property\" element to the \"properties\" parent element\n\t\t\trootProp.addContent(prop);\n\t\t}\n\t\t\n\t\t//Return the \"root\" element of the properties\n\t\treturn rootProp;\t\n\t}", "public InstallerPanel(SuiteInstallerProjectProperties props) {\n this.installerProps = props;\n initComponents();\n\n jCheckBox1.setModel(installerProps.windowsModel);\n jCheckBox2.setModel(installerProps.linuxModel);\n jCheckBox3.setModel(installerProps.macModel);\n jCheckBox4.setModel(installerProps.solarisModel);\n jCheckBox5.setModel(installerProps.pack200Model);\n \n licenseComboBox.setModel(installerProps.licenseModel);\n }", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "public void testChangeOfSpecies() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n oManager = new GUIManager(null);\n sFileName = writeValidXMLFile();\n oManager.inputXMLParameterFile(sFileName);\n \n //Now change the species\n String[] sNewSpecies = new String[] {\n \"Species 3\",\n \"Species 2\",\n \"Species 1\",\n \"Species 4\",\n \"Species 5\",\n \"Species 6\"};\n \n oManager.getTreePopulation().setSpeciesNames(sNewSpecies);\n ManagementBehaviors oManagementBeh = oManager.getManagementBehaviors();\n ArrayList<Behavior> p_oBehs = oManagementBeh.getBehaviorByParameterFileTag(\"QualityVigorClassifier\");\n assertEquals(1, p_oBehs.size());\n QualityVigorClassifier oQual = (QualityVigorClassifier) p_oBehs.get(0);\n \n assertEquals(3, oQual.mp_oQualityVigorSizeClasses.size());\n \n QualityVigorSizeClass oClass = oQual.mp_oQualityVigorSizeClasses.get(0);\n assertEquals(10, oClass.m_fMinDbh, 0.0001);\n assertEquals(20, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.78, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.88, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.61, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.55, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(1);\n assertEquals(20, oClass.m_fMinDbh, 0.0001);\n assertEquals(30, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.81, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.32, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.69, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.58, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(2);\n assertEquals(30, oClass.m_fMinDbh, 0.0001);\n assertEquals(40, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.34, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.57, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.26, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.66, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.45, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(2.35, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(2.43, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-2.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.12, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-1, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(-0.45, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.01, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.04, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.001, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.13, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.15, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.3, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.4, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.5, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(6, oQual.mp_iQualVigorDeciduous.getValue().size());\n for (int i = 0; i < oQual.mp_iQualVigorDeciduous.getValue().size(); i++)\n assertNotNull(oQual.mp_iQualVigorDeciduous.getValue().get(i));\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(1)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(0)).getValue());\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(3)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(4)).getValue());\n\n System.out.println(\"Change of species test succeeded.\");\n }\n catch (ModelException oErr) {\n fail(\"Change of species test failed with message \" + oErr.getMessage());\n }\n catch (java.io.IOException oE) {\n fail(\"Caught IOException. Message: \" + oE.getMessage());\n }\n finally {\n new File(sFileName).delete();\n }\n }", "protected void setUp() throws Exception {\n handler = new ChangePropertyHandler(MAINFRAME);\n }", "public PaperSettingsJPanel() {\n initComponents();\n }", "@Test(enabled = false)\n public void addPropertyInCompositionScreenTest() throws Exception {\n ResourceReqDetails vfMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());\n ResourceUIUtils.createVF(vfMetaData, getUser());\n\n ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();\n\n CompositionPage.showPropertiesAndAttributesTab();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = CompositionPage.getProperties().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n AssertJUnit.assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> CompositionPage.getProperties()));\n }", "@Test(enabled = false)\n public void addUpdateDeleteSimplePropertiesToDCAEAssetTest() throws Exception {\n createDCAEAsset();\n\n ResourceGeneralPage.getLeftMenu().moveToPropertiesScreen();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = PropertiesPage.getElemenetsFromTable().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> PropertiesPage.getElemenetsFromTable()));\n VfVerificator.verifyPropertiesInUI(propertyList);\n PropertiesPage.verifyTotalProperitesField(propertiesCount + propertyList.size());\n\n PropertyTypeEnum prop = propertyList.get(0);\n prop.setDescription(\"updatedDescription\");\n prop.setValue(\"value\");\n PropertiesUIUtils.updateProperty(prop);\n\n PropertiesPage.clickDeletePropertyArtifact(prop.getName());\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size() - 1, () -> PropertiesPage.getElemenetsFromTable()));\n }", "private void settingsPopup()\n {\n settingsFrame = new JFrame(\"Slideshow Settings\");\n JPanel settingsPanel = new JPanel(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n // Set initial parameters for grid bag constraints\n c.gridx = 1;\n c.gridy = 0;\n c.weighty = 0.5;\n c.gridwidth = 3;\n c.anchor = GridBagConstraints.CENTER;\n\n JCheckBox automatedCheckBox = new JCheckBox(\"Automatic Slideshow\");\n\n JLabel slideIntervalLabel = new JLabel(\"Default Slide Duration (sec): \");\n JTextField slideIntervalTF = new JTextField(String.valueOf(slideInterval));\n slideIntervalTF.setPreferredSize(new Dimension(50,25));\n\n if (automated) //only allow user to set a Slide interval if \"Automatic Slideshow\" is selected\n {\n automatedCheckBox.setSelected(true);\n slideIntervalTF.setEnabled(true);\n } else\n {\n automatedCheckBox.setSelected(false);\n slideIntervalTF.setEnabled(false);\n }\n\n automatedCheckBox.addActionListener(new ActionListener() //makes interval field active/inactive as user checks/unchecks the box\n {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (automatedCheckBox.isSelected())\n {\n slideIntervalTF.setEnabled(true);\n slideIntervalTF.setText(\"3.0\");\n }\n else {\n slideIntervalTF.setEnabled(false);\n slideIntervalTF.setText(\"0.0\");\n }\n }\n });\n\n JButton submitChanges = new JButton(\"Submit Changes\");\n submitChanges.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n automated = automatedCheckBox.isSelected();\n try {\n slideInterval = Double.parseDouble(slideIntervalTF.getText());\n if (slideInterval <= 0 && automated)\n {\n automated = false;\n JOptionPane.showMessageDialog(null, \"Invalid Slide Interval entered!\");\n }\n else if(slideInterval > 0) {\n\t timeline.setDefaultSlideDuration(slideInterval);\n\t timeline.setSlideDurationVisible(automated);\n\t timeline.setTimingVisible(automated);\n\t pack();\n\t setLocationRelativeTo(null);\n\t settingsPresent = false;\n\t settingsFrame.dispose();\n }\n else {\n \tautomated = false;\n \tsettingsPresent = false;\n \ttimeline.setSlideDurationVisible(automated);\n timeline.setTimingVisible(automated);\n pack();\n setLocationRelativeTo(null);\n \tsettingsFrame.dispose();\n }\n } catch (Exception ex) {\n if (automated)\n {\n automated = false;\n JOptionPane.showMessageDialog(null, \"Invalid Slide Interval entered!\");\n }\n else {\n settingsPresent = false;\n settingsFrame.dispose();\n }\n }\n }\n });\n\n settingsPanel.add(automatedCheckBox, c);\n c.gridy = 1;\n c.gridx = 0;\n c.gridwidth = 2;\n settingsPanel.add(slideIntervalLabel, c);\n c.gridx = 2;\n c.gridwidth = 2;\n settingsPanel.add(slideIntervalTF, c);\n c.gridx = 1;\n c.gridy = 2;\n c.gridwidth = 3;\n settingsPanel.add(submitChanges, c);\n settingsFrame.add(settingsPanel);\n\n //allows user to save new interval by hitting enter\n slideIntervalTF.addKeyListener(new KeyAdapter() {\n public void keyPressed(KeyEvent e)\n {\n if (e.getKeyCode() == KeyEvent.VK_ENTER) {\n submitChanges.doClick();\n }\n }\n });\n\n settingsFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n settingsFrame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n settingsPresent = false;\n }\n });\n\n ImageIcon windowIcon = new ImageIcon(\"images\\\\SlideshowIcon.png\");\n // TODO: Uncomment below for JAR\n //ImageIcon windowIcon = new ImageIcon(getClass().getClassLoader().getResource(\"SlideshowIcon.png\"));\n Image icon = windowIcon.getImage();\n settingsFrame.setIconImage(icon);\n settingsFrame.setSize(new Dimension(290,140));\n settingsFrame.setResizable(false);\n settingsFrame.setLocationRelativeTo(null);\n settingsFrame.setVisible(true);\n }", "private void validatePropertiesModels(GraphContext context) throws Exception\n {\n GraphService<PropertiesModel> service = new GraphService<>(context, PropertiesModel.class);\n\n int numberFound = 0;\n for (PropertiesModel model : service.findAll())\n {\n numberFound++;\n\n Properties props = model.getProperties();\n Assert.assertEquals(\"value1\", props.getProperty(\"example1\"));\n Assert.assertEquals(\"anothervalue\", props.getProperty(\"anotherproperty\"));\n Assert.assertEquals(\"1234\", props.getProperty(\"timetaken\"));\n }\n\n Assert.assertEquals(1, numberFound);\n }", "public void rebuild()\n {\n this.tilePropertyPanel.table.clearChildren();\n this.spritePropertyPanel.table.clearChildren();\n this.mapPropertyPanel.removeablePropertyPanel.table.clearChildren();\n if(map.selectedLayer != null)\n {\n this.layerPropertyPanel.setVisible(true);\n this.layerPropertyPanel.layerWidthProperty.value.setText(Integer.toString(map.selectedLayer.width));\n this.layerPropertyPanel.layerHeightProperty.value.setText(Integer.toString(map.selectedLayer.height));\n this.layerPropertyPanel.layerZProperty.value.setText(Float.toString(map.selectedLayer.z));\n }\n else\n this.layerPropertyPanel.setVisible(false);\n if(map.tileMenu.selectedTiles.size == 1)\n {\n if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.TILE)\n {\n Array<PropertyField> tileProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < tileProperties.size; i++)\n this.tilePropertyPanel.table.add(tileProperties.get(i)).padBottom(1).row();\n this.tilePropertyPanel.setVisible(true);\n }\n else if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.SPRITE)\n {\n Array<PropertyField> spriteProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n }\n if(map.selectedSprites.size > 0)\n {\n Array<PropertyField> spriteProperties = map.selectedSprites.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n if(map.selectedSprites.size == 0 && map.tileMenu.selectedTiles.size == 0)\n {\n for(int i = 0; i < mapPropertyPanel.properties.size; i ++)\n {\n this.mapPropertyPanel.removeablePropertyPanel.table.add(mapPropertyPanel.properties.get(i)).padBottom(1).row();\n }\n this.mapPropertyPanel.removeablePropertyPanel.setVisible(true);\n }\n if(this.layerPropertyPanel.isVisible())\n this.layerPropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.layerPropertyPanel.setSize(getWidth(), 0);\n if(this.tilePropertyPanel.isVisible())\n this.tilePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.tilePropertyPanel.setSize(getWidth(), 0);\n if(this.spritePropertyPanel.isVisible())\n this.spritePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.spritePropertyPanel.setSize(getWidth(), 0);\n if(this.mapPropertyPanel.removeablePropertyPanel.isVisible())\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), 0);\n\n this.propertyPanel.rebuild();\n this.propertyTable.invalidateHierarchy();\n\n setSize(getWidth(), getHeight()); // refits everything\n }", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"Controls 'Save view settings'\")\r\n\tpublic void SprintTest25_10_4A(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the controls link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault + \">>\" + Caption.ConfigSettings.Config_Controls.Value);\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the controls link.\");\r\n\r\n\t\t\t//Verification: To verify the 'Save view settings'\r\n\t\t\t//--------------------------------------------------\r\n\t\t\tList<WebElement> row = driver.findElements(By.cssSelector(\"div[id='configControls']>table>tbody>tr>td\"));\r\n\t\t\tint count = 0;\r\n\t\t\tfor(count = 0; count < row.size(); count++) {\r\n\t\t\t\tif(row.get(count).getText().contains(dataPool.get(\"Label\")))\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif(count != row.size()) {\r\n\t\t\t\trow = row.get(count+1).findElements(By.cssSelector(\"span\"));\r\n\t\t\t\tif(row.get(0).getText().contains(dataPool.get(\"Allow\")) && row.get(1).getText().contains(dataPool.get(\"Disallow\")))\r\n\t\t\t\t\tLog.pass(\"Test Case Passed. The Text changes for Save View settings was verified successfully.\");\r\n\t\t\t\telse\r\n\t\t\t\t\tLog.fail(\"Test Case Failed. The Text changes for the 'Allow & Disallow' of save view settings was not as expected.\", driver);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The option \" + dataPool.get(\"Label\") + \" was not found.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n assertFalse(intArray4.equals((Object)intArray2));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray1));\n \n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n intArray4[4] = 2;\n intArray4[5] = 0;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[0];\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray2));\n assertFalse(intArray5.equals((Object)intArray3));\n assertFalse(intArray5.equals((Object)intArray1));\n \n intArray0[4] = intArray5;\n int[] intArray6 = new int[3];\n assertFalse(intArray6.equals((Object)intArray2));\n assertFalse(intArray6.equals((Object)intArray5));\n assertFalse(intArray6.equals((Object)intArray3));\n assertFalse(intArray6.equals((Object)intArray1));\n assertFalse(intArray6.equals((Object)intArray4));\n \n intArray6[1] = 1;\n intArray6[2] = 2;\n intArray0[5] = intArray6;\n int[] intArray7 = new int[2];\n assertFalse(intArray7.equals((Object)intArray6));\n assertFalse(intArray7.equals((Object)intArray2));\n assertFalse(intArray7.equals((Object)intArray1));\n assertFalse(intArray7.equals((Object)intArray3));\n assertFalse(intArray7.equals((Object)intArray4));\n assertFalse(intArray7.equals((Object)intArray5));\n \n intArray7[0] = 1;\n intArray7[1] = 2;\n intArray0[6] = intArray7;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixSignificance0.setColHidden((-2541), false);\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixLatex0.getDefaultPrintColNames();\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean0);\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixGnuPlot0);\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertFalse(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertNotNull(resultMatrixSignificance1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n boolean boolean1 = resultMatrixLatex0.getDefaultPrintColNames();\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n boolean boolean2 = resultMatrixSignificance1.isSignificance(2);\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertFalse(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean2);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertTrue(boolean2 == boolean0);\n assertTrue(boolean2 == boolean1);\n }", "@Before\n public void setUp() throws Exception {\n driver = invokeCorrectBrowser();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n prop = new Properties();\t \n prop.load(new FileInputStream(\"./Configuration/CM_Configuration.properties\"));\n\tsAppURL = prop.getProperty(\"sAppURL\");\n\tsSharedUIMapPath = prop.getProperty(\"SharedUIMap\");\n\ttestDelay=prop.getProperty(\"testDelay\");\n\tprop.load(new FileInputStream(sSharedUIMapPath));\n }", "public void testGetPanelText() {\r\n System.out.println(\"getPanelText\");\r\n ContentPanel instance = new CommentPanel(new Comment(\"message\"));\r\n String expResult = \"message\";\r\n String result = instance.getPanelText();\r\n assertEquals(expResult, result);\r\n }", "private void loadModelProperties(ModelProperties modelProperties, Element parent) {\n final Element element = getElement(parent, \"model_properties\");\n assistLogic.loadLocation(modelProperties, element);\n assistLogic.loadColor(modelProperties, element);\n modelProperties.setDisplay(getBooleanValue(element, \"display\"));\n final NodeList nodeList = element.getElementsByTagName(\"model_property\");\n for (int i = 0; i < nodeList.getLength(); i++) {\n final Element propertyElement = (Element) nodeList.item(i);\n final String name = getStringValue(propertyElement, \"name\");\n final String migratedName = defaultModelPropertyMigrationMap.get(name);\n final String realName = migratedName != null ? migratedName : name;\n final String value = getStringValue(propertyElement, \"value\");\n final NameValue nameValue = new NameValue(realName, value);\n modelProperties.addProperty(nameValue);\n }\n }", "@Test(groups = {\"Sprint54\"}, description = \"Advanced search bar should be opened in No Java applet, no task area, but show Go To shortcuts layout.\")\r\n\tpublic void SprintTest54_1_20_5() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select No Java applet, no task area layout and save the settings\r\n\t\t\t//-------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setJavaApplet(Caption.ConfigSettings.Config_Disable.Value);\r\n\r\n\t\t\tif(configurationPage.configurationPanel.isJavaAppletEnabled())\r\n\t\t\t\tthrow new Exception(\"Java applet is enabled\");\r\n\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_TaskAreaWithShowGoTo.Value);\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Save the settings\r\n\t\t\t\tthrow new Exception(\"Configuration settings are not saved after changing its layout.\");\r\n\r\n\t\t\tLog.message(\"1. No java applet with task area with go to layout is selected and saved.\");\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. No java applet with task area with go to layout is selected and settings are saved.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and click Advanced Search in search pane\r\n\t\t\t//--------------------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\t\t\thomePage.searchPanel.clickAdvancedSearch(true); //Clicks Advanced search button\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page and advanced search button is clicked.\");\r\n\r\n\t\t\t//Verification : Verify if advanced search is displayed\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tif (homePage.searchPanel.isAdvancedSearchDisplayed()) //Verifies if Advanced search is displayed in No Java applet, no task area, but show Go To shortcuts layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Advanced search is displayed in No java applet with Task area only layout.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Advanced search is not displayed in No java applet with Task area only layout.\", driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "@Test\n public void testAddPropertyChangeListener() {\n // trivial\n }", "public void testOnePanel() {\n\t\t// Instantiate nested panels\n\t\tRasterFileTestPlotPanel parent =\n\t\t\tnew RasterFileTestPlotPanel(TEST_DIR);\n\t\t\n\t\t// Add background widgets to panel such that\n\t\t// they are top aligned and non-overlapping\n\t\tparent.add(new Background(WIDTH, HEIGHT, COLOR_1), true);\n\t\tparent.add(new Background(WIDTH, HEIGHT, COLOR_2),\n\t\t\t\tHorizontalAlignment.RIGHT_OF,\n\t\t\t\tVerticalAlignment.TOP_JUSTIFIED);\n\t\t\n\t\t// Output graphics to file\n\t\tparent.toPngFile(\"one-panel.png\");\n\t}", "protected void setUp() throws Exception {\n super.setUp();\n TestHelper.loadConfigurations();\n DocumentTreeTabbedPane parent =\n new DocumentTreeTabbedPaneImpl(TestHelper.createUMLModelManager(), TestHelper.NAMESPACE_NEW);\n panel = parent.getCurrentPanel();\n }", "public MySWsDecoderSizesAutoLayoutTests() {\n initComponents();\n \n \n }", "private void initialize() {\n buttonPanel1.addButton(\"Apply step and close\");\n buttonPanel1.setButtonIcon(\"Apply step and close\",new javax.swing.ImageIcon(getClass().getResource(\"/nl/astron/lofar/sas/otb/icons/16_apply.png\")));\n buttonPanel1.addButton(\"Close\");\n buttonPanel1.setButtonIcon(\"Close\",new javax.swing.ImageIcon(getClass().getResource(\"/nl/astron/lofar/sas/otb/icons/16_exit2.png\")));\n if(itsBBSStep == null){\n stepExplorerStepNameText.setEditable(true);\n }\n this.stepExplorerNSourcesList.setModel(new DefaultListModel());\n this.stepExplorerInstrumentModelList.setModel(new DefaultListModel());\n// this.stepExplorerESourcesList.setModel(new DefaultListModel());\n \n //fill the supported step operation panels\n stepOperationPanels.put(\"Predict\",null);\n stepOperationPanels.put(\"Solve\",\"nl.astron.lofar.sas.otbcomponents.bbs.stepmanagement.operations.BBSStepOperationPanelSolveImpl\");\n stepOperationPanels.put(\"Subtract\",null);\n stepOperationPanels.put(\"Correct\",null);\n \n // Fill the comboboxes (will need to be done from Database later)\n stepExplorerModifyNSourceCombobox.removeAllItems();\n stepExplorerModifyNSourceCombobox.addItem(\"CygA\");\n stepExplorerModifyNSourceCombobox.addItem(\"CasA\");\n stepExplorerModifyNSourceCombobox.addItem(\"TauA\");\n stepExplorerModifyNSourceCombobox.addItem(\"VirA\");\n stepExplorerModifyNSourceCombobox.addItem(\"HerA\");\n stepExplorerModifyNSourceCombobox.addItem(\"PerA\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C123\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C134\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C157\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C196\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C219\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C295\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C343\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C343.1\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C353\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C363.1\");\n stepExplorerModifyNSourceCombobox.addItem(\"3C400\");\n \n stepExplorerModifyInstrumentModelCombobox.removeAllItems();\n stepExplorerModifyInstrumentModelCombobox.addItem(\"TOTALGAIN\");\n stepExplorerModifyInstrumentModelCombobox.addItem(\"PATCHGAIN\");\n stepExplorerModifyInstrumentModelCombobox.addItem(\"BANDPASS\");\n }", "@Test\n public void testGetOptions()\n {\n List<String> labels = new ArrayList<>();\n labels.add(\"option 1\");\n labels.add(\"option 2\");\n labels.add(\"option 3\");\n when(m_AttributeModel.getOptionLabels()).thenReturn(labels);\n \n List<String> values = new ArrayList<>();\n values.add(\"1\");\n values.add(\"2\");\n values.add(\"3\");\n when(m_AttributeModel.getOptionValues()).thenReturn(values);\n \n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n\n assertThat(m_SUT.getOptions().size(), is(3));\n assertThat(m_SUT.getOptions().get(0).getLabel(), is(\"option 1\"));\n assertThat(m_SUT.getOptions().get(0).getValue(), is(\"1\"));\n assertThat(m_SUT.getOptions().get(1).getLabel(), is(\"option 2\"));\n assertThat(m_SUT.getOptions().get(1).getValue(), is(\"2\"));\n assertThat(m_SUT.getOptions().get(2).getLabel(), is(\"option 3\"));\n assertThat(m_SUT.getOptions().get(2).getValue(), is(\"3\"));\n }", "@Test public void modelExpectedProxyingBehavior() {\n\n boolean bigTableOfTruth[][] = new boolean[][]{\n /* proxySelTraffic, avoidProxy, proxy_everything, result */\n { true, true, true, true },\n { false, true, true, true },\n { true, false, true, true },\n { false, false, true, true },\n { true, true, false, false },\n { false, true, false, true },\n { true, false, false, true },\n { false, false, false, true },\n };\n\n for (int i = 0; i < bigTableOfTruth.length; i++) {\n boolean[] row = bigTableOfTruth[i];\n\n BrowserConfigurationOptions options = new BrowserConfigurationOptions();\n options.setOnlyProxySeleniumTraffic(row[0]);\n options.setAvoidProxy(row[1]);\n options.setProxyEverything(row[2]);\n\n Assert.assertEquals(\"Failure on row: \" + i, row[3], Proxies.isProxyingAllTraffic(options.asCapabilities()));\n }\n\n }", "public ParamPanel() {\n Insets lft_spc = new Insets(0, 5, 0, 0);\n\n /*----------------------------------------------\n Constructor: ParamPanel\n \n \n Purpose: Sets up the control panel containing the\n user specified parameters for performing\n the LSystems image\n \n ---------------------------------------------*/\n\n initColors();\n\n b_doApply = false;\n b_gotImagePnl = false;\n\n\n Panel lPanel = new Panel();\n Panel rPanel = new Panel();\n Panel mPanel = new Panel();\n ClrPanel bPanel = new ClrPanel(aColors);\n\n\n GridBagLayout gridbag = new GridBagLayout();\n GridBagConstraints c = new GridBagConstraints();\n setLayout(gridbag);\n\n c.fill = GridBagConstraints.HORIZONTAL;\t/* fill horizontally*/\n c.weightx = 1; \t\t\t /* each of the 3 panels\n get same horiz space */\n c.insets = new Insets(0, 0, 0, 10); \t/* pad left and right */\n\n c.gridwidth = 1;\n c.anchor = GridBagConstraints.NORTH;\n\n gridbag.setConstraints(lPanel, c);\n gridbag.setConstraints(rPanel, c);\n\n gridbag.setConstraints(mPanel, c);\n\n add(lPanel);\t\t\t/* add panels left to right */\n add(mPanel);\n add(rPanel);\n\n\n\n /*------------\n color panel\n ------------*/\n\n\n\n c = new GridBagConstraints();\n c.gridx = 0;\n c.gridwidth = GridBagConstraints.REMAINDER;\n c.insets = new Insets(15, 0, 0, 0);\n c.fill = GridBagConstraints.HORIZONTAL;\n c.anchor = GridBagConstraints.WEST;\n gridbag.setConstraints(bPanel, c);\n add(bPanel);\n\n gridbag = new GridBagLayout();\n bPanel.setLayout(gridbag);\n\n\n GridBagConstraints c_num = new GridBagConstraints();\n\n c_num.gridwidth = 1; /* first in row */\n c_num.fill = GridBagConstraints.HORIZONTAL;\n c_num.weightx = 1;\n\n\n c_num.insets = new Insets(5, 20, 5, 0);\n Label label8 = new Label(\"0\");\n gridbag.setConstraints(label8, c_num);\n bPanel.add(label8);\n\n c_num.insets = new Insets(5, 59, 5, 0);\n label8 = new Label(\"5\");\n gridbag.setConstraints(label8, c_num);\n bPanel.add(label8);\n\n label8 = new Label(\"10\");\n gridbag.setConstraints(label8, c_num);\n bPanel.add(label8);\n\n label8 = new Label(\"15\");\n gridbag.setConstraints(label8, c_num);\n bPanel.add(label8);\n\n label8 = new Label(\"20\");\n gridbag.setConstraints(label8, c_num);\n bPanel.add(label8);\n\n label8 = new Label(\"25\");\n gridbag.setConstraints(label8, c_num);\n bPanel.add(label8);\n\n\n label8 = new Label(\"30\");\n gridbag.setConstraints(label8, c_num);\n bPanel.add(label8);\n\n label8 = new Label(\"35\");\n gridbag.setConstraints(label8, c_num);\n bPanel.add(label8);\n\n c_num.insets = new Insets(5, 10, 5, 5);\n tb_clr = new TextField(3);\n gridbag.setConstraints(tb_clr, c_num);\n bPanel.add(tb_clr);\n\n\n\n gridbag = new GridBagLayout();\n c = new GridBagConstraints();\n setFont(new Font(\"Helvetica\", Font.PLAIN, 14));\n lPanel.setLayout(gridbag);\n\n c.fill = GridBagConstraints.NONE; /* stretch components left to right */\n\n\n\n c.fill = GridBagConstraints.HORIZONTAL; /* stretch components left to right */\n\n /*----------------------\n LSystems Samples\n ---------------------*/\n GridBagConstraints c_smpl = new GridBagConstraints();\n c_smpl.gridx = 0;\n c_smpl.gridy = 0;\n c_smpl.gridwidth = GridBagConstraints.REMAINDER;\n\n\n /* Rules Label */\n c_smpl.anchor = GridBagConstraints.WEST;\n Label label7 = new Label(\"Sample LSystems:\");\n gridbag.setConstraints(label7, c_smpl);\n lPanel.add(label7);\n\n\n GridBagConstraints c_btn = new GridBagConstraints();\n c_btn.gridwidth = 1;\n c_btn.fill = GridBagConstraints.HORIZONTAL;\n c_btn.weightx = 1;\n\n c_btn.gridx = 0;\n c_btn.gridy = 1;\n TextField tb_placeholder = new TextField(25);\n gridbag.setConstraints(tb_placeholder, c_btn);\n tb_placeholder.hide();\n lPanel.add(tb_placeholder);\n tb_placeholder.show();\n tb_placeholder.hide();\n\n /* List of Samples LSystem Patterns */\n c_smpl.fill = GridBagConstraints.HORIZONTAL;\n c_smpl.anchor = GridBagConstraints.WEST;\n c_smpl.gridy = 1;\n ch_ptrnspecs = new List(6, false);\n ch_ptrnspecs.clear();\n gridbag.setConstraints(ch_ptrnspecs, c_smpl);\n lPanel.add(ch_ptrnspecs);\n fillSpecChoices(ch_ptrnspecs);\n\n\n\n c_btn = new GridBagConstraints();\n c_btn.gridwidth = 1;\n c_btn.fill = GridBagConstraints.HORIZONTAL;\n c_btn.weightx = 1;\n c_btn.insets = new Insets(30, 0, 0, 0);\n\n\n /* Apply button */\n b_apply = new Button(\"Apply\");\n gridbag.setConstraints(b_apply, c_btn);\n lPanel.add(b_apply);\n\n\n\n\n\n\n gridbag = new GridBagLayout();\n c = new GridBagConstraints();\n setFont(new Font(\"Helvetica\", Font.PLAIN, 14));\n mPanel.setLayout(gridbag);\n c.fill = GridBagConstraints.NONE; /* stretch components left to right */\n\n /*----------------------\n Rule Controls\n ---------------------*/\n GridBagConstraints c_rule = new GridBagConstraints();\n c_rule.gridx = 0;\n c_rule.insets = lft_spc;\n c_rule.gridwidth = GridBagConstraints.REMAINDER;\n\n /* Rules Label */\n c_rule.anchor = GridBagConstraints.WEST;\n Label label5 = new Label(\"Rules:\");\n gridbag.setConstraints(label5, c_rule);\n mPanel.add(label5);\n\n\n /* List of Rules */\n c_rule.fill = GridBagConstraints.HORIZONTAL;\n c_rule.anchor = GridBagConstraints.WEST;\n lst_rules = new List(4, false);\n gridbag.setConstraints(lst_rules, c_rule);\n mPanel.add(lst_rules);\n lst_rules.clear();\n\n /* rule edit box */\n c_rule.insets = new Insets(35, 5, 0, 0);\n c_rule.anchor = GridBagConstraints.WEST;\n c_rule.fill = GridBagConstraints.NONE;\n tb_rule = new TextField(27);\n gridbag.setConstraints(tb_rule, c_rule);\n mPanel.add(tb_rule);\n\n\n\n\n\n /*------------------\n Rule Editing Buttons\n (Add, Update, Delete, New)\n ------------------*/\n\n c_btn = new GridBagConstraints();\n c_btn.insets = lft_spc;\n c_btn.gridwidth = 1;\n c_btn.fill = GridBagConstraints.HORIZONTAL;\n c_btn.weightx = 1;\n\n /* rule editing buttons */\n b_add = new Button(\"Add\");\n b_updt = new Button(\"Update\");\n b_del = new Button(\"Delete\");\n b_new = new Button(\"Clear\");\n\n\n gridbag.setConstraints(b_add, c_btn);\n\n gridbag.setConstraints(b_updt, c_btn);\n\n gridbag.setConstraints(b_del, c_btn);\n\n c_btn.gridwidth = GridBagConstraints.REMAINDER; /* last-in-row */\n gridbag.setConstraints(b_new, c_btn);\n\n\n mPanel.add(b_add);\n mPanel.add(b_updt);\n mPanel.add(b_del);\n mPanel.add(b_new);\n\n\n gridbag = new GridBagLayout();\n c = new GridBagConstraints();\n setFont(new Font(\"Helvetica\", Font.PLAIN, 14));\n rPanel.setLayout(gridbag);\n\n c.fill = GridBagConstraints.NONE; /* don't stretch components */\n\n\n cbg_Lines = new CheckboxGroup();\n\n\n /*-------------------\n Line Checkboxes\n ------------------*/\n GridBagConstraints c_line = new GridBagConstraints();\n c_line.gridx = 0;\n c_line.anchor = GridBagConstraints.WEST;\n c_line.gridwidth = GridBagConstraints.REMAINDER; /* last-in-row */\n\n\n\n /* Straight Line Checkbox*/\n\n c_line.insets = new Insets(20, 50, 0, 0);\n cb_strt = new Checkbox(\"Straight Lines\", cbg_Lines, true);\n gridbag.setConstraints(cb_strt, c_line);\n rPanel.add(cb_strt);\n\n\n /* Hermite Curve Checkbox*/\n\n c_line.insets = new Insets(0, 50, 0, 0);\n cb_hermite = new Checkbox(\"Hermite Curved Lines\", cbg_Lines, false);\n gridbag.setConstraints(cb_hermite, c_line);\n rPanel.add(cb_hermite);\n\n\n /* BSpline Curve Checkbox*/\n cb_bspline = new Checkbox(\"B-Spline Curved Lines\", cbg_Lines, false);\n c_line.insets = new Insets(0, 50, 12, 0);\n gridbag.setConstraints(cb_bspline, c_line);\n rPanel.add(cb_bspline);\n\n\n\n\n /*-------------------\n Parameter Text Boxes \n \n Axiom, Ignore, Depth, Angle, Scale\n ------------------*/\n\n GridBagConstraints c_textb = new GridBagConstraints();\n\n /* Axiom */\n c_textb.gridwidth = 1; /* first in row */\n c_textb.anchor = GridBagConstraints.WEST;\n Label label1 = new Label(\"Axiom: \");\n gridbag.setConstraints(label1, c_textb);\n rPanel.add(label1);\n\n\n c_textb.anchor = GridBagConstraints.WEST; /* reset */\n c_textb.gridwidth = GridBagConstraints.REMAINDER;/* last-in-row */\n tb_axiom = new TextField(26);\n gridbag.setConstraints(tb_axiom, c_textb);\n rPanel.add(tb_axiom);\n\n\n /* Ignore */\n c_textb.gridwidth = 1; /* first in row */\n c_textb.anchor = GridBagConstraints.WEST;\n Label label6 = new Label(\"Ignore: \");\n gridbag.setConstraints(label6, c_textb);\n rPanel.add(label6);\n\n c_textb.anchor = GridBagConstraints.WEST; /* reset */\n c_textb.gridwidth = GridBagConstraints.REMAINDER;/* last-in-row */\n tb_ignore = new TextField(26);\n gridbag.setConstraints(tb_ignore, c_textb);\n rPanel.add(tb_ignore);\n\n\n /* Depth */\n c_textb.gridwidth = 1; /* first in row */\n c_textb.anchor = GridBagConstraints.WEST;\n Label label2 = new Label(\"Depth:\");\n gridbag.setConstraints(label2, c_textb);\n rPanel.add(label2);\n\n\n c_textb.anchor = GridBagConstraints.WEST; /* reset */\n tb_depth = new TextField(1);\n gridbag.setConstraints(tb_depth, c_textb);\n rPanel.add(tb_depth);\n\n\n /* Angle */\n c_textb.anchor = GridBagConstraints.WEST; /* reset */\n Label label3 = new Label(\"Angle:\");\n gridbag.setConstraints(label3, c_textb);\n rPanel.add(label3);\n\n\n c_textb.anchor = GridBagConstraints.WEST; /* reset */\n tb_angle = new TextField(3);\n gridbag.setConstraints(tb_angle, c_textb);\n rPanel.add(tb_angle);\n\n\n /* Scale */\n c_textb.anchor = GridBagConstraints.WEST; /* reset */\n Label label4 = new Label(\"Scale:\");\n gridbag.setConstraints(label4, c_textb);\n rPanel.add(label4);\n\n\n c_textb.anchor = GridBagConstraints.WEST; /* reset */\n tb_scale = new TextField(3);\n gridbag.setConstraints(tb_scale, c_textb);\n rPanel.add(tb_scale);\n\n\n\n lPanel.show();\n rPanel.show();\n mPanel.show();\n bPanel.show();\n\n tb_placeholder.hide();\n\n\n ch_ptrnspecs.select(0);\n changeSpecs(ch_ptrnspecs.getSelectedIndex());\n\n\n }", "private JPanel buildMainPanel() {\n\t\t\n\t\tint row;\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel main;\n\t\tJLabel label;\t\t\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tmain = new JPanel(layout);\n\t\trow = 0;\t\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_CURRENT_CONFIGURATION)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.EAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.MED_INSETS);\n\t\tGUIUtils.add(main, label = new JLabel(userPrefs.getConfiguration()), \n\t\t\t\tlayout, constraints, row++, 1, 1, 1, GridBagConstraints.WEST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tlabel.setForeground(Color.BLUE);\t\t\n\t\tGUIUtils.add(main, new JSeparator(), layout, constraints, row++, 0, 1, \n\t\t\t\t2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, \n\t\t\t\tGUIUtils.MED_INSETS);\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_CONFIGURATION_NAME)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.NORTHEAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(main, new JScrollPane(configurationName = \n\t\t\t\tnew JTextField(20)), layout, constraints, row++, 1, 1, 1, \n\t\t\t\tGridBagConstraints.WEST, GridBagConstraints.NONE, \n\t\t\t\tGUIUtils.SMALL_INSETS);\t\t\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_MAKE_DEFAULT)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.EAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(main, makeDefault = new JCheckBox(), layout, \n\t\t\t\tconstraints, row++, 1, 1, 1, GridBagConstraints.WEST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\treturn main;\n\t}", "@Test(groups = {\"Sprint54\"}, description = \"Advanced search bar should be opened in No Java Applet layout.\")\r\n\tpublic void SprintTest54_1_20_3() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select No Java Applet layout and save the settings\r\n\t\t\t//-------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setJavaApplet(Caption.ConfigSettings.Config_Disable.Value);//Disabled the java applet in configuration page\r\n\r\n\t\t\tif(configurationPage.configurationPanel.isJavaAppletEnabled())//Verify if java applet is disabled or not\r\n\t\t\t\tthrow new Exception(\"Java applet is enabled.\");\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Save the settings in configuration page\r\n\t\t\t\tthrow new Exception(\"Configuration settings are not saved after changing its layout.\");\r\n\r\n\t\t\tLog.message(\"1. Java applet is disabled and Configuration settings are saved.\");\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. No Java applet layout is selected and settings are saved.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and click Advanced Search in search pane\r\n\t\t\t//--------------------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\t\t\thomePage.searchPanel.clickAdvancedSearch(true); //Clicks Advanced search button\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page and advanced search button is clicked.\");\r\n\r\n\t\t\t//Verification : Verify if advanced search is displayed\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tif (homePage.searchPanel.isAdvancedSearchDisplayed()) //Verifies if Advanced search is displayed in default layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Advanced search is displayed in No java applet layout.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Advanced search is not displayed in No java applet layout.\", driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "@Test\n\tpublic void addButtons__wrappee__PlaylistTest() throws Exception {\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.ogg &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.volumecontrol &&\n\t\t\t\tConfiguration.shufflerepeat &&\n\t\t\t\tConfiguration.playlist\n\t\t) {\n\t\t\tstart();\n\t\t\t\n\t\t\t\n\t\t\tWhitebox.invokeMethod(gui, \"addButtons__wrappee__Playlist\");\n\t\t\tJScrollPane scroll = (JScrollPane) MemberModifier.field(Application.class, \"scrollPane\").get(gui);\n\t\t\tassertTrue(scroll.getBounds().getX() == 361);\n\t\t\tassertTrue(scroll.getBounds().getY() == 49);\n\t\t\tassertTrue(scroll.getBounds().getWidth() == 409);\n\t\t\tassertTrue(scroll.getBounds().getHeight() == 264);\n\t\t}\n\t}", "public PropertiesChooserView() {\n initComponents();\n choicesModel = new DefaultListModel();\n chosenModel = new DefaultListModel();\n chooseList.setModel(choicesModel);\n chosenList.setModel(chosenModel);\n }", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setRowNameWidth(3);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixHTML0.getShowAverage();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean0);\n \n boolean boolean1 = resultMatrixPlainText0.isSignificance(0);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n int int0 = resultMatrixHTML0.getColCount();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, int0);\n \n int[] intArray2 = resultMatrixHTML0.getRowOrder();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertNull(intArray2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1065, 1);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixCSV0.setMeanPrec(2);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String[][] stringArray0 = resultMatrixPlainText0.toArray();\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertNotNull(stringArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(3, stringArray0.length);\n \n String string0 = resultMatrixCSV0.getSummaryTitle(1);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"b\", string0);\n \n String string1 = resultMatrixCSV0.toStringRanking();\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-ranking data not set-\", string1);\n assertFalse(string1.equals((Object)string0));\n \n double double0 = resultMatrixGnuPlot0.getAverage(554);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n \n resultMatrixPlainText0.assign(resultMatrixCSV0);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1065, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(1065, resultMatrixPlainText0.getVisibleColCount());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean2 = resultMatrixGnuPlot0.isAverage(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean2);\n assertTrue(boolean2 == boolean1);\n assertTrue(boolean2 == boolean0);\n }", "@Test\n\tpublic void guiElementsTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConfiguration.showtime&&\n\t\tConfiguration.volumecontrol&&\n\t\tConfiguration.mute\n\t\t) {\t\n\n\t\tstart();\n\t\tJMenu menu = (JMenu) MemberModifier.field(Application.class, \"menu\").get(gui);\n\t\tassertEquals(menu.getName(), \"menu\");\n\t\tJMenuItem menuItem = menu.getItem(0);\n\t\tassertTrue(menuItem.getComponentListeners() != null);\n\t\t}\n\t}", "public epsilonEditSettings(basicSettings e) { //epsilonGreedySettings\n initComponents();\n\n buttonGroup1 = new ButtonGroup();\n buttonGroup1.add(jCheckBox1);\n buttonGroup1.add(jCheckBox2);\n buttonGroup1.add(jCheckBox3);\n\n eps = (epsilonGreedySettings) e;\n jSpinner1.setValue(eps.getEpsilon());\n jSpinner2.setValue(eps.getLearningRate());\n\n if (eps.getInitializationMode() == initializationMode.NORMAL) {\n jCheckBox1.setSelected(true);\n }\n if (eps.getInitializationMode() == initializationMode.OPTIMISTIC) {\n jCheckBox2.setSelected(true);\n }\n if (eps.getInitializationMode() == initializationMode.PESSIMISTIC) {\n jCheckBox3.setSelected(true);\n }\n\n\n }", "private void initializePSMPanel() {\n psmAnalysisPanel = new JPanel(new GridBagLayout());\n\n GridBagConstraints c = new GridBagConstraints();\n c.fill = GridBagConstraints.HORIZONTAL;\n c.insets = new Insets(5, 5, 5, 5);\n\n int row = 0;\n\n // fieldPSMAnalysisFileID >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n c.gridx = 0;\n c.gridy = row;\n c.gridwidth = 1;\n psmAnalysisPanel.add(new JLabel(\"FileID for PSM output:\"), c);\n\n NumberFormat nf = NumberFormat.getNumberInstance();\n nf.setMaximumFractionDigits(0);\n\n fieldPSMAnalysisFileID = new JFormattedTextField(nf);\n fieldPSMAnalysisFileID.setValue(PIASettings.PSM_ANALYSIS_FILE_ID.getDefaultInteger());\n c.gridx = 1;\n c.gridy = row;\n c.gridwidth = 1;\n c.weightx = 1;\n psmAnalysisPanel.add(fieldPSMAnalysisFileID, c);\n\n c.gridx = 2;\n c.gridy = row++;\n c.gridwidth = 1;\n c.weightx = 0;\n psmAnalysisPanel.add(new JLabel(\"(0 for merge/overview, 1..n for specific file given to the compiler)\"), c);\n // fieldPSMAnalysisFileID <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n // CalculateAllFDR >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n checkCalculateAllFDR = new JCheckBox(\"Calculate FDR for all files\");\n checkCalculateAllFDR.setSelected(PIASettings.CALCULATE_ALL_FDR.getDefaultBoolean());\n checkCalculateAllFDR.addChangeListener(this);\n c.gridx = 0;\n c.gridy = row++;\n c.gridwidth = 3;\n psmAnalysisPanel.add(checkCalculateAllFDR, c);\n // CalculateAllFDR <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n // CalculateCombinedFDRScore >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n checkCalculateCombinedFDRScore = new JCheckBox(\"Calculate Combined FDR Score (used to combine results of multiple search engines)\");\n checkCalculateCombinedFDRScore.setSelected(PIASettings.CALCULATE_COMBINED_FDR_SCORE.getDefaultBoolean());\n checkCalculateCombinedFDRScore.setEnabled(allowCombinedFDRScoreCalculation());\n c.gridx = 0;\n c.gridy = row++;\n c.gridwidth = 3;\n psmAnalysisPanel.add(checkCalculateCombinedFDRScore, c);\n // CalculateCombinedFDRScore <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n // DecoyStrategyAndPattern >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n c.gridx = 0;\n c.gridy = row;\n c.gridwidth = 1;\n psmAnalysisPanel.add(new JLabel(\"How to define decoys:\"), c);\n\n JRadioButton allDecoyStrategyPattern = new JRadioButton(\"accession pattern\");\n allDecoyStrategyPattern.setActionCommand(FDRData.DecoyStrategy.ACCESSIONPATTERN.toString());\n allDecoyStrategyPattern.addActionListener(this);\n allDecoyStrategyPattern.setSelected(PIASettings.ALL_DECOY_STRATEGY.getDefaultString().equals(allDecoyStrategyPattern.getActionCommand()));\n allDecoyStrategyPattern.addActionListener(this);\n\n JRadioButton allDecoyStrategySearchengine = new JRadioButton(\"by searchengine\");\n allDecoyStrategySearchengine.setActionCommand(FDRData.DecoyStrategy.SEARCHENGINE.toString());\n allDecoyStrategySearchengine.addActionListener(this);\n allDecoyStrategySearchengine.setSelected(PIASettings.ALL_DECOY_STRATEGY.getDefaultString().equals(allDecoyStrategySearchengine.getActionCommand()));\n allDecoyStrategySearchengine.addActionListener(this);\n\n allDecoyStrategy = new ButtonGroup();\n allDecoyStrategy.add(allDecoyStrategyPattern);\n allDecoyStrategy.add(allDecoyStrategySearchengine);\n\n c.insets = new Insets(0, 5, 0, 5);\n c.gridx = 1;\n c.gridy = row++;\n c.gridwidth = 1;\n psmAnalysisPanel.add(allDecoyStrategyPattern, c);\n\n c.gridx = 1;\n c.gridy = row++;\n c.gridwidth = 1;\n psmAnalysisPanel.add(allDecoyStrategySearchengine, c);\n\n c.insets = new Insets(5, 5, 5, 5);\n c.gridx = 0;\n c.gridy = row;\n c.gridwidth = 1;\n c.gridheight = 1;\n psmAnalysisPanel.add(new JLabel(\"Decoy pattern:\"), c);\n\n fieldAllDecoyPattern = new JTextField(PIASettings.ALL_DECOY_PATTERN.getDefaultString(), 10);\n fieldAllDecoyPattern.setEnabled(allDecoyStrategyPattern.isSelected());\n c.gridx = 1;\n c.gridy = row;\n c.gridwidth = 1;\n psmAnalysisPanel.add(fieldAllDecoyPattern, c);\n\n c.gridwidth = 1;\n c.gridheight = 1;\n c.gridx = 2;\n c.gridy = row++;\n psmAnalysisPanel.add(new JLabel(\"(common patterns are e.g.: \\\"rev_.*\\\", \\\"DECOY_.*\\\")\"), c);\n // DecoyStrategyAndPattern <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n // AllUsedIdentifications >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n c.gridx = 0;\n c.gridy = row;\n c.gridwidth = 1;\n psmAnalysisPanel.add(new JLabel(\"Used identifications:\"), c);\n\n JRadioButton usedIdentificationsTop = new JRadioButton(\"only top identification per spectrum (all other identifications will be discarded)\");\n usedIdentificationsTop.setActionCommand(\"1\");\n usedIdentificationsTop.setSelected(PIASettings.ALL_USED_IDENTIFICATIONS.getDefaultInteger() == 1 );\n JRadioButton usedIdentificationsAll = new JRadioButton(\"all identifications per spectrum\");\n usedIdentificationsAll.setActionCommand(\"0\");\n usedIdentificationsAll.setSelected(PIASettings.ALL_USED_IDENTIFICATIONS.getDefaultInteger() == 0);\n\n allUsedTopIdentifications = new ButtonGroup();\n allUsedTopIdentifications.add(usedIdentificationsTop);\n allUsedTopIdentifications.add(usedIdentificationsAll);\n\n c.insets = new Insets(0, 5, 0, 5);\n c.gridx = 1;\n c.gridy = row++;\n c.gridwidth = 2;\n psmAnalysisPanel.add(usedIdentificationsTop, c);\n\n c.gridx = 1;\n c.gridy = row++;\n psmAnalysisPanel.add(usedIdentificationsAll, c);\n c.insets = new Insets(5, 5, 5, 5);\n // AllTopIdentifications <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n // PreferredFDRScore >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n JPanel fdrScorePanel = new JPanel(new GridBagLayout());\n fdrScorePanel.setBorder(BorderFactory.createTitledBorder(\"Preferred PSM scores\"));\n\n GridBagConstraints layoutFdrScorePanel = new GridBagConstraints();\n layoutFdrScorePanel.fill = GridBagConstraints.HORIZONTAL;\n\n layoutFdrScorePanel.gridx = 0;\n layoutFdrScorePanel.gridy = 0;\n fdrScorePanel.add(new JLabel(\"Available scores\"), layoutFdrScorePanel);\n\n DefaultListModel<String> availablePreferredFDRScores = new DefaultListModel<>();\n\n availablePreferredFDRScoresList = new JList<>(availablePreferredFDRScores);\n availablePreferredFDRScoresList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n availablePreferredFDRScoresList.setLayoutOrientation(JList.VERTICAL);\n availablePreferredFDRScoresList.setCellRenderer(new ScoreCellRenderer());\n\n JScrollPane listScroller = new JScrollPane(availablePreferredFDRScoresList);\n listScroller.setPreferredSize(new Dimension(200, 100));\n\n // add all the scores, refine later\n for (ScoreModelEnum score : ScoreModelEnum.values()) {\n if (!ScoreModelEnum.getNotForPSMFdrScore().contains(score) && !ScoreModelEnum.UNKNOWN_SCORE.equals(score)) {\n availablePreferredFDRScores.addElement(score.getShortName());\n }\n }\n\n layoutFdrScorePanel.gridx = 0;\n layoutFdrScorePanel.gridy = 1;\n fdrScorePanel.add(listScroller, layoutFdrScorePanel);\n\n layoutFdrScorePanel.gridx = 2;\n layoutFdrScorePanel.gridy = 0;\n fdrScorePanel.add(new JLabel(\"Selected scores\"), layoutFdrScorePanel);\n\n DefaultListModel<String> selectedPreferredFDRScores = new DefaultListModel<>();\n\n selectedPreferredFDRScoresList = new JList<>(selectedPreferredFDRScores);\n selectedPreferredFDRScoresList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n selectedPreferredFDRScoresList.setLayoutOrientation(JList.VERTICAL);\n selectedPreferredFDRScoresList.setCellRenderer(new ScoreCellRenderer());\n\n listScroller = new JScrollPane(selectedPreferredFDRScoresList);\n listScroller.setPreferredSize(new Dimension(200, 100));\n\n layoutFdrScorePanel.gridx = 2;\n layoutFdrScorePanel.gridy = 1;\n fdrScorePanel.add(listScroller, layoutFdrScorePanel);\n\n\n JPanel psmScoreButtonsPanel = new JPanel();\n psmScoreButtonsPanel.setLayout(new BoxLayout(psmScoreButtonsPanel, BoxLayout.Y_AXIS));\n psmScoreButtonsPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));\n\n addToPreferredButton = new JButton(\"Add >>\");\n addToPreferredButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n addToPreferredButton.addActionListener(this);\n psmScoreButtonsPanel.add(addToPreferredButton);\n\n psmScoreButtonsPanel.add(Box.createRigidArea(new Dimension(0, 5)));\n\n removeFromPreferredButton = new JButton(\"Remove <<\");\n removeFromPreferredButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n removeFromPreferredButton.addActionListener(this);\n psmScoreButtonsPanel.add(removeFromPreferredButton);\n\n layoutFdrScorePanel.gridx = 1;\n layoutFdrScorePanel.gridy = 1;\n fdrScorePanel.add(psmScoreButtonsPanel, layoutFdrScorePanel);\n\n layoutFdrScorePanel.gridx = 0;\n layoutFdrScorePanel.gridy = 2;\n layoutFdrScorePanel.gridwidth = 3;\n fdrScorePanel.add(new JLabel(\"If no score is selected, PIA will use defaults.\"), layoutFdrScorePanel);\n\n c.gridx = 0;\n c.gridy = row++;\n c.gridwidth = 3;\n psmAnalysisPanel.add(fdrScorePanel, c);\n // PreferredFDRScore <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n // PSMLevelFilters >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n filtersPSMLevel = new FilterPanel(\"Filters for PSM level\");\n\n // add all available PSM filters\n for (RegisteredFilters filter : RegisteredFilters.getPSMFilters()) {\n filtersPSMLevel.addAvailableFilter(filter);\n }\n filtersPSMLevel.addAvailableFilter(RegisteredFilters.PSM_SCORE_FILTER);\n filtersPSMLevel.addAvailableFilter(RegisteredFilters.PSM_TOP_IDENTIFICATION_FILTER);\n\n c.gridx = 0;\n c.gridy = row++;\n c.gridwidth = 3;\n c.fill = GridBagConstraints.HORIZONTAL;\n c.anchor = GridBagConstraints.NORTHWEST;\n psmAnalysisPanel.add(filtersPSMLevel, c);\n\n c.gridx = 0;\n c.gridy = row++;\n c.gridwidth = 3;\n c.fill = GridBagConstraints.HORIZONTAL;\n c.weighty = 1.0;\n c.anchor = GridBagConstraints.NORTH;\n psmAnalysisPanel.add(new JLabel(\"Selected filters do not impact the peptide and protein inference, but only the export of PSMs.\"), c);\n // PSMLevelFilters <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n }", "@Test(groups = {\"Sprint54\"}, description = \"Search bar should not be availble in Listing pane only layout.\")\r\n\tpublic void SprintTest54_1_20_7() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select Listing pane only and save the settings\r\n\t\t\t//-------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_ListingPaneOnly.Value); //Sets as Listing pane only layout\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getLayout().equalsIgnoreCase(Caption.ConfigSettings.Config_ListingPaneOnly.Value)) //Verifies if Listing pane only layout is selected\r\n\t\t\t\tthrow new Exception(\"Default layout is not selected.\");\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Saves the settings\r\n\t\t\t\tthrow new Exception(\"Settings are not saved properly.\");\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. \" + Caption.ConfigSettings.Config_ListingPaneOnly.Value + \" layout is selected and settings are saved.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and click Advanced Search in search pane\r\n\t\t\t//--------------------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page.\");\r\n\r\n\t\t\t//Verification : Verify if advanced search is displayed\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tif (!homePage.isSearchbarPresent()) //Verifies if Advanced search is displayed in No Java applet, no task area, but show Go To shortcuts layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Search is not displayed in \" + Caption.ConfigSettings.Config_ListingPaneOnly.Value + \" layout.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Search bar is displayed in \" + Caption.ConfigSettings.Config_ListingPaneOnly.Value + \" layout.\", driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "@Test(groups = {\"Sprint54\"}, description = \"Advanced search bar should be opened in Default and Navigation pane layout.\")\r\n\tpublic void SprintTest54_1_20_2() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select Default and navigation pane layout and save the settings\r\n\t\t\t//-------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_DefaultAndNavigation.Value); //Sets as Default and Navigation layout\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getLayout().equalsIgnoreCase(Caption.ConfigSettings.Config_DefaultAndNavigation.Value)) //Verifies if default layout is selected\r\n\t\t\t\tthrow new Exception(\"Default layout is not selected.\");\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Saves the settings\r\n\t\t\t\tthrow new Exception(\"Settings are not saved properly.\");\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. \" + Caption.ConfigSettings.Config_DefaultAndNavigation.Value + \" layout is selected and settings are saved.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and click Advanced Search in search pane\r\n\t\t\t//--------------------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\t\t\thomePage.searchPanel.clickAdvancedSearch(true); //Clicks Advanced search button\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page and advanced search button is clicked.\");\r\n\r\n\t\t\t//Verification : Verify if advanced search is displayed\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tif (homePage.searchPanel.isAdvancedSearchDisplayed()) //Verifies if Advanced search is displayed in default layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Advanced search is displayed in \" + Caption.ConfigSettings.Config_DefaultAndNavigation.Value + \" layout.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Advanced search is not displayed in \" + Caption.ConfigSettings.Config_DefaultAndNavigation.Value + \" layout.\", driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "public void genProperties(PropertiesModel propModel) {\n\t\tpropModel.addProp(\"X\", position.x());\n\t\tpropModel.addProp(\"Y\", position.y());\n\t\tpropModel.addProp(\"Collision Radius\", collisionRadius);\n\t}", "protected void tearDown() throws Exception {\n panel = null;\n propertiesPanel = null;\n\n TestHelper.clearConfigFile(TestHelper.NAMESPACE);\n }", "public void initPanel() {\n\n puzzlePanel.setVisible(false);\n puzzlePanel = new PuzzlePanel(panelSize);\n\n getContentPane().add(puzzlePanel, BorderLayout.CENTER);\n getContentPane().add(controlPanel, BorderLayout.SOUTH);\n puzzlePanel.setVisible(true);\n\n isWin = false;\n puzzlePanel.setMoveCount(0);\n\n lblMove.setText(\"Jumlah Gerakan: 0\");\n lblTime.setText(\"Waktu: 0 detik\");\n startTime = System.currentTimeMillis();\n\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n while (!isWin) {\n try {\n currentTime = System.currentTimeMillis();\n lblTime.setText(\"Waktu terpakai: \" + ((currentTime - startTime) / 1000)\n + \" detik\");\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n }\n }\n });\n t.start();\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n AspectRatio aspectRatio0 = homeEnvironment0.getVideoAspectRatio();\n HomeEnvironment.Property homeEnvironment_Property0 = HomeEnvironment.Property.WALLS_ALPHA;\n PropertyChangeListener propertyChangeListener0 = mock(PropertyChangeListener.class, new ViolatedAssumptionAnswer());\n PropertyChangeListenerProxy propertyChangeListenerProxy0 = new PropertyChangeListenerProxy(\"eH]^40[h2\", propertyChangeListener0);\n PropertyChangeEvent propertyChangeEvent0 = new PropertyChangeEvent(homeEnvironment_Property0, \"eH]^40[h2\", (Object) null, homeEnvironment0);\n propertyChangeEvent0.setPropagationId(propertyChangeListenerProxy0);\n propertyChangeEvent0.toString();\n propertyChangeListenerProxy0.propertyChange(propertyChangeEvent0);\n PropertyChangeEvent propertyChangeEvent1 = new PropertyChangeEvent(propertyChangeListenerProxy0, \"{@sDvCJq(i\", aspectRatio0, \"eH]^40[h2\");\n propertyChangeEvent1.toString();\n propertyChangeListenerProxy0.propertyChange(propertyChangeEvent1);\n homeEnvironment0.addPropertyChangeListener(homeEnvironment_Property0, propertyChangeListenerProxy0);\n URL uRL0 = MockURL.getFtpExample();\n TemporaryURLContent temporaryURLContent0 = new TemporaryURLContent(uRL0);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", \"eH]^40[h2\", temporaryURLContent0, (-1942.4762F), 1805.02F, \"\", true);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n homeEnvironment0.setSkyTexture(homeTexture0);\n homeEnvironment0.setWallsAlpha((-1942.4762F));\n homeEnvironment0.setGroundColor(0);\n homeEnvironment0.getPhotoAspectRatio();\n homeEnvironment0.getGroundColor();\n HomeEnvironment.Property homeEnvironment_Property1 = HomeEnvironment.Property.WALLS_ALPHA;\n homeEnvironment0.removePropertyChangeListener(homeEnvironment_Property1, propertyChangeListenerProxy0);\n homeEnvironment0.getPhotoWidth();\n homeEnvironment0.setAllLevelsVisible(true);\n homeEnvironment0.setGroundColor(0);\n assertTrue(homeEnvironment0.isAllLevelsVisible());\n }" ]
[ "0.66307914", "0.633369", "0.61244524", "0.60435504", "0.60011065", "0.5997612", "0.58692414", "0.5769882", "0.5743094", "0.5702662", "0.56235695", "0.5600354", "0.5587078", "0.5560079", "0.5549826", "0.55035394", "0.54651654", "0.5448816", "0.54289854", "0.5358437", "0.5347725", "0.52916086", "0.528221", "0.5253826", "0.5252964", "0.5229086", "0.5209086", "0.5187709", "0.51480985", "0.50998044", "0.50886387", "0.50801593", "0.50605845", "0.5051872", "0.5049422", "0.5042059", "0.5032314", "0.5032314", "0.5012825", "0.501229", "0.49995753", "0.4996848", "0.49928334", "0.49663037", "0.49637374", "0.49425128", "0.4929731", "0.49180928", "0.49097976", "0.49097708", "0.49047458", "0.49020383", "0.4895125", "0.48869702", "0.48843688", "0.48721272", "0.48640546", "0.48582444", "0.48537102", "0.48512253", "0.4851169", "0.484649", "0.4836567", "0.4831777", "0.48284113", "0.48219505", "0.48189485", "0.4815381", "0.479698", "0.47958916", "0.47952884", "0.4792368", "0.47905645", "0.47871074", "0.47869602", "0.47818524", "0.47816372", "0.4779516", "0.4771015", "0.47683573", "0.4764607", "0.47470728", "0.4746985", "0.4746526", "0.4742759", "0.47411373", "0.47382408", "0.47193146", "0.47159407", "0.4710663", "0.47096506", "0.47067633", "0.47031462", "0.47014633", "0.46997023", "0.46995777", "0.4692831", "0.4692216", "0.46792135", "0.46722466" ]
0.5918788
6
Tests PropertiesPanelrefreshPanel() for accuracy.
public void testRefreshPanel() { Package packageObject = new PackageImpl(); instance.configurePanel(packageObject); assertEquals("Failed to configure the left panel.", 4, ((JPanel) instance.getComponent(0)).getComponentCount()); assertEquals("Failed to configure the right panel.", 1, ((JPanel) instance.getComponent(1)).getComponentCount()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testRefreshPanel() {\n Operation element = new OperationImpl();\n element.setConcurrency(CallConcurrencyKind.CONCURRENT);\n\n panel.configurePanel(element);\n\n assertTrue(\"Failed to refresh panel correctly.\",\n ((JCheckBox) panel.retrievePanel().getComponent(0)).isSelected());\n }", "public void refreshPanelComponents() {\r\n }", "@Override\n public void testPeriodic() {\n\n LiveWindow.updateValues();\n }", "public void testCtor1() throws Exception {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", new PropertiesPanel(NAMESPACE, manager));\n }", "void updatedProperty(TestResult tr, String name, String value);", "private void updatePanel() {\n\t\tProbeUtilities.updateModelProbePanel();\n\t}", "public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }", "@Deprecated\n protected void refreshProperties() {\n if (applicationProperties.size() > 0) {\n StringBuilder sb = new StringBuilder(\"/test/refreshUtil.jsp?actionType=1\");\n\n int i = 0;\n\n for (String s : applicationProperties.stringPropertyNames()) {\n logger.info(String.format(\"Property '%s' was set to '%s'\", s, applicationProperties.getProperty(s)));\n sb.append(\"&propName{0}={1}&propValue{0}={2}\".replace(\"{0}\", Integer.toString(i++)).replace(\"{1}\", s)\n .replace(\"{2}\", applicationProperties.getProperty(s)));\n }\n\n try {\n URL url = new URL(applicationUrl, sb.toString());\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"GET\");\n logger.info(String.format(\"refreshUtil returned response: %s\", connection.getResponseMessage()));\n }\n catch (IOException e) {\n throw new CucumberException(e);\n }\n }\n }", "@Test\n public void showPanelWhenUserEnablesPanel() throws Throwable {\n Utils.openDrawer(getActivityTestRule());\n clickAdapterViewItem(10, R.id.navigation_drawer); //Show preference screen\n SharedPreferences.Editor edit = PreferenceManager.getDefaultSharedPreferences(getActivity()).edit();\n edit.putBoolean(Settings.KEY_PREF_SHOW_NOW_PLAYING_PANEL, false);\n edit.apply();\n pressBack();\n\n Utils.openDrawer(getActivityTestRule());\n clickAdapterViewItem(10, R.id.navigation_drawer); //Show preference screen\n edit.putBoolean(Settings.KEY_PREF_SHOW_NOW_PLAYING_PANEL, true);\n edit.apply();\n pressBack();\n\n waitForPanelState(BottomSheetBehavior.STATE_COLLAPSED);\n }", "public void doRefresh() {\n\t\tArrayList<SystemProperty> props = new ArrayList<>();\n\t\t\n\t\tfor (Entry<Object, Object> entry: System.getProperties().entrySet()) {\n\t\t\tprops.add(new SystemProperty(entry.getKey().toString(), entry.getValue().toString()));\n\t\t}\n\t\tCollections.sort(props);\n\t\tthis.properties = props;\n\t}", "@Test\n public void refresh() throws Exception {\n }", "public void testRefresh() throws Exception {\r\n System.out.println(\"refresh\");\r\n Summarizer instance = null;\r\n instance.refresh();\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void testPropertyChange() {\n System.out.println(\"propertyChange\");\n PropertyChangeEvent evt = null;\n Wizard instance = new Wizard();\n instance.propertyChange(evt);\n }", "private void refreshPanels(){\n\t\t\t\n\t\t\t\n\t\t\tcurrentPanel.removeAll();\n\t\t\tshortPanel.removeAll();\n\t\t\tlongPanel.removeAll();\n\t\t\tmarsPanel.removeAll();\n\t\t\t\n\t\t\tcreateFormCalls();\n\t\t\t\n\t\t\tupdateRefreshTime();\n\t\t}", "protected void refreshAll() {\n refreshProperties();\n\t}", "public void rebuild()\n {\n this.tilePropertyPanel.table.clearChildren();\n this.spritePropertyPanel.table.clearChildren();\n this.mapPropertyPanel.removeablePropertyPanel.table.clearChildren();\n if(map.selectedLayer != null)\n {\n this.layerPropertyPanel.setVisible(true);\n this.layerPropertyPanel.layerWidthProperty.value.setText(Integer.toString(map.selectedLayer.width));\n this.layerPropertyPanel.layerHeightProperty.value.setText(Integer.toString(map.selectedLayer.height));\n this.layerPropertyPanel.layerZProperty.value.setText(Float.toString(map.selectedLayer.z));\n }\n else\n this.layerPropertyPanel.setVisible(false);\n if(map.tileMenu.selectedTiles.size == 1)\n {\n if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.TILE)\n {\n Array<PropertyField> tileProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < tileProperties.size; i++)\n this.tilePropertyPanel.table.add(tileProperties.get(i)).padBottom(1).row();\n this.tilePropertyPanel.setVisible(true);\n }\n else if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.SPRITE)\n {\n Array<PropertyField> spriteProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n }\n if(map.selectedSprites.size > 0)\n {\n Array<PropertyField> spriteProperties = map.selectedSprites.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n if(map.selectedSprites.size == 0 && map.tileMenu.selectedTiles.size == 0)\n {\n for(int i = 0; i < mapPropertyPanel.properties.size; i ++)\n {\n this.mapPropertyPanel.removeablePropertyPanel.table.add(mapPropertyPanel.properties.get(i)).padBottom(1).row();\n }\n this.mapPropertyPanel.removeablePropertyPanel.setVisible(true);\n }\n if(this.layerPropertyPanel.isVisible())\n this.layerPropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.layerPropertyPanel.setSize(getWidth(), 0);\n if(this.tilePropertyPanel.isVisible())\n this.tilePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.tilePropertyPanel.setSize(getWidth(), 0);\n if(this.spritePropertyPanel.isVisible())\n this.spritePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.spritePropertyPanel.setSize(getWidth(), 0);\n if(this.mapPropertyPanel.removeablePropertyPanel.isVisible())\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), 0);\n\n this.propertyPanel.rebuild();\n this.propertyTable.invalidateHierarchy();\n\n setSize(getWidth(), getHeight()); // refits everything\n }", "public void redoProjectProperties()\n\t{\n\t\tprojectProperties.revalidate();\n projectProperties.repaint();\n\t}", "public void testCtor2() {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", instance);\n }", "@Override\npublic void rebuildPanel() {\n\t\n}", "@Test\n\tpublic void testInformationPanel() {\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Time\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Max height\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t}", "private void storComponentProperties(){\n\t\t//IPreferenceStore prefStore = JFacePreferences.getPreferenceStore();\n\t\t//PreferenceStore prefStore = mOyster2.getPreferenceStore();\n\t\tProperties mprop = mOyster2.getProperties();\n\t\tint count = mprop.getInteger(Constants.NUMBER_OF_COLUMNS);\n\t\tfor(int i=0; i<count; i++){\n\t\t\tmprop.setString(Constants.COLUMN_TYPE+i, mprop.getDefaultString(Constants.COLUMN_TYPE+i));\n\t\t\tmprop.setString(Constants.COLUMN_NAME+i, mprop.getDefaultString(Constants.COLUMN_NAME+i));\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH+i, mprop.getDefaultString(Constants.COLUMN_WIDTH+i));\n\t\t\t/*\n\t\t\tprefStore.setToDefault(Constants.COLUMN_TYPE+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_NAME+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_WIDTH+i);\n\t\t\t*/\n\t\t}\n\t\tmprop.setString(Constants.NUMBER_OF_COLUMNS, \"\"+columns.size());\n\t\tfor(int i=0; i<columns.size(); i++){\n\t\t\tResultViewerColumnInfo colInf = getColumnInfo(i);\n\t\t\tmprop.setString(Constants.COLUMN_NAME + i, colInf.getColumnName());\n\t\t\tmprop.setString(Constants.COLUMN_TYPE + i, colInf.getColumnType());\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH + i, \"\"+colInf.getWidth());\n\t\t}\n\t\ttry{\n\t\t\tmprop.storeOn();\n\t\t\t//prefStore.save();\n\t\t}\n\t\tcatch(Exception IO){\n\t\t\tSystem.out.println(\"couldnt save properties\");\n\t\t}\n\t\t\n\t}", "@Override\n public void updateProperties() {\n // unneeded\n }", "public void refresh()\n {\n PropertyManager.getInstance().refresh();\n init(this.path);\n }", "private void refreshControls() {\n\t// Scrollbars are upside-down from real sliders.\n\tint scrollValue = caeliScroll.getMaximum() - caeliScroll.getValue();\n\tcaeliValueLabel.setText( \"\"+(scrollValue / 100.0 ) );\n\tparent.setCaeliDensity( scrollValue / 100.0 );\n\n\t// Scrollbars are upside-down from real sliders.\n\tscrollValue = planetScroll.getMaximum() - planetScroll.getValue();\n\tplanetValueLabel.setText( \"\"+scrollValue );\n\tparent.setPlanetCount( scrollValue );\n\n\t// Scrollbars are upside-down from real sliders.\n\tscrollValue = triSizeScroll.getMaximum() - triSizeScroll.getValue()\n\t + triFineSizeScroll.getMaximum() - triFineSizeScroll.getValue();\n\t \n\ttriSizeValueLabel.setText( \"\"+(triSizeScroll.getMaximum() - triSizeScroll.getValue()) );\n\ttriFineSizeValueLabel.setText( \"\"+(triFineSizeScroll.getMaximum() - triFineSizeScroll.getValue()) );\n\tparent.setDustTrianglesThreshold( scrollValue );\n\n\t// Scrollbars are upside-down from real sliders.\n\tint strnScrollValue = attStrengthScroll.getMaximum() - attStrengthScroll.getValue();\n\tint distScrollValue = attDistanceScroll.getMaximum() - attDistanceScroll.getValue();\n\n\tattStrnValueLabel.setText( \"\"+strnScrollValue );\n\tattDistValueLabel.setText( \"\"+distScrollValue );\n\n\tparent.setAttraction( distScrollValue, strnScrollValue );\n\n\n\t// Refresh iPad display values\n\tosc.send( new OscMessage( \"/faders\", new Object[] { sliderFloatValue( caeliScroll ),\n\t\t\t\t\t\t\t sliderFloatValue( planetScroll ),\n\t\t\t\t\t\t\t sliderFloatValue( triSizeScroll ),\n\t\t\t\t\t\t\t sliderFloatValue( triFineSizeScroll ),\n\t\t\t\t\t\t\t sliderFloatValue( attDistanceScroll ),\n\t\t\t\t\t\t\t sliderFloatValue( attStrengthScroll ) } ),\n\t new NetAddress( ipadAddress, OSC_PORT_SEND ) );\n }", "public void refreshPanel() {\n // only when the panel is visible then the panel information will be updated\n if (!isVisible()) {\n return;\n }\n\n Set<AssociationEnd> firstAssociationEnds = new HashSet<AssociationEnd>();\n Set<AssociationEnd> secondAssociationEnds = new HashSet<AssociationEnd>();\n\n for (ModelElement element : getConfiguredModelElements()) {\n List<AssociationEnd> ends = ((Association) element).getConnections();\n int size = ends.size();\n\n // If the AssociationEnd instance cannot be got, then null will be used\n firstAssociationEnds.add(size > 0 ? ends.get(0) : null);\n secondAssociationEnds.add(size > 1 ? ends.get(1) : null);\n }\n\n if (firstAssociationEnds.size() == 1) {\n labelAssociationEnd1.setText(\"Start\");\n } else {\n labelAssociationEnd1.setText(\"\");\n }\n\n if (secondAssociationEnds.size() == 1) {\n labelAssociationEnd2.setText(\"End\");\n \t\t} else {\n\t labelAssociationEnd1.setText(\"\");\n\t }\n\t}", "@Override\n protected void updateProperties() {\n }", "@Test(priority = 28)\r\n\tpublic void pageRefresh() {\r\n\tmainPage.pageRefresh();\r\n\t}", "public void testRefresh() throws RepositoryException{\n boolean refreshMode = true;\n \n session.refresh(refreshMode);\n \n sessionControl.replay();\n sfControl.replay();\n \n jt.refresh(refreshMode);\n }", "@Test\n\tpublic void testControlPanelButtons() {\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\n\t\tfinal int DEFAULT_ANGLE = 45;\n\t\tfinal int NEW_HEIGHT = 50;\n\t\tfinal int NEW_VELOCITY = 100;\n\t\twindow.panel(\"Control panel\").textBox(\"Angle text field\").setText(\"-12\");\n\t\twindow.panel(\"Control panel\").button(\"Set angle\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getAngleSlider().getValue() == DEFAULT_ANGLE);\n\n\t\twindow.panel(\"Control panel\").textBox(\"Height text field\").setText(\"50\");\n\t\twindow.panel(\"Control panel\").button(\"Set height\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getHeightSlider().getValue() == NEW_HEIGHT);\n\n\t\twindow.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.slideTo(NEW_VELOCITY);\n\t\tassertThat(gui.getControlPanel().getVelocityTextField().getText()\n\t\t\t\t.equals(\"\" + NEW_VELOCITY));\n\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Height slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Continue\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Stop\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Clear\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles().size() == 0);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors().size() == 0);\n\t\tfinal int EXPECTED_PROJECTILES = 3;\n\t\tfor (int i = 0; i < EXPECTED_PROJECTILES; ++i) {\n\t\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\t}\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t}", "public void testValuesChangeOverTime() throws Exception {\n\t\tDouble firstLoadAverage = (Double)lookupJMXValue(OBJECT_NAME, \"OneMinute\");\n\t\tSystem.out.println(\"Got starting one minute load average: \" + firstLoadAverage);\n\t\tCPULoadDriver driver = new CPULoadDriver(1000); // generate a billion random numbers\n\t\tThread.sleep(TEST_PERIOD * 1000L * 4); // sleep two periods to be sure it changed\n\t\tDouble secondLoadAverage = (Double)lookupJMXValue(OBJECT_NAME, \"OneMinute\");\n\t\tSystem.out.println(\"Got loaded one minute load average: \" + secondLoadAverage);\n\t\tdriver.shutdown();\n\t\tassertFalse(\"Got same reading of \" + firstLoadAverage + \n\t\t \" for two periods of sampling (This may be due to other load on the system).\",\n\t\t firstLoadAverage.equals(secondLoadAverage));\n\t}", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n\tpublic void testManualUpdate(){\n\tconditions = new CurrentConditionsDisplay(weatherData);\n\tweatherData.setMeasurements(75, 75, 75);\n\t//And: The data in what it is observing is updated\n\t//When: The CurrentConditionsDisplay is notified\n\t//Then: It should display the new measurements\n\t//See console for output\n\t}", "@Ignore //Refactor this test to Integration Test project\n @Test\n public void testWritePropertyFile() throws Exception\n {\n System.out.println(\"writePropertyFile\");\n String sPropertyFile = \"testprops\";\n Properties oProps = new Properties();\n oProps.setProperty(\"CacheRefreshDuration\", \"0\");\n oProps.setProperty(\"Prop1\", \"Value1\");\n oProps.setProperty(\"Prop2\", \"Value2\");\n PropertyFileManager.writePropertyFile(sPropertyFile, oProps);\n \n String sValue = PropertyAccessor.getProperty(sPropertyFile, \"CacheRefreshDuration\");\n assertEquals(\"0\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop1\");\n assertEquals(\"Value1\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop2\");\n assertEquals(\"Value2\", sValue);\n \n oProps.setProperty(\"Prop3\", \"Value3\");\n PropertyFileManager.writePropertyFile(sPropertyFile, oProps);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"CacheRefreshDuration\");\n assertEquals(\"0\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop1\");\n assertEquals(\"Value1\", sValue);\n \n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop2\");\n assertEquals(\"Value2\", sValue);\n\n sValue = PropertyAccessor.getProperty(sPropertyFile, \"Prop3\");\n assertEquals(\"Value3\", sValue);\n \n PropertyFileManager.deletePropertyFile(sPropertyFile);\n \n }", "@Test\n public void testGetPanel()\n {\n assertNotNull(MusicPlayer.getInstance().getPanel());\n }", "private void manualTestPanel() {\n\t\tJPanel manualPanel = new JPanel();\n\t\tmanualPanel.setSize(PanelsDimension);\n\t\tmanualPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tmanualPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\t\n\t\t//Title\n\t\tc.weighty = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.gridwidth = 2;\n\t\tJLabel manualConfigLabel = new JLabel(\"Manual Configuration\");\n\t\tmanualConfigLabel.setHorizontalAlignment(0);\n\t\tmanualPanel.add(manualConfigLabel, c);\n\t\t\n\t\t//ComboBox\n\t\tc.weightx = 0.7;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 1;\n\t\tc.ipady = 20;\n\t\tc.gridwidth = 1;\n\t\trulesCB = new DefaultComboBoxModel<String>();\n\t\tmanualCBRules.setPrototypeDisplayValue(\"XXXXXXXXXXXXXXXXXXXXXXXXXX\");\n\t\tmanualCBRules.setModel(rulesCB);\n\t\tmanualCBRules.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualPanel.add(manualCBRules, c);\n\t\t\n\t\t//WeigthValue\n\t\tc.weightx = 0.3;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 1;\n\t\tc.ipady = 0;\n\t\tc.gridwidth = 1;\n\t\tmanualRuleValue = new JTextField();\n\t\tmanualPanel.add(manualRuleValue, c);\n\t\t\n\t\t//Save Configurations Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualSaveValuesButton = new JButton(\"Save Manual configurations\");\n\t\tmanualSaveValuesButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetValueToRule();\n\t\t\t\t\t\tAntiSpamFilterControl.saveRulesFile(true);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualSaveValuesButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualSaveValuesButton, c);\n\t\t\n\t\t//Test Values Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 3;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualTestButton = new JButton(\"Test Values\");\n\t\tmanualTestButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t\tAntiSpamFilterControl.Evaluater(true);\n\t\t\t\t\tsetResultString(\"manual\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualTestButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualTestButton, c);\n\t\t\n\t\t//Show Results\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 4;\n\t\tc.ipady = 0;\n\t\tmanualResults = new JTextArea();\n\t\tmanualResults.setEnabled(false);\n\t\tmanualPanel.add(manualResults, c);\n\t\t\n\t\tframe.add(manualPanel);\n\t}", "public void showProperties() {\n \t\tmainFrame.showProperties();\n \t}", "protected boolean requiresRefresh()\r\n/* 27: */ {\r\n/* 28:71 */ return this.scriptFactory.requiresScriptedObjectRefresh(this.scriptSource);\r\n/* 29: */ }", "public static void forceReload() {\n properties = null;\n getProperties();\n }", "public void testFirePropertyChangeEvent() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setGroundColor((-733));\n homeEnvironment0.setPhotoHeight(0);\n homeEnvironment0.setVideoFrameRate(0);\n PropertyChangeListener propertyChangeListener0 = mock(PropertyChangeListener.class, new ViolatedAssumptionAnswer());\n PropertyChangeListenerProxy propertyChangeListenerProxy0 = new PropertyChangeListenerProxy(\"Content isn't a JAR entry\", propertyChangeListener0);\n PropertyChangeListenerProxy propertyChangeListenerProxy1 = new PropertyChangeListenerProxy(\"Content isn't a JAR entry\", propertyChangeListenerProxy0);\n homeEnvironment0.setPhotoHeight(0);\n assertEquals(0, homeEnvironment0.getVideoFrameRate());\n }", "public void reload() {\n synchronized (PROPS) {\n for (SettingsGroup group : PROPS) {\n group.reload();\n }\n }\n \n fireSettingsHandlerEvent(EventType.RELOAD, null);\n }", "protected void setUp() throws Exception {\n TestHelper.loadSingleXMLConfig(TestHelper.NAMESPACE, TestHelper.CONFIG_FILE);\n propertiesPanel = new PropertiesPanel(new UMLModelManager());\n\n panel = new ConcurrencyPropertyPanel(propertiesPanel);\n }", "public synchronized JaspiraEventHandlerCode refresh(JaspiraEvent je)\r\n\t\t{\r\n\t\t\t// First, save the current object\r\n\t\t\tif (propertyBrowser != null)\r\n\t\t\t{\r\n\t\t\t\tif (!propertyBrowser.saveObject())\r\n\t\t\t\t{\r\n\t\t\t\t\t// There was an error saving the current object, abort\r\n\t\t\t\t\t// Do not consume the event, this should go to other property browsers, too\r\n\t\t\t\t\treturn EVENT_HANDLED;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// This will transfer the plugin state to the oe plugin and will cause the property browser\r\n\t\t\t// to display the object if it is active\r\n\t\t\tsetPluginState(currentState);\r\n\r\n\t\t\t// Do not consume the event, this should go to other property browsers, too\r\n\t\t\treturn EVENT_HANDLED;\r\n\t\t}", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n if(evt.getPropertyName().equals(\"gameOver\")){\n PropertyChangeSupportBoolean newVal = (PropertyChangeSupportBoolean) evt.getSource();\n if(newVal.getValue() == true){\n UIManager.getInstance().gameOver(false);\n }\n }\n\n if(evt.getPropertyName().equals(\"loanRemoved\")){\n PropertyChangeSupportBoolean newVal = (PropertyChangeSupportBoolean) evt.getSource();\n if(newVal.getValue() == true){\n FinanceBankingSystemController financeBankingSystemController = (FinanceBankingSystemController) UIManager.getInstance().getModule(GameModuleType.FINANCE_BANKING_SYSTEM).getController();\n financeBankingSystemController.removeLoan();\n }\n }\n\n if (evt.getPropertyName().equals(\"updatedMonthlyData\")) {\n FinanceOverviewController financeOverviewController = (FinanceOverviewController) UIManager.getInstance().getGameView(GameViewType.FINANCES).getModule(GameModuleType.FINANCE_OVERVIEW).getController();\n\n Map<String, String[]> monthlyData = GameController.getInstance().getMonthlyData();\n String[] xNames = monthlyData.get(\"xNames\");\n for (Map.Entry<String,String[]> entry : monthlyData.entrySet()) {\n if(!entry.getKey().equals(\"xNames\")){\n financeOverviewController.updateCharts(entry.getKey().replace(\"Monthly\", \"\"), entry.getValue(), xNames);\n }\n }\n }\n\n if (evt.getPropertyName().equals(\"updatedQuarterlyData\")) {\n OperationsTableController operationsTableController = (OperationsTableController) UIManager.getInstance().getGameView(GameViewType.FINANCES).getModule(GameModuleType.FINANCE_OPERATIONS_TABLE).getController();\n\n Map<String, String[]> quarterlyData = GameController.getInstance().getQuarterlyData();\n String[] colNames = quarterlyData.get(\"colNames\");\n for (Map.Entry<String,String[]> entry : quarterlyData.entrySet()) {\n if(!entry.getKey().equals(\"colNames\")){\n operationsTableController.updateTable(entry.getKey().replace(\"Quarterly\", \"\"), entry.getValue(), colNames);\n }\n }\n }\n\n FinanceOverviewController financeOverviewController = (FinanceOverviewController) UIManager.getInstance().getGameView(GameViewType.FINANCES).getModule(GameModuleType.FINANCE_OVERVIEW).getController();\n\n if (evt.getPropertyName().equals(\"netWorth\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n financeOverviewController.setNetWorthLabel(CapCoinFormatter.getCapCoins(newVal.getValue()));\n UIManager.getInstance().getGameHudController().updateNetworthLabel(newVal.getValue());\n }else if (evt.getPropertyName().equals(\"cash\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n financeOverviewController.setCashLabel(CapCoinFormatter.getCapCoins(newVal.getValue()));\n UIManager.getInstance().getGameHudController().updateCashLabel(newVal.getValue());\n }else if (evt.getPropertyName().equals(\"assets\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n financeOverviewController.setAssetsLabel(CapCoinFormatter.getCapCoins(newVal.getValue()));\n }else if (evt.getPropertyName().equals(\"liabilities\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n financeOverviewController.setLiabilitiesLabel(CapCoinFormatter.getCapCoins(newVal.getValue()));\n }else if (evt.getPropertyName().equals(\"netWorthDifference\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n UIManager.getInstance().getGameHudController().updateNetworthChangeLabel(newVal.getValue());\n }else if (evt.getPropertyName().equals(\"cashDifference\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n UIManager.getInstance().getGameHudController().updateCashChangeLabel(newVal.getValue());\n }\n\n FinanceInvestmentsController investmentsController = (FinanceInvestmentsController) UIManager.getInstance().getGameView(GameViewType.FINANCES).getModule(GameModuleType.FINANCE_INVESTMENTS).getController();\n\n if (evt.getPropertyName().equals(\"realEstateInvestmentAmount\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n investmentsController.setRealEstateLabel(UIManager.getLocalisedString(\"finance.investments.amount\") + \": \" + CapCoinFormatter.getCapCoins(newVal.getValue()));\n }else if (evt.getPropertyName().equals(\"stocksInvestmentAmount\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n investmentsController.setStocksLabel(UIManager.getLocalisedString(\"finance.investments.amount\") + \": \" + CapCoinFormatter.getCapCoins(newVal.getValue()));\n }else if (evt.getPropertyName().equals(\"ventureCapitalInvestmentAmount\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n investmentsController.setVentureCapitalLabel(UIManager.getLocalisedString(\"finance.investments.amount\") + \": \" + CapCoinFormatter.getCapCoins(newVal.getValue()));\n }\n\n if(evt.getPropertyName().equals(\"annualPrincipalBalance\") || evt.getPropertyName().equals(\"remainingDuration\")){\n FinanceBankingSystemController financeBankingSystemController = (FinanceBankingSystemController) UIManager.getInstance().getModule(GameModuleType.FINANCE_BANKING_SYSTEM).getController();\n financeBankingSystemController.updateLoan(this.loan);\n }\n }", "public void refresh() {\n\t\tdrawingPanel.repaint();\n\t}", "@Test\n public void disableShowingPanelInPreferences() throws Throwable {\n Utils.openDrawer(getActivityTestRule());\n clickAdapterViewItem(10, R.id.navigation_drawer); //Show preference screen\n\n SharedPreferences.Editor edit = PreferenceManager.getDefaultSharedPreferences(getActivity()).edit();\n edit.putBoolean(Settings.KEY_PREF_SHOW_NOW_PLAYING_PANEL, false);\n edit.apply();\n pressBack();\n\n waitForPanelState(BottomSheetBehavior.STATE_HIDDEN);\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n AspectRatio aspectRatio0 = homeEnvironment0.getVideoAspectRatio();\n HomeEnvironment.Property homeEnvironment_Property0 = HomeEnvironment.Property.WALLS_ALPHA;\n PropertyChangeListener propertyChangeListener0 = mock(PropertyChangeListener.class, new ViolatedAssumptionAnswer());\n PropertyChangeListenerProxy propertyChangeListenerProxy0 = new PropertyChangeListenerProxy(\"eH]^40[h2\", propertyChangeListener0);\n PropertyChangeEvent propertyChangeEvent0 = new PropertyChangeEvent(homeEnvironment_Property0, \"eH]^40[h2\", (Object) null, homeEnvironment0);\n propertyChangeEvent0.setPropagationId(propertyChangeListenerProxy0);\n propertyChangeEvent0.toString();\n propertyChangeListenerProxy0.propertyChange(propertyChangeEvent0);\n PropertyChangeEvent propertyChangeEvent1 = new PropertyChangeEvent(propertyChangeListenerProxy0, \"{@sDvCJq(i\", aspectRatio0, \"eH]^40[h2\");\n propertyChangeEvent1.toString();\n propertyChangeListenerProxy0.propertyChange(propertyChangeEvent1);\n homeEnvironment0.addPropertyChangeListener(homeEnvironment_Property0, propertyChangeListenerProxy0);\n URL uRL0 = MockURL.getFtpExample();\n TemporaryURLContent temporaryURLContent0 = new TemporaryURLContent(uRL0);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", \"eH]^40[h2\", temporaryURLContent0, (-1942.4762F), 1805.02F, \"\", true);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n homeEnvironment0.setSkyTexture(homeTexture0);\n homeEnvironment0.setWallsAlpha((-1942.4762F));\n homeEnvironment0.setGroundColor(0);\n homeEnvironment0.getPhotoAspectRatio();\n homeEnvironment0.getGroundColor();\n HomeEnvironment.Property homeEnvironment_Property1 = HomeEnvironment.Property.WALLS_ALPHA;\n homeEnvironment0.removePropertyChangeListener(homeEnvironment_Property1, propertyChangeListenerProxy0);\n homeEnvironment0.getPhotoWidth();\n homeEnvironment0.setAllLevelsVisible(true);\n homeEnvironment0.setGroundColor(0);\n assertTrue(homeEnvironment0.isAllLevelsVisible());\n }", "private void createUpdatePanel()\n\t{\n\t\tsettingPane=new JPanel();\n\t\tsettingPane.setLayout(new BoxLayout(settingPane, BoxLayout.Y_AXIS));\n\t\t\n\t\t//************************update pane*****************************//\n\t\tJPanel updatePane=new JPanel();\n\t\tupdatePane.setLayout(new FlowLayout(FlowLayout.CENTER,30,5));\n\t\tBorder setBorder=BorderFactory.createTitledBorder(\"Settings\");\n\t\tupdatePane.setBorder(setBorder);\n\t\t\n\t\tlblStatus=new JLabel();\n\t\t\n\t\t//chkOff=new JCheckBox(\"OFF\");\n\t\t//chkOn=new JCheckBox(\"ON\");\n\t\tbtnOn=new JButton(\"ON\");\n\t\tbtnOff=new JButton(\"OFF\");\n\t\t\n\t\t//On button click\n\t\tbtnOn.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString message;\n\t\t\t\tif(isSprinklerSelected)//Sprinkler\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn on this sprinkler now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t//update status=on to db\n\t\t\t\t\t\tsprinklerService.updateSprinklerStatus(selectedId, SprinklerStatus.ON.toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\tint sprinklerId=sprinklerService.getSprinklerByName(selectedId).getSprinklerId();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//add sprinklerRunTime - start time.\n\t\t\t\t\t\tint runTimeId=sprinklerService.addSprinklerRunTime(sprinklerId);\n\t\t\t\t\t\t//set timer to turn off this sprinkler after a fixed time\n\t\t\t\t\t\tturnOffDelayTimer(runTimeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//refresh update pane for sprinkler\n\t\t\t\t\t\tpopulateSprinklerStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse//group\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn on this sprinkler group now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=on to db\n\t\t\t\t\t\tsprinklerGroup.updateSprinklerGroupStatus(selectedId, SprinklerStatus.ON.toString());\n\t\t\t\t\t\t//set timer to turn off this group after a fixed time\n\t\t\t\t\t\t\n\t\t\t\t\t\tSprinklerGroup gService=new SprinklerGroup();\n\t\t\t\t\t\tint groupId=gService.getSprinklerGroupByName(selectedId).getGroupId();\n\t\t\t\t\t\t//add groupRunTime - start time\n\t\t\t\t\t\tint gRunTimeId=sprinklerService.addGroupRunTime(groupId);\n\t\t\t\t\t\tturnOffDelayTimer(gRunTimeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//refresh update pane for group\n\t\t\t\t\t\tpopulateGroupStatus();\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\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Off button click\n\t\tbtnOff.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// turn off the sprinkler/group\n\t\t\t\t\n\t\t\t\tString message;\n\t\t\t\tif(isSprinklerSelected)//Sprinkler\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn off this sprinkler now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=off to db\n\t\t\t\t\t\tsprinklerService.updateSprinklerStatus(selectedId, SprinklerStatus.OFF.toString());\n\t\t\t\t\t\t//update sprinkler run time - end_time\n\t\t\t\t\t\tint sprinklerId=sprinklerService.getSprinklerByName(selectedId).getSprinklerId();\n\t\t\t\t\t\tint runTimeId=sprinklerService.getSprinklerRunTimeToUpdate(sprinklerId).getId();\n\t\t\t\t\t\tsprinklerService.updateSprinklerRunTime(runTimeId);\n\t\t\t\t\t\t//refresh update pane for sprinkler\n\t\t\t\t\t\tpopulateSprinklerStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse//group\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn off this sprinkler group now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=off to db\n\t\t\t\t\t\tsprinklerGroup.updateSprinklerGroupStatus(selectedId, SprinklerStatus.OFF.toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//update group run time - end_time\n\t\t\t\t\t\tint groupId=sprinklerGroup.getSprinklerGroupByName(selectedId).getGroupId();\n\t\t\t\t\t\tint gRunTimeId=sprinklerService.getGroupRunTimeToUpdate(groupId).getGroupId();\n\t\t\t\t\t\tsprinklerService.updateGroupRunTime(gRunTimeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//refresh update pane for group\n\t\t\t\t\t\tpopulateGroupStatus();\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\t\n\t\tchkFunctional=new JCheckBox(\"Functional\");\n\t\tbtnSave=new JButton(\"Save\");\n\t\t//save button click - only for sprinklers\n\t\tbtnSave.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(isSprinklerSelected)//sprinkler functional data save\n\t\t\t\t{\n\t\t\t\t\tint response;\n\t\t\t\t\tint fn=(chkFunctional.isSelected())?1:0;//functional=1, not-functional=0\n\t\t\t\t\t//handle condition for chkFunctional \n\t\t\t\t\tif(chkFunctional.isSelected())//made it functional\n\t\t\t\t\t{\n\t\t\t\t\t\tresponse = JOptionPane.showConfirmDialog(null, \"Are you sure you want to set this sprinkler as Functional?\", \"Confirm\",\n\t\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//save functional to db\n\t\t\t\t\t\t\tsprinklerService.updateSprinklerFunctional(selectedId, fn);\n\t\t\t\t\t\t\t//show addSetting and schedule panes\n\t\t\t\t\t\t\taddSetting.setVisible(true);\n\t\t\t\t\t\t\t//newWeek.setVisible(true);\n\t\t\t\t\t\t\tschedule.setVisible(true);\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//made it not-functional\n\t\t\t\t\t{\n\t\t\t\t\t\tresponse = JOptionPane.showConfirmDialog(null, \"Are you sure you want to set this sprinkler as Not Functional?\", \"Confirm\",\n\t\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//save not functional and status=off to db\n\t\t\t\t\t\t\tsprinklerService.updateSprinklerFunctional(selectedId, fn);\n\t\t\t\t\t\t\t//disable addSetting and schedule panes\n\t\t\t\t\t\t\taddSetting.setVisible(false);\n\t\t\t\t\t\t\t//newWeek.setVisible(false);\n\t\t\t\t\t\t\tschedule.setVisible(false);\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}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t});\n\t\t\n\t\t/*btnCancel=new JButton(\"Cancel\");\n\t\t//cancel button click\n\t\tbtnCancel.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// Do not update any details. Close the window.\n\t\t\t\tframe.dispose();\t\t\t\n\t\t\t}\n\t\t});*/\n\t\t\n\t\t\n\t\t//group controls in panels\n\t\tJPanel textPane=new JPanel();\n\t\ttextPane.add(lblStatus);\n\t\tJPanel statusPane=new JPanel();\n\t\tstatusPane.add(btnOff);//statusPane.add(chkOff);\n\t\tstatusPane.add(btnOn);//statusPane.add(chkOn);\n\t\tJPanel functionalPane=new JPanel();\n\t\tfunctionalPane.add(chkFunctional);\n\t\t\n\t\t\n\t\t/*updatePane.add(lblStatus);\n\t\tupdatePane.add(chkOff);\n\t\tupdatePane.add(chkOn);\n\t\tupdatePane.add(chkFunctional);*/\n\t\t\n\t\t//add controls to updatepanel\n\t\tupdatePane.add(textPane);\n\t\tupdatePane.add(statusPane);\n\t\tupdatePane.add(functionalPane);\n\t\t//updatePane.add(btnCancel);\n\t\tupdatePane.add(btnSave);\n\t\t//**************************************************************//\n\t\t\n\t\t//*********************addSetting pane**************************//\n\t\taddSetting=new AddSetting(selectedId,isSprinklerSelected);\n\t\t\n\t\taddSetting.setScheduleListener(new ScheduleListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void scheduleAdded() {\n\t\t\t\t// refresh Schedule panel\n\t\t\t\tSystem.out.println(\"3.\"+selectedId);\n\t\t\t\tschedulePane.removeAll();\n\t\t\t\tschedulePane.add(new Schedule(selectedId, isSprinklerSelected));\n\t\t\t\tschedulePane.validate();\n\t\t\t\tschedulePane.repaint();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t//**************************************************************//\n\t\t\n\t\t//add components to setting pane\n\t\tsettingPane.add(updatePane);\n\t\t\n\t\t\n\t\tsettingPane.add(addSetting);\n\t\t\n\t\t\n\t\t\n\t\t//add setting pane to content pane\n\t\tcontentPane.add(settingPane,BorderLayout.SOUTH);\n\t\t\n\t\t\n\t}", "protected void setUp() throws Exception {\n // get the config manager\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"failure/config.xml\");\n\n propertiesPanel = new PropertiesPanel(umlModelManager);\n }", "@Override\r\n protected void updateView() {\r\n putValue(ActionUtil.SELECTED_KEY,\r\n getActiveView() != null &&\r\n ! getActiveView().isPropertiesPanelVisible()\r\n );\r\n }", "public void testRefreshImage()\n {\n Image orig = cover.getImage();\n cover.setType(GamePiece.O);\n cover.refreshImage();\n assertEquals(false, orig.equals(cover.getImage()));\n }", "public boolean getPropertyAlive();", "@Test\n\tpublic void testUpdateStatusbarValue() {\n\t}", "private boolean checkPropertyUpdateView() {\n \t\treturn Boolean.getBoolean(PROPERTY_RIENA_LNF_UPDATE_VIEW);\n \t}", "public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }", "@Test(enabled = false)\n public void addUpdateDeleteSimplePropertiesToDCAEAssetTest() throws Exception {\n createDCAEAsset();\n\n ResourceGeneralPage.getLeftMenu().moveToPropertiesScreen();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = PropertiesPage.getElemenetsFromTable().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> PropertiesPage.getElemenetsFromTable()));\n VfVerificator.verifyPropertiesInUI(propertyList);\n PropertiesPage.verifyTotalProperitesField(propertiesCount + propertyList.size());\n\n PropertyTypeEnum prop = propertyList.get(0);\n prop.setDescription(\"updatedDescription\");\n prop.setValue(\"value\");\n PropertiesUIUtils.updateProperty(prop);\n\n PropertiesPage.clickDeletePropertyArtifact(prop.getName());\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size() - 1, () -> PropertiesPage.getElemenetsFromTable()));\n }", "public boolean updataVisualProperty(VisualProperty prop) \r\n throws RepositoryAccessException {\r\n boolean success = false;\r\n Connection conn = null;\r\n try {\r\n conn = openTransaction();\r\n VisualPropertyProxy proxy = new VisualPropertyProxy(conn);\r\n success = proxy.update(prop);\r\n conn.commit();\r\n } catch (Exception ex) {\r\n rollback(conn);\r\n String msg = \"Could not update visual property: \" + \r\n prop.getId() + \". \" + ex.getMessage();\r\n\r\n LogService.logWarn(msg, LOGGER);\r\n throw new RepositoryAccessException(msg, ex);\r\n } finally {\r\n close(conn);\r\n }\r\n \r\n return success;\r\n }", "public void testPersistentPropertyInRunnable() {\n \t\tfinal IWorkspaceRoot root = getWorkspace().getRoot();\n \t\tfinal String value = \"this is a test property value\";\n \t\tfinal QualifiedName name = new QualifiedName(\"test\", \"testProperty\");\n \t\ttry {\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\troot.setPersistentProperty(name, value);\n \t\t\t\t}\n \t\t\t}, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t}\n \n \t\ttry {\n \t\t\tfinal String[] storedValue = new String[1];\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\tstoredValue[0] = root.getPersistentProperty(name);\n \t\t\t\t}\n \t\t\t}, getMonitor());\n \t\t\tassertEquals(\"2.0\", value, storedValue[0]);\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.1\", e);\n \t\t}\n \n \t\ttry {\n \t\t\tfinal QualifiedName name2 = new QualifiedName(\"test\", \"testNonProperty\");\n \t\t\tfinal String[] storedValue = new String[1];\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) throws CoreException {\n \t\t\t\t\tstoredValue[0] = root.getPersistentProperty(name2);\n \t\t\t\t}\n \t\t\t}, getMonitor());\n \t\t\tassertEquals(\"3.0\", null, storedValue[0]);\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"3.1\", e);\n \t\t}\n \t}", "protected void PropertyChanged()\r\n { }", "public void propertiesChanged(String property, String value) {\n\t\tif(property != null) {\n \t\t\tFComponent comp = mainFrame.getSelectedComponent().getComponent();\n \t\t\tif(comp.getLabel() == null || !comp.getLabel().equals(value)) {\n \t\t\t\tcomp.setLabel(value);\n \t\t\t\tmainFrame.refreshPreview();\t\t\t\t\n \t\t\t}\n \t\t}\n \t}", "public void updateFepPropertiesMapFromGUI() {\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().sendResponseVariableName,\n\t\t\t\tgetSelectedButtonText(btngrpSendResponseOrNot));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().authorizationResultVariableName,\n\t\t\t\tgetSelectedButtonText(btngrpauthorizationResult));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().financialSalesResultVariableName,\n\t\t\t\tgetSelectedButtonText(btngrpFinancialSalesResult));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().financialForceDraftResultVariableName,\n\t\t\t\tgetSelectedButtonText(btngrpFinancialForceDraftResult));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().reversalResultVariableName, getSelectedButtonText(btngrpReversalResult));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().reconciliationResultVariableName,\n\t\t\t\tgetSelectedButtonText(btngrpReconciliationResult));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().declineCodeVariablename,\n\t\t\t\tInitializer.getConverter().zeroPadding(txtDeclineCode.getText().replace(\",\", \"\"),\n\t\t\t\t\t\tInitializer.getBitfieldData().bitfieldLength\n\t\t\t\t\t\t\t\t.get(Initializer.getBaseConstants().nameOfbitfield39)));\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap()\n\t\t\t\t.put(Initializer.getBaseConstants().approvalAmountFieldName, txtApprovalAmount.getText());\n\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\n\t\t\t\tInitializer.getBaseConstants().isHalfApprovalRequiredVariableName,\n\t\t\t\tString.valueOf(chckbxApproveForHalf.isSelected()));\n\t}", "private void refreshSettingsFields() {\r\n\t\tif(mediaSrc.getActiveCamera() != null) {\r\n\t\t\txPos.setText(Float.toString(mediaSrc.getActiveCamera().getxPos()));\r\n\t\t\tyPos.setText(Float.toString(mediaSrc.getActiveCamera().getyPos()));\r\n\t\t\tzPos.setText(Float.toString(mediaSrc.getActiveCamera().getzPos()));\r\n\t\t\thOrientation.setText(Float.toString(mediaSrc.getActiveCamera().getHorOrientation()));\r\n\t\t\tvOrientation.setText(Float.toString(mediaSrc.getActiveCamera().getVerOrientation()));\r\n\t\t\tfov.setText(Float.toString(mediaSrc.getActiveCamera().getFov()));\r\n\t\t}\r\n\t\t\r\n\t\txPos.setBackground(Color.WHITE);\r\n\t\tyPos.setBackground(Color.WHITE);\r\n\t\tzPos.setBackground(Color.WHITE);\r\n\t\thOrientation.setBackground(Color.WHITE);\r\n\t\tvOrientation.setBackground(Color.WHITE);\r\n\t\tfov.setBackground(Color.WHITE);\r\n\t}", "@Test\n public void testRetryDelayProperty() {\n assertEquals(1, rc.getRetryDelay());\n }", "public void analyseRecentPropertyChanges() {\r\n\t\tboolean enableIndexGeneration = !isDeActivatedHovering();\r\n\t\tboolean requiresIndexGeneration = false;\r\n\t\tif (changedProperties.size() == 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tSet<String> keySet = changedProperties.keySet();\r\n\t\tfor (String property : keySet) {\r\n\r\n\t\t\t// If deactivated checkbox is changed\r\n\t\t\tif (property.equals(HoverConstants.PREFERENCE_DEACTIVATE_HOVERING)) {\r\n\t\t\t\tPropertyChangeEvent event = changedProperties\r\n\t\t\t\t\t\t.get(HoverConstants.PREFERENCE_DEACTIVATE_HOVERING);\r\n\t\t\t\tboolean deActivated = (Boolean) event.getNewValue();\r\n\t\t\t\tLogger.logDebug(\"DeActivated Old value\" + event.getOldValue()\r\n\t\t\t\t\t\t+ \" new value\" + event.getNewValue());\r\n\t\t\t\tif (deActivated) {\r\n\t\t\t\t\tHoverManager.getInstance().setEnabled(false);\r\n\t\t\t\t\tenableIndexGeneration = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tenableIndexGeneration = true;\r\n\t\t\t\t\trequiresIndexGeneration = true;\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// if active developer library item has changed\r\n\t\t\tif (property.equals(HoverConstants.PREFERENCE_DEV_LIB_LOC)) {\r\n\t\t\t\tPropertyChangeEvent event = changedProperties\r\n\t\t\t\t\t\t.get(HoverConstants.PREFERENCE_DEV_LIB_LOC);\r\n\t\t\t\tString oldValue = (String) event.getOldValue();\r\n\t\t\t\tString newValue = (String) event.getNewValue();\r\n\t\t\t\tif (oldValue.equals(newValue)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\trequiresIndexGeneration = true;\r\n\t\t\t\tLogger.logDebug(\"New index is generating. Old value\"\r\n\t\t\t\t\t\t+ event.getOldValue() + \" new value\"\r\n\t\t\t\t\t\t+ event.getNewValue());\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tLogger.logDebug(\"enableIndexGeneration:\" + enableIndexGeneration\r\n\t\t\t\t+ \" requiresIndexGeneration:\" + requiresIndexGeneration);\r\n\t\tif (enableIndexGeneration && requiresIndexGeneration) {\r\n\t\t\tLogger.logDebug(\"before gen index\");\r\n\t\t\tgenerateNewIndex();\r\n\t\t\tLogger.logDebug(\"after gen index\");\r\n\t\t}\r\n\r\n\t\tresetChangedProperties();\r\n\t}", "private void refreshProperties() {\n\t\tInspectableProperty[][] inspectableProperties = new InspectableProperty[propertiesRowCount][];\n InspectableProperty[] creatorProperties = new InspectableProperty[propertiesRowCount];\n for (int i = 0; i < propertiesRowCount; i++) {\n \tinspectableProperties[i] = inspectables[i].getProperties(columnOrder, true);\n\t\t\tfor (int j = 0; j < inspectableProperties[i].length; j++) {\n\t\t\t\tInspectableProperty property = inspectableProperties[i][j];\n\t\t\t\tif (property instanceof CreatorProperty && creatorProperties[i] == null) {\n\t\t\t\t\tcreatorProperties[i] = property;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n }\n\t\t\t\n\t\t// Count the number of columns required by matching the properties by their names.\n \t\tnameToPropertiesColumnIndex = new HashMap();\n Vector propStrings = new Vector();\n // Add the starting fixed columns.\n propStrings.add(\"\");\n propStrings.add(propertiesNamesColumn);\n\t\tnameToPropertiesColumnIndex.put(propertiesNamesColumn, new Integer(1));\n propStrings.add(propertiesCommentsColumn);\n\t\tnameToPropertiesColumnIndex.put(propertiesCommentsColumn, new Integer(2));\n propertiesColumnCount = 3;\n for (int i = 0; i < propertiesRowCount; i++) {\n\t\t\tfor (int j = 0; j < inspectableProperties[i].length; j++) {\n\t\t\t\tInspectableProperty property = inspectableProperties[i][j];\n\t\t\t\tif (!(property instanceof CreatorProperty)) {\n\t\t\t\t\tString name = property.getName();\n\t\t\t\t\tif (nameToPropertiesColumnIndex.get(name) == null) {\n\t\t\t\t\t\tnameToPropertiesColumnIndex.put(name, Integer.valueOf(String.valueOf(propertiesColumnCount)));\n\t\t\t\t\t\tpropStrings.add(name);\n\t\t\t\t\t\tpropertiesColumnCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpropertiesColumnNames = new String[propertiesColumnCount];\n\t\tpropStrings.copyInto(propertiesColumnNames);\n\n\t\t// Copy the properties into a rectangle shaped table. Empty spaces are filled with creator properties.\n\t\tproperties = new InspectableProperty[propertiesRowCount][];\n\t\tfor (int i = 0; i < propertiesRowCount; i++) {\n\t\t\tproperties[i] = new InspectableProperty[propertiesColumnCount];\n\n\t\t\tVisibilityProperty visibilityProperty = new VisibilityProperty(true);\n\t\t\tfor (int j = 0; j < propertiesColumnCount; j++) {\n\t\t\t\tif (j == 0) {\n\t\t\t\t properties[i][j] = visibilityProperty;\n\t\t\t\t} else if (propertiesColumnNames[j].equals(propertiesCommentsColumn)) {\n\t\t\t\t properties[i][j] = inspectables[i].getCommentProperty();\n\t\t\t\t} else {\n\t\t\t\t properties[i][j] = creatorProperties[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor (int j = 0; j < inspectableProperties[i].length; j++) {\n\t\t\t\tInspectableProperty property = inspectableProperties[i][j];\n\t\t\t\tif (!(property instanceof CreatorProperty)) {\n\t\t\t\t\tint col = ((Integer)nameToPropertiesColumnIndex.get(property.getName())).intValue();\n\t\t\t\t\tproperties[i][col] = property; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n \t\t// Create a name to row translation table.\n\t\tnameToPropertiesRowIndex = new HashMap();\n\t\tint nameColumn = nameToPropertiesColumnIndex(propertiesNamesColumn);\n\t\tif (nameColumn >= 0) {\n\t\t\tfor (int i = 0; i < propertiesRowCount; i++) {\n\t\t\t\tnameToPropertiesRowIndex.put(properties[i][nameColumn].getValue(), new Integer(i));\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent evt) {\t\t\r\n\r\n\t\tProgressEvent event = ProgressEvent.getEvent(evt.getPropertyName());\r\n\t\t\r\n\t\tif( event == ProgressEvent.ONTOLOGY_LOADED ) {\r\n\t\t\t// The algorithm has been completed, update the report text area.\r\n\t\t\tprogressBar.setIndeterminate(false);\r\n\t\t\tprogressBar.setValue(100);\r\n\t\t\treport.append(treeBuilder.getReport());\r\n\t\t\tcancelButton.setEnabled(false);\r\n\t\t\tokButton.setEnabled(true);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse if( event == ProgressEvent.CLEAR_LOG ) {\r\n\t\t\treport.setText(\"\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse if( event == ProgressEvent.APPEND_LINE ) {\r\n\t\t\treport.append((String)evt.getNewValue() + \"\\n\");\r\n\t\t}\r\n\t\t\r\n\t}", "public void refresh() {\n\t\tthis.viewer.refresh();\n\t}", "public void refreshAll() {\n\t\tdrawingPanel.repaint();\n\t}", "public void testConfigurePanel2() {\n instance.configurePanel(new PackageImpl());\n\n assertEquals(\"Failed to configure the panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the panel.\", 1, ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "@Test\r\n\tpublic void test()\r\n\t{\r\n\t\ttry {\r\n\t\t\tpanel=new Panels();\r\n\t\t\tpanel.map=new DrawMap();\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\tpanel.waveLevel=2; \r\n\t\tpanel.map.map=new int [1][1];\r\n\t\tpanel.waveInitial();\r\n\t\tassertEquals(3,panel.waveLevel);\r\n\t}", "public void test_95052() {\n \t\tIProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tPreferences node = new ProjectScope(project).getNode(ResourcesPlugin.PI_RESOURCES);\n \t\tnode.put(\"key1\", \"value1\");\n \t\tnode.put(\"key2\", \"value2\");\n \t\tnode.put(\"key3\", \"value3\");\n \t\ttry {\n \t\t\tnode.flush();\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t}\n \t\tIFile prefFile = getFileInWorkspace(project, ResourcesPlugin.PI_RESOURCES);\n \t\tassertTrue(\"1.2\", prefFile.exists());\n \t\tProperties properties = new Properties();\n \t\tInputStream contents = null;\n \t\ttry {\n \t\t\tcontents = prefFile.getContents();\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.3\", e);\n \t\t}\n \t\ttry {\n \t\t\tproperties.load(contents);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.4\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tcontents.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t//\n \t\t\t}\n \t\t}\n \t\tassertEquals(\"2.0\", \"value1\", properties.get(\"key1\"));\n \t\tassertEquals(\"2.1\", \"value2\", properties.get(\"key2\"));\n \t\tassertEquals(\"2.2\", \"value3\", properties.get(\"key3\"));\n \t\t// add a new property\n \t\tproperties.put(\"key0\", \"value0\");\n \t\t// change an existing property\t\t\n \t\tproperties.put(\"key2\", \"value2\".toUpperCase());\n \t\t// removes a property\n \t\tproperties.remove(\"key3\");\n \t\tByteArrayOutputStream tempOutput = new ByteArrayOutputStream();\n \t\ttry {\n \t\t\tproperties.store(tempOutput, null);\n \t\t} catch (IOException e) {\n \t\t\t// should never happen, we are not doing I/O\t\t\t\n \t\t\tfail(\"2.4\", e);\n \t\t}\n \t\tByteArrayInputStream tempInput = new ByteArrayInputStream(tempOutput.toByteArray());\n \t\ttry {\n \t\t\tprefFile.setContents(tempInput, false, false, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.5\", e);\n \t\t}\n \n \t\t// here, project preferences should have caught up with the changes\t\t\n \t\tnode = new ProjectScope(project).getNode(ResourcesPlugin.PI_RESOURCES);\n \t\t// property was added\n \t\tassertEquals(\"3.0\", \"value0\", node.get(\"key0\", null));\n \t\t// property value was not changed\t\t\n \t\tassertEquals(\"3.1\", \"value1\", node.get(\"key1\", null));\n \t\t// property value was changed to upper case\t\t\n \t\tassertEquals(\"3.2\", \"value2\".toUpperCase(), node.get(\"key2\", null));\n \t\t// property was deleted\n \t\tassertNull(\"3.3\", node.get(\"key3\", null));\n \t}", "@Test\r\n\tpublic void testChangesNotification() throws Exception {\r\n\t\tfinal AdvancedExampleComponent component = new AdvancedExampleComponent();\r\n\t\tfinal XMLBasedPropertyContainer container = new XMLBasedPropertyContainer(XMLBasedPropertyProvider\r\n\t\t\t\t.getInstance().getMetaPropertiesSet(component.getClass()), component);\r\n\r\n\t\tIChangesNotifierMonitor monitorMock = createMock(IChangesNotifierMonitor.class);\r\n\r\n\t\tmonitorMock.objectChanged(same(container), isA(ObjectChangedEvent.class));\r\n\t\texpectLastCall().once();\r\n\r\n\t\treplay(monitorMock);\r\n\r\n\t\tcontainer.addMonitor(monitorMock);\r\n\t\t// Won't work, because \"intProperty\" is served by XMLSetterGetterProperty which doesn't support monitoring.\r\n\t\t// container.getProperty(\"intProperty\").setValue(3);\r\n\t\t// Works, because \"floatProperty\" is served by XMLFieldProperty which support monitoring.\r\n\t\tcontainer.getProperty(\"floatProperty\").setValue(3);\r\n\t\tverify(monitorMock);\r\n\r\n\t}", "public void notifyInvalidate() {\n firePropertyChange(\"settings changed!\", null, CatalogSettings.this);\n }", "public void PerformTimerTask() {\n \tif(refreshRate !=0){\n x+=px;\n y+=py;\n if (x+width >= panelW) {\n x = panelW - width;\n px = -px;\n }\n if (y+height >= panelH) {\n y = panelH - height;\n py = -py;\n }\n if (x < 0) {\n x = 0;\n px = -px;\n }\n if (y < 0) {\n y = 0;\n py = -py;\n }\n repaint();\n \t}\n }", "public void Refresh()\n\t{\n\t}", "private void updatePanels() // updatePanels method start\n\t{\n\t\tbalanceOutput.setText(log.balanceReport());\n\t\tlogOutput.setText(log.logReport());\n\t\tATBOutput.setText(log.adjustedTrialBalance());\n\t\tISOutput.setText(log.incomeStatement());\n\t\tRESOutput.setText(log.retainedEarningsStatement());\n\t\tBSOutput.setText(log.balanceSheet());\n\t}", "private void updateProperties(){\n loadProperties();\n GameModel gameModel = GameModel.getInstance();\n int level = gameModel.getCurrentLevelIndex();\n //int health = gameModel.getPlayer().getLives();\n //int ammo = gameModel.getPlayer().getAmmunition();\n int highestReachedLevel = getHighestLevelFromProperties();\n\n //checks if player has reached a higher level than before\n if (level>=highestReachedLevel){\n properties.setProperty(\"highestReachedLevel\", Integer.toString(level));\n gameModel.setHighestCompletedLevel(level); //gives model the new highest completed level\n } else {\n properties.setProperty(\"highestReachedLevel\", Integer.toString(highestReachedLevel));\n gameModel.setHighestCompletedLevel(highestReachedLevel);\n }\n\n System.out.println(\"Saved Highest reached levl: \"+properties.getProperty(\"highestReachedLevel\"));\n\n properties.setProperty(\"level\", Integer.toString(level));\n //properties.setProperty(\"health\", Integer.toString(health));\n //properties.setProperty(\"ammo\", Integer.toString(ammo));\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 }", "private void autoTestPanel() {\n\t\tJPanel autoPanel = new JPanel();\n\t\tautoPanel.setSize(PanelsDimension);\n\t\tautoPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tautoPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\n\t\t//Title\n\t\tc.weighty = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.gridwidth = 2;\n\t\tJLabel autoConfigLabel = new JLabel(\"Automatic Config\");\n\t\tautoConfigLabel.setHorizontalAlignment(0);\n\t\tautoPanel.add(autoConfigLabel, c);\n\t\t\n\t\t//ComboBox Auto\n\t\tc.weightx = 0.4;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 1;\n\t\tc.ipady = 20;\n\t\tc.gridwidth = 1;\t\t\n\t\tautoRulesCB = new DefaultComboBoxModel<String>();\n\t\tautoCBRules.setPrototypeDisplayValue(\"XXXXXXXXXXXXXXXXXXXXXXXXXX\");\n\t\tautoCBRules.setModel(autoRulesCB);\n\t\tautoCBRules.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tautoRuleValue.setText(AntiSpamFilterControl.getWeigthByRule(autoRulesCB.getSelectedItem().toString(), false) + \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tautoPanel.add(autoCBRules, c);\n\t\t\n\t\t//WeigthValue\n\t\tc.weightx = 0.6;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 1;\n\t\tc.ipady = 0;\n\t\tc.gridwidth = 1;\n\t\tautoRuleValue = new JTextField();\n\t\tautoPanel.add(autoRuleValue, c);\n\t\t\n\t\t\n\t\t//Save Configurations Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tautoSaveValuesButton = new JButton(\"Save Auto configurations\");\n\t\tautoSaveValuesButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetValueToRule();\n\t\t\t\t\t\tAntiSpamFilterControl.saveRulesFile(false);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tautoSaveValuesButton.setSize(frameWidth/2, 80);\n\t\tautoPanel.add(autoSaveValuesButton, c);\n\t\t\n\t\t//Test Values Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 3;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tautoTestButton = new JButton(\"Run Auto Algorithm\");\n\t\tautoTestButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\tAntiSpamFilterAutomaticConfiguration w = new AntiSpamFilterAutomaticConfiguration();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tw.run(AntiSpamFilterControl.ruleList.size());\n\t\t\t\t\t\tAntiSpamFilterControl.selectAutoConfiguration();\n\t\t\t\t\t\tsetResultString(\"auto\");\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"END Auto Config\");\n\t\t\t\t\tAntiSpamFilterControl.generateFiles();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tautoTestButton.setSize(frameWidth/2, 80);\n\t\tautoPanel.add(autoTestButton, c);\n\t\t\n\t\t//Show Results\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 4;\n\t\tc.ipady = 0;\n\t\tautoResults = new JTextArea();\n\t\tautoResults.setEnabled(false);\n\t\tautoPanel.add(autoResults, c);\n\t\t\n\t\tframe.add(autoPanel);\n\t}", "public abstract void refreshing();", "protected void tearDown() throws Exception {\n panel = null;\n propertiesPanel = null;\n\n TestHelper.clearConfigFile(TestHelper.NAMESPACE);\n }", "@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "public void refresh() {\n \t\tphysics.physik();\n \t\tcycleTest();\n \t}", "public static void viewListAllProperties() {\n\t\tArrayList<Property> prop_list = getRegControl().listOfAllProperties();\r\n\t\t// if the prop_list is empty, print out the warning message and stop the method\r\n\t\tif (prop_list.size() == 0) {\r\n\t\t\tSystem.out.println(\"Property Registry empty; no properties to display\\n\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// loop through all found properties and print out their toString()\r\n\t\tfor (Property property : prop_list) {\r\n\t\t\tSystem.out.println(property.toString());\r\n\t\t}\r\n\t}", "protected void refresh() {\n\t}", "@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}", "@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}", "protected void refreshRequirements() {\r\n\t\t_requirementsField.resetVisualValue();\r\n\t\t\r\n\t\trefreshWizardButtons();\r\n\t}", "@Override\n\tpublic void Update(JPanel panel) {\n\t\t\n\t}", "@Override\n\tpublic void beforeNavigateRefresh(WebDriver arg0) {\n\n\t}", "@Test\n public void test16PersistentProperty() throws Exception\n {\n // test find all meta\n List<PSPersistentPropertyMeta> listMeta = ms_cms.findAllPersistentMeta();\n assertTrue(listMeta.size() == 3);\n\n // test find persistent meta by name\n listMeta = ms_cms\n .findPersistentMetaByName(PSPersistentPropertyManager.SYS_USER);\n assertTrue(listMeta.size() == 3);\n\n // test find all properties\n List<PSPersistentProperty> origProps = ms_cms.findAllPersistentProperties();\n\n String myUser = \"myUser\" + System.currentTimeMillis();\n\n // test find by name\n List<PSPersistentProperty> props = ms_cms\n .findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 0);\n\n // test insert / save property\n PSPersistentProperty prop = new PSPersistentProperty(myUser, \"sys_lang\",\n \"sys_session\", \"private\", \"admin2 sys_lang private\");\n ms_cms.savePersistentProperty(prop);\n props = ms_cms.findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 1);\n\n // test modify / update property\n String newValue = \"changed\";\n prop.setValue(newValue);\n ms_cms.updatePersistentProperty(prop);\n\n // test delete property\n ms_cms.deletePersistentProperty(prop);\n props = ms_cms.findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 0);\n\n props = ms_cms.findAllPersistentProperties();\n assertTrue(origProps.size() == props.size());\n }", "public void redraw() {\n\t\t// LdvInt leftButtonWidth = new LdvInt(DOM.getElementPropertyInt(_leftScrollButton.getElement(), \"offsetWidth\"));\n\t\t// LdvInt rightButtonWidth = new LdvInt(DOM.getElementPropertyInt(_rightScrollButton.getElement(), \"offsetWidth\"));\n\t\t//_scrollArea.getElement().setPropertyInt(\"left\", leftButtonWidth);\n\t\t//_scrollArea.getElement().setPropertyInt(\"right\", rightButtonWidth);\n\t\t// _mainpanel.setCellWidth(_leftScrollButton, leftButtonWidth.intToString(-1)+\"px\");\n\t\t// _mainpanel.setCellWidth(_rightScrollButton, rightButtonWidth.intToString(-1)+\"px\");\n\t}", "public void testExecute() {\n panel.execute();\n }", "private void refresh() {\n\t\t\tRunnable run = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif(table.isDisposed())return;\n\t\t\t\t\tviewer.refresh();\n\t\t\t\t}\t\t\t\n\t\t\t};\n\t\t\tDisplay.getDefault().asyncExec(run);\n\t\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 }", "@Test(groups = {\"Sprint54\"}, description = \"Search bar should not be availble in Listing pane and properties pane layout.\")\r\n\tpublic void SprintTest54_1_20_6() throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to Vault in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(testVault.toUpperCase())) //Checks if navigated to vault settings page\r\n\t\t\t\tthrow new Exception(\"Vault settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to Vault settings page.\");\r\n\r\n\t\t\t//Step-2 : Select No Java applet, no task area layout and save the settings\r\n\t\t\t//-------------------------------------------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value); //Sets as Listing pane and properties pane layout\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getLayout().equalsIgnoreCase(Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value)) //Verifies if Listing pane and properties pane layout is selected\r\n\t\t\t\tthrow new Exception(\"Default layout is not selected.\");\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings()) //Saves the settings\r\n\t\t\t\tthrow new Exception(\"Settings are not saved properly.\");\r\n\r\n\t\t\tif (!configurationPage.logOut()) //Logs out from configuration page\r\n\t\t\t\tthrow new Exception(\"Log out is not successful after saving the settings in configuration page.\");\r\n\r\n\t\t\tLog.message(\"2. \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout is selected and settings are saved.\");\r\n\r\n\t\t\t//Step-3 : Login to the default page and click Advanced Search in search pane\r\n\t\t\t//--------------------------------------------------------------------------\r\n\t\t\tHomePage homePage = LoginPage.launchDriverAndLogin(driver, false); //Launches and logs into the default page\r\n\r\n\t\t\tLog.message(\"3. Logged into the default page.\");\r\n\r\n\t\t\t//Verification : Verify if advanced search is displayed\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tif (!homePage.isSearchbarPresent()) //Verifies if Advanced search is displayed in No Java applet, no task area, but show Go To shortcuts layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Search is not displayed in \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Search bar is displayed in \" + Caption.ConfigSettings.Config_ListingPropertiesPaneOnly.Value + \" layout.\", driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tif(driver != null){\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tdriver.get(configURL);\r\n\r\n\t\t\t\t\tConfigurationPage configurationPage = new ConfigurationPage(driver);\r\n\t\t\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault); //Clicks tree view item\r\n\r\n\t\t\t\t\tconfigurationPage.configurationPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "public void propertyChange(PropertyChangeEvent evt) {\n \r\n }", "public void testGetClientSize() {\n // Get the dimensions without any scroll bars\n Window.enableScrolling(false);\n final int oldClientHeight = Window.getClientHeight();\n final int oldClientWidth = Window.getClientWidth();\n assertTrue(oldClientHeight > 0);\n assertTrue(oldClientWidth > 0);\n \n // Compare to the dimensions with scroll bars\n Window.enableScrolling(true);\n final Label largeDOM = new Label();\n largeDOM.setPixelSize(oldClientWidth + 100, oldClientHeight + 100);\n RootPanel.get().add(largeDOM);\n DeferredCommand.addCommand(new Command() {\n public void execute() {\n int newClientHeight = Window.getClientHeight();\n int newClientWidth = Window.getClientWidth();\n assertTrue(newClientHeight < oldClientHeight);\n assertTrue(newClientWidth < oldClientWidth);\n finishTest();\n }\n });\n delayTestFinish(200);\n }", "@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\tfillFields();\n\t}" ]
[ "0.6681398", "0.623328", "0.60396296", "0.59356993", "0.5907115", "0.5872872", "0.584632", "0.572913", "0.569558", "0.56532323", "0.5636894", "0.56363726", "0.56280565", "0.55924094", "0.5537013", "0.55301785", "0.55255723", "0.5506745", "0.5475004", "0.5447736", "0.54157007", "0.5413466", "0.54070675", "0.5377666", "0.5353451", "0.5349663", "0.5339858", "0.53357726", "0.53277045", "0.5304464", "0.5235256", "0.52328384", "0.5232052", "0.5197122", "0.5183483", "0.51739925", "0.51735115", "0.5160847", "0.5150258", "0.5144556", "0.51339215", "0.5126689", "0.51208776", "0.51190394", "0.5108013", "0.5099051", "0.50889176", "0.5039399", "0.5036136", "0.5027446", "0.5024133", "0.5022076", "0.5020258", "0.5013831", "0.5009851", "0.50072515", "0.4993546", "0.4990007", "0.4989536", "0.49885032", "0.4982032", "0.49785435", "0.49785373", "0.49750224", "0.4971483", "0.4968946", "0.4966461", "0.49643797", "0.4962577", "0.49608117", "0.49447984", "0.49430707", "0.49252442", "0.49246064", "0.49233505", "0.49218065", "0.4920665", "0.49176466", "0.49097425", "0.49061823", "0.49016073", "0.49006864", "0.49006864", "0.4898548", "0.48977762", "0.4893647", "0.48832822", "0.48832822", "0.48805308", "0.4873275", "0.48717618", "0.48709187", "0.48703325", "0.4869655", "0.48647904", "0.4860165", "0.4854507", "0.48532063", "0.48531514", "0.4850771" ]
0.6869371
0
Tests PropertiesPanelgetUMLModelManager() for accuracy.
public void testGetUMLModelManager() { assertSame("Failed to get the UMLModelManager.", manager, instance.getUMLModelManager()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void configUMLModelManager() throws Exception {\n // clean the ConfigManager.\n clearConfig();\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"Config.xml\");\n UMLModelManager manager = UMLModelManager.getInstance();\n ProjectConfigurationManager configManager = new ProjectConfigurationManager(manager);\n manager.setProjectConfigurationManager(configManager);\n manager.setProjectLanguage(\"Java\");\n // clean the UMLModelManager for test.\n manager.clearActivityGraphs();\n manager.clearDiagrams();\n clearConfig();\n }", "public void testConfigureProject() {\n UMLModelManager umlModelManager = new UMLModelManager();\n instance.configureProject(umlModelManager);\n\n assertSame(\"Failed to configure project.\", umlModelManager, instance.getUMLModelManager());\n }", "protected boolean testRobotmlModelNature(Object receiver) {\r\n\t\tboolean isRobotmlModel = false;\r\n\r\n\r\n\r\n\t\tEObject root = getRoot(receiver);\r\n\t\tif(root instanceof Package) {\r\n\t\t\tPackage rootPackage = (Package)root;\r\n\t\t\tProfile profile = rootPackage.getAppliedProfile(PLASMA_PROFILE_ELEM_NAME);\r\n\t\t\treturn profile != null;\r\n\r\n\t\t\t//FIX: UMLUtil.getProfile() loads the profile into the resource set. This is not desired.\r\n\t\t\t//\r\n\t\t\t//\t\t\tProfile robotml = UMLUtil.getProfile(RobotMLPackage.eINSTANCE, root);\r\n\t\t\t//\r\n\t\t\t//\t\t\tif(((Package)root).isProfileApplied(robotml)) {\r\n\t\t\t//\t\t\t\tisRobotmlModel = true;\r\n\t\t\t//\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\treturn isRobotmlModel;\r\n\t}", "@Test\r\n\t@Order(2)\r\n\tvoid testModel() {\r\n\t\trobot.setModel(null);\r\n\t\tassertNotEquals(null, robot.getModel(),\"Model test failed\\nREASON: null model not allowed!\");\r\n\t}", "@Test\n public void f4RULModelsTest() {\n //Parts of this test uses f12 (Associate asset type)\n\n //Go to first asset\n clickOn(\"#thumbnailTab\");\n FlowPane root = (FlowPane) scene.getRoot().lookup(\"#assetsThumbPane\");\n clickOn(root.getChildren().get(0)).sleep(1000);\n\n clickOn(\"#modelOutput\").sleep(3000);\n Text firstModel = (Text) scene.getRoot().lookup(\"#modelOutput\");\n String modelBefore = firstModel.getText();\n\n //Go to asset type info\n clickOn(\"#assetTypeMenuBtn\").sleep(2000);\n\n //select first asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n clickOn(\"#associatedModelLabel\").sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n FlowPane models = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n\n //change to LSTM\n clickOn(models.getChildren().get(1)).sleep(1000);\n clickOn(\"#modelSaveBtn\").sleep(1000);\n\n //Go back to first asset to check the model again\n clickOn(\"#assetMenuBtn\").sleep(1000);\n clickOn(\"#thumbnailTab\").sleep(1000);\n root = (FlowPane) scene.getRoot().lookup(\"#assetsThumbPane\");\n\n //Check that the model of first asset changed\n clickOn(root.getChildren().get(0)).sleep(1000);\n clickOn(\"#modelOutput\").sleep(3000);\n Text secondModel = (Text) scene.getRoot().lookup(\"#modelOutput\");\n String modelAfter = secondModel.getText();\n\n assertNotSame(\"Models should be different after updating\", modelBefore, modelAfter);\n clickOn(\"#backBtn\").sleep(2000);\n }", "@Test\n public void testGetModel ()\n {\n System.out.println (\"getModel\");\n OrgOrgRelationInputModelFactory instance = getInstance ();\n OrgOrgRelationInputModel result = instance.getModel ();\n List<OrgOrgRelation> orgRalations = result.getOrgOrgRelations ();\n \n if (orgRalations.size () < 16)\n {\n fail (\" too few organizations\");\n }\n OrgOrgRelation orgRelation = orgRalations.get (1);\n assertEquals (\"4\", orgRelation.getOrgId());\n assertEquals (\"1\", orgRelation.getRelatedOrgId());\n assertEquals (\"kuali.org.Part\", orgRelation.getTypeKey ());\n assertEquals (\"kuali.org.org.relation.state.active\", orgRelation.getState ());\n assertEquals (\"KU\", orgRelation.getOrgShortName());\n assertEquals (\"KUSystem\", orgRelation.getRelatedOrgShortName());\n }", "public void testGetModel() {\n System.out.println(\"getModel\");\n Wizard instance = new Wizard();\n WizardModel result = instance.getModel();\n assertNotNull(result);\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyMuMvManageView() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether user is able to create a new view successfully and it gets reflected in the list\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\t \t\t\t\t\t \t \t\t\t\t \t \t\t\n\t\t.Addviewname(userProfile)\n\t\t.verifyLeadTabledata_AddnewViewAudit(userProfile)\n\t\t.AddnewUserslink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUser_Creation()\t\t\t\t\t\t \t \t\t\n\t\t.verifynewview(userProfile)\n\t\t.VerifyenterValidData_StandardUserdetails(userProfile);\n\t\tnew BgbRegistrationAction()\n\t\t.AddNewStdUserdata(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.verifyAuditTable(userProfile);\t\t\t\t \t \t\t\n\n\t}", "protected void setUp() throws Exception {\n // get the config manager\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"failure/config.xml\");\n\n propertiesPanel = new PropertiesPanel(umlModelManager);\n }", "public void testConfigurePanel1() {\n Package packageObject = new PackageImpl();\n List<ModelElement> modelElements = new ArrayList<ModelElement>();\n modelElements.add(packageObject);\n instance.configurePanel(modelElements);\n\n assertEquals(\"Failed to configure the panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the panel.\", 1, ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "M getModel();", "@Test\n public void testGetManagerType() {\n System.out.println(\"getManagerType\");\n Manager instance = new Manager();\n int expResult = 0;\n int result = instance.getManagerType();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }", "@Test\n public void f10ModelPerformanceTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(1000);\n\n //select first asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n\n //Modify sliders\n Slider trainSlider = (Slider) scene.getRoot().lookup(\"#trainSlider\");\n clickOn(trainSlider);\n type(KeyCode.TAB).type(KeyCode.RIGHT);\n type(KeyCode.TAB).type(KeyCode.RIGHT);\n moveBy(0, 10).clickOn().sleep(500).moveBy(0, 100).scroll(80, VerticalDirection.UP);\n\n FlowPane models = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n Pane additiveRegModel = (Pane) models.getChildren().get(5);\n Button evalButton = (Button) additiveRegModel.getChildren().get(additiveRegModel.getChildren().size() - 1);\n\n Text rmse = (Text) additiveRegModel.getChildren().get(additiveRegModel.getChildren().size() - 2);\n clickOn(rmse).sleep(3000);\n String oldRmseVal = rmse.getText();\n int i = 0;\n\n clickOn(evalButton);\n //incrementally check for 30 seconds to see if rmse has been updated\n do {\n if (rmse.getText().equals(oldRmseVal)) {\n sleep(2000);\n } else {\n break;\n }\n } while (++i < 15);\n\n clickOn(rmse).sleep(3000);\n\n assertNotNull(\"Evaluate button exists\", evalButton);\n assertNotNull(\"RMSE exists\", rmse);\n assertFalse(\"Assert current RMSE is different than old RMSE\", rmse.getText().equals(oldRmseVal));\n }", "public abstract M getModel();", "public static UnitManager UM() {\r\n\t\t// if condition to return self\r\n\t\tif (self == null)\r\n\t\t\tself = new UnitManager();\r\n\t\treturn self;\r\n\t}", "@Test\n\tpublic void RecommendationModelMaintest() {\n\t\tRecommendationModel object3 = new RecommendationModel();\n\t\tassertNotNull(object3);\n\t}", "public static void performTests() throws ModelManagementException {\n int count = VarModel.INSTANCE.getModelCount();\n UnloadTestModelLoader loader = new UnloadTestModelLoader();\n VarModel.INSTANCE.locations().addLocation(BASE, ProgressObserver.NO_OBSERVER);\n VarModel.INSTANCE.loaders().registerLoader(loader, ProgressObserver.NO_OBSERVER);\n // no model was loaded\n Assert.assertEquals(VarModel.INSTANCE.getModelCount(), count);\n // prepare all models\n for (ModelInfo<Project> info : loader.infos()) {\n Assert.assertTrue(loader.getProject(info) == VarModel.INSTANCE.load(info));\n }\n // no model was loaded\n Assert.assertEquals(VarModel.INSTANCE.getModelCount(), count + loader.infoCount());\n\n testUnloading(loader, \"f\", \"f\"); // f is not imported so it shall be unloaded\n testUnloading(loader, \"a\"); // a is imported so it shall not be unloaded\n testUnloading(loader, \"e\"); // e is imported so it shall not be unloaded\n testUnloading(loader, \"b\"); // b is imported and imports e so it shall not be unloaded\n testUnloading(loader, \"c\"); // c is imported so it shall not be unloaded\n testUnloading(loader, \"d\"); // d is imported so it shall not be unloaded\n testUnloading(loader, \"p1\", \"p1\", \"a\"); // p1 shall be unloaded, also a\n testUnloading(loader, \"p2\", \"p2\", \"c\"); // p2 shall be unloaded, also c\n testUnloading(loader, \"p3\", \"p3\", \"b\", \"e\"); // p3 shall be unloaded, also b and transitively e\n testUnloading(loader, \"p4\", \"p4\", \"d\"); // p4 shall be unloaded, as now d is not imported from other projects\n \n VarModel.INSTANCE.loaders().unregisterLoader(loader, ProgressObserver.NO_OBSERVER);\n VarModel.INSTANCE.locations().removeLocation(BASE, ProgressObserver.NO_OBSERVER);\n }", "public void testRemoveModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void testAddModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to add the listener.\", listener.IsCalled());\n }", "@Test\n public void f12AssociateAssetTypeWithModelTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(2000);\n\n //select second asset type\n Node node = lookup(\"#columnName\").nth(2).query();\n clickOn(node).sleep(1000);\n\n clickOn(\"#associatedModelLabel\").sleep(1000);\n Label label = (Label) scene.getRoot().lookup(\"#associatedModelLabel\");\n String modelBefore = label.getText();\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n FlowPane models = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n\n //change to RandomForest\n clickOn(models.getChildren().get(2)).sleep(1000);\n clickOn(\"#modelSaveBtn\").sleep(1000);\n\n node = lookup(\"#columnName\").nth(2).query();\n clickOn(node);\n\n label = (Label) scene.getRoot().lookup(\"#associatedModelLabel\");\n String modelAfter = label.getText();\n\n clickOn(\"#associatedModelLabel\").sleep(3000);\n //model after changing should not be the same\n assertFalse(\"Model after changing is the same as it was before.\", modelBefore.equals(modelAfter));\n }", "void setUpLinearManager();", "@Override\n\tpublic MenuModel getModel() {\n\t\treturn mm;\n\t}", "@Test\n public void testGetManagerTypeString() {\n System.out.println(\"getManagerTypeString\");\n Manager instance = new Manager();\n String expResult = \"\";\n String result = instance.getManagerTypeString();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }", "public void setManager(OtmModelManager modelManager) {\n this.modelManager = modelManager;\n }", "public void testModelIntegrity() {\n \t\tStructureNode modelRoot = Ajde.getDefault().getStructureModelManager().getStructureModel().getRoot();\n \t\tassertTrue(\"root exists\", modelRoot != null);\t\n \t\t\n \t\ttry {\n \t\t\ttestModelIntegrityHelper(modelRoot);\n \t\t} catch (Exception e) {\n \t\t\tassertTrue(e.toString(), false);\t\n \t\t}\n \t}", "@Test\r\n\tpublic void testCreateNewTestManager() {\r\n\t\tTestManager theTestManager = new TestManager();\r\n\t\tString report = theTestManager.toString();\r\n\t\tassertEquals(\"There are no current test scores\", report);\r\n\t}", "public void setModelManager( ModelManager modelManager ) {\n this.modelManager = modelManager;\n }", "private boolean assertModelImplementation() {\r\n\t\tboolean isValid = assertNotEmpty(cmpCfg.getModelImplementation(),\r\n\t\t\t\tYValidationAspekt.IMPL_IS_MISSING);\r\n\t\tif (isValid) {\r\n\r\n\t\t\tfinal Class modelImpl = assertLoadingClass(cmpCfg.getModelImplementation(),\r\n\t\t\t\t\tYValidationAspekt.IMPL_NOT_LOADABLE);\r\n\r\n\t\t\tif (isValid = (modelImpl != null)) {\r\n\r\n\t\t\t\tif (!modelImpl.equals(cmpHandler.getModelImplementation())) {\r\n\t\t\t\t\tthrow new IllegalStateException(\"Model implementation class mismatch\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfinal Set<YValidationAspekt> _implErrors = this.validateImplementationClass(modelImpl);\r\n\r\n\t\t\t\tfor (final YValidationAspekt problem : _implErrors) {\r\n\t\t\t\t\tthis.addValidationProblem(problem);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn isValid;\r\n\t}", "private void loadManager() {\n LOGGER.info(\"Load metricManager, type: {}\", METRIC_CONFIG.getMetricFrameType());\n ServiceLoader<AbstractMetricManager> metricManagers =\n ServiceLoader.load(AbstractMetricManager.class);\n int size = 0;\n for (AbstractMetricManager mf : metricManagers) {\n size++;\n if (mf.getClass()\n .getName()\n .toLowerCase()\n .contains(METRIC_CONFIG.getMetricFrameType().name().toLowerCase())) {\n metricManager = mf;\n break;\n }\n }\n\n // if no more implementations, we use nothingManager.\n if (size == 0 || metricManager == null) {\n metricManager = new DoNothingMetricManager();\n } else if (size > 1) {\n LOGGER.info(\n \"Detect more than one MetricManager, will use {}\", metricManager.getClass().getName());\n }\n }", "GamifiedmodellingobjectmodelFactory getGamifiedmodellingobjectmodelFactory();", "public void testValidatingLEM1() {\n getLog().trace(\"testValidatingLEM1() - NONE\");\n // create our EMF\n OpenJPAEntityManagerFactorySPI emf = (OpenJPAEntityManagerFactorySPI)\n OpenJPAPersistence.createEntityManagerFactory(\n \"simple-none-mode\",\n \"org/apache/openjpa/integration/validation/persistence.xml\");\n assertNotNull(emf);\n OpenJPAEntityManager em = null;\n try {\n // create EM\n em = emf.createEntityManager();\n assertNotNull(em);\n // verify created LifecycleEventManager type\n OpenJPAConfiguration conf = em.getConfiguration();\n assertNotNull(conf);\n assertTrue(\"ValidationMode\",\n conf.getValidationMode().equalsIgnoreCase(\"NONE\"));\n Class<?> lem = conf.getLifecycleEventManagerInstance().getClass();\n assertNotNull(lem);\n assertFalse(\"Expected a LifecycleEventManager instance\",\n ValidatingLifecycleEventManager.class.isAssignableFrom(lem));\n } catch (Exception e) {\n fail(\"Unexpected testValidatingLEM1() exception = \" + e);\n } finally {\n if ((em != null) && em.isOpen()) {\n em.close();\n }\n cleanup(emf);\n }\n }", "protected void setUp() throws Exception {\n TestHelper.loadSingleXMLConfig(TestHelper.NAMESPACE, TestHelper.CONFIG_FILE);\n propertiesPanel = new PropertiesPanel(new UMLModelManager());\n\n panel = new ConcurrencyPropertyPanel(propertiesPanel);\n }", "public void testValidatingLEM2() {\n getLog().trace(\"testValidatingLEM2() - AUTO\");\n // create our EMF\n OpenJPAEntityManagerFactorySPI emf = (OpenJPAEntityManagerFactorySPI)\n OpenJPAPersistence.createEntityManagerFactory(\n \"simple-auto-mode\",\n \"org/apache/openjpa/integration/validation/persistence.xml\");\n assertNotNull(emf);\n OpenJPAEntityManager em = null;\n try {\n // create EM\n em = emf.createEntityManager();\n assertNotNull(em);\n // verify created LifecycleEventManager type\n OpenJPAConfiguration conf = em.getConfiguration();\n assertNotNull(conf);\n assertTrue(\"ValidationMode\",\n conf.getValidationMode().equalsIgnoreCase(\"AUTO\"));\n Class<?> lem = conf.getLifecycleEventManagerInstance().getClass();\n assertNotNull(lem);\n assertTrue(\"Expected a ValidatingLifecycleEventManager instance\",\n ValidatingLifecycleEventManager.class.isAssignableFrom(lem));\n } catch (Exception e) {\n fail(\"Unexpected testValidatingLEM2() exception = \" + e);\n } finally {\n if ((em != null) && em.isOpen()) {\n em.close();\n }\n cleanup(emf);\n }\n }", "public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }", "@Test\n public void testWin() throws Exception {\n // Setup\n\n // Run the test\n modelUnderTest.win();\n\n // Verify the results\n }", "private boolean testPersistenceManager (final PersistenceManager pm){\n\t\ttry {\n\t\t\tfinal Iterator it = pm.getExtent(Project.class, true).iterator();\n\t\t} catch (Exception e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void testEventManager_Accuracy() {\n assertNotNull(\"Test method for 'EventManager(ActionManager)' failed.\", eventManager);\n }", "public interface Model {\n\n /**\n * Replaces user prefs data with the data in {@code userPrefs}.\n */\n void setUserPrefs(ReadOnlyUserPrefs userPrefs);\n\n /**\n * Returns the user prefs.\n */\n ReadOnlyUserPrefs getUserPrefs();\n\n /**\n * Returns the user prefs' GUI settings.\n */\n GuiSettings getGuiSettings();\n\n /**\n * Sets the user prefs' GUI settings.\n */\n void setGuiSettings(GuiSettings guiSettings);\n\n /**\n * Returns the user prefs' address book file path.\n */\n Path getVendorManagerFilePath();\n\n /**\n * Sets the user prefs' menu manager file path.\n */\n void setVendorManagerFilePath(Path vendorManagerFilePath);\n\n /**\n * Replaces menu manager data with the data in {@code menuManager}.\n */\n\n void setVendorManager(ReadOnlyVendorManager vendorManager);\n\n /**\n * Returns the VendorManager\n */\n ReadOnlyVendorManager getVendorManager();\n\n /**\n * Returns true if a vendor with the same identity as {@code vendor} exists in the address book.\n */\n boolean hasVendor(Vendor vendor);\n\n /**\n * Selects the vendor with index {@code vendorIndex} .\n * {@code vendorIndex} must be a valid index in the model.\n */\n void selectVendor(int vendorIndex);\n\n ObservableList<Vendor> getObservableVendorList();\n\n /**\n * Replaces address book data with the data in {@code menuManager}.\n */\n void setMenuManager(ReadOnlyMenuManager menuManager, int index);\n\n /**\n * Returns the MenuManager at the ith index\n */\n ReadOnlyMenuManager getMenuManager(int index);\n\n void sortMenuItemBy(String sortedBy, boolean ascending, boolean toggle);\n\n void showDefaultMenu();\n /**\n * Replaces OrderManager data with the data in {@code orderItems}.\n */\n void setOrder(List<OrderItem> orderItems);\n\n /**\n * Replaces OrderManager data with the data in {@code orderManager}.\n */\n void setOrderManager(ReadOnlyOrderManager orderManager);\n\n /**\n * Returns the MenuManager at the ith index\n */\n ReadOnlyOrderManager getOrderManager();\n\n /**\n * Returns true if an orderItem with the same identity as {@code orderItem} exists in the address book.\n */\n boolean hasOrderItem(OrderItem orderItem);\n\n /**\n * Deletes the given orderItem.\n * The orderItem must exist in the order manager.\n */\n void removeOrderItem(OrderItem target);\n\n /**\n * Adds the given orderItem.\n * {@code orderItem} if orderItem exists in order manageradd to the current quantity.\n * @throws CommandException if after adding, there is more than 100 of the same order item\n */\n void addOrderItem(OrderItem orderItem) throws CommandException;\n\n /**\n * Returns an unmodifiable view of the filtered menu item list at the corresponding index\n */\n ObservableList<MenuItem> getFilteredMenuItemList();\n\n int getFilteredMenuItemListSize();\n\n /**\n * Clears the order.\n */\n void clearOrder();\n\n /**\n * Clears the orderHistory.\n */\n void resetOrder();\n\n /**\n * Updates the filter of the filtered menu item list at the corresponding index to filter by the given\n * {@code predicate}.\n *\n * @throws NullPointerException if {@code predicate} is null.\n */\n void updateFilteredMenuItemList(Predicate<MenuItem> predicate);\n\n /**\n * Updates the filter of the filtered menu item list at the corresponding index to filter by the given\n * {@code comparator}.\n * Only used for test cases.\n * @throws NullPointerException if {@code comparator} is null.\n */\n void updateFilteredMenuItemList(Comparator<MenuItem> comparator, boolean isSortedAsc);\n\n\n /**\n * Returns an unmodifiable view of the filtered orderItem list at the corresponding index\n */\n ObservableList<OrderItem> getObservableOrderItemList();\n\n int getOrderSize();\n\n int getVendorIndex();\n\n int getOrderHistorySize();\n\n int getOrderItemQuantity(int index);\n\n void undoOrder();\n\n boolean isSelected();\n\n void tagOrderItem(OrderItem orderItem, Tag tag);\n\n void untagOrderItem(OrderItem orderItem);\n}", "@Test\n public void testSetManager1() {\n user1.setManager(true);\n assertEquals(\"Manager value should be true\", true, user1.isManager());\n }", "public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {\r\n boolean result = false;\r\n\t\t\r\n\t\t// Ensure Papyrus is the active editor\r\n\t\tIEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();\r\n\t\tif((editor == null) || (!(editor instanceof IMultiDiagramEditor))) {\r\n\t\t\t//Activator.log.info(\"returning false\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tObject currentValue = null;\r\n\t\tif(IS_PLASMA_MODEL.equals(property)) {\r\n\t\t\tcurrentValue = testRobotmlModelNature(receiver);\r\n\t\t\tresult = (currentValue == expectedValue);\r\n\t\t}\r\n\t\t//Activator.log.info(\"returning result: \" + result);\r\n\t\treturn result;\r\n\t}", "protected JPanel getModelPane() {\n JPanel result = new JPanel(new BorderLayout());\n ButtonGroup radios = new ButtonGroup();\n JPanel radioPanel = new JPanel();\n radioPanel.setLayout(new BoxLayout(radioPanel, BoxLayout.Y_AXIS));\n radioPanel.setBorder(BorderFactory.createTitledBorder(\n \"select model & object information source\"));\n\n expModelReflect = new JRadioButton(\"ReflectionFacade\");\n radios.add(expModelReflect);\n expModelReflect.setSelected(true);\n JTextArea explReflect = new JTextArea(\n \" contains the \\\"Person-Company\\\" model\\n\" + \n \" out of the OCL-Sepcification via reflection\\n\" + \n \" (Source and Binarys have to be in the same folder)\");\n explReflect.setEditable(false);\n explReflect.setOpaque(false);\n explReflect.setAlignmentX(0);\n\n expModelDummy = new JRadioButton(\"DummyFacade\");\n radios.add(expModelDummy);\n String expl = \" contains a simple model with classes A and B\\n\" + \n \" explained in the source of: \\n\" + \n \" tudresden.ocl.interp.test.ABDummyFacade\\n\" + \n \" Does not work with usage of oclType\";\n JTextArea explDummy = new JTextArea(expl);\n explDummy.setEditable(false);\n explDummy.setOpaque(false);\n explDummy.setAlignmentX(0);\n\n\tRadioListener rl = new RadioListener();\n\texpModelReflect.addActionListener(rl);\n\texpModelDummy.addActionListener(rl);\n\n radioPanel.add(expModelReflect);\n radioPanel.add(explReflect);\n radioPanel.add(expModelDummy);\n radioPanel.add(explDummy);\n\n \tclassPicture = new JLabel(getImage(\"interp/core/intern/company_class.gif\"));\n \tobjectPicture = new JLabel(getImage(\"interp/core/intern/company_object.gif\"));\n\t\n JPanel rightSide = new JPanel(new GridLayout(0, 1));\n rightSide.add(classPicture);\n rightSide.add(objectPicture);\n rightSide.setBorder(BorderFactory.createTitledBorder(\n \"The class and object information in UML\"));\n\t\n\trightSide.setPreferredSize(new Dimension(400,300));\n\t\n result.add(radioPanel,BorderLayout.WEST);\n result.add(rightSide);\n \n return panelAround(result);\n }", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "@Override\r\n\tpublic ModelManager getModelManager() {\n\t\treturn null;\r\n\t}", "Model getModel();", "Model getModel();", "Model getModel();", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.enumeration((String) null);\n // Undeclared exception!\n try { \n dynamicSelectModel0.translateValue(\"wheel.util.DynamicSelectModel\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.mvel.PropertyAccessor\", e);\n }\n }", "public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}", "@Test\n public void test_constructor_0(){\n\tSystem.out.println(\"Testing MeasuredRatioModel's MeasuredRatioModel()\");\n //Tests if default values are correct\n MeasuredRatioModel instance=new MeasuredRatioModel();\n String expResult=\"NONE\";\n String result=instance.getName();\n assertEquals(expResult,result);\n result=instance.getUncertaintyType();\n assertEquals(expResult,result);\n BigDecimal expectedResult=new BigDecimal(\"0\");\n BigDecimal actualResult=instance.getValue();\n assertEquals(expectedResult,actualResult);\n actualResult=instance.getOneSigma();\n assertEquals(expectedResult,actualResult);\n assertEquals(false,instance.isFracCorr());\n assertEquals(false,instance.isOxideCorr());\n }", "public void testChangeOfSpecies() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n oManager = new GUIManager(null);\n sFileName = writeValidXMLFile();\n oManager.inputXMLParameterFile(sFileName);\n \n //Now change the species\n String[] sNewSpecies = new String[] {\n \"Species 3\",\n \"Species 2\",\n \"Species 1\",\n \"Species 4\",\n \"Species 5\",\n \"Species 6\"};\n \n oManager.getTreePopulation().setSpeciesNames(sNewSpecies);\n ManagementBehaviors oManagementBeh = oManager.getManagementBehaviors();\n ArrayList<Behavior> p_oBehs = oManagementBeh.getBehaviorByParameterFileTag(\"QualityVigorClassifier\");\n assertEquals(1, p_oBehs.size());\n QualityVigorClassifier oQual = (QualityVigorClassifier) p_oBehs.get(0);\n \n assertEquals(3, oQual.mp_oQualityVigorSizeClasses.size());\n \n QualityVigorSizeClass oClass = oQual.mp_oQualityVigorSizeClasses.get(0);\n assertEquals(10, oClass.m_fMinDbh, 0.0001);\n assertEquals(20, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.78, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.88, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.61, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.55, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(1);\n assertEquals(20, oClass.m_fMinDbh, 0.0001);\n assertEquals(30, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.81, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.32, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.69, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.58, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(2);\n assertEquals(30, oClass.m_fMinDbh, 0.0001);\n assertEquals(40, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.34, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.57, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.26, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.66, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.45, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(2.35, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(2.43, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-2.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.12, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-1, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(-0.45, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.01, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.04, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.001, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.13, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.15, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.3, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.4, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.5, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(6, oQual.mp_iQualVigorDeciduous.getValue().size());\n for (int i = 0; i < oQual.mp_iQualVigorDeciduous.getValue().size(); i++)\n assertNotNull(oQual.mp_iQualVigorDeciduous.getValue().get(i));\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(1)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(0)).getValue());\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(3)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(4)).getValue());\n\n System.out.println(\"Change of species test succeeded.\");\n }\n catch (ModelException oErr) {\n fail(\"Change of species test failed with message \" + oErr.getMessage());\n }\n catch (java.io.IOException oE) {\n fail(\"Caught IOException. Message: \" + oE.getMessage());\n }\n finally {\n new File(sFileName).delete();\n }\n }", "public void useModel(String location) throws ModelManagerException {\n\t\tassert isValidModelDir(location);\n\n\t\tthis.mdir = location;\n\t\tLog.d(\"ModelManager\", \"Loading model from \" + getModelURI());\n\t\ttry {\n\t\t\tmodelxml = db.parse(getInStream(\"model.xml\"));\n\t\t} catch (Exception e) {\n\t\t\tthrow new ModelManagerException(\"Unexpected Exception in AModelManager.setModelDir: \" + e.getMessage(), e);\n\t\t}\n\n\t\tmodelxml.normalize();\n\t\tmodelnode = modelxml.getElementsByTagName(\"model\").item(0);\n\n\t\tString type = getModelXMLAttribute(\"type\");\n\t\tmtype = ModelType.parse(type);\n\t\tif (mtype == ModelType.Unknown)\n\t\t\tthrow new ModelManagerException(\"Unknown model type: \" + type);\n\n\t\t// Parse model data machine format\n\t\tmor = new MathObjectReader();\n\t\tString machformat = getModelXMLAttribute(\"machformat\");\n\t\tif (\"le\".equals(machformat)) {\n\t\t\tmor.MachineFormat = MachineFormats.LittleEndian;\n\t\t} else {\n\t\t\tmor.MachineFormat = MachineFormats.BigEndian;\n\t\t}\n\t}", "public void toJMVA() {\r\n \t\tmc = new ModelChecker(model, model, model, model, true);\r\n \t\tpw = new JModelProblemsWindow(mainWindow, mc, this);\r\n \t\tif (!mc.isEverythingOkToJMVA()) {\r\n \t\t\tpw.show();\r\n \t\t}\r\n \t\tif (mc.isEverythingOkToJMVA() || ((!mc.isEverythingOkToJMVA()) && (pw.continued()))) {\r\n \t\t\tif (checkForSave(\"<html>Save changes before switching?</html>\")) {\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \t\t\t// try {\r\n \t\t\t// New Converter by Bertoli Marco\r\n \t\t\tExactModel output = new ExactModel();\r\n \t\t\tList res = ModelConverter.convertJSIMtoJMVA(model, output);\r\n \t\t\tExactWizard jmva = new ExactWizard(output);\r\n \t\t\t// If problems are found, shows warnings\r\n \t\t\tif (res.size() > 0) {\r\n \t\t\t\tnew WarningWindow(res, jmva, CommonConstants.JSIM, CommonConstants.JMVA).show();\r\n \t\t\t}\r\n \r\n \t\t\t/*\r\n \t\t\t * Old code to use XSLT transformer (really bugged and unfinished)\r\n \t\t\t * \r\n \t\t\t * File xmlTempFile = File.createTempFile(\"~SIMtoMVA\", \".xml\");\r\n \t\t\t * xmlTempFile.deleteOnExit(); File destFile =\r\n \t\t\t * File.createTempFile(\"~MVA\", \".xml\"); destFile.deleteOnExit();\r\n \t\t\t * InputStream stream =\r\n \t\t\t * XSDSchemaLoader.loadSchemaAsStream(XSDSchemaLoader.JSIM_TO_JMVA);\r\n \t\t\t * if(stream==null){ System.out.println(\"stream is null\"); return; }\r\n \t\t\t * XMLWriter.writeXML(xmlTempFile, model); InputStream is = new\r\n \t\t\t * BufferedInputStream(stream); Transformer transformer =\r\n \t\t\t * TransformerFactory.newInstance().newTransformer(new\r\n \t\t\t * StreamSource(is)); StreamSource ssrc = new\r\n \t\t\t * StreamSource(xmlTempFile); StreamResult srst = new\r\n \t\t\t * StreamResult(destFile); transformer.transform(ssrc, srst);\r\n \t\t\t * xmlTempFile.delete(); ExactModel xm = new ExactModel();\r\n \t\t\t * xm.loadDocument(new XMLUtils().loadXML(destFile)); new\r\n \t\t\t * ExactWizard(xm); }catch (Exception e) { handleException(e); }\r\n \t\t\t */\r\n \t\t}\r\n \t}", "@Test\n\tpublic void testSetPoolMgrAndRetrieve() throws MalBusinessException{\n\t\tDriver d = new Driver();\n\t\tsetUpDriverForAdd();\n\t\tdriver.setPoolManager(\"Y\");\n\t\tdriver = driverService.saveOrUpdateDriver(externalAccount, driverGrade, driver, generateAddresses(driver, 1), generatePhoneNumbers(driver, 1), userName, null);\n\t\t\n\t\td = driverService.getDriver(driver.getDrvId());\n\t\t\n\t\tassertEquals(\"Pool Manager is not set to 'Y'\", d.getPoolManager(), \"Y\");\n\t\t\n\t}", "public ViewMetamodel getMetamodel();", "@Override\n public boolean predicate2(Object dm, Designer dsgr) {\n if (!(Model.getFacade().isAClassifier(dm))) {\n return NO_PROBLEM;\n }\n if (!(Model.getFacade().isPrimaryObject(dm))) {\n return NO_PROBLEM;\n }\n\n // If the classifier does not have a name,\n // then no problem - the model is not finished anyhow.\n if ((Model.getFacade().getName(dm) == null)\n\t || (\"\".equals(Model.getFacade().getName(dm)))) {\n return NO_PROBLEM;\n\t}\n\n // Abstract elements do not necessarily require associations\n if (Model.getFacade().isAGeneralizableElement(dm)\n\t && Model.getFacade().isAbstract(dm)) {\n return NO_PROBLEM;\n }\n\n // Types can probably have associations, but we should not nag at them\n // not having any.\n // utility is a namespace collection - also not strictly required\n // to have associations.\n if (Model.getFacade().isType(dm)) {\n return NO_PROBLEM;\n }\n if (Model.getFacade().isUtility(dm)) {\n return NO_PROBLEM;\n }\n\n // See issue 1129: If the classifier has dependencies,\n // then mostly there is no problem. \n if (Model.getFacade().getClientDependencies(dm).size() > 0) {\n return NO_PROBLEM;\n }\n if (Model.getFacade().getSupplierDependencies(dm).size() > 0) {\n return NO_PROBLEM;\n }\n \n // special cases for use cases\n // Extending use cases and use case that are being included are\n // not required to have associations.\n if (Model.getFacade().isAUseCase(dm)) {\n Object usecase = dm;\n Collection includes = Model.getFacade().getIncludes(usecase);\n if (includes != null && includes.size() >= 1) {\n return NO_PROBLEM;\n }\n Collection extend = Model.getFacade().getExtends(usecase);\n if (extend != null && extend.size() >= 1) {\n return NO_PROBLEM;\n }\n }\n \n \n\n //TODO: different critic or special message for classes\n //that inherit all ops but define none of their own.\n\n if (findAssociation(dm, 0)) {\n return NO_PROBLEM;\n }\n return PROBLEM_FOUND;\n }", "public void testBug364450() throws JavaModelException {\n //$NON-NLS-1$\n IPath projectPath = env.addProject(\"Project\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n //$NON-NLS-1$\n env.setOutputFolder(projectPath, \"bin\");\n IPath wPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"w\", //$NON-NLS-1$ //$NON-NLS-2$\n \"W\", \"package w;\\n\" + \"public class W {\\n\" + //$NON-NLS-1$\n \"\tprivate w.I i;}\");\n IPath aPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"a\", //$NON-NLS-1$ //$NON-NLS-2$\n \"A\", \"package a;\\n\" + \"import w.I;\\n\" + \"import w.W;\\n\" + //$NON-NLS-1$\n \"public class A {}\");\n env.waitForManualRefresh();\n fullBuild(projectPath);\n env.waitForAutoBuild();\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(wPath, new Problem(\"W\", \"w.I cannot be resolved to a type\", wPath, 37, 40, CategorizedProblem.CAT_TYPE, IMarker.SEVERITY_ERROR));\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(aPath, new Problem(\"A\", \"The import w.I cannot be resolved\", aPath, 18, 21, CategorizedProblem.CAT_IMPORT, IMarker.SEVERITY_ERROR));\n aPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"a\", //$NON-NLS-1$ //$NON-NLS-2$\n \"A\", \"package a;\\n\" + \"import w.I;\\n\" + \"import w.W;\\n\" + //$NON-NLS-1$\n \"public class A {}\");\n env.waitForManualRefresh();\n incrementalBuild(projectPath);\n env.waitForAutoBuild();\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(aPath, new Problem(\"A\", \"The import w.I cannot be resolved\", aPath, 18, 21, CategorizedProblem.CAT_IMPORT, IMarker.SEVERITY_ERROR));\n env.removeProject(projectPath);\n }", "public GUIManager getManager(){\n\t\treturn manager;\n\t}", "public GUIManager getManager(){\n\t\treturn manager;\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyManageviewLinks() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Functionalities of links present in Manage views page\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\t \t\t\t\t\t \t \t\t\t\t \t \t\t\n\t\t.ManageviewNavigationLinks();\t\t\t \t \t\t\n\n\t}", "NCModel getModel();", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "public void testFirePropertyChangeEvent() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "@Test\r\n void testCreate() {\r\n assertNotNull(model);\r\n }", "@Test\r\n\tpublic void testModelLoading() {\n\t\tString absoluteFilePath = \"\";\r\n\t\ttry {\r\n\t\t\tabsoluteFilePath = getAbsoluteFilePath(\"simpletll.stlsimulation\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tAssert.fail(\"Couldn't compute absolute file path.\");\r\n\t\t}\r\n\t\t\r\n\t\t// Load STL simulation model with ModelLoader\r\n\t\tfinal SimulationModel simulationModel = ModelLoader.load(absoluteFilePath);\r\n\t\t\r\n\t\t// Check contents of loaded STL simulation model \r\n\t\tAssert.assertNotNull(simulationModel);\r\n\t\tat.ac.tuwien.big.stl.System system = simulationModel.getSystem();\r\n\t\tAssert.assertNotNull(system);\r\n\t\tAssert.assertEquals(\"SimpleTransportationLine\", system.getName());\r\n\t}", "public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void managerModelModified(ManagerEvent e);", "@Test\n\tpublic void testroommatePreferencesDisplayForm() {\n\t\t\n\t\t//mocking the requests and session attributes\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getAttribute(\"userName\")).thenReturn(\"Virat Kohli\");\n\t\twhen(session.getAttribute(\"userRole\")).thenReturn(\"CUSTOMER\");\n\t\twhen(session.getAttribute(\"userEmail\")).thenReturn(\"virat@gmail.com\");\n\t\t\n\t\t//mocking the user service to return the mocked user\n\t\twhen(userService.findUserByEmail(\"virat@gmail.com\")).thenReturn(user);\n\t\t\n\t\t//mocking the roommatePreferences service to return mocked roommatePreferences object.\n\t\twhen(roommatePreferencesService.findRoommatePreferencesById(1)).thenReturn(mockedroommatePreferences);\n\t\t\n\t\tModelAndView model = new ModelAndView();\n\t\tmodel = roommatePreferencesController.roommatePreferencesDisplayForm(request);\n\t\t\n\t\t//Assert statements\n\t\tassertEquals(\"Preferences are already set.\", model.getModel().get(\"msg\"));\n\t\tassertEquals(\"user/roommatePreferences\", model.getViewName());\n\t}", "@Override\r\n\tpublic void setModel() {\n\t\tnew UpUI(context).execute();\r\n\t}", "@Test\n public void testAlmUtilsExample() throws GeneralLeanFtException, ReportException, IOException {\n AlmRunInfo almRunInfo = AlmUtils.getAlmRunInfo();\n if (almRunInfo != null){\n // AlmUtils.getAlmRunInfo() returned object, the test is running from ALMreturn;\n // Create a string builder, and add the properties of the test running\n StringBuilder sb = new StringBuilder();\n sb.append(\"ALMUtils test info proeprties: <BR>\");\n sb.append(String.format(\"ServerUrl: '%s' <BR>\", almRunInfo.getServerUrl()));\n sb.append(String.format(\"TesterName: '%s' <BR>\", almRunInfo.getTesterName()));\n sb.append(String.format(\"TestId: '%d' <BR>\", almRunInfo.getTestId()));\n sb.append(String.format(\"TestName: '%s' <BR>\", almRunInfo.getTestName()));\n sb.append(String.format(\"TestSetId: '%d' <BR>\", almRunInfo.getTestSetId()));\n sb.append(String.format(\"TestSetName: '%s' <BR>\", almRunInfo.getTestSetName()));\n sb.append(String.format(\"RunId: '%d' <BR>\", almRunInfo.getRunId()));\n sb.append(String.format(\"RunName: '%s' <BR>\", almRunInfo.getRunName()));\n sb.append(String.format(\"TestInstanceId: '%d' <BR>\", almRunInfo.getTestInstanceId()));\n String stringToReport = sb.toString();\n Reporter.reportEvent(\"AlmUtils.getAlmRunInfo() Properties Check\", stringToReport);\n\n }\n\n try {\n Map<String, Object> testParams = almRunInfo.getParameters();\n\n if (testParams == null) {\n Reporter.reportEvent(\"AlmUtils.getAlmRunInfo() Parameters Check\",\n \"Test is not running from ALM, therefore no parameters in the test\");\n } else {\n String paramString = \"\";\n for (Map.Entry<String, Object> testParam : testParams.entrySet()) {\n paramString += String.format(\"Parameter name: '%s', parameter value: '%s' <BR>\", testParam.getKey(), testParam.getValue().toString());\n }\n Reporter.reportEvent(\"ALMUtils.getAlmRunInfo Parameters Check\", paramString);\n }\n } catch (NullPointerException e) {\n Reporter.reportEvent(\"Exception in AlmUtils.getAlmRunInfo() Parameters Check\",\n \"Test is not running from ALM, therefore no parameters in the test\");\n }\n }", "@Test\n public void test16PersistentProperty() throws Exception\n {\n // test find all meta\n List<PSPersistentPropertyMeta> listMeta = ms_cms.findAllPersistentMeta();\n assertTrue(listMeta.size() == 3);\n\n // test find persistent meta by name\n listMeta = ms_cms\n .findPersistentMetaByName(PSPersistentPropertyManager.SYS_USER);\n assertTrue(listMeta.size() == 3);\n\n // test find all properties\n List<PSPersistentProperty> origProps = ms_cms.findAllPersistentProperties();\n\n String myUser = \"myUser\" + System.currentTimeMillis();\n\n // test find by name\n List<PSPersistentProperty> props = ms_cms\n .findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 0);\n\n // test insert / save property\n PSPersistentProperty prop = new PSPersistentProperty(myUser, \"sys_lang\",\n \"sys_session\", \"private\", \"admin2 sys_lang private\");\n ms_cms.savePersistentProperty(prop);\n props = ms_cms.findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 1);\n\n // test modify / update property\n String newValue = \"changed\";\n prop.setValue(newValue);\n ms_cms.updatePersistentProperty(prop);\n\n // test delete property\n ms_cms.deletePersistentProperty(prop);\n props = ms_cms.findPersistentPropertiesByName(myUser);\n assertTrue(props.size() == 0);\n\n props = ms_cms.findAllPersistentProperties();\n assertTrue(origProps.size() == props.size());\n }", "@Test\r\n\tpublic void testModelMapper() {\r\n\t\tModelMapper mm = swaggerConfig.modelMapper();\r\n\t\tassertNotNull(mm);\r\n\t}", "public interface PropertyManager extends Manager {\n\t/**\n\t * The attribute \"attr\" has been added (instantiated for the first time).\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param newValue\n\t * . The new value of that attribute.\n\t */\n\tpublic void attributeAdded(Component component, String attr, String newValue);\n\n\t/**\n\t * The attribute \"attr\" has been modified.\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param newValue\n\t * . The new value of that attribute.\n\t * @param oldValue\n\t * . The previous value of that attribute.\n\t */\n\tpublic void attributeChanged(Component component, String attr, String newValue, String oldValue);\n\n\t/**\n\t * The attribute \"attr\" has been removed.\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param oldValue\n\t * . The previous value of that attribute.\n\t */\n\tpublic void attributeRemoved(Component component, String attr, String oldValue);\n}", "opmodelFactory getopmodelFactory();", "public void reInitializeModels () {\n this.model = new ModelManager(getTypicalAddressBook(), new UserPrefs());\n this.expectedModel = new ModelManager(model.getAddressBook(), new UserPrefs());\n }", "public void testValidatingLEM4() {\n getLog().trace(\"testValidatingLEM4() - provided ValidatorFactory\");\n // create a default factory to pass in\n ValidatorFactory factory = null;\n try {\n factory = Validation.buildDefaultValidatorFactory();\n } catch (jakarta.validation.ValidationException e) {\n fail(\"testValidatingLEM4() - no validation providers found\" + e);\n }\n assertNotNull(factory);\n // create the Map to test overrides\n Map<String,Object> props = new HashMap<>();\n props.put(\"jakarta.persistence.validation.factory\", factory);\n // create our EMF w/ props\n OpenJPAEntityManagerFactorySPI emf = (OpenJPAEntityManagerFactorySPI)\n OpenJPAPersistence.createEntityManagerFactory(\n \"simple-auto-mode\",\n \"org/apache/openjpa/integration/validation/persistence.xml\",\n props);\n assertNotNull(emf);\n OpenJPAEntityManager em = null;\n try {\n // create EM\n em = emf.createEntityManager();\n assertNotNull(em);\n // verify expected validation config items\n OpenJPAConfiguration conf = em.getConfiguration();\n assertNotNull(conf);\n assertTrue(\"ValidationMode\",\n conf.getValidationMode().equalsIgnoreCase(\"AUTO\"));\n Class<?> lem = conf.getLifecycleEventManagerInstance().getClass();\n assertNotNull(lem);\n assertTrue(\"Expected a ValidatingLifecycleEventManager instance\",\n ValidatingLifecycleEventManager.class.isAssignableFrom(lem));\n // verify factory matches\n assertEquals(\"Expected same ValidatorFactory instance\",\n factory, conf.getValidationFactoryInstance());\n } catch (Exception e) {\n fail(\"Unexpected testValidatingLEM4() exception = \" + e);\n } finally {\n if ((em != null) && em.isOpen()) {\n em.close();\n }\n cleanup(emf);\n }\n }", "protected ComponentModel getComponentModel()\n {\n return componentModel;\n }", "private void validatePropertiesModels(GraphContext context) throws Exception\n {\n GraphService<PropertiesModel> service = new GraphService<>(context, PropertiesModel.class);\n\n int numberFound = 0;\n for (PropertiesModel model : service.findAll())\n {\n numberFound++;\n\n Properties props = model.getProperties();\n Assert.assertEquals(\"value1\", props.getProperty(\"example1\"));\n Assert.assertEquals(\"anothervalue\", props.getProperty(\"anotherproperty\"));\n Assert.assertEquals(\"1234\", props.getProperty(\"timetaken\"));\n }\n\n Assert.assertEquals(1, numberFound);\n }", "@Test(timeout = 4000)\n public void test042() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(3, 603);\n assertEquals(3, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(3, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(603, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(603, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(1, 1);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n resultMatrixGnuPlot0.setCount(1065, (-758.294832917));\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixLatex resultMatrixLatex0 = null;\n try {\n resultMatrixLatex0 = new ResultMatrixLatex(1065, (-1));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test\n\t public void testAdd() {\n\t\t TestSuite suite = new TestSuite(RecommendationModelTest.class, AnalysisModelTest.class);\n\t\t TestResult result = new TestResult();\n\t\t suite.run(result);\n\t\t System.out.println(\"Number of test cases = \" + result.runCount());\n\n\t }", "@Test(enabled = true)\n\tpublic void test001() {\n\t\tCategoryPOM laptops = new CategoryPOM(driver);\n\t\tlaptops.showAllLaptops();\n\t\tlaptops.clickProduct(\"Air\");\n\t\tProductPOM macbookAir = new ProductPOM(driver);\n\t\tmacbookAir.addToWishlist();\n\t\tmacbookAir.addToComparelist();\n\t}", "private void setUpEventManager() {\n // Register the actionEventListener1 to MockUndoableAction class\n eventManager.addActionEventListener(actionEventListener1, MockAddClassDiagramAction.class);\n // Register the actionEventListener2 to all Action class\n eventManager.addActionEventListener(actionEventListener2);\n // Register the actionEventListener3 to simple Action Class\n eventManager.addActionEventListener(actionEventListener3, Action.class);\n\n // Register the validators to UndoableAction.class\n eventManager.addEventValidator(successEventValidator, UndoableAction.class);\n // Register the validators to all Action class\n eventManager.addEventValidator(modifiedEventValidator);\n // Register the validators to simple Action Class\n eventManager.addEventValidator(deniedEventValidator, Action.class);\n\n // Register the gUIEventListener1 to 'RedoChangesEvent'\n eventManager.addGUIEventListener(gUIEventListener1, RedoChangesEvent.class);\n // Register the gUIEventListener2 to all EventObject\n eventManager.addGUIEventListener(gUIEventListener2);\n // Register the gUIEventListener3 to 'UndoChangesEvent'\n eventManager.addGUIEventListener(gUIEventListener3, UndoChangesEvent.class);\n }", "boolean hasModel();", "boolean hasModel();", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[1];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray0[2] = intArray3;\n String string0 = resultMatrixGnuPlot0.getRevision();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"8034\", string0);\n \n double double0 = resultMatrixGnuPlot0.getMean(1129, 97);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixGnuPlot.main((String[]) null);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n String string1 = resultMatrixGnuPlot1.getRowName(1);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNull(string1);\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n resultMatrixGnuPlot1.m_MeanWidth = 1129;\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1129, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n \n int int0 = resultMatrixGnuPlot1.getDefaultColNameWidth();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1129, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(50, int0);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n boolean boolean0 = resultMatrixGnuPlot1.getDefaultEnumerateColNames();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1129, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean0);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n }", "public interface GUIManagerInterface {\n\n \n /**\n * Methode zum abrufen der Eingabedaten\n * \n * @return Tabelle mit Eingabedaten\n */\n public Table<Integer, Integer, String> getData();\n \n /**\n * Methode zum Abrufen der bereits anonymisierten Daten\n * \n * @return Tabelle mit den anonymisierten Daten\n */\n public Table<Integer, Integer, String> getAnonymizedData();\n \n /**\n * Methode zum Abrufen der Metadaten\n * \n * @return MetaData-Objekt\n */\n public MetaData getMetaData();\n \n /**\n * Methode zum Aktualisieren der Metadaten\n * \n * @param newMetaData Das aktualisierte MetaData-Objekt\n */\n public void setMetaData(MetaData newMetaData);\n \n \n /**\n * Methode zum anonymisieren der Daten. \n * \n * @param metadata Die Metadaten zu den Daten\n * @param data\tDie zu anonymisierenden Daten\n * @param method\tDie Anonymisierungsmethode\n */\n public void anonymize(MetaData metadata, AnonymizingMethods method, \n\t Table<Double, Double, Double> data);\n \n /**\n * Methode zur Simulation eines Datenangriffs\n * \n * @param metadata\t Die Metadaten zu den Daten\n * @param method\t Die Matching-Methode\n * @param data\t Die echten Daten\n * @param anonymData Die anonymisierten Daten\n */\n public void match(MetaData metadata, MatchingMethods method, \n\t Table<Integer, Integer, String> data, \n\t Table<Integer, Integer, String> anonymData);\n\n \n}", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String string0 = resultMatrixPlainText0.toString();\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"Dataset (1) col0 \\n-----------------------------------\\nrow0 (0) |\\n-----------------------------------\\n(v/ /*) |\\n\", string0);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixPlainText0);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setRowNameWidth(2);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean0 = resultMatrixHTML0.getShowAverage();\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean0);\n \n boolean boolean1 = resultMatrixPlainText0.isSignificance(3);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(boolean1);\n assertFalse(boolean1 == boolean0);\n \n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML();\n assertTrue(resultMatrixHTML1.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML1.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML1.removeFilterNameTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML1.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML1.stdDevPrecTipText());\n assertFalse(resultMatrixHTML1.getShowStdDev());\n assertEquals(\"HTML\", resultMatrixHTML1.getDisplayName());\n assertEquals(1, resultMatrixHTML1.getColCount());\n assertEquals(0, resultMatrixHTML1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML1.getColNameWidth());\n assertEquals(0, resultMatrixHTML1.getSignificanceWidth());\n assertTrue(resultMatrixHTML1.getPrintRowNames());\n assertEquals(0, resultMatrixHTML1.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML1.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML1.countWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML1.getPrintColNames());\n assertEquals(0, resultMatrixHTML1.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML1.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML1.significanceWidthTipText());\n assertEquals(1, resultMatrixHTML1.getVisibleColCount());\n assertEquals(2, resultMatrixHTML1.getDefaultMeanPrec());\n assertEquals(25, resultMatrixHTML1.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML1.getDefaultShowAverage());\n assertFalse(resultMatrixHTML1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML1.getDefaultPrintColNames());\n assertEquals(1, resultMatrixHTML1.getVisibleRowCount());\n assertTrue(resultMatrixHTML1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML1.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML1.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML1.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultColNameWidth());\n assertEquals(25, resultMatrixHTML1.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML1.showAverageTipText());\n assertEquals(1, resultMatrixHTML1.getRowCount());\n assertTrue(resultMatrixHTML1.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML1.getStdDevPrec());\n assertFalse(resultMatrixHTML1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML1.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML1.printRowNamesTipText());\n assertFalse(resultMatrixHTML1.getRemoveFilterName());\n assertFalse(resultMatrixHTML1.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML1.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML1.stdDevWidthTipText());\n assertFalse(resultMatrixHTML1.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML1.meanPrecTipText());\n assertEquals(0, resultMatrixHTML1.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML1.colNameWidthTipText());\n assertEquals(2, resultMatrixHTML1.getDefaultStdDevPrec());\n assertNotNull(resultMatrixHTML1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixHTML1.equals((Object)resultMatrixHTML0));\n \n int int0 = resultMatrixHTML1.getColCount();\n assertTrue(resultMatrixHTML1.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML1.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML1.removeFilterNameTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML1.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML1.stdDevPrecTipText());\n assertFalse(resultMatrixHTML1.getShowStdDev());\n assertEquals(\"HTML\", resultMatrixHTML1.getDisplayName());\n assertEquals(1, resultMatrixHTML1.getColCount());\n assertEquals(0, resultMatrixHTML1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML1.getColNameWidth());\n assertEquals(0, resultMatrixHTML1.getSignificanceWidth());\n assertTrue(resultMatrixHTML1.getPrintRowNames());\n assertEquals(0, resultMatrixHTML1.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML1.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML1.countWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML1.getPrintColNames());\n assertEquals(0, resultMatrixHTML1.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML1.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML1.significanceWidthTipText());\n assertEquals(1, resultMatrixHTML1.getVisibleColCount());\n assertEquals(2, resultMatrixHTML1.getDefaultMeanPrec());\n assertEquals(25, resultMatrixHTML1.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML1.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML1.getDefaultShowAverage());\n assertFalse(resultMatrixHTML1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML1.getDefaultPrintColNames());\n assertEquals(1, resultMatrixHTML1.getVisibleRowCount());\n assertTrue(resultMatrixHTML1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML1.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML1.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML1.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML1.getDefaultColNameWidth());\n assertEquals(25, resultMatrixHTML1.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML1.showAverageTipText());\n assertEquals(1, resultMatrixHTML1.getRowCount());\n assertTrue(resultMatrixHTML1.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML1.getStdDevPrec());\n assertFalse(resultMatrixHTML1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML1.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML1.printRowNamesTipText());\n assertFalse(resultMatrixHTML1.getRemoveFilterName());\n assertFalse(resultMatrixHTML1.getDefaultShowStdDev());\n assertEquals(0, resultMatrixHTML1.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML1.stdDevWidthTipText());\n assertFalse(resultMatrixHTML1.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML1.meanPrecTipText());\n assertEquals(0, resultMatrixHTML1.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML1.colNameWidthTipText());\n assertEquals(2, resultMatrixHTML1.getDefaultStdDevPrec());\n assertNotSame(resultMatrixHTML1, resultMatrixHTML0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, int0);\n assertFalse(resultMatrixHTML1.equals((Object)resultMatrixHTML0));\n \n int[] intArray0 = resultMatrixHTML0.getRowOrder();\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertNull(intArray0);\n assertNotSame(resultMatrixHTML0, resultMatrixHTML1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixHTML0.equals((Object)resultMatrixHTML1));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(22, 1);\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(22, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(22, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixCSV0.setMeanPrec(0);\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(22, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(22, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String[][] stringArray0 = resultMatrixPlainText0.toArray();\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertNotNull(stringArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(3, stringArray0.length);\n \n String string1 = resultMatrixCSV0.getSummaryTitle((-110));\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(22, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(22, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertNotNull(string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"[\", string1);\n assertFalse(string1.equals((Object)string0));\n \n String string2 = resultMatrixCSV0.toStringRanking();\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(22, resultMatrixCSV0.getVisibleColCount());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(22, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertNotNull(string2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"-ranking data not set-\", string2);\n assertFalse(string2.equals((Object)string0));\n assertFalse(string2.equals((Object)string1));\n \n double double0 = resultMatrixGnuPlot0.getAverage(15);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0.0, double0, 0.01);\n \n resultMatrixPlainText0.assign(resultMatrixHTML0);\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(5, resultMatrixHTML0.getCountWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertNotSame(resultMatrixHTML0, resultMatrixHTML1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixHTML0.equals((Object)resultMatrixHTML1));\n \n boolean boolean2 = resultMatrixGnuPlot0.isAverage((-509));\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean2);\n assertTrue(boolean2 == boolean0);\n assertFalse(boolean2 == boolean1);\n }", "public String getModel();", "public Object getModel();", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int int0 = 3;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixPlainText0.setRowNameWidth(3);\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n boolean boolean0 = resultMatrixHTML0.getShowAverage();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n \n boolean boolean1 = resultMatrixPlainText0.isSignificance(0);\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n int int1 = resultMatrixHTML0.getColCount();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, int1);\n assertFalse(int1 == int0);\n \n int[] intArray2 = resultMatrixHTML0.getRowOrder();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertNull(intArray2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setMeanPrec((-1));\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1065, 1);\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixGnuPlot0.setMeanWidth(1);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setPrintRowNames(false);\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String[][] stringArray0 = resultMatrixPlainText0.toArray();\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateRowNames());\n assertNotNull(stringArray0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(3, stringArray0.length);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(1, 3486);\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void verifyUsertable() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify AddnewView Button Overlay\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.Verifyuserlistindb(userProfile);\n\t}", "public void testGenDiagram() throws Exception {\n\t\tURI genmodelFileName = createURI(\"testGenDiagram.gmfgen\"); //$NON-NLS-1$\n\t\t\n\t\tException caughtGenException = assertOrdinaryLoadModelProblems(genmodelFileName);\n\t\tassertTrue(\"expected diagnostic exception\", caughtGenException != null); //$NON-NLS-1$\t\t\t\t\n\n\t\tassertOnLoadModelMigrationSuccess(genmodelFileName);\n\n\t\tURI newUri = temporarySaveMigratedModel(genmodelFileName, \"testGenDiagram\", \"gmfgen\");\n\t\tchangeNsUriToOldOne(newUri, \"gmfgen\", \"http://www.eclipse.org/gmf/2005/GenModel/2.0\");\n\t\t\n\t\tassertOnLoadModelMigrationDidNothing(newUri);\n\t}", "UMLBehavior createUMLBehavior();", "public boolean hasModel() {\n return false;\r\n }", "private void loadModelProperties(ModelProperties modelProperties, Element parent) {\n final Element element = getElement(parent, \"model_properties\");\n assistLogic.loadLocation(modelProperties, element);\n assistLogic.loadColor(modelProperties, element);\n modelProperties.setDisplay(getBooleanValue(element, \"display\"));\n final NodeList nodeList = element.getElementsByTagName(\"model_property\");\n for (int i = 0; i < nodeList.getLength(); i++) {\n final Element propertyElement = (Element) nodeList.item(i);\n final String name = getStringValue(propertyElement, \"name\");\n final String migratedName = defaultModelPropertyMigrationMap.get(name);\n final String realName = migratedName != null ? migratedName : name;\n final String value = getStringValue(propertyElement, \"value\");\n final NameValue nameValue = new NameValue(realName, value);\n modelProperties.addProperty(nameValue);\n }\n }", "PMSManage getPMSManage();", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyMuMvManageViewStandarduser() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether super user can assign the new view created to standard user\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"MeterReadCollectiveAndElec\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.viewDetailsTablestdUser(userProfile)\n\t\t.viewtableHandle(userProfile,smrProfile);\t \t\t\t\t\t\t \t \t\n\n\t}", "@Test(enabled = true)\n\tpublic void test002() {\n\t\tCategoryPOM laptops = new CategoryPOM(driver);\n\t\tlaptops.showAllDesktops();\n\t\tlaptops.clickProduct(\"Apple Cinema 30\\\"\");\n\t\tProductPOM appleCinema = new ProductPOM(driver);\n\t\tappleCinema.clickSpecification();\n\t\tWait.sleep(2);\n\t\tappleCinema.clickReview();\n\t\tWait.sleep(2);\n\t\tappleCinema.addToCart();\n\t\tWait.sleep(2);\n\t\tappleCinema.clickCart();\n\t\tWait.sleep(2);\n\t}", "private UnitManager() {\r\n\t\tUM = new UnitMap(); // create an object\r\n\t}", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[2] = intArray2;\n int[] intArray3 = new int[6];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n intArray0[3] = intArray3;\n String string0 = resultMatrixGnuPlot0.getRevision();\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"8034\", string0);\n \n double double0 = resultMatrixGnuPlot0.getMean(0, (-1135));\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixGnuPlot.main((String[]) null);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n String string1 = resultMatrixGnuPlot1.getRowName(1041);\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertNull(string1);\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n int int0 = resultMatrixGnuPlot0.getDefaultColNameWidth();\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(50, int0);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixGnuPlot0.setCount(1, 0.0);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(0, 122);\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(122, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(122, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean0 = resultMatrixLatex0.getDefaultPrintRowNames();\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(122, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(122, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(boolean0);\n }" ]
[ "0.6296368", "0.59491885", "0.5611208", "0.55998033", "0.5571891", "0.5517814", "0.5471754", "0.5327129", "0.51888967", "0.51550007", "0.5075862", "0.5065078", "0.5044931", "0.5044213", "0.5043168", "0.5038607", "0.5024605", "0.49909347", "0.49587277", "0.49575442", "0.49524987", "0.49408245", "0.49354976", "0.49342623", "0.49200422", "0.4857167", "0.48547855", "0.48529342", "0.4852829", "0.48509932", "0.48204455", "0.48203173", "0.48140565", "0.4807541", "0.47996747", "0.47814634", "0.4774854", "0.47557732", "0.47401765", "0.47371876", "0.47357726", "0.47188824", "0.47134516", "0.47045648", "0.47045648", "0.47045648", "0.47019833", "0.46943417", "0.46896845", "0.46795788", "0.46790725", "0.46757045", "0.4675467", "0.46726888", "0.46658432", "0.46656018", "0.46598676", "0.46598676", "0.46595702", "0.46544436", "0.46480536", "0.46429995", "0.46424535", "0.46398923", "0.4607664", "0.46068794", "0.46042752", "0.460149", "0.4595495", "0.45939872", "0.4593136", "0.4588925", "0.45862764", "0.45849696", "0.45758256", "0.45711386", "0.4568766", "0.45681724", "0.45595527", "0.4557421", "0.455468", "0.45431834", "0.45431834", "0.4542557", "0.4532912", "0.4530349", "0.45265573", "0.45262104", "0.45258826", "0.4522857", "0.45187867", "0.45177191", "0.45142972", "0.4510996", "0.4504809", "0.45020056", "0.45006335", "0.44996378", "0.4498316", "0.44964853" ]
0.79489
0
Tests PropertiesPanelconfigureProject(UMLModelManager) for accuracy.
public void testConfigureProject() { UMLModelManager umlModelManager = new UMLModelManager(); instance.configureProject(umlModelManager); assertSame("Failed to configure project.", umlModelManager, instance.getUMLModelManager()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setUp() throws Exception {\n // get the config manager\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"failure/config.xml\");\n\n propertiesPanel = new PropertiesPanel(umlModelManager);\n }", "public static void configUMLModelManager() throws Exception {\n // clean the ConfigManager.\n clearConfig();\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"Config.xml\");\n UMLModelManager manager = UMLModelManager.getInstance();\n ProjectConfigurationManager configManager = new ProjectConfigurationManager(manager);\n manager.setProjectConfigurationManager(configManager);\n manager.setProjectLanguage(\"Java\");\n // clean the UMLModelManager for test.\n manager.clearActivityGraphs();\n manager.clearDiagrams();\n clearConfig();\n }", "protected void setUp() throws Exception {\n TestHelper.loadSingleXMLConfig(TestHelper.NAMESPACE, TestHelper.CONFIG_FILE);\n propertiesPanel = new PropertiesPanel(new UMLModelManager());\n\n panel = new ConcurrencyPropertyPanel(propertiesPanel);\n }", "public void testConfigurePanel1() {\n Package packageObject = new PackageImpl();\n List<ModelElement> modelElements = new ArrayList<ModelElement>();\n modelElements.add(packageObject);\n instance.configurePanel(modelElements);\n\n assertEquals(\"Failed to configure the panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the panel.\", 1, ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "public void testGetUMLModelManager() {\n assertSame(\"Failed to get the UMLModelManager.\", manager, instance.getUMLModelManager());\n }", "private void projectConfigure() {\n\n btnConfigureProject.setButtonType(JFXButton.ButtonType.RAISED);\n\n final JFXButton btnEditInstructor = new JFXButton(\"Edit instructor\");\n btnEditInstructor.getStyleClass().add(\"button-try-now\");\n\n final JFXButton btnAddCar = new JFXButton(\"Configure car\");\n btnAddCar.getStyleClass().add(\"button-try-now\");\n\n final JFXButton btnAddInstructor = new JFXButton(\"Add Instructor\");\n btnAddInstructor.getStyleClass().add(\"button-try-now\");\n\n final JFXButton btnCloseProject = new JFXButton(\"Close project\");\n btnCloseProject.getStyleClass().add(\"button-try-now\");\n\n final int value = 10;\n nodeList.setSpacing(value);\n nodeList.addAnimatedNode(btnConfigureProject);\n nodeList.addAnimatedNode(btnAddInstructor);\n nodeList.addAnimatedNode(btnEditInstructor);\n nodeList.addAnimatedNode(btnAddCar);\n nodeList.addAnimatedNode(btnCloseProject);\n\n btnAddInstructor.setOnAction(this::premierLeague);\n btnEditInstructor.setOnAction(this::editInstructors);\n btnAddCar.setOnAction(this::addCar);\n btnCloseProject.setOnAction(e -> closeProject());\n }", "public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }", "public JPanel buildProjectProperties()\n\t{\n\t\tprojectProperties.setPreferredSize(new Dimension(200, 190)); //Set the size of the window\n \tprojectProperties.setBorder (projectTitle); //Add a border around the window\n \t\n \treturn projectProperties;\n\t}", "public void redoProjectProperties()\n\t{\n\t\tprojectProperties.revalidate();\n projectProperties.repaint();\n\t}", "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 }", "public void testNewJavaProject() {\n NewProjectWizardOperator.invoke().cancel();\n NewProjectWizardOperator npwo = NewProjectWizardOperator.invoke();\n // \"Standard\"\n String standardLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.wizards.Bundle\", \"Templates/Project/Standard\");\n npwo.selectCategory(standardLabel);\n // \"Java Application\"\n String javaApplicationLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.wizards.Bundle\", \"template_app\");\n npwo.selectProject(javaApplicationLabel);\n npwo.next();\n NewJavaProjectNameLocationStepOperator npnlso = new NewJavaProjectNameLocationStepOperator();\n npnlso.txtProjectName().setText(SAMPLE_PROJECT_NAME);\n npnlso.txtProjectLocation().setText(System.getProperty(\"netbeans.user\")); // NOI18N\n npnlso.btFinish().pushNoBlock();\n npnlso.getTimeouts().setTimeout(\"ComponentOperator.WaitStateTimeout\", 120000);\n npnlso.waitClosed();\n // wait project appear in projects view\n new ProjectsTabOperator().getProjectRootNode(SAMPLE_PROJECT_NAME);\n\n //disable the compile on save:\n ProjectsTabOperator.invoke().getProjectRootNode(SAMPLE_PROJECT_NAME).properties();\n // \"Project Properties\"\n String projectPropertiesTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Customizer_Title\");\n NbDialogOperator propertiesDialogOper = new NbDialogOperator(projectPropertiesTitle);\n // select \"Compile\" category\n String buildCategoryTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Config_BuildCategory\");\n String compileCategoryTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Config_Build\");\n new Node(new Node(new JTreeOperator(propertiesDialogOper), buildCategoryTitle), compileCategoryTitle).select();\n // actually disable the quick run:\n String compileOnSaveLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"CustomizerCompile.CompileOnSave\");\n JCheckBox cb = JCheckBoxOperator.waitJCheckBox((Container) propertiesDialogOper.getSource(), compileOnSaveLabel, true, true);\n if (cb.isSelected()) {\n cb.doClick();\n }\n // confirm properties dialog\n propertiesDialogOper.ok();\n\n // wait classpath scanning finished\n PerfWatchProjects.waitScanFinished();\n }", "PanelOptionsVisual(PanelConfigureProject panel) {\n this.panel = panel;\n\n preInitComponents();\n initComponents();\n postInitComponents();\n }", "public void testCtor1() throws Exception {\n assertNotNull(\"Failed to create PropertiesPanel instance.\", new PropertiesPanel(NAMESPACE, manager));\n }", "public void testConfigurePanel2() {\n instance.configurePanel(new PackageImpl());\n\n assertEquals(\"Failed to configure the panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the panel.\", 1, ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "public void testProjectsView() {\n ProjectsTabOperator.invoke();\n // needed for slower machines\n JemmyProperties.setCurrentTimeout(\"JTreeOperator.WaitNextNodeTimeout\", 30000); // NOI18N\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n Node sampleClass1Node = new Node(sample1Node, SAMPLE1_FILE_NAME);\n // test pop-up menu actions\n // \"Copy\"\n CopyAction copyAction = new CopyAction();\n copyAction.perform(sampleClass1Node);\n // \"Paste\"\n PasteAction pasteAction = new PasteAction();\n // \"Refactor\"\n String refactorItem = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"LBL_Action\");\n // \"Copy...\"\n String copyItem = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"LBL_CopyAction\");\n new ActionNoBlock(null, pasteAction.getPopupPath() + \"|\" + refactorItem + \" \" + copyItem).perform(sample1Node);\n\n String copyClassTitle = Bundle.getString(\"org.netbeans.modules.refactoring.java.ui.Bundle\", \"LBL_CopyClass\");\n NbDialogOperator copyClassDialog = new NbDialogOperator(copyClassTitle);\n // \"Refactor\"\n String refactorLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"CTL_Finish\");\n new JButtonOperator(copyClassDialog, refactorLabel).push();\n // refactoring is done asynchronously => need to wait until dialog dismisses\n copyClassDialog.waitClosed();\n\n Node newClassNode = new Node(sample1Node, \"SampleClass11\"); // NOI18N\n // \"Cut\"\n CutAction cutAction = new CutAction();\n cutAction.perform(newClassNode);\n // package created by default when the sample project was created\n Node sampleProjectPackage = new Node(sourcePackagesNode, SAMPLE_PROJECT_NAME.toLowerCase());\n // \"Move...\"\n String moveItem = Bundle.getStringTrimmed(\"org.netbeans.modules.refactoring.spi.impl.Bundle\", \"LBL_MoveAction\");\n new ActionNoBlock(null, pasteAction.getPopupPath() + \"|\" + refactorItem + \" \" + moveItem).perform(sampleProjectPackage);\n new EventTool().waitNoEvent(1000);\n // confirm refactoring\n // \"Move Class\"\n String moveClassTitle = Bundle.getString(\"org.netbeans.modules.refactoring.java.ui.Bundle\", \"LBL_MoveClass\");\n NbDialogOperator moveClassDialog = new NbDialogOperator(moveClassTitle);\n new JButtonOperator(moveClassDialog, refactorLabel).push();\n // refactoring is done asynchronously => need to wait until dialog dismisses\n try {\n moveClassDialog.waitClosed();\n } catch (TimeoutExpiredException e) {\n // try it once more\n moveClassDialog = new NbDialogOperator(moveClassTitle);\n new JButtonOperator(moveClassDialog, refactorLabel).push();\n }\n // \"Delete\"\n newClassNode = new Node(sampleProjectPackage, \"SampleClass11\"); // NOI18N\n new EventTool().waitNoEvent(2000);\n new DeleteAction().perform(newClassNode);\n DeleteAction.confirmDeletion();\n }", "public void testBug364450() throws JavaModelException {\n //$NON-NLS-1$\n IPath projectPath = env.addProject(\"Project\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n //$NON-NLS-1$\n env.setOutputFolder(projectPath, \"bin\");\n IPath wPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"w\", //$NON-NLS-1$ //$NON-NLS-2$\n \"W\", \"package w;\\n\" + \"public class W {\\n\" + //$NON-NLS-1$\n \"\tprivate w.I i;}\");\n IPath aPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"a\", //$NON-NLS-1$ //$NON-NLS-2$\n \"A\", \"package a;\\n\" + \"import w.I;\\n\" + \"import w.W;\\n\" + //$NON-NLS-1$\n \"public class A {}\");\n env.waitForManualRefresh();\n fullBuild(projectPath);\n env.waitForAutoBuild();\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(wPath, new Problem(\"W\", \"w.I cannot be resolved to a type\", wPath, 37, 40, CategorizedProblem.CAT_TYPE, IMarker.SEVERITY_ERROR));\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(aPath, new Problem(\"A\", \"The import w.I cannot be resolved\", aPath, 18, 21, CategorizedProblem.CAT_IMPORT, IMarker.SEVERITY_ERROR));\n aPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"a\", //$NON-NLS-1$ //$NON-NLS-2$\n \"A\", \"package a;\\n\" + \"import w.I;\\n\" + \"import w.W;\\n\" + //$NON-NLS-1$\n \"public class A {}\");\n env.waitForManualRefresh();\n incrementalBuild(projectPath);\n env.waitForAutoBuild();\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(aPath, new Problem(\"A\", \"The import w.I cannot be resolved\", aPath, 18, 21, CategorizedProblem.CAT_IMPORT, IMarker.SEVERITY_ERROR));\n env.removeProject(projectPath);\n }", "@Test\n public void testGetSelectedProject() {\n System.out.println(\"getSelectedProject\");\n ProjectEditController instance = new ProjectEditController();\n Project expResult = new Project();\n instance.prepareEditProject(expResult);\n Project result = instance.getSelectedProject();\n assertEquals(expResult, result);\n\n }", "public void test_61843() {\n \t\t// create the project and manually give it a settings file\n \t\tfinal String qualifier = getUniqueString();\n \t\tfinal IProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIFile settingsFile = getFileInWorkspace(project, qualifier);\n \n \t\t// write some property values in the settings file\n \t\tProperties properties = new Properties();\n \t\tproperties.put(\"key\", \"value\");\n \t\tOutputStream output = null;\n \t\ttry {\n \t\t\tFile file = settingsFile.getLocation().toFile();\n \t\t\tfile.getParentFile().mkdirs();\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(file));\n \t\t\tproperties.store(output, null);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (output != null)\n \t\t\t\t\toutput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \n \t\t// add a log listener to ensure that no errors are reported silently\n \t\tILogListener logListener = new ILogListener() {\n \t\t\tpublic void logging(IStatus status, String plugin) {\n \t\t\t\tThrowable exception = status.getException();\n \t\t\t\tif (exception == null || !(exception instanceof CoreException))\n \t\t\t\t\treturn;\n \t\t\t\tif (IResourceStatus.WORKSPACE_LOCKED == ((CoreException) exception).getStatus().getCode())\n \t\t\t\t\tfail(\"3.0\");\n \t\t\t}\n \t\t};\n \n \t\t// listener to react to changes in the workspace\n \t\tIResourceChangeListener rclistener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\tnew ProjectScope(project).getNode(qualifier);\n \t\t\t}\n \t\t};\n \n \t\t// add the listeners\n \t\tPlatform.addLogListener(logListener);\n \t\tgetWorkspace().addResourceChangeListener(rclistener, IResourceChangeEvent.POST_CHANGE);\n \n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.0\", e);\n \t\t} finally {\n \t\t\tPlatform.removeLogListener(logListener);\n \t\t\tgetWorkspace().removeResourceChangeListener(rclistener);\n \t\t}\n \t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\tIWorkspaceDescription wsDescription = workspace.getDescription();\n\t\tif (wsDescription.isAutoBuilding()) {\n\t\t\twsDescription.setAutoBuilding(false);\n\t\t\tworkspace.setDescription(wsDescription);\n\t\t}\n\t\t\n\t\t// disable indexing\n\t\tDebugHelpers.disableIndexing();\n\t\t\n\t\t// Create a new project\n\t\trodinProject = createRodinProject(\"P\"); //$NON-NLS-1$\n\t}", "protected void setUp() throws Exception {\n super.setUp();\n TestHelper.loadConfigurations();\n DocumentTreeTabbedPane parent =\n new DocumentTreeTabbedPaneImpl(TestHelper.createUMLModelManager(), TestHelper.NAMESPACE_NEW);\n panel = parent.getCurrentPanel();\n }", "@Test\n \tpublic void testCreateMindProject() throws Exception {\n \t\tString name = \"Test\" ; //call a generator which compute a new name\n \t\tGTMenu.clickItem(\"File\", \"New\", FRACTAL_MIND_PROJECT);\n \t\tGTShell shell = new GTShell(Messages.MindProjectWizard_window_title);\n \t\t//shell.findTree().selectNode(\"Mind\",FRACTAL_MIND_PROJECT);\n \t\t//shell.findButton(\"Next >\").click();\n \t\tshell.findTextWithLabel(\"Project name:\").typeText(name);\n \t\tshell.close();\n \t\t\n \t\tTestMindProject.assertMindProject(name);\t\t\n \t}", "@Test\n public void f9EditParametersTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(1000);\n\n //select 1st asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n FlowPane allModels = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n Pane selectedModel = (Pane) allModels.getChildren().get(0);\n clickOn(selectedModel).sleep(1000);\n\n //Changing Parameters\n VBox paraBox = (VBox) scene.getRoot().lookup(\"#modelParameters\");\n Pane batchSizePara = (Pane) paraBox.getChildren().get(0);\n TextField batchSizeVal = (TextField) batchSizePara.getChildren().get(1);\n clickOn(batchSizeVal).type(KeyCode.BACK_SPACE).sleep(500).type(KeyCode.BACK_SPACE).sleep(500).write(\"60\").sleep(1500);\n\n Pane qrPara = (Pane) paraBox.getChildren().get(1);\n CheckBox qrVal = (CheckBox) qrPara.getChildren().get(1);\n clickOn(qrVal).sleep(1500);\n\n Pane collinearPara = (Pane) paraBox.getChildren().get(2);\n CheckBox colinearVal = (CheckBox) collinearPara.getChildren().get(1);\n clickOn(colinearVal).sleep(1500);\n\n //Parameter after changing it from the default value should be 160\n assertEquals(\"Batch Size value is a now 160\", \"160\", batchSizeVal.getText());\n\n //reset to default\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(1000);\n clickOn(paraBox.getChildren().get(0)).sleep(1500);\n\n //Now go to the last model (Multilayer Perceptron)\n selectedModel = (Pane) allModels.getChildren().get(allModels.getChildren().size() - 1);\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n\n moveBy(0, 200).scroll(65, VerticalDirection.UP);\n clickOn(selectedModel).sleep(1000);\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n\n //Change parameters\n Pane autoBuildPara = (Pane) paraBox.getChildren().get(0);\n CheckBox autoBuildVal = (CheckBox) autoBuildPara.getChildren().get(1);\n clickOn(autoBuildVal).sleep(1500);\n\n Pane showGUIPara = (Pane) paraBox.getChildren().get(2);\n CheckBox showGUIVal = (CheckBox) showGUIPara.getChildren().get(1);\n clickOn(showGUIVal).sleep(1500);\n\n Pane momentumPara = (Pane) paraBox.getChildren().get(3);\n TextField momentumVal = (TextField) momentumPara.getChildren().get(1);\n clickOn(momentumVal).type(KeyCode.BACK_SPACE).sleep(500).write(\"1\").sleep(1500);\n\n //Momentum after changing shouldn't be the default 0.2 value anymore\n assertFalse(\"Momentum is default 0.2\", momentumVal.getText().equals(\"0.2\"));\n\n Pane decayPara = (Pane) paraBox.getChildren().get(9);\n CheckBox decayVal = (CheckBox) decayPara.getChildren().get(1);\n clickOn(decayVal).sleep(1500);\n\n// //Go to RandomForest Model\n selectedModel = (Pane) allModels.getChildren().get(2);\n clickOn(selectedModel).sleep(1000);\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n\n// //Change parameters\n Pane execPara = (Pane) paraBox.getChildren().get(1);\n TextField execVal = (TextField) execPara.getChildren().get(1);\n clickOn(execVal).sleep(1500);\n//\n Pane calcBagPara = (Pane) paraBox.getChildren().get(3);\n CheckBox calcBagVal = (CheckBox) calcBagPara.getChildren().get(1);\n clickOn(calcBagVal).sleep(1500);\n//\n Pane bagSizePara = (Pane) paraBox.getChildren().get(6);\n TextField bagSizeVal = (TextField) bagSizePara.getChildren().get(1);\n clickOn(bagSizeVal).type(KeyCode.BACK_SPACE).sleep(500).type(KeyCode.BACK_SPACE).sleep(500).write(\"0\").sleep(1500);\n\n //Bag Size after changing shouldn't be the default 100 value anymore\n assertFalse(\"Bag size is default 100\", bagSizeVal.getText().equals(\"100\"));\n //Have parameters VBox\n assertNotNull(\"Parameters box for the model exists\", paraBox);\n\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n clickOn(paraBox.getChildren().get(0)).sleep(2000);\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\t System.setProperty(\"webdriver.firefox.marionette\", \"C:\\\\GeckoSelenium\\\\geckodriver.exe\");\n\t\t driver = new FirefoxDriver();\n//\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\ChromeDriver\\\\chromedriver.exe\");\n//\t\tdriver = new ChromeDriver();\n\n\t\tprop = new Properties();\n\t\tprop.load(new FileInputStream(\"./Configuration/Configuration.properties\"));\n\t\tint timewait = (Integer.parseInt(prop.getProperty(\"wait_time\")));\n\t\tdriver.manage().timeouts().implicitlyWait(timewait, TimeUnit.SECONDS);\n\t\tappUrl = prop.getProperty(\"AppUrl\");\n\t\tsharedUIMapPath = prop.getProperty(\"SharedUIMapPath\");\n\t\tprop.load(new FileInputStream(sharedUIMapPath));\n\t\tdriver.get(appUrl);\n\t\tfakeUrl = prop.getProperty(\"FakeUrl\");\n\t\tdriver.manage().window().setSize(new Dimension(1440, 850));\n\t}", "public void testChangeOfSpecies() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n oManager = new GUIManager(null);\n sFileName = writeValidXMLFile();\n oManager.inputXMLParameterFile(sFileName);\n \n //Now change the species\n String[] sNewSpecies = new String[] {\n \"Species 3\",\n \"Species 2\",\n \"Species 1\",\n \"Species 4\",\n \"Species 5\",\n \"Species 6\"};\n \n oManager.getTreePopulation().setSpeciesNames(sNewSpecies);\n ManagementBehaviors oManagementBeh = oManager.getManagementBehaviors();\n ArrayList<Behavior> p_oBehs = oManagementBeh.getBehaviorByParameterFileTag(\"QualityVigorClassifier\");\n assertEquals(1, p_oBehs.size());\n QualityVigorClassifier oQual = (QualityVigorClassifier) p_oBehs.get(0);\n \n assertEquals(3, oQual.mp_oQualityVigorSizeClasses.size());\n \n QualityVigorSizeClass oClass = oQual.mp_oQualityVigorSizeClasses.get(0);\n assertEquals(10, oClass.m_fMinDbh, 0.0001);\n assertEquals(20, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.78, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.88, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.61, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.55, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(1);\n assertEquals(20, oClass.m_fMinDbh, 0.0001);\n assertEquals(30, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.81, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.32, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.69, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.58, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(2);\n assertEquals(30, oClass.m_fMinDbh, 0.0001);\n assertEquals(40, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.34, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.57, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.26, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.66, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.45, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(2.35, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(2.43, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-2.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.12, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-1, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(-0.45, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.01, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.04, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.001, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.13, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.15, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.3, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.4, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.5, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(6, oQual.mp_iQualVigorDeciduous.getValue().size());\n for (int i = 0; i < oQual.mp_iQualVigorDeciduous.getValue().size(); i++)\n assertNotNull(oQual.mp_iQualVigorDeciduous.getValue().get(i));\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(1)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(0)).getValue());\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(3)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(4)).getValue());\n\n System.out.println(\"Change of species test succeeded.\");\n }\n catch (ModelException oErr) {\n fail(\"Change of species test failed with message \" + oErr.getMessage());\n }\n catch (java.io.IOException oE) {\n fail(\"Caught IOException. Message: \" + oE.getMessage());\n }\n finally {\n new File(sFileName).delete();\n }\n }", "public interface ProjectPropertiesView extends View<ProjectPropertiesView.ActionDelegate> {\n \n public interface ActionDelegate {\n /** Performs any actions appropriate in response to the user having pressed the Add button. */\n void onAddClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Edit button. */\n void onEditClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Delete button. */\n void onDeleteClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Save button. */\n void onSaveClicked();\n\n /** Performs any actions appropriate in response to the user having pressed the Cancel button. */\n void onCancelClicked();\n \n /** Returns selected property. */\n void selectedProperty(Property property);\n }\n \n /**\n * Sets whether Edit button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setEditButtonEnabled(boolean isEnabled);\n \n /**\n * Sets whether Delete button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setDeleteButtonEnabled(boolean isEnabled);\n \n /**\n * Sets whether Save button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setSaveButtonEnabled(boolean isEnabled);\n\n /**\n * Sets properties.\n *\n * @param projects\n */\n void setProperties(Array<Property> properties);\n \n /** Close dialog. */\n void close();\n\n /** Show dialog. */\n void showDialog();\n}", "public void testConfigRoundtrip() throws Exception {\n DownstreamProjectGridBuilder gridBuilder = new DownstreamProjectGridBuilder(\"something\");\n BuildPipelineView v = new BuildPipelineView(\"foo\",\"Title\", gridBuilder, \"5\", true, null);\n jenkins.addView(v);\n configRoundtrip(v);\n BuildPipelineView av = (BuildPipelineView)jenkins.getView(v.getViewName());\n assertSame(v,av);\n// assertNotSame(gridBuilder,(DownstreamProjectGridBuilder)av.getGridBuilder()); //FIXME: this is making the test fail, and it's not obvious why this should be true\n }", "public void testRefreshPanel() {\n Package packageObject = new PackageImpl();\n instance.configurePanel(packageObject);\n\n assertEquals(\"Failed to configure the left panel.\", 4, ((JPanel) instance.getComponent(0)).getComponentCount());\n assertEquals(\"Failed to configure the right panel.\", 1,\n ((JPanel) instance.getComponent(1)).getComponentCount());\n }", "@Test\n @org.junit.Ignore\n public void testProject_1()\n throws Exception {\n\n Project result = new Project();\n\n assertNotNull(result);\n assertEquals(null, result.getName());\n assertEquals(null, result.getWorkloadNames());\n assertEquals(null, result.getProductName());\n assertEquals(null, result.getComments());\n assertEquals(null, result.getCreator());\n assertEquals(0, result.getId());\n assertEquals(null, result.getModified());\n assertEquals(null, result.getCreated());\n }", "public void testMsProjectType() throws MPXJException {\n TaskManager taskManager = getTaskManager();\n CustomPropertyDefinition col5 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col5\", null);\n col5.getAttributes().put(CustomPropertyMapping.MSPROJECT_TYPE, \"NUMBER1\");\n\n CustomPropertyDefinition col4 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col4\", null);\n\n CustomPropertyDefinition col3 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col3\", null);\n col3.getAttributes().put(CustomPropertyMapping.MSPROJECT_TYPE, \"COST10\");\n\n CustomPropertyDefinition col2 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col2\", null);\n CustomPropertyDefinition col1 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col1\", null);\n col1.getAttributes().put(CustomPropertyMapping.MSPROJECT_TYPE, \"NUMBER3\");\n\n Map<CustomPropertyDefinition, FieldType> mapping = CustomPropertyMapping.buildMapping(taskManager);\n assertEquals(TaskField.NUMBER3, mapping.get(col1));\n assertEquals(TaskField.NUMBER4, mapping.get(col2));\n assertEquals(TaskField.COST10, mapping.get(col3));\n assertEquals(TaskField.NUMBER2, mapping.get(col4));\n assertEquals(TaskField.NUMBER1, mapping.get(col5));\n }", "private void manualTestPanel() {\n\t\tJPanel manualPanel = new JPanel();\n\t\tmanualPanel.setSize(PanelsDimension);\n\t\tmanualPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\tmanualPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\t\n\t\t//Title\n\t\tc.weighty = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t\tc.gridwidth = 2;\n\t\tJLabel manualConfigLabel = new JLabel(\"Manual Configuration\");\n\t\tmanualConfigLabel.setHorizontalAlignment(0);\n\t\tmanualPanel.add(manualConfigLabel, c);\n\t\t\n\t\t//ComboBox\n\t\tc.weightx = 0.7;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 1;\n\t\tc.ipady = 20;\n\t\tc.gridwidth = 1;\n\t\trulesCB = new DefaultComboBoxModel<String>();\n\t\tmanualCBRules.setPrototypeDisplayValue(\"XXXXXXXXXXXXXXXXXXXXXXXXXX\");\n\t\tmanualCBRules.setModel(rulesCB);\n\t\tmanualCBRules.addActionListener(\n\t\t\tnew ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualPanel.add(manualCBRules, c);\n\t\t\n\t\t//WeigthValue\n\t\tc.weightx = 0.3;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 1;\n\t\tc.gridy = 1;\n\t\tc.ipady = 0;\n\t\tc.gridwidth = 1;\n\t\tmanualRuleValue = new JTextField();\n\t\tmanualPanel.add(manualRuleValue, c);\n\t\t\n\t\t//Save Configurations Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualSaveValuesButton = new JButton(\"Save Manual configurations\");\n\t\tmanualSaveValuesButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetValueToRule();\n\t\t\t\t\t\tAntiSpamFilterControl.saveRulesFile(true);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualSaveValuesButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualSaveValuesButton, c);\n\t\t\n\t\t//Test Values Button\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 3;\n\t\tc.ipady = 15;\n\t\tc.gridwidth = 2;\n\t\tmanualTestButton = new JButton(\"Test Values\");\n\t\tmanualTestButton.addActionListener(\n\t\t\tnew ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\tsetValueToRule();\n\t\t\t\t\tAntiSpamFilterControl.Evaluater(true);\n\t\t\t\t\tsetResultString(\"manual\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tmanualTestButton.setSize(frameWidth/2, 80);\n\t\tmanualPanel.add(manualTestButton, c);\n\t\t\n\t\t//Show Results\n\t\tc.weightx = 0.5;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridx = 0;\n\t\tc.gridy = 4;\n\t\tc.ipady = 0;\n\t\tmanualResults = new JTextArea();\n\t\tmanualResults.setEnabled(false);\n\t\tmanualPanel.add(manualResults, c);\n\t\t\n\t\tframe.add(manualPanel);\n\t}", "protected void setUp() throws Exception {\n super.setUp();\n try {\n Properties p = new Properties();\n InputStream is = new FileInputStream(new File(\"test_files/accuracy/config.properties\")\n .getAbsolutePath());\n p.load(is);\n wsdl = p.getProperty(\"project_wsdl\");\n } catch (IOException e) {\n // ignore\n }\n }", "@Test\n\tpublic void test3_checkButtons() throws GeneralLeanFtException{\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Started\");\n\t\t\t\n\t\t\t//Check that the Main window should exist\n\t\t\tassertTrue(mySet.appExistsorNot());\t\t\t\n\t\t\t\n\t\t\t//Toolbar Object\n\t\t\tToolBar toolbar = mySet.OR.MainWindow().ToolBar(); \n\n\t\t\t// Clicking the JButton displays the required frame\n\t\t\ttoolbar.getButton(\"JButton\").press();\n\t\t\t\n\t\t\t//Getting the Image Buttons in the Panel\n\t\t\tButton[] imgButtons = mySet.OR.MainWindow().ImageButtonsPanelUiObject()\n\t\t\t .findChildren(Button.class,new ButtonDescription.Builder().nativeClass(\"javax.swing.JButton\").build());\n\t\t\t \n\t\t\t//There should be 3 Image Buttons\n\t\t\tassertEquals(3, imgButtons.length);\n\t\t\t\n\t\t\t//Trigger the Mouse Entered Event for the each button in the Panel\t\t\t\t\n\t\t\tRobot robo = new Robot();\t\t\t\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\t\t\t\t\n\t\t\t\trobo.mouseMove(btn.getAbsoluteLocation().x,btn.getAbsoluteLocation().y);\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\t//Store the Original Dimension\n\t\t\tDimension orginalDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Increase the Size by Selecting the Pad Radio Button\n\t\t\tmySet.OR.MainWindow().Pad10RadioButton().click();\n\t\t\t\n\t\t\t//Verify that the radio button is checked\n\t\t\tassertTrue(mySet.OR.MainWindow().Pad10RadioButton().isChecked()==true);\n\t\t\t\n\t\t\t//Store the New Dimension\n\t\t\tDimension newDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Assert that Height Increases and Width Decreases\n\t\t\tassertTrue((newDimension.width < orginalDimension.width) && (newDimension.height > orginalDimension.height));\n\t\t\t\n\t\t\t//Click the Enabled Check box\n\t\t\tmySet.OR.MainWindow().EnabledCheckBox().click();\n\t\t\t\n\t\t\t//Check that the Check Box has been unchecked \n\t\t\tassertTrue(mySet.OR.MainWindow().EnabledCheckBox().getState()==CheckedState.UNCHECKED);\n\t\t\t\n\t\t\t//Check that all Image Buttons are disabled\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\n\t\t\t\tassertTrue(btn.isEnabled()==false);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unexpected Error Occurred. Message = \" + e.getMessage() + \"Stack Trace = \");\n\t\t\te.printStackTrace();\n\t\t\tassertTrue(false);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Finished\");\n\t\t}\n\t\t\n\t}", "@Override\r\n protected void setUp() throws Exception {\r\n deleteAllProjects();\r\n\r\n lookupProjectServiceRemoteWithUserRole();\r\n }", "@Test\n public void testCase1() {\n File base = new File(DIR, \"case1\");\n File pl0 = new File(base, \"pl0/EASy\");\n File pl1 = new File(base, \"pl1/EASy\");\n try {\n Location pl0Loc = VarModel.INSTANCE.locations().addLocation(pl0, OBSERVER);\n Location pl1Loc = VarModel.INSTANCE.locations().addLocation(pl1, OBSERVER);\n // add Parent\n pl1Loc.addDependentLocation(pl0Loc);\n \n VarModel.INSTANCE.loaders().registerLoader(ModelUtility.INSTANCE, OBSERVER);\n \n List<ModelInfo<Project>> infos = VarModel.INSTANCE.availableModels().getModelInfo(\"pl1\");\n Assert.assertNotNull(infos);\n Assert.assertTrue(1 == infos.size());\n Project project = VarModel.INSTANCE.load(infos.get(0));\n Assert.assertNotNull(project);\n \n VarModel.INSTANCE.locations().removeLocation(pl1Loc, OBSERVER);\n VarModel.INSTANCE.locations().removeLocation(pl0Loc, OBSERVER);\n VarModel.INSTANCE.loaders().unregisterLoader(ModelUtility.INSTANCE, OBSERVER);\n } catch (ModelManagementException e) {\n Assert.fail(\"unexpected exception \" + e);\n }\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setAllLevelsVisible(false);\n homeEnvironment0.setPhotoQuality(2377);\n homeEnvironment0.getSkyColor();\n homeEnvironment0.getSubpartSizeUnderLight();\n homeEnvironment0.setSkyColor(2377);\n assertEquals(2377, homeEnvironment0.getPhotoQuality());\n }", "@Before\n public void setup() {\n presenter = new MapEditor(view, valueChangeEvent);\n assertEquals(view.asWidget(), presenter.asWidget());\n }", "public void projectPropertiesDisplay()\n\t{\n\t\ttree.setModel(null);\n\t\tredoProjectProperties();\n\t\tFileTree model = new FileTree(currentProject.toString()); //Create a new FileTree using the Selected File\n tree.setModel(model); //Set the model as the FileTree class model\n /***************************************************************************************\n * Title: FileSelectorModel \n * Author: S�bastien Le Callonnec\n * Date: September 18, 2019\n * Code version: version 1.0\n * Availability: https://www.weblogism.com/item/300/use-jtree-to-display-files-in-filesystem-ii\n * Modified slightly by the team to work with our project\n ***************************************************************************************/\n JLabel status = new JLabel(currentProject.toString());\n tree.addTreeSelectionListener(new TreeSelectionListener() \n {\n public void valueChanged(TreeSelectionEvent e) \n {\n folderNameGetter selectedNode = (folderNameGetter) tree.getLastSelectedPathComponent();\n if(selectedNode != null)\n {\n \tstatus.setText(selectedNode.getAbsolutePath());\n if (selectedNode.isFile()) \n {\n try \n {\n \tcurrentFile.setLength(0);\n \tcurrentFile.append(selectedNode);\n \tresetFileTitle();\n BufferedReader br = new BufferedReader(new FileReader(selectedNode.getAbsolutePath()));\n String line = \"\";\n String l = \"\";\n while ((line = br.readLine()) != null) \n {\n \tl += line + \"\\n\" ;\n }\n displayText(l);\n br.close();\n } \n catch (Exception exc) \n {\n exc.printStackTrace();\n }\n }\n }\n }\n });\n//*********************************************************************************************************************************************************************************************************************************\n spectralFilesScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); //Show scroll bars when necessary\n projectProperties.add(spectralFilesScrollPane); //Add to projectProperties JPanel\n redoProjectProperties();\n\t}", "public InstallerPanel(SuiteInstallerProjectProperties props) {\n this.installerProps = props;\n initComponents();\n\n jCheckBox1.setModel(installerProps.windowsModel);\n jCheckBox2.setModel(installerProps.linuxModel);\n jCheckBox3.setModel(installerProps.macModel);\n jCheckBox4.setModel(installerProps.solarisModel);\n jCheckBox5.setModel(installerProps.pack200Model);\n \n licenseComboBox.setModel(installerProps.licenseModel);\n }", "@Then(\"^Validate project table against pivotal project$\")\n public void allInformationOfPivotalTrackerProjectsShouldBeDisplayedInProjectTableWidgetOfMach() {\n JsonPath jsonPath = resources.getResponse().jsonPath();\n// assertEquals(jsonPath.get(\"name\"), tableProjectValues.get(\"name\"));\n// assertEquals(jsonPath.get(\"current_iteration_number\"), tableProjectValues.get(\"current_iteration\"));\n// assertEquals(jsonPath.get(\"week_start_day\"), tableProjectValues.get(\"week_start_date\"));\n assertEquals(jsonPath.get(\"name\"), \"AT01 project-01\");\n assertEquals(jsonPath.get(\"week_start_day\"), \"Monday\");\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(14, 6, new Insets(0, 0, 0, 0), -1, -1));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 20), new Dimension(20, -1), null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"EUID\");\n mainPanel.add(label1, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n EUIDText = new JLabel();\n EUIDText.setText(\"Label\");\n mainPanel.add(EUIDText, new com.intellij.uiDesigner.core.GridConstraints(2, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"x-coordinate\");\n mainPanel.add(label2, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n xPosSpinner = new JSpinner();\n mainPanel.add(xPosSpinner, new com.intellij.uiDesigner.core.GridConstraints(3, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(10, -1), new Dimension(10, -1), null, 0, false));\n longitudeLabel = new JLabel();\n longitudeLabel.setText(\"Label\");\n mainPanel.add(longitudeLabel, new com.intellij.uiDesigner.core.GridConstraints(3, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(3, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(10, -1), new Dimension(10, -1), null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"y-coordinate\");\n mainPanel.add(label3, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n yPosSpinner = new JSpinner();\n mainPanel.add(yPosSpinner, new com.intellij.uiDesigner.core.GridConstraints(4, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n latitudeLabel = new JLabel();\n latitudeLabel.setText(\"Label\");\n mainPanel.add(latitudeLabel, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n powerSpinner = new JSpinner();\n mainPanel.add(powerSpinner, new com.intellij.uiDesigner.core.GridConstraints(5, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Powersetting\");\n mainPanel.add(label4, new com.intellij.uiDesigner.core.GridConstraints(5, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Spreading factor\");\n mainPanel.add(label5, new com.intellij.uiDesigner.core.GridConstraints(6, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n SFSpinner = new JSpinner();\n mainPanel.add(SFSpinner, new com.intellij.uiDesigner.core.GridConstraints(6, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n TPThresholdText = new JLabel();\n TPThresholdText.setText(\"Label\");\n mainPanel.add(TPThresholdText, new com.intellij.uiDesigner.core.GridConstraints(7, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Transmission power threshold\");\n mainPanel.add(label6, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setText(\"Save\");\n mainPanel.add(saveButton, new com.intellij.uiDesigner.core.GridConstraints(12, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(13, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 20), new Dimension(-1, 20), null, 0, false));\n final JLabel label7 = new JLabel();\n label7.setText(\"Mote \");\n mainPanel.add(label7, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n moteNumberLabel = new JLabel();\n moteNumberLabel.setText(\"Label\");\n mainPanel.add(moteNumberLabel, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label8 = new JLabel();\n label8.setText(\"Sensors:\");\n mainPanel.add(label8, new com.intellij.uiDesigner.core.GridConstraints(10, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n addButton = new JButton();\n addButton.setText(\"Add\");\n mainPanel.add(addButton, new com.intellij.uiDesigner.core.GridConstraints(10, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n sensorSpinner = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n sensorSpinner.setModel(defaultComboBoxModel1);\n mainPanel.add(sensorSpinner, new com.intellij.uiDesigner.core.GridConstraints(10, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label9 = new JLabel();\n label9.setText(\"Sampling rate\");\n mainPanel.add(label9, new com.intellij.uiDesigner.core.GridConstraints(8, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label10 = new JLabel();\n label10.setText(\"Movement speed\");\n mainPanel.add(label10, new com.intellij.uiDesigner.core.GridConstraints(9, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n samplingSpinner = new JSpinner();\n mainPanel.add(samplingSpinner, new com.intellij.uiDesigner.core.GridConstraints(8, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n movementSpinner = new JSpinner();\n mainPanel.add(movementSpinner, new com.intellij.uiDesigner.core.GridConstraints(9, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label11 = new JLabel();\n label11.setText(\"m/s\");\n mainPanel.add(label11, new com.intellij.uiDesigner.core.GridConstraints(9, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label12 = new JLabel();\n label12.setText(\"m\");\n mainPanel.add(label12, new com.intellij.uiDesigner.core.GridConstraints(8, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n scrollPane1.setHorizontalScrollBarPolicy(31);\n mainPanel.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(11, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, new Dimension(-1, 90), 0, false));\n sensorList = new JList();\n scrollPane1.setViewportView(sensorList);\n }", "public void populate(IProject project) throws InvocationTargetException;", "private boolean testPersistenceManager (final PersistenceManager pm){\n\t\ttry {\n\t\t\tfinal Iterator it = pm.getExtent(Project.class, true).iterator();\n\t\t} catch (Exception e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[1];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray0[2] = intArray3;\n String string0 = resultMatrixGnuPlot0.getRevision();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"8034\", string0);\n \n double double0 = resultMatrixGnuPlot0.getMean(1129, 97);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixGnuPlot.main((String[]) null);\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n String string1 = resultMatrixGnuPlot1.getRowName(1);\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNull(string1);\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n resultMatrixGnuPlot1.m_MeanWidth = 1129;\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1129, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n \n int int0 = resultMatrixGnuPlot1.getDefaultColNameWidth();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1129, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(50, int0);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n boolean boolean0 = resultMatrixGnuPlot1.getDefaultEnumerateColNames();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertEquals(1129, resultMatrixGnuPlot1.getMeanWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertNotSame(resultMatrixGnuPlot1, resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean0);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n }", "@Test\n\tpublic void testPowerUpView_8()\n\t\tthrows Exception {\n\t\tGameObject gameObject = new Tile(new Point());\n\t\tGfxFactory gfxFactory = new GfxFactory();\n\n\t\tPowerUpView result = new PowerUpView(gameObject, gfxFactory);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.LogManager\n\t\t// at org.apache.log4j.Logger.getLogger(Logger.java:116)\n\t\t// at client.view.GfxFactory.<init>(GfxFactory.java:45)\n\t\tassertNotNull(result);\n\t}", "@Test (groups = {\"Functional\"})\n public void testAddProject() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String projectName = \"TestProject\";\n String testAccount = \"Account1\";\n createProject.setProjectName(projectName);\n createProject.clickPublicProjectPrivacy();\n createProject.setAccountDropDown(testAccount);\n project = createProject.clickCreateProject();\n\n //Then\n assertEquals(PROJECT_NAME, project.getTitle());\n }", "private void $$$setupUI$$$() {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n targetClassesTextField = new JTextField();\n panel.add(targetClassesTextField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel.add(spacer1, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n targetClassesLabel = new JLabel();\n targetClassesLabel.setText(\"Target classes\");\n panel.add(targetClassesLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n sourceDirTextField = new JTextField();\n panel.add(sourceDirTextField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n sourceDirLabel = new JLabel();\n sourceDirLabel.setText(\"Source dir\");\n panel.add(sourceDirLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n reportDirTextField = new JTextField();\n panel.add(reportDirTextField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n reportDirLabel = new JLabel();\n reportDirLabel.setText(\"Report dir\");\n panel.add(reportDirLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n otherParamsTextField = new JTextField();\n panel.add(otherParamsTextField, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n otherParamsLabel = new JLabel();\n otherParamsLabel.setText(\"Other params\");\n panel.add(otherParamsLabel, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-1184275));\n panel1.setForeground(new Color(-4473925));\n mainPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setBackground(new Color(-12828863));\n Font label1Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setForeground(new Color(-12828863));\n label1.setText(\"Scheduler\");\n panel1.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setText(\"Select the Type of Scheduler \");\n panel1.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n dropDown = new JComboBox();\n Font dropDownFont = this.$$$getFont$$$(\"Georgia\", -1, 14, dropDown.getFont());\n if (dropDownFont != null) dropDown.setFont(dropDownFont);\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Shortest Remaining Process Time\");\n defaultComboBoxModel1.addElement(\"Earliest Deadline First\");\n defaultComboBoxModel1.addElement(\"Deadline Monotonic\");\n dropDown.setModel(defaultComboBoxModel1);\n panel1.add(dropDown, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setText(\"Current Task\");\n panel1.add(label3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n currentField = new JTextField();\n currentField.setBackground(new Color(-3873281));\n currentField.setEditable(false);\n Font currentFieldFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, currentField.getFont());\n if (currentFieldFont != null) currentField.setFont(currentFieldFont);\n panel1.add(currentField, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n Font label4Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label4.getFont());\n if (label4Font != null) label4.setFont(label4Font);\n label4.setText(\"Current Task Progress \");\n panel2.add(label4, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n progressBar1 = new JProgressBar();\n panel2.add(progressBar1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskList = new JList();\n taskList.setBackground(new Color(-5186305));\n Font taskListFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskList.getFont());\n if (taskListFont != null) taskList.setFont(taskListFont);\n final DefaultListModel defaultListModel1 = new DefaultListModel();\n taskList.setModel(defaultListModel1);\n taskList.setSelectionBackground(new Color(-13220097));\n taskList.setSelectionForeground(new Color(-1));\n taskList.setSelectionMode(0);\n panel2.add(taskList, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n tickButton = new JButton();\n Font tickButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, tickButton.getFont());\n if (tickButtonFont != null) tickButton.setFont(tickButtonFont);\n tickButton.setText(\"Tick\");\n panel2.add(tickButton, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n switchButton = new JButton();\n Font switchButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, switchButton.getFont());\n if (switchButtonFont != null) switchButton.setFont(switchButtonFont);\n switchButton.setText(\"Switch\");\n panel2.add(switchButton, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n delButton = new JButton();\n Font delButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, delButton.getFont());\n if (delButtonFont != null) delButton.setFont(delButtonFont);\n delButton.setText(\"Delete\");\n panel2.add(delButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(8, 2, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n Font label5Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, label5.getFont());\n if (label5Font != null) label5.setFont(label5Font);\n label5.setText(\"Add New Tasks\");\n panel3.add(label5, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n Font label6Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label6.getFont());\n if (label6Font != null) label6.setFont(label6Font);\n label6.setText(\"Task\");\n panel3.add(label6, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskName = new JTextField();\n Font taskNameFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskName.getFont());\n if (taskNameFont != null) taskName.setFont(taskNameFont);\n panel3.add(taskName, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label7 = new JLabel();\n Font label7Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label7.getFont());\n if (label7Font != null) label7.setFont(label7Font);\n label7.setText(\"Estimated Completion Time (hours) \");\n panel3.add(label7, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n RemTime = new JTextField();\n Font RemTimeFont = this.$$$getFont$$$(\"Georgia\", -1, 14, RemTime.getFont());\n if (RemTimeFont != null) RemTime.setFont(RemTimeFont);\n panel3.add(RemTime, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label8 = new JLabel();\n Font label8Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label8.getFont());\n if (label8Font != null) label8.setFont(label8Font);\n label8.setText(\"Time Till Task is Due (hours)\");\n panel3.add(label8, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n relDeadline = new JTextField();\n Font relDeadlineFont = this.$$$getFont$$$(\"Georgia\", -1, 14, relDeadline.getFont());\n if (relDeadlineFont != null) relDeadline.setFont(relDeadlineFont);\n panel3.add(relDeadline, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n saveNewButton = new JButton();\n Font saveNewButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveNewButton.getFont());\n if (saveNewButtonFont != null) saveNewButton.setFont(saveNewButtonFont);\n saveNewButton.setText(\"Save New\");\n panel3.add(saveNewButton, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveExistingButton = new JButton();\n Font saveExistingButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveExistingButton.getFont());\n if (saveExistingButtonFont != null) saveExistingButton.setFont(saveExistingButtonFont);\n saveExistingButton.setText(\"Save Existing\");\n panel3.add(saveExistingButton, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearButton = new JButton();\n Font clearButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, clearButton.getFont());\n if (clearButtonFont != null) clearButton.setFont(clearButtonFont);\n clearButton.setText(\"Clear Form\");\n panel3.add(clearButton, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }", "@Test\n\tpublic void testPowerUpView_7()\n\t\tthrows Exception {\n\t\tGameObject gameObject = new PowerUp(new Point());\n\t\tGfxFactory gfxFactory = new GfxFactory();\n\n\t\tPowerUpView result = new PowerUpView(gameObject, gfxFactory);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.LogManager\n\t\t// at org.apache.log4j.Logger.getLogger(Logger.java:116)\n\t\t// at client.view.GfxFactory.<init>(GfxFactory.java:45)\n\t\tassertNotNull(result);\n\t}", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n assertFalse(intArray4.equals((Object)intArray2));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray1));\n \n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n intArray4[4] = 2;\n intArray4[5] = 0;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[0];\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray2));\n assertFalse(intArray5.equals((Object)intArray3));\n assertFalse(intArray5.equals((Object)intArray1));\n \n intArray0[4] = intArray5;\n int[] intArray6 = new int[3];\n assertFalse(intArray6.equals((Object)intArray2));\n assertFalse(intArray6.equals((Object)intArray5));\n assertFalse(intArray6.equals((Object)intArray3));\n assertFalse(intArray6.equals((Object)intArray1));\n assertFalse(intArray6.equals((Object)intArray4));\n \n intArray6[1] = 1;\n intArray6[2] = 2;\n intArray0[5] = intArray6;\n int[] intArray7 = new int[2];\n assertFalse(intArray7.equals((Object)intArray6));\n assertFalse(intArray7.equals((Object)intArray2));\n assertFalse(intArray7.equals((Object)intArray1));\n assertFalse(intArray7.equals((Object)intArray3));\n assertFalse(intArray7.equals((Object)intArray4));\n assertFalse(intArray7.equals((Object)intArray5));\n \n intArray7[0] = 1;\n intArray7[1] = 2;\n intArray0[6] = intArray7;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixSignificance0.setColHidden((-2541), false);\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixLatex0.getDefaultPrintColNames();\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean0);\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixGnuPlot0);\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertFalse(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertNotNull(resultMatrixSignificance1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n boolean boolean1 = resultMatrixLatex0.getDefaultPrintColNames();\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n boolean boolean2 = resultMatrixSignificance1.isSignificance(2);\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertFalse(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertEquals(50, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertNotSame(resultMatrixSignificance1, resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean2);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n assertTrue(boolean2 == boolean0);\n assertTrue(boolean2 == boolean1);\n }", "@Test(timeout = 4000)\n public void test029() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(2, 1);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setRowNameWidth((-1789));\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setRowNameWidth(353);\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(353, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n boolean boolean0 = resultMatrixHTML0.getShowAverage();\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(353, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n \n int int0 = 3;\n boolean boolean1 = resultMatrixPlainText0.isSignificance(3);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(boolean1);\n assertFalse(boolean1 == boolean0);\n \n int int1 = resultMatrixHTML0.getColCount();\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(353, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, int1);\n assertFalse(int1 == int0);\n \n int[] intArray2 = resultMatrixHTML0.getRowOrder();\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(353, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertNull(intArray2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int int2 = 4741;\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(116, 4741);\n }", "public void testPlugins() {\n final String PLUGIN_LABEL = \"JUnit\"; //NOI18N\n PluginsOperator pluginsOper = null;\n try {\n pluginsOper = PluginsOperator.invoke();\n pluginsOper.reloadCatalog();\n // Install\n\n pluginsOper.selectAvailablePlugins();\n pluginsOper.search(PLUGIN_LABEL);\n pluginsOper.install(PLUGIN_LABEL);\n\n // Deactivate\n\n pluginsOper.selectInstalled();\n try {\n pluginsOper.cbShowDetails().setSelected(true);\n } catch (JemmyException e) {\n log(\"Show Details check box not found - details already shown.\");\n }\n pluginsOper.selectPlugin(PLUGIN_LABEL);\n pluginsOper.deactivate();\n pluginsOper.installer().cancel();\n\n /* Because it needs restart to deactivate module (probably can be changed in \n * future releases), we skip this part.\n * \n // check Status line\n // \"Turning off modules...done.\"\n String turningOffLabel = Bundle.getString(\"org.netbeans.core.startup.Bundle\", \"MSG_finish_disable_modules\");\n // increase timeout to 120 seconds\n MainWindowOperator.getDefault().getTimeouts().setTimeout(\"Waiter.WaitingTime\", 120000);\n MainWindowOperator.getDefault().waitStatusText(turningOffLabel);\n // click Finish button\n String finishLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.autoupdate.ui.wizards.Bundle\", \"InstallUnitWizardModel_Buttons_Finish\");\n new JButtonOperator(installerOper, finishLabel).push();\n \n // Activate module\n \n pluginsOper.selectInstalled();\n pluginsOper.selectPlugin(PLUGIN_LABEL);\n pluginsOper.activate();\n // \"Activate\"\n String activateInDialogLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.autoupdate.ui.wizards.Bundle\", \"UninstallUnitWizardModel_Buttons_TurnOn\");\n new JButtonOperator(pluginsOper.installer(), activateInDialogLabel).pushNoBlock();\n // check Status line\n // \"Turning on modules...done.\"\n String turningOnLabel = Bundle.getString(\"org.netbeans.core.startup.Bundle\", \"MSG_finish_enable_modules\");\n // increase timeout to 120 seconds\n MainWindowOperator.getDefault().getTimeouts().setTimeout(\"Waiter.WaitingTime\", 120000);\n MainWindowOperator.getDefault().waitStatusText(turningOnLabel);\n // click Finish button\n pluginsOper.installer().finish();\n */\n\n pluginsOper.close();\n } catch (JemmyException e) {\n // close possible error dialog\n // \"Error\"\n String errorTitle = Bundle.getString(\"org.netbeans.modules.autoupdate.ui.Bundle\", \"CTL_Error\");\n if (JDialogOperator.findJDialog(errorTitle, true, true) != null) {\n new NbDialogOperator(errorTitle).close();\n }\n // close Plugins dialog\n if (pluginsOper != null) {\n pluginsOper.close();\n }\n throw e;\n }\n }", "protected void setUp() throws Exception {\r\n bundle = new BundleInfo();\r\n bundle.setBundle(\"sun.security.util.Resources_zh_CN\");\r\n bundle.setDefaultMessage(\"some message.\");\r\n bundle.setMessageKey(\"key\");\r\n validator = new MemberNotTeamMemberForProjectValidator(bundle);\r\n TestHelper.clearConfiguration();\r\n TestHelper.loadConfiguration(\"test_files/failure/validconfig.xml\");\r\n validator.setRegistrationValidator(new DataValidationRegistrationValidator());\r\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(13, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JLabel label1 = new JLabel();\n label1.setText(\"Connection re-express probability when crossed.\");\n contentPane.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n contentPane.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(12, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n contentPane.add(connectionReexpressSlider, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Mutation probability when crossed.\");\n contentPane.add(label2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPane.add(mutationWhenCrossedSlider, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Diff excess gene count factor.\");\n contentPane.add(label3, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(195, 22), null, 0, false));\n diffExcessFactorField = new FloatTextField();\n contentPane.add(diffExcessFactorField, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Diff disjoint gene count factor.\");\n contentPane.add(label4, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffDisjointFactorField = new FloatTextField();\n contentPane.add(diffDisjointFactorField, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Diff weight factor.\");\n contentPane.add(label5, new com.intellij.uiDesigner.core.GridConstraints(8, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffWeightFactorField = new FloatTextField();\n contentPane.add(diffWeightFactorField, new com.intellij.uiDesigner.core.GridConstraints(9, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Diff normalize gene count threshold.\");\n contentPane.add(label6, new com.intellij.uiDesigner.core.GridConstraints(10, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffNormalizeThresholdField = new IntTextField();\n contentPane.add(diffNormalizeThresholdField, new com.intellij.uiDesigner.core.GridConstraints(11, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n }", "public void projectManagerMenu() throws IOException, ClassNotFoundException {\n int choice;\n do {\n System.out.println(Constraint.ANSI_BLUE + \"\\n*** Project Manager Menu ***\\n\" + Constraint.ANSI_RESET +\n \"1. Set all Constraints & weightage\\n\" +\n \"2. Display Current Constraint\\n\" +\n \"3. Enter Personality of students\\n\" +\n \"4. Change Sign up status\\n\" +\n \"5. Discard Unpopular projects\\n\" +\n \"6. Display all projects\\n\" +\n \"7. Run Project Team formation\\n\" +\n \"8. Display Teams and their fitness\\n\" +\n \"9. Swap team members\\n\" +\n \"10. Logout\");\n choice = InputTools.intChecker(1, 10);\n\n Constraint constraint = new Constraint();\n\n switch (choice) {\n case 1:\n constraint.setAllConstraints();\n break;\n\n case 2:\n constraint.displayConstraints();\n break;\n\n case 3:\n enterStudentPersonalities();\n break;\n\n case 4:\n setSignUpStatus();\n break;\n\n case 5:\n try {\n Project.discardUnpopularProjects();\n } catch (ProjectMismatchException e) {\n e.getMessage();\n }\n break;\n\n case 6:\n displayAllProjects();\n break;\n\n case 7:\n if (projectsDiscarded == true) {\n if (Constraint.allSoftConstraints.isEmpty() == false) {\n createTeams();\n } else {\n System.out.println(\"\\n\\n You need to set weightage of constraints first.\");\n }\n }\n else\n System.out.println(\"\\n\\n You need to discard unpopular projects before creating teams.\");\n break;\n\n case 8:\n displayTeams();\n break;\n\n case 9:\n swapTeamMembers();\n break;\n\n case 10:\n mainMenu();\n break;\n }\n } while (choice != 10);\n }", "@Before\n public void setUp() throws Exception {\n driver = invokeCorrectBrowser();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n prop = new Properties();\t \n prop.load(new FileInputStream(\"./Configuration/CM_Configuration.properties\"));\n\tsAppURL = prop.getProperty(\"sAppURL\");\n\tsSharedUIMapPath = prop.getProperty(\"SharedUIMap\");\n\ttestDelay=prop.getProperty(\"testDelay\");\n\tprop.load(new FileInputStream(sSharedUIMapPath));\n }", "private void $$$setupUI$$$() {\n RG = new JPanel();\n RG.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(6, 6, new Insets(0, 0, 0, 0), -1, -1));\n RG.setOpaque(true);\n RG.setPreferredSize(new Dimension(348, 136));\n enrereButton = new JButton();\n enrereButton.setText(\"Enrere\");\n RG.add(enrereButton, new com.intellij.uiDesigner.core.GridConstraints(4, 2, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Nombre d'usuaris registrats:\");\n RG.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Nombre de partides jugades totals:\");\n RG.add(label2, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Jocs = new JLabel();\n Jocs.setText(\"Label\");\n RG.add(Jocs, new com.intellij.uiDesigner.core.GridConstraints(2, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Eljoc = new JLabel();\n Eljoc.setText(\"Label\");\n RG.add(Eljoc, new com.intellij.uiDesigner.core.GridConstraints(3, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Partides = new JLabel();\n Partides.setText(\"Label\");\n RG.add(Partides, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Usuaris = new JLabel();\n Usuaris.setText(\"Label\");\n RG.add(Usuaris, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Joc més popular:\");\n RG.add(label3, new com.intellij.uiDesigner.core.GridConstraints(3, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Nombre de jocs totals:\");\n RG.add(label4, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(0, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(2, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(3, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer7 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer7, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer8 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer8, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer9 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer9, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer10 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer10, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer11 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer11, new com.intellij.uiDesigner.core.GridConstraints(3, 5, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer12 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer12, new com.intellij.uiDesigner.core.GridConstraints(2, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer13 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer13, new com.intellij.uiDesigner.core.GridConstraints(1, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer14 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer14, new com.intellij.uiDesigner.core.GridConstraints(0, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer15 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer15, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer16 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer16, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer17 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer17, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer18 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer18, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer19 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer19, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 6, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "public interface UnitTestPropertiesEditionPart {\n\n\t/**\n\t * @return the locs\n\t * \n\t */\n\tpublic String getLocs();\n\n\t/**\n\t * Defines a new locs\n\t * @param newValue the new locs to set\n\t * \n\t */\n\tpublic void setLocs(String newValue);\n\n\n\t/**\n\t * @return the comments\n\t * \n\t */\n\tpublic String getComments();\n\n\t/**\n\t * Defines a new comments\n\t * @param newValue the new comments to set\n\t * \n\t */\n\tpublic void setComments(String newValue);\n\n\n\n\n\t/**\n\t * Init the anotations\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAnotations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the anotations\n\t * @param newValue the anotations to update\n\t * \n\t */\n\tpublic void updateAnotations();\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the anotations table\n\t * \n\t */\n\tpublic boolean isContainedInAnotationsTable(EObject element);\n\n\n\t/**\n\t * @return the weight\n\t * \n\t */\n\tpublic String getWeight();\n\n\t/**\n\t * Defines a new weight\n\t * @param newValue the new weight to set\n\t * \n\t */\n\tpublic void setWeight(String newValue);\n\n\n\t/**\n\t * @return the name\n\t * \n\t */\n\tpublic String getName();\n\n\t/**\n\t * Defines a new name\n\t * @param newValue the new name to set\n\t * \n\t */\n\tpublic void setName(String newValue);\n\n\n\t/**\n\t * @return the maxWeight\n\t * \n\t */\n\tpublic String getMaxWeight();\n\n\t/**\n\t * Defines a new maxWeight\n\t * @param newValue the new maxWeight to set\n\t * \n\t */\n\tpublic void setMaxWeight(String newValue);\n\n\n\n\n\t/**\n\t * Init the migRelations\n\t * @param settings settings for the migRelations ReferencesTable \n\t */\n\tpublic void initMigRelations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the migRelations\n\t * @param newValue the migRelations to update\n\t * \n\t */\n\tpublic void updateMigRelations();\n\n\t/**\n\t * Adds the given filter to the migRelations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToMigRelations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the migRelations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToMigRelations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the migRelations table\n\t * \n\t */\n\tpublic boolean isContainedInMigRelationsTable(EObject element);\n\n\n\t/**\n\t * @return the parentLayer\n\t * \n\t */\n\tpublic EObject getParentLayer();\n\n\t/**\n\t * Init the parentLayer\n\t * @param settings the combo setting\n\t */\n\tpublic void initParentLayer(EObjectFlatComboSettings settings);\n\n\t/**\n\t * Defines a new parentLayer\n\t * @param newValue the new parentLayer to set\n\t * \n\t */\n\tpublic void setParentLayer(EObject newValue);\n\n\t/**\n\t * Defines the button mode\n\t * @param newValue the new mode to set\n\t * \n\t */\n\tpublic void setParentLayerButtonMode(ButtonsModeEnum newValue);\n\n\t/**\n\t * Adds the given filter to the parentLayer edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToParentLayer(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the parentLayer edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToParentLayer(ViewerFilter filter);\n\n\n\t/**\n\t * @return the parentModule\n\t * \n\t */\n\tpublic EObject getParentModule();\n\n\t/**\n\t * Init the parentModule\n\t * @param settings the combo setting\n\t */\n\tpublic void initParentModule(EObjectFlatComboSettings settings);\n\n\t/**\n\t * Defines a new parentModule\n\t * @param newValue the new parentModule to set\n\t * \n\t */\n\tpublic void setParentModule(EObject newValue);\n\n\t/**\n\t * Defines the button mode\n\t * @param newValue the new mode to set\n\t * \n\t */\n\tpublic void setParentModuleButtonMode(ButtonsModeEnum newValue);\n\n\t/**\n\t * Adds the given filter to the parentModule edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToParentModule(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the parentModule edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToParentModule(ViewerFilter filter);\n\n\n\t/**\n\t * @return the originalFilePath\n\t * \n\t */\n\tpublic String getOriginalFilePath();\n\n\t/**\n\t * Defines a new originalFilePath\n\t * @param newValue the new originalFilePath to set\n\t * \n\t */\n\tpublic void setOriginalFilePath(String newValue);\n\n\n\t/**\n\t * @return the newFilePath\n\t * \n\t */\n\tpublic String getNewFilePath();\n\n\t/**\n\t * Defines a new newFilePath\n\t * @param newValue the new newFilePath to set\n\t * \n\t */\n\tpublic void setNewFilePath(String newValue);\n\n\n\t/**\n\t * @return the visibility\n\t * \n\t */\n\tpublic Enumerator getVisibility();\n\n\t/**\n\t * Init the visibility\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initVisibility(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new visibility\n\t * @param newValue the new visibility to set\n\t * \n\t */\n\tpublic void setVisibility(Enumerator newValue);\n\n\n\n\n\t/**\n\t * Init the attributes\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAttributes(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the attributes\n\t * @param newValue the attributes to update\n\t * \n\t */\n\tpublic void updateAttributes();\n\n\t/**\n\t * Adds the given filter to the attributes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAttributes(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the attributes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAttributes(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the attributes table\n\t * \n\t */\n\tpublic boolean isContainedInAttributesTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the methods\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initMethods(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the methods\n\t * @param newValue the methods to update\n\t * \n\t */\n\tpublic void updateMethods();\n\n\t/**\n\t * Adds the given filter to the methods edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToMethods(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the methods edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToMethods(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the methods table\n\t * \n\t */\n\tpublic boolean isContainedInMethodsTable(EObject element);\n\n\n\t/**\n\t * @return the inhertance\n\t * \n\t */\n\tpublic Enumerator getInhertance();\n\n\t/**\n\t * Init the inhertance\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initInhertance(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new inhertance\n\t * @param newValue the new inhertance to set\n\t * \n\t */\n\tpublic void setInhertance(Enumerator newValue);\n\n\n\n\n\t/**\n\t * Init the implements\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initImplements_(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the implements\n\t * @param newValue the implements to update\n\t * \n\t */\n\tpublic void updateImplements_();\n\n\t/**\n\t * Adds the given filter to the implements edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToImplements_(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the implements edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToImplements_(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the implements table\n\t * \n\t */\n\tpublic boolean isContainedInImplements_Table(EObject element);\n\n\n\t/**\n\t * @return the originalFileName\n\t * \n\t */\n\tpublic String getOriginalFileName();\n\n\t/**\n\t * Defines a new originalFileName\n\t * @param newValue the new originalFileName to set\n\t * \n\t */\n\tpublic void setOriginalFileName(String newValue);\n\n\n\t/**\n\t * @return the type\n\t * \n\t */\n\tpublic String getType();\n\n\t/**\n\t * Defines a new type\n\t * @param newValue the new type to set\n\t * \n\t */\n\tpublic void setType(String newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\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 }", "@Test(dataProvider=\"getTestData\")\n\tpublic void verifyCVProjestStatusDropdown(String Role) throws Exception\n\t{\n\t\tint noTestStepAvailableTagSize;\n\t\t\n\t\tcount++;\n\t\tcomments = \"\";\n\t\t\t\t\n\t\tif(!runmodes[count].equalsIgnoreCase(\"Y\"))\n\t\t{\n\t\t\tskip=true;\n\t\t\tAPP_LOGS.debug(\"Runmode for test set data no. \"+(count+1)+\" set to no.........So its skipping Test Set Data No.\"+(count+1));;\n\n\t\t\tthrow new SkipException(\"Runmode for test set data no. \"+(count+1)+\" set to no\");\n\n\t\t}\n\t\t\t\t\n\t\tAPP_LOGS.debug(\"Opening Browser...for user \"+Role);\n\t\t\n\t\topenBrowser();\n\t\t\n\t\tisLoginSuccess = login(Role);\n\t\t\n\t\tif(isLoginSuccess)\n\t\t{\t\n\t\t\t\ttry\n\t\t\t\t{\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(Role.equalsIgnoreCase(\"Admin\") || Role.equalsIgnoreCase(\"Version Lead\") || Role.equalsIgnoreCase(\"Test Manager\")\n\t\t \t \t\t\t|| Role.equalsIgnoreCase(\"Stakeholder+Tester\") || Role.equalsIgnoreCase(\"Admin+Stakeholder\"))\n\t\t \t \t{\n\t\t \t \t\t//click on Stakeholder dashboard page\n\t\t\t\t\t\t\tgetElement(\"UAT_stakeholderDashboard_Id\").click();\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t \t \t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tAPP_LOGS.debug(\"Clicking On Test Management Tab \");\t\t\t\t\t \n\t\t\t\t\t getElement(\"UAT_testManagement_Id\").click();\n\t\t\t\t\t Thread.sleep(3000);\n\t\t\t\t\t \n\t\t\t\t\t String totalNumOfProject = getElement(\"Deletion_Project_TotalRecords\").getText();\n\t\t\t\t\t \n\t\t\t\t\t int projectsPerPage;\n\t\t\t\t\t \n\t\t\t\t\t int totalNumOfProjectInt = Integer.parseInt(totalNumOfProject);\n\t\t\t\t\t \n\t\t\t\t\t rows = totalNumOfProjectInt;// total records\n\t\t\t\t\t cols = 8; // hardcoaded \n\t\t\t\t\t \n\t\t\t\t\t projectDetails = new String[rows][cols];\n\t\t\t\t\t \n\t\t\t\t\t ArrayList<String> projectArrayList = new ArrayList<String>();\n\t\t\t\t\t \n\t\t\t\t\t int projectDetailsRowIndex = 0; \n\t\t\t\t\t \n\t\t\t\t\t do\n\t\t\t\t\t {\t\t\t\t\t \n\t\t\t\t\t\t projectsPerPage = getElement(\"ProjectViewAll_Table_Id\").findElements(By.xpath(\"tr\")).size();\n\t\t\t\t\t\t \n\t\t\t\t\t\t for (int j = 1; j <= projectsPerPage; j++) \n\t\t\t\t\t\t { \n\t\t\t\t\t\t \n\t\t\t\t\t\t\t getObject(\"ProjectViewAll_editProjectIcon1\", \"ProjectViewAll_editProjectIcon2\", j).click();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String groupName = new Select(getElement(\"ProjectCreateNew_groupDropDown_Id\")).getFirstSelectedOption().getText();\t\t\t\t\t \n\t\t\t\t\t\t\t String portfolioName = new Select(getElement(\"ProjectCreateNew_PortfolioDropDown_Id\")).getFirstSelectedOption().getText();\t\t\t\t\t \n\t\t\t\t\t\t\t String projectName = getElement(\"ProjectCreateNew_projectDropDown_Id\").getAttribute(\"value\");\t\t\t\t\t \n\t\t\t\t\t\t\t String versionName =getObject(\"ProjectCreateNew_versionTextField\").getAttribute(\"value\");\t\t\t\t\t \n\t\t\t\t\t\t\t String versionLead = getObject(\"ProjectCreateNew_versionLeadDisplayField\").getText();\t\t\t\t\t \n\t\t\t\t\t\t\t String endDate = getElement(\"ProjectCreateNew_endDateField_Id\").getAttribute(\"value\"); \n\t\t\t\t\t\t\t String startDate = getElement(\"ProjectCreateNew_startDateField_Id\").getAttribute(\"value\");\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t projectDetails[projectDetailsRowIndex][0]= groupName;//Group names \t\t\t\t\t \n\t\t\t\t\t\t\t projectDetails[projectDetailsRowIndex][1]= portfolioName;//Portfolio names \t\t\t\t\t \n\t\t\t\t\t\t\t projectDetails[projectDetailsRowIndex][2]= projectName;//project names ;\t\t\t\t\t \n\t\t\t\t\t\t\t projectDetails[projectDetailsRowIndex][3]= versionName;//Version ;\t\t\t\t\t \n\t\t\t\t\t\t\t projectDetails[projectDetailsRowIndex][4]= versionLead;//Version Lead names ;\t\t\t\t\t \n\t\t\t\t\t\t\t projectDetails[projectDetailsRowIndex][5]= endDate;//End Date names ; \n\t\t\t\t\t\t\t projectDetails[projectDetailsRowIndex][6]= startDate;//End Date names ; \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Thread.sleep(500);\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String projectNameToBeInArray = null; \t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t getElement(\"TM_testStepsTab_Id\").click(); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Thread.sleep(1500);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t if (!getObject(\"TestSteps_testPassTitleSelected\").getAttribute(\"title\").equals(\"No Test Pass\")) \n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t int numberOfTestPassInTestPassDropdown = eventfiringdriver.findElements(By.xpath(\"//ul[@id = 'tpul']/li\")).size();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t for (int k = 1; k <= numberOfTestPassInTestPassDropdown; k++) \n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t \t \t\tThread.sleep(500);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \t \t\tgetElement(\"Attachments_testPassDropDown_Id\").click();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \t \t\tThread.sleep(500);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \t \t\tgetObject(\"Attachment_testpassNameDDXpath1\", \"Attachments_xPath2_end\", k).click();\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t if (!(getElement(\"TestSteps_noTestStepAvailable_Text_Id\").getText().contains(\" No\"))) \n\t\t\t\t\t\t\t\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 if (getElement(\"TestStepsViewAll_table_Id\").isDisplayed()) \n\t\t\t\t\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 \tprojectNameToBeInArray = getObject(\"TestSteps_projectTitleSelected\").getAttribute(\"title\");\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t \t \tprojectArrayList.add(projectNameToBeInArray);\t\n\t\t\t\t\t\t\t\t\t\t \t \t\n\t\t\t\t\t\t\t\t\t\t \t \tString storeArraylist = projectArrayList.get(0);\n\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 projectDetails[projectDetailsRowIndex][7]= storeArraylist;\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t projectArrayList.clear();\n\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t \t \tbreak;\t\t\t\t\t \n\t\t\t\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\t\t\t \n\t\t\t\t\t\t\t\t }\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t }\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t getElement(\"TM_projectsTab_Id\").click();\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Thread.sleep(2500); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t projectDetailsRowIndex++; \t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t } \n\t\t\t\t\t \n\t\t\t\t\t } while (ifElementIsClickableThenClick(\"ProjectViewAll_NextLink\"));\n\t\t\t\t\t\n\t\t\t\t\t \t\t\t\t\t \n\t\t\t\t\t //click on Stakeholder dashboard page\n\t\t\t\t\t\tgetElement(\"UAT_stakeholderDashboard_Id\").click();\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\n\t\t\t\t\t\t//select All option from project status dropdown\n\t\t\t\t\t\tSelect projectStatusDD = new Select(getElement(\"StakeholderDashboard_projectStatusDropDown_Id\"));\n\t\t\t\t\t\tprojectStatusDD.selectByValue(\"All\");\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tnumOfProjectPresentInGrid = getElement(\"StakeholderDashboardConsolidatedView_projectGridTbody_Id\").findElements(By.xpath(\"tr\")).size();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif(numOfProjectPresentInGrid==0)\n\t\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\t\t\tnoTestStepAvailableTagSize = getElement(\"StakeholderDashboardConsolidatedView_statusPieChart_Id\").findElements(By.xpath(\"div/b\")).size();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(noTestStepAvailableTagSize==1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(compareStrings(resourceFileConversion.getProperty(\"StakeholderDashboardCV_noTestStepAvailableMsg\"), getElement(\"StakeholderDashboardConsolidatedView_statusPieChart_Id\").getText()))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"No Projects Available for 'All' filter criteria..verified 'No Test Steps Available!' message\");\n\t\t\t\t\t\t\t\t\t\tcomments+=\"No Projects Available for 'All' filter criteria..verified 'No Test Steps Available!' message.(Pass) \";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tfail=true;\n\t\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"'No Test Step Available' message not shown though no projects available for selected 'All' filter criteria\");\n\t\t\t\t\t\t\t\t\t\tcomments+=\"'No Test Step Available' message not shown though no projects available for selected 'All' filter criteria.(Fail) \";\n\t\t\t\t\t\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"'No Test Steps Available' message not shown\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(compareIntegers(projectDetails.length, numOfProjectPresentInGrid))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"Displayed project count \"+numOfProjectPresentInGrid+\" is same as projectDetails count \"+projectDetails.length+\".\");\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{\n\t\t\t\t\t\t\t\t\tfail=true;\n\t\t\t\t\t\t\t\t\tcomments += \"\\n Displayed project count \"+numOfProjectPresentInGrid+\" is same as projectDetails count \"+projectDetails.length+\".(Fail) \";\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"Displayed project count \"+numOfProjectPresentInGrid+\" is same as projectDetails count \"+projectDetails.length+\". Test case failed\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//verify projects for All option\n\t\t\t\t\t\t\tverifyProjectSection(projectDetails);\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\t//verify select filter, fiscal year, quarter checkboxes, active tester, execution bar graph, executed status count options\n\t\t\t\t\t\tverifyDropdownsAndActiveTesterFields();\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\t//verify projects for completed option of project status dropdown\n\t\t\t\t\t\tprojectStatusDD.selectByValue(\"Completed\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[][] completedProjectArray = getCompletedProjects(projectDetails);\n\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t\t\t\tnumOfProjectPresentInGrid = getElement(\"StakeholderDashboardConsolidatedView_projectGridTbody_Id\").findElements(By.xpath(\"tr\")).size();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(numOfProjectPresentInGrid==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnoTestStepAvailableTagSize = getElement(\"StakeholderDashboardConsolidatedView_statusPieChart_Id\").findElements(By.xpath(\"div/b\")).size();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(noTestStepAvailableTagSize==1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(compareStrings(resourceFileConversion.getProperty(\"StakeholderDashboardCV_noTestStepAvailableMsg\"), getElement(\"StakeholderDashboardConsolidatedView_statusPieChart_Id\").getText()))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"No Projects Available for 'Completed' filter criteria..verified 'No Test Steps Available!' message\");\n\t\t\t\t\t\t\t\t\t\tcomments+=\"No Projects Available for 'Completed' filter criteria..verified 'No Test Steps Available!' message.(Pass) \";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tfail=true;\n\t\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"'No Test Step Available' message not shown though no projects available for selected 'Completed' filter criteria\");\n\t\t\t\t\t\t\t\t\t\tcomments+=\"'No Test Step Available' message not shown though no projects available for selected 'Completed' filter criteria.(Fail) \";\n\t\t\t\t\t\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"'No Test Steps Available' message not shown\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(compareIntegers(completedProjectArray.length, numOfProjectPresentInGrid))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"Displayed project count \"+numOfProjectPresentInGrid+\" is same as completedProjectArray count \"+completedProjectArray.length+\".\");\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{\n\t\t\t\t\t\t\t\t\tfail=true;\n\t\t\t\t\t\t\t\t\tcomments += \"\\n Displayed project count \"+numOfProjectPresentInGrid+\" is same as completedProjectArray count \"+completedProjectArray.length+\".(Fail) \";\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"Displayed project count \"+numOfProjectPresentInGrid+\" is same as completedProjectArray count \"+completedProjectArray.length+\". Test case failed\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//verify projects for Completed option\n\t\t\t\t\t\t\t\tverifyProjectSection(completedProjectArray);\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//verify select filter, fiscal year, quarter checkboxes, active tester, execution bar graph, executed status count options\n\t\t\t\t\t\tverifyDropdownsAndActiveTesterFields();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//verify projects for active option of project status dropdown\n\t\t\t\t\t\tprojectStatusDD.selectByValue(\"Active\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//this array will collect all the projects which falls under current quarter and fiscal year\n\t\t\t\t\t String[][] activeProjectArray = getActiveProjects(projectDetails);\n\t\t\t\t\t \n\t\t\t\t\t numOfProjectPresentInGrid = getElement(\"StakeholderDashboardConsolidatedView_projectGridTbody_Id\").findElements(By.xpath(\"tr\")).size();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(numOfProjectPresentInGrid==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnoTestStepAvailableTagSize = getElement(\"StakeholderDashboardConsolidatedView_statusPieChart_Id\").findElements(By.xpath(\"div/b\")).size();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(noTestStepAvailableTagSize==1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(compareStrings(resourceFileConversion.getProperty(\"StakeholderDashboardCV_noTestStepAvailableMsg\"), getElement(\"StakeholderDashboardConsolidatedView_statusPieChart_Id\").getText()))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"No Projects Available for 'Active' filter criteria..verified 'No Test Steps Available!' message\");\n\t\t\t\t\t\t\t\t\t\tcomments+=\"No Projects Available for 'Active' filter criteria..verified 'No Test Steps Available!' message.(Pass) \";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tfail=true;\n\t\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"'No Test Step Available' message not shown though no projects available for selected 'Active' filter criteria\");\n\t\t\t\t\t\t\t\t\t\tcomments+=\"'No Test Step Available' message not shown though no projects available for selected 'Active' filter criteria.(Fail) \";\n\t\t\t\t\t\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"'No Test Steps Available' message not shown\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(compareIntegers(activeProjectArray.length, numOfProjectPresentInGrid))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"Displayed project count \"+numOfProjectPresentInGrid+\" is same as activeProjectArray count \"+activeProjectArray.length+\".\");\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{\n\t\t\t\t\t\t\t\t\tfail=true;\n\t\t\t\t\t\t\t\t\tcomments += \"\\n Displayed project count \"+numOfProjectPresentInGrid+\" is same as activeProjectArray count \"+activeProjectArray.length+\".(Fail) \";\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tAPP_LOGS.debug(\"Displayed project count \"+numOfProjectPresentInGrid+\" is same as activeProjectArray count \"+activeProjectArray.length+\". Test case failed\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//verify projects for Active option\n\t\t\t\t\t\t\t\tverifyProjectSection(activeProjectArray);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//verify select filter, fiscal year, quarter checkboxes, active tester, execution bar graph, executed status count options\n\t\t\t\t\t\tverifyDropdownsAndActiveTesterFields();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tprojectArrayList.clear();\n\t\t\t\t\t\tprojectDetails = null;\n\t\t\t\t\t\tprojectVersionArr = null;\n\t\t\t\t\t\tdisplayProjectArray=null;\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Throwable t)\n\t\t\t\t{\n\t\t\t\t\tt.printStackTrace();\n\t\t\t\t\tfail=true;\n\t\t\t\t\tAPP_LOGS.debug(\"Exception occured\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcloseBrowser();\n\t\t}\n\t\telse \n\t\t{\n\t\t\t\tAPP_LOGS.debug(\"Login Unsuccessfull for the user with role '\"+ Role+\"'.\");\n\t\t\t\tcomments+=\"Login Unsuccessfull for the user with role '\"+ Role+\"'.\";\n\t\t}\t\n\t}", "private void initializeProject() {\n newProject.setInputHandler(getProject().getInputHandler());\n \n Iterator iter = getBuildListeners();\n while (iter.hasNext()) {\n newProject.addBuildListener((BuildListener) iter.next());\n }\n \n if (output != null) {\n File outfile = null;\n if (dir != null) {\n outfile = FILE_UTILS.resolveFile(dir, output);\n } else {\n outfile = getProject().resolveFile(output);\n }\n try {\n out = new PrintStream(new FileOutputStream(outfile));\n DefaultLogger logger = new DefaultLogger();\n logger.setMessageOutputLevel(Project.MSG_INFO);\n logger.setOutputPrintStream(out);\n logger.setErrorPrintStream(out);\n newProject.addBuildListener(logger);\n } catch (IOException ex) {\n log(\"Ant: Can't set output to \" + output);\n }\n }\n-\n- getProject().initSubProject(newProject);\n-\n // set user-defined properties\n getProject().copyUserProperties(newProject);\n \n if (!inheritAll) {\n // set Java built-in properties separately,\n // b/c we won't inherit them.\n newProject.setSystemProperties();\n \n } else {\n // set all properties from calling project\n addAlmostAll(getProject().getProperties());\n }\n \n Enumeration e = propertySets.elements();\n while (e.hasMoreElements()) {\n PropertySet ps = (PropertySet) e.nextElement();\n addAlmostAll(ps.getProperties());\n }\n }", "@Test\n\tpublic void testGUIPanels() {\n\t\tfinal int RGB_GRAY = 238;\n\t\tColor defaultColor = new Color(RGB_GRAY, RGB_GRAY, RGB_GRAY);\n\n\t\tassertThat(window.requireEnabled());\n\t\tassertThat(window.requireVisible());\n\t\tassertThat(window.requireTitle(\"Parabolic shot!\"));\n\n\t\tassertThat(window.panel(\"Control panel\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Control panel\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireVisible());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireVisible());\n\n\t\tassertThat(window.panel(\"Information panel\").requireVisible());\n\t\tassertThat(window.panel(\"Information panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Information panel\").requireEnabled());\n\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireVisible());\n\t\tassertThat(window.panel(\"Parabolic shot panel\").background()\n\t\t\t\t.requireEqualTo(defaultColor));\n\t\tassertThat(window.panel(\"Parabolic shot panel\").requireEnabled());\n\t}", "void setWorkingProject(ProjectRepresentation projectRepresentation);", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setRowNameWidth(3);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixHTML0.getShowAverage();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean0);\n \n boolean boolean1 = resultMatrixPlainText0.isSignificance(0);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n int int0 = resultMatrixHTML0.getColCount();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, int0);\n \n int[] intArray2 = resultMatrixHTML0.getRowOrder();\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertNull(intArray2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1065, 1);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixCSV0.setMeanPrec(2);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String[][] stringArray0 = resultMatrixPlainText0.toArray();\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertNotNull(stringArray0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(3, stringArray0.length);\n \n String string0 = resultMatrixCSV0.getSummaryTitle(1);\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"b\", string0);\n \n String string1 = resultMatrixCSV0.toStringRanking();\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertNotNull(string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-ranking data not set-\", string1);\n assertFalse(string1.equals((Object)string0));\n \n double double0 = resultMatrixGnuPlot0.getAverage(554);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n \n resultMatrixPlainText0.assign(resultMatrixCSV0);\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(1065, resultMatrixPlainText0.getColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(1065, resultMatrixPlainText0.getVisibleColCount());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean2 = resultMatrixGnuPlot0.isAverage(0);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean2);\n assertTrue(boolean2 == boolean1);\n assertTrue(boolean2 == boolean0);\n }", "@Test(timeout = 4000)\n public void test042() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(3, 603);\n assertEquals(3, resultMatrixCSV0.getVisibleColCount());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(3, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(603, resultMatrixCSV0.getRowCount());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(603, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(1, 1);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot1.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot1.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixGnuPlot1.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot1.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot1.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot1.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot1.getShowAverage());\n assertFalse(resultMatrixGnuPlot1.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot1.meanPrecTipText());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot1.getDisplayName());\n assertTrue(resultMatrixGnuPlot1.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot1.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot1.globalInfo());\n assertFalse(resultMatrixGnuPlot1.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot1.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot1.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot1.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot1.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot1.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot1.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot1.getShowStdDev());\n assertFalse(resultMatrixGnuPlot1.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot1.significanceWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot1.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot1.getCountWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot1.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot1.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot1.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getColNameWidth());\n assertFalse(resultMatrixGnuPlot1.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot1.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot1.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot1.removeFilterNameTipText());\n assertNotNull(resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot1.equals((Object)resultMatrixGnuPlot0));\n \n resultMatrixGnuPlot0.setCount(1065, (-758.294832917));\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertNotSame(resultMatrixGnuPlot0, resultMatrixGnuPlot1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixGnuPlot0.equals((Object)resultMatrixGnuPlot1));\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixLatex resultMatrixLatex0 = null;\n try {\n resultMatrixLatex0 = new ResultMatrixLatex(1065, (-1));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "private ProjectMgr getPmNameTrueLoadActualProject() {\n ProjectMgr pm = null;\n try {\n pm = new ProjectMgr(\"Example\", true);\n\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n }\n\n IOException e;\n return pm;\n }", "public void addProj() {\n\t\tbtnAdd.click();\n\t}", "@Override\n public final void generateProject(@NotNull final Project project,\n @NotNull final VirtualFile baseDir,\n @NotNull final T settings,\n @NotNull final Module module) {\n if (settings == NO_SETTINGS) {\n // We are in Intellij Module and framework is implemented as project template, not facet.\n // See class doc for mote info\n configureProjectNoSettings(project, baseDir, module);\n return;\n }\n\n /*Instead of this method overwrite ``configureProject``*/\n\n // If we deal with remote project -- use remote manager to configure it\n final Sdk sdk = settings.getSdk();\n\n if (sdk instanceof PyLazySdk) {\n final Sdk createdSdk = ((PyLazySdk)sdk).create();\n settings.setSdk(createdSdk);\n if (createdSdk != null) {\n SdkConfigurationUtil.addSdk(createdSdk);\n }\n }\n\n final PyProjectSynchronizer synchronizer = sdk != null ? PyProjectSynchronizerProvider.getSynchronizer(sdk) : null;\n\n if (synchronizer != null) {\n // Before project creation we need to configure sync\n // We call \"checkSynchronizationAvailable\" until it returns success (means sync is available)\n // Or user confirms she does not need sync\n String userProvidedPath = settings.getRemotePath();\n while (true) {\n final String syncError = synchronizer.checkSynchronizationAvailable(new PySyncCheckCreateIfPossible(module, userProvidedPath));\n if (syncError == null) {\n break;\n }\n userProvidedPath = null; // According to checkSynchronizationAvailable should be cleared\n final String message =\n PyBundle.message(\"python.new.project.synchronization.not.configured.dialog.message\", syncError);\n if (Messages.showYesNoDialog(project,\n message,\n PyBundle.message(\"python.new.project.synchronization.not.configured.dialog.title\"),\n General.WarningDialog) == Messages.YES) {\n break;\n }\n }\n }\n\n configureProject(project, baseDir, settings, module, synchronizer);\n var statisticsInfo = settings.getInterpreterInfoForStatistics();\n if (statisticsInfo instanceof InterpreterStatisticsInfo interpreterStatisticsInfo) {\n PythonNewProjectWizardCollector.Companion.logPythonNewProjectGenerated(interpreterStatisticsInfo,\n PyStatisticToolsKt.getVersion(settings.getSdk()),\n this.getClass());\n }\n }", "public void store() {\n \n try {\n ProjectManager.mutex().writeAccess(new Mutex.ExceptionAction<Object>() {\n public Object run() {\n \n resolveProjectDependencies();\n \n // Some properties need special handling e.g. if the\n // property changes the project.xml files\n for(final PropertyInfo pi:properties.values()) {\n pi.encode();\n }\n \n final ProjectConfiguration configs[] = configHelper.getConfigurations().toArray(new ProjectConfiguration[0]);\n final HashSet<ProjectConfiguration> newConfigs = new HashSet<ProjectConfiguration>(Arrays.asList(devConfigs));\n for (int i=0; i<configs.length; i++) {\n if (!newConfigs.remove(configs[i])) {\n configHelper.removeConfiguration(configs[i]);\n }\n }\n for (ProjectConfiguration cfg:newConfigs) {\n configHelper.addConfiguration(cfg.getDisplayName());\n }\n \n \n // Reread the properties. It may have changed when\n // e.g. when setting references to another projects\n EditableProperties sharedProps = antProjectHelper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n EditableProperties privateProps = antProjectHelper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);\n\n // Set the changed properties\n for( final PropertyInfo pi:properties.values()) {\n final PropertyDescriptor pd = pi.getPropertyDescriptor();\n if (pd != null && pi.isModified()) {\n final String newValueEncoded = pi.getNewValueEncoded();\n if ( newValueEncoded != null ) {\n (pd.isShared() ? sharedProps : privateProps).setProperty( pd.getName(), newValueEncoded );\n } else {\n // remove property\n (pd.isShared() ? sharedProps : privateProps).remove(pd.getName());\n }\n }\n }\n \n // Store the property changes into the project\n antProjectHelper.putProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH, sharedProps);\n antProjectHelper.putProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH, privateProps);\n \n // Invoke this method to perform cyclic dependencies check and potentionally show warning dilalog\n CustomizerGeneral cg = new CustomizerGeneral();\n cg.initValues(J2MEProjectProperties.this, null);\n cg.getSortedSubprojectsList();\n \n //storing global default encoding by dcurrent project (see issue #97855)\n String enc = sharedProps.getProperty(DefaultPropertiesDescriptor.JAVAC_ENCODING);\n if (enc != null) FileEncodingQuery.setDefaultEncoding(Charset.forName(enc));\n \n // save the project under write lock\n try {\n ProjectManager.getDefault().saveProject(project);\n } catch (IOException ex) {\n ErrorManager.getDefault().notify(ex);\n }\n\n return null;\n }\n });\n } catch (MutexException e) {\n ErrorManager.getDefault().notify(e.getException());\n }\n \n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertNotNull(resultMatrixHTML0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixPlainText0.setRowNameWidth(3);\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixGnuPlot0.setCount(48, 1.7976931348623157E308);\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixLatex resultMatrixLatex0 = null;\n try {\n resultMatrixLatex0 = new ResultMatrixLatex((-490), (-436));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n double double0 = resultMatrixGnuPlot0.getStdDev(1766, 1766);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0.0, double0, 0.01);\n \n int[] intArray0 = new int[4];\n intArray0[0] = 2;\n resultMatrixGnuPlot0.setColOrder(intArray0);\n assertArrayEquals(new int[] {2, 0, 0, 0}, intArray0);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(4, intArray0.length);\n \n resultMatrixGnuPlot0.LOSS_STRING = \"\";\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n \n resultMatrixGnuPlot0.setMeanWidth((-310));\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixGnuPlot0.isAverage(110);\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n int[] intArray3 = new int[6];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n intArray0[3] = intArray3;\n int[] intArray4 = new int[0];\n assertFalse(intArray4.equals((Object)intArray1));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n \n intArray0[4] = intArray4;\n int[] intArray5 = new int[3];\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray2));\n assertFalse(intArray5.equals((Object)intArray3));\n \n intArray5[1] = 1;\n intArray5[2] = 0;\n intArray0[5] = intArray5;\n int[] intArray6 = new int[2];\n assertFalse(intArray6.equals((Object)intArray1));\n assertFalse(intArray6.equals((Object)intArray5));\n assertFalse(intArray6.equals((Object)intArray3));\n assertFalse(intArray6.equals((Object)intArray2));\n assertFalse(intArray6.equals((Object)intArray4));\n \n intArray6[0] = 1;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixPlainText0.setRowNameWidth(586);\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(586, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String[] stringArray0 = resultMatrixPlainText0.getOptions();\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(586, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertNotNull(stringArray0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(18, stringArray0.length);\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setGroundColor((-733));\n homeEnvironment0.setPhotoHeight(0);\n homeEnvironment0.setVideoFrameRate(0);\n PropertyChangeListener propertyChangeListener0 = mock(PropertyChangeListener.class, new ViolatedAssumptionAnswer());\n PropertyChangeListenerProxy propertyChangeListenerProxy0 = new PropertyChangeListenerProxy(\"Content isn't a JAR entry\", propertyChangeListener0);\n PropertyChangeListenerProxy propertyChangeListenerProxy1 = new PropertyChangeListenerProxy(\"Content isn't a JAR entry\", propertyChangeListenerProxy0);\n homeEnvironment0.setPhotoHeight(0);\n assertEquals(0, homeEnvironment0.getVideoFrameRate());\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyMuMvManageView() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether user is able to create a new view successfully and it gets reflected in the list\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\t \t\t\t\t\t \t \t\t\t\t \t \t\t\n\t\t.Addviewname(userProfile)\n\t\t.verifyLeadTabledata_AddnewViewAudit(userProfile)\n\t\t.AddnewUserslink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUser_Creation()\t\t\t\t\t\t \t \t\t\n\t\t.verifynewview(userProfile)\n\t\t.VerifyenterValidData_StandardUserdetails(userProfile);\n\t\tnew BgbRegistrationAction()\n\t\t.AddNewStdUserdata(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.verifyAuditTable(userProfile);\t\t\t\t \t \t\t\n\n\t}", "public void setUp() throws Exception {\n Config config = new Config();\n config.init(Usecase.DBPEDIA,\n Language.EN,\n new ArrayList<String>(Arrays.asList(\"qpP_P_I\")) //What is the height and weight of Michael Jordan?\n );\n qm = config.getPatternManager();\n\n }", "@Test(alwaysRun=true)\n public void addProject() {\n driver.findElement(By.xpath(\"//ul[contains(@class, 'nav-tabs')]//li[3]\")).click();\n assertThat(driver.getTitle(), equalTo(\"Manage Projects - MantisBT\"));\n //Click \"Create New Projects\" button\n driver.findElement(By.xpath(\"//form//button[contains(@class, 'btn-primary')]\")).click();\n //Check fields on the \"Add Project\" view\t\"Project Name Status Inherit Global Categories View Status Description\"\n List<String> expCategory = Arrays.asList(new String[]{\"* Project Name\", \"Status\", \"Inherit Global Categories\",\n \"View Status\", \"Description\"});\n List<WebElement> category = driver.findElements(By.className(\"category\"));\n List<String> actCategory = new ArrayList<>();\n for (WebElement categories : category) {\n actCategory.add(categories.getText());\n }\n assertThat(actCategory, equalTo(expCategory));\n //Fill Project inforamtion\n driver.findElement(By.id(\"project-name\")).sendKeys(\"SB\");\n driver.findElement(By.id(\"project-description\")).sendKeys(\"new one\");\n //Add project\n driver.findElement(By.xpath(\"//input[@value='Add Project']\")).click();\n //delete Created class\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n driver.findElement(By.xpath(\"//tr//a[contains(text(),'SB')]\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent ae) \n\t{\n\t\tif(ae.getActionCommand().equals(\"Create Project\"))\n\t\t{\n\t\t\tString s = null;\t\t\t\n\t\t\t\n\t\t\tif((s = viewProject.assignNameProjectDialog()) != null)\n\t\t\t{\n\t\t\t\tif(!modelProject.createProject(s))\n\t\t\t\t\tviewProject.errorDialog(\"Project already exists\");\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\t/* ***VERBOSE****/\n\t\t\t\t\tif (verbose) System.out.println(\"apro il LateralPanel con s=\"+s);\n\t\t\t\t\t/* ***VERBOSE****/\n\t\t\t\t\t\n\t\t\t\t\tviewProject.loadPanelLateral(s, null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\telse if(ae.getActionCommand().equals(\"Delete Project\"))\n\t\t{\n\t\t\tviewProject.deleteProjectDialog();\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Load Project\"))\n\t\t{\n\t\t\tString s = null;\n\t\t\t\n\t\t\tif((s = viewProject.loadProjectDialog()) != null)\n\t\t\t\tviewProject.loadPanelLateral(\n\t\t\t\t\t\ts.substring(0, s.length() - 4), modelProject.loadProject(s));\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Save Project\"))\n\t\t{\n\t\t\tmodelProject.saveProject();\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Load File\"))\n\t\t{\n\t\t\tString [] s = null;\n\t\t\t\n\t\t\tif((s = viewProject.loadFileDialog()) != null)\n\t\t\t\tmodelProject.addFileProject(s[1]);\n\t\t\t\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Delete Selected File\"))\n\t\t{\n\t\t\tint i = -1;\n\t\t\t\n\t\t\tif((i = viewProject.deleteSelectedFileDialog()) != 1)\n\t\t\t\tmodelProject.removeFileProject(i);\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Delete File\"))\n\t\t{\n\t\t\tint i = -1;\n\t\t\t\n\t\t\tif((i = viewProject.deleteFileDialog()) != 1){\n\n\t\t\t\t/* ***VERBOSE *** */\n\t\t\t\tif(verbose) System.out.println(\"Ho ricevuto i=\"+i);\n\n\t\t\t\t/* ***VERBOSE *** */\n\n\t\t\t\tmodelProject.removeFileProject(i);\n\t\t\t}\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Extract Commonalities\"))\n\t\t{\n\t\t\tviewProject.extractCommonalitiesdDialog();\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Extract Variabilities\"))\n\t\t{\n\t\t\tviewProject.extractVariabilitiesDialog();\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Select Commonalities\"))\n\t\t{\n\t\t\tviewProject.showFeaturesSelected(ViewPanelCentral.FeatureType.COMMONALITIES);\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Select Variabilities\"))\n\t\t{\n\t\t\tviewProject.showFeaturesSelected(ViewPanelCentral.FeatureType.VARIABILITIES);\n\t\t}\n\t\telse if(ae.getActionCommand().equals(\"Exit\"))\n\t\t{\n\t\t\tif(modelProject.readStateProject()[1])\n\t\t\t{\n\t\t\t\tif(viewProject.saveProjectDialog() == 0)\n\t\t\t\t{\n\t\t\t\t\tif(modelProject.readStateProject()[0])\n\t\t\t\t\t\tmodelProject.deleteProject();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tmodelProject.saveProject();\n\t\t\t}\n\t\t\tviewProject.closeProject();\n\t\t}\n\t\telse System.out.println(\"Unknown action: \"+ae.getActionCommand());\n\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n panel1.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n contentPane.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), 5, 5));\n scrollPane1.setViewportView(panel3);\n final JLabel label1 = new JLabel();\n label1.setFont(new Font(label1.getFont().getName(), Font.BOLD, label1.getFont().getSize()));\n label1.setText(\"mlocarna:\");\n panel3.add(label1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 4, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setBackground(new Color(-65485));\n label2.setFont(new Font(label2.getFont().getName(), Font.BOLD, label2.getFont().getSize()));\n label2.setOpaque(false);\n label2.setText(\"RNAsubopt:\");\n panel3.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n random_sample = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"5\");\n defaultComboBoxModel1.addElement(\"10\");\n defaultComboBoxModel1.addElement(\"15\");\n defaultComboBoxModel1.addElement(\"20\");\n random_sample.setModel(defaultComboBoxModel1);\n panel3.add(random_sample, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n useMlocarna = new JCheckBox();\n useMlocarna.setSelected(true);\n useMlocarna.setText(\"\");\n panel3.add(useMlocarna, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"suboptimal structures computed\");\n panel3.add(label3, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"use to compute the folding landscape \");\n panel3.add(label4, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "void createProject(IProjectDescription description, IProject proj,\n\t\t\tIProgressMonitor monitor) throws CoreException,\n\t\t\tOperationCanceledException {\n\t\ttry {\n\n\t\t\tmonitor.beginTask(\"\", 2000);\n\n\t\t\tproj.create(description, new SubProgressMonitor(monitor, 1000));\n\n\t\t\tif (monitor.isCanceled()) {\n\t\t\t\tthrow new OperationCanceledException();\n\t\t\t}\n\n\t\t\tproj.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(\n\t\t\t\t\tmonitor, 1000));\n\n\t\t\t/*\n\t\t\t * Okay, now we have the project and we can do more things with it\n\t\t\t * before updating the perspective.\n\t\t\t */\n\t\t\tIContainer container = (IContainer) proj;\n\n\t\t\t/* Add an XHTML file */\n\t\t\t/*addFileToProject(container, new Path(\"index.html\"),\n\t\t\t\t\tJ15NewModel.openContentStream(\"Welcome to \"\n\t\t\t\t\t\t\t+ proj.getName(),\"5\"),monitor);*/\n\n\t\t\t/* Create the admin folder */\n\t\t\tfinal IFolder adminFolder = container.getFolder(new Path(\"admin\"));\n\t\t\tadminFolder.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminModels = adminFolder.getFolder(new Path(\"models\"));\n\t\t\tadminModels.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminControllers = adminFolder.getFolder(new Path(\"controllers\"));\n\t\t\tadminControllers.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminViews = adminFolder.getFolder(new Path(\"views\"));\n\t\t\tadminViews.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminTables = adminFolder.getFolder(new Path(\"tables\"));\n\t\t\tadminTables.create(true, true, monitor);\n\t\t\t\n\t\t\t/* Create the site folder */\n\t\t\tfinal IFolder siteFolder = container.getFolder(new Path(\"site\"));\n\t\t\tsiteFolder.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder siteModels = siteFolder.getFolder(new Path(\"models\"));\n\t\t\tsiteModels.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder siteViews = siteFolder.getFolder(new Path(\"views\"));\n\t\t\tsiteViews.create(true, true, monitor);\n\n\t\t\tInputStream resourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\t\"templates/blank-html.template\");\n\n\t\t\t/* Add blank HTML Files */\n\t\t\t\n\t\t\t/* Admin Folders first */\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminModels.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminControllers.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminViews.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminTables.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\t/* Now the site folders */\n\t\t\taddFileToProject(container, new Path(siteFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(siteFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + siteModels.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\n\t\t\taddFileToProject(container, new Path(siteFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + siteViews.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\n\t\t\t/* All over! */\n\t\t} catch (IOException ioe) {\n\t\t\tIStatus status = new Status(IStatus.ERROR, \"J15Wizard\", IStatus.OK,\n\t\t\t\t\tioe.getLocalizedMessage(), null);\n\t\t\tthrow new CoreException(status);\n\t\t} finally {\n\t\t\tmonitor.done();\n\t\t}\n\t}", "private void $$$setupUI$$$() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(11, 3, new Insets(0, 0, 0, 0), -1, -1));\n bKillSession = new JButton();\n bKillSession.setText(\"Убить сессии\");\n rootPanel.add(bKillSession, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bGetAll = new JButton();\n bGetAll.setText(\"Получить график\");\n rootPanel.add(bGetAll, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bStartBS = new JButton();\n bStartBS.setText(\"Старт БС\");\n rootPanel.add(bStartBS, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bSetFreq = new JButton();\n bSetFreq.setText(\"Установить частоту\");\n rootPanel.add(bSetFreq, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n tfFreq = new JTextField();\n rootPanel.add(tfFreq, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n cbDefaultBS = new JCheckBox();\n cbDefaultBS.setSelected(true);\n cbDefaultBS.setText(\"Использовать БС из конфига\");\n rootPanel.add(cbDefaultBS, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n rootPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(7, 2, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n cbListMethods = new JComboBox();\n rootPanel.add(cbListMethods, new com.intellij.uiDesigner.core.GridConstraints(5, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Запускаемый метод:\");\n rootPanel.add(label1, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n rootPanel.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 4, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n lblParams = new JLabel();\n lblParams.setText(\"Label\");\n rootPanel.add(lblParams, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n bPause = new JButton();\n bPause.setText(\"Пауза\");\n panel1.add(bPause, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bStart = new JButton();\n bStart.setText(\"Старт\");\n panel1.add(bStart, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JSeparator separator1 = new JSeparator();\n rootPanel.add(separator1, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.assign((ResultMatrix) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "public abstract void setupMvpPresenter();", "public void propertiesChanged(AntProjectEvent ev) {\n }", "@Test(enabled = false)\n public void addPropertyInCompositionScreenTest() throws Exception {\n ResourceReqDetails vfMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());\n ResourceUIUtils.createVF(vfMetaData, getUser());\n\n ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();\n\n CompositionPage.showPropertiesAndAttributesTab();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = CompositionPage.getProperties().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n AssertJUnit.assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> CompositionPage.getProperties()));\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[2] = intArray2;\n int[] intArray3 = new int[6];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n intArray0[3] = intArray3;\n int[] intArray4 = new int[0];\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n assertFalse(intArray4.equals((Object)intArray1));\n \n intArray0[4] = intArray4;\n int[] intArray5 = new int[3];\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray2));\n assertFalse(intArray5.equals((Object)intArray3));\n \n intArray5[1] = 1;\n intArray5[2] = 2;\n intArray0[5] = intArray5;\n int[] intArray6 = new int[2];\n assertFalse(intArray6.equals((Object)intArray4));\n assertFalse(intArray6.equals((Object)intArray1));\n assertFalse(intArray6.equals((Object)intArray3));\n assertFalse(intArray6.equals((Object)intArray2));\n assertFalse(intArray6.equals((Object)intArray5));\n \n intArray6[0] = 1;\n intArray6[1] = 2;\n intArray0[6] = intArray6;\n resultMatrixGnuPlot0.setRanking(intArray0);\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(7, intArray0.length);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixLatex0.getDefaultPrintRowNames();\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertTrue(boolean0);\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n assertFalse(intArray4.equals((Object)intArray1));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n \n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n intArray4[4] = 2;\n intArray4[5] = 0;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[0];\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray3));\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray2));\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray6 = new int[0][5];\n assertFalse(intArray6.equals((Object)intArray0));\n \n // Undeclared exception!\n try { \n resultMatrixLatex0.setSummary(intArray6, intArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "@Test(timeout = 4000)\n public void test045() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray0[2] = intArray3;\n resultMatrixGnuPlot0.setShowAverage(false);\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String[][] stringArray0 = new String[1][5];\n String[] stringArray1 = new String[3];\n stringArray1[0] = \"\";\n stringArray1[1] = \"v\";\n stringArray1[2] = \"v\";\n stringArray0[0] = stringArray1;\n int int0 = resultMatrixGnuPlot0.getColSize(stringArray0, 1898, true, true);\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, int0);\n assertEquals(1, stringArray0.length);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n boolean boolean0 = resultMatrixLatex0.getEnumerateRowNames();\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(50, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixGnuPlot0);\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixPlainText0.m_RankingWins = intArray2;\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n \n int int1 = resultMatrixPlainText0.getDefaultSignificanceWidth();\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, int1);\n assertTrue(int1 == int0);\n \n int int2 = resultMatrixPlainText0.getDefaultRowNameWidth();\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(25, int2);\n assertFalse(int2 == int0);\n assertFalse(int2 == int1);\n }", "public void testGetProjectByName() throws Exception {\r\n ProjectData projectData = new ProjectData();\r\n projectData.setName(\"project1\");\r\n projectData.setDescription(\"des\");\r\n\r\n projectService.createProject(projectData);\r\n\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tProjectData pd = null;\r\n\t\tfor (int i = 0; i < 100; i++) {\r\n\t pd = projectService.getProjectByName(\"project1\", 1);\r\n\t\t}\r\n\t\tlong end = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Run getProjectByName used \" + (end - start) + \"ms\");\r\n\r\n assertEquals(\"The project data is wrong.\", pd.getDescription(), projectData.getDescription());\r\n assertEquals(\"The project data is wrong.\", pd.getName(), projectData.getName());\r\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(50, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertNotNull(resultMatrixHTML0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int int0 = 3;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixPlainText0.setRowNameWidth(3);\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setRowNameWidth(0);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n boolean boolean0 = resultMatrixHTML0.getShowAverage();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean0);\n \n boolean boolean1 = resultMatrixPlainText0.isSignificance(0);\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(boolean1);\n assertTrue(boolean1 == boolean0);\n \n int int1 = resultMatrixHTML0.getColCount();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, int1);\n assertFalse(int1 == int0);\n \n int[] intArray2 = resultMatrixHTML0.getRowOrder();\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertNull(intArray2);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixHTML0.setMeanPrec((-1));\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertTrue(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1065, 1);\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(1065, resultMatrixCSV0.getColCount());\n assertEquals(1065, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixGnuPlot0.setMeanWidth(1);\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.setPrintRowNames(false);\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String[][] stringArray0 = resultMatrixPlainText0.toArray();\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(3, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateRowNames());\n assertNotNull(stringArray0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(3, stringArray0.length);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(1, 3486);\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(5, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n servicesButton = new JButton();\n servicesButton.setText(\"Services management\");\n panel1.add(servicesButton, new GridConstraints(1, 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 surveysManagementButton = new JButton();\n surveysManagementButton.setText(\"Surveys management\");\n panel1.add(surveysManagementButton, 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 connectingAndResultsButton = new JButton();\n connectingAndResultsButton.setText(\"Conecting surveys to services\");\n panel1.add(connectingAndResultsButton, new GridConstraints(3, 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 final JLabel label1 = new JLabel();\n label1.setText(\"Choose option below\");\n panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n results = new JButton();\n results.setText(\"Browse the results\");\n panel1.add(results, new GridConstraints(4, 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 }", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 1000);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1000, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1000, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String string0 = resultMatrixGnuPlot0.colNameWidthTipText();\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1000, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1000, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertNotNull(string0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", string0);\n \n int[][] intArray0 = new int[0][0];\n double double0 = resultMatrixGnuPlot0.getCount(1000);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1000, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1000, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0.0, double0, 0.01);\n \n int int0 = resultMatrixGnuPlot0.getSignificance((-1831), (-2654));\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1000, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1000, resultMatrixGnuPlot0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, int0);\n \n resultMatrixGnuPlot0.setStdDevWidth(0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1000, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n }", "@Test\n\tpublic void testPowerUpView_6()\n\t\tthrows Exception {\n\t\tGameObject gameObject = new Player(new Point());\n\t\tGfxFactory gfxFactory = new GfxFactory();\n\n\t\tPowerUpView result = new PowerUpView(gameObject, gfxFactory);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NoClassDefFoundError: common.Actor\n\t\t// at java.lang.Class.getDeclaredConstructors0(Native Method)\n\t\t// at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)\n\t\t// at java.lang.Class.getConstructor0(Class.java:2885)\n\t\t// at java.lang.Class.getDeclaredConstructor(Class.java:2058)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.findConstructor(InstanceCreationExpression.java:572)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:452)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:449)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:745)\n\t\tassertNotNull(result);\n\t}", "@Test\n public void projectMetrics() {\n assertProjectMetrics(340, 161, 179, 78054, 28422, 49632);\n }", "@Test\n\tpublic void testControlPanelButtons() {\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\n\t\tfinal int DEFAULT_ANGLE = 45;\n\t\tfinal int NEW_HEIGHT = 50;\n\t\tfinal int NEW_VELOCITY = 100;\n\t\twindow.panel(\"Control panel\").textBox(\"Angle text field\").setText(\"-12\");\n\t\twindow.panel(\"Control panel\").button(\"Set angle\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getAngleSlider().getValue() == DEFAULT_ANGLE);\n\n\t\twindow.panel(\"Control panel\").textBox(\"Height text field\").setText(\"50\");\n\t\twindow.panel(\"Control panel\").button(\"Set height\").click();\n\t\tassertThat(\n\t\t\t\tgui.getControlPanel().getHeightSlider().getValue() == NEW_HEIGHT);\n\n\t\twindow.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.slideTo(NEW_VELOCITY);\n\t\tassertThat(gui.getControlPanel().getVelocityTextField().getText()\n\t\t\t\t.equals(\"\" + NEW_VELOCITY));\n\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Height slider\")\n\t\t\t\t.requireDisabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireDisabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Continue\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Angle text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Velocity text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").textBox(\"Height text field\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Angle slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").slider(\"Velocity slider\")\n\t\t\t\t.requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").slider(\"Height slider\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\")\n\t\t\t\t.checkBox(\"Show trajectories checkbox\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set height\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set angle\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Set velocity\").requireEnabled());\n\t\twindow.panel(\"Control panel\").button(\"Stop\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Stop\").requireEnabled());\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Control panel\").button(\"Stop\").text().equals(\"Stop\"));\n\t\tassertThat(window.panel(\"Control panel\").button(\"Shoot\").requireDisabled());\n\t\twindow.panel(\"Control panel\").button(\"Clear\").click();\n\t\tassertThat(window.panel(\"Control panel\").button(\"Clear\").requireEnabled());\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles().size() == 0);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors().size() == 0);\n\t\tfinal int EXPECTED_PROJECTILES = 3;\n\t\tfor (int i = 0; i < EXPECTED_PROJECTILES; ++i) {\n\t\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\t}\n\t\tassertThat(gui.getParabolicShotPanel().getProjectiles()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t\tassertThat(gui.getParabolicShotPanel().getProjectileColors()\n\t\t\t\t.size() == EXPECTED_PROJECTILES);\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n wrapperPanel = new JPanel();\n wrapperPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n wrapperPanel.setMinimumSize(new Dimension(640, 480));\n wrapperPanel.setPreferredSize(new Dimension(800, 600));\n boringPanel = new JPanel();\n boringPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n boringPanel.setInheritsPopupMenu(false);\n boringPanel.setMaximumSize(new Dimension(200, 2147483647));\n boringPanel.setMinimumSize(new Dimension(100, 174));\n boringPanel.setOpaque(false);\n boringPanel.setPreferredSize(new Dimension(150, 228));\n boringPanel.setRequestFocusEnabled(true);\n wrapperPanel.add(boringPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, new Dimension(100, -1), new Dimension(150, -1), new Dimension(200, -1), 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n boringPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n captionLabel = new JLabel();\n captionLabel.setText(\"Label\");\n boringPanel.add(captionLabel, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n numberOfLayersCaptionLabel = new JLabel();\n numberOfLayersCaptionLabel.setText(\"Label\");\n boringPanel.add(numberOfLayersCaptionLabel, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(82, 14), null, 0, false));\n numberOfLayersLabel = new JLabel();\n numberOfLayersLabel.setText(\"\");\n boringPanel.add(numberOfLayersLabel, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n matrixTextArea = new JTextArea();\n boringPanel.add(matrixTextArea, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(82, 50), null, 0, false));\n commitButton = new JButton();\n commitButton.setText(\"Button\");\n boringPanel.add(commitButton, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n graphPanel.setBackground(new Color(-1));\n graphPanel.setMinimumSize(new Dimension(530, 24));\n graphPanel.setOpaque(true);\n wrapperPanel.add(graphPanel, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JToolBar toolBar1 = new JToolBar();\n toolBar1.setFloatable(false);\n wrapperPanel.add(toolBar1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 20), null, 0, false));\n loadButton = new JButton();\n loadButton.setText(\"Button\");\n toolBar1.add(loadButton);\n }", "@Test\n public void f8DisplayParametersTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(1000);\n\n //select first asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n\n FlowPane models = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n VBox parameters = (VBox) scene.getRoot().lookup(\"#modelParameters\");\n\n int i;\n //Iterate through all the models and their parameters\n for (int j = 0; j < models.getChildren().size(); j++) {\n i = 0;\n clickOn(models.getChildren().get(j));\n\n if (j == 4) {\n scroll(90, VerticalDirection.UP);\n }\n\n while (i < parameters.getChildren().size()) {\n clickOn(parameters.getChildren().get(i++)).sleep(500);\n\n if (i == 10) {\n scroll(60, VerticalDirection.UP);\n }\n }\n }\n\n assertEquals(\"There should be 8 models\", 8, models.getChildren().size());\n assertNotNull(\"Parameters exist\", parameters);\n }", "@Test\n\tpublic void testInformationPanel() {\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Time\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y position\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"X velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Y velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Velocity\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(\n\t\t\t\twindow.panel(\"Information panel\").label(\"Max height\").requireEnabled());\n\t\tassertThat(window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t\twindow.panel(\"Control panel\").button(\"Shoot\").click();\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Time\").text()\n\t\t\t\t.equals(\" Time = 0.0 s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X position\").text()\n\t\t\t\t.equals(\" x = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y position\").text()\n\t\t\t\t.equals(\" y = 0 m\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"X velocity\").text()\n\t\t\t\t.equals(\" vx = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Y velocity\").text()\n\t\t\t\t.equals(\" vy = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Velocity\").text()\n\t\t\t\t.equals(\" v = 0 m/s\"));\n\t\tassertThat(!window.panel(\"Information panel\").label(\"Max height\").text()\n\t\t\t\t.equals(\" Max. height = 0 m\"));\n\t}", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }" ]
[ "0.6536652", "0.6437754", "0.6313175", "0.61740077", "0.59947896", "0.5793293", "0.571834", "0.5569838", "0.5562243", "0.555739", "0.5541912", "0.5498463", "0.5482939", "0.5480854", "0.54671454", "0.5402754", "0.5369772", "0.5334912", "0.5318374", "0.52628565", "0.5261669", "0.5251427", "0.5248374", "0.5231661", "0.52173805", "0.5184704", "0.51806235", "0.51758134", "0.5164737", "0.51528054", "0.5131353", "0.5127608", "0.5114165", "0.5114053", "0.51076156", "0.50896853", "0.50843954", "0.5073718", "0.5070015", "0.50681823", "0.5064781", "0.5059501", "0.5050241", "0.5035195", "0.50316066", "0.50313985", "0.50228435", "0.50192314", "0.50136995", "0.50056773", "0.49892935", "0.49870712", "0.49828666", "0.49814144", "0.4980379", "0.49769005", "0.49665397", "0.49512807", "0.4935692", "0.49325854", "0.49263513", "0.49223372", "0.49192467", "0.49149212", "0.49143568", "0.4913476", "0.49064076", "0.49021572", "0.48946357", "0.48926035", "0.48925185", "0.48853952", "0.4885149", "0.48833072", "0.48801386", "0.48737526", "0.48656422", "0.4863888", "0.48611164", "0.48601854", "0.4859144", "0.4857641", "0.48531288", "0.48512524", "0.48500726", "0.48445687", "0.4838462", "0.48378336", "0.4835835", "0.48325646", "0.48318788", "0.4830644", "0.4830152", "0.48293734", "0.4820442", "0.48193783", "0.48170826", "0.4815916", "0.4811054", "0.48087543" ]
0.8005123
0
Tests PropertiesPanelfirePropertyChangeEvent(ModelElement,PropertyKind,PropertyOperation,Object) for accuracy.
public void testFirePropertyChangeEvent() { ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock(); instance.addModelElementChangeListener(listener); instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, "accuracy"); assertTrue("Failed to fire the event.", listener.IsCalled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void propertyChange(PropertyChangeEvent evt) {\n \r\n }", "public void testPropertyChange() {\n System.out.println(\"propertyChange\");\n PropertyChangeEvent evt = null;\n Wizard instance = new Wizard();\n instance.propertyChange(evt);\n }", "public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }", "@Override\n \tpublic void propertyChange(PropertyChangeEvent arg0) {\n \t\t\n \t}", "PropertyChangeListener[] getPropertyChangeListeners();", "public void testAddModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to add the listener.\", listener.IsCalled());\n }", "public void modelPropertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "@Test\n public void testAddPropertyChangeListener() {\n // trivial\n }", "@Test\r\n\tpublic void testChangesNotification() throws Exception {\r\n\t\tfinal AdvancedExampleComponent component = new AdvancedExampleComponent();\r\n\t\tfinal XMLBasedPropertyContainer container = new XMLBasedPropertyContainer(XMLBasedPropertyProvider\r\n\t\t\t\t.getInstance().getMetaPropertiesSet(component.getClass()), component);\r\n\r\n\t\tIChangesNotifierMonitor monitorMock = createMock(IChangesNotifierMonitor.class);\r\n\r\n\t\tmonitorMock.objectChanged(same(container), isA(ObjectChangedEvent.class));\r\n\t\texpectLastCall().once();\r\n\r\n\t\treplay(monitorMock);\r\n\r\n\t\tcontainer.addMonitor(monitorMock);\r\n\t\t// Won't work, because \"intProperty\" is served by XMLSetterGetterProperty which doesn't support monitoring.\r\n\t\t// container.getProperty(\"intProperty\").setValue(3);\r\n\t\t// Works, because \"floatProperty\" is served by XMLFieldProperty which support monitoring.\r\n\t\tcontainer.getProperty(\"floatProperty\").setValue(3);\r\n\t\tverify(monitorMock);\r\n\r\n\t}", "protected void fireChangeEvent (ModelProperties prop)\n {\n\tJsimEvent evt;\n\tString\t SLASH = System.getProperty (\"file.separator\");\n\tString fname = System.getProperty (\"user.home\");\n\tString xmlStr;\n\n\tif (use_xml) {\n try {\n Vector data = new Vector (); data.add (prop);\n if (generate_xml_files) {\n\t\t fname += SLASH + \"JSIM\" + SLASH + \"jsim\" + SLASH +\n\t\t\t\t\"jmessage\" + SLASH + \"change.xml\";\n\t\t xmlStr = XMLSerializer.serialize (data, fname);\n\t\t} else {\n\t\t xmlStr = XMLSerializer.serialize (data);\n\t\t}; // if\n } catch (Exception e) {\n trc.tell (\"fireChangeEvent\", e.getMessage ());\n e.printStackTrace ();\n return;\n }\n\t evt = new JsimEvent (this, EventMap.CHANGE_EVT, xmlStr);\n\t} else {\n\t evt = new JsimEvent (this, EventMap.CHANGE_EVT, prop);\n\t}; // if\n\n propCache = prop;\n\tfireJsimEvent (evt);\n \n }", "public PropertyChangeListener[] getPropertyChangeListeners();", "public void propertyChange(PropertyChangeEvent evt) {\r\n fireStateChanged();\r\n }", "private void FilterPropertyChanges(Object sender, PropertyChangedEventArgs e)\r\n {\r\n // check if this is the property of interest\r\n if (e.getPropertyValue(_propertyName)!= null)\r\n PropertyChanged();\r\n }", "void updatedProperty(TestResult tr, String name, String value);", "public void propertyChange(PropertyChangeEvent e) {\n\n logger.debug(LOG_TAG + \".propertyChangeListener()\");\n String propertyName = e.getPropertyName();\n\n switch(propertyName) {\n case \"progress\":\n logger.info(\"client progress: \" + e.getNewValue());\n\n break;\n case \"state\":\n StateValue stateValue = ((StateValue)e.getNewValue());\n logger.info(\"client state: \" + stateValue.toString());\n\n switch(stateValue) {\n case STARTED:\n\n break;\n case PENDING:\n\n break;\n case DONE:\n\n break;\n } // eof switch\n } // eof switch\n\n }", "protected void PropertyChanged()\r\n { }", "public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue) {\r\n\tgetPropertyChange().firePropertyChange(propertyName, oldValue, newValue);\r\n}", "public abstract void addPropertyChangeListener(IPropertyChangeListener listener);", "@Override\n public void propertyChange(final PropertyChangeEvent theEvent) {\n if (\"speed up\".equals(theEvent.getPropertyName())) {\n faster();\n } else if (\"change dimensions\".equals(theEvent.getPropertyName())) {\n myWidth = (int) theEvent.getOldValue();\n myHeight = (int) theEvent.getNewValue();\n } else if (\"update board\".equals(theEvent.getPropertyName())) {\n myGameMode = (String) theEvent.getOldValue();\n myBoard = (Board) theEvent.getNewValue();\n }\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "public void firePropertyChange(String propertyName, Object oldValue, Object newValue);", "public abstract void addPropertyChangeListener(PropertyChangeListener listener);", "protected void firePropertyChange( java.beans.PropertyChangeEvent evt ) {\n propertyChangeSupport.firePropertyChange( evt );\n }", "public void propertyChange(PropertyChangeEvent evt) {\n\t\t/*\n\t\t * String prop = evt.getPropertyName();\n\t\t * if(prop.equals(ConceptSelector.CONCEPT_SELECTED) && evt.getNewValue()\n\t\t * != null){ ReportDocument doc =\n\t\t * caseAuthor.getReportPanel().getReportDocument();\n\t\t * doc.clearBackground(); ConceptEntry entry = (ConceptEntry)\n\t\t * evt.getNewValue(); for(ConceptLabel lbl: entry.getLabels()){\n\t\t * lbl.setBackgroundColor(Color.yellow); lbl.update(doc); } }\n\t\t */\n\t}", "public void addPropertyChangeListener(PropertyChangeListener l);", "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n }", "public void propertyChange(PropertyChangeEvent e) {\n String name = e.getPropertyName();\n if (name.equals(\"stepnumber\")) { //$NON-NLS-1$\n if (trackerPanel.getSelectedTrack() == this) {\n displayWorldCoordinates();\n stepValueLabel.setText(e.getNewValue() + \":\"); //$NON-NLS-1$\n }\n } else if (name.equals(\"locked\")) { //$NON-NLS-1$\n xField.setEnabled(!isLocked());\n yField.setEnabled(!isLocked());\n } else super.propertyChange(e);\n }", "void addPropertyChangeListener(PropertyChangeListener listener);", "protected final void firePropertyChange(PropertyChangeEvent event) {\n PropertyChangeSupport aChangeSupport = this.changeSupport;\n if (aChangeSupport == null) {\n return;\n }\n aChangeSupport.firePropertyChange(event);\n }", "public void addListener(PropertyChangeListener listener, String propertyType);", "public void testRemoveModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void propertyChange(PropertyChangeEvent evt) {\n if(evt.getPropertyName().equals(\"position\")){\n// System.out.println(\"slider property change new val=\"+evt.getNewValue());\n sliderDontProcess=true;\n // note this cool semaphore/flag trick to avoid processing the\n // event generated when we programmatically set the slider position here\n playerSlider.setValue(Math.round(player.getFractionalPosition()*100));\n }else if(evt.getPropertyName().equals(\"readerStarted\")){\n log.info(\"MotionViewer.propertyChange: AEReader started, fixing device control menu\");\n // cypress reader started, can set device control for cypress usbio reader thread\n// fixDeviceControlMenuItems();\n }\n }", "void onChangeEvent(CarPropertyValue value);", "public void analyseRecentPropertyChanges() {\r\n\t\tboolean enableIndexGeneration = !isDeActivatedHovering();\r\n\t\tboolean requiresIndexGeneration = false;\r\n\t\tif (changedProperties.size() == 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tSet<String> keySet = changedProperties.keySet();\r\n\t\tfor (String property : keySet) {\r\n\r\n\t\t\t// If deactivated checkbox is changed\r\n\t\t\tif (property.equals(HoverConstants.PREFERENCE_DEACTIVATE_HOVERING)) {\r\n\t\t\t\tPropertyChangeEvent event = changedProperties\r\n\t\t\t\t\t\t.get(HoverConstants.PREFERENCE_DEACTIVATE_HOVERING);\r\n\t\t\t\tboolean deActivated = (Boolean) event.getNewValue();\r\n\t\t\t\tLogger.logDebug(\"DeActivated Old value\" + event.getOldValue()\r\n\t\t\t\t\t\t+ \" new value\" + event.getNewValue());\r\n\t\t\t\tif (deActivated) {\r\n\t\t\t\t\tHoverManager.getInstance().setEnabled(false);\r\n\t\t\t\t\tenableIndexGeneration = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tenableIndexGeneration = true;\r\n\t\t\t\t\trequiresIndexGeneration = true;\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// if active developer library item has changed\r\n\t\t\tif (property.equals(HoverConstants.PREFERENCE_DEV_LIB_LOC)) {\r\n\t\t\t\tPropertyChangeEvent event = changedProperties\r\n\t\t\t\t\t\t.get(HoverConstants.PREFERENCE_DEV_LIB_LOC);\r\n\t\t\t\tString oldValue = (String) event.getOldValue();\r\n\t\t\t\tString newValue = (String) event.getNewValue();\r\n\t\t\t\tif (oldValue.equals(newValue)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\trequiresIndexGeneration = true;\r\n\t\t\t\tLogger.logDebug(\"New index is generating. Old value\"\r\n\t\t\t\t\t\t+ event.getOldValue() + \" new value\"\r\n\t\t\t\t\t\t+ event.getNewValue());\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tLogger.logDebug(\"enableIndexGeneration:\" + enableIndexGeneration\r\n\t\t\t\t+ \" requiresIndexGeneration:\" + requiresIndexGeneration);\r\n\t\tif (enableIndexGeneration && requiresIndexGeneration) {\r\n\t\t\tLogger.logDebug(\"before gen index\");\r\n\t\t\tgenerateNewIndex();\r\n\t\t\tLogger.logDebug(\"after gen index\");\r\n\t\t}\r\n\r\n\t\tresetChangedProperties();\r\n\t}", "public void propertyChange(PropertyChangeEvent evt)\n/* */ {\n/* 76 */ CompoundPainter<?> painter = (CompoundPainter)this.ref.get();\n/* */ \n/* 78 */ if (painter == null) {\n/* 79 */ AbstractPainter<?> src = (AbstractPainter)evt.getSource();\n/* 80 */ src.removePropertyChangeListener(this);\n/* */ } else {\n/* 82 */ String property = evt.getPropertyName();\n/* */ \n/* 84 */ if ((\"dirty\".equals(property)) && (evt.getNewValue() == Boolean.FALSE)) {\n/* 85 */ return;\n/* */ }\n/* */ \n/* 88 */ painter.setDirty(true);\n/* */ }\n/* */ }", "public void propertyChange(PropertyChangeEvent ev) {\n\t\tif (ev.getPropertyName().equals(HPort.PROPERTY_BOUNDS)) this.refreshVisuals();\r\n\t//\tif (ev.getPropertyName().equals(IHProvidesPort.PROPERTY_COLOR)) this.refreshVisuals();\r\n\r\n\t\t\t\r\n\t}", "private static void usePropertyChangeListener() {\n SimpleStringProperty stringProperty = new SimpleStringProperty(\"xyz\");\n // Prints property's value\n System.out.println(stringProperty.getValue());\n // Adds a listener - action that will be run if property's value changes.\n stringProperty.addListener((observable, oldValue, newValue) -> {\n System.out.println(\"New value is set: \" + newValue);\n });\n // Sets new value\n stringProperty.setValue(\"Some new value\");\n }", "public void propertyChange(PropertyChangeEvent event) {\r\n\t\tString property = event.getPropertyName();\r\n\t\tif (\"bendpoint\".equals(property)) //$NON-NLS-1$\r\n\t\t\trefreshVisuals(); \r\n\t}", "public interface PropertyChangeListener<T>\n{\n /**\n * Callback function when there is a change in any property that starts with key\n * It's upto the implementation to handle the following different cases 1) key\n * is a simple key and does not have any children. PropertyStore.getProperty(key) must\n * be used to retrieve the value; 2) key is a prefix and has children.\n * PropertyStore.getPropertyNames(key) must be used to retrieve all the children keys.\n * Its important to know that PropertyStore will not be able to provide the\n * delta[old value,new value] or which child was added/deleted. The\n * implementation must take care of the fact that there might be callback for\n * every child thats added/deleted. General way applications handle this is\n * keep a local cache of keys and compare against the latest keys.\n * \n * @param key\n */\n void onPropertyChange(String key);\n}", "protected void do_utilityFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "public void executeEvent()\n {\n\t\tString name;\n\t\tdouble newValue;\n\n //searches through the list of properties\n for(Property property : propertyList)\n {\n name = property.getName();\n if(name.equals(propertyName))\n {\n newValue = property.getValue();\n\t\t\t\tnewValue *= INCREASE_RATE;\n\t\t\t\tproperty.setValue(newValue);\n }\n }\n }", "public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener) {\n }", "@Test\n public void testRemovePropertyChangeListener() {\n // trivial\n }", "public void providerStatusMessageChanged(PropertyChangeEvent evt);", "public void addPropertyChangeListener(PropertyChangeListener listener);", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListValuedObjectPropertyChange() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"not supported: \\n list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }", "Long handleEvent(Long renderedOpID, \n\t\t String propName,\n\t\t Object oldValue, \n\t\t Object newValue) throws RemoteException;", "void firePropertyChange() {\n java.util.Vector targets;\n synchronized (this) {\n if (listeners == null) {\n return;\n }\n targets = (java.util.Vector) listeners.clone();\n }\n\n PropertyChangeEvent evt = new PropertyChangeEvent(this, null, null, null);\n\n for (int i = 0; i < targets.size(); i++) {\n PropertyChangeListener target = (PropertyChangeListener)targets.elementAt(i);\n target.propertyChange(evt);\n }\n }", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n\n System.out.println(\"Customer \" + this.name + \" observed a change in \" +\n evt.getPropertyName() + \" of \" + evt.getSource());\n\n System.out.println(\n evt.getOldValue() + \" has changed to \" + evt.getNewValue() + \". \");\n\n System.out.println();\n }", "public void propertiesChanged(AntProjectEvent ev) {\n }", "public final void propertyChange(final PropertyChangeEvent event) {\n\t\tfinal Object subject = event.getSource();\n\t\tfinal String changedProperty = event.getProperty();\n\n\t\tif (PropertyChangeNames.isStatusChange(changedProperty)) {\n\t\t\tassert ModelUtils.isModelItem(subject);\n\n\t\t\tif (subject == deviceUnderDisplay) {\n\t\t\t\t// final DeviceStatus status = (DeviceStatus)\n\t\t\t\t// event.getNewValue();\n\t\t\t\tif (compositeUnderDisplay instanceof DeviceUI\n\t\t\t\t\t\t&& !compositeUnderDisplay.isDisposed()) {\n\t\t\t\t\t((DeviceUI) compositeUnderDisplay)\n\t\t\t\t\t\t\t.updateControls((Device) subject);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (PropertyChangeNames.isNodeRemove(changedProperty)) {\n\t\t\tViewUtils.disposeExistingControls(top);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t} else if (PropertyChangeNames.isProjectLoading(changedProperty)) {\n\t\t\t/*\n\t\t\t * Handle the change of the current project.\n\t\t\t */\n\t\t\tif (subject instanceof Project) {\n\t\t\t\tfinal Project project = (Project) subject;\n\t\t\t\tfinal NetworkInterfaceManager manager = project\n\t\t\t\t\t\t.getNetworkInterfaceManager();\n\n\t\t\t\tif (manager != null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the network status listener as a network monitor in\n\t\t\t\t\t * order to receive all the network events.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addConnectionStatusListener(connectionStatusListener);\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the dispatcher status listener to show warnings when\n\t\t\t\t\t * messages are not being delivered.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addDispatcherListener(dispatcherListener);\n\t\t\t\t}\n\n\t\t\t\tProjectModel.getInstance().addDeviceConnectivityListener(\n\t\t\t\t\t\tconnectivityChangeListener);\n\t\t\t}\n\n\t\t\tsetDeviceUnderDisplay(null);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t}\n\t}", "void addModelEventListener(PropertyChangeListener listener, Object modelelement);", "@Override\n public void propertyChange(PropertyChangeEvent e) {\n this.updateCoords();\n }", "void onPropertyChange(String name, String newValue);", "protected java.beans.PropertyChangeSupport getPropertyChange() {\r\n\tif (propertyChange == null) {\r\n\t\tpropertyChange = new java.beans.PropertyChangeSupport(this);\r\n\t};\r\n\treturn propertyChange;\r\n}", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "public void addPropertyChangeListener (PropertyChangeListener l)\n { pcs.addPropertyChangeListener (l); }", "void addPropertyListener(PropertyListener listener);", "@Test\r\n public void testListPropertyNotificationSingleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "public void propertiesChanged(String property, String value) {\n\t\tif(property != null) {\n \t\t\tFComponent comp = mainFrame.getSelectedComponent().getComponent();\n \t\t\tif(comp.getLabel() == null || !comp.getLabel().equals(value)) {\n \t\t\t\tcomp.setLabel(value);\n \t\t\t\tmainFrame.refreshPreview();\t\t\t\t\n \t\t\t}\n \t\t}\n \t}", "public void actionPerformed(PropertyChangeEvent afterEvent) {\n source.getEntity().removePropertyChangeListener(prop, this);\n \n // Re-add vetoable change and list change listeners to the parent\n parent.addVetoablePropertyChangeListener(vpcl);\n parent.addListChangeListener(listChangeListener());\n\n // Get the new value\n Entity newLeafEntity = getLeafEntity();\n Property newLeafProperty = getLeafProperty();\n\n Object newValue;\n if (newLeafEntity != null && newLeafProperty != null) {\n \n // Re-add the property change listener to the leaf entity\n newLeafEntity.getEntity().addPropertyChangeListener(newLeafProperty, pcl);\n newValue = newLeafEntity.getEntity().get(newLeafProperty);\n \n } else {\n newValue = null;\n }\n if (!Objects.equals(oldValue, newValue)) {\n // We need to explicitly fire the property change event\n // if the new value has changed, because otherwise we won't receive the event.\n listeners.fireActionEvent(new PropertyChangeEvent(newLeafEntity, newLeafProperty, oldValue, newValue));\n }\n \n\n\n }", "public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void propertyChange(PropertyChangeEvent e) {\n super.propertyChange(e);\n String name = e.getPropertyName();\n if (e.getSource() == paramEditor && name.equals(\"edit\")) { //$NON-NLS-1$\n initEditor.getTable().selectOnFocus = false;\n } else if (name.equals(\"angles_in_radians\") && model.trackerPanel != null) { //$NON-NLS-1$\n model.trackerPanel.getTFrame().setAnglesInRadians((Boolean) e.getNewValue());\n }\n }", "public void afterPropertyChange(T obj, String propertyName, Object oldValue, Object newValue);", "@Test\r\n public void testListPropertyNotificationMultipleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ChangeReport otherListener = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "public void propertyChange(PropertyChangeEvent e)\r\n {\r\n Object source = e.getSource();\r\n if (source == theNumberOfPolygonsField)\r\n {\r\n theNumberOfPolygons = ((Number)theNumberOfPolygonsField.getValue()).intValue();\r\n if (TRACE)\r\n System.out.println(\"Polygons: number of squares = \" + theNumberOfPolygons);\r\n }\r\n else if (source == theMaximumVertexCountField)\r\n {\r\n theMaximumVertexCount = ((Number)theMaximumVertexCountField.getValue()).intValue();\r\n if (TRACE)\r\n System.out.println(\"Polygons: maximum vertex count = \" + theMaximumVertexCount);\r\n }\r\n else if (source == theBBoxLengthField)\r\n {\r\n theBBoxLength = ((Number)theBBoxLengthField.getValue()).intValue();\r\n if (TRACE)\r\n System.out.println(\"Polygons: maximum side length = \" + theBBoxLength);\r\n }\r\n else if(source == theMinimumVertexCountField){\r\n \t theMinimumVertexCount = ((Number)theMinimumVertexCountField.getValue()).intValue();\r\n \t if (TRACE)\r\n System.out.println(\"Polygons: minimum vertex count = \" + theMinimumVertexCount);\r\n }\r\n }", "public void propertyChange(PropertyChangeEvent evt)\n {\n String propertyName = evt.getPropertyName();\n \n if (propertyName.equals(CallPeer.MUTE_PROPERTY_NAME))\n {\n boolean isMute = (Boolean) evt.getNewValue();\n \n renderer.setMute(isMute);\n \n // Update the state of the mute button.\n renderer.getCallDialog().updateMuteButtonState();\n }\n }", "protected void do_childSupportFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "@Test @Ignore\r\n public void testListPropertyNotificationDetails() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> lp = new SimpleListProperty<>(list);\r\n ListChangeListener l = c -> FXUtils.prettyPrint(c);\r\n LOG.info(\"change from listProperty: modifying list\");\r\n lp.addListener(l);\r\n LOG.info(\"set same element\");\r\n list.set(0, list.get(0));\r\n LOG.info(\"set same list\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with two changes\r\n LOG.info(\"remove two not subsequent\");\r\n list.removeAll(list.get(1), list.get(5)); \r\n LOG.info(\"retain all with complete list\");\r\n // fires nothing \r\n list.retainAll(createObservableList(true));\r\n LOG.info(\"setAll to initial\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with 3 changes of type remove\r\n list.retainAll(list.get(0), list.get(3), list.get(7));\r\n LOG.info(\"setall with new list\");\r\n list.setAll(\"one\", \"twoorwhat\");\r\n // fires one replaced event for each element \r\n UnaryOperator<String> op = p -> {\r\n if (p.length() > 3) return p;\r\n return p + 3;\r\n }; \r\n list.replaceAll(op); \r\n // fires setAll\r\n FXCollections.replaceAll(list, \"one\", \"other\");\r\n list.removeAll(\"one\", \"two\");\r\n LOG.info(\"reset ListProperty to initial list\");\r\n lp.set(createObservableList(true));\r\n }", "public void deepChange(PropertyChangeListener aListener, PropertyChangeEvent anEvent)\n{\n for(int i=0, iMax=getListenerCount(DeepChangeListener.class); i<iMax; i++)\n getListener(DeepChangeListener.class, i).deepChange(aListener, anEvent);\n}", "@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}", "public void addPropertyChangeListener (PropertyChangeListener l) {\n pcs.addPropertyChangeListener (l);\n }", "public void notifyChanged(final Notification msg) {\r\n\t super.notifyChanged(msg);\r\n\t \r\n\t if(msg.getFeature() == PropertiesPackage.Literals.PROPERTY__VALUE) {\r\n\t \tsetGUIAttributes();\r\n\t }\r\n\t }", "protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)\n/* */ {\n/* 291 */ if (\"text\".equals(propertyName)) {\n/* 292 */ super.firePropertyChange(propertyName, oldValue, newValue);\n/* */ }\n/* */ }", "protected void do_socialSecurityFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "public void propertyChange(final PropertyChangeEvent e) {\n if (JInternalFrame.IS_MAXIMUM_PROPERTY.equals(e.getPropertyName())\n || JInternalFrame.IS_ICON_PROPERTY.equals(e.getPropertyName())) {\n setButtonIcons();\n enableActions();\n } else if (e.getPropertyName().\n equals(StringConstants.INTERNAL_FRAME_ICONABLE_PROPERTY)) {\n updateButton(iconButton, frame.isIconifiable());\n } else if (e.getPropertyName().\n equals(StringConstants.INTERNAL_FRAME_MAXIMIZABLE_PROPERTY)) {\n updateButton(maxButton, frame.isMaximizable());\n } else if (e.getPropertyName().\n equals(StringConstants.INTERNAL_FRAME_CLOSABLE_PROPERTY)) {\n updateButton(closeButton, frame.isClosable());\n } else if (e.getPropertyName().\n equals(StringConstants.INTERNAL_FRAME_RESIZABLE_PROPERTY)) {\n enableActions();\n } else if (e.getPropertyName().equals(\"ancestor\")) {\n // to enable sizeAction, moveAction\n enableActions();\n revalidate();\n } else if (JInternalFrame.FRAME_ICON_PROPERTY.\n equals(e.getPropertyName())) {\n internals.setFrameIcon(frame.getFrameIcon());\n revalidate();\n repaint();\n } else if (JInternalFrame.TITLE_PROPERTY.\n equals(e.getPropertyName())) {\n revalidate();\n repaint();\n }\n }", "public void handleEvent(SimplePropertyEvent<S, D> event);", "public void propertyChange(java.beans.PropertyChangeEvent evt) {\r\n\t//\r\n\t// must listen to the following events:\r\n\t// this.simulationContext\r\n\t//\t\tsimulationContext.GeometryContext.geometry\r\n\t// simulationContext.GeometryContext.structureMappings\r\n\t// StructureMapping.resolved\r\n\t//\r\n\t// this.speciesContextSpec\r\n\t// SpeciesContextSpec.parameters\r\n\t// Parameter.*\r\n\t//\r\n\ttry {\t\t\r\n\t\t//\r\n\t\t// if geometry changes (could affect spatially resolved boundaries).\r\n\t\t//\r\n\t\tif (fieldSpeciesContextSpec != null && evt.getSource() == fieldSpeciesContextSpec.getSimulationContext().getGeometryContext() \r\n\t\t\t\t&& evt.getPropertyName().equals(\"geometry\")){\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\t//\r\n\t\t// if structureMappings array changes (could affect spatially resolved boundaries).\r\n\t\t//\r\n\t\tif (fieldSpeciesContextSpec != null && evt.getSource() == fieldSpeciesContextSpec.getSimulationContext().getGeometryContext() \r\n\t\t\t\t&& evt.getPropertyName().equals(\"structureMappings\")){\r\n\t\t\tStructureMapping[] oldStructureMappings = (StructureMapping[])evt.getOldValue();\r\n\t\t\tfor (int i = 0; oldStructureMappings!=null && i < oldStructureMappings.length; i++){\r\n\t\t\t\toldStructureMappings[i].removePropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t\tStructureMapping[] newStructureMappings = (StructureMapping[])evt.getNewValue();\r\n\t\t\tfor (int i = 0; newStructureMappings!=null && i < newStructureMappings.length; i++){\r\n\t\t\t\tnewStructureMappings[i].addPropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\t//\r\n\t\t// if structureMapping changes (could affect spatially resolved boundaries).\r\n\t\t//\r\n\t\tif (evt.getSource() instanceof StructureMapping){\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\t\r\n\t\tif (evt.getSource() == this && evt.getPropertyName().equals(\"speciesContextSpec\")) {\r\n\t\t\tSpeciesContextSpec oldValue = (SpeciesContextSpec)evt.getOldValue();\r\n\t\t\tif (oldValue!=null){\r\n\t\t\t\toldValue.removePropertyChangeListener(this);\r\n\t\t\t\tParameter oldParameters[] = oldValue.getParameters();\r\n\t\t\t\tif (oldParameters!=null) {\r\n\t\t\t\t\tfor (int i = 0; i<oldParameters.length; i++){\r\n\t\t\t\t\t\toldParameters[i].removePropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSimulationContext oldSimContext = oldValue.getSimulationContext();\r\n\t\t\t\tif (oldSimContext!=null){\r\n\t\t\t\t\toldSimContext.getGeometryContext().removePropertyChangeListener(this);\r\n\t\t\t\t\tStructureMapping[] oldStructureMappings = oldSimContext.getGeometryContext().getStructureMappings();\r\n\t\t\t\t\tif (oldStructureMappings!=null) {\r\n\t\t\t\t\t\tfor (int i = 0; i < oldStructureMappings.length; i++){\r\n\t\t\t\t\t\t\toldStructureMappings[i].removePropertyChangeListener(this);\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\tSpeciesContextSpec newValue = (SpeciesContextSpec)evt.getNewValue();\r\n\t\t\tif (newValue!=null){\r\n\t\t\t\tnewValue.addPropertyChangeListener(this);\r\n\t\t\t\tParameter newParameters[] = newValue.getParameters();\r\n\t\t\t\tif (newParameters != null) {\r\n\t\t\t\t\tfor (int i = 0; i < newParameters.length; i ++){\r\n\t\t\t\t\t\tnewParameters[i].addPropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSimulationContext newSimContext = newValue.getSimulationContext();\r\n\t\t\t\tif (newSimContext!=null){\r\n\t\t\t\t\tnewSimContext.getGeometryContext().addPropertyChangeListener(this);\r\n\t\t\t\t\tStructureMapping[] newStructureMappings = newSimContext.getGeometryContext().getStructureMappings();\r\n\t\t\t\t\tif (newStructureMappings != null) {\r\n\t\t\t\t\t\tfor (int i = 0; i < newStructureMappings.length; i++){\r\n\t\t\t\t\t\t\tnewStructureMappings[i].addPropertyChangeListener(this);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\tif (evt.getSource() instanceof SpeciesContextSpec){\r\n\t\t\t// if parameters changed must update listeners\r\n\t\t\tif (evt.getPropertyName().equals(\"parameters\")) {\r\n\t\t\t\tParameter oldParameters[] = (Parameter[])evt.getOldValue();\r\n\t\t\t\tif (oldParameters!=null) {\r\n\t\t\t\t\tfor (int i = 0;i<oldParameters.length; i++){\r\n\t\t\t\t\t\toldParameters[i].removePropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tParameter newParameters[] = (Parameter[])evt.getNewValue();\r\n\t\t\t\tif (newParameters!=null) {\r\n\t\t\t\t\tfor (int i = 0;i<newParameters.length; i++){\r\n\t\t\t\t\t\tnewParameters[i].addPropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!evt.getPropertyName().equals(SpeciesContextSpec.PARAMETER_NAME_PROXY_PARAMETERS)) {\r\n\t\t\t\t// for any change to the SpeciesContextSpec, want to update all.\r\n\t\t\t\t// proxy parameters don't affect table\r\n\t\t\t\trefreshData();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(evt.getSource() instanceof Parameter){\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t} catch (Exception e){\r\n\t\te.printStackTrace(System.out);\r\n\t}\r\n}", "@Override\n public void propertyChange(PropertyChangeEvent pce) {\n if (null == map) {\n return;\n }\n\n map.getOrDefault(pce.getPropertyName(), Collections.emptyList())\n .forEach(pcl -> pcl.propertyChange(pce));\n }", "public void addPropertyChangeListener(PropertyChangeListener listener)\n {\n }", "@Override\n\tpublic void propertyChange() {\n\t\tthis.apply();\n\t}", "public void testChangeListener() throws Exception\n {\n checkFormEventListener(CHANGE_BUILDER, \"CHANGE\");\n }", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n\tString change = evt.getPropertyName();\n\n\tif (change.equals(StateChanges.SAVE_OPERATION_FINISHED.toString())) {\n\t // Save operation finished. Sets text to \"Operation finished\"\n\t org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application\n\t\t .getInstance().getContext()\n\t\t .getResourceMap(FinishedViewPanel.class);\n\t operationFinishedLabel.setText(resourceMap\n\t\t .getString(\"operationFinishedLabel.text\"));\n\t} else if (change\n\t\t.equals(StateChanges.SAVE_OPERATION_ABORTED.toString())) {\n\t // Save operation aborted. Sets text to \"Operation aborted\"\n\t org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application\n\t\t .getInstance().getContext()\n\t\t .getResourceMap(FinishedViewPanel.class);\n\t operationFinishedLabel.setText(resourceMap\n\t\t .getString(\"operationFinishedLabel.alttext\"));\n\t}\n }", "protected java.beans.PropertyChangeSupport getPropertyChange() {\n\t\tif (propertyChange == null) {\n\t\t\tpropertyChange = new java.beans.PropertyChangeSupport(this);\n\t\t};\n\t\treturn propertyChange;\n\t}", "void onPropertyChange(String key);", "public void firePropertyChange(String p, Object a, Object b) {\n\n\t}", "void addPropertyCB(int property) {\n properties_[property].logNum++;\n properties_[property].logTotal++;\n }", "protected void do_foodStampsFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "@Override\n public void propertyChange( PropertyChangeEvent evt )\n {\n String propertyName = evt.getPropertyName();\n boolean recreate = propertyName.equals(\"*\");\n\n int ind = propertyName.lastIndexOf( '.' );\n String modifier = null;\n if ( ind > 0 )\n {\n modifier = propertyName.substring( ind );\n propertyName = propertyName.substring( 0, ind );\n }\n\n if ( modifier != null && ( modifier.equals( EventConstants.EVT_SET_VALUE ) ||\n modifier.equals( EventConstants.EVT_PROPERTY_ADDED ) ||\n modifier.equals( EventConstants.EVT_PROPERTY_REMOVED ) ) )\n {\n recreate = true;\n }\n\n Property p = componentModel.findProperty( propertyName );\n if( p instanceof CompositeProperty && !(p.isHideChildren()) )\n recreate = true;\n\n if ( p == null && !recreate)\n {\n return;\n }\n\n if ( (p instanceof SimpleProperty ) || ! recreate )\n {\n Point rows = getRowRange( p );\n if ( rows != null )\n {\n AbstractTableModel tm = ( AbstractTableModel )treeTable.getModel();\n tm.fireTableChanged( new TableModelEvent( tm, rows.x, rows.y ) );\n }\n }\n else\n {\n ComponentFactory.recreateChildProperties( p );\n if(treeTable != null)\n treeTable.updateUI();\n }\n\n }", "protected void do_tanfFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\tfillFields();\n\t}", "public void addPropertyChangeListener(PropertyChangeListener pListener) {\n \tmodel.addPropertyChangeListener(pListener);\n }", "@Test\r\n public void testAPIChange() {\r\n WithListValue<String> p = new WithListValue<>();\r\n Property<ObservableList<String>> property = p.itemsProperty();\r\n ChangeListener<? super ObservableList<String>> listener = new ChangeListener<ObservableList<String>>() {\r\n\r\n @Override\r\n public void changed(\r\n ObservableValue<? extends ObservableList<String>> observable,\r\n ObservableList<String> oldValue,\r\n ObservableList<String> newValue) {\r\n LOG.info(\"dummy dooo!\");\r\n \r\n }\r\n } ;\r\n \r\n property.addListener(listener);\r\n// ListProperty items = table.itemsProperty();\r\n }" ]
[ "0.7179296", "0.7002951", "0.69064456", "0.6853075", "0.6846215", "0.67858565", "0.6783299", "0.6722354", "0.67050093", "0.6702997", "0.6702997", "0.6688497", "0.6688101", "0.6652328", "0.66202664", "0.65732545", "0.6526317", "0.64315605", "0.6426567", "0.6423126", "0.63993347", "0.6308927", "0.6307102", "0.63053733", "0.6231161", "0.6217947", "0.6205984", "0.61847293", "0.61632025", "0.6158689", "0.61581886", "0.6152471", "0.6142604", "0.61384946", "0.6115225", "0.61092514", "0.61037886", "0.6088496", "0.6076252", "0.60658336", "0.6065348", "0.6060596", "0.6056465", "0.60455817", "0.60446763", "0.60378313", "0.6022568", "0.6009028", "0.6007466", "0.6004126", "0.60006845", "0.6000613", "0.59913117", "0.5990141", "0.5980411", "0.596613", "0.59645396", "0.59630007", "0.5961976", "0.5954579", "0.5942084", "0.5927318", "0.5924438", "0.59199816", "0.59181356", "0.58985823", "0.5893765", "0.5889407", "0.58593076", "0.58512795", "0.5851058", "0.5846421", "0.5844182", "0.58412486", "0.58409405", "0.5821427", "0.5817925", "0.58170575", "0.58151364", "0.5813364", "0.5809078", "0.57966876", "0.57878673", "0.5781066", "0.5774424", "0.57665044", "0.5765362", "0.57601845", "0.5749817", "0.5744126", "0.57401484", "0.5724273", "0.5716849", "0.5712269", "0.5695564", "0.5691532", "0.5690952", "0.56874573", "0.5683574", "0.5683506" ]
0.79309577
0
Tests PropertiesPanelfireSelectionChangeEvent(ModelElement) for accuracy.
public void testFireSelectionChangeEvent() { ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock(); instance.addModelElementSelectionListener(listener); instance.fireSelectionChangeEvent(new GuardImpl()); assertTrue("Failed to fire the event.", listener.IsCalled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAddModelElementSelectionListener() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "public void testFirePropertyChangeEvent() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "public void testAddModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to add the listener.\", listener.IsCalled());\n }", "public void testRemoveModelElementSelectionListener() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void testRemoveAllModelElementSelectionListeners() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeAllModelElementSelectionListeners();\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "private void fireSelectionChangeNotification () {\r\n\t\tif ( selectionChangeListener!=null)\r\n\t\t\tselectionChangeListener.execute();\r\n\t}", "@Test\r\n\tpublic final void testGetSelectedElement() {\r\n\t\tassertNull(listener.getSelectedElement());\r\n\t}", "@DISPID(-2147412032) //= 0x800117c0. The runtime will prefer the VTID if present\n @VTID(10)\n @ReturnValue(type=NativeType.VARIANT)\n java.lang.Object onselectionchange();", "public void testRemoveModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "@DISPID(-2147412032) //= 0x800117c0. The runtime will prefer the VTID if present\n @VTID(9)\n void onselectionchange(\n @MarshalAs(NativeType.VARIANT) java.lang.Object p);", "public void modelPropertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "public void selectionChanged(Selection selecton) {\r\n }", "public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "protected void checkSelectGesture(GraphicsNodeEvent evt) {\n\n\t\tGraphicsNodeMouseEvent mevt = null;\n\t\tif (evt instanceof GraphicsNodeMouseEvent) {\n\t\t\tmevt = (GraphicsNodeMouseEvent) evt;\n\t\t}\n\n\t\tGraphicsNode source = evt.getGraphicsNode();\n\t\tif (isDeselectGesture(evt)) {\n\t\t\tif (selectionNode != null) {\n\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t}\n\t\t\tclearSelection();\n\t\t} else if (mevt != null) {\n\n\t\t\tPoint2D p = mevt.getPoint2D();\n\n\t\t\tif ((source instanceof Selectable) && (isSelectStartGesture(evt))) {\n\t\t\t\tif (selectionNode != source) {\n\t\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t\tselectionNode = source;\n\t\t\t\t\tif (source != null) {\n\t\t\t\t\t\tselectionNodeRoot = source.getRoot();\n\t\t\t\t\t\tselectionNodeRoot.addTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t((Selectable) source).selectAt(p.getX(), p.getY());\n\t\t\t\tdispatchSelectionEvent(new SelectionEvent(null, SelectionEvent.SELECTION_STARTED, null));\n\n\t\t\t} else if (isSelectEndGesture(evt)) {\n\t\t\t\tif (selectionNode == source) {\n\t\t\t\t\t((Selectable) source).selectTo(p.getX(), p.getY());\n\t\t\t\t}\n\t\t\t\tObject oldSelection = getSelection();\n\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\tShape newShape;\n\t\t\t\t\tnewShape = ((Selectable) selectionNode).getHighlightShape();\n\t\t\t\t\tdispatchSelectionEvent(new SelectionEvent(oldSelection, SelectionEvent.SELECTION_DONE, newShape));\n\t\t\t\t}\n\t\t\t} else if (isSelectContinueGesture(evt)) {\n\n\t\t\t\tif (selectionNode == source) {\n\t\t\t\t\tboolean result = ((Selectable) source).selectTo(p.getX(), p.getY());\n\t\t\t\t\tif (result) {\n\t\t\t\t\t\tShape newShape = ((Selectable) selectionNode).getHighlightShape();\n\n\t\t\t\t\t\tdispatchSelectionEvent(new SelectionEvent(null, SelectionEvent.SELECTION_CHANGED, newShape));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if ((source instanceof Selectable) && (isSelectAllGesture(evt))) {\n\t\t\t\tif (selectionNode != source) {\n\t\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t\tselectionNode = source;\n\t\t\t\t\tif (source != null) {\n\t\t\t\t\t\tselectionNodeRoot = source.getRoot();\n\t\t\t\t\t\tselectionNodeRoot.addTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t((Selectable) source).selectAll(p.getX(), p.getY());\n\t\t\t\tObject oldSelection = getSelection();\n\t\t\t\tShape newShape = ((Selectable) source).getHighlightShape();\n\t\t\t\tdispatchSelectionEvent(new SelectionEvent(oldSelection, SelectionEvent.SELECTION_DONE, newShape));\n\t\t\t}\n\t\t}\n\t}", "static interface ElementSelectionListener {\n \n public void selectionChanged(MultiViewDescription oldOne, MultiViewDescription newOne);\n \n public void selectionActivatedByButton(MouseEvent e);\n \n public void selectionActivatedByButton(ActionEvent e);\n \n }", "@DISPID(200)\r\n public void selectionChanged() {\r\n throw new UnsupportedOperationException();\r\n }", "public boolean canSelectionChange() {\n return true;\n }", "@Override\n public void selectedSamplesChanged()\n {\n final List<ModelItem> items = model.getItems();\n final List<String> names = new ArrayList<>(items.size());\n final List<String> times = new ArrayList<>(items.size());\n final double[] values = new double[items.size()];\n int i=0;\n for (ModelItem item : items)\n {\n names.add(item.getResolvedDisplayName());\n final Optional<PlotDataItem<Instant>> sample = item.getSelectedSample();\n if (sample.isPresent())\n {\n times.add(TimestampFormats.MILLI_FORMAT.format(sample.get().getPosition()));\n values[i++] = sample.get().getValue();\n }\n else\n {\n times.add(\"-\");\n values[i++] = Double.NaN;\n }\n }\n final VType value = VTable.of(\n List.of(String.class, String.class, double.class),\n List.of(\"Trace\", \"Timestamp\", \"Value\"),\n List.of(names, times, ArrayDouble.of(values)));\n model_widget.propSelectionValue().setValue(value);\n }", "public void testPropertyChange() {\n System.out.println(\"propertyChange\");\n PropertyChangeEvent evt = null;\n Wizard instance = new Wizard();\n instance.propertyChange(evt);\n }", "@Test\n\tpublic void furtherSelectionTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\tint[] selection = { 1, 2, 3, 4, 5, 6 };\n\t\tint[] unSelecion = { 1, 2, 3 };\n\t\tint[] resultSelection = { 4, 5, 6 };\n\t\tint[] negativeSelection = { -1 };\n\n\t\t// select something and unselect parts of it\n\t\tselectionController.select(selection);\n\t\tassertArrayEquals(\"Selection was different\", selection, selectionController.getSelection());\n\t\tselectionController.unselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after unselection\", resultSelection,\n\t\t\t\tselectionController.getSelection());\n\n\t\t// do a reselection\n\t\tselectionController.reselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after reselection\", unSelecion, selectionController.getSelection());\n\n\t\tassertTrue(\"Item 1 is selected\", selectionController.isSelected(1));\n\t\tassertTrue(\"Item 2 is selected\", selectionController.isSelected(2));\n\t\tassertTrue(\"Item 3 is selected\", selectionController.isSelected(3));\n\t\tassertFalse(\"Item 4 is not selected\", selectionController.isSelected(4));\n\t\tassertFalse(\"Item 5 is not selected\", selectionController.isSelected(5));\n\t\tassertFalse(\"Item 6 is not selected\", selectionController.isSelected(6));\n\n\t\t// unselect all elements\n\t\tselectionController.unselect(unSelecion);\n\t\tassertFalse(\"Nothing was selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero\", 0, selectionController.getSelection().length);\n\n\t\t// select something negative\n\t\tselectionController.select(negativeSelection);\n\t\tassertFalse(\"Nothing should be selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after selection\", 0, selectionController.getSelection().length);\n\n\t\t// reselect something negative\n\t\tselectionController.select(selection);\n\t\tselectionController.reselect(negativeSelection);\n\t\tassertFalse(\"Nothing should be reselected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after reselection\", 0,\n\t\t\t\tselectionController.getSelection().length);\n\n\t}", "@Override\n \tpublic void valueChanged(ListSelectionEvent e) { \n \t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n \n \t\tif (!lsm.isSelectionEmpty()) {\n \t\t\tint selection = table.convertRowIndexToModel(getSelection(lsm));\n \t\t\tnotifySelectionListeners(list.getPackage(selection));\t\n \t\t}\n \t}", "@Override\r\n public void selectionRemoved(ChangeEvent e) {\n\r\n }", "public void propertyChange(PropertyChangeEvent evt) {\n \r\n }", "@Override\n\tpublic void selectionChanged(SelectionChangedEvent arg0) {\n\t\t\n\t}", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "@Override\n \tpublic void propertyChange(PropertyChangeEvent arg0) {\n \t\t\n \t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n currentRow = recordList.getSelectedIndex();\n setRowValues(currentRow, currentColumn);\n if (selectionAction == WAITING_ON_SELECTION) {\n selectionAction = SENDING_SELECTION;\n }\n if (selectionAction == SENDING_SELECTION) {\n selectionAction = FINISHED_SELECTION;\n cellNotifier.select(currentRow, currentColumn); // Notify GUI to select\n }\n \n \n }", "protected void selectionChanged(ITextSelection selection) {}", "public void selectionChanged(IAction action, ISelection selection) {\n }", "public void valueChanged (TreeSelectionEvent event)\n {\n updateSelection();\n }", "@Override\r\n public void selectionChanged(IAction action, ISelection selection) {\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement);", "@Test\n public void EffectSelectedEventTest() {\n EffectSelectedEvent event = null;\n boolean result = true;\n try {\n event = new EffectSelectedEvent(0, \"tony\", null, null);\n turnController.handleEvent(event);\n } catch(Exception e) {\n result = false;\n }\n assertTrue(result);\n\n }", "@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "public void valueChanged( TreeSelectionEvent e )\n {\n //throw new UnsupportedOperationException( \"Not supported yet.\" );\n }", "@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\n\t}", "@Subscribe\r\n\tpublic void onSelectExperiement(ExpressionDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\r\n\t}", "public void testChangeListener() throws Exception\n {\n checkFormEventListener(CHANGE_BUILDER, \"CHANGE\");\n }", "@MediumTest\n @Feature({ \"TextSelection\" })\n public void testEditableSelectionHandles() throws Throwable {\n doSelectionHandleTest(TestPageType.EDITABLE);\n }", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}", "@Test\r\n public void testShowRootNotificationItemsOn() {\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n ListChangeReport report = new ListChangeReport(getSelectedItems());\r\n getView().setShowRoot(true);\r\n assertEquals(\"selectedItems must not fire if nothing changed\", 0, report.getEventCount());\r\n }", "@Override\n public void propertyChange(final PropertyChangeEvent evt) {\n controller.selectUnit((AbstractUnit) evt.getNewValue());\n }", "@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0)\n\t{\n\t\t\n\t}", "void selectionModeChanged(SelectionMode mode);", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "public void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "public void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "@Override\r\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "@Ignore\n @Test\n public void It_should_selected_percent_correctly() {\n onView(allOf(\n withId(R.id.simple_percentage_bar_view_selected_linear_layout),\n isDescendantOfA(withId(R.id.simple_percentage_bar))))\n .check(matches(withText(SELECTED_VALUE)));\n }", "@Test\r\n public void testListPropertyNotificationSingleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "protected void fireChangeEvent (ModelProperties prop)\n {\n\tJsimEvent evt;\n\tString\t SLASH = System.getProperty (\"file.separator\");\n\tString fname = System.getProperty (\"user.home\");\n\tString xmlStr;\n\n\tif (use_xml) {\n try {\n Vector data = new Vector (); data.add (prop);\n if (generate_xml_files) {\n\t\t fname += SLASH + \"JSIM\" + SLASH + \"jsim\" + SLASH +\n\t\t\t\t\"jmessage\" + SLASH + \"change.xml\";\n\t\t xmlStr = XMLSerializer.serialize (data, fname);\n\t\t} else {\n\t\t xmlStr = XMLSerializer.serialize (data);\n\t\t}; // if\n } catch (Exception e) {\n trc.tell (\"fireChangeEvent\", e.getMessage ());\n e.printStackTrace ();\n return;\n }\n\t evt = new JsimEvent (this, EventMap.CHANGE_EVT, xmlStr);\n\t} else {\n\t evt = new JsimEvent (this, EventMap.CHANGE_EVT, prop);\n\t}; // if\n\n propCache = prop;\n\tfireJsimEvent (evt);\n \n }", "public void selectOneMenuListener(ValueChangeEvent event) {\n\t Object newValue = event.getNewValue(); \n\t //The rest of your processing logic goes here...\n\t}", "@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }", "private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}", "@Override\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\t}", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "public void onComponentSelection(){\r\n\r\n }", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n int selected = editpart.getSelected();\n if(selected != EditPart.SELECTED_NONE){\n editpart.setSelected(EditPart.SELECTED_NONE);\n editpart.setSelected(selected);\n }\n }", "public void valueChanged(TreeSelectionEvent e) {\n\t}", "public void selectionChanged(IAction action, ISelection selection) {\n\t}", "public interface SelectionListener {\n void selected();\n}", "public void selectionChanged(IAction action, ISelection selection) {\n\t\t\r\n\t}", "@Override\r\n public void valueChanged(TreeSelectionEvent e) {\n }", "public void selectionChanged(Action item);", "public EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object> getSelectionChangedEventNotifier() {\n return this.oiFitsCollectionManagerEventNotifierMap.get(OIFitsCollectionManagerEventType.SELECTION_CHANGED);\n }", "@Test\n public void testAddPropertyChangeListener() {\n // trivial\n }", "public void propertyChange(PropertyChangeEvent evt) {\n\t\t/*\n\t\t * String prop = evt.getPropertyName();\n\t\t * if(prop.equals(ConceptSelector.CONCEPT_SELECTED) && evt.getNewValue()\n\t\t * != null){ ReportDocument doc =\n\t\t * caseAuthor.getReportPanel().getReportDocument();\n\t\t * doc.clearBackground(); ConceptEntry entry = (ConceptEntry)\n\t\t * evt.getNewValue(); for(ConceptLabel lbl: entry.getLabels()){\n\t\t * lbl.setBackgroundColor(Color.yellow); lbl.update(doc); } }\n\t\t */\n\t}", "public void onSelectionChanged();", "@Override\n\tprotected void selectedProductChanged()\n\t{\n\t\tgetController().selectedProductChanged();\n\t}", "public boolean isSelectionChanged();", "public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }", "private void updateStateUiAfterSelection() {\n stageManager.updateStateUi();\n eventBus.publish(EventTopic.DEFAULT, EventType.SELECTED_OBJECT_CHANGED);\n eventManager.fireEvent(EngineEventType.SELECTED_OBJECT_CHANGED);\n }", "public void valueChanged(TreeSelectionEvent ev) {\n controller.removeSelectionListener(modelSelectionListener);\r\n controller.setSelectedFurniture(getSelectedFurniture());\r\n controller.addSelectionListener(modelSelectionListener);\r\n }", "void onChangeEvent(CarPropertyValue value);", "public void selectionChanged(IStructuredSelection selection) {\r\n\t\t\r\n\t\tsetEnabled(canOperateOn(selection));\r\n\t}", "private void handleTreeSelectionEvent( TreeSelectionEvent e )\n {\n int row = treeTable.getSelectedRow();\n int column = treeTable.getSelectedColumn();\n validateCell( row, column );\n\n\n TreePath path = e.getPath();\n Object node = path.getLastPathComponent();\n if( node instanceof Property )\n updateToolTipPane( (Property)node );\n }", "private void checkSelectable() {\n \t\tboolean oldIsSelectable = isSelectable;\n \t\tisSelectable = isSelectAllEnabled();\n \t\tif (oldIsSelectable != isSelectable) {\n \t\t\tfireEnablementChanged(SELECT_ALL);\n \t\t}\n \t}", "@Test\r\n public void testShowRootNotificationItemsAtRootOff() {\r\n getView().setShowRoot(true);\r\n getSelectionModel().select(0);\r\n ListChangeReport report = new ListChangeReport(getSelectedItems());\r\n getView().setShowRoot(false);\r\n assertTrue(getSelectedItems().contains(getSelectedItem()));\r\n assertEquals(\"selectedItems must have fired\", 1, report.getEventCount());\r\n }", "@Test\n public void selectReplacesSelectionOnlyOnce() throws Exception {\n ArgumentCaptor<Set> itemsCaptor = ArgumentCaptor.forClass(Set.class);\n\n // WHEN\n listView.select(Lists.newArrayList(A));\n verify(listener, only()).onItemSelection(itemsCaptor.capture());\n\n // THEN\n Set<?> items = itemsCaptor.getValue();\n assertThat(items, allOf(hasSize(1), contains(A)));\n }", "@Test\r\n public void testShowRootNotificationIndicesOn() {\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n ListChangeReport report = new ListChangeReport(getSelectedIndices());\r\n getView().setShowRoot(true);\r\n assertEquals(\"selectedIndices must fire\", 1, report.getEventCount());\r\n }", "@Test\r\n public void testListPropertyNotificationMultipleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ChangeReport otherListener = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "public ObjectProperty<MultipleSelectionModel<T>> selectionModelProperty() {\n return selectionModelProperty;\n }", "public final void propertyChange(final PropertyChangeEvent event) {\n\t\tfinal Object subject = event.getSource();\n\t\tfinal String changedProperty = event.getProperty();\n\n\t\tif (PropertyChangeNames.isStatusChange(changedProperty)) {\n\t\t\tassert ModelUtils.isModelItem(subject);\n\n\t\t\tif (subject == deviceUnderDisplay) {\n\t\t\t\t// final DeviceStatus status = (DeviceStatus)\n\t\t\t\t// event.getNewValue();\n\t\t\t\tif (compositeUnderDisplay instanceof DeviceUI\n\t\t\t\t\t\t&& !compositeUnderDisplay.isDisposed()) {\n\t\t\t\t\t((DeviceUI) compositeUnderDisplay)\n\t\t\t\t\t\t\t.updateControls((Device) subject);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (PropertyChangeNames.isNodeRemove(changedProperty)) {\n\t\t\tViewUtils.disposeExistingControls(top);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t} else if (PropertyChangeNames.isProjectLoading(changedProperty)) {\n\t\t\t/*\n\t\t\t * Handle the change of the current project.\n\t\t\t */\n\t\t\tif (subject instanceof Project) {\n\t\t\t\tfinal Project project = (Project) subject;\n\t\t\t\tfinal NetworkInterfaceManager manager = project\n\t\t\t\t\t\t.getNetworkInterfaceManager();\n\n\t\t\t\tif (manager != null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the network status listener as a network monitor in\n\t\t\t\t\t * order to receive all the network events.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addConnectionStatusListener(connectionStatusListener);\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the dispatcher status listener to show warnings when\n\t\t\t\t\t * messages are not being delivered.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addDispatcherListener(dispatcherListener);\n\t\t\t\t}\n\n\t\t\t\tProjectModel.getInstance().addDeviceConnectivityListener(\n\t\t\t\t\t\tconnectivityChangeListener);\n\t\t\t}\n\n\t\t\tsetDeviceUnderDisplay(null);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t}\n\t}", "@Test\n\tpublic void initialSelectionTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\tint[] selection = { 1, 2, 3, 4, 5, 6 };\n\t\tint[] emptySelecion = {};\n\n\t\t// do a selection\n\t\tselectionController.select(selection);\n\t\tassertArrayEquals(\"Selection was different\", selectionController.getSelection(), selection);\n\t\tassertTrue(\"There was something selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"Incorrect count of elements\", 6, selectionController.getSelectedCount());\n\n\t\t// reset the selection\n\t\tselectionController.reset();\n\t\tassertArrayEquals(\"Selection was different\", selectionController.getSelection(), emptySelecion);\n\t\tassertFalse(\"There was nothing selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"Incorrect count of elements\", 0, selectionController.getSelectedCount());\n\t}", "protected void onSelectionPerformed(boolean success) {\n }", "public void valueChanged(ListSelectionEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void selectionChanged(IWorkbenchPart part, ISelection selection) {\n\r\n\t}", "@Override\n\tpublic void selectionChanged(IAction arg0, ISelection arg1) {\n\n\t}", "protected void firePropertyChange( java.beans.PropertyChangeEvent evt ) {\n propertyChangeSupport.firePropertyChange( evt );\n }", "@Test\n public void tc_VerifySelectedValue_MemorizedValue() throws Exception\n {\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n // Set Value in \"Memory\"\n OKW_Memorize_Sngltn.getInstance().set( \"Key1\", \"The one and only Value\" );\n\n // Wert in \"All_MethodsObj\" setzen.\n EN.SetValue( \"All_MethodsObj\", \"The one and only Value\" );\n // Prüfung des Schlüsselwortes?\n EN.VerifySelectedValue( \"All_MethodsObj\", \"${Key1}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n //assertEquals( \"Wert 1\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifySelectedValue()\", myClipBoard.getMethod() );\n }", "PropertyChangeListener[] getPropertyChangeListeners();", "public abstract boolean hasSelection();", "protected void selectionChanged(IStructuredSelection selection) {\n \t}", "public void selectionChanged(SelectionChangedEvent event) {\n\t\t// System.out.println(event + \" on: \" + this);\n\t\tlastSelection = event.getSelection();\n\t\tif (keepSynched) {\n\t\t\tprocessSelection(lastSelection);\n\t\t}\n\t}", "protected void fireComponentSelected() {\n if(_listeners != null) {\n for(int i = _listeners.size() - 1; i >= 0; i--) {\n IComponentSelectionListener listener = (IComponentSelectionListener)_listeners.elementAt(i);\n listener.componentSelected(this);\n }\n }\n }", "@Test\n public void testRemovePropertyChangeListener() {\n // trivial\n }", "private void gListValueChanged(ListSelectionEvent e) {\n }", "protected void updateSelection ()\n {\n // find the selected node\n ConfigTreeNode node = _tree.getSelectedNode();\n\n // update the editor panel\n _epanel.removeChangeListener(ManagerPanel.this);\n try {\n ManagedConfig cfg = (node == null) ? null : node.getConfig();\n _epanel.setObject(cfg);\n _lastValue = (cfg == null) ? null : (ManagedConfig)cfg.clone();\n } finally {\n _epanel.addChangeListener(ManagerPanel.this);\n }\n\n // enable or disable the menu items\n boolean enable = (node != null);\n boolean writeable = !_readOnly;\n _exportConfigs.setEnabled(enable);\n _cut.setEnabled(enable && writeable);\n _copy.setEnabled(enable);\n _delete.setEnabled(enable && writeable);\n _findUses.setEnabled(enable);\n }" ]
[ "0.7016232", "0.6955182", "0.6457078", "0.6388004", "0.63733554", "0.62780213", "0.6245156", "0.62109894", "0.6131007", "0.61240226", "0.6064614", "0.5994746", "0.59395653", "0.5924166", "0.59100115", "0.5802235", "0.57843", "0.5780504", "0.57790875", "0.57789385", "0.5755432", "0.573208", "0.572703", "0.5721256", "0.5721073", "0.5715135", "0.57017314", "0.57007045", "0.56707454", "0.56627923", "0.56563455", "0.56562513", "0.56501764", "0.5644795", "0.56401145", "0.5632412", "0.56199056", "0.560895", "0.5601984", "0.5588661", "0.5586342", "0.5586342", "0.55840915", "0.5582158", "0.5579392", "0.5560634", "0.5545808", "0.55453634", "0.55453634", "0.5537725", "0.54965985", "0.5494701", "0.5481654", "0.54719234", "0.5460688", "0.54587036", "0.545102", "0.5448157", "0.5447679", "0.54366374", "0.54349947", "0.5426248", "0.5415144", "0.5413368", "0.54128665", "0.54109395", "0.540899", "0.54034483", "0.5402756", "0.53988385", "0.53960496", "0.53864133", "0.5380349", "0.5378546", "0.5376515", "0.5376206", "0.53687364", "0.53671074", "0.5364268", "0.535617", "0.5350849", "0.53467953", "0.534668", "0.5346394", "0.53374416", "0.5320297", "0.53154105", "0.53137505", "0.53086525", "0.5298862", "0.52896225", "0.52877253", "0.5282533", "0.5281913", "0.52761525", "0.52751213", "0.52724725", "0.52668464", "0.52631253", "0.5254027" ]
0.7688338
0
Tests PropertiesPaneladdModelElementChangeListener(ModelElementChangeListener) for accuracy.
public void testAddModelElementChangeListener() { ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock(); instance.addModelElementChangeListener(listener); instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, "accuracy"); assertTrue("Failed to add the listener.", listener.IsCalled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testFirePropertyChangeEvent() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "public void testRemoveModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "@Test\n public void testAddPropertyChangeListener() {\n // trivial\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement);", "@Test\r\n\tpublic void testChangesNotification() throws Exception {\r\n\t\tfinal AdvancedExampleComponent component = new AdvancedExampleComponent();\r\n\t\tfinal XMLBasedPropertyContainer container = new XMLBasedPropertyContainer(XMLBasedPropertyProvider\r\n\t\t\t\t.getInstance().getMetaPropertiesSet(component.getClass()), component);\r\n\r\n\t\tIChangesNotifierMonitor monitorMock = createMock(IChangesNotifierMonitor.class);\r\n\r\n\t\tmonitorMock.objectChanged(same(container), isA(ObjectChangedEvent.class));\r\n\t\texpectLastCall().once();\r\n\r\n\t\treplay(monitorMock);\r\n\r\n\t\tcontainer.addMonitor(monitorMock);\r\n\t\t// Won't work, because \"intProperty\" is served by XMLSetterGetterProperty which doesn't support monitoring.\r\n\t\t// container.getProperty(\"intProperty\").setValue(3);\r\n\t\t// Works, because \"floatProperty\" is served by XMLFieldProperty which support monitoring.\r\n\t\tcontainer.getProperty(\"floatProperty\").setValue(3);\r\n\t\tverify(monitorMock);\r\n\r\n\t}", "public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n }", "@Test\n public void testRemovePropertyChangeListener() {\n // trivial\n }", "PropertyChangeListener[] getPropertyChangeListeners();", "void addPropertyChangeListener(PropertyChangeListener listener);", "public abstract void addPropertyChangeListener(PropertyChangeListener listener);", "public void testPropertyChange() {\n System.out.println(\"propertyChange\");\n PropertyChangeEvent evt = null;\n Wizard instance = new Wizard();\n instance.propertyChange(evt);\n }", "public void modelPropertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "public void testChangeListener() throws Exception\n {\n checkFormEventListener(CHANGE_BUILDER, \"CHANGE\");\n }", "public void addPropertyChangeListener(PropertyChangeListener listener);", "public void addPropertyChangeListener(PropertyChangeListener l);", "public abstract void addPropertyChangeListener(IPropertyChangeListener listener);", "void addModelEventListener(UmlChangeListener listener, Object modelelement, String[] propertyNames);", "private static void usePropertyChangeListener() {\n SimpleStringProperty stringProperty = new SimpleStringProperty(\"xyz\");\n // Prints property's value\n System.out.println(stringProperty.getValue());\n // Adds a listener - action that will be run if property's value changes.\n stringProperty.addListener((observable, oldValue, newValue) -> {\n System.out.println(\"New value is set: \" + newValue);\n });\n // Sets new value\n stringProperty.setValue(\"Some new value\");\n }", "public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener) {\n }", "public void addPropertyChangeListener(PropertyChangeListener listener)\n {\n }", "default void addPropertyChangeListener(PropertyChangeListener listener)\r\n {\r\n }", "public void addPropertyChangeListener(PropertyChangeListener pListener) {\n \tmodel.addPropertyChangeListener(pListener);\n }", "@Test\r\n public void testListPropertyNotificationSingleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "@Override\n \tpublic void propertyChange(PropertyChangeEvent arg0) {\n \t\t\n \t}", "public PropertyChangeListener[] getPropertyChangeListeners();", "@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0)\n\t{\n\t\t\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\r\n\t}", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setGroundColor((-733));\n homeEnvironment0.setPhotoHeight(0);\n homeEnvironment0.setVideoFrameRate(0);\n PropertyChangeListener propertyChangeListener0 = mock(PropertyChangeListener.class, new ViolatedAssumptionAnswer());\n PropertyChangeListenerProxy propertyChangeListenerProxy0 = new PropertyChangeListenerProxy(\"Content isn't a JAR entry\", propertyChangeListener0);\n PropertyChangeListenerProxy propertyChangeListenerProxy1 = new PropertyChangeListenerProxy(\"Content isn't a JAR entry\", propertyChangeListenerProxy0);\n homeEnvironment0.setPhotoHeight(0);\n assertEquals(0, homeEnvironment0.getVideoFrameRate());\n }", "void addModelEventListener(UmlChangeListener listener, Object modelelement, String propertyName);", "@Override\n public void addPropertyChangeListener( String propertyName, PropertyChangeListener listener )\n {\n if( componentModel == null )\n return;\n\n if( propertyName==null )\n {\n componentModel.addPropertyChangeListener( listener );\n }\n else\n {\n Property prop = componentModel.findProperty( propertyName );\n if ( prop != null )\n {\n prop.addPropertyChangeListener( listener );\n }\n }\n }", "public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener listener) {\r\n\tgetPropertyChange().addPropertyChangeListener(listener);\r\n}", "void addChangeListener(PropertyChangeListener<? super R> listener);", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}", "@Test\r\n public void testListPropertyNotificationMultipleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ChangeReport otherListener = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "public void propertyChange(PropertyChangeEvent evt) {\n \r\n }", "public void addPropertyChangeListener (PropertyChangeListener l)\n { pcs.addPropertyChangeListener (l); }", "@Test @Ignore\r\n public void testListPropertyNotificationDetails() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> lp = new SimpleListProperty<>(list);\r\n ListChangeListener l = c -> FXUtils.prettyPrint(c);\r\n LOG.info(\"change from listProperty: modifying list\");\r\n lp.addListener(l);\r\n LOG.info(\"set same element\");\r\n list.set(0, list.get(0));\r\n LOG.info(\"set same list\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with two changes\r\n LOG.info(\"remove two not subsequent\");\r\n list.removeAll(list.get(1), list.get(5)); \r\n LOG.info(\"retain all with complete list\");\r\n // fires nothing \r\n list.retainAll(createObservableList(true));\r\n LOG.info(\"setAll to initial\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with 3 changes of type remove\r\n list.retainAll(list.get(0), list.get(3), list.get(7));\r\n LOG.info(\"setall with new list\");\r\n list.setAll(\"one\", \"twoorwhat\");\r\n // fires one replaced event for each element \r\n UnaryOperator<String> op = p -> {\r\n if (p.length() > 3) return p;\r\n return p + 3;\r\n }; \r\n list.replaceAll(op); \r\n // fires setAll\r\n FXCollections.replaceAll(list, \"one\", \"other\");\r\n list.removeAll(\"one\", \"two\");\r\n LOG.info(\"reset ListProperty to initial list\");\r\n lp.set(createObservableList(true));\r\n }", "void addClassModelEventListener(PropertyChangeListener listener, Object modelClass, String[] propertyNames);", "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener)\n {\n if (changes == null)\n {\n changes = new PropertyChangeSupport(this);\n }\n changes.addPropertyChangeListener(listener);\n }", "private void FilterPropertyChanges(Object sender, PropertyChangedEventArgs e)\r\n {\r\n // check if this is the property of interest\r\n if (e.getPropertyValue(_propertyName)!= null)\r\n PropertyChanged();\r\n }", "public void analyseRecentPropertyChanges() {\r\n\t\tboolean enableIndexGeneration = !isDeActivatedHovering();\r\n\t\tboolean requiresIndexGeneration = false;\r\n\t\tif (changedProperties.size() == 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tSet<String> keySet = changedProperties.keySet();\r\n\t\tfor (String property : keySet) {\r\n\r\n\t\t\t// If deactivated checkbox is changed\r\n\t\t\tif (property.equals(HoverConstants.PREFERENCE_DEACTIVATE_HOVERING)) {\r\n\t\t\t\tPropertyChangeEvent event = changedProperties\r\n\t\t\t\t\t\t.get(HoverConstants.PREFERENCE_DEACTIVATE_HOVERING);\r\n\t\t\t\tboolean deActivated = (Boolean) event.getNewValue();\r\n\t\t\t\tLogger.logDebug(\"DeActivated Old value\" + event.getOldValue()\r\n\t\t\t\t\t\t+ \" new value\" + event.getNewValue());\r\n\t\t\t\tif (deActivated) {\r\n\t\t\t\t\tHoverManager.getInstance().setEnabled(false);\r\n\t\t\t\t\tenableIndexGeneration = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tenableIndexGeneration = true;\r\n\t\t\t\t\trequiresIndexGeneration = true;\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// if active developer library item has changed\r\n\t\t\tif (property.equals(HoverConstants.PREFERENCE_DEV_LIB_LOC)) {\r\n\t\t\t\tPropertyChangeEvent event = changedProperties\r\n\t\t\t\t\t\t.get(HoverConstants.PREFERENCE_DEV_LIB_LOC);\r\n\t\t\t\tString oldValue = (String) event.getOldValue();\r\n\t\t\t\tString newValue = (String) event.getNewValue();\r\n\t\t\t\tif (oldValue.equals(newValue)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\trequiresIndexGeneration = true;\r\n\t\t\t\tLogger.logDebug(\"New index is generating. Old value\"\r\n\t\t\t\t\t\t+ event.getOldValue() + \" new value\"\r\n\t\t\t\t\t\t+ event.getNewValue());\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tLogger.logDebug(\"enableIndexGeneration:\" + enableIndexGeneration\r\n\t\t\t\t+ \" requiresIndexGeneration:\" + requiresIndexGeneration);\r\n\t\tif (enableIndexGeneration && requiresIndexGeneration) {\r\n\t\t\tLogger.logDebug(\"before gen index\");\r\n\t\t\tgenerateNewIndex();\r\n\t\t\tLogger.logDebug(\"after gen index\");\r\n\t\t}\r\n\r\n\t\tresetChangedProperties();\r\n\t}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "public void addPropertyChangeListener (PropertyChangeListener l) {\n pcs.addPropertyChangeListener (l);\n }", "void addPropertyListener(PropertyListener listener);", "void updatedProperty(TestResult tr, String name, String value);", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement);", "public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n\t}", "public void addListener(PropertyChangeListener listener, String propertyType);", "public void actionPerformed(PropertyChangeEvent afterEvent) {\n source.getEntity().removePropertyChangeListener(prop, this);\n \n // Re-add vetoable change and list change listeners to the parent\n parent.addVetoablePropertyChangeListener(vpcl);\n parent.addListChangeListener(listChangeListener());\n\n // Get the new value\n Entity newLeafEntity = getLeafEntity();\n Property newLeafProperty = getLeafProperty();\n\n Object newValue;\n if (newLeafEntity != null && newLeafProperty != null) {\n \n // Re-add the property change listener to the leaf entity\n newLeafEntity.getEntity().addPropertyChangeListener(newLeafProperty, pcl);\n newValue = newLeafEntity.getEntity().get(newLeafProperty);\n \n } else {\n newValue = null;\n }\n if (!Objects.equals(oldValue, newValue)) {\n // We need to explicitly fire the property change event\n // if the new value has changed, because otherwise we won't receive the event.\n listeners.fireActionEvent(new PropertyChangeEvent(newLeafEntity, newLeafProperty, oldValue, newValue));\n }\n \n\n\n }", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "public final void propertyChange(final PropertyChangeEvent event) {\n\t\tfinal Object subject = event.getSource();\n\t\tfinal String changedProperty = event.getProperty();\n\n\t\tif (PropertyChangeNames.isStatusChange(changedProperty)) {\n\t\t\tassert ModelUtils.isModelItem(subject);\n\n\t\t\tif (subject == deviceUnderDisplay) {\n\t\t\t\t// final DeviceStatus status = (DeviceStatus)\n\t\t\t\t// event.getNewValue();\n\t\t\t\tif (compositeUnderDisplay instanceof DeviceUI\n\t\t\t\t\t\t&& !compositeUnderDisplay.isDisposed()) {\n\t\t\t\t\t((DeviceUI) compositeUnderDisplay)\n\t\t\t\t\t\t\t.updateControls((Device) subject);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (PropertyChangeNames.isNodeRemove(changedProperty)) {\n\t\t\tViewUtils.disposeExistingControls(top);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t} else if (PropertyChangeNames.isProjectLoading(changedProperty)) {\n\t\t\t/*\n\t\t\t * Handle the change of the current project.\n\t\t\t */\n\t\t\tif (subject instanceof Project) {\n\t\t\t\tfinal Project project = (Project) subject;\n\t\t\t\tfinal NetworkInterfaceManager manager = project\n\t\t\t\t\t\t.getNetworkInterfaceManager();\n\n\t\t\t\tif (manager != null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the network status listener as a network monitor in\n\t\t\t\t\t * order to receive all the network events.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addConnectionStatusListener(connectionStatusListener);\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the dispatcher status listener to show warnings when\n\t\t\t\t\t * messages are not being delivered.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addDispatcherListener(dispatcherListener);\n\t\t\t\t}\n\n\t\t\t\tProjectModel.getInstance().addDeviceConnectivityListener(\n\t\t\t\t\t\tconnectivityChangeListener);\n\t\t\t}\n\n\t\t\tsetDeviceUnderDisplay(null);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t}\n\t}", "@Override\r\n public void rmValueListener(PropertyChangeListener l) {\n\r\n }", "public void addPropertyChangeListener(@NotNull PropertyChangeListener listener) {\n }", "@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListValuedObjectPropertyChange() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"not supported: \\n list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }", "public void deepChange(PropertyChangeListener aListener, PropertyChangeEvent anEvent)\n{\n for(int i=0, iMax=getListenerCount(DeepChangeListener.class); i<iMax; i++)\n getListener(DeepChangeListener.class, i).deepChange(aListener, anEvent);\n}", "public void testAddModelElementSelectionListener() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "void valueChanged(CalcModel model);", "void valueChanged(CalcModel model);", "private void addModelListeners() {\n this.home.addSelectionListener(new SelectionListener() {\n public void selectionChanged(SelectionEvent ev) {\n List<HomePieceOfFurniture> selectedFurniture = \n Home.getFurnitureSubList(home.getSelectedItems());\n if (selectedFurniture.isEmpty()) {\n leadSelectedPieceOfFurniture = null;\n } else if (leadSelectedPieceOfFurniture == null \n || selectedFurniture.size() == 1\n || selectedFurniture.indexOf(leadSelectedPieceOfFurniture) == -1) {\n leadSelectedPieceOfFurniture = selectedFurniture.get(0);\n }\n }\n });\n \n // Add listener to update base plan lock when furniture movability changes\n final PropertyChangeListener furnitureChangeListener = new PropertyChangeListener() {\n public void propertyChange(PropertyChangeEvent ev) {\n if (HomePieceOfFurniture.Property.MOVABLE.name().equals(ev.getPropertyName())) {\n // Remove non movable pieces from selection when base plan is locked \n HomePieceOfFurniture piece = (HomePieceOfFurniture)ev.getSource();\n if (home.isBasePlanLocked()\n && isPieceOfFurniturePartOfBasePlan(piece)) {\n List<Selectable> selectedItems = home.getSelectedItems();\n if (selectedItems.contains(piece)) {\n selectedItems = new ArrayList<Selectable>(selectedItems);\n selectedItems.remove(piece);\n home.setSelectedItems(selectedItems);\n }\n }\n }\n }\n };\n for (HomePieceOfFurniture piece : home.getFurniture()) {\n piece.addPropertyChangeListener(furnitureChangeListener);\n }\n this.home.addFurnitureListener(new CollectionListener<HomePieceOfFurniture> () {\n public void collectionChanged(CollectionEvent<HomePieceOfFurniture> ev) {\n if (ev.getType() == CollectionEvent.Type.ADD) {\n ev.getItem().addPropertyChangeListener(furnitureChangeListener);\n } else if (ev.getType() == CollectionEvent.Type.DELETE) {\n ev.getItem().removePropertyChangeListener(furnitureChangeListener);\n }\n }\n });\n }", "public void addPropertyChangeListener(PropertyChangeListener listener) {\n \tmPropertyChangeSupport.addPropertyChangeListener(listener);\n }", "@Override\n\tpublic void addPropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}", "protected void PropertyChanged()\r\n { }", "@Test\r\n public void testAPIChange() {\r\n WithListValue<String> p = new WithListValue<>();\r\n Property<ObservableList<String>> property = p.itemsProperty();\r\n ChangeListener<? super ObservableList<String>> listener = new ChangeListener<ObservableList<String>>() {\r\n\r\n @Override\r\n public void changed(\r\n ObservableValue<? extends ObservableList<String>> observable,\r\n ObservableList<String> oldValue,\r\n ObservableList<String> newValue) {\r\n LOG.info(\"dummy dooo!\");\r\n \r\n }\r\n } ;\r\n \r\n property.addListener(listener);\r\n// ListProperty items = table.itemsProperty();\r\n }", "void onPropertyChange(String name, String newValue);", "public abstract void addPropertyChangeListener(PropertyChangeListener listener, String kenaiHostUrl);", "public void propertyChange(PropertyChangeEvent e) {\n String name = e.getPropertyName();\n if (name.equals(\"stepnumber\")) { //$NON-NLS-1$\n if (trackerPanel.getSelectedTrack() == this) {\n displayWorldCoordinates();\n stepValueLabel.setText(e.getNewValue() + \":\"); //$NON-NLS-1$\n }\n } else if (name.equals(\"locked\")) { //$NON-NLS-1$\n xField.setEnabled(!isLocked());\n yField.setEnabled(!isLocked());\n } else super.propertyChange(e);\n }", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n modelToView(handle);\n }", "public interface PropertyChangeListener<T>\n{\n /**\n * Callback function when there is a change in any property that starts with key\n * It's upto the implementation to handle the following different cases 1) key\n * is a simple key and does not have any children. PropertyStore.getProperty(key) must\n * be used to retrieve the value; 2) key is a prefix and has children.\n * PropertyStore.getPropertyNames(key) must be used to retrieve all the children keys.\n * Its important to know that PropertyStore will not be able to provide the\n * delta[old value,new value] or which child was added/deleted. The\n * implementation must take care of the fact that there might be callback for\n * every child thats added/deleted. General way applications handle this is\n * keep a local cache of keys and compare against the latest keys.\n * \n * @param key\n */\n void onPropertyChange(String key);\n}", "void onChangeEvent(CarPropertyValue value);", "@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n AspectRatio aspectRatio0 = homeEnvironment0.getVideoAspectRatio();\n HomeEnvironment.Property homeEnvironment_Property0 = HomeEnvironment.Property.WALLS_ALPHA;\n PropertyChangeListener propertyChangeListener0 = mock(PropertyChangeListener.class, new ViolatedAssumptionAnswer());\n PropertyChangeListenerProxy propertyChangeListenerProxy0 = new PropertyChangeListenerProxy(\"eH]^40[h2\", propertyChangeListener0);\n PropertyChangeEvent propertyChangeEvent0 = new PropertyChangeEvent(homeEnvironment_Property0, \"eH]^40[h2\", (Object) null, homeEnvironment0);\n propertyChangeEvent0.setPropagationId(propertyChangeListenerProxy0);\n propertyChangeEvent0.toString();\n propertyChangeListenerProxy0.propertyChange(propertyChangeEvent0);\n PropertyChangeEvent propertyChangeEvent1 = new PropertyChangeEvent(propertyChangeListenerProxy0, \"{@sDvCJq(i\", aspectRatio0, \"eH]^40[h2\");\n propertyChangeEvent1.toString();\n propertyChangeListenerProxy0.propertyChange(propertyChangeEvent1);\n homeEnvironment0.addPropertyChangeListener(homeEnvironment_Property0, propertyChangeListenerProxy0);\n URL uRL0 = MockURL.getFtpExample();\n TemporaryURLContent temporaryURLContent0 = new TemporaryURLContent(uRL0);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"\", \"eH]^40[h2\", temporaryURLContent0, (-1942.4762F), 1805.02F, \"\", true);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n homeEnvironment0.setSkyTexture(homeTexture0);\n homeEnvironment0.setWallsAlpha((-1942.4762F));\n homeEnvironment0.setGroundColor(0);\n homeEnvironment0.getPhotoAspectRatio();\n homeEnvironment0.getGroundColor();\n HomeEnvironment.Property homeEnvironment_Property1 = HomeEnvironment.Property.WALLS_ALPHA;\n homeEnvironment0.removePropertyChangeListener(homeEnvironment_Property1, propertyChangeListenerProxy0);\n homeEnvironment0.getPhotoWidth();\n homeEnvironment0.setAllLevelsVisible(true);\n homeEnvironment0.setGroundColor(0);\n assertTrue(homeEnvironment0.isAllLevelsVisible());\n }", "void firePropertyChange() {\n java.util.Vector targets;\n synchronized (this) {\n if (listeners == null) {\n return;\n }\n targets = (java.util.Vector) listeners.clone();\n }\n\n PropertyChangeEvent evt = new PropertyChangeEvent(this, null, null, null);\n\n for (int i = 0; i < targets.size(); i++) {\n PropertyChangeListener target = (PropertyChangeListener)targets.elementAt(i);\n target.propertyChange(evt);\n }\n }", "public void propertyChange(PropertyChangeEvent evt)\n/* */ {\n/* 76 */ CompoundPainter<?> painter = (CompoundPainter)this.ref.get();\n/* */ \n/* 78 */ if (painter == null) {\n/* 79 */ AbstractPainter<?> src = (AbstractPainter)evt.getSource();\n/* 80 */ src.removePropertyChangeListener(this);\n/* */ } else {\n/* 82 */ String property = evt.getPropertyName();\n/* */ \n/* 84 */ if ((\"dirty\".equals(property)) && (evt.getNewValue() == Boolean.FALSE)) {\n/* 85 */ return;\n/* */ }\n/* */ \n/* 88 */ painter.setDirty(true);\n/* */ }\n/* */ }", "public void testFireSelectionChangeEvent() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "public void afterPropertyChange(T obj, String propertyName, Object oldValue, Object newValue);", "@Override\n public synchronized void addPropertyChangeListener(PropertyChangeListener listener) {\n if (listeners == null) {\n listeners = new PropertyChangeSupport(this);\n }\n listeners.addPropertyChangeListener(listener);\n }", "@Override\n public void propertyChange(PropertyChangeEvent e) {\n this.updateCoords();\n }", "@Override\n public void propertyChange(java.beans.PropertyChangeEvent ev) {\n fireInAWT(PROP_NODE_CHANGE, null, null);\n }", "@Test\n public void observeNote_whenSet() throws Exception {\n// Arrange\n Note note = new Note(TestUtil.TEST_NOTE_1);\n LiveDataTestUtil<Note> liveDataTestUtil = new LiveDataTestUtil<>();\n\n // Act\n noteViewModel.setNote(note);\n Note observedNote = liveDataTestUtil.getValue(noteViewModel.observeNote());\n\n // Assert\n assertEquals(note, observedNote);\n }", "public void setChangeListener();", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"RATIO_16_9\", (Content) null, 980.8247F, (-943.0F));\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(0, homeTexture0, 0, homeTexture0, 0, 980.8247F);\n HomeEnvironment homeEnvironment1 = homeEnvironment0.clone();\n HomeEnvironment homeEnvironment2 = homeEnvironment0.clone();\n homeEnvironment2.getPhotoHeight();\n HomeEnvironment.Property homeEnvironment_Property0 = HomeEnvironment.Property.PHOTO_HEIGHT;\n PropertyChangeListener propertyChangeListener0 = mock(PropertyChangeListener.class, new ViolatedAssumptionAnswer());\n homeEnvironment1.setSkyTexture(homeTexture0);\n PropertyChangeListenerProxy propertyChangeListenerProxy0 = new PropertyChangeListenerProxy(\"com.eteks.sweethome3d.model.HomeEnvironment$Property\", propertyChangeListener0);\n homeEnvironment2.removePropertyChangeListener(homeEnvironment_Property0, propertyChangeListenerProxy0);\n homeEnvironment1.getVideoFrameRate();\n homeEnvironment1.getSkyTexture();\n homeEnvironment1.setAllLevelsVisible(false);\n homeEnvironment2.getVideoHeight();\n homeEnvironment2.setVideoFrameRate(300);\n assertEquals(300, homeEnvironment2.getVideoFrameRate());\n }", "@Override\n public void addChangeListener(ChangeListener l) {}", "protected void do_utilityFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "@Override\n public void removePropertyChangeListener(PropertyChangeListener listener) {\n\n }", "static public void addPropertyChangeListener(PropertyChangeListener l) {\n if (listenerList.getListenerCount(PropertyChangeListener.class) == 0) {\n accessibilityListener.installListeners();\n }\n listenerList.add(PropertyChangeListener.class, l);\n }", "void onPropertyChange(String key);", "public final void addPropertyChangeListener (PropertyChangeListener pl) {\n if (changeSupport == null)\n changeSupport = new PropertyChangeSupport (this);\n changeSupport.addPropertyChangeListener (pl);\n }", "void onModelChange();", "public void propertyChange(PropertyChangeEvent evt) {\n\t\t/*\n\t\t * String prop = evt.getPropertyName();\n\t\t * if(prop.equals(ConceptSelector.CONCEPT_SELECTED) && evt.getNewValue()\n\t\t * != null){ ReportDocument doc =\n\t\t * caseAuthor.getReportPanel().getReportDocument();\n\t\t * doc.clearBackground(); ConceptEntry entry = (ConceptEntry)\n\t\t * evt.getNewValue(); for(ConceptLabel lbl: entry.getLabels()){\n\t\t * lbl.setBackgroundColor(Color.yellow); lbl.update(doc); } }\n\t\t */\n\t}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent event) {\n\t\tString property = event.getPropertyName();\n\t\tif (property.equals(Global.DRAG_EVENT) && isVisible()) { //don't have to move invisible markers\n\t\t\thandleDrag(event.getOldValue(), event.getNewValue());\n\t\t} else if (property.startsWith(Global.ZOOM)){\n\t\t\thandleZoom();\n\t\t}\n\t}", "public void addPropertyChangeListener(java.beans.PropertyChangeListener listener) {\n\tmPcs.addPropertyChangeListener(listener);\n }", "protected void fireChangeEvent (ModelProperties prop)\n {\n\tJsimEvent evt;\n\tString\t SLASH = System.getProperty (\"file.separator\");\n\tString fname = System.getProperty (\"user.home\");\n\tString xmlStr;\n\n\tif (use_xml) {\n try {\n Vector data = new Vector (); data.add (prop);\n if (generate_xml_files) {\n\t\t fname += SLASH + \"JSIM\" + SLASH + \"jsim\" + SLASH +\n\t\t\t\t\"jmessage\" + SLASH + \"change.xml\";\n\t\t xmlStr = XMLSerializer.serialize (data, fname);\n\t\t} else {\n\t\t xmlStr = XMLSerializer.serialize (data);\n\t\t}; // if\n } catch (Exception e) {\n trc.tell (\"fireChangeEvent\", e.getMessage ());\n e.printStackTrace ();\n return;\n }\n\t evt = new JsimEvent (this, EventMap.CHANGE_EVT, xmlStr);\n\t} else {\n\t evt = new JsimEvent (this, EventMap.CHANGE_EVT, prop);\n\t}; // if\n\n propCache = prop;\n\tfireJsimEvent (evt);\n \n }", "@Override\n public TestCaseResult test(Project project, boolean autoGrade) throws NotAutomatableException, NotGradableException {\n if (project.getClassesManager().isEmpty())\n throw new NotGradableException();\n Set<ClassDescription> classDescriptions = project.getClassesManager().get().findByTag(\"Paint Listener\");\n if (classDescriptions.isEmpty())\n return fail(\"No class tagged \\\"Paint Listener\\\"\");\n ClassDescription classDescription = new ArrayList<ClassDescription>(classDescriptions).get(0);\n\n // Get the views\n Class<?> paintListener = classDescription.getJavaClass();\n List<ClassDescription> views = new ArrayList<ClassDescription>();\n for (ClassDescription description : project.getClassesManager().get().getClassDescriptions()) {\n if (!description.getJavaClass().isInterface() && paintListener.isAssignableFrom(description.getJavaClass())) {\n views.add(description);\n }\n }\n\n // Count how many views register themselves as listeners in the constructor\n double listenerCount = 0;\n String notes = \"\";\n for (ClassDescription view : views) {\n // Get the constructors\n try {\n ClassOrInterfaceDeclaration classDef = CompilationNavigation.getClassDef(view.parse());\n List<ConstructorDeclaration> constructors = CompilationNavigation.getConstructors(classDef);\n\n // Look for one assignment in any constructor\n boolean found = false;\n for (ConstructorDeclaration constructor : constructors) {\n String code = constructor.toString();\n if (code.contains(\".addPropertyChangeListener(this)\")) {\n found = true;\n break;\n }\n }\n if (found)\n listenerCount++;\n else\n notes += \"Paint listener view \" + view.getJavaClass().getSimpleName() + \" doesn't register itself as a listener in its constructor.\\n\";\n } catch (IOException e) {\n // Don't do anything here.\n }\n }\n\n double count = views.size();\n return partialPass(listenerCount / count, notes);\n }" ]
[ "0.7185662", "0.69649845", "0.68182147", "0.67943466", "0.6646526", "0.6640116", "0.6621717", "0.66021276", "0.65383357", "0.642443", "0.6368901", "0.63143283", "0.6282825", "0.6255352", "0.62371546", "0.62241167", "0.6210721", "0.6206392", "0.6180715", "0.61721414", "0.60839295", "0.6065294", "0.60422987", "0.60288966", "0.59830385", "0.592868", "0.59217286", "0.5905604", "0.5898786", "0.5893113", "0.5846958", "0.5838776", "0.58247256", "0.58226144", "0.58172715", "0.5807194", "0.58055615", "0.5787275", "0.5787275", "0.5785908", "0.5766923", "0.5753448", "0.5718863", "0.57159877", "0.5712874", "0.57126105", "0.56901914", "0.5663887", "0.56637025", "0.5663397", "0.56305194", "0.56252307", "0.5619827", "0.5619521", "0.5609631", "0.5561024", "0.55602324", "0.5546426", "0.55438286", "0.55426306", "0.5535249", "0.5535179", "0.5515247", "0.5515247", "0.5502187", "0.5485219", "0.5479877", "0.54771173", "0.5447191", "0.5438595", "0.5428443", "0.5426437", "0.54049146", "0.5401242", "0.5396368", "0.539418", "0.5385317", "0.53737605", "0.53726166", "0.5365847", "0.5357512", "0.53522974", "0.53275585", "0.5302351", "0.53021413", "0.5297847", "0.5287324", "0.5282965", "0.52779883", "0.52680284", "0.52566725", "0.5253869", "0.52496564", "0.5245749", "0.5243473", "0.5236833", "0.5217006", "0.5215555", "0.52098674", "0.52079517" ]
0.7583585
0
Tests PropertiesPanelremoveModelElementChangeListener(ModelElementChangeListener) for accuracy.
public void testRemoveModelElementChangeListener() { ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock(); instance.addModelElementChangeListener(listener); instance.removeModelElementChangeListener(listener); instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, "accuracy"); assertFalse("Failed to remove the listener.", listener.IsCalled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement);", "@Test\n public void testRemovePropertyChangeListener() {\n // trivial\n }", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String[] propertyNames);", "@Override\r\n public void rmValueListener(PropertyChangeListener l) {\n\r\n }", "@Override\n public void removePropertyChangeListener(PropertyChangeListener listener) {\n\n }", "public abstract void removePropertyChangeListener(IPropertyChangeListener listener);", "public void testRemoveModelElementSelectionListener() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String propertyName);", "public abstract void removePropertyChangeListener(PropertyChangeListener listener);", "void removePropertyChangeListener(PropertyChangeListener listener);", "void removePropertyChangeListener(PropertyChangeListener listener);", "@Override\n public void removePropertyChangeListener( String propertyName,PropertyChangeListener listener )\n {\n if( componentModel == null )\n return;\n\n if( propertyName==null )\n {\n componentModel.removePropertyChangeListener( listener );\n }\n else\n {\n Property prop = componentModel.findProperty( propertyName );\n if ( prop != null )\n {\n prop.removePropertyChangeListener( listener );\n }\n }\n }", "public void removePropertyChangeListener(PropertyChangeListener l);", "@Override\n\tpublic void removePropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}", "public void removePropertyChangeListener(PropertyChangeListener listener);", "void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String[] propertyNames);", "default void removePropertyChangeListener(PropertyChangeListener listener)\r\n {\r\n }", "public void removePropertyChangeListener(PropertyChangeListener listener)\n {\n }", "public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener) {\n }", "public void removePropertyChangeListener (PropertyChangeListener l)\n { pcs.removePropertyChangeListener (l); }", "public void testRemoveAllModelElementSelectionListeners() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeAllModelElementSelectionListeners();\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String propertyName);", "public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener) {\r\n\tgetPropertyChange().removePropertyChangeListener(listener);\r\n}", "public void removePropertyChangeListener (PropertyChangeListener l) {\n pcs.removePropertyChangeListener (l);\n }", "public void testAddModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to add the listener.\", listener.IsCalled());\n }", "void removeChangeListener(PropertyChangeListener<? super R> listener);", "void removePropertyChangedObserver(PropertyChangeObserver observer);", "void removePropertyListener(PropertyListener listener);", "public void removePropertyChangeListener(PropertyChangeListener pListener) {\n \tmodel.removePropertyChangeListener(pListener);\n }", "public void removeListener(PropertyChangeListener listener, String propertyType);", "protected void uninstallListeners() {\n frame.removePropertyChangeListener(propertyChangeListener);\n }", "public void removePropertyChangeListener(PropertyChangeListener listener) {\n \tmPropertyChangeSupport.removePropertyChangeListener(listener);\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement);", "public void removePropertyChangeListener(PropertyChangeListener listener) {\n\n\t}", "public void testFirePropertyChangeEvent() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "public final void removePropertyChangeListener (PropertyChangeListener pl) {\n if (changeSupport == null)\n return;\n changeSupport.removePropertyChangeListener (pl);\n }", "@Override\r\n public void removeNotify() {\r\n // remove listener\r\n component.getResults().removeLabTestListener(this);\r\n \r\n super.removeNotify();\r\n }", "@Override\n public synchronized void removePropertyChangeListener(PropertyChangeListener listener) {\n if (listeners != null) {\n listeners.removePropertyChangeListener(listener);\n }\n }", "public abstract void removePropertyChangeListener(PropertyChangeListener listener, String kenaiHostUrl);", "public void removePropertyChangeListener(@NotNull PropertyChangeListener listener) {\n }", "static public void removePropertyChangeListener(PropertyChangeListener l) {\n listenerList.remove(PropertyChangeListener.class, l);\n if (listenerList.getListenerCount(PropertyChangeListener.class) == 0) {\n accessibilityListener.removeListeners();\n }\n }", "protected void uninstallListeners() { this.tipPane.removePropertyChangeListener(this.changeListener); }", "public void removePropertyChangeListener(java.beans.PropertyChangeListener listener) {\n\tmPcs.removePropertyChangeListener(listener);\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "public synchronized void removePropertyChangeListener(PropertyChangeListener l) {\n int cnt = listeners.size();\n for (int i = 0; i < cnt; i++) {\n Object o = ((WeakReference)listeners.get(i)).get();\n if (o == null || o == l) { // remove null references and the required one\n listeners.remove(i);\n interestNames.remove(i);\n i--;\n cnt--;\n }\n }\n }", "public synchronized void removePropertyChangeListener(PropertyChangeListener l) {\n if (propertySupport != null) {\n propertySupport.removePropertyChangeListener(l);\n }\n }", "public void removePropertyChangeListener (\n String propertyName,\n PropertyChangeListener l\n ) {\n pcs.removePropertyChangeListener (propertyName, l);\n }", "public void removePropertyChangeListener(ActionListener<PropertyChangeEvent> l) {\n if (listeners == null || !listeners.hasListeners()) {\n return;\n }\n listeners.removeListener(l);\n if (!listeners.hasListeners()) {\n if (pcl != null) {\n if (root != null) {\n Property prop = property;\n if (prop == null && tags != null) {\n prop = root.getEntity().findProperty(tags);\n }\n if (prop != null) {\n root.getEntity().removePropertyChangeListener(prop, pcl);\n }\n } else {\n Entity leafEntity = getLeafEntity();\n Property leafProperty = getLeafProperty();\n if (leafEntity != null && leafProperty != null) {\n leafEntity.getEntity().removePropertyChangeListener(leafProperty, pcl());\n }\n parent.removeVetoablePropertyChangeListener(vpcl());\n parent.removeListChangeListener(listChangeListener());\n }\n }\n }\n }", "@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeNotificationOnRemoveItem() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> listProperty = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(listProperty);\r\n list.remove(0);\r\n assertSame(\"sanity: value didn't change\", list, listProperty.get());\r\n assertEquals(\"RT-38828: listProperty must not fire changeEvent on removing item\", \r\n 0, report.getEventCount());\r\n }", "public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {\r\n propertyChangeSupport.removePropertyChangeListener(l);\r\n }", "@SuppressWarnings(\"unused\")\r\n public synchronized void removePropertyChangeListener(PropertyChangeListener listener)\r\n {\r\n Iterator<WeakReference<PropertyChangeListener>> i = listeners.iterator();\r\n while (i.hasNext()) {\r\n PropertyChangeListener l = i.next().get();\r\n\r\n if ((l == null) || l.equals(listener))\r\n i.remove();\r\n }\r\n if (this.added && (listeners.size() == 0)) {\r\n removeThisFromNotifier();\r\n this.added = false;\r\n }\r\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "public void modelPropertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "public void removePropertyChangeListener(PropertyChangeListener l) {\n getPropertyChangeSupport().removePropertyChangeListener(l);\n }", "public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {\n propertyChangeSupport.removePropertyChangeListener( l );\n }", "public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {\n propertyChangeSupport.removePropertyChangeListener(l);\n }", "public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {\n propertyChangeSupport.removePropertyChangeListener(l);\n }", "public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {\n propertyChangeSupport.removePropertyChangeListener(l);\n }", "public synchronized void removePropertyChangeListener(PropertyChangeListener listener) {\n if (listeners == null) {\n return;\n }\n listeners.removeElement(listener);\n }", "public synchronized void removePropertyChangeListener(PropertyChangeListener listener) {\r\n\t\tgetPropertyChange().removePropertyChangeListener(listener);\r\n\t}", "public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener) {\r\n\t\tgetPropertyChange().removePropertyChangeListener(listener);\r\n\t}", "@Override\n\tpublic void removeValueChangeListener(final ValueChangeListener<T> listener) {\n\t\t\n\t}", "public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener) {\n\t\tgetPropertyChange().removePropertyChangeListener(listener);\n\t}", "@Override\n\tpublic void addPropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}", "protected void uninstallListeners() {\n spinner.removePropertyChangeListener(propertyChangeListener); }", "@Test\n public void testAddPropertyChangeListener() {\n // trivial\n }", "public void removePropertyChangeListener(final PropertyChangeListener thePcl) {\n myPcs.removePropertyChangeListener(thePcl);\n }", "@Override\n protected void componentClosed() {\n WindowManager.getDefault().getRegistry().removePropertyChangeListener(this);\n }", "public void removePropertyChangeListener(PropertyChangeListener listener) {\n\t\tthis.propertyChangeSupport.removePropertyChangeListener(listener);\n\t}", "public void testRemoveGUIEventListener1_Accuracy() {\n Map<Class, Set<GUIEventListener>> map = (Map<Class, Set<GUIEventListener>>) getPrivateField(EventManager.class,\n eventManager, \"guiEventListeners\");\n Set<GUIEventListener> listeners1 = new HashSet<GUIEventListener>();\n listeners1.add(gUIEventListener1);\n listeners1.add(gUIEventListener2);\n map.put(RedoChangesEvent.class, listeners1);\n\n Set<GUIEventListener> listeners2 = new HashSet<GUIEventListener>();\n listeners2.add(gUIEventListener3);\n map.put(UndoChangesEvent.class, listeners2);\n\n // Check all the listeners have been added correctly\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener1));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener2));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, UndoChangesEvent.class, gUIEventListener3));\n // Remove the listeners\n eventManager.removeGUIEventListener(gUIEventListener1, RedoChangesEvent.class);\n eventManager.removeGUIEventListener(gUIEventListener2, RedoChangesEvent.class);\n eventManager.removeGUIEventListener(gUIEventListener3, UndoChangesEvent.class);\n\n // Check all the listeners have been removed correctly\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener1));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener2));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, UndoChangesEvent.class, gUIEventListener3));\n }", "void addModelEventListener(UmlChangeListener listener, Object modelelement, String[] propertyNames);", "protected void RemoveEvents()\r\n {\r\n INotifyPropertyChanged propParent = (INotifyPropertyChanged)getProxyParent();\r\n propParent.getPropertyChanged().removeObservers(filterPropertyChanges);\r\n }", "@objid (\"002e3a2e-0d4f-10c6-842f-001ec947cd2a\")\n public void modelChanged(IModelChangeEvent event) {\n if (event.getDeleteEvents().size() > 0) {\n for (Element key : this.elementFolders.keySet()) {\n if (!key.isValid()) {\n this.elementFolders.remove(key);\n break;\n }\n }\n }\n }", "@Override\n public void removeListener(InvalidationListener listener) {\n }", "public void clearChangeListeners() {\n observer.clear();\n }", "@Override\n public void removeOnPropertyChangedCallback(OnPropertyChangedCallback callback) {\n }", "public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener listener) {\r\n\tgetVetoPropertyChange().removeVetoableChangeListener(listener);\r\n}", "public void removeDeepChangeListener(DeepChangeListener aLstnr) { removeListener(DeepChangeListener.class, aLstnr); }", "protected void removeChangeListeners() {\n\t\tif (this.getChangeListenersAdded()) {\n\t\t\tthis.removeCollectableComponentModelListeners();\n\t\t\tthis.removeAdditionalChangeListeners();\n\t\t\tthis.bChangeListenersAdded = false;\n\t\t}\n\n\t\tassert !this.getChangeListenersAdded();\n\t}", "public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }", "private void notifyDocumentRemoved(SingleDocumentModel model) {\n\t\tfor (MultipleDocumentListener l : listeners) {\n\t\t\tl.documentRemoved(model);\n\t\t}\n\t}", "public void removeChangeListener(ChangeListener stackEngineListener);", "@Test\n\tpublic void testElementRemovedEvent() {\n\t\tfinal DiagramElement e = addRootElementAndResetCounter(1);\n\n\t\t// Test a remove event\n\t\tdiagram.modify(\"Remove Element\", m -> m.removeElement(e));\n\n\t\tassertThat(ml.elementRemovedEventsReceived, is(equalTo(1)));\n\t\tassertThat(ml.modificationsCompletedEventsReceived, is(equalTo(1)));\n\t\tassertThat(ml.getTotalEventsReceived(), is(equalTo(2)));\n\t}", "public void testPropertyChange() {\n System.out.println(\"propertyChange\");\n PropertyChangeEvent evt = null;\n Wizard instance = new Wizard();\n instance.propertyChange(evt);\n }", "private void FilterPropertyChanges(Object sender, PropertyChangedEventArgs e)\r\n {\r\n // check if this is the property of interest\r\n if (e.getPropertyValue(_propertyName)!= null)\r\n PropertyChanged();\r\n }", "private void removeVetoablePropertyChangeListener(ActionListener<VetoablePropertyChangeEvent> l) {\n if (root != null) {\n Property prop = property;\n if (prop == null && tags != null) {\n prop = root.getEntity().findProperty(tags);\n }\n if (prop != null) {\n root.getEntity().addVetoablePropertyChangeListener(prop, l);\n }\n } else {\n Entity leafEntity = getLeafEntity();\n Property leafProperty = getLeafProperty();\n if (leafEntity != null && leafProperty != null) {\n leafEntity.getEntity().addVetoablePropertyChangeListener(leafProperty, l);\n }\n parent.addVetoablePropertyChangeListener(l);\n }\n }", "public void removeAllListeners()\n {\n tableModelListeners.clear();\n comboBoxModelListDataListeners.clear();\n }", "void removeDrawingModelListener(DrawingModelListener l);", "@Override\n public void removeChangeListener(ChangeListener listener, Event[] events) {\n boolean addEvent[] = selectEventsToModify(events);\n if (addEvent[Event.LOAD.ordinal()]) {\n loadListeners.removeChangeListener(listener);\n }\n if (addEvent[Event.STORE.ordinal()]) {\n storeListeners.removeChangeListener(listener);\n }\n if (addEvent[Event.REMOVE.ordinal()]) {\n removeListeners.removeChangeListener(listener);\n }\n }", "void removeListener(ChangeListener<? super T> listener);", "public final void propertyChange(final PropertyChangeEvent event) {\n\t\tfinal Object subject = event.getSource();\n\t\tfinal String changedProperty = event.getProperty();\n\n\t\tif (PropertyChangeNames.isStatusChange(changedProperty)) {\n\t\t\tassert ModelUtils.isModelItem(subject);\n\n\t\t\tif (subject == deviceUnderDisplay) {\n\t\t\t\t// final DeviceStatus status = (DeviceStatus)\n\t\t\t\t// event.getNewValue();\n\t\t\t\tif (compositeUnderDisplay instanceof DeviceUI\n\t\t\t\t\t\t&& !compositeUnderDisplay.isDisposed()) {\n\t\t\t\t\t((DeviceUI) compositeUnderDisplay)\n\t\t\t\t\t\t\t.updateControls((Device) subject);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (PropertyChangeNames.isNodeRemove(changedProperty)) {\n\t\t\tViewUtils.disposeExistingControls(top);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t} else if (PropertyChangeNames.isProjectLoading(changedProperty)) {\n\t\t\t/*\n\t\t\t * Handle the change of the current project.\n\t\t\t */\n\t\t\tif (subject instanceof Project) {\n\t\t\t\tfinal Project project = (Project) subject;\n\t\t\t\tfinal NetworkInterfaceManager manager = project\n\t\t\t\t\t\t.getNetworkInterfaceManager();\n\n\t\t\t\tif (manager != null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the network status listener as a network monitor in\n\t\t\t\t\t * order to receive all the network events.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addConnectionStatusListener(connectionStatusListener);\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the dispatcher status listener to show warnings when\n\t\t\t\t\t * messages are not being delivered.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addDispatcherListener(dispatcherListener);\n\t\t\t\t}\n\n\t\t\t\tProjectModel.getInstance().addDeviceConnectivityListener(\n\t\t\t\t\t\tconnectivityChangeListener);\n\t\t\t}\n\n\t\t\tsetDeviceUnderDisplay(null);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t}\n\t}", "@Override\n public void removeListener(ChangeListener<? super String> listener) {\n }", "public void removeDrawingModelListener(DrawingModelListener l);", "public void removeProperty(TLProperty element);", "public void removeChangeListener(ChangeListener l) {\n\t\t//do nothing\n\t}", "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n }", "void addModelEventListener(UmlChangeListener listener, Object modelelement, String propertyName);" ]
[ "0.8047821", "0.7672933", "0.76461023", "0.7567232", "0.7425196", "0.7213878", "0.7116523", "0.7056203", "0.6968909", "0.69663507", "0.6929396", "0.6905028", "0.68377984", "0.68377984", "0.6829372", "0.6765731", "0.67224747", "0.6712524", "0.6699647", "0.6684587", "0.66810215", "0.6667531", "0.6659051", "0.66521895", "0.66476756", "0.66337514", "0.6581292", "0.654463", "0.6511789", "0.647961", "0.6446488", "0.6416496", "0.636734", "0.6289048", "0.6242522", "0.62389827", "0.62378037", "0.6222726", "0.62175006", "0.6194347", "0.6190194", "0.61709464", "0.61636114", "0.6112276", "0.6045807", "0.6020394", "0.60186505", "0.5967162", "0.5963078", "0.5962081", "0.5951525", "0.5944499", "0.5925732", "0.58985174", "0.58924806", "0.58816314", "0.5867175", "0.5852652", "0.58493406", "0.58493406", "0.58493406", "0.5835889", "0.58318305", "0.5806938", "0.5800654", "0.579524", "0.5789257", "0.5760815", "0.5759188", "0.5715383", "0.5694926", "0.5633121", "0.5628271", "0.5620093", "0.5614559", "0.5592465", "0.5576209", "0.5574572", "0.557336", "0.55631584", "0.55560017", "0.5527245", "0.552585", "0.5520715", "0.5498962", "0.54855084", "0.544961", "0.5439437", "0.54346555", "0.54270846", "0.54228073", "0.5406463", "0.54037356", "0.53874236", "0.5356659", "0.53314835", "0.53307617", "0.5322681", "0.53196204", "0.5312981" ]
0.84010637
0
Tests PropertiesPanelremoveAllModelElementChangeListeners() for accuracy.
public void testRemoveAllModelElementChangeListeners() { ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock(); instance.addModelElementChangeListener(listener); instance.removeAllModelElementChangeListeners(); instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, "accuracy"); assertFalse("Failed to remove the listener.", listener.IsCalled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testRemoveModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void testRemoveAllModelElementSelectionListeners() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeAllModelElementSelectionListeners();\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement);", "@Test\n public void testRemovePropertyChangeListener() {\n // trivial\n }", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "public void testRemoveModelElementSelectionListener() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String[] propertyNames);", "public void removeAllListeners()\n {\n tableModelListeners.clear();\n comboBoxModelListDataListeners.clear();\n }", "protected void uninstallListeners() {\n frame.removePropertyChangeListener(propertyChangeListener);\n }", "@Override\r\n public void rmValueListener(PropertyChangeListener l) {\n\r\n }", "public void clearChangeListeners() {\n observer.clear();\n }", "protected void removeChangeListeners() {\n\t\tif (this.getChangeListenersAdded()) {\n\t\t\tthis.removeCollectableComponentModelListeners();\n\t\t\tthis.removeAdditionalChangeListeners();\n\t\t\tthis.bChangeListenersAdded = false;\n\t\t}\n\n\t\tassert !this.getChangeListenersAdded();\n\t}", "void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String[] propertyNames);", "protected void RemoveEvents()\r\n {\r\n INotifyPropertyChanged propParent = (INotifyPropertyChanged)getProxyParent();\r\n propParent.getPropertyChanged().removeObservers(filterPropertyChanges);\r\n }", "void removePropertyChangedObserver(PropertyChangeObserver observer);", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String propertyName);", "@Override\n public void removePropertyChangeListener(PropertyChangeListener listener) {\n\n }", "protected void uninstallListeners() { this.tipPane.removePropertyChangeListener(this.changeListener); }", "@Override\r\n public void removeNotify() {\r\n // remove listener\r\n component.getResults().removeLabTestListener(this);\r\n \r\n super.removeNotify();\r\n }", "void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String propertyName);", "public void testAddModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to add the listener.\", listener.IsCalled());\n }", "public void removeAllRatioListeners()\r\n {\r\n ratioListeners.clear();\r\n }", "public abstract void removePropertyChangeListener(IPropertyChangeListener listener);", "protected final void removeCollectableComponentModelListeners() {\n\t\tfor (CollectableComponentModel clctcompmodel : this.getCollectableComponentModels()) {\n\t\t\tclctcompmodel.removeCollectableComponentModelListener(this.getCollectableComponentModelListener());\n\t\t}\n\t}", "public void testRemoveGUIEventListener1_Accuracy() {\n Map<Class, Set<GUIEventListener>> map = (Map<Class, Set<GUIEventListener>>) getPrivateField(EventManager.class,\n eventManager, \"guiEventListeners\");\n Set<GUIEventListener> listeners1 = new HashSet<GUIEventListener>();\n listeners1.add(gUIEventListener1);\n listeners1.add(gUIEventListener2);\n map.put(RedoChangesEvent.class, listeners1);\n\n Set<GUIEventListener> listeners2 = new HashSet<GUIEventListener>();\n listeners2.add(gUIEventListener3);\n map.put(UndoChangesEvent.class, listeners2);\n\n // Check all the listeners have been added correctly\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener1));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener2));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, UndoChangesEvent.class, gUIEventListener3));\n // Remove the listeners\n eventManager.removeGUIEventListener(gUIEventListener1, RedoChangesEvent.class);\n eventManager.removeGUIEventListener(gUIEventListener2, RedoChangesEvent.class);\n eventManager.removeGUIEventListener(gUIEventListener3, UndoChangesEvent.class);\n\n // Check all the listeners have been removed correctly\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener1));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener2));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, UndoChangesEvent.class, gUIEventListener3));\n }", "public abstract void removePropertyChangeListener(PropertyChangeListener listener);", "public void removeAllObjectChangeListeners()\n\t{\n\t\tlistenerList = null;\n\t}", "public void removeAllObjectChangeListeners()\n\t{\n\t\tlistenerList = null;\n\t}", "void removePropertyChangeListener(PropertyChangeListener listener);", "void removePropertyChangeListener(PropertyChangeListener listener);", "@Override\n public void removePropertyChangeListener( String propertyName,PropertyChangeListener listener )\n {\n if( componentModel == null )\n return;\n\n if( propertyName==null )\n {\n componentModel.removePropertyChangeListener( listener );\n }\n else\n {\n Property prop = componentModel.findProperty( propertyName );\n if ( prop != null )\n {\n prop.removePropertyChangeListener( listener );\n }\n }\n }", "@Override\n\tpublic void removePropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}", "default void removePropertyChangeListener(PropertyChangeListener listener)\r\n {\r\n }", "public void removePropertyChangeListener(PropertyChangeListener l);", "public void removePropertyChangeListener (PropertyChangeListener l)\n { pcs.removePropertyChangeListener (l); }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement);", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "protected void uninstallListeners() {\n spinner.removePropertyChangeListener(propertyChangeListener); }", "public void removePropertyChangeListener(PropertyChangeListener listener);", "public void removePropertyChangeListener (PropertyChangeListener l) {\n pcs.removePropertyChangeListener (l);\n }", "public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener) {\r\n\tgetPropertyChange().removePropertyChangeListener(listener);\r\n}", "public void removePropertyChangeListener(PropertyChangeListener listener)\n {\n }", "void removePropertyListener(PropertyListener listener);", "@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeNotificationOnRemoveItem() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> listProperty = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(listProperty);\r\n list.remove(0);\r\n assertSame(\"sanity: value didn't change\", list, listProperty.get());\r\n assertEquals(\"RT-38828: listProperty must not fire changeEvent on removing item\", \r\n 0, report.getEventCount());\r\n }", "public synchronized void removePropertyChangeListener(PropertyChangeListener l) {\n int cnt = listeners.size();\n for (int i = 0; i < cnt; i++) {\n Object o = ((WeakReference)listeners.get(i)).get();\n if (o == null || o == l) { // remove null references and the required one\n listeners.remove(i);\n interestNames.remove(i);\n i--;\n cnt--;\n }\n }\n }", "@Test @Ignore\r\n public void testListPropertyNotificationDetails() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> lp = new SimpleListProperty<>(list);\r\n ListChangeListener l = c -> FXUtils.prettyPrint(c);\r\n LOG.info(\"change from listProperty: modifying list\");\r\n lp.addListener(l);\r\n LOG.info(\"set same element\");\r\n list.set(0, list.get(0));\r\n LOG.info(\"set same list\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with two changes\r\n LOG.info(\"remove two not subsequent\");\r\n list.removeAll(list.get(1), list.get(5)); \r\n LOG.info(\"retain all with complete list\");\r\n // fires nothing \r\n list.retainAll(createObservableList(true));\r\n LOG.info(\"setAll to initial\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with 3 changes of type remove\r\n list.retainAll(list.get(0), list.get(3), list.get(7));\r\n LOG.info(\"setall with new list\");\r\n list.setAll(\"one\", \"twoorwhat\");\r\n // fires one replaced event for each element \r\n UnaryOperator<String> op = p -> {\r\n if (p.length() > 3) return p;\r\n return p + 3;\r\n }; \r\n list.replaceAll(op); \r\n // fires setAll\r\n FXCollections.replaceAll(list, \"one\", \"other\");\r\n list.removeAll(\"one\", \"two\");\r\n LOG.info(\"reset ListProperty to initial list\");\r\n lp.set(createObservableList(true));\r\n }", "private void removeListeners() {\n \t\tlistenToTextChanges(false);\n \t\tfHistory.removeOperationHistoryListener(fHistoryListener);\n \t\tfHistoryListener= null;\n \t}", "private void notifyDocumentRemoved(SingleDocumentModel model) {\n\t\tfor (MultipleDocumentListener l : listeners) {\n\t\t\tl.documentRemoved(model);\n\t\t}\n\t}", "@Test\r\n public void testListPropertyNotificationMultipleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ChangeReport otherListener = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "public void testFirePropertyChangeEvent() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "private void modelListenersNotify()\n {\n modelArray = this.toArray(new Object[this.size()]);\n notifyTableModelChange();\n notifyComboBoxModelChange(0, this.size()-1);\n }", "void removeChangeListener(PropertyChangeListener<? super R> listener);", "private void FilterPropertyChanges(Object sender, PropertyChangedEventArgs e)\r\n {\r\n // check if this is the property of interest\r\n if (e.getPropertyValue(_propertyName)!= null)\r\n PropertyChanged();\r\n }", "public void removeListener(PropertyChangeListener listener, String propertyType);", "protected void removeListeners() {\n }", "public void removeAllTuioListeners()\n\t{\n\t\tlistenerList.clear();\n\t}", "@Override\n public void removeNotify()\n {\n unregisterListeners();\n super.removeNotify();\n }", "public void removeAllAmplitudeListeners()\r\n {\r\n amplitudeListeners.clear();\r\n }", "private void addModelListeners() {\n this.home.addSelectionListener(new SelectionListener() {\n public void selectionChanged(SelectionEvent ev) {\n List<HomePieceOfFurniture> selectedFurniture = \n Home.getFurnitureSubList(home.getSelectedItems());\n if (selectedFurniture.isEmpty()) {\n leadSelectedPieceOfFurniture = null;\n } else if (leadSelectedPieceOfFurniture == null \n || selectedFurniture.size() == 1\n || selectedFurniture.indexOf(leadSelectedPieceOfFurniture) == -1) {\n leadSelectedPieceOfFurniture = selectedFurniture.get(0);\n }\n }\n });\n \n // Add listener to update base plan lock when furniture movability changes\n final PropertyChangeListener furnitureChangeListener = new PropertyChangeListener() {\n public void propertyChange(PropertyChangeEvent ev) {\n if (HomePieceOfFurniture.Property.MOVABLE.name().equals(ev.getPropertyName())) {\n // Remove non movable pieces from selection when base plan is locked \n HomePieceOfFurniture piece = (HomePieceOfFurniture)ev.getSource();\n if (home.isBasePlanLocked()\n && isPieceOfFurniturePartOfBasePlan(piece)) {\n List<Selectable> selectedItems = home.getSelectedItems();\n if (selectedItems.contains(piece)) {\n selectedItems = new ArrayList<Selectable>(selectedItems);\n selectedItems.remove(piece);\n home.setSelectedItems(selectedItems);\n }\n }\n }\n }\n };\n for (HomePieceOfFurniture piece : home.getFurniture()) {\n piece.addPropertyChangeListener(furnitureChangeListener);\n }\n this.home.addFurnitureListener(new CollectionListener<HomePieceOfFurniture> () {\n public void collectionChanged(CollectionEvent<HomePieceOfFurniture> ev) {\n if (ev.getType() == CollectionEvent.Type.ADD) {\n ev.getItem().addPropertyChangeListener(furnitureChangeListener);\n } else if (ev.getType() == CollectionEvent.Type.DELETE) {\n ev.getItem().removePropertyChangeListener(furnitureChangeListener);\n }\n }\n });\n }", "public void removeAllListeners() {\r\n\t\tgetListeners().removeAllListeners();\r\n\t}", "public PropertyChangeListener[] getPropertyChangeListeners() {\n\t\treturn null;\n\t}", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "public void removeAllListener() {\r\n listeners.clear();\r\n }", "public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener) {\n }", "protected void uninstallListeners() {\n }", "protected void uninstallListeners() {\n }", "@Override\n\tpublic void removeAllListener() {\n\t\tLog.d(\"HFModuleManager\", \"removeAllListener\");\n\t\tthis.eventListenerList.clear();\n\t}", "public void removeListeners() {\n listeners = new ArrayList<MinMaxListener>();\n listeners.add(evalFct);\n }", "PropertyChangeListener[] getPropertyChangeListeners();", "private void notifyListeners() {\n\t\tfor(ModelListener l:listeners) {\n\t\t\tl.update();\t// Tell the listener that something changed\n\t\t}\n\t}", "private void removeListeners()\n {\n // Enable LDAP Checkbox\n removeDirtyListener( enableLdapCheckbox );\n removeSelectionListener( enableLdapCheckbox, enableLdapCheckboxListener );\n\n // LDAP Port Text\n removeDirtyListener( ldapPortText );\n removeModifyListener( ldapPortText, ldapPortTextListener );\n\n // LDAP Address Text\n removeDirtyListener( ldapAddressText );\n removeModifyListener( ldapAddressText, ldapAddressTextListener );\n\n // LDAP NbThreads Text\n removeDirtyListener( ldapNbThreadsText );\n removeModifyListener( ldapNbThreadsText, ldapNbThreadsTextListener );\n\n // LDAP BackLogSize Text\n removeDirtyListener( ldapBackLogSizeText );\n removeModifyListener( ldapBackLogSizeText, ldapBackLogSizeTextListener );\n\n // Enable LDAPS Checkbox\n removeDirtyListener( enableLdapsCheckbox );\n removeSelectionListener( enableLdapsCheckbox, enableLdapsCheckboxListener );\n\n // LDAPS Port Text\n removeDirtyListener( ldapsPortText );\n removeModifyListener( ldapsPortText, ldapsPortTextListener );\n\n // LDAPS Address Text\n removeDirtyListener( ldapsAddressText );\n removeModifyListener( ldapsAddressText, ldapsAddressTextListener );\n\n // LDAPS NbThreads Text\n removeDirtyListener( ldapsNbThreadsText );\n removeModifyListener( ldapsNbThreadsText, ldapsNbThreadsTextListener );\n\n // LDAPS BackLogSize Text\n removeDirtyListener( ldapsBackLogSizeText );\n removeModifyListener( ldapsBackLogSizeText, ldapsBackLogSizeTextListener );\n \n // Enable wantClientAuth Checkbox\n removeDirtyListener( wantClientAuthCheckbox );\n removeSelectionListener( wantClientAuthCheckbox, wantClientAuthListener );\n\n // Enable needClientAuth Checkbox\n removeDirtyListener( needClientAuthCheckbox );\n removeSelectionListener( needClientAuthCheckbox, needClientAuthListener );\n\n // Auth Mechanisms Simple Checkbox\n removeDirtyListener( authMechSimpleCheckbox );\n removeSelectionListener( authMechSimpleCheckbox, authMechSimpleCheckboxListener );\n\n // Auth Mechanisms CRAM-MD5 Checkbox\n removeDirtyListener( authMechCramMd5Checkbox );\n removeSelectionListener( authMechCramMd5Checkbox, authMechCramMd5CheckboxListener );\n\n // Auth Mechanisms DIGEST-MD5 Checkbox\n removeDirtyListener( authMechDigestMd5Checkbox );\n removeSelectionListener( authMechDigestMd5Checkbox, authMechDigestMd5CheckboxListener );\n\n // Auth Mechanisms GSSAPI Checkbox\n removeDirtyListener( authMechGssapiCheckbox );\n removeSelectionListener( authMechGssapiCheckbox, authMechGssapiCheckboxListener );\n\n // Auth Mechanisms NTLM Checkbox\n removeDirtyListener( authMechNtlmCheckbox );\n removeSelectionListener( authMechNtlmCheckbox, authMechNtlmCheckboxListener );\n removeModifyListener( authMechNtlmText, authMechNtlmTextListener );\n\n // Auth Mechanisms NTLM Text\n removeDirtyListener( authMechNtlmText );\n removeModifyListener( authMechNtlmText, authMechNtlmTextListener );\n\n // Auth Mechanisms GSS SPNEGO Checkbox\n removeDirtyListener( authMechGssSpnegoCheckbox );\n removeSelectionListener( authMechGssSpnegoCheckbox, authMechGssSpnegoCheckboxListener );\n removeModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Auth Mechanisms GSS SPNEGO Text\n removeDirtyListener( authMechGssSpnegoText );\n removeModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Keystore File Text\n removeDirtyListener( keystoreFileText );\n removeModifyListener( keystoreFileText, keystoreFileTextListener );\n\n // Keystore File Browse Button\n removeSelectionListener( keystoreFileBrowseButton, keystoreFileBrowseButtonSelectionListener );\n\n // Password Text\n removeDirtyListener( keystorePasswordText );\n removeModifyListener( keystorePasswordText, keystorePasswordTextListener );\n\n // Show Password Checkbox\n removeSelectionListener( showPasswordCheckbox, showPasswordCheckboxSelectionListener );\n\n // SASL Host Text\n removeDirtyListener( saslHostText );\n removeModifyListener( saslHostText, saslHostTextListener );\n\n // SASL Principal Text\n removeDirtyListener( saslPrincipalText );\n removeModifyListener( saslPrincipalText, saslPrincipalTextListener );\n\n // SASL Seach Base Dn Text\n removeDirtyListener( saslSearchBaseDnText );\n removeModifyListener( saslSearchBaseDnText, saslSearchBaseDnTextListener );\n \n // SASL Realms\n removeSelectionChangedListener( saslRealmsTableViewer, saslRealmsTableViewerSelectionChangedListener );\n removeDoubleClickListener( saslRealmsTableViewer, saslRealmsTableViewerDoubleClickListener );\n \n // SASL Realms add/edit/delete buttons\n removeSelectionListener( addSaslRealmsButton, addSaslRealmsButtonListener );\n removeSelectionListener( editSaslRealmsButton, editSaslRealmsButtonListener );\n removeSelectionListener( deleteSaslRealmsButton, deleteSaslRealmsButtonListener );\n \n // Max Time Limit Text\n removeDirtyListener( maxTimeLimitText );\n removeModifyListener( maxTimeLimitText, maxTimeLimitTextListener );\n\n // Max Size Limit Text\n removeDirtyListener( maxSizeLimitText );\n removeModifyListener( maxSizeLimitText, maxSizeLimitTextListener );\n\n // Max PDU Size Text\n removeDirtyListener( maxPduSizeText );\n removeModifyListener( maxPduSizeText, maxPduSizeTextListener );\n\n // Hashing Password Checkbox\n removeDirtyListener( enableServerSidePasswordHashingCheckbox );\n removeSelectionListener( enableServerSidePasswordHashingCheckbox,\n enableServerSidePasswordHashingCheckboxListener );\n\n // Hashing Method Combo Viewer\n removeDirtyListener( hashingMethodComboViewer );\n removeSelectionChangedListener( hashingMethodComboViewer, hashingMethodComboViewerListener );\n\n // Advanced SSL Cipher Suites\n ciphersSuiteTableViewer.removeCheckStateListener( ciphersSuiteTableViewerListener );\n\n // Advanced SSL Enabled Protocols SSL v3\n removeDirtyListener( sslv3Checkbox );\n removeSelectionListener( sslv3Checkbox, sslv3CheckboxListener );\n\n // Advanced SSL Enabled Protocols TLS v1\n removeDirtyListener( tlsv1_0Checkbox );\n removeSelectionListener( tlsv1_0Checkbox, tlsv1_0CheckboxListener );\n\n // Advanced SSL Enabled Protocols TLS v1.1\n removeDirtyListener( tlsv1_1Checkbox );\n removeSelectionListener( tlsv1_1Checkbox, tlsv1_1CheckboxListener );\n\n // Advanced SSL Enabled Protocols TLS v1.2\n removeDirtyListener( tlsv1_2Checkbox );\n removeSelectionListener( tlsv1_2Checkbox, tlsv1_2CheckboxListener );\n\n\n // Advanced SSL Enabled Protocols add/edit/delete buttons removal\n\n // Replication Pinger Sleep\n removeDirtyListener( replicationPingerSleepText );\n removeModifyListener( replicationPingerSleepText, replicationPingerSleepTextListener );\n\n // Disk Synchronization Delay\n removeDirtyListener( diskSynchronizationDelayText );\n removeModifyListener( diskSynchronizationDelayText, diskSynchronizationDelayTextListener );\n }", "public void clearObservers(){\r\n\t\tobservers.clear();\r\n\t}", "public void testRemoveGUIEventListener2_Accuracy() {\n Map<Class, Set<GUIEventListener>> map = (Map<Class, Set<GUIEventListener>>) getPrivateField(EventManager.class,\n eventManager, \"guiEventListeners\");\n Set<GUIEventListener> listeners = new HashSet<GUIEventListener>();\n listeners.add(gUIEventListener1);\n listeners.add(gUIEventListener2);\n listeners.add(gUIEventListener3);\n map.put(null, listeners);\n\n // Check all the listeners have been added correctly\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener1));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener2));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener3));\n // Remove the listeners\n eventManager.removeGUIEventListener(gUIEventListener1);\n eventManager.removeGUIEventListener(gUIEventListener2);\n eventManager.removeGUIEventListener(gUIEventListener3);\n\n // Check all the listeners have been removed correctly\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener1));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener2));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener3));\n }", "@Override\n\tpublic void addPropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}", "void clearIsChanged();", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.idetronic.eis.model.FactNonPrintedMaterial\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<FactNonPrintedMaterial>> listenersList = new ArrayList<ModelListener<FactNonPrintedMaterial>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<FactNonPrintedMaterial>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "protected void uninstallListeners() {\n\t}", "@Test\r\n public void testListPropertyNotificationSingleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }", "static public void removePropertyChangeListener(PropertyChangeListener l) {\n listenerList.remove(PropertyChangeListener.class, l);\n if (listenerList.getListenerCount(PropertyChangeListener.class) == 0) {\n accessibilityListener.removeListeners();\n }\n }", "@Override\n public synchronized void removePropertyChangeListener(PropertyChangeListener listener) {\n if (listeners != null) {\n listeners.removePropertyChangeListener(listener);\n }\n }", "public void deleteInstanceChangedObservers();", "public void removeItemListerners() {\r\n\t\titemListeners.clear();\r\n\t}", "@Test\r\n\tpublic void testChangesNotification() throws Exception {\r\n\t\tfinal AdvancedExampleComponent component = new AdvancedExampleComponent();\r\n\t\tfinal XMLBasedPropertyContainer container = new XMLBasedPropertyContainer(XMLBasedPropertyProvider\r\n\t\t\t\t.getInstance().getMetaPropertiesSet(component.getClass()), component);\r\n\r\n\t\tIChangesNotifierMonitor monitorMock = createMock(IChangesNotifierMonitor.class);\r\n\r\n\t\tmonitorMock.objectChanged(same(container), isA(ObjectChangedEvent.class));\r\n\t\texpectLastCall().once();\r\n\r\n\t\treplay(monitorMock);\r\n\r\n\t\tcontainer.addMonitor(monitorMock);\r\n\t\t// Won't work, because \"intProperty\" is served by XMLSetterGetterProperty which doesn't support monitoring.\r\n\t\t// container.getProperty(\"intProperty\").setValue(3);\r\n\t\t// Works, because \"floatProperty\" is served by XMLFieldProperty which support monitoring.\r\n\t\tcontainer.getProperty(\"floatProperty\").setValue(3);\r\n\t\tverify(monitorMock);\r\n\r\n\t}", "public void modelPropertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "public void removePropertyChangeListener(ActionListener<PropertyChangeEvent> l) {\n if (listeners == null || !listeners.hasListeners()) {\n return;\n }\n listeners.removeListener(l);\n if (!listeners.hasListeners()) {\n if (pcl != null) {\n if (root != null) {\n Property prop = property;\n if (prop == null && tags != null) {\n prop = root.getEntity().findProperty(tags);\n }\n if (prop != null) {\n root.getEntity().removePropertyChangeListener(prop, pcl);\n }\n } else {\n Entity leafEntity = getLeafEntity();\n Property leafProperty = getLeafProperty();\n if (leafEntity != null && leafProperty != null) {\n leafEntity.getEntity().removePropertyChangeListener(leafProperty, pcl());\n }\n parent.removeVetoablePropertyChangeListener(vpcl());\n parent.removeListChangeListener(listChangeListener());\n }\n }\n }\n }", "public void removeAll() {\n\t\tmListenerSet.clear();\n\t}", "public void clearObservers() {\r\n\t\tobservers.clear();\r\n\t}", "public void removeAllInteractionsListeners() {\n _listeners.clear();\n }", "@Test\n\tpublic void testElementRemovedEvent() {\n\t\tfinal DiagramElement e = addRootElementAndResetCounter(1);\n\n\t\t// Test a remove event\n\t\tdiagram.modify(\"Remove Element\", m -> m.removeElement(e));\n\n\t\tassertThat(ml.elementRemovedEventsReceived, is(equalTo(1)));\n\t\tassertThat(ml.modificationsCompletedEventsReceived, is(equalTo(1)));\n\t\tassertThat(ml.getTotalEventsReceived(), is(equalTo(2)));\n\t}", "public void removePropertyChangeListener(PropertyChangeListener pListener) {\n \tmodel.removePropertyChangeListener(pListener);\n }", "public void testRemoveActionEventListener1_Accuracy() {\n Map<Class, Set<ActionEventListener>> map = (Map<Class, Set<ActionEventListener>>)\n getPrivateField(EventManager.class, eventManager, \"actionEventListeners\");\n Set<ActionEventListener> listeners1 = new HashSet<ActionEventListener>();\n listeners1.add(actionEventListener1);\n listeners1.add(actionEventListener2);\n map.put(Action.class, listeners1);\n\n Set<ActionEventListener> listeners2 = new HashSet<ActionEventListener>();\n listeners2.add(actionEventListener3);\n map.put(UndoableAction.class, listeners2);\n\n // Check all the listeners have been added correctly\n assertTrue(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener1));\n assertTrue(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener2));\n assertTrue(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, UndoableAction.class, actionEventListener3));\n // Remove the listeners\n eventManager.removeActionEventListener(actionEventListener1, Action.class);\n eventManager.removeActionEventListener(actionEventListener2, Action.class);\n eventManager.removeActionEventListener(actionEventListener3, UndoableAction.class);\n\n // Check all the listeners have been removed correctly\n assertFalse(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener1));\n assertFalse(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener2));\n assertFalse(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, UndoableAction.class, actionEventListener3));\n }", "void addModelEventListener(UmlChangeListener listener, Object modelelement, String[] propertyNames);", "@objid (\"002e3a2e-0d4f-10c6-842f-001ec947cd2a\")\n public void modelChanged(IModelChangeEvent event) {\n if (event.getDeleteEvents().size() > 0) {\n for (Element key : this.elementFolders.keySet()) {\n if (!key.isValid()) {\n this.elementFolders.remove(key);\n break;\n }\n }\n }\n }", "@Test\n public void testAddPropertyChangeListener() {\n // trivial\n }", "@SuppressWarnings(\"unused\")\n public void removeAllListeners() {\n eventHandlerList.clear();\n }", "public PropertyChangeListener[] getPropertyChangeListeners();", "public void removePropertyChangeListener(PropertyChangeListener listener) {\n\n\t}", "@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListValuedObjectPropertyChange() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"not supported: \\n list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }", "public void testRemoveEventValidator1_Accuracy() {\n Map<Class, Set<ActionEventValidator>> map = (Map<Class, Set<ActionEventValidator>>)\n getPrivateField(EventManager.class, eventManager, \"eventValidators\");\n Set<ActionEventValidator> validators1 = new HashSet<ActionEventValidator>();\n validators1.add(successEventValidator);\n validators1.add(modifiedEventValidator);\n map.put(Action.class, validators1);\n\n Set<ActionEventValidator> validators2 = new HashSet<ActionEventValidator>();\n validators2.add(deniedEventValidator);\n map.put(UndoableAction.class, validators2);\n\n // Check all the validators have been added correctly\n assertTrue(\"Test method for 'EventManager.removeEventValidator(ActionEventValidator, Class)' failed.\",\n containsInMap(map, Action.class, successEventValidator));\n assertTrue(\"Test method for 'EventManager.removeEventValidator(ActionEventValidator, Class)' failed.\",\n containsInMap(map, Action.class, modifiedEventValidator));\n assertTrue(\"Test method for 'EventManager.removeEventValidator(ActionEventValidator, Class)' failed.\",\n containsInMap(map, UndoableAction.class, deniedEventValidator));\n // Remove the validators\n eventManager.removeEventValidator(successEventValidator, Action.class);\n eventManager.removeEventValidator(modifiedEventValidator, Action.class);\n eventManager.removeEventValidator(deniedEventValidator, UndoableAction.class);\n\n // Check all the validators have been removed correctly\n assertFalse(\"Test method for 'EventManager.removeEventValidator(ActionEventValidator, Class)' failed.\",\n containsInMap(map, Action.class, successEventValidator));\n assertFalse(\"Test method for 'EventManager.removeEventValidator(ActionEventValidator, Class)' failed.\",\n containsInMap(map, Action.class, modifiedEventValidator));\n assertFalse(\"Test method for 'EventManager.removeEventValidator(ActionEventValidator, Class)' failed.\",\n containsInMap(map, UndoableAction.class, deniedEventValidator));\n }" ]
[ "0.78025454", "0.7346048", "0.71315944", "0.7054298", "0.69326496", "0.68137187", "0.67649853", "0.6732974", "0.65874743", "0.65699786", "0.65237087", "0.6510117", "0.6487894", "0.64169663", "0.6364756", "0.6355743", "0.6287708", "0.6276623", "0.6265176", "0.62556565", "0.6157611", "0.6156538", "0.6124437", "0.6087526", "0.6029094", "0.60260576", "0.5979812", "0.59760714", "0.59760714", "0.5969595", "0.5969595", "0.5960867", "0.59504074", "0.59187967", "0.5911314", "0.58892405", "0.58740014", "0.58637345", "0.5860736", "0.58425534", "0.5839344", "0.58083004", "0.5807285", "0.5804454", "0.57979923", "0.5743374", "0.5714545", "0.5705131", "0.5701462", "0.56944704", "0.5685735", "0.56729317", "0.56571174", "0.5649004", "0.564491", "0.56186867", "0.5616008", "0.5612942", "0.5591676", "0.5578399", "0.5568638", "0.55657685", "0.55637866", "0.55610234", "0.55496496", "0.5542981", "0.5542981", "0.55393773", "0.5538013", "0.5521734", "0.5521303", "0.55154383", "0.5504771", "0.5500789", "0.54936826", "0.5487326", "0.54671776", "0.5466573", "0.54627496", "0.5451755", "0.5444239", "0.5435633", "0.5424835", "0.5423252", "0.54200125", "0.54038423", "0.54035217", "0.53997755", "0.53937805", "0.5392826", "0.53895813", "0.537938", "0.53740954", "0.53671163", "0.53617007", "0.53545517", "0.53542936", "0.5336466", "0.53362364", "0.5324314" ]
0.8471105
0
Tests PropertiesPaneladdModelElementSelectionListener(ModelElementSelectionListener) for accuracy.
public void testAddModelElementSelectionListener() { ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock(); instance.addModelElementSelectionListener(listener); instance.fireSelectionChangeEvent(new GuardImpl()); assertTrue("Failed to fire the event.", listener.IsCalled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAddModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to add the listener.\", listener.IsCalled());\n }", "public void testRemoveModelElementSelectionListener() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "@Ignore\n @Test\n public void It_should_selected_percent_correctly() {\n onView(allOf(\n withId(R.id.simple_percentage_bar_view_selected_linear_layout),\n isDescendantOfA(withId(R.id.simple_percentage_bar))))\n .check(matches(withText(SELECTED_VALUE)));\n }", "public void testFireSelectionChangeEvent() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "@Test\r\n\tpublic final void testGetSelectedElement() {\r\n\t\tassertNull(listener.getSelectedElement());\r\n\t}", "static interface ElementSelectionListener {\n \n public void selectionChanged(MultiViewDescription oldOne, MultiViewDescription newOne);\n \n public void selectionActivatedByButton(MouseEvent e);\n \n public void selectionActivatedByButton(ActionEvent e);\n \n }", "public void testRemoveAllModelElementSelectionListeners() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeAllModelElementSelectionListeners();\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void testRemoveModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void testFirePropertyChangeEvent() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }", "public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement);", "private void handleTreeSelectionEvent( TreeSelectionEvent e )\n {\n int row = treeTable.getSelectedRow();\n int column = treeTable.getSelectedColumn();\n validateCell( row, column );\n\n\n TreePath path = e.getPath();\n Object node = path.getLastPathComponent();\n if( node instanceof Property )\n updateToolTipPane( (Property)node );\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "@Test\n public void tc_VerifySelectedValue_MemorizedValue() throws Exception\n {\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n // Set Value in \"Memory\"\n OKW_Memorize_Sngltn.getInstance().set( \"Key1\", \"The one and only Value\" );\n\n // Wert in \"All_MethodsObj\" setzen.\n EN.SetValue( \"All_MethodsObj\", \"The one and only Value\" );\n // Prüfung des Schlüsselwortes?\n EN.VerifySelectedValue( \"All_MethodsObj\", \"${Key1}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n //assertEquals( \"Wert 1\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifySelectedValue()\", myClipBoard.getMethod() );\n }", "private void addModelListeners() {\n this.home.addSelectionListener(new SelectionListener() {\n public void selectionChanged(SelectionEvent ev) {\n List<HomePieceOfFurniture> selectedFurniture = \n Home.getFurnitureSubList(home.getSelectedItems());\n if (selectedFurniture.isEmpty()) {\n leadSelectedPieceOfFurniture = null;\n } else if (leadSelectedPieceOfFurniture == null \n || selectedFurniture.size() == 1\n || selectedFurniture.indexOf(leadSelectedPieceOfFurniture) == -1) {\n leadSelectedPieceOfFurniture = selectedFurniture.get(0);\n }\n }\n });\n \n // Add listener to update base plan lock when furniture movability changes\n final PropertyChangeListener furnitureChangeListener = new PropertyChangeListener() {\n public void propertyChange(PropertyChangeEvent ev) {\n if (HomePieceOfFurniture.Property.MOVABLE.name().equals(ev.getPropertyName())) {\n // Remove non movable pieces from selection when base plan is locked \n HomePieceOfFurniture piece = (HomePieceOfFurniture)ev.getSource();\n if (home.isBasePlanLocked()\n && isPieceOfFurniturePartOfBasePlan(piece)) {\n List<Selectable> selectedItems = home.getSelectedItems();\n if (selectedItems.contains(piece)) {\n selectedItems = new ArrayList<Selectable>(selectedItems);\n selectedItems.remove(piece);\n home.setSelectedItems(selectedItems);\n }\n }\n }\n }\n };\n for (HomePieceOfFurniture piece : home.getFurniture()) {\n piece.addPropertyChangeListener(furnitureChangeListener);\n }\n this.home.addFurnitureListener(new CollectionListener<HomePieceOfFurniture> () {\n public void collectionChanged(CollectionEvent<HomePieceOfFurniture> ev) {\n if (ev.getType() == CollectionEvent.Type.ADD) {\n ev.getItem().addPropertyChangeListener(furnitureChangeListener);\n } else if (ev.getType() == CollectionEvent.Type.DELETE) {\n ev.getItem().removePropertyChangeListener(furnitureChangeListener);\n }\n }\n });\n }", "@Override\n public void selectedSamplesChanged()\n {\n final List<ModelItem> items = model.getItems();\n final List<String> names = new ArrayList<>(items.size());\n final List<String> times = new ArrayList<>(items.size());\n final double[] values = new double[items.size()];\n int i=0;\n for (ModelItem item : items)\n {\n names.add(item.getResolvedDisplayName());\n final Optional<PlotDataItem<Instant>> sample = item.getSelectedSample();\n if (sample.isPresent())\n {\n times.add(TimestampFormats.MILLI_FORMAT.format(sample.get().getPosition()));\n values[i++] = sample.get().getValue();\n }\n else\n {\n times.add(\"-\");\n values[i++] = Double.NaN;\n }\n }\n final VType value = VTable.of(\n List.of(String.class, String.class, double.class),\n List.of(\"Trace\", \"Timestamp\", \"Value\"),\n List.of(names, times, ArrayDouble.of(values)));\n model_widget.propSelectionValue().setValue(value);\n }", "private void handleSearchButtonSelected() {\n\t\tShell shell = getShell();\n\t\tIProject project = getProject(editorLocal.getProjectName());\n\t\tIJavaProject javaProject = JavaCore.create(project);\n\t\tIType[] types = new IType[0];\n\t\tboolean[] radioSetting = new boolean[2];\n\t\ttry {\n\t\t\t// fix for Eclipse bug 66922 Wrong radio behaviour when switching\n\t\t\t// remember the selected radio button\n\t\t\tradioSetting[0] = mTestRadioButton.getSelection();\n\t\t\tradioSetting[1] = mTestContainerRadioButton.getSelection();\n\t\t\ttypes = TestSearchEngine.findTests(getLaunchConfigurationDialog(), javaProject, getTestKind());\n\t\t} catch (InterruptedException e) {\n\t\t\tsetErrorMessage(e.getMessage());\n\t\t\treturn;\n\t\t} catch (InvocationTargetException e) {\n\t\t\tLOG.error(\"Error finding test types\", e);\n\t\t\treturn;\n\t\t} finally {\n\t\t\tmTestRadioButton.setSelection(radioSetting[0]);\n\t\t\tmTestContainerRadioButton.setSelection(radioSetting[1]);\n\t\t}\n\t\tSelectionDialog dialog = new TestSelectionDialog(shell, types);\n\t\tdialog.setTitle(JUnitMessages.JUnitLaunchConfigurationTab_testdialog_title);\n\t\tdialog.setMessage(JUnitMessages.JUnitLaunchConfigurationTab_testdialog_message);\n\t\tif (dialog.open() == Window.CANCEL) {\n\t\t\treturn;\n\t\t}\n\t\tObject[] results = dialog.getResult();\n\t\tif ((results == null) || (results.length < 1)) {\n\t\t\treturn;\n\t\t}\n\t\tIType type = (IType) results[0];\n\t\tif (type != null) {\n\t\t\tmTestText.setText(type.getFullyQualifiedName('.'));\n\t\t}\n\t}", "@Test\n\tpublic void furtherSelectionTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\tint[] selection = { 1, 2, 3, 4, 5, 6 };\n\t\tint[] unSelecion = { 1, 2, 3 };\n\t\tint[] resultSelection = { 4, 5, 6 };\n\t\tint[] negativeSelection = { -1 };\n\n\t\t// select something and unselect parts of it\n\t\tselectionController.select(selection);\n\t\tassertArrayEquals(\"Selection was different\", selection, selectionController.getSelection());\n\t\tselectionController.unselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after unselection\", resultSelection,\n\t\t\t\tselectionController.getSelection());\n\n\t\t// do a reselection\n\t\tselectionController.reselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after reselection\", unSelecion, selectionController.getSelection());\n\n\t\tassertTrue(\"Item 1 is selected\", selectionController.isSelected(1));\n\t\tassertTrue(\"Item 2 is selected\", selectionController.isSelected(2));\n\t\tassertTrue(\"Item 3 is selected\", selectionController.isSelected(3));\n\t\tassertFalse(\"Item 4 is not selected\", selectionController.isSelected(4));\n\t\tassertFalse(\"Item 5 is not selected\", selectionController.isSelected(5));\n\t\tassertFalse(\"Item 6 is not selected\", selectionController.isSelected(6));\n\n\t\t// unselect all elements\n\t\tselectionController.unselect(unSelecion);\n\t\tassertFalse(\"Nothing was selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero\", 0, selectionController.getSelection().length);\n\n\t\t// select something negative\n\t\tselectionController.select(negativeSelection);\n\t\tassertFalse(\"Nothing should be selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after selection\", 0, selectionController.getSelection().length);\n\n\t\t// reselect something negative\n\t\tselectionController.select(selection);\n\t\tselectionController.reselect(negativeSelection);\n\t\tassertFalse(\"Nothing should be reselected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after reselection\", 0,\n\t\t\t\tselectionController.getSelection().length);\n\n\t}", "@Test\n public void selectsItemWithWidthAndHeightWithinSelectionArea() {\n Place place = mock(Place.class);\n when(place.getX()).thenReturn(0);\n when(place.getY()).thenReturn(0);\n when(place.getWidth()).thenReturn(10);\n when(place.getHeight()).thenReturn(10);\n\n net.addPlace(place);\n\n Rectangle selectionRectangle = new Rectangle(5, 5, 40, 40);\n controller.select(selectionRectangle);\n\n assertTrue(controller.isSelected(place));\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "@Override\r\n\tprotected void onUnitSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"unit button implementation\");\r\n\t}", "private boolean onClickModelAt_Parameters_xjal(Panel _panel, double _x, double _y, int _clickCount, boolean _publicOnly)\n/* 306: */ {\n/* 307:388 */ if ((!_publicOnly) && (modelElementContains(_x, _y, 20.0D, 30.0D)))\n/* 308: */ {\n/* 309:389 */ _panel.addInspect(20.0D, 30.0D, this, \"placeholder\");\n/* 310:390 */ return true;\n/* 311: */ }\n/* 312:392 */ return false;\n/* 313: */ }", "@Test\n\tpublic void testApplyToOptions_SetEquate_Selection() {\n\n\t\t// put the cursor on a scalar\n\t\tputCursorOnOperand(0x1004bbd, 0);\n\n\t\t// make a selection containing the scalar above.\n\t\tmakeSelection(tool, program, addr(\"1004bbd\"), addr(\"1004bc5\"));\n\n\t\tSetEquateDialog d = showSetEquateDialog();\n\n\t\tJRadioButton applyToCurrentButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToCurrent\");\n\t\tfinal JRadioButton applyToSelectionButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToSelection\");\n\t\tfinal JRadioButton applyToAllButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToAll\");\n\t\tJCheckBox overwriteExistingEquatesButton =\n\t\t\t(JCheckBox) findComponentByName(d.getComponent(), \"Overwrite\");\n\n\t\t//change as of 7.0 - dialog should come up with \"current location\" enabled.\n\t\tassertNotNull(applyToCurrentButton);\n\t\tassertTrue(applyToCurrentButton.isEnabled());\n\t\tassertFalse(applyToCurrentButton.isSelected());\n\n\t\t//have selection in this case so should be enabled but not selected\n\t\tassertNotNull(applyToSelectionButton);\n\t\tassertTrue(applyToSelectionButton.isEnabled());\n\t\tassertTrue(applyToSelectionButton.isSelected());\n\n\t\t//entire program should be enabled but not selected\n\t\tassertNotNull(applyToAllButton);\n\t\tassertTrue(applyToAllButton.isEnabled());\n\t\tassertFalse(applyToAllButton.isSelected());\n\n\t\t//overwrite existing should be visible and enabled, but not selected\n\t\tassertTrue(overwriteExistingEquatesButton.isVisible());\n\t\tassertTrue(overwriteExistingEquatesButton.isEnabled());\n\t\tassertFalse(overwriteExistingEquatesButton.isSelected());\n\n\t\t//select applyToSelection and verify that the other buttons respond accordingly\n\t\tapplyToSelectionButton.setSelected(true);\n\t\trunSwing(\n\t\t\t() -> applyToSelectionButton.getActionListeners()[0].actionPerformed(null));\n\t\tprogram.flushEvents();\n\t\twaitForSwing();\n\n\t\tassertFalse(applyToAllButton.isSelected());\n\t\tassertFalse(applyToCurrentButton.isSelected());\n\t\tassertTrue(applyToSelectionButton.isSelected());\n\t\tassertTrue(overwriteExistingEquatesButton.isEnabled());\n\t\tassertFalse(overwriteExistingEquatesButton.isSelected());\n\n\t\tclose(d);\n\t}", "@Test\n public void isSellableTest() {\n // TODO: test isSellable\n }", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "@Test\n public void testAddPropertyChangeListener() {\n // trivial\n }", "@Override\r\n protected void updateView() {\r\n putValue(ActionUtil.SELECTED_KEY,\r\n getActiveView() != null &&\r\n ! getActiveView().isPropertiesPanelVisible()\r\n );\r\n }", "public void propertyChange(PropertyChangeEvent evt) {\n\t\t/*\n\t\t * String prop = evt.getPropertyName();\n\t\t * if(prop.equals(ConceptSelector.CONCEPT_SELECTED) && evt.getNewValue()\n\t\t * != null){ ReportDocument doc =\n\t\t * caseAuthor.getReportPanel().getReportDocument();\n\t\t * doc.clearBackground(); ConceptEntry entry = (ConceptEntry)\n\t\t * evt.getNewValue(); for(ConceptLabel lbl: entry.getLabels()){\n\t\t * lbl.setBackgroundColor(Color.yellow); lbl.update(doc); } }\n\t\t */\n\t}", "@Test\n public void f9EditParametersTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(1000);\n\n //select 1st asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n FlowPane allModels = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n Pane selectedModel = (Pane) allModels.getChildren().get(0);\n clickOn(selectedModel).sleep(1000);\n\n //Changing Parameters\n VBox paraBox = (VBox) scene.getRoot().lookup(\"#modelParameters\");\n Pane batchSizePara = (Pane) paraBox.getChildren().get(0);\n TextField batchSizeVal = (TextField) batchSizePara.getChildren().get(1);\n clickOn(batchSizeVal).type(KeyCode.BACK_SPACE).sleep(500).type(KeyCode.BACK_SPACE).sleep(500).write(\"60\").sleep(1500);\n\n Pane qrPara = (Pane) paraBox.getChildren().get(1);\n CheckBox qrVal = (CheckBox) qrPara.getChildren().get(1);\n clickOn(qrVal).sleep(1500);\n\n Pane collinearPara = (Pane) paraBox.getChildren().get(2);\n CheckBox colinearVal = (CheckBox) collinearPara.getChildren().get(1);\n clickOn(colinearVal).sleep(1500);\n\n //Parameter after changing it from the default value should be 160\n assertEquals(\"Batch Size value is a now 160\", \"160\", batchSizeVal.getText());\n\n //reset to default\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(1000);\n clickOn(paraBox.getChildren().get(0)).sleep(1500);\n\n //Now go to the last model (Multilayer Perceptron)\n selectedModel = (Pane) allModels.getChildren().get(allModels.getChildren().size() - 1);\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n\n moveBy(0, 200).scroll(65, VerticalDirection.UP);\n clickOn(selectedModel).sleep(1000);\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n\n //Change parameters\n Pane autoBuildPara = (Pane) paraBox.getChildren().get(0);\n CheckBox autoBuildVal = (CheckBox) autoBuildPara.getChildren().get(1);\n clickOn(autoBuildVal).sleep(1500);\n\n Pane showGUIPara = (Pane) paraBox.getChildren().get(2);\n CheckBox showGUIVal = (CheckBox) showGUIPara.getChildren().get(1);\n clickOn(showGUIVal).sleep(1500);\n\n Pane momentumPara = (Pane) paraBox.getChildren().get(3);\n TextField momentumVal = (TextField) momentumPara.getChildren().get(1);\n clickOn(momentumVal).type(KeyCode.BACK_SPACE).sleep(500).write(\"1\").sleep(1500);\n\n //Momentum after changing shouldn't be the default 0.2 value anymore\n assertFalse(\"Momentum is default 0.2\", momentumVal.getText().equals(\"0.2\"));\n\n Pane decayPara = (Pane) paraBox.getChildren().get(9);\n CheckBox decayVal = (CheckBox) decayPara.getChildren().get(1);\n clickOn(decayVal).sleep(1500);\n\n// //Go to RandomForest Model\n selectedModel = (Pane) allModels.getChildren().get(2);\n clickOn(selectedModel).sleep(1000);\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n\n// //Change parameters\n Pane execPara = (Pane) paraBox.getChildren().get(1);\n TextField execVal = (TextField) execPara.getChildren().get(1);\n clickOn(execVal).sleep(1500);\n//\n Pane calcBagPara = (Pane) paraBox.getChildren().get(3);\n CheckBox calcBagVal = (CheckBox) calcBagPara.getChildren().get(1);\n clickOn(calcBagVal).sleep(1500);\n//\n Pane bagSizePara = (Pane) paraBox.getChildren().get(6);\n TextField bagSizeVal = (TextField) bagSizePara.getChildren().get(1);\n clickOn(bagSizeVal).type(KeyCode.BACK_SPACE).sleep(500).type(KeyCode.BACK_SPACE).sleep(500).write(\"0\").sleep(1500);\n\n //Bag Size after changing shouldn't be the default 100 value anymore\n assertFalse(\"Bag size is default 100\", bagSizeVal.getText().equals(\"100\"));\n //Have parameters VBox\n assertNotNull(\"Parameters box for the model exists\", paraBox);\n\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n clickOn(paraBox.getChildren().get(0)).sleep(2000);\n }", "private static void createAndShowGUI()\r\n {\r\n JFrame f = new JFrame(\"Viewer\");\r\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f.getContentPane().setLayout(new BorderLayout());\r\n \r\n JLabel usageLabel = new JLabel(\"<html>\"\r\n + \"Right mouse drags: Translate<br> \"\r\n + \"Left mouse drags: Create selection shape<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +shift: remove from selection<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +ctrl: add to selection<br>\"\r\n + \"Left mouse clicks: Select single<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +ctrl: toggle single selection<br>\"\r\n + \"Mouse wheel: Zoom uniformly<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +shift: zoom along x<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +ctrl: zoom along y<br>\"\r\n + \"</html>\");\r\n f.getContentPane().add(usageLabel, BorderLayout.NORTH);\r\n \r\n // Create a viewer, with mouse controls where the rotation is\r\n // disabled (left clicks are intended for the selection here)\r\n Viewer viewer = new Viewer();\r\n viewer.setMouseControl(\r\n MouseControls.createDefault(viewer, false, true));\r\n \r\n // Create the selection model\r\n SelectionModel<Point2D> selectionModel = SelectionModels.create();\r\n selectionModel.addSelectionListener(\r\n new LoggingSelectionListener<Point2D>());\r\n\r\n // Create the painter for the test\r\n ViewerSelectionTestPainter viewerSelectionTestPainter = \r\n new ViewerSelectionTestPainter(selectionModel::isSelected);\r\n \r\n // The painter also serves as the point- and shape based selector.\r\n // Make this clear by assigning it to respective variables\r\n PointBasedSelector<Point2D> pointBasedSelector = \r\n viewerSelectionTestPainter;\r\n ShapeBasedSelector<Point2D> shapeBasedSelector = \r\n viewerSelectionTestPainter;\r\n\r\n // Create a selection handler for clicks, and use it to connect\r\n // the viewer and the selection model\r\n SelectionHandler<Point2D> clickSelectionHandler = \r\n SelectionHandlers.createClick(pointBasedSelector);\r\n clickSelectionHandler.connect(viewer, selectionModel);\r\n \r\n // Create a selection handler for a lasso selection, and use it to \r\n // connect the viewer and the selection model\r\n SelectionHandler<Point2D> lassoSelectionHandler = \r\n SelectionHandlers.createLasso(shapeBasedSelector);\r\n lassoSelectionHandler.connect(viewer, selectionModel);\r\n\r\n // Create a selection handler for rectangles, which can be enabled\r\n // via the config panel\r\n SelectionHandler<Point2D> rectangleSelectionHandler = \r\n SelectionHandlers.createRectangle(shapeBasedSelector);\r\n \r\n viewer.addPainter(\r\n viewerSelectionTestPainter);\r\n f.getContentPane().add(viewer, BorderLayout.CENTER);\r\n\r\n JPanel configPanel = createConfigPanel(viewer, selectionModel, \r\n lassoSelectionHandler, rectangleSelectionHandler);\r\n f.getContentPane().add(configPanel, BorderLayout.EAST);\r\n\r\n JLabel infoLabel = new JLabel(\" \");\r\n f.getContentPane().add(infoLabel, BorderLayout.SOUTH);\r\n \r\n viewer.setPreferredSize(new Dimension(500,500));\r\n f.pack();\r\n viewer.setPreferredSize(null);\r\n f.setLocationRelativeTo(null);\r\n f.setVisible(true);\r\n \r\n viewer.setDisplayedWorldArea(-0.1, -0.1, 1.2, 1.2);\r\n }", "public void addMySelectionListener(EventListener l);", "public void valueChanged(TreeSelectionEvent ev) {\n controller.removeSelectionListener(modelSelectionListener);\r\n controller.setSelectedFurniture(getSelectedFurniture());\r\n controller.addSelectionListener(modelSelectionListener);\r\n }", "@Override\n\tprotected void setControlListeners() {\n\t\tcheckBox.selectedProperty().addListener(new ChangeListener<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void changed(\n\t\t\t\t\tObservableValue<? extends Boolean> observable,\n\t\t\t\t\tBoolean oldValue, Boolean newValue) {\n\t\t\t\tif (!settingsPane.isExperimentRunning()) {\n\t\t\t\t\tparameter.set(newValue);\n\t\t\t\t\tsettingsPane.revalidateParameters();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Test\n\tpublic void argumentTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\ttry {\n\t\t\tselectionController.select(null);\n\t\t\tAssert.fail(\"The new selection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t\ttry {\n\t\t\tselectionController.unselect(null);\n\t\t\tAssert.fail(\"The new unselection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t\ttry {\n\t\t\tselectionController.reselect(null);\n\t\t\tAssert.fail(\"The new reselection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\t}", "@Test\n public void seeingAttributesOfTheSelectedItemTest() {\n field = new Field();\n for (int i = 0; i < 1; i++) {\n for (int j = 0; j < 1; j++) {\n this.field.addCells(false, new Location(i, j));\n }\n }\n DarknessMagicBook dark = new DarknessMagicBook(\"HowToActColdAsSasuke\", 100, 1, 10);\n tactician1 = new Tactician(\"player1\", field, null);\n tactician1.setSelectedItem(dark);\n assertEquals(tactician1.getSelectedItem(),dark);\n assertEquals(tactician1.nameSelectedItem(), \"HowToActColdAsSasuke\");\n assertEquals(tactician1.powerSelectedItem(), 100);\n assertEquals(tactician1.minRangeSelectedItem(), 1);\n assertEquals(tactician1.maxRangeSelectedItem(), 10);\n }", "public void testChangeOfSpecies() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n oManager = new GUIManager(null);\n sFileName = writeValidXMLFile();\n oManager.inputXMLParameterFile(sFileName);\n \n //Now change the species\n String[] sNewSpecies = new String[] {\n \"Species 3\",\n \"Species 2\",\n \"Species 1\",\n \"Species 4\",\n \"Species 5\",\n \"Species 6\"};\n \n oManager.getTreePopulation().setSpeciesNames(sNewSpecies);\n ManagementBehaviors oManagementBeh = oManager.getManagementBehaviors();\n ArrayList<Behavior> p_oBehs = oManagementBeh.getBehaviorByParameterFileTag(\"QualityVigorClassifier\");\n assertEquals(1, p_oBehs.size());\n QualityVigorClassifier oQual = (QualityVigorClassifier) p_oBehs.get(0);\n \n assertEquals(3, oQual.mp_oQualityVigorSizeClasses.size());\n \n QualityVigorSizeClass oClass = oQual.mp_oQualityVigorSizeClasses.get(0);\n assertEquals(10, oClass.m_fMinDbh, 0.0001);\n assertEquals(20, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.78, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.88, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.61, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.55, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(1);\n assertEquals(20, oClass.m_fMinDbh, 0.0001);\n assertEquals(30, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.81, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.32, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.69, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.58, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(2);\n assertEquals(30, oClass.m_fMinDbh, 0.0001);\n assertEquals(40, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.34, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.57, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.26, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.66, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.45, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(2.35, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(2.43, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-2.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.12, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-1, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(-0.45, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.01, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.04, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.001, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.13, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.15, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.3, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.4, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.5, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(6, oQual.mp_iQualVigorDeciduous.getValue().size());\n for (int i = 0; i < oQual.mp_iQualVigorDeciduous.getValue().size(); i++)\n assertNotNull(oQual.mp_iQualVigorDeciduous.getValue().get(i));\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(1)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(0)).getValue());\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(3)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(4)).getValue());\n\n System.out.println(\"Change of species test succeeded.\");\n }\n catch (ModelException oErr) {\n fail(\"Change of species test failed with message \" + oErr.getMessage());\n }\n catch (java.io.IOException oE) {\n fail(\"Caught IOException. Message: \" + oE.getMessage());\n }\n finally {\n new File(sFileName).delete();\n }\n }", "public void modelPropertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "@MediumTest\n @Feature({ \"TextSelection\" })\n public void testEditableSelectionHandles() throws Throwable {\n doSelectionHandleTest(TestPageType.EDITABLE);\n }", "@Test\n public void tc_VerifySelectedValueWCM_MemorizedValue() throws Exception\n {\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n // Set Value in \"Memory\"\n OKW_Memorize_Sngltn.getInstance().set( \"Key1\", \"* one and * Value\" );\n\n // Wert in \"All_MethodsObj\" setzen.\n EN.SetValue( \"All_MethodsObj\", \"The one and only Value\" );\n // Kommen auch mehrere Sollwerte im Objekt ab?\n EN.VerifySelectedValueWCM( \"All_MethodsObj\", \"${Key1}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n //assertEquals( \"Wert 1\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifySelectedValue()\", myClipBoard.getMethod() );\n }", "@Override\r\n public void valueChanged(TreeSelectionEvent e) {\n }", "public void testPropertyChange() {\n System.out.println(\"propertyChange\");\n PropertyChangeEvent evt = null;\n Wizard instance = new Wizard();\n instance.propertyChange(evt);\n }", "public void mouseClicked(MouseEvent e) {\n JLabel label = (JLabel) e.getSource();\n\n // The logic will be executed only when all the configured model elements have\n // the same first and second association ends\n if (label.getText().length() > 0) {\n Association association = (Association) getConfiguredModelElements().get(0);\n List<AssociationEnd> ends = association.getConnections();\n\n if (label == labelAssociationEnd1) {\n // configure the panel with the first association end\n if (ends.size() > 0) {\n //getPropertiesPanel().fireSelectionChangeEvent(association);\n getPropertiesPanel().configurePanel(ends.get(0));\n getPropertiesPanel().fireSelectionChangeEvent(ends.get(0));\n\n // set it visible back, since listeners may hide it\n getPropertiesPanel().setVisible(true);\n }\n } else {\n // configure the panel with the second association end\n if (ends.size() > 1) {\n getPropertiesPanel().configurePanel(ends.get(1));\n getPropertiesPanel().fireSelectionChangeEvent(ends.get(1));\n\n // set it visible back, since listeners may hide it\n getPropertiesPanel().setVisible(true);\n }\n }\n }\n }", "@Test\n public void tc__VerifySelectedValue_EnviromentValue() throws Exception\n {\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n EN.SetValue( \"All_MethodsObj\", \"${TCN}\" );\n // Umgebungsvariable eingeben\n EN.VerifySelectedValue( \"All_MethodsObj\", \"${TCN}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( TestName, myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifySelectedValue()\", myClipBoard.getMethod() );\n }", "@Test\n public void tc_VerifySelectedValueREGX_MemorizedValue() throws Exception\n {\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n // Set Value in \"Memory\"\n OKW_Memorize_Sngltn.getInstance().set( \"Key1\", \".* one and .* Value\" );\n\n EN.SetValue( \"All_MethodsObj\", \"The one and only Value\" );\n // Kommen auch mehrere Sollwerte im Objekt ab?\n EN.VerifySelectedValueREGX( \"All_MethodsObj\", \"${Key1}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n //assertEquals( \"Wert 1\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifySelectedValue()\", myClipBoard.getMethod() );\n }", "public void valueChanged(TreeSelectionEvent e) {\n\t}", "public void valueChanged (TreeSelectionEvent event)\n {\n updateSelection();\n }", "@Test\n public void f8DisplayParametersTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(1000);\n\n //select first asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n\n FlowPane models = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n VBox parameters = (VBox) scene.getRoot().lookup(\"#modelParameters\");\n\n int i;\n //Iterate through all the models and their parameters\n for (int j = 0; j < models.getChildren().size(); j++) {\n i = 0;\n clickOn(models.getChildren().get(j));\n\n if (j == 4) {\n scroll(90, VerticalDirection.UP);\n }\n\n while (i < parameters.getChildren().size()) {\n clickOn(parameters.getChildren().get(i++)).sleep(500);\n\n if (i == 10) {\n scroll(60, VerticalDirection.UP);\n }\n }\n }\n\n assertEquals(\"There should be 8 models\", 8, models.getChildren().size());\n assertNotNull(\"Parameters exist\", parameters);\n }", "private void handleSelectedElement() {\n tabPane.setVisible(true);\n tabPane.getTabs().clear();\n AOElement e = null;\n if (selectedTreeItem.get() != null) e = selectedTreeItem.get().getValue();\n\n if (!(e instanceof AOLight) && !(e instanceof AOCamera) && !(e instanceof AOGeometry)) {\n tabPane.setVisible(false);\n\n } else {\n\n try {\n\n Tab t = FXMLLoader.load(getClass().getResource(\"/fxml/mainSettingsView.fxml\"));\n tabPane.getTabs().addAll(t);\n if (e instanceof ONode) t.setText(\"Node\");\n else if (e instanceof AOLight) t.setText(\"Light\");\n else if (e instanceof AOCamera) t.setText(\"Camera\");\n\n if (e instanceof ONode) {\n if (!((ONode) e).oGeos.isEmpty() && !(((ONode) e).oGeos.get(0) instanceof ONode)) {\n Tab t2 = FXMLLoader.load(getClass().getResource(\"/fxml/mainMaterialSettingsView.fxml\"));\n t2.setText(\"Material\");\n tabPane.getTabs().add(1, t2);\n tabPane.getSelectionModel().select(0);\n }\n }\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }", "@Override\r\n @Test\r\n @ConditionalIgnore(condition = IgnoreNotYetImplemented.class)\r\n public void testSelectedIndicesAfterSort() {\r\n int first = 0;\r\n int last = items.size() -1;\r\n getSelectionModel().select(first);\r\n Comparator comparator = new TreeItemComparator();\r\n FXCollections.sort(items, comparator);\r\n assertEquals(1, getSelectedIndices().size());\r\n assertEquals(last, getSelectedIndices().get(0).intValue());\r\n }", "public void propertyChange(PropertyChangeEvent e)\r\n {\r\n Object source = e.getSource();\r\n if (source == theNumberOfPolygonsField)\r\n {\r\n theNumberOfPolygons = ((Number)theNumberOfPolygonsField.getValue()).intValue();\r\n if (TRACE)\r\n System.out.println(\"Polygons: number of squares = \" + theNumberOfPolygons);\r\n }\r\n else if (source == theMaximumVertexCountField)\r\n {\r\n theMaximumVertexCount = ((Number)theMaximumVertexCountField.getValue()).intValue();\r\n if (TRACE)\r\n System.out.println(\"Polygons: maximum vertex count = \" + theMaximumVertexCount);\r\n }\r\n else if (source == theBBoxLengthField)\r\n {\r\n theBBoxLength = ((Number)theBBoxLengthField.getValue()).intValue();\r\n if (TRACE)\r\n System.out.println(\"Polygons: maximum side length = \" + theBBoxLength);\r\n }\r\n else if(source == theMinimumVertexCountField){\r\n \t theMinimumVertexCount = ((Number)theMinimumVertexCountField.getValue()).intValue();\r\n \t if (TRACE)\r\n System.out.println(\"Polygons: minimum vertex count = \" + theMinimumVertexCount);\r\n }\r\n }", "@Test(timeout=300000)\n public void test03() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.mouseExited((MouseEvent) null);\n }", "@Test\n public void testRemovePropertyChangeListener() {\n // trivial\n }", "public PlasmaSelectionTester() {\r\n\t}", "PropertyChangeListener[] getPropertyChangeListeners();", "@Test\n public void resalePropertyMatch() throws UiObjectNotFoundException {\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_create_post\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_resale_prop\")).click();\n device.findObject(By.text(\"Search building name\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"input_search\")).setText(\"Icon\");\n device.wait(Until.findObject(By.text(\"Icon Linera\")), 10000);\n device.findObject(By.text(\"Icon Linera\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_configuration\")).click();\n device.findObject(By.text(\"3 BHK\")).click();\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_pricing\")).click();\n device.findObject(By.text(\"7\")).click();\n device.findObject(By.text(\"5\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"0\")).click();\n device.findObject(By.text(\"Done\")).click();\n device.wait(Until.findObject(By.text(\"sq ft\")), 2000);\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"txt_carpet_area\")\n .childSelector(new UiSelector().className(Utils.EDIT_TEXT_CLASS))).setText(\"1200\");\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"dd_floor\")).click();\n device.findObject(By.text(\"Higher\")).click();\n device.findObject(By.text(\"4\")).click();\n UiScrollable postView = new UiScrollable(new UiSelector().scrollable(true));\n UiSelector postSelector = new UiSelector().text(\"POST\");\n postView.scrollIntoView(postSelector);\n device.findObject(postSelector).click();\n device.wait(Until.findObject(By.text(\"POST\").enabled(true)), 10000);\n String matchNameString = device.findObject(By.textContains(\"matches\")).getText().split(\" \")[0];\n device.findObject(By.text(\"POST\")).click();\n device.wait(Until.findObject(By.text(\"RESALE PROPERTY\")), 9000);\n Assert.assertNotEquals(\"Test Case Failed...No Match found\", \"no\", matchNameString.toLowerCase());\n String postMatchName = device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"lbl_name\")).getText();\n Assert.assertEquals(\"Test Case Failed...Match should have had been found with\", \"dialectic test\", postMatchName.toLowerCase());\n\n device.findObject(new UiSelector().resourceId(Utils.PACKAGE_NAME_PREFIX + \"btn_close\")).click();\n Utils.markPostExpired(device);\n }", "@Test\n public void f10ModelPerformanceTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(1000);\n\n //select first asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n\n //Modify sliders\n Slider trainSlider = (Slider) scene.getRoot().lookup(\"#trainSlider\");\n clickOn(trainSlider);\n type(KeyCode.TAB).type(KeyCode.RIGHT);\n type(KeyCode.TAB).type(KeyCode.RIGHT);\n moveBy(0, 10).clickOn().sleep(500).moveBy(0, 100).scroll(80, VerticalDirection.UP);\n\n FlowPane models = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n Pane additiveRegModel = (Pane) models.getChildren().get(5);\n Button evalButton = (Button) additiveRegModel.getChildren().get(additiveRegModel.getChildren().size() - 1);\n\n Text rmse = (Text) additiveRegModel.getChildren().get(additiveRegModel.getChildren().size() - 2);\n clickOn(rmse).sleep(3000);\n String oldRmseVal = rmse.getText();\n int i = 0;\n\n clickOn(evalButton);\n //incrementally check for 30 seconds to see if rmse has been updated\n do {\n if (rmse.getText().equals(oldRmseVal)) {\n sleep(2000);\n } else {\n break;\n }\n } while (++i < 15);\n\n clickOn(rmse).sleep(3000);\n\n assertNotNull(\"Evaluate button exists\", evalButton);\n assertNotNull(\"RMSE exists\", rmse);\n assertFalse(\"Assert current RMSE is different than old RMSE\", rmse.getText().equals(oldRmseVal));\n }", "public boolean isSelectionListener() {\n return true;\n }", "public void propertyChange(PropertyChangeEvent e) {\n\t\tString property = e.getPropertyName();\n\n\t\tif (isVisible() && (e.getSource() == optionPane)\n\t\t\t\t&& (JOptionPane.VALUE_PROPERTY.equals(property) || JOptionPane.INPUT_VALUE_PROPERTY.equals(property))) {\n\n\t\t\t// retrieve current value, check if initialized\n\t\t\tObject value = optionPane.getValue();\n\t\t\tif (value == JOptionPane.UNINITIALIZED_VALUE)\n\t\t\t\treturn;\n\n\t\t\t// reset current value\n\t\t\toptionPane.setValue(JOptionPane.UNINITIALIZED_VALUE);\n\n\t\t\tif (okString.equals(value)) {\n\t\t\t\tvalidChoice = true;\n\t\t\t\tsetVisible(false);\n\t\t\t} else {\n\t\t\t\tvalidChoice = false;\n\t\t\t\tsetVisible(false);\t\t\t\t\n\t\t\t\t// JOptionPane.showMessageDialog(optionPane.getRootFrame(),\n\t\t\t\t// \"No database connection established.\",\n\t\t\t\t// \"\",\n\t\t\t\t// JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void valueChanged(TreeSelectionEvent e) {\n\n }", "public void actionPerformed(ActionEvent e) {\n Object source = e.getSource();\n GSelection<Variant> sel = viewer.getSelection();\n Variant v = sel.isEmpty() ? null : sel.first();\n\n ImOption.apply(viewer.getModel()).foreach(schedule -> {\n\n // Force a repaint of the action if it's a button. This is an AWT bug.\n if (source instanceof JButton)\n ((JButton) source).repaint();\n\n if (source == add) {\n\n // Add a new variant. Selection will not change but position might.\n VariantEditor ve = new VariantEditor(context.getShell().getPeer());\n if (JOptionPane.CANCEL_OPTION != ve.showNew(\"Untitled\", (byte) 0, (byte) 0, (byte) 0))\n schedule.addVariant(ve.getVariantName(), ve.getVariantConditions(), ve.getVariantWindConstraint(), ve.getVariantLgsConstraint());\n setUpDownEnabledState(sel);\n\n } else if (source == del) {\n\n // Delete the selected variant. Selection will change.\n if (JOptionPane.NO_OPTION == JOptionPane.showConfirmDialog(context.getShell().getPeer(),\n \"Do you really want to remove this variant?\",\n \"Confirm Remove\", JOptionPane.YES_NO_OPTION))\n return;\n\n schedule.removeVariant(v);\n\n } else if (source == up) {\n\n // Move up. Selection will not change but position will.\n schedule.moveVariant(v, -1);\n setUpDownEnabledState(sel);\n\n } else if (source == down) {\n\n // Move down. Selection will not change but position will.\n schedule.moveVariant(v, 1);\n setUpDownEnabledState(sel);\n\n } else if (source == dup) {\n\n // Duplicate. Selection will not change but position might.\n Variant dup = schedule.duplicateVariant(v);\n dup.setName(\"Copy of \" + dup.getName());\n setUpDownEnabledState(sel);\n\n }\n });\n }", "void addModelEventListener(UmlChangeListener listener, Object modelelement, String[] propertyNames);", "protected void checkSelectGesture(GraphicsNodeEvent evt) {\n\n\t\tGraphicsNodeMouseEvent mevt = null;\n\t\tif (evt instanceof GraphicsNodeMouseEvent) {\n\t\t\tmevt = (GraphicsNodeMouseEvent) evt;\n\t\t}\n\n\t\tGraphicsNode source = evt.getGraphicsNode();\n\t\tif (isDeselectGesture(evt)) {\n\t\t\tif (selectionNode != null) {\n\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t}\n\t\t\tclearSelection();\n\t\t} else if (mevt != null) {\n\n\t\t\tPoint2D p = mevt.getPoint2D();\n\n\t\t\tif ((source instanceof Selectable) && (isSelectStartGesture(evt))) {\n\t\t\t\tif (selectionNode != source) {\n\t\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t\tselectionNode = source;\n\t\t\t\t\tif (source != null) {\n\t\t\t\t\t\tselectionNodeRoot = source.getRoot();\n\t\t\t\t\t\tselectionNodeRoot.addTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t((Selectable) source).selectAt(p.getX(), p.getY());\n\t\t\t\tdispatchSelectionEvent(new SelectionEvent(null, SelectionEvent.SELECTION_STARTED, null));\n\n\t\t\t} else if (isSelectEndGesture(evt)) {\n\t\t\t\tif (selectionNode == source) {\n\t\t\t\t\t((Selectable) source).selectTo(p.getX(), p.getY());\n\t\t\t\t}\n\t\t\t\tObject oldSelection = getSelection();\n\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\tShape newShape;\n\t\t\t\t\tnewShape = ((Selectable) selectionNode).getHighlightShape();\n\t\t\t\t\tdispatchSelectionEvent(new SelectionEvent(oldSelection, SelectionEvent.SELECTION_DONE, newShape));\n\t\t\t\t}\n\t\t\t} else if (isSelectContinueGesture(evt)) {\n\n\t\t\t\tif (selectionNode == source) {\n\t\t\t\t\tboolean result = ((Selectable) source).selectTo(p.getX(), p.getY());\n\t\t\t\t\tif (result) {\n\t\t\t\t\t\tShape newShape = ((Selectable) selectionNode).getHighlightShape();\n\n\t\t\t\t\t\tdispatchSelectionEvent(new SelectionEvent(null, SelectionEvent.SELECTION_CHANGED, newShape));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if ((source instanceof Selectable) && (isSelectAllGesture(evt))) {\n\t\t\t\tif (selectionNode != source) {\n\t\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t\tselectionNode = source;\n\t\t\t\t\tif (source != null) {\n\t\t\t\t\t\tselectionNodeRoot = source.getRoot();\n\t\t\t\t\t\tselectionNodeRoot.addTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t((Selectable) source).selectAll(p.getX(), p.getY());\n\t\t\t\tObject oldSelection = getSelection();\n\t\t\t\tShape newShape = ((Selectable) source).getHighlightShape();\n\t\t\t\tdispatchSelectionEvent(new SelectionEvent(oldSelection, SelectionEvent.SELECTION_DONE, newShape));\n\t\t\t}\n\t\t}\n\t}", "@Override\n public TestCaseResult test(Project project, boolean autoGrade) throws NotAutomatableException, NotGradableException {\n if (project.getClassesManager().isEmpty())\n throw new NotGradableException();\n Set<ClassDescription> classDescriptions = project.getClassesManager().get().findByTag(\"Paint Listener\");\n if (classDescriptions.isEmpty())\n return fail(\"No class tagged \\\"Paint Listener\\\"\");\n ClassDescription classDescription = new ArrayList<ClassDescription>(classDescriptions).get(0);\n\n // Get the views\n Class<?> paintListener = classDescription.getJavaClass();\n List<ClassDescription> views = new ArrayList<ClassDescription>();\n for (ClassDescription description : project.getClassesManager().get().getClassDescriptions()) {\n if (!description.getJavaClass().isInterface() && paintListener.isAssignableFrom(description.getJavaClass())) {\n views.add(description);\n }\n }\n\n // Count how many views register themselves as listeners in the constructor\n double listenerCount = 0;\n String notes = \"\";\n for (ClassDescription view : views) {\n // Get the constructors\n try {\n ClassOrInterfaceDeclaration classDef = CompilationNavigation.getClassDef(view.parse());\n List<ConstructorDeclaration> constructors = CompilationNavigation.getConstructors(classDef);\n\n // Look for one assignment in any constructor\n boolean found = false;\n for (ConstructorDeclaration constructor : constructors) {\n String code = constructor.toString();\n if (code.contains(\".addPropertyChangeListener(this)\")) {\n found = true;\n break;\n }\n }\n if (found)\n listenerCount++;\n else\n notes += \"Paint listener view \" + view.getJavaClass().getSimpleName() + \" doesn't register itself as a listener in its constructor.\\n\";\n } catch (IOException e) {\n // Don't do anything here.\n }\n }\n\n double count = views.size();\n return partialPass(listenerCount / count, notes);\n }", "public void validateSelection()\r\n {\r\n for (int i = 0; i<getSelectedElements().size(); ++i)\r\n {\r\n ReportElement re = (ReportElement)getSelectedElements().elementAt(i);\r\n if (!getCrosstabElement().getElements().contains( re ))\r\n {\r\n getSelectedElements().remove(re);\r\n --i;\r\n }\r\n }\r\n // UPDATE SELECTION NOW!!!\r\n }", "@Override\n public void valueChanged(final ListSelectionEvent e) {\n if (e.getValueIsAdjusting()) {\n return;\n }\n showObject();\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n ElExpression elExpression0 = new ElExpression(\"\");\n DynamicSelectModel dynamicSelectModel0 = null;\n try {\n dynamicSelectModel0 = new DynamicSelectModel(elExpression0, elExpression0, elExpression0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Could not create DynamicSelection model. Collection attribute was null or not an el-expression.\n //\n verifyException(\"wheel.util.DynamicSelectModel\", e);\n }\n }", "@Test(priority = 11)\n\tpublic void clickVehiclePreferences() throws Exception {\n\t\t\n\t\tdriver = DashboardPage.vehiclePreferences(driver);\n\t\t\n\t\t//ExcelUtils.setCellData(\"PASS\", 11, 1);\n\t}", "@Override\n \tpublic void valueChanged(ListSelectionEvent e) { \n \t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n \n \t\tif (!lsm.isSelectionEmpty()) {\n \t\t\tint selection = table.convertRowIndexToModel(getSelection(lsm));\n \t\t\tnotifySelectionListeners(list.getPackage(selection));\t\n \t\t}\n \t}", "@Test\r\n public void testShowRootNotificationItemsAtRootOff() {\r\n getView().setShowRoot(true);\r\n getSelectionModel().select(0);\r\n ListChangeReport report = new ListChangeReport(getSelectedItems());\r\n getView().setShowRoot(false);\r\n assertTrue(getSelectedItems().contains(getSelectedItem()));\r\n assertEquals(\"selectedItems must have fired\", 1, report.getEventCount());\r\n }", "public void valueChanged( TreeSelectionEvent e )\n {\n //throw new UnsupportedOperationException( \"Not supported yet.\" );\n }", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n modelToView(handle);\n }", "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n }", "@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tString name = ((JList) e.getSource()).getName();\n\t\tif (name.equals(\"pred\")){\n\t\t\tint selected = displayPred.getSelectedIndex();\n\t\t\tif (selected == -1)\n\t\t\t\tselected = 0;\n\t\t\tString loc = predParticles.get(selected).getPath();\n\t\t\tvm.updateParticleGame(loc);\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tint selected = displayPrey.getSelectedIndex();\n\t\t\tString loc = preyParticles.get(selected).getPath();\n\t\t\tvm.updateParticleGame(loc);\n\t\t}\n\t}", "@Override\n public Boolean getValue(SimInfo object) {\n return selectionModel.isSelected(object);\n }", "@Test\r\n public void testShowRootNotificationItemsOn() {\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n ListChangeReport report = new ListChangeReport(getSelectedItems());\r\n getView().setShowRoot(true);\r\n assertEquals(\"selectedItems must not fire if nothing changed\", 0, report.getEventCount());\r\n }", "protected void attemptGridStrokeSelection() {\n/* 298 */ StrokeChooserPanel panel = new StrokeChooserPanel(this.gridStrokeSample, this.availableStrokeSamples);\n/* */ \n/* 300 */ int result = JOptionPane.showConfirmDialog(this, panel, localizationResources\n/* 301 */ .getString(\"Stroke_Selection\"), 2, -1);\n/* */ \n/* */ \n/* 304 */ if (result == 0) {\n/* 305 */ this.gridStrokeSample.setStroke(panel.getSelectedStroke());\n/* */ }\n/* */ }", "@Test(timeout=300000)\n public void test11() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.mousePressed((MouseEvent) null);\n }", "public void projectPropertiesDisplay()\n\t{\n\t\ttree.setModel(null);\n\t\tredoProjectProperties();\n\t\tFileTree model = new FileTree(currentProject.toString()); //Create a new FileTree using the Selected File\n tree.setModel(model); //Set the model as the FileTree class model\n /***************************************************************************************\n * Title: FileSelectorModel \n * Author: S�bastien Le Callonnec\n * Date: September 18, 2019\n * Code version: version 1.0\n * Availability: https://www.weblogism.com/item/300/use-jtree-to-display-files-in-filesystem-ii\n * Modified slightly by the team to work with our project\n ***************************************************************************************/\n JLabel status = new JLabel(currentProject.toString());\n tree.addTreeSelectionListener(new TreeSelectionListener() \n {\n public void valueChanged(TreeSelectionEvent e) \n {\n folderNameGetter selectedNode = (folderNameGetter) tree.getLastSelectedPathComponent();\n if(selectedNode != null)\n {\n \tstatus.setText(selectedNode.getAbsolutePath());\n if (selectedNode.isFile()) \n {\n try \n {\n \tcurrentFile.setLength(0);\n \tcurrentFile.append(selectedNode);\n \tresetFileTitle();\n BufferedReader br = new BufferedReader(new FileReader(selectedNode.getAbsolutePath()));\n String line = \"\";\n String l = \"\";\n while ((line = br.readLine()) != null) \n {\n \tl += line + \"\\n\" ;\n }\n displayText(l);\n br.close();\n } \n catch (Exception exc) \n {\n exc.printStackTrace();\n }\n }\n }\n }\n });\n//*********************************************************************************************************************************************************************************************************************************\n spectralFilesScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); //Show scroll bars when necessary\n projectProperties.add(spectralFilesScrollPane); //Add to projectProperties JPanel\n redoProjectProperties();\n\t}", "void valueChanged(CalcModel model);", "void valueChanged(CalcModel model);", "@Test\r\n public void testShowRootNotificationIndicesOn() {\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n ListChangeReport report = new ListChangeReport(getSelectedIndices());\r\n getView().setShowRoot(true);\r\n assertEquals(\"selectedIndices must fire\", 1, report.getEventCount());\r\n }", "public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent();\n\n if (node == null)\n return;\n }", "@Override\n protected void mouseClicked(int x, int y, int mouseEvent)\n {\n if (mouseEvent != 0 || !this.propertyList.func_148179_a(x, y, mouseEvent))\n {\n this.propertyList.mouseClicked(x, y, mouseEvent);\n super.mouseClicked(x, y, mouseEvent);\n }\n }", "public void valueChanged(ListSelectionEvent e) {\r\n\t\tif (e.getValueIsAdjusting() == false)\r\n\t\t\tsetSelectedObjects();\r\n\r\n\t\tgetTable().repaint();\r\n\t}", "@Override\n\t\t\tpublic void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\n\t\t\t\t\n\t\t\t\tif(newValue)\tselectedFeatures.add(FEATURES[3]);\n\t\t\t\telse \t\t\tselectedFeatures.remove(FEATURES[3]);\n\n\t\t\t\tif(selectedFeatures.size() > 2){\n\t\t\t\t\tAlert dialogoAviso = new Alert(Alert.AlertType.WARNING);\n\t\t dialogoAviso.setHeaderText(\"Por favor, selcione apenas duas caracteristicas!\");\n\t\t dialogoAviso.showAndWait();\n\t\t homogeneidade.setSelected(false);\n\t\t\t\t}\n\n\t\t\t\tfor(Integer i: selectedFeatures) System.out.println(\"caracteristcas selecionadas: \"+i);\n\t\t\t}", "@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}", "public void testChangeListener() throws Exception\n {\n checkFormEventListener(CHANGE_BUILDER, \"CHANGE\");\n }", "public interface PreferenceSelectionListener{\n void onParentSelected(PreferenceCategoryEntity parent, boolean state);\n void onChildSelected(PreferenceCategoryEntity parent, PreferenceEntity child, boolean state);\n }", "@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }", "@Test\r\n\tpublic static void PointOfViewVisualTest() throws Exception\r\n\t{\n\t\tCommonTestStepActions.GoToExpensePage(); // #2\r\n\t\tCommonTestStepActions.VerifyMonthPullDownFormat(); // #1\r\n\t\t\r\n\t\t// #3 Switch the month selector through various selections - Thirteen descending months are available for selection.\r\n\t\tCommonTestStepActions.VerifyMonthPullDownSelectionsAndContent();\r\n\t\t\r\n\t\t// #4\r\n\t\t// verify the countries and the vendors for each country are in alphabetical order.\r\n\t\tCommonTestStepActions.VerifyCountryAndVendorListSorted();\r\n\t\t\r\n\t\tDebugTimeout(9999, \"DONE\");\t\t\r\n\t\t\r\n\r\n\t\t// drilling down into controls.\r\n\t\t//WebElement web;\r\n\t\t// //web = driver.findElement(By.xpath(\"//div[@id='highcharts-2']/*/*/*/..[@class='highcharts-axis-labels highcharts-xaxis-labels']\"));\r\n\t\t// //web = driver.findElement(By.xpath(\"//div[@id='highcharts-2']/*/*/*\"));\r\n\t\t//web = driver.findElement(By.xpath(\"//div[@id='highcharts-2']/*/*/*/..\"));\r\n\t\t//web = driver.findElement(By.xpath(\"(//div[@id='highcharts-2']/*/*/*/..)[8]\"));\r\n\t\t//String [] strArray= driver.findElement(By.xpath(\"(//div[@id='highcharts-2']/*/*/*/..)[8]\")).getText().split(\"\\n\");\r\n\t\t//ShowArray(strArray); \r\n\t\t//strArray= driver.findElement(By.xpath(\".//*[@id='highcharts-0']/*/*[@class='highcharts-legend']\")).getText().split(\"\\n\");\r\n\t\t//ShowArray(strArray);\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private void addListener() {\n\t\tOperatorPair operators = chooseOperators(name);\n\t\t\n\t\taddActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tif (inversion.isSelected()) {\n\t\t\t\t\tmodel.setValue(operators.inversed.applyAsDouble(model.getValue()));\n\t\t\t\t} else {\n\t\t\t\t\tmodel.setValue(operators.original.applyAsDouble(model.getValue()));\n\t\t\t\t}\n\t\t\t} catch(IllegalArgumentException ex) {\n\t\t\t\tmodel.clearAll();\n\t\t\t\tpopupMessage(\"Cannot perform that operation.\");\n\t\t\t}\n\t\t});\n\t}", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = new Label(errorPage0, dynamicSelectModel0);\n dynamicSelectModel0.setComponent(label0);\n Component component0 = dynamicSelectModel0.getComponent();\n assertEquals(\"Label_1\", component0.getComponentId());\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setGroundColor((-733));\n homeEnvironment0.setPhotoHeight(0);\n homeEnvironment0.setVideoFrameRate(0);\n PropertyChangeListener propertyChangeListener0 = mock(PropertyChangeListener.class, new ViolatedAssumptionAnswer());\n PropertyChangeListenerProxy propertyChangeListenerProxy0 = new PropertyChangeListenerProxy(\"Content isn't a JAR entry\", propertyChangeListener0);\n PropertyChangeListenerProxy propertyChangeListenerProxy1 = new PropertyChangeListenerProxy(\"Content isn't a JAR entry\", propertyChangeListenerProxy0);\n homeEnvironment0.setPhotoHeight(0);\n assertEquals(0, homeEnvironment0.getVideoFrameRate());\n }", "@Override\n\t\t\tpublic void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\n\t\t\t\t\n\t\t\t\tif(newValue)\tselectedFeatures.add(FEATURES[1]);\n\t\t\t\telse \t\t\tselectedFeatures.remove(FEATURES[1]);\n\n\t\t\t\tif(selectedFeatures.size() > 2){\n\t\t\t\t\tAlert dialogoAviso = new Alert(Alert.AlertType.WARNING);\n\t\t dialogoAviso.setHeaderText(\"Por favor, selcione apenas duas caracteristicas!\");\n\t\t dialogoAviso.showAndWait();\n\t\t energy.setSelected(false);\n\t\t\t\t}\n\n\t\t\t\tfor(Integer i: selectedFeatures) System.out.println(\"caracteristcas selecionadas: \"+i);\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\tif (meterialButton.getSelectedMeterial() == null) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tboolean isNonferrous = meterialButton.getSelectedMeterial().getMeterialStandard().getProperty().isNonferrous();\r\n\t\t\tSystem.out.println(isNonferrous);\r\n\t\t\tif (isNonferrous) {\r\n\t\t\t\ttubeClassBox.removeAllItems();\r\n\t\t\t\ttubeClassBox.addItem(\"高精级\");\r\n\t\t\t} else {\r\n\t\t\t\ttubeClassBox.removeAllItems();\r\n\t\t\t\ttubeClassBox.addItem(\"II\");\r\n\t\t\t\ttubeClassBox.addItem(\"I\");\r\n\t\t\t}\r\n\r\n\t\t}", "@Override\n\tpublic void valueChanged(TreeSelectionEvent eve) {\n\t DefaultMutableTreeNode node = (DefaultMutableTreeNode)\n\t ((JTree) eve.getSource()).getLastSelectedPathComponent();\n\n\t if (node == null)\n\t //Nothing is selected. \n\t return;\n\n\t Object nodeInfo = node.getUserObject();\n\t if (node.isLeaf()) {\n\t \tHackNode book = (HackNode)nodeInfo;\n\t \t//System.out.println(book.location);\n\t loadHack(book.loc);\n\t }\n\t}", "public void onComponentSelection(){\r\n\r\n }", "public final void propertyChange(final PropertyChangeEvent event) {\n\t\tfinal Object subject = event.getSource();\n\t\tfinal String changedProperty = event.getProperty();\n\n\t\tif (PropertyChangeNames.isStatusChange(changedProperty)) {\n\t\t\tassert ModelUtils.isModelItem(subject);\n\n\t\t\tif (subject == deviceUnderDisplay) {\n\t\t\t\t// final DeviceStatus status = (DeviceStatus)\n\t\t\t\t// event.getNewValue();\n\t\t\t\tif (compositeUnderDisplay instanceof DeviceUI\n\t\t\t\t\t\t&& !compositeUnderDisplay.isDisposed()) {\n\t\t\t\t\t((DeviceUI) compositeUnderDisplay)\n\t\t\t\t\t\t\t.updateControls((Device) subject);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (PropertyChangeNames.isNodeRemove(changedProperty)) {\n\t\t\tViewUtils.disposeExistingControls(top);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t} else if (PropertyChangeNames.isProjectLoading(changedProperty)) {\n\t\t\t/*\n\t\t\t * Handle the change of the current project.\n\t\t\t */\n\t\t\tif (subject instanceof Project) {\n\t\t\t\tfinal Project project = (Project) subject;\n\t\t\t\tfinal NetworkInterfaceManager manager = project\n\t\t\t\t\t\t.getNetworkInterfaceManager();\n\n\t\t\t\tif (manager != null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the network status listener as a network monitor in\n\t\t\t\t\t * order to receive all the network events.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addConnectionStatusListener(connectionStatusListener);\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the dispatcher status listener to show warnings when\n\t\t\t\t\t * messages are not being delivered.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addDispatcherListener(dispatcherListener);\n\t\t\t\t}\n\n\t\t\t\tProjectModel.getInstance().addDeviceConnectivityListener(\n\t\t\t\t\t\tconnectivityChangeListener);\n\t\t\t}\n\n\t\t\tsetDeviceUnderDisplay(null);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t}\n\t}" ]
[ "0.60350645", "0.6028438", "0.60071856", "0.5973447", "0.58498305", "0.5847494", "0.58251953", "0.56247044", "0.56158054", "0.55980605", "0.54686016", "0.53808856", "0.53314507", "0.5330178", "0.53146815", "0.52676135", "0.5235843", "0.5211465", "0.51813495", "0.51590526", "0.5153056", "0.5148754", "0.5147422", "0.5142611", "0.5136274", "0.51356274", "0.51044255", "0.50933605", "0.5066919", "0.5047891", "0.5038744", "0.50245386", "0.5006764", "0.4986833", "0.4986149", "0.49855384", "0.49808747", "0.49800044", "0.49754038", "0.49709344", "0.4970549", "0.49587435", "0.49416", "0.49395975", "0.49242896", "0.49222305", "0.49099463", "0.49093798", "0.48981452", "0.48955908", "0.4873557", "0.4869233", "0.4853078", "0.48504552", "0.48501268", "0.4849718", "0.48487663", "0.48484355", "0.48448828", "0.48447007", "0.48387605", "0.48348302", "0.4831068", "0.48295996", "0.48253962", "0.4815888", "0.48136473", "0.48132747", "0.48129967", "0.480743", "0.48058203", "0.48051", "0.479764", "0.47921333", "0.47862482", "0.47838095", "0.4783522", "0.47808078", "0.47773933", "0.47647047", "0.47617206", "0.47617206", "0.47597012", "0.4757055", "0.47537315", "0.4751731", "0.47448328", "0.47369337", "0.47345373", "0.47289917", "0.47270417", "0.47228783", "0.47210094", "0.47156748", "0.47110868", "0.4709809", "0.46981555", "0.46959767", "0.46922162", "0.46914023" ]
0.65998656
0
Tests PropertiesPanelremoveModelElementSelectionListener(ModelElementSelectionListener) for accuracy.
public void testRemoveModelElementSelectionListener() { ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock(); instance.addModelElementSelectionListener(listener); instance.removeModelElementSelectionListener(listener); instance.fireSelectionChangeEvent(new GuardImpl()); assertFalse("Failed to remove the listener.", listener.IsCalled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testRemoveAllModelElementSelectionListeners() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeAllModelElementSelectionListeners();\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void testRemoveModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement);", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "public void removeMySelectionListener(EventListener l);", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String[] propertyNames);", "@Test\n public void testRemovePropertyChangeListener() {\n // trivial\n }", "public void testAddModelElementSelectionListener() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "public void removeTestCase(){\n\t\tgetSelectedPanel().removeSelectedTestCase(); \n\t}", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String propertyName);", "public void removeSelectionListener (SelectionListener listener) {\r\n\tcheckWidget();\r\n\tif (listener == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (eventTable == null) return;\r\n\teventTable.unhook (SWT.Selection, listener);\r\n\teventTable.unhook (SWT.DefaultSelection,listener);\t\r\n}", "void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String[] propertyNames);", "public void removeSelectionListener(SelectionListener listener) {\r\n\tcheckWidget();\r\n\tif (listener == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (eventTable == null) return;\r\n\teventTable.unhook (SWT.Selection, listener);\r\n\teventTable.unhook (SWT.DefaultSelection,listener);\t\r\n}", "@Override\r\n public void removeNotify() {\r\n // remove listener\r\n component.getResults().removeLabTestListener(this);\r\n \r\n super.removeNotify();\r\n }", "void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String propertyName);", "@Override\r\n public void rmValueListener(PropertyChangeListener l) {\n\r\n }", "@Override\n public void removePropertyChangeListener( String propertyName,PropertyChangeListener listener )\n {\n if( componentModel == null )\n return;\n\n if( propertyName==null )\n {\n componentModel.removePropertyChangeListener( listener );\n }\n else\n {\n Property prop = componentModel.findProperty( propertyName );\n if ( prop != null )\n {\n prop.removePropertyChangeListener( listener );\n }\n }\n }", "@Test\n\t@TestProperties(name = \"Clear element ${by}:${locator} selection\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void clearSelections() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "@Override\n\tpublic void removeSelectionListener(SelectionListener l) {\n\t\tif (listeners != null) {\n\t\t\tlisteners.remove(l);\n\t\t}\n\t}", "@Override\n public void removePropertyChangeListener(PropertyChangeListener listener) {\n\n }", "protected void removeSelection() {\n\t\tBEAN oldBean = getInternalValue();\n\t\tsetInternalValue(null);\n\t\ttextField.setValue(null);\n\t\tif (searchListener != null) {\n\t\t\tsearchListener.remove(oldBean);\n\t\t}\n\t}", "public abstract void removePropertyChangeListener(IPropertyChangeListener listener);", "@Test\r\n\tpublic final void testGetSelectedElement() {\r\n\t\tassertNull(listener.getSelectedElement());\r\n\t}", "public void removePropertyChangeListener(PropertyChangeListener l);", "public abstract void removePropertyChangeListener(PropertyChangeListener listener);", "public void validateSelection()\r\n {\r\n for (int i = 0; i<getSelectedElements().size(); ++i)\r\n {\r\n ReportElement re = (ReportElement)getSelectedElements().elementAt(i);\r\n if (!getCrosstabElement().getElements().contains( re ))\r\n {\r\n getSelectedElements().remove(re);\r\n --i;\r\n }\r\n }\r\n // UPDATE SELECTION NOW!!!\r\n }", "public void removeSelectionListener(SelectionListener listener) {\n\tcheckWidget();\n\tif (listener == null) error (SWT.ERROR_NULL_ARGUMENT);\n\tif (eventTable == null) return;\n\teventTable.unhook(SWT.Selection, listener);\n\teventTable.unhook(SWT.DefaultSelection,listener);\n}", "void removeDrawingModelListener(DrawingModelListener l);", "public void clearComponentSelection(){\r\n ComponentSelectionTree.clearSelection();\r\n }", "@Override\n\tpublic void removePropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "public void removeDrawingModelListener(DrawingModelListener l);", "void removePropertyListener(PropertyListener listener);", "public void removePropertyChangeListener(PropertyChangeListener listener);", "public void removeSelectionListener(SelectionListener listener) {\n\tcheckWidget ();\n\tif (listener == null) error (SWT.ERROR_NULL_ARGUMENT);\n\tif (eventTable == null) return;\n\teventTable.unhook (SWT.Selection, listener);\n\teventTable.unhook (SWT.DefaultSelection,listener);\t\n}", "public void removeSelectionListener(SelectionListener listener) {\n \t\tfSelectionListeners.remove(listener);\n \t}", "public void removeSelectionListener( SelectionListener listener ) {\n checkWidget();\n if ( listener == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n // if (eventTable == null) return;\n // eventTable.unhook (SWT.Selection, listener);\n // eventTable.unhook (SWT.DefaultSelection,listener);\n selectionListeners.remove( listener );\n }", "@Override\n public void deselectGolem() {\n }", "public void removeSelectionListener(final ConfigurationSelectionListener listener) {\n\t\tselectionListeners.remove(listener);\n\t}", "public void removeListener(PropertyChangeListener listener, String propertyType);", "@Test(groups = \"smoke\")\n public void testKeepSelected() {\n String textSource = pickList.advanced().getSourceList().getItem(0).getText();\n pickList.add(0);\n ListItem item = pickList.advanced().getTargetList().getItem(0);\n assertTrue(item.getRootElement().getAttribute(\"class\").contains(\"rf-pick-sel\"));\n assertEquals(item.getText(), textSource);\n\n pickList.remove(0);\n item = pickList.advanced().getSourceList().getItem(ChoicePickerHelper.byIndex().last());\n assertTrue(item.getRootElement().getAttribute(\"class\").contains(\"rf-pick-sel\"));\n assertEquals(item.getText(), textSource);\n assertEquals(Utils.getIndexOfElement(item.getRootElement()), pickList\n .advanced().getSourceList().size() - 1, \"Index of removed item.\");\n }", "void removePropertyChangeListener(PropertyChangeListener listener);", "void removePropertyChangeListener(PropertyChangeListener listener);", "public void testFireSelectionChangeEvent() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "public void removePropertyChangeListener(PropertyChangeListener listener)\n {\n }", "public void testRemoveAt() {\n if (disableTestsBug347491) {\n System.out.println(getName() + \" disabled due to Bug 347491\");\n return;\n }\n if (disableTestsBug493357) {\n System.out.println(getName() + \" disabled due to Bug 493357\");\n return;\n }\n assertTrue(\"SWT.SetData not received\", setDataCalled);\n TreeViewer treeViewer = (TreeViewer) fViewer;\n // correct what the content provider is answering with\n treeViewer.getTree().update();\n offset = 1;\n treeViewer.remove(treeViewer.getInput(), 3);\n assertEquals(NUM_ROOTS - 1, treeViewer.getTree().getItemCount());\n treeViewer.setSelection(new StructuredSelection(new Object[] { \"R-0\", \"R-1\" }));\n assertEquals(2, ((IStructuredSelection) treeViewer.getSelection()).size());\n processEvents();\n assertTrue(\"expected less than \" + (NUM_ROOTS / 2) + \" but got \" + updateElementCallCount, updateElementCallCount < NUM_ROOTS / 2);\n updateElementCallCount = 0;\n // printCallbacks = true;\n // correct what the content provider is answering with\n offset = 2;\n treeViewer.remove(treeViewer.getInput(), 1);\n assertEquals(NUM_ROOTS - 2, treeViewer.getTree().getItemCount());\n processEvents();\n assertEquals(1, ((IStructuredSelection) treeViewer.getSelection()).size());\n assertEquals(1, updateElementCallCount);\n // printCallbacks = false;\n }", "protected void uninstallListeners() {\n frame.removePropertyChangeListener(propertyChangeListener);\n }", "default void removePropertyChangeListener(PropertyChangeListener listener)\r\n {\r\n }", "@Override\n\tpublic void removeSelectionChangeListener(SelectionChangeListener listener) {\n\n\t}", "@Test(priority = 15)\n public void unselectCheckboxesTest() {\n driver.findElement(By.xpath(\"//label[@class='label-checkbox'][1]/input\")).click();\n driver.findElement(By.xpath(\"//label[@class='label-checkbox'][3]/input\")).click();\n assertFalse(driver.findElement(By.xpath(\"//label[@class='label-checkbox'][1]/input\"))\n .isSelected());\n assertFalse(driver.findElement(By.xpath(\"//label[@class='label-checkbox'][3]/input\"))\n .isSelected());\n }", "public void removeSelectionListener(SelectionListener listener) {\n checkWidget();\n if (listener == null)\n error(SWT.ERROR_NULL_ARGUMENT);\n if (eventTable == null)\n return;\n eventTable.unhook(SWT.Selection, listener);\n eventTable.unhook(SWT.DefaultSelection, listener);\n }", "@Override\n public boolean remove(Object o) //Modify to take in Authenication ID for future logging function\n {\n if(super.remove(o)){\n if(comboBoxModelSelectedItem.equals(o))\n comboBoxModelSelectedItem = ((this.size()>0)? this.first() : null);\n modelListenersNotify();\n ViewerController.saveModel();\n return true;\n }\n return false;\n }", "public void removePropertyChangeListener(PropertyChangeListener pListener) {\n \tmodel.removePropertyChangeListener(pListener);\n }", "public void removePropertyChangeListener (PropertyChangeListener l)\n { pcs.removePropertyChangeListener (l); }", "public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tthis.defaultSetup();\n\t}", "public void testAddModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to add the listener.\", listener.IsCalled());\n }", "public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener) {\r\n\tgetPropertyChange().removePropertyChangeListener(listener);\r\n}", "public void valueChanged(TreeSelectionEvent ev) {\n controller.removeSelectionListener(modelSelectionListener);\r\n controller.setSelectedFurniture(getSelectedFurniture());\r\n controller.addSelectionListener(modelSelectionListener);\r\n }", "public void remove(SVGElementModel model) {\n \t\tif (model.getOwner() == this) {\n \t\t\t// Update the SVG model\n \t\t\torphan(model);\n \n \t\t\t// Update the DOM tree\n \t\t\tElement element = model.getElement();\n \t\t\tElement parentElement = element.getParentElement();\n \t\t\tif (parentElement != null) {\n \t\t\t\tparentElement.removeChild(element);\n \t\t\t}\n \t\t\tElement twin = model.getTwin();\n \t\t\tElement parentTwin = twin.getParentElement();\n \t\t\tif (parentTwin != null) {\n \t\t\t\tparentTwin.removeChild(twin);\n \t\t\t}\n \t\t\t\n \t\t\t// Update the model tree\n \t\t\tif (model.getParent() != null) {\n \t\t\t\tmodel.getParent().remove(model);\n \t\t\t}\n \t\t\t\n \t\t\t// Update the store\n \t\t\tstore.removeAll(model);\n \t\t\tstore.remove(model);\n \t\t}\n \t}", "public void removeAllListeners()\n {\n tableModelListeners.clear();\n comboBoxModelListDataListeners.clear();\n }", "void removePropertyChangedObserver(PropertyChangeObserver observer);", "public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener) {\n }", "public void removePropertyChangeListener (PropertyChangeListener l) {\n pcs.removePropertyChangeListener (l);\n }", "public void ClickClearAllSelection(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Clear All Selection Button should be clicked\");\r\n\t\ttry{ \r\n\t\t\tclick(locator_split(\"btnClearAllSelections\")); \r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Clear All Selection Button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Clear All Selection Button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnClearAllSelections\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void removeListSelectionListener(ListSelectionListener listener)\r\n {\r\n listSelectionListeners.remove(listener);\r\n }", "protected void uninstallListeners() {\n spinner.removePropertyChangeListener(propertyChangeListener); }", "void removeChangeListener(PropertyChangeListener<? super R> listener);", "protected void uninstallListeners() { this.tipPane.removePropertyChangeListener(this.changeListener); }", "@Override\n public void onValueDeselected() {\n }", "void deleteModelElement(EObject modelElement);", "public void deselectNotify() {\n }", "public void removeSelectionListener( final SelectionListener listener ) {\n SelectionEvent.removeListener( this, listener );\n }", "@Test\n public void projectIsNotSelected_doesNotTriggerListeners() {\n projectSelector.handleOpenProjectSelectionDialog();\n\n verifyNoMoreInteractions(projectSelectionListener);\n }", "private void clearPreviousTest() {\r\n for (ActionListener al : this.jComboBoxListeners) {\r\n this.jComboBox.removeActionListener(al);\r\n }\r\n\r\n this.jComboBox.removeAllItems();\r\n this.jTabbedPane.removeAll();\r\n this.currentTest.clear();\r\n }", "@FXML\n\tpublic void removeRegistrationPair() {\n\t\tRegistrationPair selected = m_registrationState.getSelected();\n\t\tm_registrationState.removePair(selected);\n\t}", "static interface ElementSelectionListener {\n \n public void selectionChanged(MultiViewDescription oldOne, MultiViewDescription newOne);\n \n public void selectionActivatedByButton(MouseEvent e);\n \n public void selectionActivatedByButton(ActionEvent e);\n \n }", "public void removeSelectedAction() {\n\t\tvar selectedItems = pairsListView.getSelectionModel().getSelectedItems();\n\t\tpairsListView.getItems().removeAll(selectedItems);\n\t}", "private void addModelListeners() {\n this.home.addSelectionListener(new SelectionListener() {\n public void selectionChanged(SelectionEvent ev) {\n List<HomePieceOfFurniture> selectedFurniture = \n Home.getFurnitureSubList(home.getSelectedItems());\n if (selectedFurniture.isEmpty()) {\n leadSelectedPieceOfFurniture = null;\n } else if (leadSelectedPieceOfFurniture == null \n || selectedFurniture.size() == 1\n || selectedFurniture.indexOf(leadSelectedPieceOfFurniture) == -1) {\n leadSelectedPieceOfFurniture = selectedFurniture.get(0);\n }\n }\n });\n \n // Add listener to update base plan lock when furniture movability changes\n final PropertyChangeListener furnitureChangeListener = new PropertyChangeListener() {\n public void propertyChange(PropertyChangeEvent ev) {\n if (HomePieceOfFurniture.Property.MOVABLE.name().equals(ev.getPropertyName())) {\n // Remove non movable pieces from selection when base plan is locked \n HomePieceOfFurniture piece = (HomePieceOfFurniture)ev.getSource();\n if (home.isBasePlanLocked()\n && isPieceOfFurniturePartOfBasePlan(piece)) {\n List<Selectable> selectedItems = home.getSelectedItems();\n if (selectedItems.contains(piece)) {\n selectedItems = new ArrayList<Selectable>(selectedItems);\n selectedItems.remove(piece);\n home.setSelectedItems(selectedItems);\n }\n }\n }\n }\n };\n for (HomePieceOfFurniture piece : home.getFurniture()) {\n piece.addPropertyChangeListener(furnitureChangeListener);\n }\n this.home.addFurnitureListener(new CollectionListener<HomePieceOfFurniture> () {\n public void collectionChanged(CollectionEvent<HomePieceOfFurniture> ev) {\n if (ev.getType() == CollectionEvent.Type.ADD) {\n ev.getItem().addPropertyChangeListener(furnitureChangeListener);\n } else if (ev.getType() == CollectionEvent.Type.DELETE) {\n ev.getItem().removePropertyChangeListener(furnitureChangeListener);\n }\n }\n });\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "public void removeSelectedItem() {\r\n\t\tint i = getSelectedIndex();\r\n\t\tif(i != -1)\r\n\t\t\tlistModel.removeElementAt(i);\r\n\t}", "private DefaultListModel<String> removeItem(JList<String> list, DefaultListModel<String> listModel) {\r\n\t\tint[] selectedItems = list.getSelectedIndices();\r\n\t\tfor(int i=selectedItems.length; i>0; i--)\r\n\t\t\tlistModel.removeElementAt(selectedItems[i-1]);\r\n\t\treturn listModel;\r\n\t}", "public void test_removeTypedValue_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n\n instance.removeTypedValue(typedValue);\n assertFalse(\"The element is not removed properly.\", instance.containsTypedValue(typedValue));\n }", "public void removeSelectionTreeListener(final SelectionTreeListener listener);", "@Override\r\n @Test\r\n public void testSelectedOnClearItemsSingle() {\r\n int index = 2;\r\n getSelectionModel().select(index);\r\n TreeItem parent = getSelectedItem().getParent();\r\n int parentIndex = getView().getRow(parent);\r\n clearItems();\r\n if (getSelectionModel().isEmpty()) {\r\n assertTrue(\"selection must be empty\", getSelectionModel().isEmpty());\r\n assertEquals(-1, getSelectedIndex());\r\n assertEquals(null, getSelectedItem());\r\n assertTrue(\"\", getSelectedIndices().isEmpty());\r\n assertTrue(\"\", getSelectedItems().isEmpty());\r\n// assertEquals(\"focus must be cleared\", -1, getFocusModel()\r\n// .getFocusedIndex());\r\n } else {\r\n assertEquals(\"selectedIndex at parentIndex\", parentIndex, getSelectedIndex());\r\n assertEquals(\"parent must be selected after clearing \", parent, \r\n getSelectedItem());\r\n }\r\n }", "public void testLeadAnchorAfterRemove() {\n ListSelectionModel viewSelectionModel = new DefaultListSelectionModel();\n int selected = 5;\n viewSelectionModel.setSelectionInterval(selected, selected);\n assertEquals(selected, viewSelectionModel.getAnchorSelectionIndex());\n assertEquals(selected, viewSelectionModel.getLeadSelectionIndex());\n viewSelectionModel.removeIndexInterval(5, 5);\n int anchor = selected -1;\n assertTrue(viewSelectionModel.isSelectionEmpty());\n assertEquals(anchor, viewSelectionModel.getAnchorSelectionIndex());\n assertEquals(anchor, viewSelectionModel.getLeadSelectionIndex());\n \n }", "@Test\n\tpublic void furtherSelectionTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\tint[] selection = { 1, 2, 3, 4, 5, 6 };\n\t\tint[] unSelecion = { 1, 2, 3 };\n\t\tint[] resultSelection = { 4, 5, 6 };\n\t\tint[] negativeSelection = { -1 };\n\n\t\t// select something and unselect parts of it\n\t\tselectionController.select(selection);\n\t\tassertArrayEquals(\"Selection was different\", selection, selectionController.getSelection());\n\t\tselectionController.unselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after unselection\", resultSelection,\n\t\t\t\tselectionController.getSelection());\n\n\t\t// do a reselection\n\t\tselectionController.reselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after reselection\", unSelecion, selectionController.getSelection());\n\n\t\tassertTrue(\"Item 1 is selected\", selectionController.isSelected(1));\n\t\tassertTrue(\"Item 2 is selected\", selectionController.isSelected(2));\n\t\tassertTrue(\"Item 3 is selected\", selectionController.isSelected(3));\n\t\tassertFalse(\"Item 4 is not selected\", selectionController.isSelected(4));\n\t\tassertFalse(\"Item 5 is not selected\", selectionController.isSelected(5));\n\t\tassertFalse(\"Item 6 is not selected\", selectionController.isSelected(6));\n\n\t\t// unselect all elements\n\t\tselectionController.unselect(unSelecion);\n\t\tassertFalse(\"Nothing was selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero\", 0, selectionController.getSelection().length);\n\n\t\t// select something negative\n\t\tselectionController.select(negativeSelection);\n\t\tassertFalse(\"Nothing should be selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after selection\", 0, selectionController.getSelection().length);\n\n\t\t// reselect something negative\n\t\tselectionController.select(selection);\n\t\tselectionController.reselect(negativeSelection);\n\t\tassertFalse(\"Nothing should be reselected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after reselection\", 0,\n\t\t\t\tselectionController.getSelection().length);\n\n\t}", "public void deselect();", "@Override\n\tpublic void undoCommand() {\n\t\tselectionModel.removeAllFromSelectionList();\n\t\tmodel.removeElement(device);\n\t}", "private void clearJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearJMenuItemActionPerformed\n // TODO add your handling code here:\n listModel.clear();\n printJMenuItem.setEnabled(false);\n }", "@Test\n public void testHandleBtnExcluir() throws Exception {\n }", "public void removeSelectionChangedListener(\n ISelectionChangedListener listener) {\n viewer.removeSelectionChangedListener(listener);\n }", "void removeAll() throws ModelRuntimeException;", "public void removePropertyChangeListener(PropertyChangeListener listener) {\n \tmPropertyChangeSupport.removePropertyChangeListener(listener);\n }", "private void unSelect() {\n /** if we had some object selected we need to delete it's Transformation Points. */\n if(this.action.isSelect() && this.curr_obj != null) {\n this.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n this.curr_obj = null;\n\n /** if we were in the middle of a text operation, we have to remove the TextBox and set the text to it's last version*/\n } else if(this.action.isText()) {\n int size = Integer.parseInt(currentFontSize.getItemText(currentFontSize.getSelectedIndex()));\n\n curr_obj = new Text(editor.getText());\n ((Text)curr_obj).setFont(currFont);\n addTextObject(curr_obj, (int)aux_obj.getX() + (int)((1.0/4.0)*size), (int)aux_obj.getY()+ (size) + (int)((1.0/4.0)*size));\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n action.setAction(Action.TEXTBOX);\n }\n }", "@Override\n protected void processUnselect() {\n \n }" ]
[ "0.7516805", "0.7243727", "0.7068376", "0.65302944", "0.64841944", "0.63294405", "0.62179554", "0.61769193", "0.61602056", "0.6077236", "0.5924309", "0.5907601", "0.588599", "0.58668226", "0.58510166", "0.5826193", "0.581222", "0.5787122", "0.5643167", "0.5639914", "0.5612028", "0.5575735", "0.55539197", "0.5540884", "0.5537798", "0.5472862", "0.54723275", "0.54536283", "0.5445944", "0.54434335", "0.54430914", "0.5412845", "0.537409", "0.53698003", "0.53697985", "0.53633034", "0.53631675", "0.5359744", "0.5347429", "0.5341917", "0.53386676", "0.53237075", "0.5323663", "0.5319517", "0.5319517", "0.53145695", "0.53119564", "0.53089184", "0.52894014", "0.5284747", "0.52738476", "0.5259193", "0.5259117", "0.52466583", "0.5242874", "0.5241396", "0.5222312", "0.52080214", "0.5207712", "0.5181934", "0.51816124", "0.51634806", "0.5154841", "0.51464474", "0.51407266", "0.513625", "0.5128319", "0.5127217", "0.5119971", "0.5115105", "0.5093601", "0.5082403", "0.5081847", "0.5078295", "0.5072776", "0.5047588", "0.50455755", "0.5038901", "0.502697", "0.50268763", "0.5024445", "0.5024445", "0.5024445", "0.5024445", "0.50107026", "0.50026584", "0.50016576", "0.5000624", "0.4995749", "0.49893826", "0.4971751", "0.49678767", "0.4960806", "0.49523732", "0.4935675", "0.4930076", "0.49241787", "0.49170274", "0.49132115", "0.49127424" ]
0.7934719
0
Tests PropertiesPanelremoveAllModelElementSelectionListeners() for accuracy.
public void testRemoveAllModelElementSelectionListeners() { ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock(); instance.addModelElementSelectionListener(listener); instance.removeAllModelElementSelectionListeners(); instance.fireSelectionChangeEvent(new GuardImpl()); assertFalse("Failed to remove the listener.", listener.IsCalled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testRemoveAllModelElementChangeListeners() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeAllModelElementChangeListeners();\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void testRemoveModelElementSelectionListener() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.removeModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void testRemoveModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.removeModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertFalse(\"Failed to remove the listener.\", listener.IsCalled());\n }", "public void removeAllListeners()\n {\n tableModelListeners.clear();\n comboBoxModelListDataListeners.clear();\n }", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement);", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "@Override\r\n public void removeNotify() {\r\n // remove listener\r\n component.getResults().removeLabTestListener(this);\r\n \r\n super.removeNotify();\r\n }", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String[] propertyNames);", "@Test\n public void testRemovePropertyChangeListener() {\n // trivial\n }", "protected void uninstallListeners() {\n frame.removePropertyChangeListener(propertyChangeListener);\n }", "public void removeMySelectionListener(EventListener l);", "public void testAddModelElementSelectionListener() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "protected void uninstallListeners() { this.tipPane.removePropertyChangeListener(this.changeListener); }", "public void removeSelectionListener (SelectionListener listener) {\r\n\tcheckWidget();\r\n\tif (listener == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (eventTable == null) return;\r\n\teventTable.unhook (SWT.Selection, listener);\r\n\teventTable.unhook (SWT.DefaultSelection,listener);\t\r\n}", "public void removeAllRatioListeners()\r\n {\r\n ratioListeners.clear();\r\n }", "@Override\r\n public void rmValueListener(PropertyChangeListener l) {\n\r\n }", "public void removeSelectionListener(SelectionListener listener) {\r\n\tcheckWidget();\r\n\tif (listener == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (eventTable == null) return;\r\n\teventTable.unhook (SWT.Selection, listener);\r\n\teventTable.unhook (SWT.DefaultSelection,listener);\t\r\n}", "void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String[] propertyNames);", "@Test\r\n\tpublic final void testGetSelectedElement() {\r\n\t\tassertNull(listener.getSelectedElement());\r\n\t}", "public void testRemoveGUIEventListener1_Accuracy() {\n Map<Class, Set<GUIEventListener>> map = (Map<Class, Set<GUIEventListener>>) getPrivateField(EventManager.class,\n eventManager, \"guiEventListeners\");\n Set<GUIEventListener> listeners1 = new HashSet<GUIEventListener>();\n listeners1.add(gUIEventListener1);\n listeners1.add(gUIEventListener2);\n map.put(RedoChangesEvent.class, listeners1);\n\n Set<GUIEventListener> listeners2 = new HashSet<GUIEventListener>();\n listeners2.add(gUIEventListener3);\n map.put(UndoChangesEvent.class, listeners2);\n\n // Check all the listeners have been added correctly\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener1));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener2));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, UndoChangesEvent.class, gUIEventListener3));\n // Remove the listeners\n eventManager.removeGUIEventListener(gUIEventListener1, RedoChangesEvent.class);\n eventManager.removeGUIEventListener(gUIEventListener2, RedoChangesEvent.class);\n eventManager.removeGUIEventListener(gUIEventListener3, UndoChangesEvent.class);\n\n // Check all the listeners have been removed correctly\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener1));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, RedoChangesEvent.class, gUIEventListener2));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener, Class)' failed.\",\n containsInMap(map, UndoChangesEvent.class, gUIEventListener3));\n }", "private void removeListeners()\n {\n // Enable LDAP Checkbox\n removeDirtyListener( enableLdapCheckbox );\n removeSelectionListener( enableLdapCheckbox, enableLdapCheckboxListener );\n\n // LDAP Port Text\n removeDirtyListener( ldapPortText );\n removeModifyListener( ldapPortText, ldapPortTextListener );\n\n // LDAP Address Text\n removeDirtyListener( ldapAddressText );\n removeModifyListener( ldapAddressText, ldapAddressTextListener );\n\n // LDAP NbThreads Text\n removeDirtyListener( ldapNbThreadsText );\n removeModifyListener( ldapNbThreadsText, ldapNbThreadsTextListener );\n\n // LDAP BackLogSize Text\n removeDirtyListener( ldapBackLogSizeText );\n removeModifyListener( ldapBackLogSizeText, ldapBackLogSizeTextListener );\n\n // Enable LDAPS Checkbox\n removeDirtyListener( enableLdapsCheckbox );\n removeSelectionListener( enableLdapsCheckbox, enableLdapsCheckboxListener );\n\n // LDAPS Port Text\n removeDirtyListener( ldapsPortText );\n removeModifyListener( ldapsPortText, ldapsPortTextListener );\n\n // LDAPS Address Text\n removeDirtyListener( ldapsAddressText );\n removeModifyListener( ldapsAddressText, ldapsAddressTextListener );\n\n // LDAPS NbThreads Text\n removeDirtyListener( ldapsNbThreadsText );\n removeModifyListener( ldapsNbThreadsText, ldapsNbThreadsTextListener );\n\n // LDAPS BackLogSize Text\n removeDirtyListener( ldapsBackLogSizeText );\n removeModifyListener( ldapsBackLogSizeText, ldapsBackLogSizeTextListener );\n \n // Enable wantClientAuth Checkbox\n removeDirtyListener( wantClientAuthCheckbox );\n removeSelectionListener( wantClientAuthCheckbox, wantClientAuthListener );\n\n // Enable needClientAuth Checkbox\n removeDirtyListener( needClientAuthCheckbox );\n removeSelectionListener( needClientAuthCheckbox, needClientAuthListener );\n\n // Auth Mechanisms Simple Checkbox\n removeDirtyListener( authMechSimpleCheckbox );\n removeSelectionListener( authMechSimpleCheckbox, authMechSimpleCheckboxListener );\n\n // Auth Mechanisms CRAM-MD5 Checkbox\n removeDirtyListener( authMechCramMd5Checkbox );\n removeSelectionListener( authMechCramMd5Checkbox, authMechCramMd5CheckboxListener );\n\n // Auth Mechanisms DIGEST-MD5 Checkbox\n removeDirtyListener( authMechDigestMd5Checkbox );\n removeSelectionListener( authMechDigestMd5Checkbox, authMechDigestMd5CheckboxListener );\n\n // Auth Mechanisms GSSAPI Checkbox\n removeDirtyListener( authMechGssapiCheckbox );\n removeSelectionListener( authMechGssapiCheckbox, authMechGssapiCheckboxListener );\n\n // Auth Mechanisms NTLM Checkbox\n removeDirtyListener( authMechNtlmCheckbox );\n removeSelectionListener( authMechNtlmCheckbox, authMechNtlmCheckboxListener );\n removeModifyListener( authMechNtlmText, authMechNtlmTextListener );\n\n // Auth Mechanisms NTLM Text\n removeDirtyListener( authMechNtlmText );\n removeModifyListener( authMechNtlmText, authMechNtlmTextListener );\n\n // Auth Mechanisms GSS SPNEGO Checkbox\n removeDirtyListener( authMechGssSpnegoCheckbox );\n removeSelectionListener( authMechGssSpnegoCheckbox, authMechGssSpnegoCheckboxListener );\n removeModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Auth Mechanisms GSS SPNEGO Text\n removeDirtyListener( authMechGssSpnegoText );\n removeModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Keystore File Text\n removeDirtyListener( keystoreFileText );\n removeModifyListener( keystoreFileText, keystoreFileTextListener );\n\n // Keystore File Browse Button\n removeSelectionListener( keystoreFileBrowseButton, keystoreFileBrowseButtonSelectionListener );\n\n // Password Text\n removeDirtyListener( keystorePasswordText );\n removeModifyListener( keystorePasswordText, keystorePasswordTextListener );\n\n // Show Password Checkbox\n removeSelectionListener( showPasswordCheckbox, showPasswordCheckboxSelectionListener );\n\n // SASL Host Text\n removeDirtyListener( saslHostText );\n removeModifyListener( saslHostText, saslHostTextListener );\n\n // SASL Principal Text\n removeDirtyListener( saslPrincipalText );\n removeModifyListener( saslPrincipalText, saslPrincipalTextListener );\n\n // SASL Seach Base Dn Text\n removeDirtyListener( saslSearchBaseDnText );\n removeModifyListener( saslSearchBaseDnText, saslSearchBaseDnTextListener );\n \n // SASL Realms\n removeSelectionChangedListener( saslRealmsTableViewer, saslRealmsTableViewerSelectionChangedListener );\n removeDoubleClickListener( saslRealmsTableViewer, saslRealmsTableViewerDoubleClickListener );\n \n // SASL Realms add/edit/delete buttons\n removeSelectionListener( addSaslRealmsButton, addSaslRealmsButtonListener );\n removeSelectionListener( editSaslRealmsButton, editSaslRealmsButtonListener );\n removeSelectionListener( deleteSaslRealmsButton, deleteSaslRealmsButtonListener );\n \n // Max Time Limit Text\n removeDirtyListener( maxTimeLimitText );\n removeModifyListener( maxTimeLimitText, maxTimeLimitTextListener );\n\n // Max Size Limit Text\n removeDirtyListener( maxSizeLimitText );\n removeModifyListener( maxSizeLimitText, maxSizeLimitTextListener );\n\n // Max PDU Size Text\n removeDirtyListener( maxPduSizeText );\n removeModifyListener( maxPduSizeText, maxPduSizeTextListener );\n\n // Hashing Password Checkbox\n removeDirtyListener( enableServerSidePasswordHashingCheckbox );\n removeSelectionListener( enableServerSidePasswordHashingCheckbox,\n enableServerSidePasswordHashingCheckboxListener );\n\n // Hashing Method Combo Viewer\n removeDirtyListener( hashingMethodComboViewer );\n removeSelectionChangedListener( hashingMethodComboViewer, hashingMethodComboViewerListener );\n\n // Advanced SSL Cipher Suites\n ciphersSuiteTableViewer.removeCheckStateListener( ciphersSuiteTableViewerListener );\n\n // Advanced SSL Enabled Protocols SSL v3\n removeDirtyListener( sslv3Checkbox );\n removeSelectionListener( sslv3Checkbox, sslv3CheckboxListener );\n\n // Advanced SSL Enabled Protocols TLS v1\n removeDirtyListener( tlsv1_0Checkbox );\n removeSelectionListener( tlsv1_0Checkbox, tlsv1_0CheckboxListener );\n\n // Advanced SSL Enabled Protocols TLS v1.1\n removeDirtyListener( tlsv1_1Checkbox );\n removeSelectionListener( tlsv1_1Checkbox, tlsv1_1CheckboxListener );\n\n // Advanced SSL Enabled Protocols TLS v1.2\n removeDirtyListener( tlsv1_2Checkbox );\n removeSelectionListener( tlsv1_2Checkbox, tlsv1_2CheckboxListener );\n\n\n // Advanced SSL Enabled Protocols add/edit/delete buttons removal\n\n // Replication Pinger Sleep\n removeDirtyListener( replicationPingerSleepText );\n removeModifyListener( replicationPingerSleepText, replicationPingerSleepTextListener );\n\n // Disk Synchronization Delay\n removeDirtyListener( diskSynchronizationDelayText );\n removeModifyListener( diskSynchronizationDelayText, diskSynchronizationDelayTextListener );\n }", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String propertyName);", "public void removeAllInteractionsListeners() {\n _listeners.clear();\n }", "private void addModelListeners() {\n this.home.addSelectionListener(new SelectionListener() {\n public void selectionChanged(SelectionEvent ev) {\n List<HomePieceOfFurniture> selectedFurniture = \n Home.getFurnitureSubList(home.getSelectedItems());\n if (selectedFurniture.isEmpty()) {\n leadSelectedPieceOfFurniture = null;\n } else if (leadSelectedPieceOfFurniture == null \n || selectedFurniture.size() == 1\n || selectedFurniture.indexOf(leadSelectedPieceOfFurniture) == -1) {\n leadSelectedPieceOfFurniture = selectedFurniture.get(0);\n }\n }\n });\n \n // Add listener to update base plan lock when furniture movability changes\n final PropertyChangeListener furnitureChangeListener = new PropertyChangeListener() {\n public void propertyChange(PropertyChangeEvent ev) {\n if (HomePieceOfFurniture.Property.MOVABLE.name().equals(ev.getPropertyName())) {\n // Remove non movable pieces from selection when base plan is locked \n HomePieceOfFurniture piece = (HomePieceOfFurniture)ev.getSource();\n if (home.isBasePlanLocked()\n && isPieceOfFurniturePartOfBasePlan(piece)) {\n List<Selectable> selectedItems = home.getSelectedItems();\n if (selectedItems.contains(piece)) {\n selectedItems = new ArrayList<Selectable>(selectedItems);\n selectedItems.remove(piece);\n home.setSelectedItems(selectedItems);\n }\n }\n }\n }\n };\n for (HomePieceOfFurniture piece : home.getFurniture()) {\n piece.addPropertyChangeListener(furnitureChangeListener);\n }\n this.home.addFurnitureListener(new CollectionListener<HomePieceOfFurniture> () {\n public void collectionChanged(CollectionEvent<HomePieceOfFurniture> ev) {\n if (ev.getType() == CollectionEvent.Type.ADD) {\n ev.getItem().addPropertyChangeListener(furnitureChangeListener);\n } else if (ev.getType() == CollectionEvent.Type.DELETE) {\n ev.getItem().removePropertyChangeListener(furnitureChangeListener);\n }\n }\n });\n }", "protected void removeChangeListeners() {\n\t\tif (this.getChangeListenersAdded()) {\n\t\t\tthis.removeCollectableComponentModelListeners();\n\t\t\tthis.removeAdditionalChangeListeners();\n\t\t\tthis.bChangeListenersAdded = false;\n\t\t}\n\n\t\tassert !this.getChangeListenersAdded();\n\t}", "@Override\n public void removePropertyChangeListener(PropertyChangeListener listener) {\n\n }", "public void removeAll() {\n\t\tmListenerSet.clear();\n\t}", "protected void RemoveEvents()\r\n {\r\n INotifyPropertyChanged propParent = (INotifyPropertyChanged)getProxyParent();\r\n propParent.getPropertyChanged().removeObservers(filterPropertyChanges);\r\n }", "protected void uninstallListeners() {\n spinner.removePropertyChangeListener(propertyChangeListener); }", "public void clearChangeListeners() {\n observer.clear();\n }", "@Test\n\t@TestProperties(name = \"Clear element ${by}:${locator} selection\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void clearSelections() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "void removeClassModelEventListener(PropertyChangeListener listener, Object modelClass, String propertyName);", "public void clearComponentSelection(){\r\n ComponentSelectionTree.clearSelection();\r\n }", "public void removeAllListener() {\r\n listeners.clear();\r\n }", "public void validateSelection()\r\n {\r\n for (int i = 0; i<getSelectedElements().size(); ++i)\r\n {\r\n ReportElement re = (ReportElement)getSelectedElements().elementAt(i);\r\n if (!getCrosstabElement().getElements().contains( re ))\r\n {\r\n getSelectedElements().remove(re);\r\n --i;\r\n }\r\n }\r\n // UPDATE SELECTION NOW!!!\r\n }", "@Override\n\tpublic void removeSelectionListener(SelectionListener l) {\n\t\tif (listeners != null) {\n\t\t\tlisteners.remove(l);\n\t\t}\n\t}", "@Override\n\tpublic void removeSelectionChangeListener(SelectionChangeListener listener) {\n\n\t}", "public void removeAllListeners() {\r\n\t\tgetListeners().removeAllListeners();\r\n\t}", "public void testFireSelectionChangeEvent() {\n ModelElementSelectionListenerMock listener = new ModelElementSelectionListenerMock();\n instance.addModelElementSelectionListener(listener);\n instance.fireSelectionChangeEvent(new GuardImpl());\n assertTrue(\"Failed to fire the event.\", listener.IsCalled());\n }", "private void notifyDocumentRemoved(SingleDocumentModel model) {\n\t\tfor (MultipleDocumentListener l : listeners) {\n\t\t\tl.documentRemoved(model);\n\t\t}\n\t}", "public void removeAllTuioListeners()\n\t{\n\t\tlistenerList.clear();\n\t}", "public void removeItemListerners() {\r\n\t\titemListeners.clear();\r\n\t}", "public void removeSelectionListener( SelectionListener listener ) {\n checkWidget();\n if ( listener == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n // if (eventTable == null) return;\n // eventTable.unhook (SWT.Selection, listener);\n // eventTable.unhook (SWT.DefaultSelection,listener);\n selectionListeners.remove( listener );\n }", "public void deselectNotify() {\n }", "protected final void removeCollectableComponentModelListeners() {\n\t\tfor (CollectableComponentModel clctcompmodel : this.getCollectableComponentModels()) {\n\t\t\tclctcompmodel.removeCollectableComponentModelListener(this.getCollectableComponentModelListener());\n\t\t}\n\t}", "public void testAddModelElementChangeListener() {\n ModelElementChangeListenerMock listener = new ModelElementChangeListenerMock();\n instance.addModelElementChangeListener(listener);\n instance.firePropertyChangeEvent(new GuardImpl(), PropertyKind.ACTIVE, PropertyOperation.MODIFY, \"accuracy\");\n assertTrue(\"Failed to add the listener.\", listener.IsCalled());\n }", "void removePropertyChangedObserver(PropertyChangeObserver observer);", "public abstract void removePropertyChangeListener(IPropertyChangeListener listener);", "private void removeListeners() {\n \t\tlistenToTextChanges(false);\n \t\tfHistory.removeOperationHistoryListener(fHistoryListener);\n \t\tfHistoryListener= null;\n \t}", "private void clearPreviousTest() {\r\n for (ActionListener al : this.jComboBoxListeners) {\r\n this.jComboBox.removeActionListener(al);\r\n }\r\n\r\n this.jComboBox.removeAllItems();\r\n this.jTabbedPane.removeAll();\r\n this.currentTest.clear();\r\n }", "void removePropertyListener(PropertyListener listener);", "@Override\n\tpublic void removeAllListener() {\n\t\tLog.d(\"HFModuleManager\", \"removeAllListener\");\n\t\tthis.eventListenerList.clear();\n\t}", "@Test(priority = 15)\n public void unselectCheckboxesTest() {\n driver.findElement(By.xpath(\"//label[@class='label-checkbox'][1]/input\")).click();\n driver.findElement(By.xpath(\"//label[@class='label-checkbox'][3]/input\")).click();\n assertFalse(driver.findElement(By.xpath(\"//label[@class='label-checkbox'][1]/input\"))\n .isSelected());\n assertFalse(driver.findElement(By.xpath(\"//label[@class='label-checkbox'][3]/input\"))\n .isSelected());\n }", "public abstract void removePropertyChangeListener(PropertyChangeListener listener);", "default void removePropertyChangeListener(PropertyChangeListener listener)\r\n {\r\n }", "public void removePropertyChangeListener(PropertyChangeListener l);", "@Override\n\tpublic void removePropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}", "public void removeListeners() {\n listeners = new ArrayList<MinMaxListener>();\n listeners.add(evalFct);\n }", "@Test\n public void projectIsNotSelected_doesNotTriggerListeners() {\n projectSelector.handleOpenProjectSelectionDialog();\n\n verifyNoMoreInteractions(projectSelectionListener);\n }", "void removeAll() throws ModelRuntimeException;", "public void removeAllObjectChangeListeners()\n\t{\n\t\tlistenerList = null;\n\t}", "public void removeAllObjectChangeListeners()\n\t{\n\t\tlistenerList = null;\n\t}", "void removeDrawingModelListener(DrawingModelListener l);", "public void removeAllInterpreters() {\n\t\ttry {\n\t\t\topenInterpreters();\n\t\t\tSWTBotShell shell = getBot().shell(DLG_PREFERENCES);\n\t\t\tSWTBotTable tableBot = getBot().table();\n\n\t\t\tgetBot().waitUntil(Conditions.tableHasRows(tableBot, 1));\n\n\t\t\ttableBot.select(0);\n\t\t\tgetBot().button(BTN_REMOVE).click();\n\n\t\t\ttableBot = getBot().table();\n\t\t\tgetBot().waitUntil(Conditions.tableHasRows(tableBot, 0));\n\n\t\t\twaitEnableAndClick(BTN_OK);\n\t\t\tgetBot().waitUntil(Conditions.shellCloses(shell));\n\t\t} catch (WidgetNotFoundException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t} catch (TimeoutException ex) {\n\t\t\tSWTBotTestCase.fail(ex.getLocalizedMessage());\n\t\t}\n\t}", "void removePropertyChangeListener(PropertyChangeListener listener);", "void removePropertyChangeListener(PropertyChangeListener listener);", "protected void removeListeners() {\n }", "public void removeSelectionListener(SelectionListener listener) {\n\tcheckWidget();\n\tif (listener == null) error (SWT.ERROR_NULL_ARGUMENT);\n\tif (eventTable == null) return;\n\teventTable.unhook(SWT.Selection, listener);\n\teventTable.unhook(SWT.DefaultSelection,listener);\n}", "private void removeAllActiveXListeners()\n throws ActiveXException\n {\n Hashtable interfaces;\n Enumeration e;\n Guid iid;\n \n e = listeners.keys();\n\n while(e.hasMoreElements())\n {\n iid = (Guid) e.nextElement();\n removeActiveXListener1(clientSite, iid); \n }\n }", "@Test\r\n public void testShowRootNotificationItemsOff() {\r\n getView().setShowRoot(true);\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n ListChangeReport report = new ListChangeReport(getSelectedItems());\r\n getView().setShowRoot(false);\r\n assertEquals(\"selectedItems must not fire if nothing changed\", 0, report.getEventCount());\r\n }", "public void testRemoveGUIEventListener2_Accuracy() {\n Map<Class, Set<GUIEventListener>> map = (Map<Class, Set<GUIEventListener>>) getPrivateField(EventManager.class,\n eventManager, \"guiEventListeners\");\n Set<GUIEventListener> listeners = new HashSet<GUIEventListener>();\n listeners.add(gUIEventListener1);\n listeners.add(gUIEventListener2);\n listeners.add(gUIEventListener3);\n map.put(null, listeners);\n\n // Check all the listeners have been added correctly\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener1));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener2));\n assertTrue(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener3));\n // Remove the listeners\n eventManager.removeGUIEventListener(gUIEventListener1);\n eventManager.removeGUIEventListener(gUIEventListener2);\n eventManager.removeGUIEventListener(gUIEventListener3);\n\n // Check all the listeners have been removed correctly\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener1));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener2));\n assertFalse(\"Test method for 'EventManager.removeGUIEventListener(GUIEventListener)' failed.\",\n containsInMap(map, null, gUIEventListener3));\n }", "public void removePropertyChangeListener(PropertyChangeListener listener);", "public void removeTestCase(){\n\t\tgetSelectedPanel().removeSelectedTestCase(); \n\t}", "@Override\n public void removePropertyChangeListener( String propertyName,PropertyChangeListener listener )\n {\n if( componentModel == null )\n return;\n\n if( propertyName==null )\n {\n componentModel.removePropertyChangeListener( listener );\n }\n else\n {\n Property prop = componentModel.findProperty( propertyName );\n if ( prop != null )\n {\n prop.removePropertyChangeListener( listener );\n }\n }\n }", "public void removeAllAmplitudeListeners()\r\n {\r\n amplitudeListeners.clear();\r\n }", "private void clearSelectionQuietly() {\n mRanger = null;\n\n if (!hasSelection()) {\n return;\n }\n\n Selection oldSelection = getSelection(new Selection());\n mSelection.clear();\n\n for (String id: oldSelection.getAll()) {\n notifyItemStateChanged(id, false);\n }\n }", "public void removePropertyChangeListener(PropertyChangeListener listener)\n {\n }", "public void removeAllListeners() {\n die();\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement);", "public void removeDrawingModelListener(DrawingModelListener l);", "static interface ElementSelectionListener {\n \n public void selectionChanged(MultiViewDescription oldOne, MultiViewDescription newOne);\n \n public void selectionActivatedByButton(MouseEvent e);\n \n public void selectionActivatedByButton(ActionEvent e);\n \n }", "public void removePropertyChangeListener (PropertyChangeListener l)\n { pcs.removePropertyChangeListener (l); }", "@SuppressWarnings(\"unused\")\n public void removeAllListeners() {\n eventHandlerList.clear();\n }", "void addModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "public void disconnectListeners(){\n for(int i=0; i<3; i++){\n for(int j=0; j<3; j++){\n grid[i][j].removeActionListener(this);\n }\n }\n }", "public void removeSelectionListener(SelectionListener listener) {\n\tcheckWidget ();\n\tif (listener == null) error (SWT.ERROR_NULL_ARGUMENT);\n\tif (eventTable == null) return;\n\teventTable.unhook (SWT.Selection, listener);\n\teventTable.unhook (SWT.DefaultSelection,listener);\t\n}", "private void modelListenersNotify()\n {\n modelArray = this.toArray(new Object[this.size()]);\n notifyTableModelChange();\n notifyComboBoxModelChange(0, this.size()-1);\n }", "public void removeSelectionTreeListener(final SelectionTreeListener listener);", "public void removePropertyChangeListener (PropertyChangeListener l) {\n pcs.removePropertyChangeListener (l);\n }", "private void removeActionListeners() {\n for (Integer key: app.getWorkSpace().getWorkSpaceMap().keySet()) {\n removeActionListener(app.getWorkSpace().getGridCell(key));\n }\n }", "void onTestSuiteRemoved() {\n // not interested in\n }", "public void testRemoveActionEventListener1_Accuracy() {\n Map<Class, Set<ActionEventListener>> map = (Map<Class, Set<ActionEventListener>>)\n getPrivateField(EventManager.class, eventManager, \"actionEventListeners\");\n Set<ActionEventListener> listeners1 = new HashSet<ActionEventListener>();\n listeners1.add(actionEventListener1);\n listeners1.add(actionEventListener2);\n map.put(Action.class, listeners1);\n\n Set<ActionEventListener> listeners2 = new HashSet<ActionEventListener>();\n listeners2.add(actionEventListener3);\n map.put(UndoableAction.class, listeners2);\n\n // Check all the listeners have been added correctly\n assertTrue(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener1));\n assertTrue(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener2));\n assertTrue(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, UndoableAction.class, actionEventListener3));\n // Remove the listeners\n eventManager.removeActionEventListener(actionEventListener1, Action.class);\n eventManager.removeActionEventListener(actionEventListener2, Action.class);\n eventManager.removeActionEventListener(actionEventListener3, UndoableAction.class);\n\n // Check all the listeners have been removed correctly\n assertFalse(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener1));\n assertFalse(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, Action.class, actionEventListener2));\n assertFalse(\"Test method for 'EventManager.removeActionEventListener(ActionEventListener, Class)' failed.\",\n containsInMap(map, UndoableAction.class, actionEventListener3));\n }", "@Test\r\n @ConditionalIgnore(condition = IgnoreNotificationIndicesOnRemove.class)\r\n public void testShowRootNotificationIndicesAtRootOff() {\r\n getView().setShowRoot(true);\r\n getSelectionModel().select(0);\r\n ListChangeReport report = new ListChangeReport(getSelectedIndices());\r\n getView().setShowRoot(false);\r\n// report.prettyPrint();\r\n assertEquals(\"selectedIndices must not have fired\", 0, report.getEventCount());\r\n }", "public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener listener) {\r\n\tgetPropertyChange().removePropertyChangeListener(listener);\r\n}", "public void removeSelectionChangedListener(\n ISelectionChangedListener listener) {\n viewer.removeSelectionChangedListener(listener);\n }", "public void removeMultiTouchListeners() {\r\n\t\tlisteners.clear();\r\n\t}", "@Test\r\n public void testShowRootNotificationItemsAtRootOff() {\r\n getView().setShowRoot(true);\r\n getSelectionModel().select(0);\r\n ListChangeReport report = new ListChangeReport(getSelectedItems());\r\n getView().setShowRoot(false);\r\n assertTrue(getSelectedItems().contains(getSelectedItem()));\r\n assertEquals(\"selectedItems must have fired\", 1, report.getEventCount());\r\n }", "public void addListeners(){\n\n //listener for artists ComboBox\n artists.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n genres.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for genres ComboBox\n genres.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for year ComboBox\n year.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Integer>() {\n @Override\n public void changed(ObservableValue<? extends Integer> observableValue, Integer integer, Integer t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n genres.getSelectionModel().clearSelection();\n }\n }\n });\n\n }", "public synchronized void removePropertyChangeListener(PropertyChangeListener l) {\n int cnt = listeners.size();\n for (int i = 0; i < cnt; i++) {\n Object o = ((WeakReference)listeners.get(i)).get();\n if (o == null || o == l) { // remove null references and the required one\n listeners.remove(i);\n interestNames.remove(i);\n i--;\n cnt--;\n }\n }\n }" ]
[ "0.7791527", "0.7538736", "0.71551454", "0.65306807", "0.64945525", "0.6457905", "0.6206182", "0.61758506", "0.61531925", "0.61451507", "0.6118973", "0.60286164", "0.59548837", "0.5953519", "0.5945122", "0.59326106", "0.5874371", "0.58673894", "0.5851873", "0.57903963", "0.57748604", "0.5764818", "0.57542133", "0.5695003", "0.56705946", "0.5669306", "0.5667928", "0.56554663", "0.5654789", "0.56441236", "0.56421113", "0.5640962", "0.5635226", "0.56270266", "0.56195956", "0.5571946", "0.555784", "0.5555835", "0.55414563", "0.55402625", "0.55121255", "0.5489042", "0.54715186", "0.5470651", "0.5469928", "0.5462073", "0.5451098", "0.5448536", "0.54473037", "0.5429005", "0.5405708", "0.5388657", "0.5387477", "0.5385104", "0.5382491", "0.5372965", "0.5371018", "0.5359847", "0.53593034", "0.5356003", "0.53468966", "0.53468716", "0.53468716", "0.5343253", "0.5327785", "0.5326209", "0.5326209", "0.532494", "0.5322806", "0.5317911", "0.53160214", "0.5310187", "0.53050065", "0.5301291", "0.52910584", "0.5282086", "0.52727646", "0.5267364", "0.5265771", "0.5256424", "0.52545285", "0.52532196", "0.52417004", "0.52305734", "0.5218678", "0.5210699", "0.5207495", "0.52023894", "0.5199154", "0.5189833", "0.518175", "0.51815706", "0.5176607", "0.5175122", "0.5172921", "0.5169349", "0.5165304", "0.5160111", "0.51442987", "0.51421595" ]
0.8223557
0
Tests PropertiesPanelgetStereotypes(Class) for accuracy.
public void testGetStereotypes() { assertEquals("Failed to get the stereotypes.", 0, instance.getStereotypes(InterfaceImpl.class).size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showProperties(Class type);", "protected abstract boolean isSupportedTestType(Properties prop);", "@Test\n public void typeTest() {\n assertTrue(red_piece.getType() == Piece.Type.SINGLE);\n red_piece.king();\n assertTrue(red_piece.getType() == Piece.Type.KING);\n assertTrue(white_piece.getType() == Piece.Type.SINGLE);\n }", "public void collectActiveTypesOfScale(Properties properties) {\n\t\t\n\t\tString text = \"\";\n\t\tfor(ScaleType st : ScaleType.values()) {\n\t\t\tString value = properties.getProperty(st.toString());\n\t\t\tif(\"1\".equals(value)) {\n\t\t\t\tactiveScaleType.add(st);\n\t\t\t\ttext = text + \",\" + st;\n\t\t\t}\n\t\t}\n\t\t\n\t\tlog.info(\"Types of scales active = \" + text);\n\t}", "public void test_getType() {\n assertEquals(\"'type' value should be properly retrieved.\", type, instance.getType());\n }", "private Object[] getSamplePropertiesAsArray()\n {\n return (swp.get(0)).getPropertyTypes().toArray();\n\n }", "@Test\r\n\tpublic void classifyTest(){\r\n\t\tClassification[] expectedClass = {Classification.First,Classification.UpperSecond,Classification.LowerSecond,Classification.Third,Classification.Fail};\r\n\t\tint[] pointGrades = {3,6,10,13,18};\r\n\t\tfor(int i=0;i<pointGrades.length;i++)\r\n\t\t{\r\n\t\t\tassertEquals(expectedClass[i],new PointGrade(pointGrades[i]).classify());\r\n\t\t}\r\n\t}", "@Test\n public void testGetType()\n {\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.STRING);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)String.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.LONG);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Long.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Integer.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.SHORT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Short.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.CHARACTER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Character.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BYTE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Byte.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.DOUBLE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Double.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.FLOAT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Float.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Boolean.class));\n }", "@Test\n public void testGetType() {\n System.out.println(\"getType\");\n\n String expResult = \"Comum\";\n String result = instance.getType();\n\n assertEquals(expResult, result);\n }", "@Test\r\n public void testGetShapesSortedByPerimeter() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(regularPolygon);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(circle);\r\n List<Shape> actualOutput = screen.sortShape(SortType.PERIMETER);\r\n assertEquals(expectedOutput, actualOutput);\r\n }", "@Test\n\tvoid testGetAllByType() {\n\t\tList<Plant> plant = service.getAllByType(\"Shurbs\");\n\t\tString type = plant.get(0).getType();\n\t\tassertEquals(\"Shurbs\", type);\n\t}", "private static void openUpPotionTypes()\n\t{\n\t\tPotion[] potionTypes = null;\n\n\t for (Field f : Potion.class.getDeclaredFields()) \n\t {\n\t f.setAccessible(true);\n\t \n\t try \n\t {\n\t if (f.getName().equals(\"potionTypes\") || f.getName().equals(\"field_76425_a\")) \n\t {\n\t Field modfield = Field.class.getDeclaredField(\"modifiers\");\n\t modfield.setAccessible(true);\n\t modfield.setInt(f, f.getModifiers() & ~Modifier.FINAL);\n\n\t potionTypes = (Potion[])f.get(null);\n\t final Potion[] newPotionTypes = new Potion[256];\n\t System.arraycopy(potionTypes, 0, newPotionTypes, 0, potionTypes.length);\n\t f.set(null, newPotionTypes);\n\t }\n\t } \n\t catch (Exception e) \n\t {\n\t System.err.println(e);\n\t }\n\t }\n\t}", "@Test\n public void testGetStype() {\n System.out.println(\"getStype && setStype\");\n Setting instance = Setting.factory();\n Setting.SETTING_TYPE expResult = Setting.SETTING_TYPE.UND;\n Setting.SETTING_TYPE result = instance.getStype();\n assertEquals(expResult, result);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"text\");\n instance.setName(\"test\");\n\n Setting s = Setting.getSetting(\"test\");\n JSONObject jo = new JSONObject(s.toJSONString());\n Setting.removeSetting(s);\n assertTrue(Setting.isNotUsed(\"test\"));\n\n Setting ss = Setting.factory(jo);\n assertFalse(Setting.isNotUsed(\"test\"));\n assertEquals(Setting.SETTING_TYPE.TSTRING, ss.getStype());\n\n }", "@Test\n public void typeTest() {\n // TODO: test type\n }", "@Test\n public void typeTest() {\n // TODO: test type\n }", "@Test\n public void typeTest() {\n // TODO: test type\n }", "@Test\n public void testGetSetType()\n {\n try\n {\n Square s = new Square();\n\n assertEquals(Square.squareType.REGULAR, s.getType());\n\n s.setType(Square.squareType.DB_WORD);\n assertEquals(Square.squareType.DB_WORD, s.getType());\n\n s.setType(Square.squareType.DB_LETTER);\n assertEquals(Square.squareType.DB_LETTER, s.getType());\n\n s.setType(Square.squareType.STAR);\n assertEquals(Square.squareType.STAR, s.getType());\n\n s.setType(Square.squareType.TR_WORD);\n assertEquals(Square.squareType.TR_WORD, s.getType());\n\n s.setType(Square.squareType.TR_LETTER);\n assertEquals(Square.squareType.TR_LETTER, s.getType());\n }\n catch(Exception ex)\n {\n ex.printStackTrace();\n fail(\"No exception should be thrown when setting the type of the object\");\n }\n }", "@Test\n public void testGetManagerTypeString() {\n System.out.println(\"getManagerTypeString\");\n Manager instance = new Manager();\n String expResult = \"\";\n String result = instance.getManagerTypeString();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }", "@Test\n public void osTypeTest() {\n // TODO: test osType\n }", "public boolean verificaTipo(String tipo) {\r\n\t\tif(tipo.equals(\"single\") || tipo.equals(\"double\") || tipo.equals(\"suite\")) return true;\r\n\t\telse return false;\r\n\t}", "public abstract List<PropertyType> getBuiltInProperties();", "@Test\n public void testGetType() {\n// CarType expected = CarType.SUV;\n \n }", "public void testGetAllPhaseTypes() throws Exception {\n PhaseType[] phaseTypes = persistence.getAllPhaseTypes();\n assertEquals(\"Should return 2 types.\", 2, phaseTypes.length);\n\n // pick one PhaseType to check the fields\n PhaseType phaseType = null;\n for (int i = 0; i < phaseTypes.length; ++i) {\n if (phaseTypes[i].getId() == 2) {\n phaseType = phaseTypes[i];\n }\n }\n assertEquals(\"Failed to get name\", \"Manual\", phaseType.getName());\n }", "public int getPropertyType() {\n\t\treturn 0;\n\t}", "@Test\n public void effectTypeTest() {\n // TODO: test effectType\n }", "@Test\r\n public void testGetShapesSortedByArea() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(regularPolygon);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(circle);\r\n List<Shape> actualOutput = screen.sortShape(SortType.AREA); \r\n assertEquals(expectedOutput, actualOutput);\r\n }", "@Test\n public void getType() {\n System.out.println(\"getType\");\n BBDParameterMetaData instance = new BBDParameterMetaData(1,\"test\",2);\n int expResult = 2;\n int result = instance.getType();\n assertEquals(expResult, result);\n }", "protected abstract String getFactPropertyType(Object property);", "int countTypedFeatures();", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "@Test\r\n\tpublic void testGetClasses() {\r\n\t\tassertTrue(breaku1.getClasses().contains(class1));\r\n\t\tassertTrue(externu1.getClasses().contains(class1));\r\n\t\tassertTrue(meetingu1.getClasses().contains(class1));\r\n\t\tassertTrue(teachu1.getClasses().contains(class1));\r\n\r\n\t\tassertEquals(classes, breaku1.getClasses());\r\n\t\tassertEquals(classes, externu1.getClasses());\r\n\t\tassertEquals(classes, meetingu1.getClasses());\r\n\t\tassertEquals(classes, teachu1.getClasses());\r\n\r\n\t\tassertFalse(classes1 == breaku1.getClasses());\r\n\t\tassertFalse(classes1 == externu1.getClasses());\r\n\t\tassertFalse(classes1 == meetingu1.getClasses());\r\n\t\tassertFalse(classes1 == teachu1.getClasses());\r\n\t}", "public List<Roi> getExamples(String classKey, String type);", "public void testGetType() {\n CLImage instance = new CLImage();\n String expResult = \"image\";\n String result = instance.getType();\n assertEquals(expResult, result);\n }", "@Test\n\tpublic void findTypeList() {\n\t}", "protected void computeOWLOntologyObjectPropertyUsage(){\n\t\tfor(OWLOntology ont : super.getOntologies()){\n\t\t\tfor(OWLObjectProperty prop : ont.getObjectPropertiesInSignature()){\n\t\t\t\t\n\t\t\t\tint objectPropUsageInt = getOWLObjectPropertyUsage(prop);\n\t\t\t\t\n\t\t\t\tobjectPropertyUsageMap.put(prop, objectPropUsageInt);\n\t\t\n\t\t\t\t//find the class with the maximum usage \n\t\t\t\t//In these exclude the owl:thing class because\n\t\t\t\t//this information is redundant \n\t\t\t\tif (!prop.isTopEntity()) {\n\t\t\t\t\tif(max < objectPropUsageInt){\n\t\t\t\t\t\tmax = objectPropUsageInt;\n\t\t\t\t\t\tpropertyWithMaxUsage = prop;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\r\n public void testGetType() {\r\n System.out.println(\"getType\");\r\n Table instance = new Table(\"S\",2);\r\n String expResult = \"S\";\r\n String result = instance.getType();\r\n assertEquals(expResult, result);\r\n \r\n }", "@Override\n public String getClassType(){\n return \"Assistant Professor\";\n }", "@Test\n public void testProgramElementsType() {\n // TODO: test ProgramElementsType\n }", "@Test\n\tpublic void testStereotypeOpenOn() {\n\t\tnew DefaultStyledText().selectText(\"s:Stereotype\");\n\t\tKeyboardFactory.getKeyboard().invokeKeyCombination(SWT.F3);\n\t\tnew DefaultEditor(\"Stereotype.class\");\n\n\t\t/* test opened object */\n\t\tassertExpectedOpenedClass(\"javax.enterprise.inject.Stereotype\");\n\n\t}", "public void testGetTagType_1_accuracy() {\n instance.setTagType(\"tagtype\");\n assertEquals(\"The type is not set properly.\", \"tagtype\", instance.getTagType());\n }", "public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public int getOWLObjectPropertyUsage(OWLObjectProperty property){\n\t\tint propertyUsage =0;\n\t\tint propertyUsageWithClasses=0;\n\t\t\n\t\tfor(OWLAxiom ax : property.getReferencingAxioms(super.getOntology())){\n\t\t\tif(!ax.isOfType(AxiomType.SUB_OBJECT_PROPERTY)){\n\t\t\t\tpropertyUsage++;\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t//count the property usage for classes only \n\t\t\tif(!ax.getClassesInSignature().isEmpty()){\n\t\t\t\tpropertyUsageWithClasses++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tsumOfPropertyUsageWithClasses = \n\t\t\tsumOfPropertyUsageWithClasses + propertyUsageWithClasses;\n\t\t\n\t\treturn propertyUsage;\n\t}", "@BeforeClass\n public static void setUpClass() throws IOException {\n // Set logging output level\n org.apache.log4j.Logger.getRootLogger().setLevel(Level.ERROR);\n\n // DO THIS BY HAND! Set the output file for the results of triplifying classInput.txt\n // User-interface output\n classOutputFileName = \"classOutputUserInterface.ttl\";\n // DO THIS BY HAND! Set the output file for the results of triplifying propertyInput.txt\n // User-interface output\n propertyOutputFileName = \"propertyOutputUserInterface.ttl\";\n\n // The base URI for all input and output for these tests\n baseuri = System.getProperty(\"user.dir\");\n baseuri = \"file://\" + baseuri + \"/testdata/\";\n\n // A model for the class tests. The MeasuringStick is the output that we expect\n classMeasuringStick = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RULES_INF);\n classMeasuringStick.read(baseuri + \"classMeasuringStick.n3\", \"urn:\", FileUtils.langN3);\n\n // A model for the class tests output (coming out of the triplifier)\n classOutput = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RULES_INF);\n classOutput.read(baseuri + classOutputFileName, \"urn:\", FileUtils.langTurtle);\n\n // A model for the property tests. The MeasuringStick is the output that we expect\n propertyMeasuringStick = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RULES_INF);\n propertyMeasuringStick.read(baseuri + \"propertyMeasuringStick.n3\", \"urn:\", FileUtils.langN3);\n\n // A model for the property tests output (coming out of the triplifier)\n propertyOutput = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RULES_INF);\n propertyOutput.read(baseuri + propertyOutputFileName, \"urn:\", FileUtils.langTurtle);\n }", "@Test\n\tpublic void test1() {\n\t\tTriangleType type = TriangleClassifier.classify(2,2, 1);\n\t\tassertEquals(type,TriangleType.ISOSCELES);\n\t}", "List<PropertyType<?>> getPropertyTypes();", "public void testClass(ExpectedClassStructure expectedClassStructure) {\n String expectedClassName = expectedClassStructure.getExpectedClassName();\n Class<?> observedClass = findClassForTestType(expectedClassStructure, \"class\");\n\n JSONObject expectedClassPropertiesJSON = expectedClassStructure.getPropertyAsJsonObject(JSON_PROPERTY_CLASS);\n\n if (expectedClassPropertiesJSON.has(\"isAbstract\") && !Modifier.isAbstract(observedClass.getModifiers())) {\n fail(\"The class '\" + expectedClassName + \"' is not abstract as it is expected.\");\n }\n\n if (expectedClassPropertiesJSON.has(\"isEnum\") && !observedClass.isEnum()) {\n fail(\"The type '\" + expectedClassName + \"' is not an enum as it is expected.\");\n }\n\n if (expectedClassPropertiesJSON.has(\"isInterface\") && !Modifier.isInterface(observedClass.getModifiers())) {\n fail(\"The type '\" + expectedClassName + \"' is not an interface as it is expected.\");\n }\n\n if(expectedClassPropertiesJSON.has(\"isEnum\") && !observedClass.isEnum()) {\n fail(\"The type '\" + expectedClassName + \"' is not an enum as it is expected.\");\n }\n\n if(expectedClassPropertiesJSON.has(JSON_PROPERTY_SUPERCLASS)) {\n // Filter out the enums, since there is a separate test for them\n if(!expectedClassPropertiesJSON.getString(JSON_PROPERTY_SUPERCLASS).equals(\"Enum\")) {\n String expectedSuperClassName = expectedClassPropertiesJSON.getString(JSON_PROPERTY_SUPERCLASS);\n String actualSuperClassName = observedClass.getSuperclass().getSimpleName();\n\n String failMessage = \"The class '\" + expectedClassName + \"' is not a subclass of the class '\"\n + expectedSuperClassName + \"' as expected. Implement the class inheritance properly.\";\n if (!expectedSuperClassName.equals(actualSuperClassName)) {\n fail(failMessage);\n }\n }\n }\n\n if(expectedClassPropertiesJSON.has(JSON_PROPERTY_INTERFACES)) {\n JSONArray expectedInterfaces = expectedClassPropertiesJSON.getJSONArray(JSON_PROPERTY_INTERFACES);\n Class<?>[] observedInterfaces = observedClass.getInterfaces();\n\n for (int i = 0; i < expectedInterfaces.length(); i++) {\n String expectedInterface = expectedInterfaces.getString(i);\n boolean implementsInterface = false;\n\n for (Class<?> observedInterface : observedInterfaces) {\n //TODO: this does not work with the current implementation of the test oracle generator (which does not print the simple but the full qualified name including the package)\n if(expectedInterface.equals(observedInterface.getSimpleName())) {\n implementsInterface = true;\n break;\n }\n }\n\n if (!implementsInterface) {\n fail(\"The class '\" + expectedClassName + \"' does not implement the interface '\" + expectedInterface + \"' as expected.\"\n + \" Implement the interface and its methods.\");\n }\n }\n }\n\n if(expectedClassPropertiesJSON.has(JSON_PROPERTY_ANNOTATIONS)) {\n JSONArray expectedAnnotations = expectedClassPropertiesJSON.getJSONArray(JSON_PROPERTY_ANNOTATIONS);\n Annotation[] observedAnnotations = observedClass.getAnnotations();\n\n boolean annotationsAreRight = checkAnnotations(observedAnnotations, expectedAnnotations);\n if (!annotationsAreRight) {\n fail(\"The annotation(s) of the class '\" + expectedClassName + \"' are not implemented as expected.\");\n }\n }\n }", "public static void getClassUsage(){\r\n ClassMeasurement classMeasurement = new ClassMeasurement();\r\n classUsageList.add(classMeasurement);\r\n //ClassMeasurement.printClassMeasurement(classMeasurement);\r\n }", "public final void testGetType() {\n assertEquals(Hello.SAY_HELLO_INVOKED, n.getType());\n }", "private void testAbstraction() {\n Shape triangle = new Triangle();\n\n Shape circle = new Circle();\n\n //Since square implements IShape but not Shape, so we cannot create instance of Shape using Square\n Square square = new Square();\n\n //The end user only calls getNoOfSides(). But does not see implementation in Shape class.\n //Here it picks implementation from Triangle class, so it will return a 3.\n System.out.println(\"No of sides in a triangle: \" + triangle.getNoOfSides());\n System.out.println(\"No of sides in a circle: \" + circle.getNoOfSides());\n System.out.println(\"No of sides in a square: \" + square.getNoOfSides());\n }", "@Test\n public void should_find_one_test_unit_for_one_feature_available_in_classpath_using_subclassed_runner() throws Exception {\n \tList<TestUnit> testUnits = finder.findTestUnits(HideFromJUnit.Pepino.class);\n \t\n \t// then\n \tassertThat(testUnits).hasSize(1);\n \tDescription description = testUnits.get(0).getDescription();\n \tassertThat(description.getFirstTestClass()).contains(HideFromJUnit.Pepino.class.getSimpleName());\n \tassertThat(description.getName()).containsIgnoringCase(\"Shopping\").containsIgnoringCase(\"change\");\n }", "@Test\n public void testConvertPhenotypeAssociation() {\n assertThat( searchService.loadValueObject( SearchResult.from( PhenotypeAssociation.class, phenotypeAssociation, 1.0, \"test object\" ) ) )\n .extracting( \"resultObject\" )\n .isSameAs( phenotypeAssociation );\n assertThat( searchService.loadValueObjects( Collections.singleton( SearchResult.from( PhenotypeAssociation.class, phenotypeAssociation, 1.0, \"test object\" ) ) ) )\n .extracting( \"resultObject\" )\n .containsExactly( phenotypeAssociation );\n }", "@Test\n\tpublic void testAll() {\n\n\t\tassertEquals(\"Not specified\", getAtonType(0));\n\t\tassertEquals(\"unknown code 100\", getAtonType(100));\n\t\tassertEquals(\"Fixed - Light, without sectors\", getAtonType(5));\n\t\tassertEquals(\"Fixed - Beacon, Cardinal E\", getAtonType(10));\n\t\tassertEquals(\"Floating - Light Vessel, LANBY, Rigs\", getAtonType(31));\n\t\tassertEquals(\"Fixed - Beacon, Isolated danger\", getAtonType(17));\n\t\tassertEquals(\"Fixed - Beacon, Special mark\", getAtonType(19));\n\t\tassertEquals(\"Floating - Cardinal Mark N\", getAtonType(20));\n\t\tassertEquals(\"Floating - Cardinal Mark E\", getAtonType(21));\n\n\t}", "public void test_getTypedValues_accuracy() {\n instance.addTypedValue(typedValue);\n assertEquals(\"TypedValue got incorrectly\", 1, instance.getTypedValues().size());\n }", "@Test\n\tpublic void test2() {\n\t\tTriangleType type = TriangleClassifier.classify(5,5,4);\n\t\tassertEquals(type,TriangleType.ISOSCELES);\n\t}", "@Override\r\n public OntTestCase[] getTests() {\r\n return new OntTestCase[] {\r\n new OntTestCase( \"Individual.sameAs\", true, false, true, false ) {\r\n /** Note: 6/Nov/2003 - updated to use sameAs not sameIndividualAs, following changes to OWL spec */\r\n @Override\r\n public void ontTest( OntModel m ) throws Exception {\r\n Profile prof = m.getProfile();\r\n OntClass A = m.createClass( NS + \"A\" );\r\n Individual x = m.createIndividual( A );\r\n Individual y = m.createIndividual( A );\r\n Individual z = m.createIndividual( A );\r\n\r\n x.addSameAs( y );\r\n assertEquals( \"Cardinality should be 1\", 1, x.getCardinality( prof.SAME_AS() ) );\r\n assertEquals( \"x should be the same as y\", y, x.getSameAs() );\r\n assertTrue( \"x should be the same as y\", x.isSameAs( y ) );\r\n\r\n x.addSameAs( z );\r\n assertEquals( \"Cardinality should be 2\", 2, x.getCardinality( prof.SAME_AS() ) );\r\n iteratorTest( x.listSameAs(), new Object[] {z,y} );\r\n\r\n x.setSameAs( z );\r\n assertEquals( \"Cardinality should be 1\", 1, x.getCardinality( prof.SAME_AS() ) );\r\n assertEquals( \"x should be same indiv. as z\", z, x.getSameAs() );\r\n\r\n x.removeSameAs( y );\r\n assertEquals( \"Cardinality should be 1\", 1, x.getCardinality( prof.SAME_AS() ) );\r\n x.removeSameAs( z );\r\n assertEquals( \"Cardinality should be 0\", 0, x.getCardinality( prof.SAME_AS() ) );\r\n }\r\n },\r\n\r\n new OntTestCase( \"Individual.hasOntClass\", true, true, true, true ) {\r\n @Override\r\n protected void ontTest( OntModel m ) throws Exception {\r\n OntClass A = m.createClass( NS + \"A\" );\r\n OntClass B = m.createClass( NS + \"B\" );\r\n Individual x = m.createIndividual( A );\r\n\r\n assertTrue( x.hasOntClass( A ) );\r\n assertFalse( x.hasOntClass( B ) );\r\n }\r\n },\r\n\r\n new OntTestCase( \"Individual.hasOntClass direct\", true, true, true, true ) {\r\n @Override\r\n protected void ontTest( OntModel m ) throws Exception {\r\n OntClass A = m.createClass( NS + \"A\" );\r\n OntClass B = m.createClass( NS + \"B\" );\r\n A.addSubClass( B );\r\n\r\n Individual x = m.createIndividual( A );\r\n x.addRDFType( B );\r\n\r\n assertTrue( x.hasOntClass( A, false ) );\r\n assertTrue( x.hasOntClass( B, false ) );\r\n\r\n assertTrue( x.hasOntClass( A, false ) );\r\n assertTrue( x.hasOntClass( B, true ) );\r\n\r\n }\r\n },\r\n\r\n new OntTestCase( \"Individual.hasOntClass string\", true, true, true, true ) {\r\n @Override\r\n protected void ontTest( OntModel m ) throws Exception {\r\n OntClass A = m.createClass( NS + \"A\" );\r\n\r\n Individual x = m.createIndividual( A );\r\n\r\n assertTrue( x.hasOntClass( NS + \"A\" ) );\r\n }\r\n },\r\n\r\n new OntTestCase( \"Individual.getOntClass\", true, true, true, true ) {\r\n @Override\r\n protected void ontTest( OntModel m ) throws Exception {\r\n OntClass A = m.createClass( NS + \"A\" );\r\n Individual x = m.createIndividual( A );\r\n\r\n assertEquals( A, x.getOntClass() );\r\n }\r\n },\r\n\r\n new OntTestCase( \"Individual.getOntClass direct\", true, true, true, true ) {\r\n @Override\r\n protected void ontTest( OntModel m ) throws Exception {\r\n OntClass A = m.createClass( NS + \"A\" );\r\n OntClass B = m.createClass( NS + \"B\" );\r\n A.addSubClass( B );\r\n\r\n Individual x = m.createIndividual( A );\r\n x.addRDFType( B );\r\n\r\n // should never get A since it's not a direct class\r\n assertEquals( B, x.getOntClass( true ) );\r\n }\r\n },\r\n\r\n new OntTestCase( \"Individual.listOntClasses\", true, true, true, true ) {\r\n @Override\r\n protected void ontTest( OntModel m ) throws Exception {\r\n OntClass A = m.createClass( NS + \"A\" );\r\n OntClass B = m.createClass( NS + \"B\" );\r\n A.addSubClass( B );\r\n\r\n Individual x = m.createIndividual( A );\r\n x.addRDFType( B );\r\n\r\n iteratorTest( x.listOntClasses( false ), new Object[] {A,B} );\r\n\r\n // now check the return types\r\n for (Iterator<OntClass> i = x.listOntClasses( false ) ; i.hasNext(); ) {\r\n assertNotNull( i.next() );\r\n }\r\n }\r\n },\r\n\r\n new OntTestCase( \"Individual.listOntClasses direct\", true, true, true, true ) {\r\n @Override\r\n protected void ontTest( OntModel m ) throws Exception {\r\n OntClass A = m.createClass( NS + \"A\" );\r\n OntClass B = m.createClass( NS + \"B\" );\r\n A.addSubClass( B );\r\n\r\n Individual x = m.createIndividual( A );\r\n x.addRDFType( B );\r\n\r\n iteratorTest( x.listOntClasses( true ), new Object[] {B} );\r\n\r\n // now check the return types\r\n for (Iterator<OntClass> i = x.listOntClasses( true ) ; i.hasNext(); ) {\r\n assertNotNull( i.next() );\r\n }\r\n }\r\n },\r\n\r\n new OntTestCase( \"Individual.addOntClass\", true, true, true, true ) {\r\n @Override\r\n protected void ontTest( OntModel m ) throws Exception {\r\n OntClass A = m.createClass( NS + \"A\" );\r\n OntClass B = m.createClass( NS + \"B\" );\r\n A.addSubClass( B );\r\n\r\n Individual x = m.createIndividual( A );\r\n\r\n iteratorTest( x.listOntClasses( false ), new Object[] {A} );\r\n\r\n // add a class\r\n x.addOntClass( B );\r\n\r\n // test again\r\n iteratorTest( x.listOntClasses( false ), new Object[] {A,B} );\r\n for (Iterator<OntClass> i = x.listOntClasses( false ) ; i.hasNext(); ) {\r\n assertNotNull( i.next() );\r\n }\r\n }\r\n },\r\n\r\n new OntTestCase( \"Individual.setOntClass\", true, true, true, true ) {\r\n @Override\r\n protected void ontTest( OntModel m ) throws Exception {\r\n OntClass A = m.createClass( NS + \"A\" );\r\n OntClass B = m.createClass( NS + \"B\" );\r\n A.addSubClass( B );\r\n\r\n Individual x = m.createIndividual( A );\r\n\r\n iteratorTest( x.listOntClasses( false ), new Object[] {A} );\r\n\r\n // replace the class\r\n x.setOntClass( B );\r\n\r\n // test again\r\n iteratorTest( x.listOntClasses( false ), new Object[] {B} );\r\n for (Iterator<OntClass> i = x.listOntClasses( false ) ; i.hasNext(); ) {\r\n assertNotNull( i.next() );\r\n }\r\n }\r\n },\r\n\r\n new OntTestCase( \"Individual.removeOntClass\", true, true, true, true ) {\r\n @Override\r\n protected void ontTest( OntModel m ) throws Exception {\r\n OntClass A = m.createClass( NS + \"A\" );\r\n OntClass B = m.createClass( NS + \"B\" );\r\n\r\n Individual x = m.createIndividual( A );\r\n x.addOntClass( B );\r\n\r\n iteratorTest( x.listOntClasses( false ), new Object[] {A,B} );\r\n\r\n x.removeOntClass( A );\r\n iteratorTest( x.listOntClasses( false ), new Object[] {B} );\r\n\r\n x.removeOntClass( A );\r\n iteratorTest( x.listOntClasses( false ), new Object[] {B} );\r\n\r\n x.removeOntClass( B );\r\n iteratorTest( x.listOntClasses( false ), new Object[] {} );\r\n }\r\n },\r\n };\r\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 }", "@Test\n public void categoryFitsTypeTest() {\n final Category cardio = Category.CARDIO;\n final Type endurance = Type.ENDURANCE;\n final Type strength = Type.STRENGTH;\n\n assertEquals(\"Cardio category of Endurance Type\", cardio.getType(), endurance);\n assertNotEquals(\"Cardio category is not of Strength Type\", cardio.getType(), strength);\n }", "public <T extends GameObject> T[] senseNearbyGameObjects(Class<T> type);", "public int\ngetTypeCovered() {\n\treturn covered;\n}", "@Test\n public void testGetProductsByType() throws Exception {\n System.out.println(\"getProductsByType\");\n \n prs = dao.getProductsByType(p1.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p2.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p3.getType());\n assertTrue(prs.size() == 1);\n assertTrue(prs.contains(p3));\n \n prs = dao.getProductsByName(nonExisten.getType());\n assertTrue(prs.isEmpty());\n }", "public int getNumProMethods(){\r\n\t\treturn classStat.getNProM();\r\n\t}", "@Test\n public void testGetClassAssociatedTeacher() {\n System.out.println(\"getClassAssociatedTeacher\");\n School instance = new School();\n instance.setTeachers(teachers);\n instance.setTeacherClass(teacherClass);\n instance.setClasses(classes);\n\n assertEquals(classes, instance.getClassAssociatedTeacher(teacher));\n System.out.println(\"PASS with associated teacher\");\n\n assertEquals(0, instance.getClassAssociatedTeacher(teacher2).size());\n System.out.println(\"PASS with unassociated teacher\");\n\n System.out.println(\"PASS ALL\");\n }", "public boolean testParametertakesprecedence(EIfcdoorstyle type) throws SdaiException;", "public void test_countTypedValues_accuracy() {\n instance.addTypedValue(typedValue);\n assertEquals(\"The TypedValue is not added properly.\", 1, instance.countTypedValues());\n }", "public interface CalPropertyAttrib extends IdentifyKingdomProp{\n /**\n * Give list of dominoes according to coordinates in one property for serving high level methods\n * @param coordsInProp coordinates in the property\n * @param dominoDistribution the mapping from coordinates to dominoes\n * @return list of relevant dominoes\n * @throws Exception null detection\n * @author AntonioShen\n */\n List<Domino> giveDominoesInProp(List<Integer[]> coordsInProp, HashMap<Integer[], Domino> dominoDistribution) throws Exception; //Test passed\n\n /**\n * Give terrain type of one property according to coordinates in one property for serving high level methods\n * @param coordsInProp coordinates in the property\n * @param terrainDistribution the mapping from coordinates to terrain types\n * @return the terrain type for the property\n * @throws Exception null detection\n * @author AntonioShen\n */\n TerrainType givePropType(List<Integer[]> coordsInProp, HashMap<Integer[], TerrainType> terrainDistribution) throws Exception; //Test passed\n\n /**\n * Give the property size for serving high level methods\n * @param coordsInProp list of coordinates in the property\n * @return size of the property\n * @throws Exception null detection\n * @author AntonioShen\n */\n int givePropSize(List<Integer[]> coordsInProp) throws Exception; //Test passed\n\n /**\n * Give the total number of crowns in one property for serving high level methods\n * @param coordsInProp list of coordinates in the property\n * @param crownsDistribution the mapping from coordinates to crown numbers\n * @return total number of crowns in the property\n * @throws Exception null detection\n * @author AntonioShen\n */\n int givePropCrownNum(List<Integer[]> coordsInProp, HashMap<Integer[], Integer> crownsDistribution) throws Exception; //Test passed\n\n /**\n * Give the score for one property for serving high level methods\n * @param propSize the size of the property\n * @param crownNum the total crown number of the property\n * @return the score for the property\n * @throws Exception null detection\n * @author AntonioShen\n */\n int givePropScore(int propSize, int crownNum) throws Exception; //Test passed\n\n /**\n * Give the number of properties in one kingdom according to list of lists of coordinates in one kingdom for serving high level methods\n * @param allPropCoords list of lists of coordinates in the kingdom\n * @return the number of properties in the kingdom\n * @throws Exception null detection\n * @author AntonioShen\n */\n int givePropNum(List<List<Integer[]>> allPropCoords) throws Exception;\n}", "int getPropertiesCount();", "public void verify()\n\t{\n\t\ttry\n\t\t{\n\t\t\tClass<?> propertyType = descriptor.getPropertyType();\n\t\t\t// delegate first to the provided type factory to create a type\n\t\t\t// instance\n\t\t\tObject propertyInstance = typeFactory.create(propertyType);\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\tpropertyInstance = createInstanceOfType(propertyType);\n\t\t\t}\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\t// Use Mockito to mock the property\n\t\t\t\t// TODO Use the Reflection API's Proxy instead\n\t\t\t\tpropertyInstance = mock(propertyType);\n\t\t\t}\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\tfail(\"Failed to create a mock object of type\" + propertyType.getName());\n\t\t\t}\n\n\t\t\t// Setup\n\t\t\tObject system = typeFactory.create(type);\n\t\t\tif (system == null)\n\t\t\t{\n\t\t\t\tsystem = type.newInstance();\n\t\t\t}\n\n\t\t\t// Execute\n\t\t\tMethod writeMethod = descriptor.getWriteMethod();\n\t\t\tMethod readMethod = descriptor.getReadMethod();\n\t\t\twriteMethod.invoke(system, propertyInstance);\n\t\t\tObject actualObject = readMethod.invoke(system, (Object[]) null);\n\n\t\t\t// Verify\n\t\t\tassertEquals(String.format(\"Verification failed for property %s\", descriptor.getName()), propertyInstance,\n\t\t\t\t\tactualObject);\n\t\t}\n\t\tcatch (IllegalAccessException illegalEx)\n\t\t{\n\t\t\tlogger.error(null, illegalEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t\tcatch (InstantiationException instanceEx)\n\t\t{\n\t\t\tlogger.error(null, instanceEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t\tcatch (InvocationTargetException invokeEx)\n\t\t{\n\t\t\tlogger.error(null, invokeEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t}", "@Test\n public void testGetClassAssociatedStudent() {\n System.out.println(\"getClassAssociatedStudent\");\n School instance = new School();\n instance.setStudents(students);\n instance.setStudentClass(studentClass);\n instance.setClasses(classes);\n\n assertEquals(classes, instance.getClassAssociatedStudent(student1));\n assertEquals(classes, instance.getClassAssociatedStudent(student2));\n System.out.println(\"PASS with associated student\");\n\n assertEquals(0, instance.getClassAssociatedStudent(student3).size());\n System.out.println(\"PASS with unassociated student\");\n\n System.out.println(\"PASS ALL\");\n }", "@Test\n public void specialTypeTest() {\n \t// check radius and duration\n \tSpecialType special = SpecialType.NUKE;\n \tAssert.assertEquals(0, special.getRadius());\n \tAssert.assertEquals(0, special.getDuration());\n \t\n \t//check cost\n \tint[] cost = special.getCost();\n \tAssert.assertTrue(cost[0]==200 && cost[1] == 100 && cost[2] == 200);\n \t\n \t//check texture\n \tAssert.assertEquals(special.getTextureString(), \"nuke\");\n \t\n \t// check cost string\n \tString test = \"Rock: 200\\n\" +\n \t\t\"Crystal: 100\\n\" +\n \"Biomass: 200\\n\";\n Assert.assertEquals(test, special.getCostString());\n \n //check description\n test = \"Name: Nuke\\n\" +\n \t\t\"Type: Special\\n\" +\n \"Damage: 700\\n\" +\n \"Target: ENEMY TEAM\";\n Assert.assertEquals(test, special.getDescription());\n }", "@Test\n public void testValues() {\n System.out.println(\"values\");\n StatusType[] result = StatusType.values();\n assertEquals(result.length, 1);\n }", "public static void main(String[] args){\n\n Measurable myShape1 = new Square(5,5);\n System.out.println(myShape1.getPerimeter());\n Measurable myShape2 = new Rectangle(5,10);\n System.out.println(myShape2.getPerimeter());\n\n System.out.println(myShape2.getArea()+ \" \" + \"is the area of rectangle and , \" + myShape1.getArea()+ \" \" + \"is the area of my square.\");\n\n\n\n }", "public Result testGetPropertyDescriptors() {\n beanInfo.getPropertyDescriptors();\n PropertyDescriptor[] propertyDescriptors = beanInfo\n .getPropertyDescriptors();\n assertTrue(findProperty(\"property8\", propertyDescriptors));\n assertTrue(findProperty(\"class\", propertyDescriptors));\n assertEquals(propertyDescriptors.length, 2);\n return passed();\n }", "Object getTipo();", "public void testGetPowertype() {\n Classifier mock = EasyMock.createMock(Classifier.class);\n instance.setPowertype(mock);\n assertSame(\"same value expected.\", mock, instance.getPowertype());\n assertSame(\"same value expected.\", mock, instance.getPowertype());\n\n instance.setPowertype(null);\n assertNull(\"null expected.\", instance.getPowertype());\n assertNull(\"null expected.\", instance.getPowertype());\n }", "public void test_lt_01() {\n OntModel m = ModelFactory.createOntologyModel();\n \n DatatypeProperty p = m.createDatatypeProperty(NS + \"p\");\n OntClass c = m.createClass(NS + \"A\");\n \n Individual i = m.createIndividual(NS + \"i\", c);\n i.addProperty(p, \"testData\");\n \n int count = 0;\n \n for (Iterator j = i.listPropertyValues(p); j.hasNext();) {\n //System.err.println(\"Individual i has p value: \" + j.next());\n j.next();\n count++;\n }\n \n assertEquals(\"i should have one property\", 1, count);\n }", "public void testSun13AccuracyBuiltInClass_Deep() throws Exception {\n assertEquals(\"class String size not correct\",\n TestHelper.getAverageSize(String.class, ITERATIONS),\n test.getDeepMemoryUsage(new String(), listener).getUsedMemory());\n\n assertEquals(\"class HashMap size not correct\",\n TestHelper.getAverageSize(HashMap.class, ITERATIONS),\n test.getDeepMemoryUsage(new HashMap(), listener).getUsedMemory());\n\n assertEquals(\"class StringBuffer size not correct\",\n TestHelper.getAverageSize(StringBuffer.class, ITERATIONS),\n test.getDeepMemoryUsage(new StringBuffer(), listener).getUsedMemory());\n }", "public void testType() {\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tInteger).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tReal).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tPersonFQ).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(\"foo\"))).oclIsTypeOf(tOclString).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(true))).oclIsTypeOf(tBoolean).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6.0))).oclIsTypeOf(tReal).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6.0))).oclIsTypeOf(tInteger).not().isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p2))).oclIsTypeOf(tCompany).not().isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(false))).oclIsTypeOf(tAny).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(0.0))).oclIsTypeOf(tAny).not().isTrue() ); // differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(0))).oclIsTypeOf(tAny).not().isTrue() ); // differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tObject).not().isTrue() ); // differs\n }", "public void testGetType() {\n System.out.println(\"getType\"); // NOI18N\n \n TypeID expResult;\n TypeID result;\n String value = \"Test value\"; // NOI18N\n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n \n result = PropertyValue.createValue(primitveDescritor, type,value).getType();\n expResult = type;\n assertEquals(expResult, result);\n }", "protected Long getOverallStats(List<PropertyType> featuresWithType, List<Statistic> stats, NxQueryBuilder qb) {\n for (PropertyType prop : featuresWithType) {\n String propName = prop.getName();\n if (prop.getType() != null) {\n switch (prop.getType()) {\n case CATEGORY_TYPE:\n case TEXT_TYPE:\n // TODO assuming that text is a property ! could be a blob\n qb.addAggregate(makeAggregate(AGG_MISSING, propName, EMPTY_PROPS));\n qb.addAggregate(makeAggregate(AGG_TYPE_TERMS, propName, TERM_PROPS));\n qb.addAggregate(makeAggregate(AGG_CARDINALITY, propName, EMPTY_PROPS));\n break;\n case IMAGE_TYPE:\n qb.addAggregate(makeAggregate(AGG_MISSING, contentProperty(propName), EMPTY_PROPS));\n break;\n default:\n // Only 3 types at the moment, we would need numeric type in the future. //\n }\n } else {\n // Assuming without type it is text or category !\n qb.addAggregate(makeAggregate(AGG_MISSING, propName, EMPTY_PROPS));\n }\n }\n EsResult esResult = Framework.getService(ElasticSearchService.class).queryAndAggregate(qb);\n stats.addAll(esResult.getAggregates().stream().map(Statistic::from).collect(Collectors.toList()));\n long total = esResult.getElasticsearchResponse().getHits().getTotalHits().value;\n stats.add(Statistic.of(STATS_TOTAL, STATS_TOTAL, STATS_TOTAL, null, total));\n\n return total;\n }", "@Test\r\n public void testGetTipoDPolarizacao() {\r\n System.out.println(\"getTipoDPolarizacao\");\r\n Simulacao instance = new Simulacao(TipoDPolarizacao.REFLEXAO);\r\n TipoDPolarizacao expResult = TipoDPolarizacao.REFLEXAO;\r\n TipoDPolarizacao result = instance.getTipoDPolarizacao();\r\n assertEquals(expResult, result);\r\n\r\n }", "@Test\n public void atTypeTest() {\n // TODO: test atType\n }", "public static void main(String[] args) {\n Rectangle rectangle = new Rectangle(\"red \",4,3);\n// System.out.println(rectangle.area());\n\n Square square = new Square(\"green \",3);\n// System.out.println(square.area());\n Circle circle = new Circle(\"blue \", 4);\n\n// System.out.println(square.getColor());\n\n Shape[] shapes = {rectangle, square, circle};\n for (Shape shape: shapes) {\n shape.showColorAndArea();\n }\n\n }", "UsedTypes getTypes();", "public static void main(String[] args){\n PropertiesDemo.check();\n }", "@Test\n public void testGetSpecies() {\n System.out.println(\"Animal.getSpecies\");\n assertEquals(\"Aardvark\", animal1.getSpecies());\n assertEquals(\"Beaver\", animal2.getSpecies());\n }", "public boolean testOperationtype(EIfcdoorstyle type) throws SdaiException;", "protected long doGetNumberOfSupertypes(Topic type) {\r\n\t\treturn getParentIndex().getSupertypes(type).size();\r\n\t}", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Discretize discretize0 = new Discretize(\"#gS@ID)j\");\n discretize0.m_ClassIndex = 178;\n double[] doubleArray0 = new double[3];\n doubleArray0[0] = (double) 178;\n discretize0.m_UseEqualFrequency = true;\n doubleArray0[2] = (double) 178;\n doubleArray0[2] = (double) 178;\n Discretize discretize1 = new Discretize(\"#gS@ID)j\");\n assertFalse(discretize1.getUseEqualFrequency());\n \n discretize0.getOptions();\n assertTrue(discretize0.getUseEqualFrequency());\n }", "public static void main(String[] args) {\n\t\tShape s=new Shape();\n\t\ts.getArea();\n\t\tShape[] shape=new Shape[]{new Rectangle(3.0,4.0), new RightTriangle(6.0,4.0), new Circle(2.0)};\n\t\tfor(int i=0;i<3;i++){\n\t\t\tSystem.out.println(shape[i].getArea());\n\t\t\t}\n\t\tSystem.out.println(\"Triangle Rectangle: \"+ shape[0].equals(shape[1]));\n\t\tSystem.out.println(\"Triangle Circle: \"+ shape[1].equals(shape[2]));\n\t\tSystem.out.println(\"Circle Rectangle: \"+ shape[2].equals(shape[0]));\n\t\tSystem.out.println(\"Rectangle: \"+ shape[0].toString());\n\t\tSystem.out.println(\"Triangle: \"+ shape[1].toString());\n\t\tSystem.out.println(\"Circle: \"+ shape[2].toString());\n\t}", "public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n\tpublic void testGetGoodsTypeOfFreightCar() throws TrainException\n\t{\n\t\tInteger grossWeight = 1;\n\t\tString goodsType = \"G\";\n\t\t\n\t\tasgn2RollingStock.RollingStock freightCarUnderTest = \n\t\t\t\tnew asgn2RollingStock.FreightCar(grossWeight, goodsType);\n\t\t\n\t\tassertEquals(goodsType, ((asgn2RollingStock.FreightCar) freightCarUnderTest).goodsType());\n\t}", "public String getProperty(Class type, String key);", "@Test\r\n public void testGetTypeId() {\r\n System.out.println(\"getTypeId\");\r\n \r\n int expResult = 0;\r\n int result = instance.getTypeId();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "@Test\n public void testFlavourToString() {\n for (PdfaFlavour flavour : PdfaFlavour.values()) {\n System.out.println(flavour.toString());\n }\n }", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\n public void byTypeTest() throws Exception {\n /* Navigate to the Checkboxes section */\n driver.findElement(By.xpath(\"//*[@id=\\\"content\\\"]/ul/li[5]/a\")).click();\n\n /* Using the standard devtools */\n ArrayList<WebElement> checkboxesByTagName = new ArrayList<>();\n checkboxesByTagName.addAll(driver.findElements(By.tagName(\"input\")));\n\n\n /* Using the selenium OIC and the by type locator */\n ArrayList<WebElement> checkboxesByType = new ArrayList<>();\n checkboxesByType.addAll(driver.findElements(By.type(\"checkbox\")));\n\n\n /* Display check list */\n checkboxesByTagName.forEach(c -> System.out.println(\" is checked : \" + c.getAttribute(\"checked\")));\n checkboxesByType.forEach(c -> System.out.println(\" is checked : \" + c.getAttribute(\"checked\")));\n\n /* This test demonstrates the byType locator power :\n * It obviously add another way to locate elements\n * Enhance maintainability of code : What if a username field is added <input type=\"text\"> ? --> the test will be broken !\n * */\n }", "@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}", "public void testChangeOfSpecies() {\n GUIManager oManager = null;\n String sFileName = null;\n try {\n oManager = new GUIManager(null);\n sFileName = writeValidXMLFile();\n oManager.inputXMLParameterFile(sFileName);\n \n //Now change the species\n String[] sNewSpecies = new String[] {\n \"Species 3\",\n \"Species 2\",\n \"Species 1\",\n \"Species 4\",\n \"Species 5\",\n \"Species 6\"};\n \n oManager.getTreePopulation().setSpeciesNames(sNewSpecies);\n ManagementBehaviors oManagementBeh = oManager.getManagementBehaviors();\n ArrayList<Behavior> p_oBehs = oManagementBeh.getBehaviorByParameterFileTag(\"QualityVigorClassifier\");\n assertEquals(1, p_oBehs.size());\n QualityVigorClassifier oQual = (QualityVigorClassifier) p_oBehs.get(0);\n \n assertEquals(3, oQual.mp_oQualityVigorSizeClasses.size());\n \n QualityVigorSizeClass oClass = oQual.mp_oQualityVigorSizeClasses.get(0);\n assertEquals(10, oClass.m_fMinDbh, 0.0001);\n assertEquals(20, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.78, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.88, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.61, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.55, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(1);\n assertEquals(20, oClass.m_fMinDbh, 0.0001);\n assertEquals(30, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.33, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.81, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.64, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.32, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.69, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.33, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.58, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n \n oClass = oQual.mp_oQualityVigorSizeClasses.get(2);\n assertEquals(30, oClass.m_fMinDbh, 0.0001);\n assertEquals(40, oClass.m_fMaxDbh, 0.0001);\n \n assertEquals(0.34, ((Float)oClass.mp_fProbVigorous.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.57, ((Float)oClass.mp_fProbVigorous.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.26, ((Float)oClass.mp_fProbVigorous.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oClass.mp_fProbVigorous.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oClass.mp_fProbSawlog.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oClass.mp_fProbSawlog.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.66, ((Float)oClass.mp_fProbSawlog.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.45, ((Float)oClass.mp_fProbSawlog.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta0Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(2.35, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(2.43, ((Float)oQual.mp_fQualVigorBeta11Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-2.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.12, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.32, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.3, ((Float)oQual.mp_fQualVigorBeta12Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.13, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta13Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-1, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta14Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(-0.45, ((Float)oQual.mp_fQualVigorBeta15Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.46, ((Float)oQual.mp_fQualVigorBeta16Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.01, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.04, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta2Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.001, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta3Vig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.25, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(1.13, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(1.15, ((Float)oQual.mp_fQualVigorBeta0Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.36, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.4, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta11Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.02, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta12Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.2, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.3, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta13Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(-0.4, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta14Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(-0.2, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta2Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(10, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.1, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(30, ((Float)oQual.mp_fQualVigorBeta3Qual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.1, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.5, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsVig.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(0.9, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(1)).floatValue(), 0.0001);\n assertEquals(0.25, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(0)).floatValue(), 0.0001);\n assertEquals(0.3, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(3)).floatValue(), 0.0001);\n assertEquals(0.74, ((Float)oQual.mp_fQualVigorProbNewAdultsQual.getValue().get(4)).floatValue(), 0.0001);\n \n assertEquals(6, oQual.mp_iQualVigorDeciduous.getValue().size());\n for (int i = 0; i < oQual.mp_iQualVigorDeciduous.getValue().size(); i++)\n assertNotNull(oQual.mp_iQualVigorDeciduous.getValue().get(i));\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(1)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(0)).getValue());\n assertEquals(1, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(3)).getValue());\n assertEquals(0, ((ModelEnum)oQual.mp_iQualVigorDeciduous.getValue().get(4)).getValue());\n\n System.out.println(\"Change of species test succeeded.\");\n }\n catch (ModelException oErr) {\n fail(\"Change of species test failed with message \" + oErr.getMessage());\n }\n catch (java.io.IOException oE) {\n fail(\"Caught IOException. Message: \" + oE.getMessage());\n }\n finally {\n new File(sFileName).delete();\n }\n }" ]
[ "0.58751833", "0.5819352", "0.56144077", "0.5496974", "0.54435253", "0.53719294", "0.52687764", "0.52265966", "0.52121115", "0.5150415", "0.51288325", "0.51084334", "0.5079403", "0.5051392", "0.5051392", "0.5051392", "0.50493985", "0.5037931", "0.5031447", "0.5029669", "0.50282127", "0.50256336", "0.49999538", "0.4993403", "0.49614647", "0.49484578", "0.4947492", "0.49351597", "0.492729", "0.49034113", "0.49026912", "0.49009252", "0.48800763", "0.48768997", "0.48752335", "0.4871757", "0.48618433", "0.4855453", "0.4851855", "0.4851132", "0.48456752", "0.48389617", "0.48311418", "0.48208588", "0.48111874", "0.48103452", "0.48034894", "0.4796015", "0.47943223", "0.47922453", "0.4791863", "0.47883347", "0.47848868", "0.47821897", "0.47737476", "0.47540206", "0.47469896", "0.47450396", "0.47396338", "0.47242564", "0.4722534", "0.47143495", "0.47129208", "0.47063202", "0.47005782", "0.4699717", "0.46988967", "0.4696608", "0.46910256", "0.4688612", "0.46826267", "0.4679324", "0.46692434", "0.46638036", "0.46624658", "0.46603087", "0.46256003", "0.46225104", "0.4619667", "0.4612827", "0.4608166", "0.460582", "0.46027088", "0.46017793", "0.4597154", "0.4596168", "0.45920342", "0.4590237", "0.45825016", "0.45812836", "0.45787624", "0.4573854", "0.45710158", "0.4569673", "0.45673943", "0.45665166", "0.45654705", "0.45650843", "0.45642367", "0.4560826" ]
0.59732646
0
if (historyPartNumber > 0) historyPart.chosePart(historyPartNumber);
@Override public void show() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onHarvestPart(qx player, int part)\r\n/* 77: */ {\r\n/* 78: 64 */ boolean change = false;\r\n/* 79: 65 */ if (part == 29)\r\n/* 80: */ {\r\n/* 81: 66 */ CoreLib.dropItem(this.k, this.l, this.m, this.n, new ur(RedPowerMachine.blockFrame, 1));\r\n/* 82: 69 */ if (this.CoverSides > 0)\r\n/* 83: */ {\r\n/* 84: 70 */ replaceWithCovers();\r\n/* 85: 71 */ updateBlockChange();\r\n/* 86: */ }\r\n/* 87: */ else\r\n/* 88: */ {\r\n/* 89: 72 */ deleteBlock();\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ else\r\n/* 93: */ {\r\n/* 94: 74 */ super.onHarvestPart(player, part);\r\n/* 95: 75 */ return;\r\n/* 96: */ }\r\n/* 97: */ }", "public void scrapPart(Lot lot, Part part) {\n\r\n\t}", "public void consumePart(Lot lot, Part part) {\n\r\n\t}", "void onPart(String partedNick);", "@FXML void onActionSavePart(ActionEvent event) throws IOException{\n if(partIsValid()){\r\n int id = Inventory.incrementPartID();\r\n String name = partName.getText();\r\n int inventory = Integer.parseInt(partInv.getText());\r\n Double price = Double.parseDouble(partPrice.getText());\r\n int max = Integer.parseInt(partMax.getText());\r\n int min = Integer.parseInt(partMin.getText());\r\n String companyName = companyNameField.getText();\r\n \r\n \r\n if(this.partToggleGroup.getSelectedToggle().equals(this.inHouseRadioButton)){\r\n int machineID = Integer.parseInt(companyNameField.getText());\r\n Inventory.addPart(new InHouse(id, name, price, inventory, min, max, machineID)); \r\n } else {\r\n Inventory.addPart(new Outsourced(id, name, price, inventory, min, max, companyName));\r\n }\r\n \r\n // Clearing the partIDCount variable\r\n Inventory.clearAmountOfParts();\r\n \r\n // Now we want to be able to go back to the main menu\r\n Parent AddPartViewParent = FXMLLoader.load(getClass().getResource(\"FXMLDocument.fxml\"));\r\n Scene AddPartScene = new Scene(AddPartViewParent);\r\n\r\n // Now we need to get the Stage information\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(AddPartScene);\r\n window.show();\r\n }\r\n }", "public void addPart() {\n\n if(isValidPart()) {\n double price = Double.parseDouble(partPrice.getText());\n String name = partName.getText();\n int stock = Integer.parseInt(inventoryCount.getText());\n int id = Integer.parseInt(partId.getText());\n int minimum = Integer.parseInt(minimumInventory.getText());\n int maximum = Integer.parseInt(maximumInventory.getText());\n String variableText = variableTextField.getText();\n\n if (inHouse.isSelected()) {\n InHouse newPart = new InHouse(id,name,price,stock,minimum,maximum,Integer.parseInt(variableText));\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n\n } else if (outsourced.isSelected()) {\n Outsourced newPart = new Outsourced(id,name,price,stock,minimum,maximum,variableText);\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n }\n try {\n InventoryData.getInstance().storePartInventory();\n InventoryData.getInstance().storePartIdIndex();\n } catch (IOException e) {\n e.printStackTrace();\n }\n exit();\n\n }\n }", "void takeBack() {\n\tside ^= 1;\n\txside ^= 1;\n\tHistoryData h = histDat[--hply];\n\tpawnBits = h.pawnBits;\n\tpieceBits = h.pieceBits;\n\tBouger m = h.m;\n\tcastle = h.castle;\n\tep = h.ep;\n\tfifty = h.fifty;\n\tint from = m.getFrom();\n\tint to = m.getTo();\n\tcolor[from] = side;\n\tif ((m.bits & 32) != 0) {\n\tpiece[from] = PAWN;\n\tpieceMat[side] -= pieceValue[h.m.promote];\n\t} else {\n\tint thePiece = piece[to];\n\tif (thePiece == KING)\n\tkingSquare[side] = from;\n\tpiece[from] = thePiece;\n\t}\n\tif (h.capture == EMPTY) {\n\tcolor[to] = EMPTY;\n\tpiece[to] = EMPTY;\n\t} else {\n\tcolor[to] = xside;\n\tpiece[to] = h.capture;\n\tif (h.capture != PAWN)\n\tpieceMat[xside] += pieceValue[h.capture];\n\t}\n\tif ((m.bits & 2) != 0) {\n\tint cfrom, cto;\n\n\tswitch (to) {\n\tcase 62:\n\tcfrom = F1;\n\tcto = H1;\n\tbreak;\n\tcase 58:\n\tcfrom = D1;\n\tcto = A1;\n\tbreak;\n\tcase 6:\n\tcfrom = F8;\n\tcto = H8;\n\tbreak;\n\tcase 2:\n\tcfrom = D8;\n\tcto = A8;\n\tbreak;\n\tdefault: /* shouldn't get here */\n\tcfrom = -1;\n\tcto = -1;\n\tbreak;\n\t}\n\tcolor[cto] = side;\n\tpiece[cto] = ROOK;\n\tcolor[cfrom] = EMPTY;\n\tpiece[cfrom] = EMPTY;\n\t}\n\tif ((m.bits & 4) != 0) {\n\tif (side == LIGHT) {\n\tcolor[to + 8] = xside;\n\tpiece[to + 8] = PAWN;\n\t} else {\n\tcolor[to - 8] = xside;\n\tpiece[to - 8] = PAWN;\n\t}\n\t}\n\t}", "@FXML\r\n private void modifyPartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n partToMod = selected.getId();\r\n generateScreen(\"AddModifyPartScreen.fxml\", \"Modify Part\");\r\n }\r\n else {\r\n displayMessage(\"No part selected for modification\");\r\n }\r\n \r\n }", "public void partBroughtToTop(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "@FXML\r\n void onActionModifyPart(ActionEvent event) throws IOException {\r\n \r\n try {\r\n int id = currPart.getId();\r\n String name = partNameTxt.getText();\r\n int stock = Integer.parseInt(partInvTxt.getText());\r\n double price = Double.parseDouble(partPriceTxt.getText());\r\n int max = Integer.parseInt(maxInvTxt.getText());\r\n int min = Integer.parseInt(minInvTxt.getText());\r\n int machineId;\r\n String companyName;\r\n boolean partAdded = false;\r\n \r\n if (name.isEmpty()) {\r\n //RUNTIME ERROR: Name empty exception\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Name cannot be empty.\");\r\n errorTxtLabel.setVisible(true);\r\n } else {\r\n if (minVerify(min, max) && inventoryVerify(min, max, stock)) {\r\n \r\n if(inHouseRBtn.isSelected()) {\r\n try {\r\n machineId = Integer.parseInt(partIDTxt.getText());\r\n InHousePart newInHousePart = new InHousePart(id, name, price, stock, min, max, machineId);\r\n newInHousePart.setId(currPart.getId());\r\n Inventory.addPart(newInHousePart);\r\n partAdded = true;\r\n } catch (Exception e) {\r\n //LOGICAL ERROR: Invalid machine ID error\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Invalid machine ID.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n } \r\n if (outsourcedRBtn.isSelected()) {\r\n companyName = partIDTxt.getText();\r\n OutsourcedPart newOutsourcedPart = new OutsourcedPart(id, name, price, stock, min, max, companyName);\r\n newOutsourcedPart.setId(currPart.getId());\r\n Inventory.addPart(newOutsourcedPart);\r\n partAdded = true;\r\n }\r\n if (partAdded){\r\n errorLabel.setVisible(false); \r\n errorTxtLabel.setVisible(false);\r\n Inventory.deletePart(currPart);\r\n //Confirm modify\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Modify Part\");\r\n alert.setContentText(\"Save changes and return to main menu?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n stage = (Stage) ((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/View/Main.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n }\r\n }\r\n }\r\n } catch(Exception e) {\r\n //RUNTIME ERROR: Blank fields exception\r\n errorLabel.setVisible(true);\r\n errorTxtLabel.setText(\"Form contains blank fields or errors.\");\r\n errorTxtLabel.setVisible(true);\r\n }\r\n\r\n }", "public void getSelectedPart(Part selectedPart){\n this.part = selectedPart;\n if(selectedPart instanceof InHouse){\n labelPartSource.setText(\"Machine ID\");\n InHouse inHouse = (InHouse)selectedPart;\n ModPartIDField.setText(Integer.toString(inHouse.getId()));\n ModPartNameField.setText(inHouse.getName());\n ModPartInventoryField.setText(Integer.toString(inHouse.getStock()));\n ModPartPriceField.setText(Double.toString(inHouse.getPrice()));\n ModPartMaxField.setText(Integer.toString(inHouse.getMax()));\n ModPartMinField.setText(Integer.toString(inHouse.getMin()));\n partSourceField.setText(Integer.toString(inHouse.getMachineId()));\n inHouseRadBtn.setSelected(true);\n } else if (selectedPart instanceof Outsourced){\n labelPartSource.setText(\"Company Name\");\n Outsourced outsourced = (Outsourced) selectedPart;\n ModPartIDField.setText(Integer.toString(outsourced.getId()));\n ModPartNameField.setText(outsourced.getName());\n ModPartInventoryField.setText(Integer.toString(outsourced.getStock()));\n ModPartPriceField.setText(Double.toString(outsourced.getPrice()));\n ModPartMaxField.setText(Integer.toString(outsourced.getMax()));\n ModPartMinField.setText(Integer.toString(outsourced.getMin()));\n partSourceField.setText(outsourced.getCompanyName());\n OutsourcedRadBtn.setSelected(true);\n }\n }", "@FXML\n void addPartBtnClicked(ActionEvent event) {\n if(partList.getSelectionModel().isEmpty()) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"No part selected\");\n }\n // Otherwise, the system begins to create an object for the part, which will have its stock adjusted, and the\n // junction table between parts and jobs. The system adds both IDs to the junction object before attempting to\n // get the stock level inputted.\n else {\n Part part = partHashMap.get(partList.getSelectionModel().getSelectedItem().getText());\n PartJob partJob = new PartJob();\n PartJobDAO partJobDAO = new PartJobDAO();\n PartDAO partDAO = new PartDAO();\n partJob.setJobID(jobReference.getJob().getJobID());\n partJob.setPartID(part.getPartID());\n try {\n // The system checks to see if the stock specified by the user is not equal to a value below 1 or\n // above the current stock so that it can actually be used by the system. If it cannot, the system will produce\n // an alert stating this.\n if (Integer.parseInt(stockUsedField.getText()) < 1 || part.getStockLevel() < Integer.parseInt(stockUsedField.getText())) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Stock out of bounds\");\n }\n // Otherwise, the system sets the stock to the inputted value and begins to check if the part is currently tied to\n // the job. If it is, a boolean value will be marked as true and, instead of adding a new part, simply adjusts the\n // stock taken for the current entry for the junction table as well as the current stock of the part, unless the\n // stock adjustment would cause the part stock to go below zero, in which case the system produces another alert\n // stating this.\n else {\n partJob.setStockUsed(stockUsedField.getText());\n boolean isPartInJob = false;\n int stockDifference = 0;\n for (PartJob pj : partJobDAO.getAll()) {\n if (pj.getPartID().equals(partJob.getPartID()) && pj.getJobID() == partJob.getJobID()) {\n isPartInJob = true;\n stockDifference = Integer.parseInt(pj.getStockUsed()) + Integer.parseInt(partJob.getStockUsed());\n }\n }\n if (stockDifference > part.getStockLevel()) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Stock out of bounds\");\n }\n else {\n if (isPartInJob) {\n partJobDAO.update(partJob);\n part.setStockLevel(part.getStockLevel() - stockDifference);\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Success\", \"Stock used updated\");\n }\n // If the part is not currently tied to the job, it creates a new entry within the junction table for\n // parts and jobs and then adjusts the stock accordingly, before producing an alert stating that the\n // part was successfully added.\n else {\n partJobDAO.save(partJob);\n part.setStockLevel(part.getStockLevel() - Integer.parseInt(stockUsedField.getText()));\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Success\", \"Added part to job\");\n }\n partDAO.update(part);\n\n // If this action causes the stock level to go below the stock threshold, a notification alerting the\n // user of this will be generated.\n if(part.getStockLevel() <= part.getThresholdLevel()) {\n SystemNotification notification = new SystemNotification(addPartToJobStackPane);\n notification.setNotificationMessage(\"The number of parts has fallen below the threshold, \" +\n \"please order more as soon as possible\");\n notification.showNotification(NavigationModel.UPDATE_STOCK_ID, DBLogic.getDBInstance().getUsername());\n }\n\n //After this is all done, the list of parts is cleared alongside the hashmap, and the list is refreshed.\n partList.getSelectionModel().select(null);\n partList.getItems().clear();\n partHashMap.clear();\n refreshList();\n }\n }\n }\n // If the value for stock is not an integer value, the system will produce an alert stating this.\n catch(Exception e) {\n SystemAlert systemAlert = new SystemAlert(addPartToJobStackPane,\n \"Failure\", \"Invalid stock given\");\n }\n }\n }", "@Override\n\tpublic void msgPartsLow() {\n\t\t\n\t}", "@FXML\r\n void onActionAddPart(ActionEvent event) {\r\n\r\n Part part = TableView1.getSelectionModel().getSelectedItem();\r\n if(part == null)\r\n return;\r\n else {\r\n product.getAllAssociatedParts().add(part);\r\n }\r\n }", "private void presentShowcaseSequence() {\n }", "Batiment choixBatiment(Partie partie, int nbDoublon, Plateau plateau);", "public interface Part\n{\n\t/**\n\t * Add a draw to the part; pool and count to draw from.\n\t * \n\t * @param pool\n\t * The pool to draw from.\n\t * @param numQuestions\n\t * The number of questions to draw.\n\t * @return the PoolDraw detail added.\n\t */\n\tPoolDraw addDrawDetail(Pool pool, Integer numQuestions);\n\n\t/**\n\t * Add a pick to the part; question.\n\t * \n\t * @param question\n\t * The question to add.\n\t * @return the QuestionPick detail added.\n\t */\n\tQuestionPick addPickDetail(Question question);\n\n\t/**\n\t * Access the back pointer to the assessment.\n\t * \n\t * @return The back pointer to the assessment.\n\t */\n\tAssessment getAssessment();\n\n\t/**\n\t * Access the part details, each a PoolDraw or QuestionPick.\n\t * \n\t * @return The List of part details.\n\t */\n\tList<PartDetail> getDetails();\n\n\t/**\n\t * Access the first question. The order will be in a random order (if enabled) based on the current user.\n\t * \n\t * @return The first question, or null if there are none.\n\t */\n\tQuestion getFirstQuestion();\n\n\t/**\n\t * Access the id.\n\t * \n\t * @return The id.\n\t */\n\tString getId();\n\n\t/**\n\t * Get a message describing what is wrong with the part.\n\t * \n\t * @return A localized message describing what is wrong with the part, or null if the part is valid.\n\t */\n\tString getInvalidMessage();\n\n\t/**\n\t * Check if the part is valid.\n\t * \n\t * @return TRUE if the part is valid, FALSE if not.\n\t */\n\tBoolean getIsValid();\n\n\t/**\n\t * Access the last question. The order will be in a random order (if enabled) based on the current user.\n\t * \n\t * @return The last question, or null if there are none.\n\t */\n\tQuestion getLastQuestion();\n\n\t/**\n\t * Access the count of questions.\n\t * \n\t * @return The count of questions.\n\t */\n\tInteger getNumQuestions();\n\n\t/**\n\t * Access the ordering information within the assessment.\n\t * \n\t * @return The ordering information within the assessment.\n\t */\n\tOrdering<Part> getOrdering();\n\n\t/**\n\t * Access the assessment's presentation; the rich text and attachments that describe the assessment.\n\t * \n\t * @return The assessment's presentation.\n\t */\n\tPresentation getPresentation();\n\n\t/**\n\t * Access one of the questions, by question id.\n\t * \n\t * @param questionId\n\t * The question id.\n\t * @return the question, or null if the question is not defined or not part of the Part.\n\t */\n\tQuestion getQuestion(String questionId);\n\n\t/**\n\t * Access one of the questions, by question id, if it is in the part in a draw (not pick).\n\t * \n\t * @param questionId\n\t * The question id.\n\t * @return the question, or null if the question is not defined or not part of the Part as a draw.\n\t */\n\tQuestion getQuestionInDraw(String questionId);\n\n\t/**\n\t * Access one of the questions, by question id, if it is in the part in a pick (not draw).\n\t * \n\t * @param questionId\n\t * The question id.\n\t * @return the question, or null if the question is not defined or not part of the Part as a pick.\n\t */\n\tQuestion getQuestionInPick(String questionId);\n\n\t/**\n\t * Access the questions in delivery order.\n\t * \n\t * @return The questions in delivery order.\n\t */\n\tList<Question> getQuestions();\n\n\t/**\n\t * Access the questions that have been used for this part in any submissions. <br />\n\t * Order by question description.\n\t * \n\t * @return The questions that have been used for this part in any submissions\n\t */\n\tList<Question> getQuestionsUsed();\n\n\t/**\n\t * Access the randomize flag.\n\t * \n\t * @return TRUE if questions should be randomized per submission, FALSE if they should be presented in authored order.\n\t */\n\tBoolean getRandomize();\n\n\t/**\n\t * @return a non empty string describing the part; either the title, or text based on the part position.\n\t */\n\tString getTag();\n\n\t/**\n\t * Access the title.\n\t * \n\t * @return The title.\n\t */\n\tString getTitle();\n\n\t/**\n\t * Access the sum of all possible points for all questions in the part.\n\t * \n\t * @return The sum of all possible points for all questions in the part.\n\t */\n\tFloat getTotalPoints();\n\n\t/**\n\t * Remove the detail with this detail id.\n\t * \n\t * @param id\n\t * The detail id.\n\t */\n\tvoid removeDetail(String id);\n\n\t/**\n\t * Remove any draw detail that is for this pool.\n\t * \n\t * @param pool\n\t * The pool to remove.\n\t */\n\tvoid removeDrawDetail(Pool pool);\n\n\t/**\n\t * Remove any pick detail that selects this question.\n\t * \n\t * @param question\n\t * The question to remove.\n\t */\n\tvoid removePickDetail(Question question);\n\n\t/**\n\t * Set the randomize flag.\n\t * \n\t * @param setting\n\t * TRUE if questions should be randomized per submission, FALSE if they should be presented in authored order.\n\t */\n\tvoid setRandomize(Boolean setting);\n\n\t/**\n\t * Set the title.\n\t * \n\t * @param title\n\t * The title.\n\t */\n\tvoid setTitle(String title);\n}", "public void computersTurn(int focusedSquare){//gives the index of the focused square.\n if (focusedSquare ==-1)\n focusedSquare = changeFocus();\n System.out.println(\"\\n\\n\\n\\n\"+focusedSquare);\n boolean squareAlreadyPicked = false;\n int square = -1;\n double sum=0;\n modifiedMark = createModifiedMarkovModel(focusedSquare);\n double rand;\n while(!squareAlreadyPicked){//checking if square has already been picked before.\n \n if(stepsCompleted<25){\n rand = getRand(0); //generates random number based on sum of existing probabilities in modifiedMarkov\n square = caseBased(rand, sum, 0, 0);\n }\n \n else if((stepsCompleted>=25)&&(stepsCompleted<=50)){\n rand = getRand(1);\n square = caseBased(rand,sum,1,0);\n }\n\n else if (stepsCompleted>50){\n rand = getRand(2);\n square = caseBased(rand,sum,2,0);\n }\n squareAlreadyPicked=true;\n\n }\n System.out.println(square);\n bSquares.get(focusedSquare).getSmallSquare(square).setOwnership(1);\n bSquares.get(focusedSquare).getSmallSquare(square).setCommitted(true);\n stepsCompleted++;\n updateDatabase(focusedSquare,square, false); //updates the database with the player's move B4 the focus is changed\n for (int t = 0; t<9; t++){//removes focus everywhere else.\n bSquares.get(t).sethasFocus(false);\n }\n \n bSquares.get(square).sethasFocus(true);//tells which square has focus\n \n }", "void addHadithChapterNo(Object newHadithChapterNo);", "public void saveNew() {\r\n String name, compName;\r\n double price;\r\n int id, inv, max, min, machId;\r\n //Gets the ID of the last part in the inventory and adds 1 to it \r\n id = Inventory.getAllParts().get(Inventory.getAllParts().size() - 1).getId() + 1;\r\n name = nameField.getText();\r\n inv = Integer.parseInt(invField.getText());\r\n price = Double.parseDouble(priceField.getText());\r\n max = Integer.parseInt(maxField.getText());\r\n min = Integer.parseInt(minField.getText());\r\n\r\n if (inHouseSelected) {\r\n machId = Integer.parseInt(machineOrCompanyField.getText());\r\n Part newPart = new InHouse(id, name, price, inv, min, max, machId);\r\n Inventory.addPart(newPart);\r\n } else {\r\n compName = machineOrCompanyField.getText();\r\n Part newPart = new Outsourced(id, name, price, inv, min, max, compName);\r\n Inventory.addPart(newPart);\r\n }\r\n\r\n }", "public void goToModifyPartScene(ActionEvent event) throws IOException {\n\n if(partTableView.getSelectionModel().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please make sure you've added a Part and selected the Part you want to modify.\");\n alert.show();\n } else {\n int i = partTableView.getSelectionModel().getFocusedIndex();\n setFocusedIndex(i);\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"ModifyPart.fxml\"));\n Scene modifyPartScene = new Scene(addPartParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(modifyPartScene);\n window.show();\n }\n\n\n }", "public void partInputChanged(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public void addPart(int number, GUI_Part p) {\r\n \t\tstands[number].kit.addPart(p);\r\n \t}", "@Override\r\n\t\t\tpublic void partBroughtToTop(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "private void checkStories(){\n }", "public void makesHereBack(){this.piece.affect();}", "public abstract void pickUp();", "public void makesNotHere(){this.piece.unAffect();}", "public abstract void msgCookThisOrder(String choice, JiWaiter w, int tableNum);", "public Part getPartToModify()\n {\n if (partTable.getSelectionModel().getSelectedItem() != null)\n {\n return ((Part) partTable.getSelectionModel().getSelectedItem());\n }\n return null;\n }", "@FXML\r\n private void addPartAction() throws IOException {\r\n \r\n generateScreen(\"AddModifyPartScreen.fxml\",\"Add Part\");\r\n updatePartsTable(stock.getAllParts());\r\n \r\n }", "public void past(int back);", "@Override\r\n\tpublic void BulidPartA() {\n\t product.add(\"part A\");\r\n\r\n\t}", "public void partActivated(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public void addPartNumber(String partNumber){partNumbers.add(partNumber);}", "int restockPart(int idType, int number) throws RemoteException;", "@Override\n\t\t\t\t\tpublic void partVisible(IWorkbenchPartReference arg0) {\n\n\t\t\t\t\t}", "void pickUp();", "@Override\n\tpublic void msgFedPart() {\n\t\t\n\t}", "@Override\n public synchronized void partBroughtToTop(IWorkbenchPart part) {\n partActivated(part);\n }", "public static void menu()\n {\n //Complete exercises 9.3.1, 9.4.2, and 9.6.1. Extra Credit: 9.3.1 (d)\n System.out.println(\"Welcome to Akash and Bobby's Homework\");\n char part;\n\n for (int i = 0; i < 100; i++) {\n System.out.println(\"______________________________________\\n\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"(a) Exercise 9.3.1 [Parts a - c, e]\");\n System.out.println(\"(b) Exercise 9.4.2 [Parts a - d]\");\n System.out.println(\"(c) Exercise 9.3.1 d [Extra Credit]\");\n System.out.println(\"Enter [exit] to quit.\");\n char choice = getResponse(\"Exercise\", false); // a,b,c,d or x\n if (choice == 'g') {\n System.out.println(\"Bye, thanks for playing.\");\n break;\n }\n while (choice == 'x') {\n choice = getResponse(\"Exercise\", true);\n }\n System.out.println(\"-----------------------------------------------\");\n if (choice == 'a') {\n System.out.println(\"Exercise 9.3.1 [parts a - c, e]\");\n part = getResponse(\"Part\", false);\n while (part == 'x') {\n part = getResponse(\"Part\", true);\n }\n System.out.println(\"Exercise 9.3.1: \" + part);\n Exercise931(part);\n //Call Exercise931(choice);\n } else if (choice == 'b') {\n System.out.println(\"Exercise 9.4.2 [parts a - d]\");\n part = getResponse(\"Part\", false);\n while (part == 'x') {\n part = getResponse(\"Part\", true);\n }\n System.out.println(\"Exercise 9.4.2: \" + part);\n Exercise942(part);\n //Call Exercise942(choice);\n } else if (choice == 'c') {\n System.out.println(\"Exercise 9.3.1 d\");\n //Call Exercise931d;\n } else if (choice == 'd') {\n //Exercise931(d);\n }\n }\n }", "@Override\n\t\t\t\t\tpublic void partInputChanged(IWorkbenchPartReference arg0) {\n\n\t\t\t\t\t}", "private void updatePartOrder(Order order)\n {\n int index = getIndex() - 1;\n Integer amount = getAmount();\n\n try{\n orderController.updatePartOrder(order,index, amount);\n }catch(IndexOutOfBoundsException i){\n System.out.println(\"Vælg et tal fra produktlisten.\");\n }catch (Exception e) {\n System.out.println(\"Ikke nok varer på lager.\");\n }\n }", "public abstract void setstockNumber();", "@Override\n\tpublic void terminalStep(StateView arg0, HistoryView arg1) {\n\n\t}", "public int getPartID() { return partID; }", "@Override\n\tpublic void channelParted(String channel) {\n\t}", "public Card chooseCard(Hand h, Trick t);", "public void modifyPartData(Part part) {\r\n modifyingPart = true;\r\n nameField.setText(part.getName());\r\n iDfield.setText(Integer.toString(part.getId()));\r\n invField.setText(Integer.toString(part.getStock()));\r\n priceField.setText(Double.toString(part.getPrice()));\r\n maxField.setText(Integer.toString(part.getMax()));\r\n minField.setText(Integer.toString(part.getMin()));\r\n if (part instanceof InHouse) {\r\n machineOrCompanyField.setText(Integer.toString(((InHouse) part).getMachineId()));\r\n inHouseSelected = true;\r\n } else if (part instanceof Outsourced) {\r\n inHouseSelected = false;\r\n machineOrCompanyField.setText(((Outsourced) part).getCompanyName());\r\n radioToggleGroup.selectToggle(outsourcedRadio);\r\n toggleSwitch();\r\n }\r\n }", "private static void hold(int piece){\n\t\tholdPiece = piece;\n\t\tMain.hold();\n\t}", "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 }", "@Override\r\n\tpublic void buildPart() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void BulidPartB() {\n\t\tproduct.add(\"part B\");\r\n\t}", "void removeHadithChapterNo(Object oldHadithChapterNo);", "public void partBroughtToTop(IWorkbenchPart part) {\n if (part instanceof ReviewEditorView) {\n log.debug(\"part is brought to top.\");\n }\n }", "@Override\n\tpublic void partOpened(IWorkbenchPart part) {\n\t}", "public void iniciarNovaPartida(Integer posicao);", "public void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "public void partHidden(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "void setData(Part selectedPart) {\n\n this.selectedPart = selectedPart;\n partIDTextField.setText(String.valueOf(selectedPart.getPartsID())); // Setting value of part id to the Modify window\n partNameTextField.setText(\"\" + selectedPart.getPartsName()); // Setting value of part name to the Modify window\n partLnvField.setText(\"\" + selectedPart.getPartsLevel()); // Setting value of part lnv to the Modify window\n partPriceField.setText(\"\" + selectedPart.getPartsCost()); // Setting value of part price to the Modify window\n editData = true; // Setting value of editData boolean flas to true for the Modify window to activate\n partMaxField.setText(\"\" + selectedPart.getPartMax());\n partMinField.setText(\"\" + selectedPart.getPartMin());\n if (selectedPart.inHouse) {\n inHouseButtonAction(null);\n partMachineIDField.setText(\"\" + selectedPart.getCompanyNameOrMachineID()); // setting machineid for inhouse parts\n } else {\n outsourceButtonPress(null);\n partCompanyNameField.setText(\"\" + selectedPart.getCompanyNameOrMachineID()); // setting company name for outsourced parts\n }\n }", "public void chooseForMe() {\n }", "@Override\n public void pickItem(int position) {\n setProductPicked(-1, position);\n }", "@FXML private void handleAddProdAdd(ActionEvent event) {\n if (fxidAddProdAvailableParts.getSelectionModel().getSelectedItem() != null) {\n //get the selected part from the available list\n Part tempPart = fxidAddProdAvailableParts.getSelectionModel().getSelectedItem();\n //save it to our temporary observable list\n partToSave.add(tempPart);\n //update the selected parts list\n fxidAddProdSelectedParts.setItems(partToSave); \n } else {\n Alert partSearchError = new Alert(Alert.AlertType.INFORMATION);\n partSearchError.setHeaderText(\"Error!\");\n partSearchError.setContentText(\"Please select a part to add.\");\n partSearchError.showAndWait();\n }\n }", "private static void hilfe(int art){\n\t\tif(art == 0){\r\n\t\t\twriter.println(\"---------- HILFE ----------\");\r\n\t\t\twriter.println(\"Es stehen folgende Kommandos zur Verfügung (Kommandos in Großbuchstaben, Parameter in Kamelschreibweise)\");\r\n\t\t\twriter.println(\"HILFE ------------------------------------------------- Zeigt eine Liste aller Kommandos an\");\r\n\t\t\twriter.println(\"SPIELER_HINZUFUEGEN nameDesSpielers ------------------- Fügt einen neuen Spieler mit dem entsprechenden Namen hinzu\");\r\n\t\t\twriter.println(\"SPIELER_FERTIG ---------------------------------------- Beendet die Eingabe der Spieler\");\r\n\t\t} else if (art == 1){\r\n\t\t\twriter.println(\"---------- HILFE ----------\");\r\n\t\t\twriter.println(\"Es stehen folgende Kommandos zur Verfügung (Kommandos in Großbuchstaben, Parameter in Kamelschreibweise)\");\r\n\t\t\twriter.println(\"HILFE ------------------------------------------------- Zeigt eine Liste aller Kommandos an\");\r\n\t\t\twriter.println(\"BERICHT ----------------------------------------------- Zeigt den aktuellen Bericht des Spielers mit allen Informationen an\");\r\n\t\t\twriter.println(\"BERICHT rundenNummer ---------------------------------- Zeigt den Bericht des Spielers mit allen Informationen an zur Runde rundenNummer an\");\r\n\t\t\twriter.println(\"STANDORT ---------------------------------------------- Zeigt eine Liste aller Standorte an\");\r\n\t\t\twriter.println(\"MAGAZIN_EROEFFNEN standortName ------------------------ Erzeugt ein Magazin am angegebenen Standort mit der entsprechend Mitarbeiteranzahl\");\r\n\t\t\twriter.println(\"KREDIT_AUFNEHMEN betrag ------------------------------- Nimmt einen Kredit in der angegebenen Höhe auf\");\r\n\t\t\twriter.println(\"KREDIT_TILGEN betrag ---------------------------------- Tilgt einen Kredit in der angegebenen Höhe\");\r\n\t\t\twriter.println(\"WERBUNG_SCHALTEN aktion ------------------------------- Setzt den Anteil der Werbeaktionen für das Magazin auf aktion Aktionen zu je 10.000€\");\r\n\t\t\twriter.println(\"WERBUNG_MAGAZIN anteil -------------------------------- Der Werbeanteil im Magazin wird auf anteil Seiten gesetzt (12.500€ pro Seite)\");\r\n\t\t\twriter.println(\"MITARBEITER_EINSTELLEN mitarbeiterAnzahl -------------- Stellt mitarbeiterAnzahl Mitarbeiter im Magazin ein\");\r\n\t\t\twriter.println(\"MITARBEITER_ENTLASSEN mitarbeiterAnzahl --------------- Entlässt mitarbeiterAnzahl Mitarbeiter aus dem Magazin\");\r\n\t\t\twriter.println(\"MITARBEITER_SCHULEN ----------------------------------- Mitarbeiter werden um eine Schulungseinheit geschult\");\r\n\t\t\twriter.println(\"VERKAUFSPREIS_SETZEN preis ---------------------------- Setzt den Preis für das Magazin\");\r\n\t\t\twriter.println(\"AUFLAGE_SETZEN auflage -------------------------------- Setzt die Auflage für das Magazin auf auflage\");\r\n\t\t\twriter.println(\"RUNDE_FERTIG ------------------------------------------ Beendet das Treffen der Entscheidungen und lässt den nächsten Spieler dran\");\r\n\t\t} else {\r\n\t\t\t//ignore\r\n\t\t}\r\n\t}", "public String getPartNumber()\r\n {\r\n return partNumber; // should validate\r\n }", "public void getChoice()\n {\n }", "@FXML\r\n public void lookupPart() {\r\n \r\n String text = partSearchTxt.getText().trim();\r\n if (text.isEmpty()) {\r\n //No text was entered. Displaying all existing parts from inventory, if available\r\n displayMessage(\"No text entered. Displaying existing parts, if available\");\r\n updatePartsTable(stock.getAllParts());\r\n }\r\n else{\r\n ObservableList<Part> result = stock.lookupPart(text);\r\n if (!result.isEmpty()) {\r\n //Part foung in inventory. Displaying information available. \r\n updatePartsTable(result);\r\n }\r\n else {\r\n //Part not found in inventory. Displaying all existing parts from inventory, if available\r\n displayMessage(\"Part not found. Displaying existing parts, if available\");\r\n updatePartsTable(stock.getAllParts());\r\n }\r\n }\r\n \r\n }", "@Override\n\tpublic Map<Integer, Action> initialStep(StateView newstate, HistoryView stateHistory) {\n\t\tList<Integer> myUnitIds = new ArrayList<Integer>();\n\t\t\n\t\t//a list that stores all player's footman\n\t\tList<Integer> myFootmanIds = new ArrayList<Integer>();\n\t\t\n\t\tmyUnitIds = newstate.getUnitIds(playernum);\n\t\t\n\t\t//add all footman to their list\n\t\tfor(Integer unitID : myUnitIds) {\n\t\t\tString unitTypeName = newstate.getUnit(unitID).getTemplateView().getName();\n\t\t\tif(unitTypeName.equals(\"Footman\"))\n\t\t\t\tmyFootmanIds.add(unitID);\n\t\t}\n\t\t\n\t\t//let the first footman be the bait\n\t\tbait = myFootmanIds.get(0);\n\t\t\n\t\treturn middleStep(newstate, stateHistory);\n\t}", "@Override\n\t\t\t\t\tpublic void partHidden(IWorkbenchPartReference arg0) {\n\n\t\t\t\t\t}", "QuestionPick addPickDetail(Question question);", "@FXML\n void OnActionSave(ActionEvent event) throws IOException {\n int partId = Integer.parseInt(ModPartIDField.getText());\n String name = ModPartNameField.getText();\n int stock = Integer.parseInt(ModPartInventoryField.getText()); //wrapper to convert string to int\n double price = Double.parseDouble(ModPartPriceField.getText());\n int max = Integer.parseInt(ModPartMaxField.getText());\n int min = Integer.parseInt(ModPartMinField.getText());\n\n //create new part from modified fields\n try {\n if (inHouseRadBtn.isSelected()) { //assigns value based on which radio button is selected\n //labelPartSource.setText(\"Machine ID\");\n int machineID = Integer.parseInt(partSourceField.getText());\n InHouse modifiedPart = new InHouse(partId, name, price, stock, max, min, machineID);\n isValid();\n Inventory.addPart(modifiedPart);\n } else if(OutsourcedRadBtn.isSelected()){\n //labelPartSource.setText(\"Company Name\");\n String companyName = partSourceField.getText();\n Outsourced modifiedPart = new Outsourced(partId, name, price, stock, max, min, companyName);\n isValid();\n Inventory.addPart(modifiedPart);\n }\n //remove former part when replaced with modified part\n Inventory.allParts.remove(part);\n //onActionSave should return to MainScreen\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/view/MainScreen.fxml\"));\n stage.setTitle(\"Inventory Management System\");\n stage.setScene(new Scene(scene));\n stage.show();\n\n }\n //in case inventory does not fall in between min and max\n catch (NumberFormatException e) {\n Alert alert = new Alert(Alert.AlertType.WARNING, \"Please enter a valid value for each text field.\");\n alert.showAndWait();\n }\n\n }", "@FXML void onActionModifyProductAdd(ActionEvent event) {\n Part selectedPart = partTableView.getSelectionModel().getSelectedItem();\n tmpAssociatedParts.add(selectedPart);\n }", "public void partClosed(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void partInputChanged(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "public void checkRecorders(PropFinder finder, SensorCrum scrum) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9576:OrglRoot methodsFor: 'backfollow'!\n{void} checkRecorders: finder {PropFinder} \n\twith: scrum {SensorCrum | NULL}\n\t\"check any recorders that might be triggered by a change in the stamp\"\n\t\n\tself subclassResponsibility!\n*/\n}", "@Override\r\n\tpublic void selectionChanged(IWorkbenchPart part, ISelection selection) {\n\r\n\t}", "void setPassedHabit(Habit passedHabit);", "public boolean gatherPatchInfo(String title, Model change, boolean writing)\n {\n JComboBox bank = new JComboBox(BANKS);\n bank.setEditable(false);\n bank.setMaximumRowCount(32);\n bank.setSelectedIndex(model.get(\"bank\"));\n \n JTextField number = new SelectedTextField(\"\" + (model.get(\"number\")), 3);\n \n while(true)\n {\n boolean result = showMultiOption(this, new String[] { \"Bank\", \"Patch Number\"}, \n new JComponent[] { bank, number }, title, \"Enter the Bank and Patch number.\");\n \n if (result == false) \n return false;\n \n int n;\n try { n = Integer.parseInt(number.getText()); }\n catch (NumberFormatException e)\n {\n showSimpleError(title, \"The Performance Number must be an integer 0 ... 49\");\n continue;\n }\n if (n < 0 || n > 49)\n {\n showSimpleError(title, \"The Performance Number must be an integer 0 ... 49\");\n continue;\n }\n \n change.set(\"bank\", bank.getSelectedIndex());\n change.set(\"number\", n);\n \n return true;\n }\n }", "@Override\r\n\t\t\tpublic void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\r\n\t\t\t}", "public void setPartNo(String partNo){\n\t\t // store into the instance variable partNo (i.e. this.partNo) the value of the parameter partNo\n\t\tthis.partNo = partNo;\n\t}", "int insertSelective(WizardValuationHistoryEntity record);", "public void PrevGame(){\n partidaNum --;\n current = current.getAnterior();\n ListaDoble partida = (ListaDoble) current.getDato();\n currentTurn = partida.getInicio();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }", "public void grab() {\r\n\t\tString item = mapContents[currentPlayer.getCurrentRoom()];\r\n\t\tif (item == null) return;\r\n\t\t\r\n\t\t// If artifact, make sure has room or backpack\r\n\t\tif (item.startsWith(\"Artifact\")) {\r\n\t\t\tif (currentPlayer.count(\"Artifact\") <= currentPlayer.count(\"Backpack\")) {\r\n\t\t\t\tcurrentPlayer.pickup(item);\r\n\t\t\t\tattackLevel++;\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` picked up an Artifact **\"+item.substring(8)+\"** :star:\",true);\r\n\t\t\t\taddHistory(\"ARTIFACT \"+item.substring(8));\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = null;\r\n\t\t\t}\r\n\t\t// If monkey idol, make sure didn't already pick one up this turn\r\n\t\t} else if (item.startsWith(\"MonkeyIdol\") && !currentPlayer.getAlreadyPickedUpMonkeyIdol()) {\r\n\t\t\tcurrentPlayer.pickup(item);\r\n\t\t\tcurrentPlayer.setAlreadyPickedUpMonkeyIdol(true);\r\n\t\t\tint num = Integer.parseInt(item.substring(10));\r\n\t\t\tnum--;\r\n\t\t\tif (num == 0) {\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = null;\r\n\t\t\t} else {\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = \"MonkeyIdol\"+num;\r\n\t\t\t}\r\n\t\t\taddEvent(\"``\"+currentName+\"`` picked up a Monkey Idol **5** :star:\",true);\r\n\t\t\taddHistory(\"IDOL \"+item.substring(8));\r\n\t\t}\r\n\t\tupdateReactionsInfo();\r\n\t\tupdatePlayArea(currentPlayer, false);\r\n\t\tupdateMarketAndTreasures(false);\r\n\t\ttry {\r\n\t\t\tupdateBoard();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void changePiece() {\n if (piece == 1) {\n piece = 2;\n } else {\n piece = 1;\n }\n //System.out.println(\"Nu ben ik piece \" + piece);\n }", "public void setPartitionNumber(int part) {\n\tpartitionNumber = part;\n }", "public void previousRecord( View v){\n// \tClear out the display first\n \tclearBtn( v );\n \tLog.i(\"in prev record\", \"this sheep ID is \" + String.valueOf(thissheep_id));\n \tcursor.moveToPrevious();\n \tLog.i(\"in prev record\", \"after moving the cursor \");\n \tthissheep_id = cursor.getInt(0);\n \tLog.i(\"in prev record\", \"this sheep ID is \" + String.valueOf(thissheep_id));\n \trecNo -= 1;\n \tfindTagsShowAlert(v, thissheep_id);\n\t\t// I've moved back so enable the next record button\n\t\tButton btn2 = (Button) findViewById( R.id.next_rec_btn );\n\t\tbtn2.setEnabled(true); \t\t\n \tif (recNo == 1) {\n \t\t// at beginning so disable prev record button\n \t\tButton btn3 = (Button) findViewById( R.id.prev_rec_btn );\n \tbtn3.setEnabled(false); \t\t\n \t}\n }", "@Override\r\npublic void setNumcopy(int numcopy) {\n\tsuper.setNumcopy(numcopy);\r\n}", "public String getPartNumber(int partNumber){\n if(partNumbers.size() > partNumber) return partNumbers.get(partNumber);\n else return null;\n }", "public void openHistory() {\n usingHistoryScreen = true;\n myActivity.setContentView(R.layout.history);\n Button historyButtonToGame = myActivity.findViewById(R.id.button8);\n TextView historyText = myActivity.findViewById(R.id.textView46);\n historyText.setText(state.getHistory());\n historyText.setMovementMethod(new ScrollingMovementMethod());\n gui.invalidate();\n historyButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingHistoryScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n });\n }", "public void replacePart(Part modifiedPart) {\r\n Part newPart;\r\n String name, compName;\r\n double price;\r\n int id, inv, max, min, machId;\r\n //Gets the ID of the last part in the inventory and adds 1 to it \r\n id = Inventory.getAllParts().get(Inventory.getAllParts().size() - 1).getId() + 1;\r\n name = nameField.getText();\r\n inv = Integer.parseInt(invField.getText());\r\n price = Double.parseDouble(priceField.getText());\r\n max = Integer.parseInt(maxField.getText());\r\n min = Integer.parseInt(minField.getText());\r\n\r\n if (inHouseSelected) {\r\n machId = Integer.parseInt(machineOrCompanyField.getText());\r\n newPart = new InHouse(id, name, price, inv, min, max, machId);\r\n } else {\r\n compName = machineOrCompanyField.getText();\r\n newPart = new Outsourced(id, name, price, inv, min, max, compName);\r\n }\r\n newPart.setId(modifiedPart.getId());\r\n Inventory.updatePart(Inventory.getAllParts().indexOf(modifiedPart), newPart);\r\n }", "public int changeFocus (){\n boolean squareAlreadyPicked = false;\n int square = -1;\n double sum=0;\n modifiedMark = createModifiedMarkovModel(-1);\n double rand;\n while(!squareAlreadyPicked){//checking if square has already been picked before.\n \n if(stepsCompleted<25){\n rand = getRand(0); //generates random number based on sum of existing probabilities in modifiedMarkov\n square = caseBased(rand, sum, 0, 0);\n }\n \n else if((stepsCompleted>=25)&&(stepsCompleted<=50)){\n rand = getRand(1);\n square = caseBased(rand,sum,1,0);\n }\n\n else if (stepsCompleted>50){\n rand = getRand(2);\n square = caseBased(rand,sum,2,0);\n }\n squareAlreadyPicked=true;\n }\n return square;\n }", "@FXML\n void saveModifiedParts(MouseEvent event) {\n if (nameTxt.getText().isEmpty()) {\n errorWindow(2);\n return;\n }\n if (invTxt.getText().isEmpty()) {\n errorWindow(10);\n return;\n }\n if (maxTxt.getText().isEmpty()) {\n errorWindow(4);\n return;\n }\n if (minTxt.getText().isEmpty()) {\n errorWindow(5);\n return;\n }\n if (costTxt.getText().isEmpty()) {\n errorWindow(3);\n return;\n }\n if (companyNameTxt.getText().isEmpty()) {\n errorWindow(9);\n return;\n }\n // trying to parce the entered values into an int or double for price\n try {\n min = Integer.parseInt(minTxt.getText());\n max = Integer.parseInt(maxTxt.getText());\n inv = Integer.parseInt(invTxt.getText());\n id = Integer.parseInt(idTxt.getText());\n price = Double.parseDouble(costTxt.getText());\n } catch (NumberFormatException e) {\n errorWindow(11);\n return;\n }\n if (min >= max) {\n errorWindow(6);\n return;\n }\n if (inv < min || inv > max) {\n errorWindow(7);\n return;\n }\n if (min < 0) {\n errorWindow(12);\n }\n // if the in-house radio is selected \n if (inHouseRbtn.isSelected()) {\n try {\n machID = Integer.parseInt(companyNameTxt.getText());\n } catch (NumberFormatException e) {\n errorWindow(11);\n return;\n }\n\n Part l = new InHouse(id, nameTxt.getText(), price, inv, min, max, machID);\n inventory.updatePart(l);\n\n }// if out sourced radio button is selected \n if (outSourcedRbtn.isSelected()) {\n Part t = new OutSourced(id, nameTxt.getText(), price, inv, min, max, companyNameTxt.getText());\n inventory.updatePart(t);\n }\n // going back to main screen once part is added\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/View/FXMLmain.fxml\"));\n View.MainScreenController controller = new MainScreenController(inventory);\n\n loader.setController(controller);\n Parent root = loader.load();\n Scene scene = new Scene(root);\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.setScene(scene);\n stage.setResizable(false);\n stage.show();\n } catch (IOException e) {\n\n }\n\n }", "@Override\n public void setWrongRangeItem() { wrongLightMagicBook = new LightMagicBook(\"Wrong lightMagicBook\",0,-1,-2);}", "public void deletePart()\n {\n ObservableList<Part> partRowSelected;\n partRowSelected = partTableView.getSelectionModel().getSelectedItems();\n if(partRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Part you want to delete.\");\n alert.show();\n } else {\n int index = partTableView.getSelectionModel().getFocusedIndex();\n Part part = Inventory.getAllParts().get(index);\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Part?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if (result == ButtonType.OK) {\n Inventory.deletePart(part);\n }\n }\n }", "private void updateGameDescriptorAfterUndo() {\n roundNumber = roundsHistory.peek().getRoundNumber();\n gameDescriptor.setTerritoryMap(roundsHistory.peek().getCopyOfMap()); //This Set the gameDescriptor Territories as copy\n gameDescriptor.setPlayersList(roundsHistory.peek().getCopyOfPlayersList()); //This Set the gameDescriptor players as copy\n updateTurnsObjectQueue();\n }", "public void showHistorySwitchAction() {\n\t\tanimalsListPanel.switchToPast();\n\t}", "public void partDeactivated(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}", "abstract void bookCab();", "@Override // see item.java\n\tpublic void pickUp() {\n\n\t}", "private void studyMoreActionPerformed(ActionEvent evt) {\n }", "public Partie Charger() {\n if (SaveNum > 0 && SaveNum < 10) {\n //System.out.println(SaveNum);\n try {\n // System.out.println(slot[SaveNum - 1]);\n FileInputStream fis = new FileInputStream(slot[SaveNum - 1]);\n //System.out.println(\"recu\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n //System.out.println(\"recu\");\n Object p = ois.readObject();\n //System.out.println(\"recu\");\n ois.close();\n if (p instanceof Partie) {\n SaveNum = 20;\n return (Partie) p;\n }\n } catch (IOException | NullPointerException | ClassNotFoundException e) {\n System.out.println(\"Erreur lors du chargement du fichier\");\n }\n }\n return part;\n }" ]
[ "0.5965604", "0.5814476", "0.57116705", "0.5704703", "0.5609661", "0.5518935", "0.5482107", "0.54316306", "0.54285663", "0.54111505", "0.5368283", "0.52946705", "0.52792263", "0.52755743", "0.5211015", "0.518535", "0.5173454", "0.5122008", "0.5116761", "0.5097059", "0.50948846", "0.50740546", "0.5070668", "0.5069049", "0.5055699", "0.503855", "0.5026112", "0.5017806", "0.5010849", "0.50102794", "0.49953908", "0.49941885", "0.4978614", "0.49732834", "0.49681112", "0.4965592", "0.49433672", "0.49416238", "0.49319834", "0.49319777", "0.49131033", "0.49129373", "0.4912623", "0.4912017", "0.4899449", "0.48931885", "0.4892265", "0.48843396", "0.4883348", "0.48728973", "0.48678988", "0.48618045", "0.4857838", "0.48517635", "0.48476538", "0.48464498", "0.4846185", "0.48439407", "0.48367652", "0.48334992", "0.48300803", "0.4829918", "0.48166764", "0.48155403", "0.4814521", "0.48105186", "0.48091754", "0.48086134", "0.48059756", "0.4801769", "0.48000062", "0.47969085", "0.4794761", "0.47934178", "0.47880006", "0.4787172", "0.4772029", "0.47717595", "0.4771076", "0.4767475", "0.47665164", "0.4762741", "0.47606656", "0.47580028", "0.47542837", "0.47536463", "0.47493172", "0.47466373", "0.47426534", "0.47386128", "0.473455", "0.47332084", "0.4729121", "0.4728781", "0.4725811", "0.47195587", "0.47169477", "0.4713791", "0.47109544", "0.4699983", "0.4697028" ]
0.0
-1
The Command interface represents a command that will be executed on an Android application Eclipse project to modify the application.
public interface Command { /** * Performs the operation of the command * * @param projectDir Absolute path to the Android Application Eclipse * Project * @param paths Relative paths were to find the project's classes and * resources. * @throws CommandExecutionException if any error happens during the command * execution. */ void execute(String projectDir, Paths paths) throws CommandExecutionException; /** * The CommandExecutionException is a generic exception produced during the * execution of a command. */ class CommandExecutionException extends Exception { /** * Constructs a new Command Execution Exception raised by some abnormal * condition detected during the command execution. * * @param errorMessage Description of the error */ CommandExecutionException(String errorMessage) { super(errorMessage); } /** * Constructs a new Command Execution Exception raised by an internal * Exception. * * @param errorMessage Description of the error * @param cause Exception that originates the Command Execution * Exception */ CommandExecutionException(String errorMessage, Exception cause) { super(errorMessage, cause); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Command {\n \n /**\n * Méthode utilisée pour réaliser l'action voulue.\n */\n public void execute();\n \n /**\n * Méthode utilisée pour annuler la dernière action.\n */\n public void undo();\n}", "private interface Command {\n public void execute();\n }", "public interface Command {\n\n\n}", "public interface Command {\n void execute(final View view, CommandListener listener);\n}", "public interface Command {\n\tvoid execute();\n}", "public interface Command {\r\n\r\n\tpublic void execute();\r\n\r\n}", "public interface Command {\n\n void execute();\n void undo();\n}", "public interface Command\n{\n public void execute();\n public void undo();\n}", "public interface Command {\n void execute();\n\n void printCommandInfo();\n}", "interface Command\n{\n\tpublic void execute();\n}", "public interface Command{\n public void execute();\n\n}", "public interface ICommand {\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return long description of the command\r\n\t */\r\n\tString description();\r\n\r\n\t/**\r\n\t * \r\n\t * @return name of the command\r\n\t */\r\n\tString name();\r\n\r\n\t/**\r\n\t * Get called when the comma\r\n\t * @param console callback for output\r\n\t * @param options of the command invocation\r\n\t */\r\n\tvoid exec(ICommandConsole console, List<String> options);\r\n\r\n\t/**\r\n\t * \r\n\t * @return usage of the command\r\n\t */\r\n\tString usage();\r\n}", "public interface Command {\n void execute();\n}", "public interface Command {\n void execute();\n}", "public interface Command {\n void execute();\n}", "public interface Command {\n\n String getName();\n\n String getUsage();\n\n String getShortDescription();\n\n void execute(String command, PrintStream out);\n}", "public interface Command {\r\n \r\n /**\r\n * Executes this Command.\r\n */\r\n void execute();\r\n \r\n /**\r\n * Undoes this Commands.\r\n */\r\n void undo();\r\n}", "interface Command {\n void execute();\n}", "public interface Command {\n\t\n\tint execute(int number);\n}", "public interface Command {\n public void execute();\n}", "public interface Command {\n public void execute();\n}", "public interface Command {\n public void execute();\n}", "@Override\r\n public void execute(Command command) {\n\r\n }", "public interface Command {\n\n /**\n * Encapsulate the actions and can be called to invoke the actions on the receiver object.\n */\n void execute();\n\n /**\n * Encapsulate the undo actions.\n */\n void unDo();\n}", "interface CommandBase {}", "public interface Command {\n\t public String execute(String[] request);\n}", "public interface Command {\r\n public void execute(Long id);\r\n}", "public interface Command {\n\t/**\n *it is used to be defined and to call engine methods\n */\n public void execute();\n \n}", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public interface Command\n{\n void doCommand(List<String> args) throws Exception;\n}", "public interface ReloadViewUICommand extends UICommandMdsl\n{\n}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "Command createCommand();", "public interface ICommand {\n /**\n * The action each implementation of ICommand will execute when called\n */\n void execute();\n}", "interface OneArgCommand {\n void doCommand(String a);\n }", "public void setCommand(String command) {\n this.command = command;\n }", "public void addCommand(Command m);", "public abstract String getLaunchCommand();", "public abstract String getCommand();", "public interface Command {\n /**\n * Executes command, which reads from inputStream, with given arguments.\n *\n * @param args list of arguments for the command.\n * @param inputStream InputStream where Command reads from.\n * @param environment Shell environment with all current variables.\n *\n * @return result of command execution as InputStream.\n */\n InputStream execute(List<String> args, InputStream inputStream, Environment environment)\n throws SyntaxErrorException, IOException;\n}", "public interface ICommand {\n\tpublic abstract void execute(Rover roverInMovement, Plateau currentPlateauState) throws RoverOutOfPlateauException, GridBusyByOtherRoverException;\n}", "public interface Command {\n void doSomothing();//具体做什么\n}", "public interface ShellCommand {\n\n\t/**\n\t * Executes the command.\n\t * \n\t * @param env\n\t * environment in which the shell is executed\n\t * @param arguments\n\t * arguments of the command entered\n\t * @throws IOException\n\t * thrown in case of I/O error\n\t * @return shell status after executing command\n\t */\n\tShellStatus executeCommand(Environment env, String arguments) throws IOException;\n\n\t/**\n\t * Returns command name.\n\t * \n\t * @return command name\n\t */\n\tString getCommandName();\n\n\t/**\n\t * Returns command description.\n\t * \n\t * @return command description\n\t */\n\tList<String> getCommandDescription();\n\n}", "String getCommand();", "java.lang.String getCommand();", "public interface Command {\n\n /**\n * Executes the implemented command.\n *\n * @throws CommandExecutionException thrown when error on executing command\n */\n void execute() throws CommandExecutionException;\n}", "<T extends Command> T execute(T command);", "public interface BehaviorCommand extends Command {\n\n void executeBehavior(ShellData shellData);\n\n}", "public interface CommandProvider {\n /**\n * Provide command hospital command.\n *\n * @param uri the uri\n * @return the hospital command\n */\n HospitalCommand provideCommand(String uri);\n}", "public interface Command {\n\t/**\n\t * Executes the logic for this command\n\t * @return an Object to be cast to the desired return object\n\t * @throws ServerException \n\t */\n\tpublic void execute() throws ServerException;\n}", "public interface ICommandListener {\n\n\t/**\n\t * Called after configuration checks for a specific command, but before any\n\t * real action of a FedoraPackagerCommand is executed. Use this if you need\n\t * to do something before a command executes.\n\t * \n\t * @throws CommandListenerException\n\t * May be used to signify pre-execution problems.\n\t */\n\tpublic void preExecution() throws CommandListenerException;\n\n\t/**\n\t * Called just before a command finished execution. Use this if you need to\n\t * do something immediately after a command executes.\n\t * \n\t * @throws CommandListenerException\n\t * May be used to signify post execution problems.\n\t */\n\tpublic void postExecution() throws CommandListenerException;\n}", "public interface BadgeCommand {\n\t\n\tpublic void undo();\n\n\tpublic void execute();\n\n}", "public interface GameCommand\r\n{\r\n void execute(Game game);\r\n}", "public interface MiiCommandManager\n\t{\n\t\t\t/**------------------------------------------------------\n\t\t\t * Registers the given widget and the command it generates.\n\t\t\t * This permits (de)sensitization of the widget by the\n\t\t\t * setCommandSensitivity method. \n\t\t\t * @param widget \tthe widget that generates the command\n\t\t\t * @param command \tthe command\n\t\t\t * @see\t\t\t#unRegisterWidgetGeneratedCommand\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tregisterCommandDependentWidget(MiPart widget, String command);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * UnRegisters the given widget and the command it generates.\n\t\t\t * Either the given widget or the given command may be null.\n\t\t\t * @param widget \tthe widget that generates the command\n\t\t\t * @param command \tthe command\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tunRegisterWidgetGeneratedCommand(MiPart widget, String command);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command is to be visible to the\n\t\t\t * user. This method typically (hides)shows the widgets \n\t\t\t * that have been associated with the command.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the user can now see the\n\t\t\t *\t\t\tcommand (whether sensitive or not)\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t * @implements\t\t\n\t\t\t *\tMiiCommandManager#setCommandVisibility\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandVisibility(String command, boolean flag);\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command can be processed at this\n\t\t\t * time. Otherwise, possibly based on the current state of\n\t\t\t * the application, the given command cannot/should not be\n\t\t\t * processed at this time. This method typically (de)sensitizes\n\t\t\t * the widgets that have been associated with the command\n\t\t\t * (see registerCommandDependentWidget).\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the system can now process\n\t\t\t *\t\t\tthe command\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandSensitivity(String command, boolean flag);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command can be processed at this\n\t\t\t * time. Otherwise, possibly based on the current state of\n\t\t\t * the application, the given command cannot/should not be\n\t\t\t * processed at this time. This method typically (de)sensitizes\n\t\t\t * the widgets that have been associated with the command\n\t\t\t * (see registerCommandDependentWidget). This method is designed\n\t\t\t * to display a status bar message that describes why a \n\t\t\t * particular widget is desensitized.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the system can now process\n\t\t\t *\t\t\tthe command\n\t\t\t * @param statusHelpMsg the new status bar message\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t * @see\tMiiCommandManager#setCommandSensitivity\n\t\t\t * @see\tMiCommandManager#setCommandSensitivity\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandSensitivity(String command, boolean flag, String statusHelpMsg);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the state of the boolean widget that generates the \n\t\t\t * given command. This is used for initializing toggle \n\t\t\t * buttons.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the two state widget is\n\t\t\t *\t\t\tto be 'set'.\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandState(String command, boolean flag);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the state of the multi-state widget that generates\n\t\t\t * the given command. This is used for initializing widgets \n\t\t\t * like combo boxes and lists.\n\t\t\t * @param command \tthe command\n\t\t\t * @param state\t\tthe current state, one of many.\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandState(String command, String state);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the label of the widget that generates the given \n\t\t\t * command. This is used for initializing widgets like\n\t\t\t * labels and menubar buttons, push button etc.\n\t\t\t * @param command \tthe command\n\t\t\t * @param label\t\tthe new label\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandLabel(String command, String label);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the values of the multi-state widget that generates\n\t\t\t * the given command. This is used for setting the possible\n\t\t\t * values of widgets like combo boxes and lists.\n\t\t\t * @param command \tthe command\n\t\t\t * @param options\tthe new contents of the widget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandOptions(String command, Strings options);\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the given property to the given value for all parts\n\t\t\t * that generates the given command. This is used for, say,\n\t\t\t * changing the status help message on a widget that may\n\t\t\t * only be situationally and temporarily desensitized.\n\t\t\t * @param command \tthe command\n\t\t\t * @param propertyName\tthe property name\n\t\t\t * @param propertyValue\tthe value\n\t\t\t * @implements\t\tMiiCommandManager#setCommandState\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);\n\t}", "public String getCommand() { return command; }", "public interface Command {\n public void execute(Integer value);\n}", "public abstract void setCommand(String cmd);", "public abstract void doCommand(String command);", "public AGameCommand(Command command) {\n this.game = Game.getInstance();\n this.command = command;\n }", "public interface Command {\n /**\n * Execute command.\n */\n void execute();\n\n /**\n * Test whether command was executed correctly.\n *\n * @return - boolean\n */\n boolean isSuccess();\n}", "public interface Command {\n int run(String[] args) throws IllegalArgumentException;\n}", "abstract void commandButtonExecute(MigrationEditorOperation editor);", "public void setCommand(String command)\n {\n this.command = command;\n }", "public interface IActivityCommandFactory {\n /**\n * creates command to be executed.\n * @param requestType\n * @param title\n * @param points\n * @param source\n * @param activity_id\n * @return\n * @throws Exception\n */\n ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;\n}", "public interface Command_Quality {\r\n\t\r\n\tvoid execute();\r\n\r\n}", "public interface Command {\r\n \r\n /** set the coordinates of the mouse down event;\r\n * where the image is moved FROM.\r\n * @param fromX x coordinate of mouse \r\n * @param fromY y coordinate of mouse\r\n */\r\n public void setFromCoordinates(int fromX, int fromY);\r\n\r\n /** set the coordinates of the mouse up event;\r\n * where the image is moved TO.\r\n * @param toX x coordinate of mouse \r\n * @param toY y coordinate of mouse\r\n */\r\n public void setToCoordinates(int toX, int toY);\r\n \r\n /** execute encapsulates the method call on the board game. \r\n * NOTE: it is this method's responsibility return false\r\n * in case the given from and to coordinates cannot\r\n * be translated into a meaningful board game invokation\r\n * and in this case return false. Example: moving a\r\n * piece outside the board may translate into calling\r\n * a game's move method with a null parameter which\r\n * will next generate a null pointer exception in the\r\n * game logic.\r\n * @return false if the action, typically a move, is illegal\r\n * in the board game. \r\n * */\r\n public boolean execute();\r\n}", "public interface Command<T>\n{\n /**\n * Subclasses determine how to update the given object\n */\n public void execute (T target);\n}", "public interface Command {\n\n /**\n * Executes given command, returns the results.\n *\n * <p><b>Note:</b> Command only executes by a player.</p>\n *\n * @param player Player executed command\n * @param params Passed command parameters\n * @return Command's result was executed\n */\n @NotNull\n CommandResult onCommand(@NotNull Player player, @NotNull String[] params);\n\n /**\n * Executes given command, returns the results.\n *\n * <p><b>Note:</b> Command only executes in the console.</p>\n *\n * @param console Console sender executed command\n * @param params Passed command parameters\n * @return Command's result was executed\n */\n @NotNull\n CommandResult onConsoleCommand(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);\n\n /**\n * Requests a list of possible completions for a command parameters.\n *\n * <p><b>Note:</b> Request will be executed if command were executed by a player.</p>\n *\n * @param player Player executed command\n * @param params The parameters pass to the to the command, including final partial parameter to\n * be completed and command label\n * @return A result contains a list of possible completions for the final argument, or an empty\n * list to default to the command executor and string to search for.\n */\n @NotNull\n TabResult onTab(@NotNull Player player, @NotNull String[] params);\n\n /**\n * Requests a list of possible completions for a command parameters.\n *\n * <p><b>Note:</b> Request will be executed if command was executed in the console.</p>\n *\n * @param console Console sender executed command\n * @param params The parameters pass to the to the command, including final partial parameter to\n * be completed and command label\n * @return A result contains a list of possible completions for the final argument, or an empty\n * list to default to the command executor and string to search for.\n */\n @NotNull\n TabResult onConsoleTab(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);\n\n /**\n * Returns parent {@link Command} of this command.\n *\n * @return Parent of this command\n * @deprecated Rename to {@link #getRoot()}\n */\n @Deprecated\n @Nullable\n Command getParent();\n\n /**\n * Returns root {@link Command} of this command.\n *\n * @return Root of this command\n */\n @Nullable\n Command getRoot();\n\n /**\n * Returns the name of this command.\n *\n * @return Name of this command\n */\n @NotNull\n String getName();\n\n /**\n * Returns the {@link PermissionWrapper} of this command\n *\n * @return The permission wrapper of this command\n */\n @NotNull\n PermissionWrapper getPermission();\n\n /**\n * Get the syntax or example usage of this command.\n *\n * @return Syntax of this command\n */\n @NotNull\n String getSyntax();\n\n /**\n * Gets a brief description of this command\n *\n * @return Description of this command\n */\n @NotNull\n String getDescription();\n\n /**\n * Returns a list of active aliases of this command, include value of {@link #getName()} method.\n *\n * @return List of aliases\n */\n @NotNull\n List<String> getAliases();\n\n String toString();\n}", "public interface CommandType {\n\n /** Returns unique identifier for this command type. */\n @NotNull\n String getId();\n\n /** Returns the display name of the command type. */\n @NotNull\n String getDisplayName();\n\n /** Returns the icon used to represent the command type. */\n @NotNull\n SVGResource getIcon();\n\n /** Returns the {@link CommandConfigurationPage}s that allow to configure specific command parameters. */\n @NotNull\n Collection<CommandConfigurationPage<? extends CommandConfiguration>> getConfigurationPages();\n\n /** Returns factory for {@link CommandConfiguration} instances. */\n @NotNull\n CommandConfigurationFactory<? extends CommandConfiguration> getConfigurationFactory();\n\n /** Returns command template that will be used for newly created command. */\n @NotNull\n String getCommandTemplate();\n\n /** Returns template for preview Url. */\n String getPreviewUrlTemplate();\n}", "public abstract Menu execute(String commandKey);", "public void setCommand(String command) {\n this.command = command;\n }", "public abstract void execute(CommandSender sender, String[] args);", "public Command() {\n this.arguments = new String[0];\n }", "public NativeExecutable(String command) {\n this.command = command;\n }", "int getCommand();", "public void setCommand(String command) {\n _command = command;\n }", "public abstract void exec(CommandSender sender, String[] args);", "private void executeCommand() {\n Command command = null;\n\n switch (commandType) {\n case LIST:\n command = new ListCommand(taskManager, parameterData.getDescription());\n break;\n case DONE:\n command = new DoneCommand(taskManager, parameterData.getTaskNumber());\n break;\n case TODO:\n command = new AddCommand(taskManager, TaskType.TODO, parameterData.getDescription());\n break;\n case DEADLINE:\n command = new AddCommand(taskManager,\n TaskType.DEADLINE, parameterData.getDescription(),\n parameterData.getDateTime());\n break;\n case EVENT:\n command = new AddCommand(taskManager,\n TaskType.EVENT, parameterData.getDescription(),\n parameterData.getDateTime());\n break;\n case DELETE:\n command = new DeleteCommand(taskManager, parameterData.getTaskNumber());\n break;\n case BYE:\n command = new ByeCommand(taskManager);\n break;\n case FIND:\n command = new FindCommand(taskManager,\n parameterData.getFilterString(),\n parameterData.getMatchDate(),\n parameterData.getTimeSearch());\n break;\n case HELP:\n command = new HelpCommand(taskManager);\n break;\n default:\n commandUi.printNoCommandRan();\n }\n\n try {\n command.execute();\n } catch (IndexOutOfBoundsException e) {\n commandUi.printTaskDoneNotInRange();\n } catch (IllegalStateException e) {\n commandUi.printInvalidParameters();\n }\n }", "public interface ICommand {\n /**\n * The method contains the logic of the command being executed\n * @param request - request to receive and send parameters\n * @return link to jump after command execution\n * @throws Exception the user will be shown the corresponding page with a message that something went wrong\n * */\n String execute(HttpServletRequest request) throws Exception;\n}", "public interface iCommand {\n void execute(String peerId, JSONObject payload) throws JSONException;\n}", "public abstract void onCommand(MessageEvent context) throws Exception;", "public interface Command {\n\n void executer(Tondeuse tondeuse);\n\n}", "IDbCommand createCommand();", "public interface CommandCallback {\n /**\n * Sends a response on the previously handled command.\n *\n * @param response a raw byte array of the response to studio command.\n */\n // Users don't implement this callback, but call methods on it themselves\n @SuppressLint(\"CallbackMethodName\")\n void reply(@NonNull byte[] response);\n\n /**\n * Handles a signal sent from Studio that this command should be cancelled, if possible.\n *\n * @param executor There is no guarantee on which thread the listener will be triggered on,\n * and as an inspector developer, you should be aware of this explicitly.\n * As a result, we require you to pass in a custom executor to provide the\n * flexibility to allow running the cancellation behavior on a different\n * thread. If you don't care about this, use a direct executor instead.\n * @param runnable the listener to run when command is cancelled.\n */\n // Users don't implement this callback, but call methods on it themselves\n @SuppressLint({\"PairedRegistration\", \"CallbackMethodName\"})\n void addCancellationListener(@NonNull Executor executor, @NonNull Runnable runnable);\n }", "void execute() throws CommandExecutionException;", "public interface Command extends ResponseElement\n{\n\tpublic void setParameter(String paramName, Object paramValue);\n\n\tpublic void setModel(String model);\n\n\t/**\n\t * Return the name of the model specified for this command, in the form it would appear\n\t * in the configuration file\n\t */\n\tpublic String getModel();\n\n\t/**\n\t * Return a map of any parameter specified for this command\n\t */\n\tpublic Map getParameters();\n\n\t/**\n\t * Convenience method, equivilant to execute(req, res, false, false)\n\t */\n\tpublic ModelResponse execute(ModelRequest req, ModelResponse res) throws ModelException;\n\n\t/**\n\t * Execute the model specified by this command and return the model\n\t * response.\n\t * @param req The previous request. The model being will have this request available via\n\t * it's getPreviousRequest method\n\t * @param res The current response. The new response will always include any errors stored in this response,\n\t * but will not include any response elements already generated unless includeResponseElements is true\n\t * @param includeParams Include request parameters from the old request when building the new request. Normally,\n\t * a command has it's parameters set via \"setParameter\", just like a request, and these are the only parameters\n\t * used in the new request. If this flag is true, however, any parameters that exist in the current request\n\t * and that have not been specified via setParameter are populated from the current request.\n\t * @param includeResponseElements Include any response elements from the current response (res) in the newly\n\t * generated response. If an element in the new response has the same name as an element in the current response,\n\t * use the new one only.\n\t */\n\tpublic ModelResponse execute(ModelRequest req, ModelResponse res, boolean includeParams,\n\t\t\t\t\tboolean includeResponseElements) throws ModelException;\n\n\tpublic void setLabel(String newLabel);\n\n\tpublic String getLabel();\n\n\tpublic void setRelativeMovement(int numberOfSteps);\n\n\tpublic int getRelativeMovement();\n\n\tpublic void setBean(String bean);\n\n\tpublic String getBean();\n}", "Iterable<BuildozerCommand> getCommands();", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "public String getCommand(){\n return command;\n }", "@Override\n public void addCommand(CommandConfig command) {\n }", "public String getCommand() {\r\n return command;\r\n }", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "public CommandManager() {}", "@Override\n public void executeAction(String command) {\n String[] parts = command.split(\",\");\n Task task = Task.buildTask(parts[0], parts[1], DateSorting.parseDate(\"dd-MM-yyyy\", parts[2]),\n parts[3], parts[4]);\n\n TodoList.tasks.put(task.getId(), task);\n System.out.println(\"IP.TodoListApplication.App.Task successfully added!\");\n\n }", "public interface CommandLoader {\n\n\t/**\n\t * Gets list of commands in bundle\n\t * @return\n\t */\n\tList<CommandInfo> list();\n\t\n\t/**\n\t * Executes command\n\t * @param cmdName command name\n\t * @return\n\t */\n\tObject execute(String cmdName, String param);\n}", "public interface Command {\n void execute();\n void unexecute();\n Boolean isExecuted();\n}", "CommandTypes(String command) {\n this.command = command;\n }", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "public interface RemoveCommentCommand extends Command {\r\n\r\n /**\r\n * Get the owner of the comment\r\n *\r\n * @return The owner of the comment\r\n */\r\n public Peer getPeer();\r\n\r\n /**\r\n * Set the owner of the comment\r\n *\r\n * @param peer The owner of the comment\r\n */\r\n public void setPeer(Peer peer);\r\n\r\n /**\r\n * Get the music to comment\r\n *\r\n * @return The music to comment\r\n */\r\n public Music getMusic();\r\n\r\n /**\r\n * Set the music to comment\r\n *\r\n * @param music The music to comment\r\n */\r\n public void setMusic(Music music);\r\n\r\n /**\r\n * Get the id of the comment for the music\r\n *\r\n * @return The id of the comment for the music\r\n */\r\n public int getCommentId();\r\n\r\n /**\r\n * Set the id of the comment for the music\r\n *\r\n * @param commentId The id of the comment for the music\r\n */\r\n public void setCommentId(int commentId);\r\n}", "public interface NexialCommand {\n\n /** called by Nexial when plugin is initialized to provide context */\n void init(@NotNull ExecutionContext context);\n\n ExecutionContext getContext();\n\n /** invoked by Nexial when shutting down; no guarantee of shutdown sequence */\n void destroy();\n\n String getTarget();\n\n /**\n * a \"profile\" allows multiple instances of the same command to reside in context so that they can be swapped\n * during execution to serve specific target.\n */\n String getProfile();\n\n void setProfile(String profile);\n\n boolean isValidCommand(String command, String... params);\n\n StepResult execute(String command, String... params) throws InvocationTargetException, IllegalAccessException;\n}" ]
[ "0.71250933", "0.7008194", "0.69750214", "0.69371593", "0.6841924", "0.67511994", "0.6727759", "0.6708235", "0.6676707", "0.66647553", "0.664757", "0.6646061", "0.6632041", "0.6632041", "0.6632041", "0.66187054", "0.66152716", "0.66008556", "0.65819573", "0.6555986", "0.6555986", "0.6555986", "0.6518679", "0.6491537", "0.64499235", "0.64105", "0.6372245", "0.63722193", "0.63622206", "0.63391924", "0.62778425", "0.627443", "0.62738293", "0.6266646", "0.62579316", "0.62559867", "0.6255201", "0.62379336", "0.62345403", "0.62150735", "0.61962", "0.6164616", "0.6157171", "0.6154818", "0.6148649", "0.6148081", "0.6127277", "0.61223996", "0.61011004", "0.60983115", "0.60953414", "0.60772604", "0.6074591", "0.6026504", "0.6015867", "0.6003904", "0.60036474", "0.60009885", "0.5998316", "0.5998301", "0.59952736", "0.5984198", "0.5980378", "0.59727633", "0.59617376", "0.5959494", "0.59578925", "0.594296", "0.5934506", "0.59175646", "0.5917516", "0.5903066", "0.59005386", "0.58925176", "0.589201", "0.5891315", "0.58909804", "0.58851767", "0.58668613", "0.5866054", "0.5844562", "0.5842641", "0.5842604", "0.58331466", "0.5822567", "0.5813535", "0.5805583", "0.5803382", "0.5800534", "0.5790507", "0.5789807", "0.5780155", "0.57723653", "0.57644194", "0.5763934", "0.5750643", "0.57465655", "0.57417905", "0.5740102", "0.57322663" ]
0.7453466
0
Performs the operation of the command
void execute(String projectDir, Paths paths) throws CommandExecutionException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void executeCommand() {\n\t\texpression += operand;\n\t\tdouble execute = command.execute(expression);\n\t\toperand = new StringBuilder(Double.toString(execute));\n\t\tfirstOperand = true;\n\t}", "CommandResult execute();", "@Override\n\tsynchronized void execute() {\n\t\t_dataOUTPipe.dataIN(op1.getText());\n\t\t_dataOUTPipe.dataIN(op2.getText());\n\t\t_dataOUTPipe.dataIN(op.getText());\n\t}", "public void execute() {\n\t\t// XOR GATE OP\n\t\txor.a.set(a.get());\n\t\txor.b.set(b.get());\n\t\txor.execute();\n\t\tsum.set(xor.out.get());\n\n\t\t// AND GATE OP\n\t\tand.a.set(a.get());\n\t\tand.b.set(b.get());\n\t\tand.execute();\n\t\tcarry.set(and.out.get());\n\n\t}", "public void execute() {\n if (valid()) {\n // behavior of the concrete command\n this.target_territory numArmies += to_deploy;\n }\n }", "protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);", "public void execute(Command command){\n command.run(field);\n }", "public void execute(){\n\t\t\n\t}", "private void operate(int command, Context context) {\n\n switch (command) {\n case OPER_TYPE_DEL:\n for (int i = selectedEntities.size() - 1; i >= 0; i--) {\n if (selectedEntities.size() < i) {\n break;\n }\n FileInfo fi = selectedEntities.get(i);\n if(fi==null){\n continue;\n }\n file = fi.getFile();\n recursiveDelete(file);\n }\n break;\n case OPER_TYPE_CUT:\n recursiveCut(initPathList(this.selectedEntities), destination);\n break;\n case OPER_TYPE_COPY:\n recursiveCopy(OperationUtil.selectedEntities, destination, true);\n break;\n case OPER_TYPE_MOVE_PRIVACY:\n moveInPrivacy(initPathList(this.selectedEntities), destination, context);\n break;\n }\n updateEndOnFiles(OperationUtil.getOperType());\n Logs.i(\"toSelectedString\", \"duplicated --\" + this.duplicated.size());\n }", "public void execute() {\n\t\t\n\t}", "public void execute() {\r\n\t\r\n\t}", "public State execute(int command, State state);", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public abstract void doCommand(String command);", "public abstract double executeCommand(ArrayList<Unit> units);", "public void execute() {\n\n\t}", "@Override\r\n public void execute(Command command) {\n\r\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "Operations operations();", "public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}", "public void run() {\n\t\texecuteCommand( client, false );\n\t}", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "@Override\r\n protected void execute() {\r\n // get deltaT in seconds for the controller\r\n double now = System.currentTimeMillis();\r\n double elapsed = (now - mPreviousTime) / 1000.0 ; \r\n mPreviousTime = now; \r\n \r\n // get inputs to the two PIDs\r\n double dist = Robot.visionSubSys.getDistFt() ;\r\n double bearing = Robot.visionSubSys.getBearingDegCW() ;\r\n double orient = Robot.drivetrain.getOrientDegCCW() ; \r\n \r\n // update and get control output from the two PIDs\r\n double distControl = mDistController.update(dist, bearing, elapsed) ;\r\n double bearingControl = mBearingController.update(dist, bearing, orient, elapsed);\r\n // combine them\r\n double left = (distControl+bearingControl) ; // / 2.0 ;\r\n double right = (distControl-bearingControl) ; // / 2.0 ;\r\n \r\n // command the drivetrain\r\n Robot.drivetrain.tankDrive(left, right);\r\n }", "@Override\r\n\tpublic void execute() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].execute();\r\n\t\t}\r\n\t}", "public void process() {\n \n//System.out.println(\"UndoCommand.undo()\");\n//System.out.println(\" command: \" + command.getDescription());\n//System.out.println(\" isTransient: \" + command.isTransient());\n//System.out.println(\" isUndoable: \" + command.isUndoable());\n\n try {\n \n command.undo();\n\n // Move the command to the top of the redo stack\n redoCommands.push(command);\n\n // Trim the redo stack\n if (redoCommands.size() > maxSize) {\n redoCommands.setSize(maxSize);\n } \n \n // finally, notify listeners of the change\n for (int i = 0; i < commandListeners.size(); i++) {\n CommandListener l = commandListeners.get(i);\n l.commandExecuted(command);\n }\n\n } catch (Exception e) {\n errorReporter.errorReport(\"Undo of \" + command.getDescription() + \" command failed.\", e);\n }\n\n }", "public void execute() {\n }", "public abstract boolean doCommand() throws Exception;", "private void processCommand(String command) {\n switch (command) {\n case \"reserve\":\n doReserve();\n break;\n case \"view\":\n doView();\n break;\n case \"deposit\":\n doDeposit();\n break;\n }\n }", "@Override\r\n\tpublic void execute() \r\n\t\t{\n\t\tsourceArcs = parent.getSourceArcsFromID(child.getServerName());\r\n\t\ttargetArcs = parent.getTargetArcsFromID(child.getServerName());\r\n\t\tredo();\r\n\t\t}", "void execute() throws CommandExecutionException;", "protected void execute() {\n\t\t\n\t}", "@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}", "@Override\n public void execute() {\n this.context.setToken(new Token(context.getLexemeType(), context.getLexemeBuffer().toString()));\n this.context.getLexemeBuffer().setLength(0);\n if (command != null) {\n command.execute();\n }\n }", "protected void execute() {\n \tif(oi.getButton(ControllerMap.operatorController, ControllerMap.convertToClimbMode) && DriverStation.getInstance().getMatchTime() < 30 && !DriverStation.getInstance().isAutonomous()) {\n \t\tleftSpeed = Math.abs(oi.getAxisDeadzonedSquared(ControllerMap.operatorController, ControllerMap.intakeAxis, 0.1));\n \t\trightSpeed = Math.abs(oi.getAxisDeadzonedSquared(ControllerMap.operatorController, ControllerMap.cubeStorageAxis, 0.1));\n \t\t\n \t\tclimber.ascend(leftSpeed, rightSpeed);\n \t}\n }", "protected void execute() {\n \tRobot.telemetry.setAutonomousStatus(\"Running \" + commandName + \": \" + distance);\n \tRobot.drivetrain.arcadeDrive(Robot.driveDistancePID.getOutput(), 0.0, false);\n }", "public void execute() {\n\t\ttry {\n\t\t\tMethod method = this.getClass().getMethod(parseMethod(), new Class[0]);\n\t\t\tmethod.invoke(this, new Object[0]);\n\t\t} catch (NoSuchMethodException | SecurityException e) {\n\t\t\tSystem.out.println(\"Unknown option: \" + command);\n\t\t} catch (IllegalAccessException | IllegalArgumentException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Invalid usage of: \" + command + \", the following error \" + \"was given: \" + e.getMessage());\n\t\t} catch (InvocationTargetException e) {\n\t\t\tSystem.out.println(\"An error occurred while executing '\" + command + \"'. The \"\n\t\t\t\t\t+ \"following error was given: \" + e.getCause());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n public void execute()\r\n {\r\n printInvalidCommandMessage();\r\n }", "private void execute(String command) {\n if (command.equals(\"lf\")) {\n listFrames();\n } else if (command.equals(\"le\")) {\n listEvents();\n } else if (command.equals(\"af\")) {\n addFrame();\n } else if (command.equals(\"ae\")) {\n addEvent();\n } else if (command.equals(\"rf\")) {\n removeFrame();\n } else if (command.equals(\"re\")) {\n removeEvent();\n } else if (command.equals(\"ve\")) {\n viewEvents();\n } else if (command.equals(\"li\")) {\n lorentzInvariant();\n } else if (command.equals(\"s\")) {\n saveWorld();\n } else if (command.equals(\"l\")) {\n loadWorld();\n } else {\n System.out.println(\"Command not recognized.\");\n }\n }", "public void execute(Command command) {\n\t\texecute(command.getLabel(), command);\n\t}", "protected void execute()\n\t{\n\t}", "protected void execute() {\n\n\t}", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "protected void execute() {\n command.start();\n }", "private void processCommand(String command) {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"c\")) {\n doMarkTaskAsCompleted();\n } else if (command.equals(\"m\")) {\n doModifyTask();\n } else if (command.equals(\"v\")) {\n doViewAllTasks();\n } else if (command.equals(\"ct\")) {\n doViewAllCompletedTasks();\n } else if (command.equals(\"s\")) {\n saveTasks();\n } else {\n System.out.println(\"Invalid selection, kindly select from the options available.\");\n }\n }", "public void Execute() {\n\n }", "private void processCommand()\n {\n String vInput = this.aEntryField.getText();\n this.aEntryField.setText(\"\");\n\n this.aEngine.interpretCommand( vInput );\n }", "public void execute() {\n execute0();\n }", "public void execute(){\n\n }", "@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void execute() {\r\n }", "protected void executeCommand() {\n // build the type string\n StringBuilder stateString = new StringBuilder();\n StringBuilder moveNamesString = new StringBuilder();\n StringBuilder basicPieceString = new StringBuilder();\n StringBuilder factionRingString = new StringBuilder();\n\n // start the state string\n stateString.append(\"emb2;Activate;2;;;2;;;2;;;;1;false;0;-24;,\");\n basicPieceString.append(\"emb2;;2;;;2;;;2;;;;;false;0;0;\");\n\n String moveImage;\n String move = newMoveList.get(0);\n String moveWithoutSpeed = move.substring(1);\n moveImage = dialHeadingImages.get(moveWithoutSpeed);\n\n String speed = move.substring(0,1);\n String moveCode = move.substring(1,2);\n String moveName = maneuverNames.get(moveCode);\n\n basicPieceString.append(\"D2e_\" + xwsShipName + \".png\");\n basicPieceString.append(\";;false;Front Plate;;;false;;1;1;true;;;\");\n\n moveNamesString.append(moveName).append(\" \").append(speed);\n // add in move names\n stateString.append(moveImage);\n stateString.append(\";empty,\"+moveNamesString);\n\n // finish the type string\n stateString.append(\";false;Chosen Move;;;false;;1;1;true;65,130\");\n Embellishment chosenMoveEmb = (Embellishment)Util.getEmbellishment(piece,\"Layer - Chosen Move\");\n Embellishment chosenSpeedEmb = (Embellishment)Util.getEmbellishment(piece, \"Layer - Chosen Speed\");\n Embellishment fullDialEmb = (Embellishment)Util.getEmbellishment(piece, \"Layer - Front Plate\");\n Embellishment ringEmb = (Embellishment)Util.getEmbellishment(piece, \"Layer - Faction Ring\");\n\n factionRingString.append(\"emb2;;2;;;2;;;2;;;;;false;0;0;DialSelect_\");\n factionRingString.append(faction);\n factionRingString.append(\".png;;false;Faction Ring;;;false;;1;1;true;;;\");\n chosenSpeedEmb.setValue(Integer.parseInt(speed)+1);\n\n String injectDialString = \"\";\n int count=0;\n for(String moveItem : newMoveList) {\n count++;\n injectDialString+= moveItem;\n if(count!=newMoveList.size()) injectDialString+=\",\";\n }\n piece.setProperty(\"dialstring\",injectDialString);\n piece.setProperty(\"shipID\", associatedShipID);\n\n // chosen move embellishment looks like: emb2;Activate;2;;;2;;;2;;;;1;false;0;-24;,mFW.png;empty,move;false;Chosen Move;;;false;;1;1;true;65,130;;\n // chosen speed embell looks like: emb2;;2;;;2;;;2;;;;1;false;0;24;kimb5.png,,kimb0.png,kimb1.png,kimb2.png,kimb3.png,kimb4.png;5,empty,0,1,2,3,4;false;Chosen Speed;;;false;;1;1;true;;;\n // basic piece face plate looks like: emb2;;2;;;2;;;2;;;;;false;0;0;D2e_arc170starfighter.png;;false;Front Plate;;;false;;1;1;true;;;\n // faction ring looks like: emb2;;2;;;2;;;2;;;;;false;0;-6;DialSelect_rebelalliance.png;;false;Faction Ring;;;false;;1;1;true;;;\n\n chosenMoveEmb.mySetType(stateString.toString());\n chosenMoveEmb.setValue(1);\n\n fullDialEmb.mySetType(basicPieceString.toString());\n ringEmb.mySetType(factionRingString.toString());\n }", "protected void execute() {}", "protected void execute() {\n \tint POV_value = Robot.m_oi.operator.getPOV();\n \tboolean input = true; \n \t//SmartDashboard.putNumber(\"POV Value\", POV_value);\n\t\tSmartDashboard.putNumber(\"Col Speed\", Robot.ss_Collector.getOutSpeed());\n \tswitch (POV_value){\n \tcase 0:\n \t\tthis.speed = .60;\n \t\tbreak;\n \tcase 45:\n \t\tthis.speed = .50;\n \t\tbreak;\n \tcase 90:\n \t\tthis.speed = .40; \n \t\tbreak;\n \tcase 135:\n \t\tthis.speed = .30;\n \t\tbreak;\n \tcase 180:\n \t\tthis.speed = .20;\n \t\tbreak;\n \tcase 270:\n \t\tthis.speed = .80;\n \t\tbreak;\n \tcase 315: \n \t\tthis.speed = .70;\n \t\tbreak;\n \tdefault:\n \t\tinput = false; \n \t\tbreak;\n \t}\n \t\n \tif (!running && input) {\n\t \trunning = true;\n \t\tthis.c_Drive = new C_CollectorDrive(false, -1, speed);\n \t\tc_Drive.start();\n \t}\n \t\n \telse if (running && !input) {\n \t\trunning = false;\n \t\tthis.c_Drive.cancel();\n \t}\n }", "protected void execute() {\n\t}", "public void execute(Command command, T component);", "protected void processCommand(String command) throws EmptyException {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"p\")) {\n doViewList();\n } else if (command.equals(\"m\")) {\n //doMarkComplete();\n } else if (command.equals(\"n\")) {\n doCount();\n } else if (command.equals(\"s\")) {\n doSave();\n } else if (command.equals(\"c\")) {\n doClear();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }", "protected void execute() {\n\t\tcurrent = Robot.encoder.getDistance();\n\t\terror = target - current;\n\t\tscaled_error = error * scale;\n\t\tP = Constants.kDriveTrainP * scaled_error;\n\t\tI += Constants.kDriveTrainI * scaled_error;\n\t\tD = (scaled_error - p_error) / Constants.kDriveTrainD;\n\n\t\tdouble output = P + I + D;\n\n\t\tSmartDashboard.putNumber(\"cur_angle\", Robot.imu.getAngleZ());\n\t\tSmartDashboard.putNumber(\"output\", output);\n\t\tSmartDashboard.putNumber(\"encoder distance\", Robot.encoder.getDistance());\n//\t\tRobot.chassis.tankDrive(output, output);\n\t\tdouble theta = 0 - Robot.imu.getAngleZ();\n\t\tdouble correction = theta * 0.035;\n\t\tSmartDashboard.putNumber(\"correction\", correction);\n\t\tif (theta < 0)\n\t\t\tRobot.mChassis.tankDrive(output + correction, output);\n\t\telse if (theta > 0)\n\t\t\tRobot.mChassis.tankDrive(output, output + correction);\n\t\telse\n\t\t\tRobot.mChassis.tankDrive(output, output);\n\n\t\tif (Math.abs(error) < 0.1)\n\t\t\tisFinished = true;\n\n\t}", "@Override\n\tpublic void execute() {\n\t\t\n\t}", "@Override\n public void Execute() {\n\n }", "protected void execute() {\n \tclimber.setCLimberSpeed(0);\n }", "protected void execute()\n {\n }", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "public abstract void runOperation();", "public abstract void operation();", "@Override\n public void execute() {\n double output = controller.calculate(driveSubsystem.getHeading(), setPoint);\n driveSubsystem.driveCartesan(0.0, 0.0, output / 180);\n }", "@Override\n\tpublic void execute(ByteBuffer buff) {\n\t\t\n\t}", "protected int execute(String command) {\n\t\treturn 0; //TODO let shell execute this\n\t}", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n \toi.updateToggleLift();\n if(oi.toggleOnLift){\n \t// The commands here will occur if the TorqueLift toggle switch\n \t// is activated. All code here will only run after the button\n \t// has been toggled.\n \tif (limitswitch.getReadyState()) { \n \ttorquelift.swap();\n \ttorquelift.moveAllMotors(oi.getLiftSpeed());\n \t} else {\n \t\t// activates when the limit switch is pressed\n \t\ttorquelift.moveAllMotors(oi.getLiftYUpSpeed());\n \t}\n } else {\n \t// The commands here will occur normally, when the TorqueLift is\n \t// not activated.\n \treturn;\n }\n }", "public void execute() {\n switch (this.opCode) {\n case 'a':\n this.result = this.leftVal + this.rightVal;\n break;\n case 's':\n this.result = this.leftVal - this.rightVal;\n break;\n case 'm':\n this.result = this.leftVal * this.rightVal;\n break;\n case 'd':\n this.result = this.rightVal != 0 ? this.leftVal / this.rightVal : 0.0d;\n break;\n default:\n System.out.println(\"Invalid opCode: \" + this.opCode);\n this.result = 0.0d;\n break;\n }\n numOfCalculations++;\n sumOfResults += result;\n }", "@Override\n public void process(Serializable msg) {\n ((Command) msg).execute(arg);\n }", "protected void executeVmCommand() {\n }", "protected void execute() {\n\n\n \n }", "private void processCommand(String command) {\n if (command.equals(\"1\")) {\n insertItem();\n } else if (command.equals(\"2\")) {\n removeItem();\n } else if (command.equals(\"3\")) {\n viewList();\n } else if (command.equals(\"4\")) {\n saveToDoList();\n } else if (command.equals(\"5\")) {\n loadToDoList();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }", "void processCommand (String command, ZMsg msg);", "Command handleExecute(CommandExecute commandExecute);", "protected void execute() {\n drivebase.setCheesySensetivity(1.32);\n if(rot != 0.0)\n drivebase.setCheesyDrive(0, rot, true);\n else\n drivebase.setCheesyDrive(0, inverse*SmartDashboard.getNumber(key), true);\n }", "protected void execute() {\n\t\tSystem.out.println(\"Vision error: \" + RobotMap.VisionDistanceLeftPIDController.getError() + \" , \" + RobotMap.VisionDistanceRightPIDController.getError());\n\t\tSystem.out.println(\"vision, pidcontroller output: \" + RobotMap.VisionDistanceLeftPIDController.get() + \" , \" + RobotMap.VisionDistanceRightPIDController.get());\n\n\t}" ]
[ "0.709262", "0.68149173", "0.6813808", "0.67606694", "0.6738552", "0.6718172", "0.6670572", "0.6649465", "0.6646423", "0.66232824", "0.66050273", "0.660135", "0.65985924", "0.65985924", "0.65985924", "0.6573999", "0.6559555", "0.6555319", "0.65342396", "0.65285116", "0.65285116", "0.6491304", "0.64742446", "0.6433874", "0.64284676", "0.6424085", "0.64154077", "0.63764614", "0.6368433", "0.6356705", "0.63474923", "0.63268894", "0.6293608", "0.62925094", "0.62912416", "0.6277611", "0.62705076", "0.62630445", "0.62626916", "0.6255325", "0.6245936", "0.6240594", "0.62246466", "0.62098753", "0.6203408", "0.6203408", "0.6203408", "0.6203408", "0.62027746", "0.6202324", "0.61969125", "0.61963886", "0.6187309", "0.61617064", "0.6153182", "0.61439764", "0.61331517", "0.61323696", "0.61293066", "0.6129041", "0.6128317", "0.6125149", "0.6124754", "0.6120207", "0.6111872", "0.61117554", "0.61031985", "0.60984635", "0.60984635", "0.60984635", "0.60984635", "0.60984635", "0.60984635", "0.60984635", "0.60983986", "0.609761", "0.60962296", "0.60941666", "0.609226", "0.60803825", "0.60803825", "0.60803825", "0.60803825", "0.60803825", "0.60803825", "0.60803825", "0.60803825", "0.60803825", "0.60803825", "0.60803825", "0.60803825", "0.6080016", "0.60778034", "0.6077413", "0.6067549", "0.6065868", "0.6054235", "0.6041535", "0.6040717", "0.603076", "0.60290486" ]
0.0
-1
Constructs a new Command Execution Exception raised by some abnormal condition detected during the command execution.
CommandExecutionException(String errorMessage) { super(errorMessage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InvalidCommandException() {\n super(EXCEPTION_INVALID_COMMAND_MESSAGE);\n }", "public InvalidCommandException() {\n // Call the superclass with a general message for all commands\n super(\"The command given is not valid\");\n }", "public BadCommandException(String cmd){\n super(cmd);\n }", "public InvalidCommand() {\n this.errorMessage = EMPTY_STRING;\n }", "public CommandFailedByConfigException() {\n }", "public InvalidCommandException(String command) {\n super(command + \" is not a valid command\");\n }", "public InvalidProcessException() {}", "public InvalidCommandException(String message) {\n super(message);\n }", "public OperationException() {\n super();\n }", "public ExecutionError(Error cause) {\n/* 58 */ super(cause);\n/* */ }", "private CommandResult executeInvalidCommand(Command userCommand) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_COMMAND);\n }", "public ExecutionError(String message, Error cause) {\n/* 51 */ super(message, cause);\n/* */ }", "public SyscallException() {\n\t\tsuper();\n\t}", "private void assertCommandException(String inputCommand, String expectedMessage) {\n assertCommandFailure(inputCommand, CommandException.class, expectedMessage);\n }", "public KillException() {}", "public static void handleInvalidCommandException() {\n System.out.println(\"\\tSorry sir, I do not recognise this command.\");\n Help.execute();\n Duke.jarvis.printDivider();\n }", "public CommandFailedByConfigException(Throwable ex) {\n super(ex);\n }", "public Exception() {\n\t\t\tsuper();\n\t\t}", "CommandExecutionException(String errorMessage, Exception cause) {\n super(errorMessage, cause);\n }", "public EmptyCommandException() {\n super(\"Input is empty! Please enter something into the chat\");\n }", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "public SyntaxException() {\n\t\tsuper();\n\t}", "public PreparationException() {\n\t\tsuper();\n\t}", "public CommunicationException() {\r\n\t\tsuper();\r\n\t}", "public InvalidProcessException(String message) {\n super(message);\n }", "SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();", "public CommandFailedByConfigException(String msg, Throwable ex) {\n super(msg, ex);\n }", "public IllegalArgumentException buildException() {\n return this.buildException(null);\n }", "public OperationException(String message) {\n super(message);\n }", "@Test(expected = InvalidCommandException.class)\n public void testInvalidCommand() {\n interpreterInstance.interpret(\"notacommand argumentshere\");\n }", "public interface Command {\n\n /**\n * Performs the operation of the command\n *\n * @param projectDir Absolute path to the Android Application Eclipse\n * Project\n * @param paths Relative paths were to find the project's classes and\n * resources.\n * @throws CommandExecutionException if any error happens during the command\n * execution.\n */\n void execute(String projectDir, Paths paths) throws CommandExecutionException;\n\n /**\n * The CommandExecutionException is a generic exception produced during the\n * execution of a command.\n */\n class CommandExecutionException extends Exception {\n\n /**\n * Constructs a new Command Execution Exception raised by some abnormal\n * condition detected during the command execution.\n *\n * @param errorMessage Description of the error\n */\n CommandExecutionException(String errorMessage) {\n super(errorMessage);\n }\n\n /**\n * Constructs a new Command Execution Exception raised by an internal\n * Exception.\n *\n * @param errorMessage Description of the error\n * @param cause Exception that originates the Command Execution\n * Exception\n */\n CommandExecutionException(String errorMessage, Exception cause) {\n super(errorMessage, cause);\n }\n }\n}", "public QueryException() {\n\n }", "public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "protected abstract BuildFailureException newBuildFailureException(int errorCount);", "public InvalidInvocationException()\n {\n super(DEFAULT_MESSAGE);\n }", "public UnmatchedException(){\r\n\r\n\t}", "public InvalidCommand(String errorMessage) {\n this.errorMessage = errorMessage;\n }", "public SintaxException() { //Si se llama con el mensaje por defecto\n super(\"Error de sintaxis en el polinomio\"); //El constructor llama a la clase superior\n }", "public void testCtor_ProjectConfigurationException() {\n System.setProperty(\"exception\", \"ProjectConfigurationException\");\n try {\n new AddActionStateAction(state, activityGraph, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n } finally {\n System.clearProperty(\"exception\");\n }\n }", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "@Test\n public void executeWithFailure() {\n new SimpleCommandFailure(\"badRequest\", HystrixRuntimeException.FailureType.COMMAND_EXCEPTION).execute();\n }", "public QueryException(){\n\t\tsuper();\n\t}", "public AditoGitException(String pMessage, Exception pE)\n {\n super(pMessage, pE);\n }", "public AditoGitException(Exception pE)\n {\n super(pE);\n }", "public InvalidInvocationException(Throwable throwable)\n {\n super(DEFAULT_MESSAGE, throwable);\n }", "public Exception() {\n\tsuper();\n }", "public InvalidProcessException(Throwable cause) {\n super(cause);\n }", "public void instantiateCommand() throws SystemException {\r\n\t\t// Check the definitation.\r\n\t\tdefinitionCheck();\r\n\t\t\r\n\t\t// Create the fresh instance.\r\n\t\tcommandInstance = new ReadWriteableAttributes();\r\n\t}", "public RuntimeMBeanException(RuntimeException paramRuntimeException, String paramString) {\n/* 66 */ super(paramString);\n/* 67 */ this.runtimeException = paramRuntimeException;\n/* */ }", "public ViaturaExistenteException(){\n super();\n }", "public BusinessObjectException() {\r\n super();\r\n }", "public void testParseCommands_Fail1() throws Exception {\r\n target = new DistributionScriptParserImpl();\r\n try {\r\n target.parseCommands(null, new DistributionScript(), LogManager.getLog(\"test_parse_commands\"));\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "private void assertCommandFailure(String inputCommand, Class<? extends Throwable> expectedException,\n String expectedMessage) {\n Model expectedModel = new ModelManager(model.getAddressBook(), new UserPrefs());\n assertCommandFailure(inputCommand, expectedException, expectedMessage, expectedModel);\n }", "public CalculatorOperandException() {\n\t}", "public DataControlException() {\r\n }", "public SucheException() {\n }", "public ItemInvalidoException() {\r\n }", "public TechnicalException() {\r\n }", "public CanyonException()\r\n {\r\n super();\r\n }", "public InvalidProcessException(String message, Throwable cause) {\n super(message, cause);\n }", "public OperationException(Throwable cause) {\n super(cause);\n }", "public VariableNotSetException() {\n }", "ExceptionEvaluationCondition getException();", "public SmppException() {\n\t\tsuper();\n\t}", "public CredentialManagerException() {\n\t\tsuper();\n\t}", "public DaoException() {\r\n\t\tsuper();\r\n\t}", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "protected abstract String insufficientParameterExceptionMessage(TransactionCommand transactionCommand);", "public DynamicDeckDynamoException() {\n }", "public SysException(String message) {\r\n super(message);\r\n\r\n }", "public RedoException(){\r\n\t\tsuper();\r\n\t}", "public ShopingCartException() {\n\tsuper(); // call superclass constructor\n\tmistake = \"unknown\";\n }", "public DeferConsultationException() {\n }", "public SyntaxMatchingException() {\n super();\n }", "protected ValidationException() {\r\n\t\t// hidden\r\n\t}", "public ProgramInvocationException(String message) {\n\t\tsuper(message);\n\t}", "public InvalidMoveException() {\n super(\"Invalid move!\");\n }", "public InsertErrorException() {\n super(ErrorConstants.DEFAULT_TYPE, MessageContants.CONST_ERROR_CODE_INSERT_FAILURE, Status.INTERNAL_SERVER_ERROR);\n }", "public AditoGitException(String pMessage)\n {\n super(pMessage);\n }", "public MethodException(String informative) {\n super(VARIABLE_EXCEPTION_MESSAGE + informative);\n }", "public PizzaException() {\n super(\"That pizza has been eaten.\");\n }", "public OutOfBoundException() {\n super(\"Task does not exist. Please send a correct task number ><\");\n }", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "public OLMSException() {\r\n super();\r\n }", "public XDBBaseException() {\n }", "public ScheduleException() {\r\n }", "public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }", "public SyscallException(String message) {\n\t\tsuper(message);\n\t}", "public DataDiFineTirocinioNonValidaException(String messaggio) {\r\n super(messaggio);\r\n }", "public VelocityEmailException()\n {\n super();\n }", "public QpidRAException()\n {\n super();\n }", "public ConfigProcessNameAlreadyDefinedException()\n {\n }", "public StockException() {\r\n\t\tsuper();\r\n\t}", "public SSHException(String message) {\n super(message);\n }", "public InvalidEventHandlerException() {\n }", "public SmartScriptParserException(String message) {super(message);}", "public LoginUnauthorizedException() {\r\n }", "public ShieldException() {\n }", "@Test\n void checkedExceptionFromConstructorDoesNotAttemptToStoreAggregate() {\n UnitOfWork<?> uow = CurrentUnitOfWork.get();\n uow.executeWithResult(() -> testSubject.newInstance(() -> {\n throw new Exception(\"Throwing checked exception\");\n }), RuntimeException.class::isInstance);\n\n assertFalse(uow.isActive());\n assertFalse(uow.isRolledBack());\n assertTrue(uow.getExecutionResult().isExceptionResult());\n assertEquals(\"Throwing checked exception\", uow.getExecutionResult().getExceptionResult().getMessage());\n }" ]
[ "0.73475474", "0.7148598", "0.67868584", "0.67461145", "0.67328584", "0.6580537", "0.6572166", "0.6414708", "0.63450044", "0.6274946", "0.6271052", "0.6260316", "0.6171179", "0.6167818", "0.612979", "0.6005475", "0.5997462", "0.592226", "0.58973545", "0.5875718", "0.587384", "0.58285916", "0.58281994", "0.5810776", "0.5777293", "0.57438064", "0.5728087", "0.57221997", "0.5707095", "0.5702071", "0.56993425", "0.56801814", "0.56586117", "0.5658607", "0.56568784", "0.564581", "0.56432706", "0.56366235", "0.56359154", "0.5632333", "0.56273407", "0.56162596", "0.5595101", "0.5592233", "0.55727017", "0.5568352", "0.555981", "0.5558078", "0.55563235", "0.55495673", "0.5532341", "0.5528611", "0.5523966", "0.5518914", "0.55176073", "0.5510663", "0.549982", "0.54987156", "0.54908663", "0.5487741", "0.54801553", "0.5478697", "0.5474025", "0.54663825", "0.5461498", "0.5461005", "0.5458879", "0.54549766", "0.54346913", "0.5413414", "0.5406288", "0.53979963", "0.5397844", "0.5395404", "0.539259", "0.5389343", "0.5387294", "0.5382385", "0.5379975", "0.5379775", "0.5376489", "0.5374179", "0.5371755", "0.5370223", "0.536733", "0.53536713", "0.53524923", "0.53464365", "0.5345494", "0.53384084", "0.5336473", "0.5335265", "0.53269076", "0.5326422", "0.5322573", "0.5320609", "0.5320302", "0.53193223", "0.53174645", "0.5317023" ]
0.6304791
9
Constructs a new Command Execution Exception raised by an internal Exception.
CommandExecutionException(String errorMessage, Exception cause) { super(errorMessage, cause); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InvalidCommandException() {\n super(EXCEPTION_INVALID_COMMAND_MESSAGE);\n }", "public InvalidCommandException() {\n // Call the superclass with a general message for all commands\n super(\"The command given is not valid\");\n }", "public CommandFailedByConfigException() {\n }", "public BadCommandException(String cmd){\n super(cmd);\n }", "public OperationException() {\n super();\n }", "public InvalidCommand() {\n this.errorMessage = EMPTY_STRING;\n }", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "public InvalidProcessException() {}", "CommandExecutionException(String errorMessage) {\n super(errorMessage);\n }", "public ExecutionError(Error cause) {\n/* 58 */ super(cause);\n/* */ }", "public Exception() {\n\t\t\tsuper();\n\t\t}", "public ExecutionError(String message, Error cause) {\n/* 51 */ super(message, cause);\n/* */ }", "public SyscallException() {\n\t\tsuper();\n\t}", "public InvalidCommandException(String command) {\n super(command + \" is not a valid command\");\n }", "public InvalidCommandException(String message) {\n super(message);\n }", "public AditoGitException(String pMessage, Exception pE)\n {\n super(pMessage, pE);\n }", "public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }", "public AditoGitException(Exception pE)\n {\n super(pE);\n }", "public Exception() {\n\tsuper();\n }", "public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }", "public InvalidInvocationException(Throwable throwable)\n {\n super(DEFAULT_MESSAGE, throwable);\n }", "public CommandFailedByConfigException(Throwable ex) {\n super(ex);\n }", "public CommunicationException() {\r\n\t\tsuper();\r\n\t}", "public QueryException() {\n\n }", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "public OperationException(String message) {\n super(message);\n }", "public SyntaxException() {\n\t\tsuper();\n\t}", "public InvalidInvocationException()\n {\n super(DEFAULT_MESSAGE);\n }", "private DockerCommand<?> createCommand(Class<? extends DockerCommand<?>> commandType) {\n try {\n return commandType.newInstance();\n } catch (InstantiationException | IllegalAccessException e) {\n throw new BeanCreationException(\"Failed to create Docker command of type: \" + commandType, e);\n }\n }", "public OperationException(Throwable cause) {\n super(cause);\n }", "public IllegalArgumentException buildException() {\n return this.buildException(null);\n }", "public KillException() {}", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "public BaseException(String message) {\n super(message);\n setErrorCode();\n }", "public RuntimeMBeanException(RuntimeException paramRuntimeException, String paramString) {\n/* 66 */ super(paramString);\n/* 67 */ this.runtimeException = paramRuntimeException;\n/* */ }", "public QueryException(){\n\t\tsuper();\n\t}", "public OperationException(String message, Throwable cause) {\n super(message, cause);\n }", "public PreparationException() {\n\t\tsuper();\n\t}", "public XDBBaseException() {\n }", "private SmartServiceException createException(Throwable t, String key, Object... args) {\n return new SmartServiceException.Builder(getClass(), t).userMessage(key, args).build();\n }", "public ExceptionBase( ExceptionType exceptionType ) {\n\t\tsuper();\n\t\texceptionsCatching( exceptionType );\n\t}", "public CanyonException()\r\n {\r\n super();\r\n }", "public SMSLibException(Throwable originalE)\n/* 17: */ {\n/* 18:45 */ this.originalE = originalE;\n/* 19: */ }", "public CommandFailedByConfigException(String msg, Throwable ex) {\n super(msg, ex);\n }", "public Exception(String s) {\n\tsuper(s);\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public InterfaceException(Throwable e, MessageKey key) {\n super(e, key);\n }", "public BusinessObjectException() {\r\n super();\r\n }", "public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }", "public InvalidCommand(String errorMessage) {\n this.errorMessage = errorMessage;\n }", "public RepositoryException(final Exception ex) {\n super(ex);\n }", "public interface Command {\n\n /**\n * Performs the operation of the command\n *\n * @param projectDir Absolute path to the Android Application Eclipse\n * Project\n * @param paths Relative paths were to find the project's classes and\n * resources.\n * @throws CommandExecutionException if any error happens during the command\n * execution.\n */\n void execute(String projectDir, Paths paths) throws CommandExecutionException;\n\n /**\n * The CommandExecutionException is a generic exception produced during the\n * execution of a command.\n */\n class CommandExecutionException extends Exception {\n\n /**\n * Constructs a new Command Execution Exception raised by some abnormal\n * condition detected during the command execution.\n *\n * @param errorMessage Description of the error\n */\n CommandExecutionException(String errorMessage) {\n super(errorMessage);\n }\n\n /**\n * Constructs a new Command Execution Exception raised by an internal\n * Exception.\n *\n * @param errorMessage Description of the error\n * @param cause Exception that originates the Command Execution\n * Exception\n */\n CommandExecutionException(String errorMessage, Exception cause) {\n super(errorMessage, cause);\n }\n }\n}", "public TechnicalException() {\r\n }", "public CIMException(String pReason, Object pExtendedReason) {\n\t\tthis(pReason, new Object[] { pExtendedReason });\n\t}", "public EmailException()\n {\n super();\n }", "public ItemInvalidoException() {\r\n }", "public void instantiateCommand() throws SystemException {\r\n\t\t// Check the definitation.\r\n\t\tdefinitionCheck();\r\n\t\t\r\n\t\t// Create the fresh instance.\r\n\t\tcommandInstance = new ReadWriteableAttributes();\r\n\t}", "public CredentialManagerException() {\n\t\tsuper();\n\t}", "public WrappedException(Exception e) {\n super(e);\n }", "public SysException(String message) {\r\n super(message);\r\n\r\n }", "public AditoGitException(String pMessage)\n {\n super(pMessage);\n }", "public Error() {\n }", "public SmppException() {\n\t\tsuper();\n\t}", "private CommandResult executeInvalidCommand(Command userCommand) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_COMMAND);\n }", "public InvalidInvocationException(String detailMessage, Throwable throwable)\n {\n super(detailMessage, throwable);\n }", "public SMSLibException() {}", "protected static ExceptionSignalingNode createExceptionNode(final SourceSection ss) {\n CompilerDirectives.transferToInterpreter();\n return ExceptionSignalingNode.createNode(Symbols.symbolFor(\"TypeError\"), ss);\n }", "public InvalidProcessException(String message) {\n super(message);\n }", "public OLMSException() {\r\n super();\r\n }", "private void assertCommandException(String inputCommand, String expectedMessage) {\n assertCommandFailure(inputCommand, CommandException.class, expectedMessage);\n }", "public HttpException() {\n }", "public LexerException() {\n\n\t}", "public NetworkException() {\n\t\tsuper();\n\t}", "public DataControlException() {\r\n }", "public SSHException(String message) {\n super(message);\n }", "MyException(String str)\n {\n //parametrize constructor\n super(str);\n }", "public SyntaxException(String errorMessage) {\n\t\tsuper(errorMessage);\n\t}", "public ProgramInvocationException(String message) {\n\t\tsuper(message);\n\t}", "public SmppException(Exception e) {\n\t\tsuper(e);\n\t}", "public ProgramInvocationException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}", "public SintaxException() { //Si se llama con el mensaje por defecto\n super(\"Error de sintaxis en el polinomio\"); //El constructor llama a la clase superior\n }", "public QpidRAException()\n {\n super();\n }", "public CryptoException(String err) {\n super(err);\n errMsg = err;\n }", "public CompilationException(Throwable t) {\n\t\tsuper(t);\n\t}", "public RepositoryException(final String message, final Exception ex) {\n super(message, ex);\n }", "public ExcelImportException() {\r\n\t\tsuper();\r\n\t}", "public MethodException(String informative) {\n super(VARIABLE_EXCEPTION_MESSAGE + informative);\n }", "public OperatorException(final Operator operator, final Throwable cause) {\n super(cause);\n this.operator = operator;\n }", "public CIMException(String pReason, Object[] pExtendedReason) {\n\t\tsuper(pReason);\n\t\tif (pExtendedReason != null) {\n\t\t\tfor (int i = 0; i < pExtendedReason.length; i++) {\n\t\t\t\tif (pExtendedReason[i] instanceof Throwable) {\n\t\t\t\t\tthis.iCause = (Throwable) pExtendedReason[i];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.iReason = pReason;\n\t\tthis.iExtendedReason = pExtendedReason;\n\t}", "public ExceptionSubVersion() {\n this(\"EcologicaExcepciones\");\n }", "public TrafficspacesAPIException() {\n \tthis(null, DEFAULT_MESSAGE);\n }", "public BuildInterruptedException() {\n }", "public UnmatchedException(){\r\n\r\n\t}", "public ScheduleException() {\r\n }", "public InvalidProcessException(String message, Throwable cause) {\n super(message, cause);\n }", "public ShopingCartException() {\n\tsuper(); // call superclass constructor\n\tmistake = \"unknown\";\n }", "CoreException(int exit, String sourceClass, String sourceMethod, String message, int instruction, int pointer)\n {\n super(exit, sourceClass, sourceMethod, message + \" at instructions \" + instruction + \", memory pointer was at \" + pointer);\n }", "public CalculatorOperandException() {\n\t}", "public SmppException(String s, Exception e) {\n\t\tsuper(s, e);\n\t}", "protected abstract BuildFailureException newBuildFailureException(int errorCount);" ]
[ "0.70554054", "0.68032837", "0.6533679", "0.64911467", "0.6460807", "0.6422952", "0.62849885", "0.62786305", "0.62452966", "0.6233356", "0.6229257", "0.62285876", "0.62123233", "0.61560905", "0.6092889", "0.6091835", "0.5999179", "0.5967038", "0.5963707", "0.5938335", "0.59225535", "0.5902041", "0.58901036", "0.5846869", "0.58338016", "0.58309627", "0.5819868", "0.5818288", "0.5807484", "0.580688", "0.57845753", "0.5778897", "0.57472336", "0.5746857", "0.5742401", "0.5718669", "0.57056457", "0.570269", "0.56993634", "0.56982034", "0.56973225", "0.5684805", "0.5663591", "0.56587726", "0.5652247", "0.5650662", "0.56481403", "0.5643411", "0.5643293", "0.56297684", "0.5622619", "0.5619229", "0.5618183", "0.56121755", "0.56027466", "0.56006044", "0.5595981", "0.5595736", "0.5585703", "0.5570063", "0.5569059", "0.5568941", "0.5563452", "0.5546539", "0.5540583", "0.553931", "0.55217904", "0.55184716", "0.5517161", "0.55091995", "0.5505178", "0.5504863", "0.5502783", "0.5493857", "0.5489943", "0.54896665", "0.54890275", "0.5483071", "0.5478826", "0.54695386", "0.5467869", "0.5459445", "0.54588956", "0.54567385", "0.5455511", "0.5452773", "0.54501325", "0.5446628", "0.5444564", "0.5441978", "0.5431598", "0.5427864", "0.54233676", "0.5419651", "0.54187316", "0.5417176", "0.5414979", "0.5407306", "0.5405528", "0.5402106" ]
0.59817183
17
Creates new form NewFileChooser
public NewFileChooser_Alejandro() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static JFileChooser createFileChooser() {\n final JFileChooser fc = new JFileChooser();\n fc.setCurrentDirectory(new java.io.File(\".\"));\n fc.setDialogTitle(\"Select the folder containing project files and audio exports\");\n fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n fc.setCurrentDirectory(loadFilePath());\n return fc;\n }", "@FXML\n void newFilePressed(ActionEvent event) {\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tfileChooser.setTitle(\"Open New File\");\n\t\tFile f = fileChooser.showSaveDialog(stage);\n\t\tif (f != null) {\n\t\t\tsetFile(f);\n\t\t\tviewState.set(ViewState.NEW);\n\t\t}\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n fileCho = new javax.swing.JFileChooser();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n fileCho.setBackground(style.GraphicCharter.colorYellow);\n fileCho.setCurrentDirectory(new java.io.File(\"D:\\\\Projets\"));\n fileCho.setDialogTitle(\"\");\n fileCho.setFileSelectionMode(javax.swing.JFileChooser.DIRECTORIES_ONLY);\n fileCho.setFont(style.GraphicCharter.fontCorps);\n fileCho.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n fileChoActionPerformed(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 .addComponent(fileCho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(fileCho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void openFileChooser(FileType type) {\r\n\t\ttry {\r\n\t\t\tJFileChooser fc = new JFileChooser(\"C:\\\\\");\r\n\t\t\tint choice = fc.showDialog(this.view, \"Add File\");\r\n\t\t\tif(choice == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\tFileModel model = new FileModel(fc.getSelectedFile(), type);\r\n\t\t\t\tif(Validation.isModelValid(model)) {\r\n\t\t\t\t\tFileData.saveFileModel(model);\r\n\t\t\t\t\tthis.updateColumnSelections(type);\r\n\t\t\t\t\tthis.setButtonEnabled(type);\r\n\t\t\t\t\tthis.loadFileNames();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "private JFileChooser fileChooserDialog(String title, String currentDir) {\n JFileChooser fc = new JFileChooser();\n fc.setDialogTitle(title);\n\n // Choose only files, not directories\n fc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\n fc.setCurrentDirectory(new File(currentDir));\n\n // Set filter for Java source files.\n fc.setFileFilter(fImageFilter);\n return fc;\n }", "private void fileChooser(){\n JFileChooser chooser = new JFileChooser();\n // Note: source for ExampleFileFilter can be found in FileChooserDemo,\n // under the demo/jfc directory in the JDK.\n //ExampleFileFilter filter = new ExampleFileFilter();\n// filter.addExtension(\"jpg\");\n// filter.addExtension(\"gif\");\n// filter.setDescription(\"JPG & GIF Images\");\n // chooser.setFileFilter(new javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter());\n int returnVal = chooser.showOpenDialog(this.getContentPane());\n if(returnVal == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"You chose to open this file: \" +\n chooser.getSelectedFile().getName());\n try{\n this.leerArchivo(chooser.getSelectedFile());\n\n }\n catch (Exception e){\n System.out.println(\"Imposible abrir archivo \" + e);\n }\n }\n }", "private JFileChooser getFileChooser() {\t\t\n\t\treturn getFileChooser(JFileChooser.FILES_AND_DIRECTORIES);\n\t}", "public SanPhamJFrame() {\n initComponents();\n setLocationRelativeTo(null);\n fileChooser = new JFileChooser();\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jFileChooser1 = new javax.swing.JFileChooser();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jFileChooser1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jFileChooser1ActionPerformed(evt);\n }\n });\n\n jButton1.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jButton1.setText(\"GRAFICA\");\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(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jFileChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, 575, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\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 .addGap(19, 19, 19)\n .addComponent(jFileChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(227, 227, 227)\n .addComponent(jButton1)))\n .addContainerGap(58, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void btn_add_plan_nutricionalActionPerformed(java.awt.event.ActionEvent evt) {\n JFrame parentFrame = new JFrame();\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.addChoosableFileFilter(new FileFilter() {\n public String getDescription() {\n return \"PDF Documents (*.pdf)\";\n }\n\n public boolean accept(File f) {\n if (f.isDirectory()) {\n return true;\n } else {\n return f.getName().toLowerCase().endsWith(\".pdf\");\n }\n }\n });\n fileChooser.setDialogTitle(\"Specify a file to save\");\n int userSelection = fileChooser.showSaveDialog(parentFrame);\n File fileToSave = fileChooser.getSelectedFile();\n if (userSelection == 0) {\n if (fileToSave.getName().toLowerCase().endsWith(\".pdf\")) {\n\n System.out.println(\"Save as file: \" + fileToSave.getAbsolutePath());\n try {\n copyFile(fileToSave.getAbsolutePath(), \"C:\\\\PGS\\\\nutricion\\\\\" + fileToSave.getName());\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Vista.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Vista.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n JOptionPane.showMessageDialog(null, \"No es un archivo .PDF\", \"Alert\", JOptionPane.ERROR_MESSAGE);\n }\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n fileChooser = new javax.swing.JFileChooser();\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(legaltime.LegalTimeApp.class).getContext().getResourceMap(FileChooserView.class);\n setTitle(resourceMap.getString(\"Form.title\")); // NOI18N\n setName(\"Form\"); // NOI18N\n\n fileChooser.setName(\"fileChooser\"); // NOI18N\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 .addComponent(fileChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(fileChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public FenFileChooser(FenStudy prec) {\n this.prec = prec;\n initComponents();\n this.setLocation(prec.getLocation());\n fileCho.setApproveButtonText(\"Select\");\n }", "public DemoFileChooser()\n\t{\n\t\tsetTitle(\"Testing Tool\");\n\t\tinitComponents();\n\t}", "public FileChooser(){\n super();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJFileChooser jfc=new JFileChooser();\n\t\t\n\t\t//显示文件和目录\n\t\tjfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );\n\t\tjfc.showDialog(new JLabel(), \"选择\");\n\t\tFile file=jfc.getSelectedFile();\n\t\t\n\t\t//file.getAbsolutePath()获取到的绝对路径。\n\t\tif(file.isDirectory()){\n\t\t\tSystem.out.println(\"文件夹:\"+file.getAbsolutePath());\n\t\t}else if(file.isFile()){\n\t\t\tSystem.out.println(\"文件:\"+file.getAbsolutePath());\n\t\t}\n\t\t\n\t\t//jfc.getSelectedFile().getName() 获取到文件的名称、文件名。\n\t\tSystem.out.println(jfc.getSelectedFile().getName());\n\t\t\n\t}", "private JFileChooser getInChooser() \r\n {\r\n if (inChooser == null) \r\n {\r\n inChooser = new JFileChooser();\r\n }\r\n return inChooser;\r\n }", "public void newFile() {\n\t\tString filename = \"untitled\";\n\t\tfilename = JOptionPane.showInputDialog(null,\n\t\t\t\t\"Enter the new file name\");\n\t\taddTab(filename+\".minl\");\n\t}", "private static JFileChooser createFileChooser(final String dir) {\n JFileChooser chooser = new JFileChooser(dir);\n chooser.addChoosableFileFilter(new FileNameExtensionFilter(\"jGnash Files(*.xml)\", \"xml\"));\n chooser.setMultiSelectionEnabled(false);\n\n return chooser;\n }", "private void saveFileChooser(){\n JFileChooser chooser = new JFileChooser();\n // Note: source for ExampleFileFilter can be found in FileChooserDemo,\n // under the demo/jfc directory in the JDK.\n //ExampleFileFilter filter = new ExampleFileFilter();\n// filter.addExtension(\"jpg\");\n// filter.addExtension(\"gif\");\n// filter.setDescription(\"JPG & GIF Images\");\n // chooser.setFileFilter(new javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter());\n int returnVal = chooser.showSaveDialog(this.getContentPane());\n if(returnVal == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"You chose to open this file: \" +\n chooser.getSelectedFile().getName());\n try{\n this.generarReporte(chooser.getSelectedFile().getAbsolutePath());\n }\n catch (Exception e){\n System.out.println(\"Imposible abrir archivo \" + e);\n }\n }\n }", "private JFileChooser getOutChooser() \r\n {\r\n if (outChooser == null) \r\n {\r\n outChooser = new JFileChooser();\r\n }\r\n return outChooser;\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n jPanel2 = new javax.swing.JPanel();\n jFileChooserFoto = new javax.swing.JFileChooser();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"August- Selecione uma imagem\");\n\n jFileChooserFoto.setApproveButtonText(\"Carregar\");\n jFileChooserFoto.setCurrentDirectory(new java.io.File(\"H:\\\\Pedro\\\\WEB\\\\Arquivos_htm\\\\doctor whosite\"));\n jFileChooserFoto.setDialogTitle(\"Selecione uma imagem\");\n jFileChooserFoto.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n jFileChooserFotoActionPerformed(evt);\n }\n });\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 .addContainerGap()\n .addComponent(jFileChooserFoto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jFileChooserFoto, javax.swing.GroupLayout.PREFERRED_SIZE, 346, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, 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(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void addPressed() {\n\n\t\tJFileChooser fc = new JFileChooser();\n\t\tfc.setFileFilter(SwingFileFilterFactory.newMediaFileFilter());\n\t\tint returnVal = fc.showOpenDialog(Library.this);\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tString newFile = fc.getSelectedFile().getAbsolutePath();\n\t\t\t// Check that file is a video or audio file.\n\t\t\tInvalidCheck i = new InvalidCheck();\n\t\t\tboolean isValidMedia = i.invalidCheck(newFile);\n\n\t\t\tif (!isValidMedia) {\n\t\t\t\tJOptionPane.showMessageDialog(Library.this, \"You have specified an invalid file.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}else{\n\t\t\t\tselectedFile = fc.getSelectedFile();\n\t\t\t\tl.addElement(selectedFile.getName());\n\t\t\t\tpaths.put(selectedFile.getName(), selectedFile.getAbsolutePath());\n\t\t\t\tsizes.put(selectedFile.getName(),selectedFile.length());\n\t\t\t}\n\t\t}\n\t}", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 234);\n }", "protected void openFileChooser(ValueCallback uploadMsg, String acceptType)\n {\n mUploadMessage = uploadMsg;\n Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n i.addCategory(Intent.CATEGORY_OPENABLE);\n i.setType(\"*/*\");\n startActivityForResult(Intent.createChooser(i, \"File Browser\"), FILECHOOSER_RESULTCODE);\n }", "private void initComponents() {\n\n jFileChooser1 = new javax.swing.JFileChooser();\n chooser = new javax.swing.JFileChooser();\n\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n closeDialog(evt);\n }\n });\n\n chooser.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooserActionPerformed(evt);\n }\n });\n add(chooser, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jFileChooserEdicion = new javax.swing.JFileChooser();\n jPanelVista = new javax.swing.JPanel();\n jLabelNombreVista = new javax.swing.JLabel();\n jLabelMarcaVista = new javax.swing.JLabel();\n jLabelEdadVista = new javax.swing.JLabel();\n jLabelPrecioVista = new javax.swing.JLabel();\n jLabelTipoVista = new javax.swing.JLabel();\n jLabelMuestraNombre = new javax.swing.JLabel();\n jLabelMuestraMarca = new javax.swing.JLabel();\n jLabelMuestraEdad = new javax.swing.JLabel();\n jLabelMuestraPrecio = new javax.swing.JLabel();\n jLabelMuestraTipo = new javax.swing.JLabel();\n jLabelFotoVista = new javax.swing.JLabel();\n jPanelBaseVista = new javax.swing.JPanel();\n jButtonAnterirorVista = new javax.swing.JButton();\n jLabelMostrandoVista = new javax.swing.JLabel();\n jLabelDeVista = new javax.swing.JLabel();\n jLabelMaximoCarrouselVista = new javax.swing.JLabel();\n jButtonSiguienteVista = new javax.swing.JButton();\n jButtonCancelFilterVista = new javax.swing.JButton();\n jPanelEdicion = new javax.swing.JPanel();\n jLabelMuestraAccionEdicion = new javax.swing.JLabel();\n jLabelNombreEdicion = new javax.swing.JLabel();\n jLabelMarcaEdicion = new javax.swing.JLabel();\n jLabelEdadEdicion = new javax.swing.JLabel();\n jLabelPrecioEdicion = new javax.swing.JLabel();\n jLabelTipoEdicion = new javax.swing.JLabel();\n jComboBoxMarcaEdicion = new javax.swing.JComboBox();\n jComboBoxTipoEdicion = new javax.swing.JComboBox();\n jTextFieldNombreEdicion = new javax.swing.JTextField();\n jTextFieldEdadEdicion = new javax.swing.JTextField();\n jTextFieldPrecioEdicion = new javax.swing.JTextField();\n jButtonAgregarFotoEdicion = new javax.swing.JButton();\n jLabelRutaImagenEdicion = new javax.swing.JLabel();\n jButtonAceptarEdicion = new javax.swing.JButton();\n jButtonCancelarEdicion = new javax.swing.JButton();\n jPanelFiltro = new javax.swing.JPanel();\n jLabelNombreFiltro = new javax.swing.JLabel();\n jTextFieldNombreFiltro = new javax.swing.JTextField();\n jLabelMarcaFiltro = new javax.swing.JLabel();\n jComboBoxMarcaFiltro = new javax.swing.JComboBox();\n jLabelEdadFiltro = new javax.swing.JLabel();\n jTextFieldEdadFiltro = new javax.swing.JTextField();\n jLabelPrecioFiltro = new javax.swing.JLabel();\n jTextFieldPrecioFiltro = new javax.swing.JTextField();\n jLabelTipoFiltro = new javax.swing.JLabel();\n jComboBoxTipoFiltro = new javax.swing.JComboBox();\n jButtonAceptarFiltro = new javax.swing.JButton();\n jButtonCancelarFiltro = new javax.swing.JButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenuArchivo = new javax.swing.JMenu();\n jMenuItemAgregar = new javax.swing.JMenuItem();\n jMenuItemModificar = new javax.swing.JMenuItem();\n jMenuItemBorrar = new javax.swing.JMenuItem();\n jMenuItemFiltrar = new javax.swing.JMenuItem();\n jMenuItemVista = new javax.swing.JMenuItem();\n jMenuItemGuardar = new javax.swing.JMenuItem();\n jMenuItemCargar = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jPanelVista.setPreferredSize(new java.awt.Dimension(690, 320));\n\n jLabelNombreVista.setText(\"Nombre\");\n\n jLabelMarcaVista.setText(\"Marca\");\n\n jLabelEdadVista.setText(\"Edad\");\n\n jLabelPrecioVista.setText(\"Precio\");\n\n jLabelTipoVista.setText(\"Tipo\");\n\n jLabelMuestraNombre.setMaximumSize(new java.awt.Dimension(200, 15));\n jLabelMuestraNombre.setMinimumSize(new java.awt.Dimension(200, 15));\n jLabelMuestraNombre.setPreferredSize(new java.awt.Dimension(200, 15));\n\n jLabelMuestraMarca.setMaximumSize(new java.awt.Dimension(200, 15));\n jLabelMuestraMarca.setMinimumSize(new java.awt.Dimension(200, 15));\n jLabelMuestraMarca.setPreferredSize(new java.awt.Dimension(200, 15));\n\n jLabelMuestraEdad.setMaximumSize(new java.awt.Dimension(200, 15));\n jLabelMuestraEdad.setMinimumSize(new java.awt.Dimension(200, 15));\n jLabelMuestraEdad.setPreferredSize(new java.awt.Dimension(200, 15));\n\n jLabelMuestraPrecio.setMaximumSize(new java.awt.Dimension(200, 15));\n jLabelMuestraPrecio.setMinimumSize(new java.awt.Dimension(200, 15));\n jLabelMuestraPrecio.setPreferredSize(new java.awt.Dimension(200, 15));\n\n jLabelMuestraTipo.setMaximumSize(new java.awt.Dimension(200, 15));\n jLabelMuestraTipo.setMinimumSize(new java.awt.Dimension(200, 15));\n jLabelMuestraTipo.setPreferredSize(new java.awt.Dimension(200, 15));\n\n jLabelFotoVista.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n jLabelFotoVista.setPreferredSize(new java.awt.Dimension(125, 150));\n jLabelFotoVista.setRequestFocusEnabled(false);\n\n java.awt.FlowLayout flowLayout1 = new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 40, 5);\n flowLayout1.setAlignOnBaseline(true);\n jPanelBaseVista.setLayout(flowLayout1);\n\n jButtonAnterirorVista.setText(\"Anterior\");\n jButtonAnterirorVista.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAnterirorVistaActionPerformed(evt);\n }\n });\n jPanelBaseVista.add(jButtonAnterirorVista);\n\n jLabelMostrandoVista.setText(\"X\");\n jPanelBaseVista.add(jLabelMostrandoVista);\n\n jLabelDeVista.setText(\" de \");\n jPanelBaseVista.add(jLabelDeVista);\n\n jLabelMaximoCarrouselVista.setText(\"X\");\n jPanelBaseVista.add(jLabelMaximoCarrouselVista);\n\n jButtonSiguienteVista.setText(\"Siguiente\");\n jButtonSiguienteVista.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSiguienteVistaActionPerformed(evt);\n }\n });\n jPanelBaseVista.add(jButtonSiguienteVista);\n\n jButtonCancelFilterVista.setText(\"Cancelar Filtro\");\n jButtonCancelFilterVista.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCancelFilterVistaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanelVistaLayout = new javax.swing.GroupLayout(jPanelVista);\n jPanelVista.setLayout(jPanelVistaLayout);\n jPanelVistaLayout.setHorizontalGroup(\n jPanelVistaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelVistaLayout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addGroup(jPanelVistaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelNombreVista)\n .addComponent(jLabelMarcaVista)\n .addComponent(jLabelEdadVista)\n .addComponent(jLabelPrecioVista)\n .addComponent(jLabelTipoVista))\n .addGap(18, 18, 18)\n .addGroup(jPanelVistaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabelMuestraNombre, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabelMuestraMarca, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabelMuestraEdad, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabelMuestraPrecio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabelMuestraTipo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 193, Short.MAX_VALUE)\n .addComponent(jLabelFotoVista, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(83, 83, 83))\n .addComponent(jPanelBaseVista, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 690, Short.MAX_VALUE)\n .addGroup(jPanelVistaLayout.createSequentialGroup()\n .addGap(283, 283, 283)\n .addComponent(jButtonCancelFilterVista)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanelVistaLayout.setVerticalGroup(\n jPanelVistaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelVistaLayout.createSequentialGroup()\n .addGroup(jPanelVistaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelVistaLayout.createSequentialGroup()\n .addGap(108, 108, 108)\n .addGroup(jPanelVistaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelNombreVista)\n .addComponent(jLabelMuestraNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelVistaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelMarcaVista)\n .addComponent(jLabelMuestraMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)\n .addGroup(jPanelVistaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelEdadVista, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelMuestraEdad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelVistaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelPrecioVista)\n .addComponent(jLabelMuestraPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelVistaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelTipoVista)\n .addComponent(jLabelMuestraTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelVistaLayout.createSequentialGroup()\n .addGap(76, 76, 76)\n .addComponent(jLabelFotoVista, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addComponent(jPanelBaseVista, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonCancelFilterVista)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanelEdicion.setPreferredSize(new java.awt.Dimension(690, 320));\n\n jLabelMuestraAccionEdicion.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMuestraAccionEdicion.setMaximumSize(new java.awt.Dimension(60, 20));\n jLabelMuestraAccionEdicion.setMinimumSize(new java.awt.Dimension(60, 20));\n jLabelMuestraAccionEdicion.setPreferredSize(new java.awt.Dimension(60, 20));\n\n jLabelNombreEdicion.setText(\"Nombre\");\n\n jLabelMarcaEdicion.setText(\"Marca\");\n\n jLabelEdadEdicion.setText(\"Edad\");\n\n jLabelPrecioEdicion.setText(\"Precio\");\n\n jLabelTipoEdicion.setText(\"Tipo\");\n\n jComboBoxMarcaEdicion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jComboBoxTipoEdicion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jTextFieldNombreEdicion.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextFieldNombreEdicionFocusGained(evt);\n }\n });\n\n jTextFieldEdadEdicion.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextFieldEdadEdicionFocusGained(evt);\n }\n });\n\n jTextFieldPrecioEdicion.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextFieldPrecioEdicionFocusGained(evt);\n }\n });\n\n jButtonAgregarFotoEdicion.setText(\"Agregar Foto\");\n jButtonAgregarFotoEdicion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAgregarFotoEdicionActionPerformed(evt);\n }\n });\n\n jLabelRutaImagenEdicion.setMaximumSize(new java.awt.Dimension(441, 15));\n jLabelRutaImagenEdicion.setMinimumSize(new java.awt.Dimension(441, 15));\n jLabelRutaImagenEdicion.setPreferredSize(new java.awt.Dimension(441, 15));\n\n jButtonAceptarEdicion.setText(\"Aceptar\");\n jButtonAceptarEdicion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAceptarEdicionActionPerformed(evt);\n }\n });\n\n jButtonCancelarEdicion.setText(\"Cancelar\");\n jButtonCancelarEdicion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCancelarEdicionActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanelEdicionLayout = new javax.swing.GroupLayout(jPanelEdicion);\n jPanelEdicion.setLayout(jPanelEdicionLayout);\n jPanelEdicionLayout.setHorizontalGroup(\n jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelEdicionLayout.createSequentialGroup()\n .addContainerGap(41, Short.MAX_VALUE)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelEdicionLayout.createSequentialGroup()\n .addComponent(jLabelMuestraAccionEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(303, 303, 303))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelEdicionLayout.createSequentialGroup()\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanelEdicionLayout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelMarcaEdicion)\n .addComponent(jLabelPrecioEdicion)\n .addComponent(jLabelEdadEdicion)\n .addComponent(jLabelTipoEdicion)\n .addComponent(jLabelNombreEdicion))\n .addGap(23, 23, 23)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelEdicionLayout.createSequentialGroup()\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jComboBoxTipoEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jComboBoxMarcaEdicion, 0, 200, Short.MAX_VALUE)\n .addComponent(jTextFieldNombreEdicion)\n .addComponent(jTextFieldEdadEdicion)\n .addComponent(jTextFieldPrecioEdicion)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 166, Short.MAX_VALUE))\n .addGroup(jPanelEdicionLayout.createSequentialGroup()\n .addComponent(jButtonAceptarEdicion)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonCancelarEdicion))))\n .addComponent(jLabelRutaImagenEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 441, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButtonAgregarFotoEdicion)\n .addGap(101, 101, 101))))\n );\n jPanelEdicionLayout.setVerticalGroup(\n jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelEdicionLayout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addComponent(jLabelMuestraAccionEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonAgregarFotoEdicion)\n .addComponent(jLabelRutaImagenEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelEdicionLayout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldNombreEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNombreEdicion))\n .addGap(59, 59, 59)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldEdadEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelEdadEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanelEdicionLayout.createSequentialGroup()\n .addGap(62, 62, 62)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelMarcaEdicion)\n .addComponent(jComboBoxMarcaEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelPrecioEdicion)\n .addComponent(jTextFieldPrecioEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBoxTipoEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelTipoEdicion))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonAceptarEdicion)\n .addComponent(jButtonCancelarEdicion))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanelFiltro.setPreferredSize(new java.awt.Dimension(690, 320));\n\n jLabelNombreFiltro.setText(\"Nombre\");\n\n jTextFieldNombreFiltro.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextFieldNombreFiltroFocusGained(evt);\n }\n });\n\n jLabelMarcaFiltro.setText(\"Marca\");\n\n jComboBoxMarcaFiltro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabelEdadFiltro.setText(\"Edad\");\n\n jTextFieldEdadFiltro.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextFieldEdadFiltroFocusGained(evt);\n }\n });\n\n jLabelPrecioFiltro.setText(\"Precio\");\n\n jTextFieldPrecioFiltro.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTextFieldPrecioFiltroFocusGained(evt);\n }\n });\n\n jLabelTipoFiltro.setText(\"Tipo\");\n\n jComboBoxTipoFiltro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jButtonAceptarFiltro.setText(\"Filtrar\");\n jButtonAceptarFiltro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAceptarFiltroActionPerformed(evt);\n }\n });\n\n jButtonCancelarFiltro.setText(\"Cancelar\");\n jButtonCancelarFiltro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCancelarFiltroActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanelFiltroLayout = new javax.swing.GroupLayout(jPanelFiltro);\n jPanelFiltro.setLayout(jPanelFiltroLayout);\n jPanelFiltroLayout.setHorizontalGroup(\n jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 690, Short.MAX_VALUE)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelFiltroLayout.createSequentialGroup()\n .addGap(132, 132, 132)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelMarcaFiltro)\n .addComponent(jLabelPrecioFiltro)\n .addComponent(jLabelEdadFiltro)\n .addComponent(jLabelTipoFiltro)\n .addComponent(jLabelNombreFiltro))\n .addGap(23, 23, 23)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelFiltroLayout.createSequentialGroup()\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jComboBoxTipoFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jComboBoxMarcaFiltro, 0, 200, Short.MAX_VALUE)\n .addComponent(jTextFieldNombreFiltro)\n .addComponent(jTextFieldEdadFiltro)\n .addComponent(jTextFieldPrecioFiltro)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 166, Short.MAX_VALUE))\n .addGroup(jPanelFiltroLayout.createSequentialGroup()\n .addComponent(jButtonAceptarFiltro)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonCancelarFiltro)))\n .addGap(132, 132, 132)))\n );\n jPanelFiltroLayout.setVerticalGroup(\n jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 320, Short.MAX_VALUE)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelFiltroLayout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelFiltroLayout.createSequentialGroup()\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldNombreFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNombreFiltro))\n .addGap(59, 59, 59)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldEdadFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelEdadFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanelFiltroLayout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelMarcaFiltro)\n .addComponent(jComboBoxMarcaFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelPrecioFiltro)\n .addComponent(jTextFieldPrecioFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBoxTipoFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelTipoFiltro))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelFiltroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonAceptarFiltro)\n .addComponent(jButtonCancelarFiltro))\n .addContainerGap(60, Short.MAX_VALUE)))\n );\n\n jMenuArchivo.setText(\"Archivo\");\n\n jMenuItemAgregar.setText(\"Agregar\");\n jMenuItemAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemAgregarActionPerformed(evt);\n }\n });\n jMenuArchivo.add(jMenuItemAgregar);\n\n jMenuItemModificar.setText(\"Modificar\");\n jMenuItemModificar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemModificarActionPerformed(evt);\n }\n });\n jMenuArchivo.add(jMenuItemModificar);\n\n jMenuItemBorrar.setText(\"Borrar\");\n jMenuItemBorrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemBorrarActionPerformed(evt);\n }\n });\n jMenuArchivo.add(jMenuItemBorrar);\n\n jMenuItemFiltrar.setText(\"Filtrar\");\n jMenuItemFiltrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemFiltrarActionPerformed(evt);\n }\n });\n jMenuArchivo.add(jMenuItemFiltrar);\n\n jMenuItemVista.setText(\"Vista\");\n jMenuItemVista.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemVistaActionPerformed(evt);\n }\n });\n jMenuArchivo.add(jMenuItemVista);\n\n jMenuItemGuardar.setText(\"Guardar\");\n jMenuItemGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemGuardarActionPerformed(evt);\n }\n });\n jMenuArchivo.add(jMenuItemGuardar);\n\n jMenuItemCargar.setText(\"Cargar\");\n jMenuItemCargar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemCargarActionPerformed(evt);\n }\n });\n jMenuArchivo.add(jMenuItemCargar);\n\n jMenuBar1.add(jMenuArchivo);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanelFiltro, javax.swing.GroupLayout.DEFAULT_SIZE, 714, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanelEdicion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap()))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanelVista, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap()))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanelFiltro, javax.swing.GroupLayout.DEFAULT_SIZE, 348, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jPanelEdicion, javax.swing.GroupLayout.DEFAULT_SIZE, 326, Short.MAX_VALUE)\n .addContainerGap()))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanelVista, javax.swing.GroupLayout.DEFAULT_SIZE, 325, Short.MAX_VALUE)\n .addGap(11, 11, 11)))\n );\n\n pack();\n }", "private void openFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PICK_IMAGE_REQUEST);\n\n }", "private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t int returnVal = fc.showOpenDialog(GenerateWindow.this);\n\n\t\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File imagefile = fc.getSelectedFile();\n\t\t imageSelect.setText(\"images/\"+imagefile.getName());\n\t\t }}", "public int openFileChooser(){\n int returnVal = fileChooser.showOpenDialog(getCanvas()); //Parent component as parameter - affects position of dialog\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"ZIP & OSM & BIN\", \"osm\", \"zip\", \"bin\",\"OSM\",\"ZIP\",\"BIN\"); //The allowed files in the filechooser\n fileChooser.setFileFilter(filter); //sets the above filter\n return returnVal;\n }", "public FilterChooser() {\n\n \tsuper();\n \tchooser = new JFileChooser();\n \tthis.setupListeners();\n \t\n \n }", "protected void openFileChooser(ValueCallback uploadMsg, String acceptType) {\n mUploadMessage = uploadMsg;\n Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n i.addCategory(Intent.CATEGORY_OPENABLE);\n i.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(i, \"File Browser\"), FILECHOOSER_RESULTCODE);\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">\r\n private void initComponents() {\r\n\r\n jPanel1 = new javax.swing.JPanel();\r\n jPanel2 = new javax.swing.JPanel();\r\n serach = new javax.swing.JLabel();\r\n cancel = new javax.swing.JButton();\r\n exit = new javax.swing.JButton();\r\n jFileChooser1 = new javax.swing.JFileChooser();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n\r\n jPanel2.setBackground(new java.awt.Color(204, 204, 255));\r\n\r\n serach.setText(\"SERACHNIG\");\r\n\r\n cancel.setText(\"CANCEL\");\r\n cancel.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cancelActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGap(196, 196, 196)\r\n .addComponent(serach)\r\n .addContainerGap(164, Short.MAX_VALUE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\r\n .addContainerGap(337, Short.MAX_VALUE)\r\n .addComponent(cancel)\r\n .addContainerGap())\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\r\n .addGap(33, 33, 33)\r\n .addComponent(serach)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 77, Short.MAX_VALUE)\r\n .addComponent(cancel))\r\n );\r\n\r\n exit.setText(\"EXIT\");\r\n exit.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n exitActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .addComponent(exit)\r\n .addGap(22, 22, 22))))\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(exit)\r\n .addContainerGap())\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n pack();\r\n }", "public FileChooserField() {\n \n \tsuper(new BorderLayout());\n \n destinationTextField = new JTextField();\n destinationTextField.addMouseListener(new MouseAdapter() {\n // on mouse click pull up the file chooser\n public void mouseClicked(MouseEvent e) {\n int returnVal = fileChooser.showOpenDialog(FileChooserField.this);\n \t\t \n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = fileChooser.getSelectedFile();\n destinationTextField.setText(file.getPath());\n }\n \n destinationTextField.setCaretPosition(destinationTextField.getDocument().getLength());\n }\n });\n \n //add the text field to the pane\n add(destinationTextField);\n \n //create the file chooser\n fileChooser = new JFileChooser();\n \n fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n \n }", "private void jButtonBrowseFileNameActionPerformed(ActionEvent e) {\n\t\tJFileChooser fileChooser = new JFileChooser();\n\t\tint result = fileChooser.showSaveDialog(this);\n\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = fileChooser.getSelectedFile();\n\t\t\tjTextFieldFileName.setText(file.getAbsolutePath());\n\t\t}\n\t}", "private void showFileChooser(){\n\t\t//Create the file chooser with a default directory of the last downloadPath (default will be user.home\\Downloads\\)\n\t\tJFileChooser chooser = new JFileChooser(downloadPath);\n\t\t//Allow the file chooser to only select directories\n\t\tchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t//Set the title\n\t\tchooser.setDialogTitle(\"Choose where to save your images\");\n\t\t//If the user chose a directory, then set the new path\n\t\tif(chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION){\t\n\t\t\tdownloadPath = chooser.getSelectedFile().getAbsolutePath() + File.separator;\n\t\t}\n\t\t//If the user did not choose a directory, then reset to default path\n\t\telse{\n\t\t\tsetDefaultPath();\n\t\t}\n\t\t//Check to see if the path is completed by a \\\n\t\tif(!downloadPath.endsWith(File.separator)){\n\t\t\tdownloadPath += File.separator;\n\t\t}\n\t\t//Update to let the user see where their files are downloaded\n\t\tcurrentPath.setText(downloadPath);\n\t\tcurrentPath.setToolTipText(downloadPath);\n\t}", "private String openFileChooser(boolean p_opener, SimpleFileFilter[] p_fileFilters)\r\n {\r\n String retval = null;\r\n \r\n // Take care of the file filters.\r\n if (p_fileFilters.length == 0)\r\n {\r\n m_fc.setAcceptAllFileFilterUsed(true);\r\n }\r\n else\r\n {\r\n m_fc.resetChoosableFileFilters();\r\n m_fc.setAcceptAllFileFilterUsed(false);\r\n for (int i = 0; i < p_fileFilters.length; i++)\r\n {\r\n m_fc.addChoosableFileFilter(p_fileFilters[i]);\r\n }\r\n }\r\n \r\n // Open a dialog, either an opener of a saver.\r\n int fcState;\r\n if (p_opener)\r\n {\r\n m_fc.setDialogTitle(\"Open file\");\r\n fcState = m_fc.showOpenDialog(m_frame);\r\n }\r\n else\r\n {\r\n m_fc.setDialogTitle(\"Save file\");\r\n fcState = m_fc.showSaveDialog(m_frame);\r\n }\r\n \r\n if (fcState == JFileChooser.APPROVE_OPTION)\r\n {\r\n File file = m_fc.getSelectedFile();\r\n retval = file.getPath();\r\n }\r\n \r\n return retval;\r\n }", "public ClientPanel() {\n initComponents();\n chooser = new JFileChooser();\n \n }", "private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n fcImagem = new javax.swing.JFileChooser();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n edtCodigo = new javax.swing.JTextField();\n edtDescr = new javax.swing.JTextField();\n edtPreco = new javax.swing.JTextField();\n btnSelImg = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n edtImagem = new javax.swing.JTextField();\n btnAnterior = new javax.swing.JButton();\n btnProximo = new javax.swing.JButton();\n btnSalvar = new javax.swing.JButton();\n btnAdicionar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Cadastro de Produto\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Informações\"));\n\n jLabel1.setText(\"Código\");\n\n jLabel2.setText(\"Descrição\");\n\n edtCodigo.setText(\"edtCodigo\");\n\n edtDescr.setText(\"edtDescr\");\n\n edtPreco.setText(\"edtPreco\");\n\n btnSelImg.setText(\"Selecionar...\");\n btnSelImg.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSelImgActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Preço\");\n\n jLabel4.setText(\"Imagem\");\n\n edtImagem.setText(\"edtImagem\");\n\n btnAnterior.setText(\"<<\");\n btnAnterior.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAnteriorActionPerformed(evt);\n }\n });\n\n btnProximo.setText(\">>\");\n btnProximo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnProximoActionPerformed(evt);\n }\n });\n\n btnSalvar.setText(\"Salvar\");\n btnSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalvarActionPerformed(evt);\n }\n });\n\n btnAdicionar.setText(\"+\");\n btnAdicionar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAdicionarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(edtImagem)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(edtCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(edtDescr, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(edtPreco, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnSelImg, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(btnAnterior)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnProximo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnAdicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnSalvar, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(edtCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(edtDescr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(edtPreco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSelImg, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(edtImagem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnAnterior)\n .addComponent(btnProximo)\n .addComponent(btnSalvar)\n .addComponent(btnAdicionar))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 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\n pack();\n setLocationRelativeTo(null);\n }", "public FileChooserView(Frame owner) {\n super(owner, true);\n initComponents();\n fileChooser.addActionListener(this);\n }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJFileChooser fc = new JFileChooser();\r\n\t\t\t\t\tfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\t\t\t\t\tint result = fc.showOpenDialog(new JFrame());\r\n\t\t\t\t\tif(result == JFileChooser.APPROVE_OPTION){\r\n\t\t\t\t\t\tString path = fc.getSelectedFile().getAbsolutePath();\r\n\t\t\t\t\t\ttfPath.setText(path);\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n\n JFileChooser chooser = new JFileChooser(); ////apabila merah -> ALT+ENTER -> j file chooser -> TOP\n chooser.showOpenDialog(null);\n File f = chooser.getSelectedFile();\n String filename = f.getAbsolutePath();\n vpath.setText(filename);\n }", "public void openFileChooser(ValueCallback uploadMsg, String acceptType){\n mUM = uploadMsg;\n Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n i.addCategory(Intent.CATEGORY_OPENABLE);\n i.setType(\"*/*\");\n MainActivity.this.startActivityForResult(\n Intent.createChooser(i, \"File Browser\"),\n FCR);\n }", "public void openFileChooser(ValueCallback uploadMsg, String acceptType){\n mUM = uploadMsg;\n Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n i.addCategory(Intent.CATEGORY_OPENABLE);\n i.setType(\"*/*\");\n MainActivity.this.startActivityForResult(\n Intent.createChooser(i, \"File Browser\"),\n FCR);\n }", "private void abrirFichero() {\r\n\t\tJFileChooser abrir = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tabrir.setFileFilter(filtro);\r\n\t\tif(abrir.showOpenDialog(abrir) == JFileChooser.APPROVE_OPTION){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.liga = (Liga) Gestion.abrir(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setAbierto(true);\r\n\t\t\t\tGestion.setFichero(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se ha podido abrir el fichero\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void openFileDialog() {\n\tswitch(buttonAction) {\n\t case SELECT_FILES:\n openFileDialog(fileUpload, true);\n break;\n\t case SELECT_FILE:\n default:\n openFileDialog(fileUpload, false);\n break;\n\t}\n }", "public TiffTestFrame() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n JDialog.setDefaultLookAndFeelDecorated(true);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n initComponents();\n fc = new JFileChooser();\n //fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n //fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n }", "@FXML\n void fileOpenPressed(ActionEvent event) {\n \tFileChooser fileChooser = new FileChooser();\n\t\tfileChooser.setTitle(\"Open File\");\n\t\tFile f = fileChooser.showOpenDialog(stage);\n\t\tif (f != null) {\n\t\t\tsetFile(f);\n\t\t\tviewState.set(ViewState.OPEN);\n\t\t}\n }", "public void seleccionarFichero(){\n JFileChooser fileChooser = new JFileChooser();\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"xml\", \"xml\");\n fileChooser.setFileFilter(filter);\n fileChooser.setCurrentDirectory(new java.io.File(\"./ficheros\"));\n int seleccion = fileChooser.showOpenDialog(vista_principal);\n if (seleccion == JFileChooser.APPROVE_OPTION){\n fichero = fileChooser.getSelectedFile();\n vista_principal.getTxtfield_nombre_fichero().\n setText(fichero.getName().substring(0, fichero.getName().length()-4));\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t \tJFileChooser fileChooser = new JFileChooser(lastChoosenDir);\n\t int returnValue = fileChooser.showOpenDialog(null);\n\t if (returnValue == JFileChooser.APPROVE_OPTION) {\n\t selectedFile = fileChooser.getSelectedFile();\n\t lastChoosenDir = selectedFile.getParentFile();\n\t System.out.println(selectedFile.getName());\n\t // lblSlika=new JLabel(\"aa\");\n\t displayChosen();\n\t \n\t // content.add(lblSlika);\n\t \n\t }\n\t }", "private void actionAddFile ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tJFileChooser fileChooserDriver = new JFileChooser();\r\n\r\n\t\t\tint isFileSelected = fileChooserDriver.showOpenDialog(fileChooserDriver);\r\n\r\n\t\t\tif (isFileSelected == JFileChooser.APPROVE_OPTION)\r\n\t\t\t{\r\n\t\t\t\tString filePath = fileChooserDriver.getSelectedFile().getPath();\r\n\t\t\t\tDataController.scenarioAddFile(filePath);\r\n\r\n\t\t\t\thelperDisplayProjectFiles();\r\n\t\t\t\thelperDisplayInputImage();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\r\n\t}", "private void openFileChooser() {\n Intent imageIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n imageIntent.setType(\"image/*\");\n startActivityForResult(imageIntent, GALLERY_REQUEST);\n }", "private void viewFileChooser() {\n try {\n JFileChooser chooser = new JFileChooser();\n chooser.showOpenDialog(null);\n f = chooser.getSelectedFile();\n// this.attachmentName = f.getName();\n// this.attachmentPath = f.getAbsolutePath();//dan mokdda karanna ona// meke file ek \n// txtAttachment.setText(attachmentPath);\n System.out.println(f.getName());\n System.out.println(f.getAbsolutePath());\n \n// Icon icon = new ImageIcon(getClass().getResource(\"/image/file.png\"));\n lblPath.setText(f.getName());\n// lblPath.setIcon(icon);\n lblPath.setVisible(true);\n \n \n } catch (NullPointerException e) {\n \n } \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField1 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jFileChooser1 = new javax.swing.JFileChooser();\n jButton3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jButton1.setText(\"Upload\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Cancel\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jFileChooser1.setPreferredSize(new java.awt.Dimension(1, 1));\n\n jButton3.setText(\"Browse\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(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)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3))\n .addComponent(jFileChooser1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(20, 20, 20)\n .addComponent(jButton2)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jFileChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap())\n );\n\n pack();\n }", "private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser fc = new JFileChooser();\n int result = fc.showDialog(this, \"Attach\");\n if (result == JFileChooser.APPROVE_OPTION) \n {\n selectedFile = fc.getSelectedFile();\n \tjTextField1.setText(selectedFile.getAbsolutePath());\n \n }\n \n }", "public void saveNewFile() {\r\n JFileChooser fileChooser = new JFileChooser();\r\n\r\n int status = fileChooser.showSaveDialog(null);\r\n\r\n if (status == JFileChooser.APPROVE_OPTION) {\r\n\r\n fileName = fileChooser.getSelectedFile().toString();\r\n\r\n saveFile();\r\n }\r\n }", "private void btnAgregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarActionPerformed\n \n camino=null;\n \n int status = fileChooser.showOpenDialog (null);\n if (status == JFileChooser.APPROVE_OPTION){\n File selectedFile = fileChooser.getSelectedFile();\n camino = selectedFile.getAbsolutePath();\n }\n else{ \n if (status == JFileChooser.CANCEL_OPTION){\n System.out.println(\"CANCELAR\");\n }\n \n }\n try {\n cancion.agregarCancion(camino);\n } catch (IOException ex) {\n Logger.getLogger(biblioteca.class.getName()).log(Level.SEVERE, null, ex);\n } catch (UnsupportedTagException ex) {\n Logger.getLogger(biblioteca.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InvalidDataException ex) {\n Logger.getLogger(biblioteca.class.getName()).log(Level.SEVERE, null, ex);\n }\n String[] test = cancion.mostrarCancion(i);\n lista.addElement(\" \"+test[0]);\n libCancion.setModel(lista);\n i++;\n }", "void selectFile(){\n JLabel lblFileName = new JLabel();\n fc.setCurrentDirectory(new java.io.File(\"saved\" + File.separator));\n fc.setDialogTitle(\"FILE CHOOSER\");\n FileNameExtensionFilter xmlfilter = new FileNameExtensionFilter(\n \"json files (*.json)\", \"json\");\n fc.setFileFilter(xmlfilter);\n int response = fc.showOpenDialog(this);\n if (response == JFileChooser.APPROVE_OPTION) {\n lblFileName.setText(fc.getSelectedFile().toString());\n }else {\n lblFileName.setText(\"the file operation was cancelled\");\n }\n System.out.println(fc.getSelectedFile().getAbsolutePath());\n }", "private void chooseFileWindow()\n\t{\n\t\tInitFrame init = new InitFrame();\n\t\tinit.setFilePath(FILE_NAME);\n\t\tJFrame frame = new JFrame(\"Bowling Game\");\t\t\t\n\t\tSplashScreen splash = new SplashScreen();\n splash.setFilePath(FILE_NAME);\n // Normally, we'd call splash.showSplash() and get on \n // with the program. But, since this is only a test... \n\t\t\n\t\tsplash.showSplash();\t\t\n\t\tframe.setSize(400,400);\t\t\n\t\tinit.LoadComponents(frame);\n\t\t\n\n\t\t// first show the first fileChooser window\n\t\t\n\t\tString p1 = \"\", p = init.FileChooser(frame);\n\t\tsimpleProgressBar progres = new simpleProgressBar(100,100);\n\t\t\t\n\t\t//System.out.println(\"p(VIEWCONTORLLER):\" + p + \" \" + p.length());\n\t\t\n\t\tint i = p.length() - 1, j = 0;\n\t\t//System.out.println(i + \" \" + p.charAt(i));\n\t\twhile(i > 0)\n\t\t{\n\t\t\tif( (p.charAt(i) == '/') || (p.charAt(i) == '\\''))\n\t\t\t{\n\t\t\t\tj = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti--;\n\t\t}\n\t\tp1 = p.substring(j, p.length());\n\t\t//FILE_NAME = p1;\n\t\tInitView.setTxtFilePath(p);\n\t\t//BowlFrame bFrame = new BowlFrame();\n\t\t//bFrame.setVisible(true);\n\t\twhile ( null==InitView.getTxtFilePath() )\n\t\t{ \n\t\t\t\n\t\t}\n\t\tSystem.out.println(\" FILENAME: \" + FILE_NAME);\n\t\tBowl = new BowlFrame(FILE_NAME);\t\t\n\t\tBowl.setVisible(true);\n\t\n\t\tframe.dispose();\n\t}", "public void newFile()\n {\n this.componentEditor.setText(\"\");\n this.currentFile = null;\n this.preferences.removePreference(CompilerEditorPanel.PREFERENCE_LAST_FILE);\n this.title.setText(\"--Untitled--\");\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\tif(e.getSource()==browse){\n\t\t\tif (chooser == null){\n\t\t\t\tchooser = new JFileChooser();\n\t\t\t\tchooser.setCurrentDirectory(new java.io.File(projectPath));\n\t\t\t\tchooser.setDialogTitle(\"Find Folder\");\n\t\t\t\tchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t\t\tchooser.setAcceptAllFileFilterUsed(false);\n\n\t\t\t\tif (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\tsaveTo.setText(chooser.getSelectedFile().toString());\t\t\n\t\t\t\t}\n\t\t\t\tchooser = null;\n\t\t\t}\t\n\t\t}else if(e.getSource()== save){\n\t\t\tsaveFile();\n\t\t}else if(e.getSource()==cancel){\n\t\t\tnameOfFile.setText(\"\");\n\t\t\tsaveTo.setText(\"\");\n\t\t\tthisFrame.dispose();\n\t\t}\n\t\t\n\t}", "private void saveDialog() {\n JFileChooser chooser = new JFileChooser();\n \n FileFilter ff = new FileFilter() {\n\n @Override\n public boolean accept(File f) {\n // TODO Auto-generated method stub\n return f.getName().endsWith(FILE_EXTENSION);\n }\n\n @Override\n public String getDescription() {\n return \"CSV\";\n }\n\n };\n chooser.addChoosableFileFilter(ff);\n chooser.setAcceptAllFileFilterUsed(true);\n chooser.setFileFilter(ff);\n chooser.showSaveDialog(null);\n this.file = chooser.getSelectedFile();\n //this.file = new File(chooser.getSelectedFile().getName() + INSTANCE.FILE_EXTENSION);\n\n\n try {\n\n if (file != null) {\n this.saveData();\n this.isModifed = false;\n }\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage(), \"Error Saving File\", JOptionPane.ERROR_MESSAGE);\n\n }\n\n }", "public void mouseClicked(MouseEvent e) {\n int returnVal = fileChooser.showOpenDialog(FileChooserField.this);\n \t\t \n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = fileChooser.getSelectedFile();\n destinationTextField.setText(file.getPath());\n }\n \n destinationTextField.setCaretPosition(destinationTextField.getDocument().getLength());\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "@objid (\"953cfb64-2c67-4567-9275-71646d8e0187\")\r\n public FileChooserComposite(final Composite parent, final int style, final int typeSelection) {\r\n super(parent, style);\r\n setLayout(new FormLayout());\r\n this.dialog = new FileDialog((Shell) parent, typeSelection);\r\n \r\n final GridLayout gridLayout = new GridLayout();\r\n gridLayout.numColumns = 2;\r\n this.setLayout(gridLayout);\r\n this.text = new Text(this, SWT.BORDER);\r\n this.text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));\r\n this.text.setEnabled(true);\r\n this.searchButton = new Button(this, SWT.NONE);\r\n File file = new File(ResourcesManager.getInstance().getImage(\"directory.png\")); \r\n Image directory = new Image(Display.getDefault(), file.getAbsolutePath());\r\n this.searchButton.setImage(directory);\r\n }", "void showFileManagerDialog();", "public void seleccionarArchivo(){\n JFileChooser j= new JFileChooser();\r\n FileNameExtensionFilter fi= new FileNameExtensionFilter(\"pdf\",\"pdf\");\r\n j.setFileFilter(fi);\r\n int se = j.showOpenDialog(this);\r\n if(se==0){\r\n this.txtCurriculum.setText(\"\"+j.getSelectedFile().getName());\r\n ruta_archivo=j.getSelectedFile().getAbsolutePath();\r\n }else{}\r\n }", "protected void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture)\n {\n mUploadMessage = uploadMsg;\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"*/*\");\n startActivityForResult(Intent.createChooser(intent, \"File Browser\"), FILECHOOSER_RESULTCODE);\n }", "public void openFileChooser(ValueCallback uploadMsg) {\n\n\t\t Log.i(\"For Android < 3.0\", \"called\");\n\n\t\t mUploadMessage = uploadMsg;\n\t\t Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n\n\n\t\t i.addCategory(Intent.CATEGORY_OPENABLE);\n\n\t\t i.setType(\"*/*\");\n\t\t FileUploadActivity.this.startActivityForResult(\n\t\t Intent.createChooser(i, \"File Browser\"),\n\t\t FILECHOOSER_RESULTCODE);\n\t\t }", "public FileCreator() {\r\n initComponents();\r\n }", "public JFileChooser getaFileChooser() {\r\n\t\treturn aFileChooser;\r\n\t}", "private void guardarComo() {\r\n\t\tJFileChooser guardar = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tguardar.setFileFilter(filtro);\r\n\t\tif(guardar.showSaveDialog(guardar) == JFileChooser.APPROVE_OPTION){\r\n\t\t\tGestion.setFichero(Gestion.extensionValida(guardar.getSelectedFile()));\r\n\t\t\ttry {\r\n\t\t\t\tif(!Gestion.existe(Gestion.getFichero())){\r\n\t\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tswitch(JOptionPane.showConfirmDialog(null, \"El archivo existe. Desea sobreescribirlo?\", \"Aviso\", JOptionPane.WARNING_MESSAGE)){\r\n\t\t\t\t\tcase JOptionPane.OK_OPTION:\r\n\t\t\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\t\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void showSaveFileChooser() {\n int returnVal = fc.showSaveDialog(travelGUI);\n if (returnVal == 0) {\n file = fc.getSelectedFile();\n saveToFile();\n System.out.println(\"Saving: \" + file.getName());\n }\n else {\n System.out.println(\"Save command cancelled by user.\");\n }\n }", "private void openContext() {\n\t\tJFileChooser fileChooser = new JFileChooser(LMPreferences\n\t\t\t\t.getLastDirectory());\n\n\t\t// Propriétés du fileChooser\n\t\tfileChooser.setApproveButtonText(GUIMessages\n\t\t\t\t.getString(\"GUI.openButton\")); //$NON-NLS-1$\n\t\tfileChooser.setDialogTitle(GUIMessages.getString(\"GUI.openAContext\")); //$NON-NLS-1$\n\t\tfileChooser.setAcceptAllFileFilterUsed(true);\n\t\tfileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\n\t\t// Gere les extensions compatibles (cex, lmv, lmn, lmb)\n\t\tExampleFileFilter filterCex = new ExampleFileFilter(\n\t\t\t\t\"cex\", GUIMessages.getString(\"GUI.conceptExplorerBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterCex);\n\t\tExampleFileFilter filterGaliciaBinSLF = new ExampleFileFilter(\n\t\t\t\t\"slf\", GUIMessages.getString(\"GUI.galiciaSLFBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterGaliciaBinSLF);\n\t\tExampleFileFilter filterGaliciaBin = new ExampleFileFilter(\n\t\t\t\t\"bin.xml\", GUIMessages.getString(\"GUI.galiciaXMLBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterGaliciaBin);\n\t\tExampleFileFilter filterValued = new ExampleFileFilter(\n\t\t\t\t\"lmv\", GUIMessages.getString(\"GUI.LatticeMinerValuedFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterValued);\n\t\tExampleFileFilter filterNested = new ExampleFileFilter(\n\t\t\t\t\"lmn\", GUIMessages.getString(\"GUI.LatticeMinerNestedFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterNested);\n\t\tExampleFileFilter filterBinary = new ExampleFileFilter(\n\t\t\t\t\"lmb\", GUIMessages.getString(\"GUI.LatticeMinerBinaryFormat\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tfileChooser.addChoosableFileFilter(filterBinary);\n\t\tExampleFileFilter filterLM = new ExampleFileFilter(new String[] {\n\t\t\t\t\"lmb\", \"lmn\", \"lmv\" }, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\t\tGUIMessages.getString(\"GUI.LatticeMinerFormats\")); //$NON-NLS-1$\n\t\tfileChooser.addChoosableFileFilter(filterLM);\n\n\t\t// La boite de dialogue\n\t\tint returnVal = fileChooser.showOpenDialog(this);\n\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile contextFile = fileChooser.getSelectedFile();\n\t\t\topenContextFile(contextFile);\n\n\t\t\t// Sauvegarde le path utilisé\n\t\t\tLMPreferences.setLastDirectory(fileChooser.getCurrentDirectory()\n\t\t\t\t\t.getAbsolutePath());\n\t\t}\n\t}", "public void onOpenFile() {\n\t\t\n\t\t//if things are dirty, ask if they're sure they want to do this\n\t\tif(FormDesignerController.getIsDirty())\n\t\t{\n\t\t\t//if the use says no, then bounce\n\t\t\tif(!Window.confirm(LocaleText.get(\"newFormConfirm\")))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tOpenFromFileDialog dlg = OpenFromFileDialog.getInstnace(controller);\n\t\tdlg.center();\n\t\t\n\t}", "private void fixFileOption() {\n\t\t\n\t\tnewFileOption.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew CreateFileFrame(main, true , controller);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\topenFileOption.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser fileSelector = new JFileChooser();\n\t\t\t\tFileNameExtensionFilter fileFilter = new FileNameExtensionFilter(\"ASM , IN, OUT\", \"asm\", \"in\",\"out\");\n\t\t\t\tfileSelector.setFileFilter(fileFilter);\n\t\t\t\t\n\t\t\t\tint option = fileSelector.showOpenDialog(openFileOption);\n\t\t\t\t\n\t\t\t\tif(option == JFileChooser.APPROVE_OPTION){\n\t\t\t\t\tString path = fileSelector.getSelectedFile().getPath();\n\t\t\t\t\tString extension = path.substring(path.lastIndexOf('.') + 1);\n\t\t\t\t\t\n\t\t\t\t\tif (extension.equalsIgnoreCase(\"in\")) {\n\t\t\t\t\t\tcontroller.changeIn(path);\n\t\t\t\t\t}\n\t\t\t\t\telse if (extension.equalsIgnoreCase(\"out\")) {\n\t\t\t\t\t\tcontroller.changeOut(path);\n\t\t\t\t\t}\n\t\t\t\t\telse if (extension.equalsIgnoreCase(\"asm\")) {\n\t\t\t\t\t\tcontroller.changeProgram(path);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\texitOption.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t\t\toptionExit();\n\t\t\t}\n\t\t});\n\t}", "public void fileChooser() {\n\t\tWindow stage = mediaView.getScene().getWindow();\n// configureFileChooser(fileChooser);\n\t\tfileChooser.setTitle(\"Open Resource File\");\n\t\tfileChooser.getExtensionFilters().addAll(new ExtensionFilter(\"Video Files\", \"*.mp4\", \"*.mpeg\"),\n\t\t\t\tnew ExtensionFilter(\"Audio Files\", \"*.mp3\"),\n\t\t\t\tnew ExtensionFilter(\"All Files\", \"*.*\"));\n\t\tFile selectedFile = fileChooser.showOpenDialog(stage);\n\t\tif (selectedFile != null) {\n\t\t\ttry {\n\t\t\t\tif(arrayList.size() != 0) {\n\t\t\t\t\tmp.stop();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdesktop.open(selectedFile);\n\t\t\t\tdirectory = selectedFile.getAbsolutePath();\n\t\t\t\t\n\t\t\t\tplayMedia(directory);\n\t\t\t\t\n\t\t\t\tarrayList.add(new File(directory));\n//\t\t\t\tSystem.out.println(arrayList.get(i).getName());\n\t\t\t\ti++;\n\t\t\t\t\n\n\t\t\t} catch (IOException ex) {\n\t\t\t\tLogger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t}\n\t}", "@FXML\r\n\tprivate void choisirFichier()\r\n\t{\r\n\t\tFileChooser fileChooser = new FileChooser();\r\n\r\n\t\tfileChooser\r\n\t\t\t\t.setInitialDirectory(new File(System.getProperty(\"user.dir\")));\r\n\t\tFile fichier = fileChooser.showOpenDialog(new Stage());\r\n\r\n\t\tif (fichier != null)\r\n\t\t{\r\n\t\t\ttextFieldFichier.setText(fichier.getPath());\r\n\t\t}\r\n\t}", "public void openFileChooser(ValueCallback uploadMsg, String acceptType){\n mUM = uploadMsg;\n Intent i = new Intent(Intent.ACTION_GET_CONTENT);\n i.addCategory(Intent.CATEGORY_OPENABLE);\n i.setType(\"image/*\");\n cordova.startActivityForResult(AquroWebView.this,\n Intent.createChooser(i, \"File Browser\"),\n FCR);\n }", "private void jButtonBrowseOutputFileActionPerformed(ActionEvent e) {\n\t\tJFileChooser fileChooser = new JFileChooser();\n\t\tint result = fileChooser.showSaveDialog(this);\n\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = fileChooser.getSelectedFile();\n\t\t\tjTextFieldOutputFile.setText(file.getAbsolutePath());\n\t\t}\n\t}", "public JFrame createGUI() {\n\n TreeSelectionListener treeSelectionListener = tse -> {\n DefaultMutableTreeNode node =\n (DefaultMutableTreeNode)tse.getPath().getLastPathComponent();\n showDirectory(node);\n updateView((File)node.getUserObject());\n };\n\n view.getTree().addTreeSelectionListener(treeSelectionListener);\n view.getTree().setCellRenderer(new FileTreeCellRenderer());\n\n listSelectionListener = (event) -> {\n try {\n updateView(getSelectedFile());\n } catch (Exception e) {\n handleException(ERROR_SELECT_FILE, e);\n }\n };\n\n view.getTable().getSelectionModel()\n .addListSelectionListener(listSelectionListener);\n\n initFileOperationsAction();\n\n return view.getFrame();\n }", "private JMenu createFileMenu() {\n\t\tJMenu menu = new JMenu(\"File\"); \n\t\tmenu.add(createDetectiveNotes());\n\t\tmenu.add(createFileExitItem());\n\t\treturn menu;\n\t}", "public void openFileChooser(ValueCallback<Uri> uploadMsg) {\n openFileChooser(uploadMsg, \"\");\n Log.i(\"< 3.0 \",\"< 3.0 \");\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n JFileChooser j = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n\n // invoke the showsSaveDialog function to show the save dialog\n int r = j.showSaveDialog(null);\n\n if (r == JFileChooser.APPROVE_OPTION) {\n // set the label to the path of the selected directory\n dataFile.setText(j.getSelectedFile().getAbsolutePath());\n }\n // if the user cancelled the operation\n else\n dataFile.setText(\"the user cancelled the operation\");\n }", "private void showChooser() {\n Intent target = FileUtils.createGetContentIntent();\n // Create the chooser Intent\n Intent intent = Intent.createChooser(\n target, getString(R.string.chooser_title));\n try {\n startActivityForResult(intent, REQUEST_CODE);\n } catch (ActivityNotFoundException e) {\n // The reason for the existence of aFileChooser\n }\n }", "private void openFile() {\n\t\tJDialog fileDialog = new JDialog(this, \"Select File\", true);\n\t\tFileDialog filePanel = new FileDialog(this, this, false, false, false);\n\t\tfileDialog.getContentPane().add(filePanel);\n\t\tfileDialog.pack();\n\n\t\t// set the location.\n\t\tPoint p1 = this.getLocation();\n\t\tDimension d1 = this.getSize();\n\t\tDimension d2 = fileDialog.getSize();\n\t\tfileDialog.setLocation((p1.x + (d1.width / 2)) - (d2.width / 2),\n\t\t\t\t(p1.y + (d1.height / 2)) - (d2.height / 2));\n\n\t\tfilePanel.setCurrentDirectory(Config.getInstance().getBaseHarvestDir());\n\t\tfileDialog.show();\n\t}", "@FXML\r\n protected void dialogOpen() throws IOException {\r\n final FileChooser fileChooser = new FileChooser();\r\n File file = fileChooser.showOpenDialog(FracGenApplication.getInstance().stageOpenData);\r\n if (file != null) {\r\n if (file.exists()) {\r\n if (file.getAbsolutePath() != null) {\r\n tfFilename.setText(file.getAbsolutePath());\r\n }\r\n }\r\n }\r\n }", "protected void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture) {\n mUploadMessage = uploadMsg;\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, \"File Browser\"), FILECHOOSER_RESULTCODE);\n }", "private void createResultFilePart() {\n\t\t//------------------------------------------------\n\t\t// Result File Label\n\t\t//------------------------------------------------\n\t\tLabel resultFileLabel = new Label(generalSettingsGroup, SWT.NONE);\n\t\tresultFileLabel.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1));\n\t\tresultFileLabel.setText(\"Result File:\");\n\t\t\n\t\tresultFileDeco = new ControlDecoration(resultFileLabel, SWT.LEFT | SWT.TOP);\n\t\tresultFileDeco.setImage(SWTResourceManager.getImage(GeneralSettingsGroup.class, \"/org/eclipse/jface/fieldassist/images/info_ovr.gif\"));\n\t\tresultFileDeco.setDescriptionText(\"Choose a file to store the compare results.\");\n\t\t\n\t\t//------------------------------------------------\n\t\t// \"Choose...\" Button\n\t\t//------------------------------------------------\n\t\tButton fileChooserButton = new Button(generalSettingsGroup, SWT.NONE);\n\t\tfileChooserButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));\n\t\tfileChooserButton.setText(\"Choose...\");\n\t\t\n\t\tfileChooserButton.addSelectionListener(\n\t\t\t\tnew SelectionAdapter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\tFileDialog fileDialog = new FileDialog(getShell());\n\t\t\t\t\t\tString filePath = fileDialog.open();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(filePath != null){\n\t\t\t\t\t\t\tsetSelectedFile(filePath);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\t//------------------------------------------------\n\t\t// FilePath Field\n\t\t//------------------------------------------------\n\t\tresultFilepathField = new Text(generalSettingsGroup, SWT.BORDER);\n\t\tresultFilepathField.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));\n\t\t\n\t\tNotNullStringValidator filepathValidator = new NotNullStringValidator(resultFileLabel, SWT.BOTTOM | SWT.LEFT) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String getStringToValidate() {\n\t\t\t\treturn resultFilepathField.getText();\n\t\t\t}\n\t\t};\n\t\t\n\t\tresultFilepathField.addModifyListener(filepathValidator);\n\t\t\n\t\tfilepathValidator.setTag(\"ALWAYS\");\n\t\tCSVComparatorGUI.getValidatorEngine().addValidator(filepathValidator);\n\t\t\n\t\t//------------------------------------------------\n\t\t// Create file writeable Validator\n\t\t//------------------------------------------------\n\n\t\tFileCanWriteValidator filepathWritableValidator = new FileCanWriteValidator(null, SWT.BOTTOM | SWT.LEFT) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String getStringToValidate() {\n\t\t\t\treturn resultFilepathField.getText();\n\t\t\t}\n\t\t};\n\t\t\n\t\tfilepathWritableValidator.setTag(\"PRECHECK\");\n\t\tCSVComparatorGUI.getValidatorEngine().addValidator(filepathWritableValidator);\n\t}", "public void openInputFileDialog() {\n// try{Thread.currentThread().sleep(200);}catch(InterruptedException e){}\n float oldScale=chipCanvas.getScale();\n fileChooser=new JFileChooser();\n// new TypeAheadSelector(fileChooser);\n //com.sun.java.plaf.windows.WindowsFileChooserUI;\n// fileChooser.addKeyListener(new KeyAdapter() {\n// public void keyTyped(KeyEvent e){\n// System.out.println(\"keycode=\"+e.getKeyCode());\n// }\n// });\n// System.out.println(\"fileChooser.getUIClassID()=\"+fileChooser.getUIClassID());\n// KeyListener[] keyListeners=fileChooser.getKeyListeners();\n// ChipDataFilePreview preview=new ChipDataFilePreview(fileChooser,chip); // from book swing hacks\n// new FileDeleter(fileChooser,preview);\n// fileChooser.addPropertyChangeListener(preview);\n// fileChooser.setAccessory(preview);\n String lastFilePath=prefs.get(\"MotionViewer.lastFile\",\"\"); // get the last folder\n lastFile=new File(lastFilePath);\n// fileChooser.setFileFilter(datFileFilter);\n DATFileFilter datFileFilter = new DATFileFilter();\n fileChooser.addChoosableFileFilter(datFileFilter);\n fileChooser.setCurrentDirectory(lastFile); // sets the working directory of the chooser\n// boolean wasPaused=isPaused();\n setPaused(true);\n int retValue=fileChooser.showOpenDialog(MotionViewer.this);\n if(retValue==JFileChooser.APPROVE_OPTION){\n try{\n lastFile=fileChooser.getSelectedFile();\n if(lastFile!=null) recentFiles.addFile(lastFile);\n startPlayback(lastFile);\n }catch(FileNotFoundException fnf){\n fnf.printStackTrace();\n// exceptionOccurred(fnf,this);\n }\n }\n fileChooser=null;\n chipCanvas.setScale(oldScale); // restore persistent scale so that we don't get tiny size on next startup\n setPaused(false);\n }", "@Override\n\t public void actionPerformed(ActionEvent arg0) {\n\t\t JFileChooser j = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory()); \n\t\t\n\t\t // invoke the showsOpenDialog function to show the save dialog \n\t\t int r = j.showOpenDialog(null); \n\t\t\n\t\t // if the user selects a file \n\t\t if (r == JFileChooser.APPROVE_OPTION) \n\t\t\n\t\t { \n\t\t // set the label to the path of the selected file \n\t\t textfield.setText(j.getSelectedFile().getAbsolutePath()); \n\t\t\n\t\t } \n\t\t // if the user cancelled the operation \n\t\t \n\t\t //\n\t\t \n\t\t }", "@Override\n public void actionPerformed(ActionEvent e) {\n File selectedFile;\n JFileChooser fileChooser = new JFileChooser();\n int reply = fileChooser.showOpenDialog(null);\n if (reply == JFileChooser.APPROVE_OPTION) {\n selectedFile = fileChooser.getSelectedFile();\n geefBestandTextField1.setText(selectedFile.getAbsolutePath());\n }\n\n }", "public plateInterface() {\r\n initComponents();\r\n setTitle(\"停车场计费系统\");\r\n// label = new JLabel();\r\n// add(label);\r\n chooser = new JFileChooser();\r\n chooser = new JFileChooser();\r\n chooser.setCurrentDirectory(new File(\"E:\"));\r\n \r\n\r\n \r\n \r\n\r\n\r\n }", "private void openItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openItemActionPerformed\n if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n File file = fileChooser.getSelectedFile();\n String t = \"\";\n if (file.isFile()) {\n if ((file.getName().toLowerCase().endsWith(\".jpg\")\n || file.getName().toLowerCase().endsWith(\".png\"))) {\n files.add(file.getAbsolutePath());\n flist.add(file);\n } else if (file.getName().toLowerCase().endsWith(\".pdf\")) {\n parsePDF(file.getAbsolutePath());\n flist.add(file);\n }\n t += file.getAbsolutePath() + \"\\n\";\n } else {\n for (File f : file.listFiles()) {\n if (f.isFile() && (f.getName().toLowerCase().endsWith(\".jpg\")\n || f.getName().toLowerCase().endsWith(\".png\"))) {\n files.add(f.getAbsolutePath());\n flist.add(f);\n t += f.getAbsolutePath() + \"\\n\";\n } else if (f.isFile() && f.getName().toLowerCase().endsWith(\".pdf\")) {\n parsePDF(f.getAbsolutePath());\n flist.add(f);\n t += f.getAbsolutePath() + \"\\n\";\n }\n }\n }\n textArea.setText(t);\n } else {\n System.out.println(\"File access cancelled.\");\n }\n }", "private void displayFileChooser() {\n\n // Initiate file chooser, and set title\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Save Poster\");\n\n // Set extension filter\n FileChooser.ExtensionFilter filter = new FileChooser.ExtensionFilter(\"Image\", \"*.jpg\");\n fileChooser.getExtensionFilters().add(filter);\n\n // If preferences file is empty\n if (userDirectoryString.equals(\"empty\")) {\n\n userDirectoryString = System.getProperty(\"user.home\");\n }\n\n File userDirectory = new File(userDirectoryString);\n\n // If it can't access User Home, default to C drive\n if (!userDirectory.canRead()) {\n userDirectory = new File(\"C:\\\\\");\n }\n\n // Set the initial save directory\n fileChooser.setInitialDirectory(userDirectory);\n\n if (movie != null) {\n\n // Get movie's title and set an initial file name\n String movieTitle = movie.getMovieTitle();\n\n // Replace any invalid characters\n movieTitle = movieTitle.replaceAll(\"[\\\"/?\\\"*><|]\", \"\").replace(\":\", \"-\");\n\n // Set initial file name\n fileChooser.setInitialFileName(movieTitle);\n }\n\n // Show file chooser dialog\n File file = fileChooser.showSaveDialog(primaryStage);\n\n // Check file isn't null, so it the image view\n if (file != null && imgPoster.getImage() != null) {\n\n try {\n\n ImageIO.write(SwingFXUtils.fromFXImage(imgPoster.getImage(), null), \"jpg\", file);\n setLblStatus(\"Poster saved successfully.\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Update preferences with the new location, and local variable\n preferences.put(\"saveLocation\", file.getParentFile().toString());\n userDirectoryString = file.getParentFile().toString();\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t\t int returnVal = fc.showOpenDialog(GenerateWindow.this);\n\n\t\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File goodsoundfile = fc.getSelectedFile();\n\t\t goodSoundTF.setText(\"sounds/\"+goodsoundfile.getName());\n\t\t }}" ]
[ "0.7315087", "0.7188528", "0.6848715", "0.6766606", "0.67207694", "0.6649343", "0.6647531", "0.6526977", "0.65146494", "0.6485216", "0.6479861", "0.64703375", "0.6461194", "0.64171016", "0.64049166", "0.63952494", "0.638898", "0.6388154", "0.6384305", "0.6368939", "0.63255125", "0.63247013", "0.63096666", "0.63056606", "0.6302734", "0.63025457", "0.62934494", "0.626532", "0.6259841", "0.6259841", "0.6249123", "0.6248404", "0.6241016", "0.62334794", "0.6218751", "0.6215404", "0.6183762", "0.61640114", "0.61516863", "0.6150969", "0.61395615", "0.6130214", "0.61075366", "0.6096403", "0.6088886", "0.6083893", "0.60832816", "0.60832816", "0.6082796", "0.6079682", "0.6076118", "0.6070261", "0.6062705", "0.60614204", "0.6046479", "0.60457003", "0.60298723", "0.60297287", "0.5998509", "0.59969896", "0.5979027", "0.5978167", "0.5972142", "0.59656954", "0.59585726", "0.59517133", "0.59442896", "0.5944121", "0.59347636", "0.5931394", "0.59275687", "0.59134996", "0.5908193", "0.5903819", "0.5898755", "0.58912545", "0.5886707", "0.588037", "0.58755577", "0.586607", "0.5854025", "0.585136", "0.58485645", "0.58452666", "0.584471", "0.58396083", "0.5819643", "0.58142996", "0.5812639", "0.580465", "0.58043957", "0.5801424", "0.58004653", "0.5795983", "0.57898223", "0.5785504", "0.5784173", "0.5780685", "0.57805717", "0.5779911" ]
0.7572979
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { Left_Only_Group = new javax.swing.ButtonGroup(); Right_Only_Group = new javax.swing.ButtonGroup(); Full_Only_Group = new javax.swing.ButtonGroup(); ALL_Only_Group = new javax.swing.ButtonGroup(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jButton1 = new javax.swing.JButton(); jScrollPane2 = new javax.swing.JScrollPane(); jTextArea2 = new javax.swing.JTextArea(); left_Justify_button = new javax.swing.JRadioButton(); right_Justify_button = new javax.swing.JRadioButton(); full_Justify_button = new javax.swing.JRadioButton(); clear_Button = new javax.swing.JButton(); output_File_button = new javax.swing.JButton(); line_length_Text_Field = new javax.swing.JTextField(); process_File_button = new javax.swing.JButton(); single_Space_button = new javax.swing.JRadioButton(); double_Space_button = new javax.swing.JRadioButton(); ALL_Only_Group.add(right_Justify_button); ALL_Only_Group.add(full_Justify_button); ALL_Only_Group.add(left_Justify_button); Left_Only_Group.add(right_Justify_button); Left_Only_Group.add(full_Justify_button); Right_Only_Group.add(left_Justify_button); Right_Only_Group.add(full_Justify_button); Full_Only_Group.add(left_Justify_button); Full_Only_Group.add(right_Justify_button); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jTextArea1.setColumns(20); jTextArea1.setRows(5); jScrollPane1.setViewportView(jTextArea1); jButton1.setText("Open File..."); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jTextArea2.setColumns(20); jTextArea2.setRows(5); jScrollPane2.setViewportView(jTextArea2); left_Justify_button.setText("Left justify"); left_Justify_button.addActionListener(this); add(left_Justify_button); right_Justify_button.setText("Right justify"); right_Justify_button.addActionListener(this); add(right_Justify_button); full_Justify_button.setText("Full justify"); full_Justify_button.addActionListener(this); add(full_Justify_button); clear_Button.setText("Clear"); clear_Button.addActionListener(this); output_File_button.setText("Download Output File"); line_length_Text_Field.setText("Enter here"); line_length_Text_Field.addActionListener(this); process_File_button.setText("Process File"); process_File_button.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { process_File_buttonActionPerformed(evt); } }); single_Space_button.setText("Single Space"); single_Space_button.addActionListener(this); double_Space_button.setText("Double Space"); double_Space_button.addActionListener(this); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(6, 6, 6) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 564, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(left_Justify_button) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(right_Justify_button) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(full_Justify_button) .addContainerGap()))) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(6, 6, 6) .addComponent(single_Space_button) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(double_Space_button) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(output_File_button)) .addComponent(jScrollPane1) .addGroup(layout.createSequentialGroup() .addComponent(jButton1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(clear_Button, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(line_length_Text_Field, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(process_File_button, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(clear_Button) .addComponent(jButton1) .addComponent(line_length_Text_Field, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(process_File_button)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(output_File_button) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(single_Space_button) .addComponent(double_Space_button))) .addGap(12, 12, 12) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(left_Justify_button) .addComponent(right_Justify_button) .addComponent(full_Justify_button)) .addGap(28, 28, 28)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public JFFornecedores() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }", "public frmAddIncidencias() {\n initComponents();\n }" ]
[ "0.73192346", "0.7290526", "0.7290526", "0.7290526", "0.7285891", "0.72480357", "0.7213616", "0.7207808", "0.71955067", "0.71891475", "0.71844363", "0.7159038", "0.71474695", "0.7092269", "0.7079923", "0.70560205", "0.69864315", "0.697697", "0.69552195", "0.6953691", "0.69458604", "0.6942849", "0.6935743", "0.6930747", "0.69286084", "0.6924837", "0.69246644", "0.6911876", "0.69103247", "0.68922365", "0.6891582", "0.68904996", "0.68901706", "0.6888661", "0.68829393", "0.6881672", "0.6880505", "0.68782157", "0.6875765", "0.6874406", "0.68711114", "0.6859388", "0.6856025", "0.68551815", "0.6855079", "0.6855076", "0.68530315", "0.68524104", "0.68524104", "0.6843717", "0.68364704", "0.6836458", "0.6828335", "0.68279964", "0.6826276", "0.68240345", "0.6823631", "0.68171996", "0.6816324", "0.68097955", "0.68088883", "0.68078303", "0.6807776", "0.680721", "0.680251", "0.6795605", "0.6794452", "0.67921954", "0.67907083", "0.678904", "0.6787817", "0.6787755", "0.67814714", "0.67663145", "0.6765024", "0.67649895", "0.6756559", "0.6754775", "0.6751848", "0.67506975", "0.67435455", "0.6738591", "0.6737042", "0.6735227", "0.6732907", "0.6726301", "0.6726003", "0.67197675", "0.67156976", "0.6714806", "0.6713657", "0.6708582", "0.67078584", "0.6705488", "0.6700733", "0.6699659", "0.6698679", "0.66974026", "0.6693979", "0.66902804", "0.6690275" ]
0.0
-1
End of variables declaration//GENEND:variables
@Override public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub String word = e.getActionCommand(); //int number = e.getActionCommand(); if(word.equals("Clear")) { justifier = "left"; full_Justify_button.setSelected(false); right_Justify_button.setSelected(false); left_Justify_button.setSelected(false); //ALL_Only_Group.clearSelection(); } else if(word.equals("Left justify")) { justifier = "left"; full_Justify_button.setSelected(false); right_Justify_button.setSelected(false); //Left_Only_Group.clearSelection(); } else if(word.equals("Right justify")) { justifier = "right"; left_Justify_button.setSelected(false); full_Justify_button.setSelected(false); //Right_Only_Group.clearSelection(); } else if(word.equals("Full justify")) { justifier = "full"; right_Justify_button.setSelected(false); left_Justify_button.setSelected(false); //Full_Only_Group.clearSelection(); } if(word.equals("Enter here")) { lineLength = 89; } else{ lineLength = Integer.parseInt(word); } if(word.equals("Single Space")) { spacing = 1; } else if(word.equals("Double Space")) { spacing = 2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\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 }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
Old Data DateFormat dateFormat=new SimpleDateFormat("yyyyMMdd'T'HH:mm:ss"+"+05:30", Locale.UK); New Format
public static String getISO8601StringForDate(Date date){ DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.ENGLISH); dateFormat.setTimeZone(TimeZone.getTimeZone("IST")); return dateFormat.format(date); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String dateFormat(String date) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.ENGLISH);\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date serverDate = null;\n String formattedDate = null;\n try {\n serverDate = df.parse(date);\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"MMM dd yyyy, hh:mm\");\n\n outputFormat.setTimeZone(TimeZone.getDefault());\n\n formattedDate = outputFormat.format(serverDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return formattedDate;\n }", "public static String convertDate(String inputdate, String fromtimezone, String totimezone)\n\n {\n String sDateinto = \"\";\n try {\n SimpleDateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n\n String dateInString = inputdate.substring(0, 22) ;\n\n formatter.setTimeZone(TimeZone.getTimeZone(fromtimezone));\n Date date = formatter.parse(dateInString);\n Log.i(\"FromDate String : \", formatter.format(date));\n\n\n SimpleDateFormat totime = new SimpleDateFormat(DATE_FORMAT);\n //TimeZone tzlocaltime = TimeZone.getDefault();\n totime.setTimeZone(TimeZone.getTimeZone(totimezone));\n\n sDateinto = totime.format(date); // Convert to String first\n Date dateInTo = formatter.parse(sDateinto); // Create a new Date object\n\n // Log.i(\"ToDate String: \", sDateinto);\n Log.i(\"ToDate Object: \", formatter.format(dateInTo));\n return sDateinto ;\n }\n catch (ParseException e)\n {\n Log.i(\"Date Conversion\" ,\"Error in parsing\" );\n return \"Date parsing error\" ;\n }\n\n }", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "public String getMyDatePosted() {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.US);\n try {\n Date date = format.parse(myDatePosted);\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n cal.add(Calendar.HOUR, -7);\n Date temp = cal.getTime();\n format.applyPattern(\"MMM dd, yyyy hh:mm a\");\n return format.format(temp);\n } catch (ParseException e) {\n return myDatePosted;\n }\n }", "private String getFormattedDate(Integer format) {\n Date date = new Date(format * 1000L);\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"Etc/UTC\"));\n Log.e(\"time\",dateFormat.format(date));\n return dateFormat.format(date);\n }", "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n try {\n tanggal = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(tanggal);\n\n }", "public String changeDateTimeFormat(String dateStr) {\n String inputPattern = \"MMM-dd-yyyy hh:mm a\";\n String outputPattern = \"MMMM dd, yyyy hh:mm a\";\n SimpleDateFormat inputFormat = new SimpleDateFormat(inputPattern);\n SimpleDateFormat outputFormat = new SimpleDateFormat(outputPattern);\n\n Date date = null;\n String str = null;\n\n try {\n date = inputFormat.parse(dateStr);\n str = outputFormat.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return str;\n\n }", "private static List<String> listDateFormats(){\r\n List<String> result = new ArrayList<String>();\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n result.add(\"yyyy-MM-ddZZ\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\r\n result.add(\"EEE MMM d hh:mm:ss z yyyy\");\r\n result.add(\"EEE MMM dd HH:mm:ss yyyy\");\r\n result.add(\"EEEE, dd-MMM-yy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yy HH:mm:ss z\");\r\n result.add(\"EEE, dd MMM yy HH:mm z\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss z\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss Z\");\r\n result.add(\"dd MMM yy HH:mm:ss z\");\r\n result.add(\"dd MMM yy HH:mm z\");\r\n result.add(\"'T'HH:mm:ss\");\r\n result.add(\"'T'HH:mm:ssZZ\");\r\n result.add(\"HH:mm:ss\");\r\n result.add(\"HH:mm:ssZZ\");\r\n result.add(\"yyyy-MM-dd\");\r\n result.add(\"yyyy-MM-dd hh:mm:ss\");\r\n result.add(\"yyyy-MM-dd HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy\");\r\n result.add(\"dd.MM.yyyy hh:mm:ss\");\r\n result.add(\"dd.MM.yyyy HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssz\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy hh:mm\");\r\n result.add(\"dd.MM.yyyy HH:mm\");\r\n result.add(\"dd/MM/yyyy\");\r\n result.add(\"dd/MM/yy\");\r\n result.add(\"MM/dd/yyyy\");\r\n result.add(\"MM/dd/yy\");\r\n result.add(\"MM/dd/yyyy hh:mm:ss\");\r\n result.add(\"MM/dd/yy hh:mm:ss\");\r\n return result;\r\n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "public static void main(String[] args) throws ParseException { 2019-05-30T10:15:16.0Z\n // 2019-05-30T10:18:21\n // SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n // String str = \"2019-05-30 18:15:16\";\n // Date date = sdf.parse(str);\n //\n // DateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n // // Date date = Calendar.getInstance().getTime();\n // TimeZone srcTimeZone = TimeZone.getTimeZone(\"GMT+8\");\n // TimeZone destTimeZone = TimeZone.getTimeZone(\"GMT\");\n // System.out.println(DateTransformer.dateTransformBetweenTimeZone(date, formatter, srcTimeZone, destTimeZone));\n //\n\n }", "public static SimpleDateFormat createDateFormat() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS\");\n TimeZone myTimeZone = TimeZone.getTimeZone(ZoneId.of(\"UTC\"));\n dateFormat.setTimeZone(myTimeZone);\n dateFormat.setLenient(false);\n return dateFormat;\n }", "public static DateFormat urlDateFormatter() {\n return Iso8601Formatter.dateTimeMillisFormatter();\n }", "public String format (Date date , String dateFormat) ;", "public String getDateTimeFormated(Context context){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\"\n , context.getResources().getConfiguration().locale);\n sdf.setTimeZone(TimeZone.getDefault());\n return sdf.format(new Date(mDateTime));\n //setting the dateformat to dd/MM/yyyy HH:mm:ss which is how the date is displayed when a dream is saved\n }", "private static void m1() {\n\n String d = \"2019/03/22 10:00-11:00\";\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd HH:mm-HH:mm\");\n try {\n Date parse = df.parse(d);\n System.out.println(df.format(parse));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private String changeDateFormat (String oldDate) throws ParseException {\n // Source: https://stackoverflow.com/questions/3469507/how-can-i-change-the-date-format-in-java\n final String OLD_FORMAT = \"MM/dd/yyyy\";\n final String NEW_FORMAT = \"yyyyMMdd\";\n String newDateString;\n SimpleDateFormat sdf = new SimpleDateFormat(OLD_FORMAT);\n Date d = sdf.parse(oldDate);\n sdf.applyPattern(NEW_FORMAT);\n newDateString = sdf.format(d);\n return newDateString;\n }", "public String getDateConvert() {\n SimpleDateFormat dateFormat1 = new SimpleDateFormat(\"MMM dd yyyy - hh:mm\");\n SimpleDateFormat dateFormat2 = new SimpleDateFormat(\"a\");\n String date = dateFormat1.format(this.timePost) + dateFormat2.format(this.timePost).toLowerCase();\n return date;\n }", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "private static Date ISO_8601toDate(String dateTime) throws ParseException {\n\n //already in UTC\n if (dateTime.endsWith(\"Z\")) {\n return dateTimeFormatZ.parse(dateTime);\n }\n\n int positionT = dateTime.indexOf('T');\n\n int positionZ = dateTime.indexOf('+', positionT);\n if (positionZ == -1) {\n positionZ = dateTime.indexOf('-', positionT);\n }\n\n //no timezone specified, defaults to UTC\n if (positionZ == -1) {\n return dateTimeFormatZ.parse(dateTime + 'Z');\n }\n\n //convert to General time zone to preserve the timezone provided\n return dateTimeFormatGtz.parse(dateTime.substring(0, positionZ)\n + \"GMT\"\n + dateTime.substring(positionZ));\n }", "private String formatDateForVSS(Date d) {\n SimpleDateFormat sdf = new SimpleDateFormat(this.dateFormat + \";hh:mma\");\n \t\tString vssFormattedDate = sdf.format(d);\n \t\treturn vssFormattedDate.substring(0, vssFormattedDate.length() - 1);\n \t}", "@Test\n public void shouldCorrectWhenSettingObjectMapperDateFormat() throws Exception {\n SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy hh:mm\");\n\n String toParse = \"20-12-2014 02:30\";\n Date date = df.parse(toParse );\n Event event = new Event(\"party\", date);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.setDateFormat(df);\n\n String result = mapper.writeValueAsString(event);\n assertThat(result, containsString(toParse));\n }", "public static String formatDate(String dateValue) {\n Date uploadDateTime = null;\n try {\n uploadDateTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).parse(dateValue);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return new SimpleDateFormat(\"dd/MM/yyyy HH:mm\", Locale.US).format(uploadDateTime);\n }", "private String formatTime(String dateObject){\n\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"h:mm a\");\n Date jam = null;\n try {\n jam = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(jam);\n }", "public static void main(String[] args) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssX\"); // Quoted \"Z\" to indicate UTC, no timezone offset\n// df.setTimeZone(tz);\n// String nowAsISO = df.format(\"2017-04-21T21:25:35+05:00\");\n try {\n Date date = df.parse(\"2017-04-21T21:25:35+05:00\");\n System.out.println(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "public static String formatDateTime(String date) {\n\t\tif(date == null) return \"\";\n\t\tdate = date.trim();\n\t\tif(date.equals(\"&nbsp;\")) return \"\";\n\t\tif (date.length() == 0 || date.length() != 14) return date;\n\t\tdate = date.substring(0,4) + \"/\" + date.substring(4,6) \n\t\t\t\t+ \"/\" + date.substring(6,8)\n\t\t\t\t+\" \"+date.substring(8,10)\n\t\t\t\t+\":\"+date.substring(10,12)\n\t\t\t\t+\":\"+date.substring(12,14);\n\t\treturn date;\n\t}", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "@Override\n\tpublic String[] getFormats() {\n\t\treturn new String[] {\"yyyy-MM-dd'T'HH:mm:ss\",\"yyyy-MM-dd HH:mm:ss\",\"yyyy-MM-dd HH:mm\",\"yyyy-MM-dd'T'HH:mm\",\"yyyy-MM-dd HH\", \"yyyy-MM-dd\" };\n\t}", "private static Date getFormattedDate(String date){\n\t\tString dateStr = null;\n\t\tif(date.length()<11){\n\t\t\tdateStr = date+\" 00:00:00.0\";\n\t\t}else{\n\t\t\tdateStr = date;\n\t\t}\n\t\tDate formattedDate = null;\n\t\ttry {\n\t\t\tformattedDate = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(dateStr);\n\t\t} catch (ParseException e) {\n\t\t\tCommonUtilities.createErrorLogFile(e);\n\t\t}\n\t\treturn formattedDate;\n\n\t}", "@Test\n public void dateUtilTest() {\n String orgStr = \"2016-01-05 10:00:17\";\n Date orgDate = new Date(1451959217000L);\n Assert.assertTrue(DateStrValueConvert.dateFormat(orgDate).equals(orgStr));\n Assert.assertTrue(DateStrValueConvert.dateConvert(orgStr).equals(orgDate));\n }", "private String formatDate(Date date){\n SimpleDateFormat format = new SimpleDateFormat(\"dd-MM-yyyy HH:mm\", Locale.getDefault());\n\n return format.format(date);\n }", "DateFormat getSourceDateFormat();", "private void constructVssDateTimeFormat() {\n vssDateTimeFormat = new SimpleDateFormat(\"'Date: '\" + this.dateFormat + \" 'Time: 'hh:mma\"); \n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "public String getFormatDate() {\n String formatDate = servletRequest.getHeader(ConstantsCustomers.CUSTOMER_FORMAT_DATE);\n if (StringUtil.isEmpty(formatDate)) {\n formatDate = jwtTokenUtil.getFormatDateFromToken();\n }\n if (StringUtil.isEmpty(formatDate)) {\n formatDate = ConstantsCustomers.APP_DATE_FORMAT_ES;\n }\n return formatDate;\n }", "public static String formartDateMpesa(String mDate) {\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n\t\t\t String outDate = \"\";\n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "@Test\n public void testDateTimeToText() throws Exception {\n TimeZone timeZone = TimeZone.getTimeZone(\"GMT+05:00\");\n Calendar march17 = new GregorianCalendar(2012, 2, 17, 12, 34, 56);\n march17.setTimeZone(timeZone);\n march17.add(Calendar.MILLISECOND, 789);\n DateConverter.XML_DATETIME.setTimeZone(timeZone);\n String result = DateConverter.XML_DATETIME.toText(mockContext, march17.getTime());\n assertEquals(\"2012-03-17T12:34:56.789+05:00\", result);\n }", "@Override\n public void setLocalTimeZone(DateFormat df) {\n \n }", "private static String _dateFormat(final Language lang) {\r\n \treturn lang == Language.SPANISH || lang == null ? Dates.ES_DEFAULT_FORMAT \r\n \t\t\t\t\t\t\t \t\t\t\t \t : Dates.EU_DEFAULT_FORMAT;\r\n }", "@SuppressWarnings(\"deprecation\")\r\n\tpublic String format(Date date,boolean time){\n\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyyMMdd\");\r\n\tString timestamp=dateFormat.format(date)+\"T\";\r\n\tif(time){\r\n\t\tdateFormat = new SimpleDateFormat(\"HH:mm:ssZ\");\r\n\t\ttimestamp+=dateFormat.format(date);\r\n\t}\r\n else{\r\n \tdate.setHours(12);\r\n \tdate.setMinutes(0);\r\n \tdate.setSeconds(0);\r\n \tdateFormat = new SimpleDateFormat(\"HH:mm:ss\");\r\n \ttimestamp+=dateFormat.format(date);\r\n \ttimestamp+=\"+0000\";\r\n }\r\n\treturn timestamp;\r\n }", "public String formatDateAndTime(String date){\n\n return dateTimeFormatter.parse(date).toString();\n\n }", "private String getFormattedDate(String date) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.received_import_date_format));\n SimpleDateFormat desiredDateFormat = new SimpleDateFormat(getString(R.string.desired_import_date_format));\n Date parsedDate;\n try {\n parsedDate = dateFormat.parse(date);\n return desiredDateFormat.format(parsedDate);\n } catch (ParseException e) {\n // Return an empty string in case of issues parsing the date string received.\n e.printStackTrace();\n return \"\";\n }\n }", "public interface CrossDateTimeParser {\n\n\t\n\t\n\t/**\n\t * format dari date menjadi string format. pls refer pada\n\t * @param date tanggal yang akan di format menjadi string\n\t * @param dateFormat format dari date \n\t **/\n\tpublic String format (Date date , String dateFormat) ;\n\t\n\t\n\t\n\t/**\n\t * worker utnuk mem-parse dari string menjadi date\n\t * @param dateAsString date yang di jadikan string. ini apa yang akan di jadikan date\n\t * @param dateFormat format dari date\n\t **/\n\tpublic Date parse (String dateAsString , String dateFormat) throws Exception ; \n}", "private static String adjDate(String date) {\n TimeZone tz = TimeZone.getDefault();\n long dt = Long.valueOf(date) - tz.getRawOffset();\n return Long.toString(dt);\n }", "public void formatDateTime() {\n // Check if type of parsing is for display or not. \n // If it is for display, no need to check if date has already passed.\n if (parseType != 2) {\n startDate = dtFormat.formatDate(startDate,0);\n endDate = dtFormat.formatDate(endDate,0);\n } else {\n startDate = dtFormat.formatDate(startDate,1);\n endDate = dtFormat.formatDate(endDate,1);\n }\n \n startTime = dtFormat.formatTime(startTime);\n endTime = dtFormat.formatTime(endTime);\n }", "@Override\n protected SimpleDateFormat getDateFormat() {\n return dateFormat;\n }", "private String toDate(Date appDate) throws ParseException {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(appDate);\n\t\tString formatedDate = cal.get(Calendar.DATE) + \"/\" + (cal.get(Calendar.MONTH) + 1) + \"/\" + cal.get(Calendar.YEAR);\n\t\tSystem.out.println(\"formatedDate : \" + formatedDate); \n\t\treturn formatedDate;\n\t}", "public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}", "public String dateFormatter(String fromDate) {\n\t\tString newDateString=\"\";\n\t\ttry {\n\t\t\tfinal String oldFormat = \"yyyy/MM/dd\";\n\t\t\tfinal String newFormat = \"yyyy-MM-dd\";\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(oldFormat);\n\t\t\tDate d = sdf.parse(fromDate);\n\t\t\tsdf.applyPattern(newFormat);\n\t\t\tnewDateString = sdf.format(d);\n\t\t} catch(Exception exp) {\n\t\t\tthrow ExceptionUtil.getYFSException(ExceptionLiterals.ERRORCODE_INVALID_DATE, exp);\n\t\t}\n\t\treturn newDateString;\n\t}", "public static void main(String[] args) {\n\t double d=123456.789;\r\n\t\tNumberFormat nf=NumberFormat.getInstance(Locale.ITALY);\r\n\t\tNumberFormat nf1=NumberFormat.getInstance(Locale.US);\r\n\t\tNumberFormat nf2=NumberFormat.getInstance(Locale.ENGLISH);\r\n\t\tSystem.out.println(\"Italy representation of \" + d + \" : \"+nf.format(d));\r\n\t\tSystem.out.println(\"US representation of \" + d + \" : \" +nf1.format(d));\r\n\t\tSystem.out.println(\"Japan representation of \" + d + \" : \" +nf2.format(d));\r\n\t\t\r\n\t //DateTimeFormat in short,long and medium with getDateTimeInstance\r\n\t\tDateFormat df=DateFormat.getDateTimeInstance(DateFormat.SHORT,DateFormat.SHORT);\r\n\t System.out.println(\"Short format of date: \"+df.format(new Date()));\r\n\t DateFormat df1=DateFormat.getDateTimeInstance(DateFormat.LONG,DateFormat.LONG);\r\n\t System.out.println(\"Long format of date: \"+df1.format(new Date()));\r\n\t DateFormat df2=DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.MEDIUM);\r\n\t System.out.println(\"Medium format of date: \"+df2.format(new Date()));\r\n\t \r\n\t //Locale date format giving countries starting letters to get time but using only getDateInstance(de-denmark)\r\n\t DateFormat df3=DateFormat.getDateInstance(DateFormat.SHORT,new Locale(\"de\",\"DE\"));\r\n\t System.out.println(\"Short format of date: \"+df3.format(new Date()));\r\n\t DateFormat df4=DateFormat.getDateInstance(DateFormat.LONG,new Locale(\"de\",\"DE\"));\r\n\t System.out.println(\"Long format of date: \"+df4.format(new Date()));\r\n\t DateFormat df5=DateFormat.getDateInstance(DateFormat.MEDIUM,new Locale(\"de\",\"DE\"));\r\n\t System.out.println(\"Medium format of date: \"+df5.format(new Date()));\r\n\t \r\n\r\n}", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String formatDate(String dateStr) {\n try {\n SimpleDateFormat fmt = new SimpleDateFormat(Properties.DATE_FORMAT_ALL);\n Date date = fmt.parse(dateStr);\n SimpleDateFormat fmtOut = new SimpleDateFormat(Properties.DATE_FORMAT);\n return fmtOut.format(date);\n } catch (ParseException e) {\n System.out.println( Properties.K_WARNING + \" \" + e.getMessage());\n }\n return \"\";\n }", "public static void dateFormat() {\n }", "private static String formatDate(long date) {\n Date systemDate = new java.util.Date(date * 1000L);\n // the format of your date\n SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n // give a timezone reference for formatting (see comment at the bottom)\n sdf.setTimeZone(java.util.TimeZone.getTimeZone(\"GMT-4\"));\n String formattedDate = sdf.format(systemDate);\n return formattedDate;\n }", "public static String formatSolrDate(String dateString) throws ParseException {\n SimpleDateFormat outputFormat = new SimpleDateFormat(\n \"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n String inputFormat = \"MM/dd/yyyy\";\n return outputFormat.format(new SimpleDateFormat(inputFormat)\n .parse(dateString));\n }", "public static String formartDateforGraph(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tSimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "public static String format(Date dateTime) {\r\n String dot = new SimpleDateFormat(\"yyyy-MM-dd.HH:mm:ss\").format(dateTime);\r\n return dot.replaceAll(\"[.]\", \"T\");\r\n }", "public static Date fotmatDate21(String myDate) {\n\t\tDate dDate = new SimpleDateFormat(\"HH:mm:ss\").parse(myDate,\r\n\t\t\t\tnew ParsePosition(0));\r\n\t\treturn dDate;\r\n\t}", "private String getISO8601Timestamp(long date) {\n SimpleDateFormat format = new SimpleDateFormat(TIMESTAMP_FORMAT);\n // Convert the date into YYYY-MM-DDThh:mm:ss.sss\n String result = format.format(date);\n // Get default time zone in +/-hhmm format\n TimeZone tz = TimeZone.getDefault();\n int offset = tz.getRawOffset();\n // Convert the timezone format from +/-hhmm to +/-hh:mm\n String formatTimeZone = String.format(TIMEZONE_FORMAT, offset >= 0 ? \"+\" : \"-\", offset / 3600000, (offset / 60000) % 60);\n return result + formatTimeZone;\n }", "private String formatDate(String dateString) {\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"LLL dd, yyyy\");\n LocalDate localDate = LocalDate.parse(dateString.substring(0, 10));\n return dateTimeFormatter.format(localDate);\n }", "@Test\n public void generatedFormatIsParsable()\n {\n Date originalDate = new Date();\n String dateAsString = DateTimeAdapter.printDate( originalDate );\n Date parsedDate = DateTimeAdapter.parseDate( dateAsString );\n \n assertThat( parsedDate, equalTo( originalDate ) );\n }", "public void testParser1() throws Exception {\n // YYYY-MM-DDThh:mm:ss.sTZD => 1997-07-16T19:20:30.45+02:00\n Calendar ref = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+2:00\"));\n ref.set(1997, 06, 16, 19, 20, 30);\n ref.set(Calendar.MILLISECOND, 45);\n Calendar cal = DateParser.parse(\"1997-07-16T19:20:30.045+02:00\");\n assertEquals(ref.getTime(), cal.getTime());\n // calendars are not equals since they have different time zones - but\n // datetime in milliseconds are the same\n }", "@Test\n public void datetimeTest() {\n assertEquals(OffsetDateTime.parse(\"2020-08-12T07:59:11Z\"), authResponse.getDatetime());\n }", "private static String timeHandler(String date) {\n SimpleDateFormat dbFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n SimpleDateFormat dayFormat = new SimpleDateFormat(\"MM-dd\");\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n dbFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n String today = dayFormat.format(new Date());\n String day = \"\";\n String time = \"\";\n try {\n time = timeFormat.format(dbFormat.parse(date));\n day = dayFormat.format(dbFormat.parse(date));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if (day.equals(today)) {\n return \"Today \" + time;\n } else if (day.equals(dayFormat.format(yesterday()))) {\n return \"Yesterday \" + time;\n } else {\n return day + \" \" + time;\n }\n }", "java.lang.String getToDate();", "public static Date formatDateFromDateTimePickerView(String date) {\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy hh:mm:ss\");\r\n try {\r\n return formatter.parse(date);\r\n } catch (ParseException e) {\r\n play.Logger.debug(\"At FormatUtils.formatDateFromDateTimePickerView -> Tidak dapat melakukan parsing tanggal!\");\r\n }\r\n return null;\r\n }", "public Date parse (String dateAsString , String dateFormat) throws Exception ;", "private String formatDateTime(String inputDateTime) throws ParseException {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date myDate = simpleDateFormat.parse(inputDateTime);\n DateFormat outputFormat = new SimpleDateFormat(\"M/d/yy, h:mm aa\");\n DateFormat todayFormat = new SimpleDateFormat(\"h:mm aa\");\n String outputDateStr = \"\";\n if (isToday(inputDateTime.split(\" \")[0])){\n outputDateStr = \"Today, \" + todayFormat.format(myDate);\n } else {\n outputDateStr = outputFormat.format(myDate);\n }\n return outputDateStr;\n }", "private String formatDate (Date date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss\", Locale.ENGLISH);\n return sdf.format(date);\n }", "private Date compartiotor_update_time_package(String update_time) throws ParseException {\n\t\tDate updateDate = null; \n\t\tDateFormat format = null;\n\t\tif(StringUtils.isNotBlank(update_time)){\n\t\t\ttry {\n\t\t\t\tformat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tupdateDate = format.parse(update_time);\n\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\tformat = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\t\t\ttry {\n\t\t\t\t\tupdateDate = format.parse(update_time);\n\t\t\t\t}catch (java.text.ParseException e2){\n\t\t\t\t\tformat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t\tupdateDate = format.parse(update_time);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn updateDate;\n\t}", "public Date parseAsISO8601(String str, ParsePosition parsePosition) {\n DateFormat dateFormat;\n int length = str.length();\n int i = length - 1;\n char charAt = str.charAt(i);\n if (length <= 10 && Character.isDigit(charAt)) {\n dateFormat = this._formatPlain;\n if (dateFormat == null) {\n dateFormat = _cloneFormat(DATE_FORMAT_PLAIN);\n this._formatPlain = dateFormat;\n }\n } else if (charAt == 'Z') {\n DateFormat dateFormat2 = this._formatISO8601_z;\n if (dateFormat2 == null) {\n dateFormat2 = _cloneFormat(DATE_FORMAT_ISO8601_Z);\n this._formatISO8601_z = dateFormat2;\n }\n if (str.charAt(length - 4) == ':') {\n StringBuilder sb = new StringBuilder(str);\n sb.insert(i, \".000\");\n str = sb.toString();\n dateFormat = dateFormat2;\n } else {\n dateFormat = dateFormat2;\n }\n } else if (hasTimeZone(str)) {\n int i2 = length - 3;\n char charAt2 = str.charAt(i2);\n if (charAt2 == ':') {\n StringBuilder sb2 = new StringBuilder(str);\n sb2.delete(i2, length - 2);\n str = sb2.toString();\n } else if (charAt2 == '+' || charAt2 == '-') {\n str = str + \"00\";\n }\n int length2 = str.length();\n if (Character.isDigit(str.charAt(length2 - 9))) {\n StringBuilder sb3 = new StringBuilder(str);\n sb3.insert(length2 - 5, \".000\");\n str = sb3.toString();\n }\n dateFormat = this._formatISO8601;\n if (dateFormat == null) {\n dateFormat = _cloneFormat(DATE_FORMAT_ISO8601);\n this._formatISO8601 = dateFormat;\n }\n } else {\n StringBuilder sb4 = new StringBuilder(str);\n if ((length - str.lastIndexOf(84)) - 1 <= 8) {\n sb4.append(\".000\");\n }\n sb4.append('Z');\n str = sb4.toString();\n dateFormat = this._formatISO8601_z;\n if (dateFormat == null) {\n dateFormat = _cloneFormat(DATE_FORMAT_ISO8601_Z);\n this._formatISO8601_z = dateFormat;\n }\n }\n return dateFormat.parse(str, parsePosition);\n }", "private String convertToDateFormat(String inputDateString) throws DateTimeParseException {\n\t\treturn inputDateString;\n\t}", "public static String TimeFormate() {\n\t\tString time;\n\t\tSimpleDateFormat dateFormat1 = new SimpleDateFormat();\n\t dateFormat1.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t Calendar cal = Calendar.getInstance();\n\t cal.add(Calendar.MINUTE, 3);\n String n=dateFormat1.format(cal.getTime());\n //n=\"03/09/20 8:30 AM\";\n System.out.println(\"Full Date = \" +n);\n int colonindex=n.indexOf(\":\");\n //System.out.println(\": placed= \" +colonindex);\n //String tt =n.substring(colonindex, n.length());\n //System.out.println(\"tt= \" +tt);\n String tt1 =n.substring(colonindex-2,colonindex-1);\n System.out.println(\"tt1= \" +tt1);\n if(tt1.equals(\"1\")) {\n \t time=n.substring(colonindex-2, n.length());\n \t System.out.println(\"Time with two digits in hours= \" +time);\n }\n else {\n \t time=n.substring(colonindex-1, n.length());\n \t System.out.println(\"Time with one digit in hours= \" +time);\n }\n return time;\n\t}", "protected static String expandDateTimeString(String dateTime) {\n if (dateTime.length() == 13) {\n return dateTime;\n }\n\n StringBuilder expandedDateTime = new StringBuilder(13);\n\n switch (dateTime.length()) {\n case 10:\n expandedDateTime.append('2').append(dateTime).append(\"00\");\n break;\n case 11:\n expandedDateTime.append(dateTime).append(\"00\");\n break;\n case 12:\n expandedDateTime.append('2').append(dateTime);\n break;\n default:\n throw new IllegalArgumentException(\"Given VDEW encoded DateTime-String must have between 10 to 13 characters, but we got \" + dateTime.length() + \" characters being '\" + dateTime + \"'\");\n }\n\n return expandedDateTime.toString();\n }", "private String getTimeFormat() {\r\n return mData.getConfiguration(\"x-labels-time-format\", \"yyyy-MM-dd\");\r\n }", "@Override\n public void postConfig() {\n Locale locale = new Locale(localeLanguage, localeCountry);\n try {\n formatter = DateTimeFormatter.ofPattern(dateFormat, locale);\n } catch (IllegalArgumentException e) {\n throw new PropertyException(e,\"\",\"dateFormat\",\"dateFormat could not be parsed by DateTimeFormatter\");\n }\n }", "public static String getFormattedDate(String dateStr, String toformat)\r\n\t{\r\n\t\tString mName = \"getFormattedDate()\";\r\n\t\tIDateFormatter dateFormatter = null;\r\n\t\tDateFormatConfig dateFormat = null;\r\n\t\tString formattedDate = null;\r\n\t\tdateFormat = getDateFormat(toformat);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdateFormatter = (IDateFormatter) ResourceLoaderUtils.createInstance(dateFormat.getFormatterClass(),\r\n\t\t\t\t\t(Object[]) null);\r\n\t\t\tformattedDate = dateFormatter.formatDate(dateStr, dateFormat.getJavaDateFormat());\r\n\t\t} catch (Exception exp)\r\n\t\t{\r\n\t\t\tlogger.cterror(\"CTBAS00112\", exp, mName);\r\n\r\n\t\t}\r\n\t\treturn formattedDate;\r\n\t}", "private static String timeFormat(long t, String format) {\n SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.US);\n try {sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));} catch (Exception e) {}\n return sdf.format(new Date(t));\n }", "private static void formatDate (XmlDoc.Element date) throws Throwable {\n\t\tString in = date.value();\n\t\tString out = DateUtil.convertDateString(in, \"dd-MMM-yyyy\", \"yyyy-MM-dd\");\n\t\tdate.setValue(out);\n\t}", "private void checkCorrectDateFormat(String date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.getDefault());\n sdf.setLenient(false);\n try {\n sdf.parse(date);\n } catch (ParseException e) {\n throw new IllegalArgumentException(\n \"Google Calendar Event Date must follow\" + \" the format: \\\"yyyy-MM-dd'T'HH:mm:ss\\\"\");\n }\n }", "private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }", "public static void testDate() {\n\t\tDate oldDate = new Date();\r\n\t\tSystem.out.println(oldDate);\r\n\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.set(2000, 0, 17);\r\n\t\tDate oldDate2 = c.getTime();\r\n\t\tSystem.out.println(oldDate2);\r\n\r\n\t\t// Dates created with Java 8\r\n\t\tLocalDateTime newDateTime = LocalDateTime.now();\r\n\t\tLocalDate newDate = LocalDate.now();\r\n\t\tLocalTime newTime = LocalTime.now();\r\n\t\tSystem.out.println(newTime);\r\n\r\n\t\tnewDateTime = LocalDateTime.of(newDate, newTime);\r\n\t\tSystem.out.println(newDateTime);\r\n\r\n\t\tLocalDateTime newDateTime1 = LocalDateTime.of(2015, 12, 1, 10, 2, 3, 4);\r\n\t\tSystem.out.println(newDateTime1);\r\n\r\n\t\tnewDateTime1 = newDateTime1.plusYears(1);\r\n\t\tSystem.out.println(newDateTime1);\r\n\r\n\t\tDateTimeFormatter dtf = DateTimeFormatter\r\n\t\t\t\t.ofLocalizedDateTime(FormatStyle.SHORT);\r\n\t\tSystem.out.println(dtf.format(newDateTime1));\r\n\t\tdtf = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM);\r\n\t\tSystem.out.println(dtf.format(newDateTime1));\r\n\r\n\t\tdtf = DateTimeFormatter.ofPattern(\"MMMM dd yyyy, hh:mm:ss\");\r\n\t\tSystem.out.println(dtf.format(newDateTime1));\r\n\t}", "public static String date_d(String sourceDate,String format) throws ParseException {\n SimpleDateFormat sdf_ = new SimpleDateFormat(\"yyyy-MM-dd\");\n SimpleDateFormat sdfNew_ = new SimpleDateFormat(format);\n return sdfNew_.format(sdf_.parse(sourceDate));\n }", "public static String getDate()\r\n {\r\n Date now = new Date();\r\n DateFormat df = new SimpleDateFormat (\"yyyy-MM-dd'T'hh-mm-ss\");\r\n String currentTime = df.format(now);\r\n return currentTime; \r\n \r\n }", "public DateGraphFormat(String pattern){\n\t((SimpleDateFormat) dateFormat).applyPattern(pattern);\n }", "public Date createDate(String strDate){\n\n Date date = null;\n\n // Get time\n Calendar cal = Calendar.getInstance();\n Date currentLocalTime = cal.getTime();\n DateFormat dateformat = new SimpleDateFormat(\"HH:mm:ss\");\n String localTime = dateformat.format(currentLocalTime);\n\n // Concat strings\n String tmpDate = strDate + \" \" + localTime;\n //\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n try {\n date = format.parse(tmpDate);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return date;\n }", "private String formatarData(Date data)\n {\n String sDate;\n String sDia = \"\";\n String sMes = \"\";\n\n GregorianCalendar calendar = new GregorianCalendar();\n calendar.setTime(data);\n int dia = calendar.get(GregorianCalendar.DAY_OF_MONTH);\n if (dia > 0) {\n if (dia < 10) {\n sDia = \"0\";\n }\n }\n sDia += dia;\n\n int mes = calendar.get(GregorianCalendar.MONTH);\n mes = mes + 1;\n if (mes > 0) {\n if (mes < 10) {\n sMes = \"0\";\n }\n }\n sMes += mes;\n\n int ano = calendar.get(GregorianCalendar.YEAR);\n\n int hora = calendar.get(GregorianCalendar.HOUR);\n // 0 = dia\n // 1 = noite\n int amPm = calendar.get(GregorianCalendar.AM_PM);\n\n if(amPm == 1)\n {\n if(hora>0 && hora < 13)\n {\n if(hora > 11)\n hora = 0;\n else\n hora += 12;\n }\n }\n\n String sHora = \" \";\n if(hora<=9)\n {\n sHora += \"0\";\n }\n String sMin=\":\";\n int min = calendar.get(GregorianCalendar.MINUTE);\n if(min <10)\n sMin += \"0\";\n sMin += String.valueOf(min);\n sHora += String.valueOf(hora) + sMin + \":00\";\n sDate = String.valueOf(ano) + \"-\" + sMes + \"-\" + sDia + sHora;\n return sDate;\n\n }", "private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }", "public static String formartDate(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"mm/dd/yyyy\");\n\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}", "public String changeDateFormat(String dateStr) {\n String inputPattern = \"MMM-dd-yyyy\";\n String outputPattern = \"MMMM dd, yyyy\";\n SimpleDateFormat inputFormat = new SimpleDateFormat(inputPattern);\n SimpleDateFormat outputFormat = new SimpleDateFormat(outputPattern);\n\n Date date = null;\n String str = null;\n\n try {\n date = inputFormat.parse(dateStr);\n str = outputFormat.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return str;\n\n }", "public static String GetIsoDateTime(Date dateToFormat) {\n\t\t// GPX specs say that time given should be in UTC, no local time.\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tsdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n\t\treturn sdf.format(dateToFormat);\n\t}", "public static void main(String[] args) {\n\t\tLocalDate date1 = LocalDate.of(2020, Month.JANUARY, 20);\r\n\t\tLocalTime time = LocalTime.of(11, 12, 34); \r\n\t\tLocalDate date = LocalDate.of(2020, Month.JANUARY, 20);\r\n\t\tLocalDateTime dateTime = LocalDateTime.of(date1, time);\r\n\t\t DateTimeFormatter shortDateTime = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\r\n\t // System.out.println(shortDateTime);\r\n\t System.out.println(shortDateTime.format(dateTime)); // 1/20/20 \r\n\t System.out.println(shortDateTime.format(date1)); // 1/20/20 \r\n\t DateTimeFormatter shortDateTime1 = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\r\n\t System.out.println(dateTime.format(shortDateTime1)); \r\n\t System.out.println(date.format(shortDateTime1));\r\n\t DateTimeFormatter shortDateTime2 = DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT);\r\n\t /* System.out.println(time.format(shortDateTime1)); // UnsupportedTemporalTypeException\r\n\t System.out.println( shortDateTime1.format(time)); // UnsupportedTemporalTypeException\r\n\t */ System.out.println(time.format(shortDateTime2)); \r\n\t System.out.println( shortDateTime2.format(time));\r\n\t DateTimeFormatter shortF = DateTimeFormatter .ofLocalizedDateTime(FormatStyle.SHORT);\r\n\t DateTimeFormatter mediumF = DateTimeFormatter .ofLocalizedDateTime(FormatStyle.MEDIUM);\r\n\t System.out.println(shortF.format(dateTime)); // 1/20/20 11:12 AM \r\n\t System.out.println(mediumF.format(dateTime)); // Jan 20, 2020 11:12:34 AM\r\n\r\n\r\n\r\n\t}", "private synchronized void initializeTimeZoneFormat(boolean r5) {\r\n /*\r\n // Method dump skipped, instructions count: 115\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: ohos.global.icu.text.SimpleDateFormat.initializeTimeZoneFormat(boolean):void\");\r\n }", "private String formatTime(Date dateObject)\n {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\n timeFormat.setTimeZone(Calendar.getInstance().getTimeZone());\n return timeFormat.format(dateObject);\n }", "protected String obterData(String format) {\n\t\tDateFormat formato = new SimpleDateFormat(format);\n\t\tDate data = new Date();\n\t\treturn formato.format(data).toString();\n\t}", "public DateGraphFormat(DateFormat dateFormatIn){\n\tif(dateFormatIn != null){\n\t dateFormat = dateFormatIn;\n\t} \n }", "protected abstract DateFormat getDateFormat();", "private String syncTimeStamp(String timestamp){\r\n StringBuilder dateBuilder = new StringBuilder(timestamp);\r\n String time = dateBuilder.toString().split(\"T\")[1].substring(0, 8);\r\n String[] timeArr = time.split(\":\");\r\n String seconds = timeArr[2];\r\n String dd = dateBuilder.toString().split(\"T\")[0].split(\"-\")[2];\r\n String mm = dateBuilder.toString().split(\"T\")[0].split(\"-\")[1];\r\n String yyyy = dateBuilder.toString().split(\"T\")[0].split(\"-\")[0];\r\n int hour = Integer.parseInt(timeArr[0]);\r\n int minutes = Integer.parseInt(timeArr[1]);\r\n minutes += 30;\r\n hour+=5;\r\n if (minutes>=60){\r\n hour += 1;\r\n minutes -= 60;\r\n }\r\n if (hour >= 24){\r\n hour -= 24;\r\n dd = Integer.toString(Integer.parseInt(dd) + 1);\r\n if (Integer.parseInt(dd) < 10)\r\n dd = \"0\" + dd;\r\n }\r\n String minutesString;\r\n if (minutes < 10)\r\n minutesString = \"0\" + Integer.toString(minutes);\r\n else\r\n minutesString = Integer.toString(minutes);\r\n\r\n String hoursString;\r\n if (hour < 10)\r\n hoursString = \"0\" + Integer.toString(hour);\r\n else\r\n hoursString = Integer.toString(hour);\r\n String finalTime = hoursString + \":\" + minutesString + \":\" + seconds;\r\n String finalDate = dd + \"-\" + mm + \"-\" + yyyy;\r\n\r\n return (finalDate + \" \" + finalTime);\r\n }", "private String convertDateVN(String date) {\r\n String arrDate[] = date.split(\"-\");\r\n date = arrDate[2] + \"/\" + arrDate[1] + \"/\" + arrDate[0];\r\n return date;\r\n }", "private String easyDateFormat(final String format) {\n Date today = new Date();\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n String datenewformat = formatter.format(today);\n return datenewformat;\n }" ]
[ "0.62162304", "0.6099622", "0.5954448", "0.5877975", "0.5781692", "0.57622945", "0.5761273", "0.57356066", "0.57330537", "0.5725952", "0.5721598", "0.5689775", "0.5627752", "0.5586387", "0.55833566", "0.5535078", "0.55110013", "0.5482403", "0.54553354", "0.5451966", "0.5440916", "0.5420076", "0.54184234", "0.54130244", "0.5400282", "0.53976005", "0.53937984", "0.53792745", "0.5372125", "0.53621536", "0.53614366", "0.5358235", "0.53451926", "0.53451926", "0.53254503", "0.53162664", "0.53068674", "0.52905536", "0.5287457", "0.5268661", "0.52680176", "0.5260368", "0.5259101", "0.5259022", "0.52515846", "0.5245621", "0.52370894", "0.5231863", "0.52187043", "0.52156746", "0.52107507", "0.5204971", "0.51885694", "0.5187304", "0.51860166", "0.51764095", "0.51707983", "0.51524895", "0.51476246", "0.5130699", "0.5126005", "0.5123494", "0.51216894", "0.5120167", "0.51105607", "0.50998014", "0.5096831", "0.50916934", "0.5085083", "0.50780505", "0.50746834", "0.5062726", "0.5041925", "0.50322986", "0.5031078", "0.5023596", "0.502225", "0.50172496", "0.50166434", "0.50087655", "0.50080246", "0.50072587", "0.5006161", "0.50041574", "0.50003415", "0.49959376", "0.4993879", "0.49878255", "0.49839973", "0.49832538", "0.49776694", "0.4974468", "0.4973905", "0.4971008", "0.49697447", "0.49645743", "0.4964391", "0.4960574", "0.49504998", "0.49498594", "0.49444115" ]
0.0
-1
Private constructor: class cannot be instantiated
private TimestampUtils(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Instantiation(){}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "Reproducible newInstance();", "private Rekenhulp()\n\t{\n\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private MApi() {}", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "private ClassUtil() {}", "private Ex() {\n }", "private Foo() {\n\t\tSystem.out.println(\"Private Constructor.\");\n\t}", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private TMCourse() {\n\t}", "private WebXmlIo()\n {\n // Voluntarily empty constructor as utility classes should not have a public or default\n // constructor\n }", "private FlowExecutorUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private DarthSidious(){\n }", "private Marinator() {\n }", "private Marinator() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "private SingleObject()\r\n {\r\n }", "private Utility() {\n throw new IllegalAccessError();\n }", "private CommonMethods() {\n }", "private Verify(){\n\t\t// Private constructor to prevent instantiation\n\t}", "private ObjectFactory() { }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "private Supervisor() {\r\n\t}", "public Constructor(){\n\t\t\n\t}", "private Security() { }", "defaultConstructor(){}", "private PermissionUtil() {\n throw new IllegalStateException(\"you can't instantiate PermissionUtil!\");\n }", "private Driver(){\n }", "private void __sep__Constructors__() {}", "private InstanceUtil() {\n }", "protected abstract void construct();", "private Singleton()\n\t\t{\n\t\t}", "private ClassProxy() {\n }", "private XMLUtils()\r\n\t{\r\n\t}", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}", "private Source() {\n throw new AssertionError(\"This class should not be instantiated.\");\n }", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "private CheckingTools() {\r\n super();\r\n }", "private Terms(){\n\t\t //this prevents even the native class from calling this ctor as well :\n\t\t throw new AssertionError();\n\t\t }", "private Log()\n {\n //Hides implicit constructor.\n }", "private Utility() {\n\t}", "private Validate(){\n //private empty constructor to prevent object initiation\n }", "private GeoUtil()\n\t{\n\t}", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private Utils() {\n }", "private XMLUtil() {\n\t}", "public Pitonyak_09_02() {\r\n }", "private Service() {}", "private Driver() {\n\n }", "private Singleton() {\n\t}", "private LOCFacade() {\r\n\r\n\t}", "private Mocks() { }", "private S3Utils() {\n throw new UnsupportedOperationException(\"This class cannot be instantiated\");\n }", "@SuppressWarnings(\"unused\")\n private Booking() {\n }", "private NaturePackage() {}", "private Tuples() {\n // prevent instantiation.\n }", "private TemplateFactory(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "private PerksFactory() {\n\n\t}", "private ObjectRepository() {\n\t}", "public Self__1() {\n }", "private AccessorModels() {\n // Private constructor to prevent instantiation\n }", "private SingletonObject() {\n\n\t}", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "private WolUtil() {\n }", "private EagerlySinleton()\n\t{\n\t}", "private UtilityKlasse() {\n\n }", "private GeneralServicesImpl() {\r\n\t}", "private Const() {\n }", "private FlexOrderTransformer() {\n // constructor preventing instantiation.\n }", "private DPSingletonLazyLoading(){\r\n\t\tthrow new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true)\r\n\t}", "private SingleObject(){}", "private SupplierLoaderUtil() {\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private Util() {\n }", "private UnitFactory() {\n\t}", "private R() {\n\n }", "private HabitTrackerUtils() {\n // Required empty private constructor (to prevent instantiation).\n }", "private Util() {\n }" ]
[ "0.83070457", "0.7819659", "0.7700126", "0.7687916", "0.7543609", "0.7512945", "0.75021625", "0.74976593", "0.74366015", "0.7426807", "0.73813105", "0.736624", "0.7365415", "0.73633856", "0.7352301", "0.7310842", "0.73008907", "0.7277573", "0.72448844", "0.7230453", "0.72073966", "0.7203906", "0.7189021", "0.71726", "0.71666545", "0.71666545", "0.71567154", "0.71567154", "0.7153111", "0.7142613", "0.7140871", "0.71000737", "0.7098531", "0.7095693", "0.70925945", "0.70915705", "0.7089937", "0.70877624", "0.70872366", "0.7084106", "0.70838666", "0.7072031", "0.7066739", "0.7066317", "0.7055304", "0.7053017", "0.70495987", "0.7049419", "0.7042046", "0.70378363", "0.70312685", "0.7029362", "0.70274943", "0.7027027", "0.7026949", "0.70254207", "0.70100516", "0.7008809", "0.70080477", "0.69952315", "0.69952315", "0.69952315", "0.69952315", "0.69952315", "0.69928116", "0.69866747", "0.69838834", "0.6981451", "0.6981395", "0.69705266", "0.6959418", "0.6957188", "0.69473356", "0.6941319", "0.6938761", "0.69382024", "0.6932002", "0.6931881", "0.6927284", "0.69271624", "0.6921381", "0.69180566", "0.691091", "0.68989545", "0.6898235", "0.68980706", "0.68979675", "0.6896659", "0.68954563", "0.6893796", "0.68919414", "0.68904656", "0.68904656", "0.68904656", "0.68904656", "0.6890216", "0.6890006", "0.68873537", "0.6885052", "0.6879618", "0.6879407" ]
0.0
-1
Array List used to hold all employees the user wants to enter
public static void main(String[] args){ ArrayList<Employee> newEmployee = new ArrayList<Employee>(); //Scanner used for user input Scanner input = new Scanner(System.in); welcome(); menu(input, newEmployee); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void fillEmployees() {\n\t\tString name1;\n\t\tString name2;\n\t\tString name3;\n\t\tString name4;\n\t\tfor(int i=0;i<auxEmployees.length;i++) { //Va llenando de una en una las filas del array auxiliar de empleados (cada fila es una empresa) con nommbres aleatorios del array employees\n\t\t\tname1=\"\";\n\t\t\tname2=\"\";\n\t\t\tname3=\"\";\n\t\t\tname4=\"\";\n\t\t\twhile (name1.equals(name2) || name1.equals(name3) || name1.equals(name4) || name2.equals(name3) || name2.equals(name4) || name3.equals(name4)) { //Si los nombres son iguales vuelve a asignar nombres\n\t\t\t\tname1=employees[selector.nextInt(employees.length)];\n\t\t\t\tname2=employees[selector.nextInt(employees.length)];\n\t\t\t\tname3=employees[selector.nextInt(employees.length)];\n\t\t\t\tname4=employees[selector.nextInt(employees.length)];\n\t\t\t}\n\t\t\tauxEmployees[i][0]=name1;\n\t\t\tauxEmployees[i][1]=name2;\n\t\t\tauxEmployees[i][2]=name3;\n\t\t\tauxEmployees[i][3]=name4;\n\t\t}\n\t}", "public List<Employee> getAllEmployees(){\n\t\tFaker faker = new Faker();\n\t\tList<Employee> employeeList = new ArrayList<Employee>();\n\t\tfor(int i=101; i<=110; i++) {\n\t\t\tEmployee myEmployee = new Employee();\n\t\t\tmyEmployee.setId(i);\n\t\t\tmyEmployee.setName(faker.name().fullName());\n\t\t\tmyEmployee.setMobile(faker.phoneNumber().cellPhone());\n\t\t\tmyEmployee.setAddress(faker.address().streetAddress());\n\t\t\tmyEmployee.setCompanyLogo(faker.company().logo());\n\t\t\temployeeList.add(myEmployee);\n\t\t}\n\t\treturn employeeList;\n\t}", "public static void main(String[] args) {\n System.out.println(\"How many employees would you like to type numbers for?\");\n Scanner emp_id_in = new Scanner(System.in);\n int emp_in = emp_id_in.nextInt();\n Employee EmployeeArr[] = new Employee[emp_in]; // should be size of the scanned input\n for (int i = 0; i < EmployeeArr.length; i++) {\n // Employee number\n System.out.println(\"Please enter the employees ID number(Enter a number from 0 to 999999)\");\n Scanner emp_id_scanner = new Scanner(System.in);\n int emp_id = emp_id_scanner.nextInt();\n // First\n System.out.println(\"Please enter the employees first name:\");\n Scanner first_name_scanner = new Scanner(System.in);\n String first_name = first_name_scanner.nextLine();\n // Last\n System.out.println(\"Please enter the employees last name:\");\n Scanner last_name_scanner = new Scanner(System.in);\n String last_name = last_name_scanner.nextLine();\n // Push entries into Name class\n Name name_obj = new Name();\n name_obj.get_employee_name(emp_id, first_name, last_name);\n //Street\n System.out.println(\"Please enter the employee's street name: \");\n Scanner street_name_scanner = new Scanner(System.in);\n String street_name = street_name_scanner.nextLine();\n // City\n System.out.println(\"Please enter the employee's city: \");\n Scanner city_name_scanner = new Scanner(System.in);\n String city_name = city_name_scanner.nextLine();\n // State\n System.out.println(\"Please enter the employee's state: \");\n Scanner state_name_scanner = new Scanner(System.in);\n String state_name = state_name_scanner.nextLine();\n System.out.println(\">>>>>>>>>>\" + state_name.split(\"\").length);\n // Zip\n System.out.println(\"Please enter the employee's zip code\");\n Scanner zip_code_scanner = new Scanner(System.in);\n int zip_code = zip_code_scanner.nextInt();\n // Push entries into Address class\n Address address_obj = new Address();\n address_obj.get_address_data(street_name, city_name, state_name, zip_code);\n // hire month\n System.out.println(\"Please enter the month the employee was hired(Eg. 1,2,3,... etc): \");\n Scanner month_scanner = new Scanner(System.in);\n int month = month_scanner.nextInt();\n // hire day\n System.out.println(\"Please enter the day the employee was hired(Eg. 1,2,3,... etc): \");\n Scanner day_scanner = new Scanner(System.in);\n int day = day_scanner.nextInt();\n // hire year\n System.out.println(\"Please enter the year the employee was hired: \");\n Scanner year_scanner = new Scanner(System.in);\n int year = year_scanner.nextInt();\n // Push data into Date class\n Date date_obj = new Date();\n date_obj.get_date_data(month, day, year);\n // Push data into employee class\n EmployeeArr[i] = new Employee();\n EmployeeArr[i].get_employee_information(name_obj.employee_number, name_obj.employee_first, name_obj.employee_last, address_obj.street, address_obj.zip_code,\n address_obj.city, address_obj.state, date_obj.hire_month, date_obj.hire_day, date_obj.hire_year);\n\n }\n // Show the data\n for (int j = 0; j < EmployeeArr.length; j++) {\n EmployeeArr[j].show_dat();\n }\n }", "public Employee[] getEmployeesList() {\n\t\treturn employees;\n\t}", "public void setEmployees(ArrayList<Employee> employees) { \r\n this.employees = employees;\r\n }", "public void listEmployees()\n\t{\n\t\tString str = \"Name\\tSurname\\tMail\\tPassword\\tBranchId\\tId\\n\";\n\t\t\n\t\tList<Employee> employees = this.company.getEmployees();\n\n\t\tfor(int i=0; i<employees.length(); i++)\n\t\t{\n\t\t\tstr += employees.get(i).getName() + \"\\t\" + employees.get(i).getSurname() + \"\\t\" + employees.get(i).getMail() + \"\\t\" + employees.get(i).getPassword() + \"\\t\\t\" + employees.get(i).getBranchId() + \"\\t\\t\" + employees.get(i).getId() + \"\\n\";\n\t\t}\n\n\t\tSystem.out.println(str);\n\n\t}", "public void setEmployees(Employee[] employees) {\n\t\tthis.employees = employees;\n\t}", "public static void getEmployeeInformation(Employee [] employee) {\n\t\tif (Employee.getEmployeeQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no employee!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Employee.getEmployeeQuantity(); i++) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"-------List of Employees-------\\n\"\n\t\t\t\t\t\t+ (i+1) + \": \"+ employee[i+1].getName() + \"\\n\");\n\t\t\t}\t\t\t\n\t\t}\n\t}", "public Vector<Employees> getEmployees() {\n\t\t\tVector<Employees> v = new Vector<Employees>();\n\t\t\ttry {\n\t\t\t\tStatement stmt = conn.createStatement();\n\t\t\t\tResultSet rs = stmt\n\t\t\t\t\t\t.executeQuery(\"select * from employees_details order by employees_pf\");\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tint file_num = rs.getInt(1);\n\t\t\t\t\tString name = rs.getString(2);\n\t\t\t\t\tint drive = rs.getInt(3);\n\t\t\t\t\tEmployees employee = new Employees(file_num, name, drive);\n//\t\t\t\t\tCars cars = new Truck(reg, model, drive);\n\t\t\t\t\tv.add(employee);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn v;\n\t}", "public static HashSet<Employee> addEmployeeDetails(int size) {\n\t\tint count = 1;\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\t\tEmployee emp = null;\n\t\tHashSet<Employee> hashLists = new HashSet<>();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\temp = new Employee();\n\n\t\t\tSystem.out.println(\"Enter the \" + count + \" Employee Details\");\n\t\t\tSystem.out.println(\"Enter the Employee id\");\n\t\t\temp.setEmpId(scan.nextInt());\n\t\t\tSystem.out.println(\"Enter the Employee name\");\n\t\t\temp.setEmpName(scan.next());\n\t\t\tSystem.out.println(\"Enter the Employee age\");\n\t\t\temp.setEmpAge(scan.nextInt());\n\t\t\tSystem.out.println(\"Enter the Employee salary\");\n\t\t\temp.setEmpSalary(scan.nextInt());\n\t\t\thashLists.add(emp);\n\t\t\tcount++;\n\t\t}\n\t\treturn hashLists;\n\n\t}", "private void doViewAllEmployees() {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"***Hors Management System:: System Administration:: View All Staffs\");\n\n List<Employee> employees = employeeControllerRemote.retrieveAllEmployees();\n\n employees.forEach((employee) -> {\n System.out.println(\"Employee ID: \" + employee.getEmployeeId() + \"First Name: \" + employee.getFirstName() + \"Last Name: \" + employee.getLastName() + \"Job Role: \" + employee.getJobRole().toString() + \"Username: \" + employee.getUserName() + \"Password: \" + employee.getPassword());\n });\n\n System.out.println(\"Press any key to continue...>\");\n sc.nextLine();\n }", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}", "public Employee[] getAll() {\n\t\tEmployee[] empArray = new Employee[list.size()];\n\t\tfor (int i = 0; i < list.size(); i++) \n\t\t\tempArray[i] = list.get(i);\n\t\t\t\n\t\treturn empArray;\n\t}", "public void addEmployee(){\n\t\tSystem.out.println(\"Of what company is the employee?\");\n\t\tSystem.out.println(theHolding.companies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name:\");\n\t\t\tString name = reader.nextLine();\n\t\t\tSystem.out.println(\"Position:\");\n\t\t\tString position = reader.nextLine();\n\t\t\tSystem.out.println(\"Mail:\");\n\t\t\tString mail = reader.nextLine();\n\t\t\tEmployee toAdd = new Employee(name, position, mail);\n\t\t\tSystem.out.println(theHolding.addEmployee(selected, toAdd));\n\t\t}\n\t}", "public void add(){\n //Declare an ArrayList which contains string objects\n \n ArrayList<Employee> employeesList = new ArrayList<Employee>();\n \n Employee emp = new Employee();\n emp.setName(\"Marc\");\n emp.setSalary_complement(100);\n \n emp.setName(\"Paco\");\n emp.setSalary_complement(120);\n \n emp.setName(\"David\");\n emp.setSalary_complement(400);\n \n emp.setName(\"Albert\");\n emp.setSalary_complement(110);\n \n emp.setName(\"Javi\");\n emp.setSalary_complement(20);\n \n emp.setName(\"Jose\");\n emp.setSalary_complement(170);\n \n emp.setName(\"Raul\");\n emp.setSalary_complement(101);\n \n emp.setName(\"Enric\");\n emp.setSalary_complement(80);\n \n emp.setName(\"Javier\");\n emp.setSalary_complement(10);\n \n emp.setName(\"Daniel\");\n emp.setSalary_complement(120);\n \n \n employeesList.add(emp);\n /* \n ArrayList<String> employeesList = new ArrayList<>();\n employeesList.add(200,\"Marc\") ArrayList<Employee> employeesList = new ArrayList<Employee>();\n ;\n employeesList.add(250,\"Cristian\");\n employeesList.add(100,\"Paco\");\n employeesList.add(400,\"Roberto\");\n */\n }", "public String getEmployees(){\n return employees;\n }", "public List<Employee> list() {\n\t\t\treturn employees;\n\t\t}", "@Test\n\tpublic void testingMultipleEmployees() {\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tthis.sendingKeys();\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.findElement(By.id(\"sn_staff\")).click();\n\t\tdriver.findElement(By.id(\"act_primary\")).click();\n\t\t\n\t\tint beforeAdd = driver.findElements(By.tagName(\"a\")).size();\n\t\t\n\t\tdriver.findElement(By.id(\"_asf1\")).sendKeys(\"FirstName\");\n\t\tdriver.findElement(By.id(\"_asl1\")).sendKeys(\"LastName\");\n\t\tdriver.findElement(By.id(\"_ase1\")).sendKeys(\"jelena@myaddress.com\");\n\t\t\n\t\tdriver.findElement(By.id(\"_asf2\")).sendKeys(\"FirstName\");\n\t\tdriver.findElement(By.id(\"_asl2\")).sendKeys(\"LastName\");\n\t\tdriver.findElement(By.id(\"_ase2\")).sendKeys(\"dusan@myaddress.com\");\n\t\t\n\t\tdriver.findElement(By.id(\"_as_save_multiple\")).click();\n\t\t\n\t\tint afterAdd = driver.findElements(By.tagName(\"a\")).size();\n\t\t\n\t\tint newAdded = beforeAdd - afterAdd;\n\t\t\n\t\tassertEquals(2, newAdded);\n\t\t\n\t}", "public void addEmployee(int noOfEmployee) {\r\n\t\tint id = 0;\r\n\t\tString name = null;\r\n\t\tString address = null;\r\n\t\t\r\n\t\tfor (int index = 0; index < noOfEmployee; index++) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter employee id :\");\r\n\t\t\tid = input.nextInt();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter employee name : \");\r\n\t\t\tinput.nextLine();\r\n\t\t\tname = input.nextLine();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter employee address :\");\r\n\t\t\taddress = input.nextLine();\r\n\t\t\t\r\n\t\t\tif (empId.contains(id)) {\r\n\t\t\t\tSystem.out.println(\"Emp ID : \"+ id +\" employee ID already exists !!!!!\");\r\n\t\t\t} else {\r\n\t\t\t\tempId.add(id);\r\n\t\t\t\temp.add(addEmployee(id, name, address));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "List<Employee> allEmpInfo();", "public void listEmployees() {\n\t\tSession session = factory.openSession();\n\t\tTransaction transaction = null;\n\t\ttry {\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tList employees = session.createQuery(\"FROM Employee\").list();\n\t\t\tfor (@SuppressWarnings(\"rawtypes\")\n\t\t\tIterator iterator = employees.iterator(); iterator.hasNext();) {\n\t\t\t\tEmployee employee = (Employee) iterator.next();\n\t\t\t\tSystem.out.print(\"First Name: \" + employee.getFirstName());\n\t\t\t\tSystem.out.print(\" Last Name: \" + employee.getLastName());\n\t\t\t\tSystem.out.println(\" Salary: \" + employee.getSalary());\n\t\t\t}\n\t\t\ttransaction.commit();\n\t\t} catch (HibernateException e) {\n\t\t\tif (transaction != null)\n\t\t\t\ttransaction.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t}", "public void displayEmployees(){\n System.out.println(\"NAME --- SALARY --- AGE \");\n for (Employee employee : employees) {\n System.out.println(employee.getName() + \" \" + employee.getSalary() + \" \" + employee.getAge());\n }\n }", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\ttry {\n\t\t\tList<Employee> empList = new ArrayList<Employee>();\n\t\t\tList<Map<String, Object>> rows = template.queryForList(\"select * from employee\");\n\t\t\tfor(Map<?, ?> rowNum : rows) {\n\t\t\t\tEmployee emp = new Employee();\n\t\t\t\temp.setEmployeeId((Integer)rowNum.get(\"empid\"));\n\t\t\t\temp.setFirstName((String)rowNum.get(\"fname\"));\n\t\t\t\temp.setLastName((String)rowNum.get(\"lname\"));\n\t\t\t\temp.setEmail((String)rowNum.get(\"email\"));\n\t\t\t\temp.setDesignation((String)rowNum.get(\"desig\"));\n\t\t\t\temp.setLocation((String)rowNum.get(\"location\"));\n\t\t\t\temp.setSalary((Integer)rowNum.get(\"salary\"));\n\t\t\t\tempList.add(emp);\n\t\t\t}\n\t\t\treturn empList;\n\t\t} catch (DataAccessException excep) {\n\t\t\treturn null;\n\t\t}\n\t}", "public List<Employee> getAllEmployees() {\n\t\tList<Employee> list = new ArrayList<Employee>();\n\t\tlist = template.loadAll(Employee.class);\n\t\treturn list;\n\t}", "public List<Employee> selectAllEmployee() {\n\n\t\t// using try-with-resources to avoid closing resources (boiler plate code)\n\t\tList<Employee> emp = new ArrayList<>();\n\t\t// Step 1: Establishing a Connection\n\t\ttry (Connection connection = dbconnection.getConnection();\n\n\t\t\t\t// Step 2:Create a statement using connection object\n\t\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(SELECT_ALL_employe);) {\n\t\t\tSystem.out.println(preparedStatement);\n\t\t\t// Step 3: Execute the query or update query\n\t\t\tResultSet rs = preparedStatement.executeQuery();\n\n\t\t\t// Step 4: Process the ResultSet object.\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString employeename = rs.getString(\"employeename\");\n\t\t\t\tString address = rs.getString(\"address\");\n\t\t\t\tint mobile = rs.getInt(\"mobile\");\n\t\t\t\tString position = rs.getString(\"position\");\n\t\t\t\tint Salary = rs.getInt(\"Salary\");\n\t\t\t\tString joineddate = rs.getString(\"joineddate\");\n\t\t\t\tString filename =rs.getString(\"filename\");\n\t\t\t\tString path = rs.getString(\"path\");\n\t\t\t\temp.add(new Employee(id, employeename, address, mobile, position, Salary, joineddate,filename,path));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tdbconnection.printSQLException(e);\n\t\t}\n\t\treturn emp;\n\t}", "@Override\r\n\tpublic List<Employee> findAllEMployees() {\n\t\tList<Employee> employees = new ArrayList<Employee>();\r\n\t\tString findData = \"select * from employee\";\r\n\r\n\t\ttry {\r\n\t\t\tStatement s = dataSource.getConnection().createStatement();\r\n\r\n\t\t\tResultSet set = s.executeQuery(findData);\r\n\r\n\t\t\twhile (set.next()) {\r\n\t\t\t\tString name = set.getString(1);\r\n\t\t\t\tint id = set.getInt(\"empId\");\r\n\t\t\t\tint sal = set.getInt(\"salary\");\r\n\t\t\t\tString tech = set.getString(\"technology\");\r\n\t\t\t\tEmployee employee = new Employee(id, sal, name, tech);\r\n\t\t\t\temployees.add(employee);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn employees;\r\n\r\n\t}", "@Override\n\tpublic List<Map<String, String>> employeeList() throws Exception {\n\t\treturn null;\n\t}", "public static void EmployeeTest()\r\n\t{\n\t\t\tScanner getVar = new Scanner(System.in);\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\t//Arrays to hold final values.\r\n\t\t\tString[] employeeNameArr = new String[100];\r\n\t\t\tdouble[] employeeSalArr = new double[100];\r\n\t\t\t\r\n\t\t\t//Variable for user choice.\r\n\t\t\tint choice;\r\n\t\t\t\r\n\t\t\t//Loop the menu until exit.\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t//Creating the menu.\r\n\t\t\t\tSystem.out.println(\"1. Create employee\\n2. Give Employee 10% Raise\\n3. Display Employees\\n4. Exit\");\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"Enter a choice: \");\r\n\t\t\t\tchoice = input.nextInt();\r\n\t\t\t\t\r\n\t\t\t\tswitch(choice)\r\n\t\t\t\t{\r\n\t\t\t\t/*CREATE EMPLOYEE: ASKS FOR USERS NAME AND MONTHLY SALARY\r\n\t\t\t\t \t\t\t\tCONVERTS THE MONTHLY SALARY TO YEARLY SALARY\r\n\t\t\t\t \t\t\t\tENSURES THAT THE EMPLOYEE IS PAYED.*/\r\n\t\t\t\tcase 1:\r\n\t\t\t\t{\r\n\t\t\t\t\t//Setting Employee's First Name\r\n\t\t\t\t\tSystem.out.print(\"Enter Employee's First Name: \");\r\n\t\t\t\t\tString fName = getVar.next();\r\n\t\t\t\t\tsetFirstName(fName);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Setting Employee's Last Name\r\n\t\t\t\t\tSystem.out.print(\"Enter Employee's Last Name: \");\r\n\t\t\t\t\tString lName = getVar.next();\r\n\t\t\t\t\tsetLastName(lName);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Setting Employee's Monthly Salary\r\n\t\t\t\t\twhile(true) {\r\n\t\t\t\t\t\tSystem.out.print(\"Enter the Employee's MONTHLY Salary: \");\r\n\t\t\t\t\t\tdouble createSal = getVar.nextDouble()*12;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t//Making Sure the Employee is Paid Properly\r\n\t\t\t\t\t\tif(createSal<=0) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Invalid Salary\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tsetMonthlySalary(createSal);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//Pushes the names and values into an array.\r\n\t\t\t\t\t\t\tfor(int i = 0; i <= employeeNameArr.length; i++)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(employeeNameArr[i] == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\temployeeNameArr[i] = getFirstName() + \" \" + getLastName();\r\n\t\t\t\t\t\t\t\t\temployeeSalArr[i] = getMonthlySalary();\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\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t/*GIVE EMPLOYES 10% RAISE: ADDS 10% TO THE MONTHLY SALARY\r\n\t\t\t\t \t\t\t\t\t\tALLOWS USER TO CHOOSE EMPLOYEE FROM LIST\r\n\t\t\t\t \t\t\t\t\t\tMAKES SURE THERE IS AT LEAST ONE EMPLOYEE*/\t\r\n\t\t\t\tcase 2:\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Confirming that there is at least one employee\r\n\t\t\t\t\tif(employeeNameArr[0] == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"There are currently no employees.\\n\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Listing each employee and their yearly salary (i+1 to avoid displaying 0)\r\n\t\t\t\t\tfor(int i = 0; employeeNameArr[i] != null; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println((i+1)+\". \"+employeeNameArr[i]);\r\n\t\t\t\t\t\tSystem.out.println(\"$\"+employeeSalArr[i]+\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//User inputs which employee gets the raise.\r\n\t\t\t\t\tSystem.out.print(\"Which employee should receive the raise? : \");\r\n\t\t\t\t\tint salChoice = getVar.nextInt();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Calculating the raise to the monthly salary\r\n\t\t\t\t\temployeeSalArr[salChoice-1] = (employeeSalArr[salChoice-1]/12) * .10 + employeeSalArr[salChoice-1]/12;\r\n\t\t\t\t\t//Converting monthly salary to yearly salary\r\n\t\t\t\t\temployeeSalArr[salChoice-1] = employeeSalArr[salChoice-1]*12;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Outputting new information.\r\n\t\t\t\t\tSystem.out.println(\"New yearly salary for \" + employeeNameArr[salChoice-1] + \": \" + employeeSalArr[salChoice-1] + \"\\n\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t/*DISPLAY EMPLOYEES: MAKES SURE THERE IS AT LEAST ONE EMPLOYEE\r\n\t\t\t\t * \t\t\t\t\tLISTS ALL AVAILABLE EMPLOYEES IN ORDER OF CREATION*/\r\n\t\t\t\tcase 3:\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(employeeNameArr[0] == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"There are currently no employees.\\n\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Displaying the employees \r\n\t\t\t\t\tfor(int i = 0; employeeNameArr[i] != null; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(employeeNameArr[i]);\r\n\t\t\t\t\t\tSystem.out.println(\"$\"+employeeSalArr[i]+\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t/*EXIT: EXITS THE PROGRAM\r\n\t\t\t\t * \t\tFREES THE SCANNERS FROM MEMORY*/\r\n\t\t\t\tcase 4:\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Logging out...\");\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t\tgetVar.close();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn null;\r\n\t}", "public List<Employe> findAllEmployees() {\n\t\treturn null;\n\t}", "public ArrayList<Employee> getEmployeeList()\r\n\t{\r\n\t\treturn new ArrayList<Employee>(empList);\r\n\t}", "private static void LessonCollections() {\n List<Employee> employeeList = new ArrayList<Employee>();\n\n //Create Employees from Employee objects constructor\n Employee emp1 = new Employee(\"Jordan\", \"Walker\");\n Employee emp2 = new Employee(\"Mark\", \"Tuttle\");\n Employee emp3 = new Employee(\"Wayne\", \"Henderson\");\n\n //Add them to employee list\n employeeList.add(emp1);\n employeeList.add(emp2);\n employeeList.add(emp3);\n\n //Create employee and add to list in one line\n employeeList.add(new Employee(\"Erick\", \"Jensen\"));\n\n //Get info from list\n System.out.println(employeeList.get(3).GetFullName());\n\n //Print all full names from employee list\n for(Employee e : employeeList) {\n System.out.println(e.GetFullName());\n }\n\n }", "public static void addEmployee(Scanner input, ArrayList<Employee> newEmployee){\n Employee newEmp = new Employee();\n String empNumber, empHireDate;\n System.out.print(\"Please enter the employee's first and last name: \");\n newEmp.setName(input.nextLine());\n System.out.print(\"Please enter the new employee's Employee Number.\\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: \");\n empNumber = input.nextLine();\n newEmp.setNumber(verifyEmpNum(input, empNumber));\n System.out.print(\"Please enter the new employee's hire date.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1,J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n empHireDate = input.nextLine();\n newEmp.setDate(verifyHireDate(input, empHireDate));\n \n newEmployee.add(newEmp);\n \n }", "public void listAll(){\n /*\n for(int i=0;i<employeesList.size();i++){\n System.out.println(i);\n Employee employee=(Employee)employeesList.get(i);\n System.out.print(employeesList.get(i));\n */ \n \n \n //for used to traverse employList in order to print all employee's data\n for (int i = 0; i < employeesList.size(); i++) {\n System.out.println(\"Name: \" + employeesList.get(i).getName()); \n System.out.println(\"Salary_complement: \"+employeesList.get(i).getSalary_complement()); \n \n }\n \n \n }", "@Override\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn null;\n\t}", "public List<Employee> getAllEmployees(){\n\t\tList<Employee> employees = employeeDao.findAll();\n\t\tif(employees != null)\n\t\t\treturn employees;\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\treturn null;\n\t}", "public static void main (String[] args){\n Empleado[] listaEmpleados = new Empleado[10];\n \n //Asignamos objetos a cada posición\n listaEmpleados[0] = new Empleado(\"Manuel\", \"30965835V\");\n listaEmpleados[1] = new Empleado(\"Miguel\", \"30965835V\");\n listaEmpleados[2] = new Empleado(\"Pedro\", \"30965835V\");\n listaEmpleados[3] = new Empleado(\"Samuel\", \"30965835V\");\n listaEmpleados[4] = new Empleado(\"Vanesa\", \"30965835V\");\n listaEmpleados[5] = new Empleado(\"Alberto\", \"30965835V\");\n listaEmpleados[6] = new Empleado(\"Roberto\", \"30965835V\");\n listaEmpleados[7] = new Empleado(\"Carlos\", \"30965835V\");\n listaEmpleados[8] = new Empleado(\"Ernesto\", \"30965835V\");\n listaEmpleados[9] = new Empleado(\"Javier\", \"30965835V\");\n\n /*Empleado[] empleados = {\n empleado1, empleado2, empleado3, null,null,null, null,\n null,null,null\n }*/\n \n //Imprimimos el array sin ordenar\n imprimeArrayPersona(listaEmpleados);\n \n //Creamos el objeto de la empresa\n Empresa empresa0 = new Empresa(\"Indra\", listaEmpleados);\n \n //Usamos la clase array para ordenar el array de mayor a menos\n Arrays.sort(listaEmpleados);\n\n //Imprimimos de nuevo el array\n imprimeArrayPersona(listaEmpleados);\n \n //Imprimimos la empresa\n System.out.println(empresa0);\n \n //Guardamos en un string la lista de nombres de un objeto empresa\n String listado = Empresa.listaEmpleado(empresa0.empleado).toString();\n \n System.out.println(listado);//Imprimimos el listado como un string\n \n //Imprimimos el array de los nombres de los empleados de la empresa\n System.out.println(Arrays.toString(Empresa.listaEmpleadoArray(listado)));\n \n //Método que imprime los empleados de una empresa separados por comas\n Empresa.listaEmpleado(listado);\n \n /*Empresa[] listaEmpresa = new Empresa[4];\n \n listaEmpresa[0] = new Empresa(\"Intel\", listaEmpleados);\n listaEmpresa[1] = new Empresa(\"AMD\", listaEmpleados);\n listaEmpresa[2] = new Empresa(\"Asus\", listaEmpleados);\n listaEmpresa[3] = new Empresa(\"Shaphire\", listaEmpleados);\n System.out.println(Arrays.toString(listaEmpresa));\n Arrays.sort(listaEmpresa);\n System.out.println(Arrays.toString(listaEmpresa));*/\n \n \n }", "public List<Employee> getEmployeesOnly() {\n\t\treturn edao.listEmployeOnly();\n\t}", "public com.example.nettyserver.protobuf.Employee.EmployeeInfo getEmployeelist() {\n return employeelist_ == null ? com.example.nettyserver.protobuf.Employee.EmployeeInfo.getDefaultInstance() : employeelist_;\n }", "public EmployeeList() {\r\n initComponents();\r\n\r\n empName = getEmployeeName();\r\n empPosition = getEmployeePosition();\r\n System.out.println(empName + \"----- \" + empPosition);\r\n details = (ArrayList<String>) setEmployeeDetails(empName, empPosition);\r\n initializeComponents(details);\r\n\r\n }", "@GetMapping(value=\"/searchEmpData\")\n\tpublic List<Employee> getAllEmployees()\n\t{\n\t\treturn this.integrationClient.getAllEmployees();\n\t}", "public List<Employee> getEmployees();", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"shiyong@cs.sunysb.edu\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "@Override\n\tpublic com.ssaga.human.service.List<EmployeeDto> empList() {\n\t\treturn null;\n\t}", "public List<Employee> getAllEmployee(){\n List<Employee> employee = new ArrayList<Employee>();\n employeeRepository.findAll().forEach(employee::add);\n return employee;\n }", "public List<Employee> getListOfAllEmployees() {\n\t\tlista = employeeDao.findAll();\r\n\r\n\t\treturn lista;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\t\n\t\tpublic List<Employee> listEmployee() throws SQLException {\n\t\t\treturn (List<Employee>) employeeDAO.listEmployee();\n\t\t}", "@Override\n\tpublic List<EmployeeBean> getEmployeeList() throws Exception {\n\t\treturn employeeDao.getEmployeeList();\n\t}", "public static void main(String[] args) {\n\n ArrayList<Person> addressBook = new ArrayList<>();\n\n\n\n Person individual; //create an object of type Person\n Scanner scan = new Scanner(System.in);\n\n for(int i=1; i <= 5; i++) {\n\n individual = new Person();\n\n\n System.out.println(\"Please enter your first name \");\n individual.setFirstName(scan.nextLine());\n\n\n System.out.println(\"Please enter your last name \");\n individual.setLastName(scan.nextLine());\n\n\n System.out.println(\"Please enter address \");\n individual.setAddress(scan.nextLine());\n\n\n System.out.println(\"Please enter phone \");\n individual.setPhone(scan.nextLine());\n\n System.out.println(\"Enter email \");\n individual.setEmail(scan.nextLine());\n\n addressBook.add(individual); //adding an individual to the arraylist\n\n\n }\n\n for(Person eachPerson: addressBook){\n System.out.println(\"First names are \" + eachPerson.getFirstName() );\n\n }\n }", "@Override\n\tpublic List<Employee> getAllEmployees() {\n\t\t\n\t\tlog.debug(\"EmplyeeService.getAllEmployee() return list of employees\");\n\t\treturn repositary.findAll();\n\t}", "public static void printEmployees() {\n List<Employee> employees = null;\n try {\n employees = employeeRepository.getAll(dataSource);\n } catch (SQLException e) {\n LOGGER.error(e.getMessage());\n }\n if (employees.isEmpty()) {\n System.out.println(\"\\n\" + resourceBundle.getString(\"empty.list\") + \"\\n\");\n LOGGER.warn(\"The list of employees is empty\");\n return;\n }\n System.out.println();\n employees.forEach(System.out::println);\n }", "@Override\r\n\tpublic List<Employee> selectAllEmployee() {\n\t\treturn null;\r\n\t}", "public List<Employee> getAll() {\n\t\treturn edao.listEmploye();\n\t}", "@Override\n public List<Employee> getAllEmployees() {\n return null;\n }", "public List<Employee> findEmployee(String name) {\n\t\tCriteriaQuery<Employee> createQuery = emp.getCriteriaBuilder().createQuery(Employee.class);\n\t\tRoot<Employee> root = createQuery.from(Employee.class);\n\t\tcreateQuery.where(root.get(\"name\").in(name));\n\t\treturn emp.createQuery(createQuery).getResultList();\n\t}", "public static ArrayList<Employee> getAllEmployee() throws SQLException {\n\t\tConnection connection = DatabaseConnection.getConnection();\n\t\tArrayList<Employee> employee = new ArrayList<>();\n\t\tString query = \"SELECT * FROM EMPLOYEE\";\n\t\tPreparedStatement pStatement = connection.prepareStatement(query);\n\t\tResultSet resultSet = pStatement.executeQuery();\n\t\twhile (resultSet.next()) {\n\t\t\temployee.add(new Employee(resultSet.getString(\"empId\"), resultSet\n\t\t\t\t\t.getString(\"ename\")));\n\t\t}\n\t\treturn employee;\n\t}", "public java.util.List<andrewNamespace.xsdconfig.EmployeeDocument.Employee> getEmployeeList()\r\n {\r\n final class EmployeeList extends java.util.AbstractList<andrewNamespace.xsdconfig.EmployeeDocument.Employee>\r\n {\r\n @Override\r\n public andrewNamespace.xsdconfig.EmployeeDocument.Employee get(int i)\r\n { return ColleaguesImpl.this.getEmployeeArray(i); }\r\n \r\n @Override\r\n public andrewNamespace.xsdconfig.EmployeeDocument.Employee set(int i, andrewNamespace.xsdconfig.EmployeeDocument.Employee o)\r\n {\r\n andrewNamespace.xsdconfig.EmployeeDocument.Employee old = ColleaguesImpl.this.getEmployeeArray(i);\r\n ColleaguesImpl.this.setEmployeeArray(i, o);\r\n return old;\r\n }\r\n \r\n @Override\r\n public void add(int i, andrewNamespace.xsdconfig.EmployeeDocument.Employee o)\r\n { ColleaguesImpl.this.insertNewEmployee(i).set(o); }\r\n \r\n @Override\r\n public andrewNamespace.xsdconfig.EmployeeDocument.Employee remove(int i)\r\n {\r\n andrewNamespace.xsdconfig.EmployeeDocument.Employee old = ColleaguesImpl.this.getEmployeeArray(i);\r\n ColleaguesImpl.this.removeEmployee(i);\r\n return old;\r\n }\r\n \r\n @Override\r\n public int size()\r\n { return ColleaguesImpl.this.sizeOfEmployeeArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new EmployeeList();\r\n }\r\n }", "public void renewEmployeesList(){\n employees = new ArrayList<>();\n }", "public List<EmployeeTO> getAllEmployees() {\n\t\t\r\n\t\treturn EmployeeService.getInstance().getAllEmployees();\r\n\t}", "@Override\n\tpublic List<Employee> findAllEmployee() {\n\t\treturn null;\n\t}", "@Override\n\tpublic ArrayList<Employee> getEmpList() throws HrExceptions {\n\t\tSystem.out.println(\"In getEmpList() of Dao\");\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Employee> getEmpList() throws EmpException {\n\t\treturn dao.getEmpList();\n\t}", "HashSet<String> displayEmployee();", "public static List<Employee> getAllEmployees(){\n\t\t// Get the Datastore Service\n\t\tlog.severe(\"datastoremanager-\" + 366);\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tlog.severe(\"datastoremanager-\" + 368);\n\t\tQuery q = buildAQuery(null);\n\t\tlog.severe(\"datastoremanager-\" + 370);\n\t\t// Use PreparedQuery interface to retrieve results\n\t\tPreparedQuery pq = datastore.prepare(q);\n\t\tlog.severe(\"datastoremanager-\" + 373);\n\t\t//List for returning\n\t\tList<Employee> returnedList = new ArrayList<>();\n\t\tlog.severe(\"datastoremanager-\" + 376);\n\t\t//Loops through all results and add them to the returning list \n\t\tfor (Entity result : pq.asIterable()) {\n\t\t\tlog.severe(\"datastoremanager-\" + 379);\n\t\t\t//Vars to use\n\t\t\tString actualFirstName = null;\n\t\t\tString actualLastName = null;\n\t\t\tBoolean attendedHrTraining = null;\n\t\t\tDate hireDate = null;\n\t\t\tBlob blob = null;\n\t\t\tbyte[] photo = null;\n\t\t\t\n\t\t\t//Get results via the properties\n\t\t\ttry {\n\t\t\t\tactualFirstName = (String) result.getProperty(\"firstName\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tactualLastName = (String) result.getProperty(\"lastName\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tattendedHrTraining = (Boolean) result.getProperty(\"attendedHrTraining\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\thireDate = (Date) result.getProperty(\"hireDate\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tblob = (Blob) result.getProperty(\"picture\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tphoto = blob.getBytes();\n\t\t\t} catch (Exception e){}\n\t\t\tlog.severe(\"datastoremanager-\" + 387);\n\t\t\t\n\t\t\t//Build an employee (If conditionals for nulls)\n\t\t\tEmployee emp = new Employee();\n\t\t \temp.setFirstName((actualFirstName != null) ? actualFirstName : null);\n\t\t \temp.setLastName((actualLastName != null) ? actualLastName : null);\n\t\t \temp.setAttendedHrTraining((attendedHrTraining != null) ? attendedHrTraining : null);\n\t\t \temp.setHireDate((hireDate != null) ? hireDate : null);\n\t\t \temp.setPicture((photo != null) ? photo : null);\n\t\t \tlog.severe(\"datastoremanager-\" + 395);\n\t\t \treturnedList.add(emp);\n\t\t}\n\t\tlog.severe(\"datastoremanager-\" + 398);\n\t\treturn returnedList;\n\t}", "@Override\n\tpublic List<Employee> getEmpleados() {\n\t\treturn repositorioEmployee.findAll();\n\t}", "public void bulkAdd(){\n employees.add(new Employee(23.0, 15000.0, \"Shayan\"));\n employees.add(new Employee(22.0, 60000.0, \"Rishabh\"));\n employees.add(new Employee(23.0, 45000.0, \"Ammar\"));\n employees.add(new Employee(25.0, 30000.0, \"Fahad\"));\n employees.add(new Employee(21.0, 50000.0, \"Ankur\"));\n }", "@Override\n\tpublic List<Employee> findAllEmployees() {\n\t\treturn employeeRepository.findAllEmployess();\n\t}", "public void updateEmployees(List<Employe> employees) {\n\t\t\n\t}", "public static void main (String args[] ){\n\t\tScanner scanner = new Scanner( System.in );\r\n\t\tSystem.out.print ( \" 1. Load Employee (From File) \\n 2. Exit Program \\n Enter Your Selection: \" );\r\n\t\tint input = scanner.nextInt();\r\n\t\t\r\n\t\t//if user inputs 1 read the text file and print employees loaded from the file\r\n\t\tif (input == 1 ){\r\n\t\t\tString[] Data;\r\n\t\t\t/**\r\n\t\t\t**create four arrays each of type StaffPharmacist, PharmacyManager, StaffTechnician, Senior technician\r\n\t\t\t**in order to store the employee objects. create arrays of length 1\r\n\t\t\t**/\r\n\t\t\tStaffPharmacist [] Pharmacist = new StaffPharmacist[1];\t\t\r\n\t\t\tPharmacyManager [] Manager = new PharmacyManager[1];\t\t\t\r\n\t\t\tStaffTechnician [] staffTech = new StaffTechnician[1];\t\t\t\r\n\t\t\tSeniorTechnician [] seniorTech = new SeniorTechnician[1];\r\n\t\t\ttry{\r\n\t\t\t\t//read the text file using scanner\r\n\t\t\t\tFile file = new File(\"employees.txt\");\r\n\t\t\t\t\t\t\r\n\t\t\t\tScanner sc = new Scanner(file);\r\n\t\t\t\t\t\r\n\t\t\t\t//while text file has next line split the text to store all elements in to an array\r\n\t\t\t\twhile (sc.hasNextLine()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//read the text file and store it in an array called data. split the text file at , and read until we have next line\r\n\t\t\t\t\tData = sc.nextLine().split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t//create 4 employee objects of each employee type \r\n\t\t\t\t\tPharmacyManager pharmacyManager = new PharmacyManager(Data);\r\n\t\t\t\t\tStaffPharmacist staffPharmacist = new StaffPharmacist(Data);\r\n\t\t\t\t\tStaffTechnician staffTechnician = new StaffTechnician(Data);\r\n\t\t\t\t\tSeniorTechnician seniorTechnician = new SeniorTechnician(Data);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tint i;\r\n\t\t\t\t\t/** parse through the text files to check the job id number.\r\n\t\t\t\t\tif the job id is one than the employee is pharmacy manager and there fore store it in an array of type pharmacy manager, else if job id == 2 than it is a staff pharmacist there fore store the staff pharmacist employee in the respective array. else if job id == 3 the employee is a staff technician therefore store the employee object staff technician in array of type staff technician and if the id == 4 than the employee is senior technician so store the employee senior technician in an array of type senior technician\r\n\t\t\t\t\t**/\r\n\t\t\t\t\tfor( i = 0; i < Data.length; i = i + 4){\r\n\t\t\t\t\t\tif( Integer.parseInt(Data[i]) == 1 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tManager[0] = pharmacyManager;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 2 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tPharmacist[0] = staffPharmacist;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 3 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tstaffTech[0] = staffTechnician;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 4 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tseniorTech[0] = seniorTechnician;\r\n\t\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\t\t\r\n\t\t\t\t//close the file \r\n\t\t\t\tsc.close();\r\n\t\t\t\t\t\r\n\t\t\t\t//print that the file loaded success fully\r\n\t\t\t\tSystem.out.println ( \" \\n File Successfully Loaded! \" );\r\n\t\t\t\t\t\r\n\t\t\t\t//set a boolean variable named keepgoing equal to true.\r\n\t\t\t\tboolean keepGoing = true;\r\n\t\t\t\t//as long as keep going remains true, do the following steps\r\n\t\t\t\twhile(keepGoing){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//ask the user what they would like to do next\r\n\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t\t//if user inputs 3 that is tries to print checks prior to entering hours worked than throw an error\r\n\t\t\t\t\t\tif(input == 3){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSystem.out.println( \" Please enter the hours worked (Option #2) before trying to calculate the paycheck amounts! \" );\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//again ask the user after throwing the exception about what they would like to do\r\n\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do this steps as long as user inputs 1 or 2\r\n\t\t\t\t\t\tdo{\r\n\t\t\t\t\t\t\t//if the user inputs 1 print the employee information described in respective classes of employees\r\n\t\t\t\t\t\t\tif(input == 1){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tManager[0].printPharmacyManager();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tPharmacist[0].printStaffPharmacist();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tseniorTech[0].printSeniorTechnician();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tstaffTech[0].printStaffTechnician();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//if the user inputs 2 prompt the user asking the number of hours worked by employees\r\n\t\t\t\t\t\t\telse if(input == 2){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tSystem.out.print( \" \\n Please enter the hours worked: \" );\r\n\t\t\t\t\t\t\t\tint workingHours = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//than again ask user what they would like to do\r\n\t\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t/**if user inputs 3 after they entered number of hours employees worked than calculate the employee pay checks\r\n\t\t\t\t\t\t\t\tusing the calculate pay method defined in employee class\r\n\t\t\t\t\t\t\t\tget the employees pay rate by using getHourlyRate method defined in employee class\r\n\t\t\t\t\t\t\t\t**/\r\n\t\t\t\t\t\t\t\tif(input == 3){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tManager[0].calculatePay(workingHours, Manager[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tPharmacist[0].calculatePay(workingHours, Pharmacist[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tstaffTech[0].calculatePay(workingHours, seniorTech[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tseniorTech[0].calculatePay(workingHours, staffTech[0].getHourlyRate() );\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\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//again show the menu to the user asking them what they would like to do\r\n\t\t\t\t\t\t\t//if user enters one or two or three repeat the above steps else exit the loop\r\n\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}while(input == 1 || input == 2 );\r\n\t\t\t\t\t}while(input == 3);\r\n\t\t\t\t\t//if user enters 4 set keepGoing = false print good bye and exit the loop.\r\n\t\t\t\t\tif(input == 4){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tkeepGoing = false;\r\n\t\t\t\t\t\tSystem.out.println( \" Goodbye! \" );\r\n\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//if the file is not found in the system throw an IO exception printing file not found\t\t\t\t\t\t\t\r\n\t\t\t}catch(FileNotFoundException fnfe){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t//catch the exception if the file is not found\r\n\t\t\t\tSystem.out.println(\" File Load Failed! \\n java.io.FileNotFoundException: employees.txt ( The system cannot find the file specified) \\n Program Exiting..... \");\r\n\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t//if the user inputs 2 in the main menu bar exit the loop and say goodBye!\r\n\t\tif(input == 2){\r\n\t\t\t\t\r\n\t\t\tSystem.out.println ( \"\\n Good Bye! \\n\" );\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "public String getAllEmployees() {\n\t\t\n\t\tString allEmployees = \"\\n\";\n\t\t\n\t\tfor(AbsStaffMember staffMember : repository.getAllMembers())\n\t\t{\n\t\t\tallEmployees += \"\\t- \" + staffMember.getName() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn allEmployees;\n\t}", "public List<Employees>getEMPMenaning() {\n\tString sql = \"SELECT Id_employees, Name_and_surname, Password, Work_role FROM employees \";\n\t\n\tList<Employees>list = new ArrayList<Employees>();\n\t\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\tEmployees getEMPMenaning = new Employees();\n\t\t\tgetEMPMenaning.setIdEmployees(resultSet.getInt(\"Id_employees\"));\n\t\t getEMPMenaning.setNameAndSurname(resultSet.getString(\"Name_and_surname\"));\n\t\t getEMPMenaning.setPassword(resultSet.getString(\"Password\"));\n\t\t getEMPMenaning.setWorkRole(resultSet.getInt(\"Work_role\"));\n\t\t \n\t\t\tlist.add(getEMPMenaning);\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\n\n\t\n}", "public Employee[] getAllEmployees() {\n List<Employee> emps = new ArrayList<>();\n // Iterate through the memory array and find Employee objects\n for (Employee e : employeeArray) {\n if (e != null) {\n emps.add(e);\n }\n }\n return emps.toArray(new Employee[0]);\n }", "public static void main(String[] args) {\n String inputLine = \"\";\n char action = ' ';\n Employee[] employees = new Employee[] {\n new Employee(\"John\", \"+1-518-383-9901\", 9000),\n new Employee(\"Tom\", \"+1-518-383-6664\", 12000),\n new Employee(\"Diane\", \"+1-518-383-4025\", 5000),\n new Employee(\"Robert\", \"+1-518-383-7971\", 16000),\n new Employee(\"Patrick\", \"+1-518-383-5503\", 7000),\n new Employee(\"David\", \"+1-518-383-9905\", 8000),\n new Employee(\"Kate\", \"+1-518-383-3334\", 2000),\n new Employee(\"Mary\", \"+1-518-383-4545\", 4500),\n new Employee(\"Steven\", \"+1-518-383-7845\", 3500),\n new Employee(\"Bill\", \"+1-518-383-0456\", 7500),\n new Employee(\"Peter\", \"+1-518-383-3578\", 2500),\n new Employee(\"Mike\", \"+1-518-383-3895\", 3500),\n new Employee(\"Amanda\", \"+1-518-383-1001\", 4000)\n } ;\n Company company = new Company(\"1741 Technology Drive, Suite 400, San Jose, California 95110\", \"+1-408-273-8900\", employees);\n\n while (true) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n System.out.println(\"Input 1 to add new employee/ Input 2 to remove employee / Input 3 to get list of company employees\");\n System.out.println(\"Input 3 to print sum of all salaries/ Input 4 to print average salary / Input 5 to print employee name with the highest salary\");\n System.out.println(\"Input 7 to Exit\");\n inputLine = br.readLine();\n action = inputLine.charAt(0);\n\n switch (action) {\n case '1':\n System.out.print(\"Input employee name: \");\n String name = br.readLine();\n System.out.print(\"Input employee phone: \");\n String phone = br.readLine();\n System.out.print(\"Input employee salary: \");\n String salaryStr = br.readLine();\n int salary = Integer.parseInt(salaryStr);\n Employee emp = new Employee(name, phone, salary);\n company.addEmployee(emp);\n break;\n case '2':\n System.out.println(\"Input name of employee to remove\");\n String employeeName = br.readLine();\n company.removeEmployee(employeeName);\n break;\n case '3':\n System.out.println(\"Here is list of all company employees\");\n company.printEmployees();\n break;\n case '4':\n System.out.println(\"Sum of all salaries is \" + company.getSumOfAllSalaries());\n break;\n case '5':\n System.out.println(\"Average company salary is \" + company.getAverageSalary());\n break;\n case '6':\n System.out.println(\"Employee name with the highest salary is \" + company.getEmployeeNameWithMaxSalary());\n break;\n case '7': System.exit(0);\n default:\n System.out.println(\"You have written wrong or not supported action!\");\n break;\n }\n }\n catch (NumberFormatException e) {\n System.out.println(\"You entered non-number salary for employee!\");\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public EmployeeMain() {\n employeeSalary_2015 = new ArrayList<Employee>();\n employeeSalary_2014 = new ArrayList<Employee>();\n }", "public List<User> getAllEmployees(String companyShortName);", "@Logging\n\tprivate List<Employee> getEmployee(List<String> aFileList) {\n\t\t\n\t\tList<Employee> aEmployeList = aFileList.stream()\n\t\t\t\t.skip(1) // skip the header line\n\t\t\t\t.map(line -> line.split(\",\")) // transform each line to an array\n\t\t\t\t.map(employeeData -> new Employee(Long.parseLong(employeeData[0]), employeeData[1], employeeData[2],\n\t\t\t\t\t\temployeeData[3], employeeData[4])) // transform each array to an entity\n\t\t\t\t.collect(Collectors.toList());\n\t\t\n\t\treturn aEmployeList;\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tProject project=new Project();\n\t\tproject.id=100;\n\t\tproject.name=\"Java_Training\";\n\t\t\n\t\tArrayList<Employee>empList=new ArrayList<Employee>();\n\t\tScanner sc=new Scanner(System.in);\t\t\n\t\tSystem.out.println(\"Enter the no of employees\");\n\t\t\n\t\tint limit=sc.nextInt();\n\t\t\n\t\tSystem.out.println(\"Enter Id,Name\");\n\t\tfor(int i=0;i<limit;i++){\n\t\t\tEmployee emp=new Employee();\t\t\n\t\temp.id=sc.nextInt();\n\t\temp.name=sc.next();\n \n empList.add(emp); \n\t\t}\n project.employees=empList;\n \n System.out.println(project.id+\"\\n\"+project.name);\n for(Employee temp:project.employees){\n System.out.println(temp.id);\n System.out.println(temp.name);\n }\n\t}", "public void setEmployees(int _employees){\n employees = _employees;\n }", "@Override\n @Transactional\n public List<Employee> getlistEmployee() {\n \tList<Employee> employees = entityManager.createQuery(\"SELECT e FROM Employee e\", Employee.class).getResultList();\n \tfor(Employee p : employees)\n \t\tLOGGER.info(\"employee list::\" + p);\n \treturn employees;\n }", "public static void main(String[] args){\n List<ArrayListEmployee5> ale = new ArrayList<>();\n// Creating employees\n ArrayListEmployee5 emp1 = new ArrayListEmployee5(1,\"Aaaa\",\"12 lane 3\",234567);\n ArrayListEmployee5 emp2 = new ArrayListEmployee5(2,\"Bbbbb\",\"12 lane 4\",1232343.354F);\n ArrayListEmployee5 emp3 = new ArrayListEmployee5(3,\"Cccc\",\"12 lane 9\",455677);\n// Adding employee to arraylist\n ale.add(emp1);\n ale.add(emp2);\n ale.add(emp3);\n// Input to search for a particular employee id\n System.out.println(\"Enter employee id to search in arraylist\");\n Scanner input = new Scanner(System.in);\n int empid = input.nextInt();\n// iterator to search arraylist\n Iterator<ArrayListEmployee5> iterator = ale.iterator();\n// condition to search for a employee with id\n while(iterator.hasNext()) {\n ArrayListEmployee5 employee = iterator.next();\n if(employee.id == empid) {\n System.out.println(employee);\n }\n\n }\n\n\n }", "public static void printEmployees(ArrayList<Employee> newEmployee){\n for(int i = 0; i < newEmployee.size(); i++){\n System.out.print(newEmployee.get(i).toString());\n }\n }", "public List<Employees> getEmployeesList()\n {\n return employeesRepo.findAll();\n }", "public void actionPerformed(ActionEvent e){\n\t\t\t\tif(employees.size() >= 1){\n\t\t\t\t\tif(empNameCombo.getSelectedIndex() != 0){\n\t\t\t\t\t\tfor(Employee employee: employees){\n\t\t\t\t\t\t\tif(employee.getEmployeeName().equalsIgnoreCase(empNameCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\t\tempJTextArea.setText(\"Employee ID: \"+employee.getEmployeeId()\n\t\t\t\t\t\t\t+\"\\n Name: \" +employee.getEmployeeName() \n\t\t\t\t\t\t\t+\"\\n Access Level: \" +employee.getAccess()\n\t\t\t\t\t\t\t+\"\\n Password: \" +employee.getPassword()\n\t\t\t\t\t\t\t+\"\\n Salary: \" +employee.getSalary());\n\t\t\t\t\t\t\tempNameCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Employee.\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No Employees Found\");\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic List<EmployeeBean> getAllEmployees() {\n\t\tLOGGER.info(\"starts getAllEmployees method\");\n\t\tLOGGER.info(\"Ends getAllEmployees method\");\n\t\t\n\t\treturn adminEmployeeDao.getAllEmployees();\n\t}", "@Override\n\tpublic List<Employee> queryEmp() {\n\t\treturn null;\n\t}", "@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < employees.length; i++) {\n result.append(employees[i] + \"\\n\");\n }\n return result.toString();\n }", "@GetMapping(value=\"/searchEmpData/{fname}\")\n\tpublic List<Employee> getEmployeeByName(@PathVariable (value = \"fname\") String fname)\n\t{\n\t\treturn integrationClient.getEmployees(fname);\n\t}", "@Override\n\tpublic void getAllEmployee() {\n\t\t\n\t}", "@Override\n\tpublic List<Employee> getEmpInfo() {\n\t\treturn null;\n\t}", "public com.example.nettyserver.protobuf.Employee.EmployeeInfo getEmployeelist() {\n if (employeelistBuilder_ == null) {\n return employeelist_ == null ? com.example.nettyserver.protobuf.Employee.EmployeeInfo.getDefaultInstance() : employeelist_;\n } else {\n return employeelistBuilder_.getMessage();\n }\n }", "private void searchJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchJMenuItemActionPerformed\n try\n {\n // Get data on new employee--a separate form is better \n String name = JOptionPane.showInputDialog(\"Name of Employee:\"); \n boolean empExists = true;\n Employee emp = null;\n // Search for employee in employeesArrayList and if not found\n // write employee to external file and store in the ArrayList\n emp = searchEmployee(name);\n if(emp != myEmployee)\n empExists = false;\n else if(emp.equals(\"\"))\n empExists = false;\n \n if(empExists)\n {\n employeeJComboBox.setSelectedItem(emp.getName());\n listModel.clear(); // Clean JList\n String nameAndGrossPay; // Contains name and gross pay \n // Calculate gross pay\n double grossPay = emp.getHours() * emp.getRate();\n //Display name and gross pay in JList\n nameAndGrossPay = emp.getName() + \" = \" + \n dollars.format(grossPay);\n listModel.addElement(\"Gross Pay for Employee\");\n listModel.addElement(nameAndGrossPay);\n // Add the list model to the JList\n employeeJList.setModel(listModel); \n enablePrint(true);\n }\n else\n {\n JOptionPane.showMessageDialog(null, \"Employee Not Found\", \"Error!\",\n JOptionPane.WARNING_MESSAGE); \n clearAll();\n }\n }\n catch (NullPointerException ex) \n {\n JOptionPane.showMessageDialog(null, \"Employee Not Found\", \"Error!\",\n JOptionPane.WARNING_MESSAGE); \n }\n }", "@Override\r\n\tpublic List<Employee> getAllEmployeeList() throws Exception {\n\t\t\r\n\t\treturn (List<Employee>) employeeRepository.findAll();\r\n\t}", "public void checkEmployeeEvents(Employee e){\r\n int choice;\r\n for (Event ev: e.eventsArray)\r\n {\r\n System.out.println((e.eventsArray.indexOf(ev)+1)+ \" \" + ev.getEventName());\r\n }\r\n if((e.eventsArray.size()==0))\r\n System.out.println(e.getName() + \" has no events\");\r\n else {\r\n System.out.println(\"Which event do you want to check? Input number!\");\r\n choice = kbd.nextInt();\r\n System.out.println(e.eventsArray.get(choice - 1).toString());\r\n }\r\n }", "public Manager(Employee[] employees) {\n\t\tsuper();\n\t\tthis.employees = employees;\n\t}", "private void displayEmployee()\n {\n employeeJComboBox.removeAllItems();\n int location = employeeJComboBox.getSelectedIndex();\n String[] namesArray = new String[employees.size()];\n for(int i = 0; i < employees.size(); i++)\n {\n namesArray[i] = employees.get(i).getName();\n employeeJComboBox.addItem(namesArray[i]);\n }\n if(location < 0)\n {\n employeeJComboBox.setSelectedIndex(0);\n }\n else\n {\n employeeJComboBox.setSelectedIndex(location);\n }\n }", "@Override\n\tpublic List<Employee> viewAllEmployees() {\n\t\t CriteriaBuilder cb = em.getCriteriaBuilder();\n\t\t CriteriaQuery<Employee> cq = cb.createQuery(Employee.class);\n\t\t Root<Employee> rootEntry = cq.from(Employee.class);\n\t\t CriteriaQuery<Employee> all = cq.select(rootEntry);\n\t \n\t\t TypedQuery<Employee> allQuery = em.createQuery(all);\n\t\t return allQuery.getResultList();\n\t}", "@Override\r\n\tpublic List<Employe> getEmployes() {\n\t\treturn dao.getEmployes();\r\n\t}", "@RequestMapping(value = \"/listEmployees\", method = RequestMethod.GET)\r\n\tpublic Employee employees() {\r\n System.out.println(\"---BEGIN\");\r\n List<Employee> allEmployees = employeeData.findAll();\r\n \r\n System.out.println(\"size of emp == \"+allEmployees.size());\r\n System.out.println(\"---END\");\r\n Employee oneEmployee = allEmployees.get(0);\r\n\t\treturn oneEmployee;\r\n }" ]
[ "0.7060818", "0.68630415", "0.68166006", "0.68057615", "0.6780708", "0.6768378", "0.6663359", "0.6568899", "0.6545665", "0.65130866", "0.65028274", "0.6493503", "0.6485727", "0.64848655", "0.64841676", "0.64596146", "0.64167637", "0.64101774", "0.6377153", "0.6359917", "0.6354801", "0.63538843", "0.6343465", "0.6342688", "0.6339028", "0.6332877", "0.6308253", "0.63032275", "0.6301338", "0.6299618", "0.6262218", "0.6255063", "0.62550133", "0.6247564", "0.62390363", "0.6234616", "0.6233173", "0.6233173", "0.6232731", "0.6222202", "0.6216591", "0.6212482", "0.61909527", "0.61838573", "0.61782426", "0.6168416", "0.61631817", "0.6162397", "0.6144959", "0.6135306", "0.6126214", "0.6119539", "0.61133873", "0.610286", "0.6082784", "0.60679865", "0.60661703", "0.60645455", "0.6062911", "0.606096", "0.60588485", "0.60570616", "0.60537297", "0.6050136", "0.60395336", "0.6037526", "0.60332274", "0.60267586", "0.60232365", "0.6022148", "0.60179406", "0.60047984", "0.60030854", "0.5990292", "0.598719", "0.5972256", "0.5971123", "0.59630287", "0.5961655", "0.5961196", "0.59601045", "0.59594905", "0.5958041", "0.59445435", "0.5938881", "0.5931673", "0.591532", "0.5912682", "0.59062", "0.5901094", "0.5894699", "0.5892973", "0.5887907", "0.5887844", "0.5879525", "0.58702546", "0.586906", "0.586315", "0.58624375", "0.58620286" ]
0.6193507
42
This method welcomes the user and explains what the user is able to do with the program.
public static void welcome(){ System.out.print("Welcome to the Human Resources Management System."+ "\nThis program allows you to add new employees and print all employees."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayWelcomeMessage() {\n\t\tSystem.out.println(\"Welcome to my program! :D\");\n\t\tSystem.out.println(\" Ryan Shupe \");\n\t\tSystem.out.println(\" CSCI 1250-004 Project 3 \");\n\t}", "private void printWelcome()\n {\n System.out.println(\"Welcome to the DodgySoft Technical Support System.\");\n System.out.println();\n System.out.println(\"Please tell us about your problem.\");\n System.out.println(\"We will assist you with any problem you might have.\");\n System.out.println(\"Please type 'bye' to exit our system.\");\n }", "public void welcome() {\n System.out.println(\"\\n---------------------------------------------------------------------\" +\n \"\\n\\tBienvenue sur le plateau de Donjon et Dragons !!!\" +\n \"\\n---------------------------------------------------------------------\");\n System.out.println(\"\\nPrêt à en découdre ?\");\n System.out.println(\"\\nNB : tu peux quitter le jeu à tout moment en tapant 'q'.\");\n }", "private void displayWelcome()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\" Welcome to Sunrise/Sunset Power Controller \");\n System.out.println(\" http://www.savagehomeautomation.com \");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "private void printWelcome() {\n System.out.println(\"Welcome to the BINFO adventure game!\");\n System.out.println(\"Type 'help' if you need help.\");\n }", "private void welcome() {\n System.out.println(Strings.MAIN_WELCOME_MESSAGE);\n System.out.println();\n }", "private void printWelcome()\n {\n System.out.println();\n System.out.println(\"Welcome to the World of Zuul!\");\n System.out.println(\"You are invited to a reception at the Taylor’s mansion.\");\n System.out.println(\"However, during the evening the dead body of Mr Taylor is found in the poolroom.\");\n System.out.println(\"You have to solve this investigation.\");\n System.out.println(\"But be careful the case is not simple as it seems to be.\");\n System.out.println();\n System.out.println(\"You are currently in the \" + currentRoom.getDescription());\n System.out.print(\"Let's start your investigation !\");\n printExits();\n \n }", "public void generalPrompt() {\n System.out.println(\"What would you like to do?\");\n }", "public static void printUserGuide() {\n System.out.println(Message.USER_COMMAND_GUIDE);\n System.out.println(\"Go ahead!\");\n }", "private void printWelcome()\n {\n System.out.println();\n System.out.println(\"Welcome to the World of Zuul!\");\n System.out.println(\"World of Zuul is a new, incredibly boring adventure game.\");\n System.out.println(\"Type 'help' if you need help.\");\n System.out.println();\n player.look();\n }", "public void printWelcome() {\n\t\tSystem.out.println(\"****************************************************\");\n\t\tSystem.out.println(\">> Welcome to TaskManager\");\n\t\tSystem.out.print(\">> You have \" + this.taskController.getUndoTaskNumber() + \" tasks to do\");\n\t\tSystem.out.println(\" and \" + this.taskController.getDoneTaskNumber() + \" tasks are done!\");\n\t\tSystem.out.println(\">> Pick an option:\");\n\t\tSystem.out.println(\">> (1) Show Task List by date\");\n\t\tSystem.out.println(\">> (2) Show Task List by project\");\n\t\tSystem.out.println(\">> (3) Add a New Task\");\n\t\tSystem.out.println(\">> (4) Edit a Task\");\n\t\tSystem.out.println(\">> (5) Remove a Task\");\n\t\tSystem.out.println(\">> (6) Save\");\n\t\tSystem.out.println(\">> (7) Exit\");\n\t\tSystem.out.println(\"****************************************************\\n\");\n\t}", "public static void WelcomeMessage () {\n System.out.println(\"===============================================\");\r\n System.out.println(\" C O M P U T E R\");\r\n System.out.println(\" S C I E N C E\");\r\n System.out.println(\" R O U L E T T E\");\r\n System.out.println(\"====================================== v1.2 ===\");\r\n System.out.println();\r\n }", "public static void welcome()\n\t{\n\t\tSystem.out.println(\"Monty Hall Game\");\n\t\tSystem.out.println(\"Pick a door number first. \");\n\t\tSystem.out.println(\"You will have a chance to switch \");\n\t\tSystem.out.println(\"after a door has been revealed. \");\n\t\n\t}", "public void printWelcomeMessage()\n\t{\n\t\tSystem.out.println(\"Hello \"+teacherName+\", Have a Nice time teaching \"+subject+\" ! \");\n\t}", "public static void Welcome (){ //this method outputs welcome information and possibly other relevant information to user\r\n System.out.println(\"Welcome to the Maze Pathfinder Program! \\n\\nThis program can either create a random maze or accept input from a file to create one. Then the program will find a path from the start point to the end point in the maze.\\nEnjoy! \");\r\n System.out.println(\"\\n\");\r\n }", "public static void main(String[] args) {\n System.out.println(\"Hi Everyone\");\n //it is needed to be able to work with the team remotely\n System.out.println(\"I am happy to learn something new\");\n //i need to focus on practicing\n }", "private void printWelcome()\n {\n System.out.println();\n System.out.println(\"You are lost in the woods!\");\n System.out.println(\"The sun will go down soon and it is up to you to find your way out!\");\n System.out.println(\"Type '\" + CommandWord.HELP + \"' if you need help.\");\n System.out.println();\n System.out.println(currentRoom.getLongDescription());\n }", "private void printWelcome() {\n System.out.println();\n System.out.println(\"Welcome to the game Stranded!\");\n System.out.println(\"Stranded is an adventure game, where you are to \"\n + \"find out how to escape the island\");\n System.out.println(\"\");\n System.out.println(\"The first step on the journey is to find your lost boardingpass, that has the numeber 126AB, \");\n System.out.println(\"and then board the plane, to get your well deserved long and safe vacation...\");\n System.out.println(\"Good luck\");\n System.out.println(\"Type '\" + CommandWord.HELP + \"' if you need help.\");\n System.out.println();\n System.out.println(currentRoom.getLongDescription());\n }", "private void printWelcome()\n {\n System.out.println();\n System.out.println(\"Welcome to Hammerfell\");\n System.out.println(\"Hammerfell is an unforgiving, lonely world, brimming with monsters, theieves, and death.\");\n System.out.println(\"For years, Malice has plagued the land. Turning what once was a world gleaming with hope and prosperity into a desolate waste land.\");\n System.out.println(\"You will surely not make it out alive, and your death will most likely end in the brutal whipping and nashing of teeth from your enemies.\");\n System.out.println(\"Good Luck :)\");\n System.out.println(\"Type 'help' if you need help.\");\n System.out.println(\"Name is set to Greggory. If you desire to change it, type name.\");\n System.out.println();\n System.out.println(currentRoom.getLongDescription());\n }", "private void printWelcome()\n {\n System.out.println();\n System.out.println(\"Welcome to the World of Zuul!\");\n System.out.println(\"World of Zuul is a new, incredibly boring adventure game.\");\n System.out.println(\"Type '\" + CommandWord.HELP + \"' if you need help.\");\n System.out.println();\n System.out.println(currentRoom.getLongDescription());\n }", "private void printWelcomeMenu() {\n System.out.println(\"Welcome to Michael's Retail Shop Inventory Management App!\");\n }", "protected void printWelcome() {\n System.out.println(\"Slot machine game!\");\n System.out.println(\"- - - - - - - - - -\");\n }", "public static void intro() {\n System.out.println(\"HI! Welcome to the virus simulation! This is a placeholder message.\");\r\n\r\n }", "private void displayWelcome(){\n clrscr();\n System.out.println(\"\\nWelcome to the Tickets Viewer!\\n\");\n System.out.println(\"We Recommend you Maximize this window for the best User Experience!\\n\");\n System.out.println(\"Please press \\\"Enter\\\" to continue\");\n }", "private void printWelcome()//Method was given\n {\n System.out.println();\n System.out.println(\"Welcome to Zork!\");\n System.out.println(\"This Zork is a new adventure game. Find your way through the building and get to the exit by solving riddles and escaping each room. Good luck!\");\n System.out.println(\"Type 'help' to see a list of command words that you can use to play the game.\");\n System.out.println();\n System.out.println(currentRoom.longDescription());\n }", "public static void displayEndingMessage() {\n\t\tSystem.out.println(\"Thank you for using my program!\");\n\t}", "public void welcomeMsg(){\r\n\t\tdisplay(\"***************************\");\r\n\t\tdisplay(\"Hi you and welcome on STYF!\");\r\n\t\tdisplay(\"Are you already registred(Y/N)?\");\r\n\t}", "public static void printWelcomeMessage() {\n\n System.out.println(\" Hi! I am easy\");\n printLogo();\n printLine();\n System.out.println(\" What can I do for you?\");\n printLine();\n }", "private void printWelcomeMessage() {\r\n\t\tthis.printSeparator();\r\n\t\tSystem.out.println(\"-- Welcome to the JumpIN game --\\n\");\r\n\t\tSystem.out.println(\"Currently five levels are developed.\");\r\n\t\tSystem.out.println(\"Playing level 2\");\r\n\t\tSystem.out.println(\"To move a piece:\"); \r\n\t\tSystem.out.println(\"-Enter the piece's location\");\r\n\t\tSystem.out.println(\"-Wait for validation\");\r\n\t\tSystem.out.println(\"-Enter the location you want to move the piece to\\n\");\r\n\t\tthis.printSeparator();\r\n\t}", "public void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(\" go quit help\");\n }", "public void displayMessage()\n\t{\n\t\t// this statement calls getCourseName to get the\n\t\t// name of the course this GradeBook represents\n\t\tSystem.out.printf( \"Welcome to the grade book for\\n%s!\\n\", getCourseName() );\n\t}", "public static void intro() {\n printHighlighted(\"SECRET SANTA\");\n printHighlighted(\"This program allows you to add the participants of the\");\n printHighlighted(\"game and assign them matches to send and receive gifts.\");\n }", "public static void main(String[] args) {\n\t\tString response=JOptionPane.showInputDialog(null,\"Do you know how to write code?\");\n\t\t// 2. If they say \"yes\", tell them they will rule the world.\n\t\tif(response.equalsIgnoreCase(\"yes\") || response.equalsIgnoreCase(\"sure\"))\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null,\"Than you will rule the world!\");\n\t\t}\n\t\t// 3. Otherwise, wish them good luck washing dishes.\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\"Good luck on your career!\");\n\t\t}\n\t}", "public static void printWelcome(String firstName, String lastName){\n System.out.println(\"Dear \" + firstName + \" \" + lastName + \", \");\n System.out.println(\"Welcome to my first program!\");\n System.out.println(\"I hope you enjoy the show.\");\n System.out.println(\" Sincerely,\\n Nico Rojas\");\n }", "private void about() {\n System.out.println(Strings.MAIN_ABOUT_MESSAGE);\n System.out.println();\n }", "public static void intro() {\n System.out.println(\"This program asks for your monthly income and\");\n System.out.println(\"expenses, then tells you your net monthly income.\");\n System.out.println();\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public static void main(String[] args) \r\n {\n javax.swing.JOptionPane.showMessageDialog(null, \"WELCOME TO THE WORLD OF JIMUT\", \"J I M UT\" , JOptionPane.INFORMATION_MESSAGE);\r\n JOptionPane.showMessageDialog(null, \" WELCOME TO JAVA\",\"PROGRAMMING IS FUN\", JOptionPane.INFORMATION_MESSAGE);\r\n javax.swing.JOptionPane.showMessageDialog(null, \" THANKYOU\" , \"JAVA PROGRAMMING\" , JOptionPane.INFORMATION_MESSAGE);\r\n }", "public void help() {\n System.out.println(\"Type 'commands' to list all \" +\n \"available commands\");\n System.out.println(\"Type 'start' to play game\");\n System.out.println(\"Player to remove the last stone loses!\");\n System.out.println();\n }", "private void printWelcome() {\n printChronologerMessage(UiMessageHandler.printGreeting());\n }", "private static void printFirstOp(){\n\t\tSystem.out.println(\"Welcome to SimpleSocial!\\n\"\n\t\t\t\t+ \"Type:\\n\"\n\t\t\t\t+ \"- register\\n\"\n\t\t\t\t+ \"- login\\n\"\n\t\t\t\t+ \"- exit\");\n\t}", "private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }", "public static void printHelp() {\n System.out.println(\"Usage:\");\n System.out.println(\"To create a user, post a message.\");\n System.out.println(\"<user name> [command] | <another user name>\");\n System.out.println(\"<user name> -> message - post a message\");\n System.out.println(\"<user name> - read timeline messages\");\n System.out.println(\"<user name> follows <another user name> - follow another user\");\n System.out.println(\"<user name> wall - display users wall\");\n System.out.println(\"-help - help\");\n System.out.println(\"exit - exit the program\");\n }", "public static void help() {\n System.out.println(\"MENU : \");\n System.out.println(\"Step 1 to create a default character.\"); // create and display a character\n System.out.println(\"Step 2 to display characters.\");\n System.out.println(\"Step 3 to choice a character for list his details. \");\n System.out.println(\"Step 4 to start fight between 2 characters\");\n System.out.println(\"step 5 to remove a character.\");\n System.out.println(\"step 6 to create a Warrior.\");\n System.out.println(\"step 7 to create a Wizard.\");\n System.out.println(\"step 8 to create a Thief.\");\n System.out.println(\"Step 9 to exit the game. \");\n System.out.println(\"Step 0 for help ....\");\n\n }", "public static void Welcome(){\n\t\tSystem.out.println(\"******************************************\");\n\t\tSystem.out.println(\" BASEBALL STANDING ANALYZER\" );\n\t\tSystem.out.println(\"******************************************\");\n\t}", "public static void farewell(){\n System.out.print(\"Thank you for using the Human Resources Mangement System.\\nGoodbye!\");\n System.exit(0);\n }", "public void displaymenu()\r\n\t{\r\n\t\tSystem.out.println(\"Welcome to the COMP2396 Authentication system!\");\r\n\t\tSystem.out.println(\"1. Authenticate user\");\r\n\t\tSystem.out.println(\"2. Add user record\");\r\n\t\tSystem.out.println(\"3. Edit user record\");\r\n\t\tSystem.out.println(\"4. Reset user password\");\r\n\t\tSystem.out.println(\"What would you like to perform?\");\r\n\t}", "public static void printNormalWelcome() {\n printMessage(NORMAL_WELCOME_LINE);\n }", "private void showHelp() {\n System.out.println(\"new: \");\n System.out.println(\"new chess and throw the chess bevor away\");\n System.out.println(\"move from to:\");\n System.out.println(\"take the pawn from position from to position to \");\n System.out.println(\"print:\");\n System.out.println(\"print the chess now \");\n System.out.println(\"help:\");\n System.out.println(\"show help\");\n System.out.println(\"quit:\");\n System.out.println(\"quit out\");\n }", "private static void displayMainMenu() {\n\t\tSystem.out.println(\"\\t Main Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"au <username> : Registers as a new user \\n\"\n\t\t\t\t+ \"du <username> : De-registers a existing user \\n\"\n\t\t\t\t+ \"li <username> : To login \\n\"\n\t\t\t\t+ \"qu : To exit \\n\"\n\t\t\t\t+\"====================================\\n\");\n\t}", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around in a dense woods.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public static void printInfo() {\n System.out.println(\n \"This program asks user to enter vertical and horizontal sides\\n\"\n + \"for envelope A and envelope B both respectively.\"\n + \"Then it tells if some of envelope can fit into another.\\n\"\n + \"If user wants to repeat procedure with new envelopes he types y or yes (case insensitive)\\n\"\n + \"after the question \\\"Would you like to try again?\\\"\");\n }", "public void about()\n\t{\n\t\treadout.setText(\"Thank you for using haste by Beau Bouchard 2013\");\n\t\toutputText(\"\");\n\t}", "private static void help(){\r\n System.out.println(\"\\n\\t Something Went Wrong\\nType\\t java -jar nipunpassgen.jar -h\\t for mor info\");\r\n System.exit(0);\r\n }", "public static void prompt() {\n\t\tSystem.out.printf(\"\\n입력 > \");\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"Welcome Abdullah Malik\");\r\n\t\tSystem.out.println(\"How Are You?\");\r\n\t\tSystem.out.println(\"What the progress of FYP?\");\r\n\t\tSystem.out.println(\"Its Good.\");\r\n\t\t\r\n\t\t\t}", "private void goodbye() {\n System.out.print(\"\\nThanks for using the linked list program!\\n\");\n }", "public void doSayGoodBye(){\n try {\n UtilityMethods.print(\"Hope you have enjoyed the day...\");\n } catch (Exception e) {\n UtilityMethods.print(e.getMessage());\n }\n }", "public static void main(String[] args){\n System.out.println(\" -----------\");\n System.out.println(\" | WELCOME |\");\n System.out.println(\" -----------\");\n System.out.println(\" ^ ^ ^ ^ ^ ^\");\n System.out.println(\" / \\\\/ \\\\/ \\\\/ \\\\/ \\\\/ \\\\\"); //Use double backslashes to only\n System.out.println(\"|-G--J--J--2--1--5-|\"); //print one of them.\n System.out.println(\" \\\\ /\\\\ /\\\\ /\\\\ /\\\\ /\\\\ /\");\n System.out.println(\" v v v v v v\");\n //Print out short autobioographic statement\n System.out.println(\"I've gone hiking in the Austrian Alps and I plan\");\n System.out.println(\"to go back to backpack Europe for a summer\");\n \n }", "public void printTitleAndPrompt(){\n System.out.println(\"\\n\\nSimple Chat System (CLIENT)\");\n System.out.println(\"Programmed by Kelvin Watson, OSU ID 932540242, onid: watsokel)\");\n System.out.println(\"**************************************************************\");\n System.out.println(\"TCP Connection established. Welcome to Simple Chat.\");\n System.out.print(\"Enter a user name (max 10 characters): \");\n }", "private static void DisplayHelp() {\r\n System.out.println();\r\n System.out.println(\"Usage: Consumes messages from a topic/queue\");\r\n System.out.println();\r\n System.out.println(\" SampleConsumerJava [ < response_file ]\");\r\n System.out.println();\r\n return;\r\n }", "public static void checkFromUser() {\n\t\tif (askUser(\"Please type y to execute program and any other key to stop\").contentEquals(\"y\")) {\n\t\t\tSystem.out.println(\"Continuing\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Terminating program\");\n\t\t\tSystem.exit(0); \n\t\t}\n\t\tSystem.out.println(\"Calculating the greatest house income, the greatest income after expenditure and greatest savings from the given 3 families\");\n\t}", "public void intro()\n\t{\n\t\tname = \"daryl\";\n\t\tSystem.out.println(\"Welcome to classroom hang man.\");\n\t\tSystem.out.println(\"In this game, you will get to guess 3 letters, while\");\n\t\tSystem.out.println(\"trying to figure out whose name it is in this classroom.\");\n\t\tSystem.out.println(\"After you've guessed 3 letters, you will get 1 guess at\");\n\t\tSystem.out.println(\"whose name it actually is.\");\n\t}", "private void welcome() {\n }", "public static void mainText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'STU' 3.'FAC' 4.SQL query 5.'MORE' -for more detail about options\");\n\t}", "public void displayMessage(){\n //getCouseName obtém o nome do curso\n System.out.printf(\"Welcome to the grade book for \\n%s!\\n\\n\", getCouseName());\n }", "public Welcome() {\r\n name = askName();\r\n Scanner in = new Scanner(System.in);\r\n Hello.display(\"Well, nice to meet you \"+name+\"!\" +\r\n \"\\nWhat is your favorite kind of pet?\");\r\n Pet favoritePet = Pet.dog;\r\n Hello.display(\"\");\r\n favoritePet = Pet.valueOf(in.next());\r\n favoritePet.provideFact();\r\n Hello.display(\"\\nHey, \"+name+\"! What is your favorite kind of vehicle?\");\r\n Vehicle favoriteVehicle = Vehicle.spaceship;\r\n Hello.display(\"\");\r\n favoriteVehicle = Vehicle.valueOf(in.next());\r\n favoriteVehicle.provideFact();\r\n Hello.display(\"Alright, goodbye \"+name+\"! Until next time!\");\r\n in.close();\r\n }", "public void welcomeToGame() {\r\n System.out.println(\" _____ _____ _ \\n\" +\r\n\" / ____| / ____| | | \\n\" +\r\n\" | (___ _ __ __ _ ___ ___ | | _ __ __ _ __ __ | | ___ _ __ \\n\" +\r\n\" \\\\___ \\\\ | '_ \\\\ / _` | / __| / _ \\\\ | | | '__| / _` | \\\\ \\\\ /\\\\ / / | | / _ \\\\ | '__|\\n\" +\r\n\" ____) | | |_) | | (_| | | (__ | __/ | |____ | | | (_| | \\\\ V V / | | | __/ | | \\n\" +\r\n\" |_____/ | .__/ \\\\__,_| \\\\___| \\\\___| \\\\_____| |_| \\\\__,_| \\\\_/\\\\_/ |_| \\\\___| |_| \\n\" +\r\n\" | | \\n\" +\r\n\" |_| \\n\\n\");\r\n System.out.println(\"=== WELCOME ===\\n\");\r\n System.out.println(\"Welcome to the game\\n\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the prision.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(parser.showCommands());\n }", "@Override\n\tpublic void display() {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twelcomeMessage();\n\t\tloggy.info(\"User sees the welcome menu\");\n\t\t\n\t\tboolean loggingIn = true;\n\t\tUser user = null;\n\t\twhile(loggingIn) {\n\t\t\tuser = loginMenu(sc);\n\t\t\t\n\t\t\tif(user != null) {\n\t\t\t\tloggingIn = false;\n\t\t\t\tloggy.info(\"User logged in!\");\n\t\t\t}else {\n\t\t\t\tloggy.warn(\"User failed to login\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Welcome user! Here are your tasks!\");\n\t\tboolean running = true;\n\t\t\n\t\t\n\t\twhile(running) {\n\t\t\t\n\t\t\tSystem.out.println(\"Here is the todo menu!\");\n\t\t\tSystem.out.println(\"1) See all todos\");\n\t\t\tSystem.out.println(\"2) Add a todo\");\n\t\t\tSystem.out.println(\"3) Delete a todo\");\n\t\t\tSystem.out.println(\"4) Set a todo to complete\");\n\t\t\tSystem.out.println(\"0) Exit the application \");\n\t\t\t\n\t\t\tString input = sc.nextLine();\n\t\t\t\n\t\t\tswitch(input) {\n\t\t\t\n\t\t\tcase \"1\": \n\t\t\t\tseeAllTodos(user);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\taddTodoMenu(user, sc);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tdeleteTodoMenu(user);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tcompleteTodoMenu(user);\n\t\t\t\tbreak;\n\t\t\tcase \"0\":\n\t\t\t\trunning = false;\n\t\t\t\tSystem.out.println(\"Thanks for using my service!\");\n\t\t\t\tbreak;\n\t\t\tdefault: \n\t\t\t\tSystem.out.println(\"Invalid input, try again!\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "private void printMainMenu(){\n\t\tprint(\"Please choose from the options below\", System.lineSeparator()+\"1.Login\", \"2.Exit\");\n\t}", "public void displayWelcomeMsg();", "public void toolAccepted()\n {\n printOut(cliToolsManager.simpleQuestionsMaker(\"Strumento accettato\", 40, true));\n }", "public void printWelcomeMessage() {\n\t\tprintASCIIArt(\"WELCOME\");\n\t\tString string = \"¯\\\\\\\\_(ツ)_/¯\";\n\t\tCharset.forName(\"UTF-8\").encode(string);\n\t\tSystem.out.println(\"\\t<------------------------- Welcome to the World of Legends and Monsters ---------------------->\");\n\t\tSystem.out.println(\"\\t< >\");\n\t\tSystem.out.println(\"\\t< You mysteriously teleported into the mysterious world where gods and monster lived, >\");\n\t\tSystem.out.println(\"\\t< while coding for your final project that you spent the last 3 weeks procrastinating. >\");\n\t\tSystem.out.println(\"\\t< What better way to procrastinate even more? Control these gods and slay some beasts. >\");\n\t\tSystem.out.println(\"\\t< Don't worry. This is not like sword art online where if you die in the game, you die >\");\n\t\tSystem.out.println(\"\\t< in real life. But if you fail the final project, your parents will disown you.\" + string +\" >\");\n\t\tSystem.out.println(\"\\t< As you read more about this game, you realize you're just wasting time not fighting. >\");\n\t\tSystem.out.println(\"\\t< So fight Champion, live to see tomorrow and for thats when you will start coding again. >\");\n\t\tSystem.out.println(\"\\t< >\");\n\t\tSystem.out.println(\"\\t<--------------------------------------------------------------------------------------------->\");\n\n\t\tSystem.out.println();\n\t\t\n\t}", "@Override\n\tpublic void HowtoEat() {\n\t\tSystem.out.println(\"Fırında Ye!!\");\n\t}", "private void printGoodbye() {\n System.out.println();\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "public static void studentText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'ADD' 3.'REMOVE' 4.'FIND 5.'ENROLL' 6.'WITHDRAW' 7.'SCHEDULE' 8.'MORE' -for more detail about options\");\n\t}", "private static void displayHelp(){\n System.out.println(\"-host hostaddress: \\n\" +\n \" connect the host and run the game \\n\" +\n \"-help: \\n\" +\n \" display the help information \\n\" +\n \"-images: \\n\" +\n \" display the images directory \\n\" +\n \"-sound: \\n\" +\n \" display the sounds file directory \\n\"\n\n );\n }", "public void printWelcomeMessage() {\n System.out.println(LOGO + System.lineSeparator()\n + BORDER_LINE + System.lineSeparator()\n + \" Hello!, I'm Duke\" + System.lineSeparator()\n + \" How can I help you?\" + System.lineSeparator()\n + BORDER_LINE);\n }", "public void showWelcome() {\n String logo = \" ____ _ \\n\"\n + \"| _ \\\\ _ _| | _____ \\n\"\n + \"| | | | | | | |/ / _ \\\\\\n\"\n + \"| |_| | |_| | < __/\\n\"\n + \"|____/ \\\\__,_|_|\\\\_\\\\___|\\n\";\n System.out.println(\"Hello from\\n\" + logo);\n showLine();\n System.out.println(\"Hello! I'm Duke\");\n System.out.println(\"What can I do for you?\");\n showLine();\n }", "public static void main(String[] args) {\n System.out.println(\"Hello dear Human. You are here to learn a very important message sent to your inbox. Let's go and \" +\n \"check it\");\n }", "public static int welcomeUser(){\n \n int answer;\n JOptionPane.showMessageDialog(null, \"Welcome to Rock, Paper, Scissors, Lizard, Spock!\");\n JOptionPane.showMessageDialog(null, \"In this twist of the popular Rock, Paper, Scissors game a\"+\n \"\\nlizard and Captain Spock join in the epic battle of decision making.\");\n JOptionPane.showMessageDialog(null, \"The rules are as follows: \\nRock beats Scissors. \\nScissors beats Paper.\"+\n \"\\nPaper beats Rock. \\nLizard poisons Spock. \\nSpock vaporizes Rock. \"+\n \"\\nScissors decapitates Lizard. \\nLizard eats Paper. \\nRock smashes Lizard\"+\n \"\\nSpock smashes Scissors.\\nPaper disproves Spock.\");\n JOptionPane.showMessageDialog(null, \"Enter a R for rock,\"+\"\\nEnter a P for paper,\"+ \n \"\\nEnter an S for scissors\"+ \"\\nEnter an L for Lizard,\"+\n \"\\nEnter an X for Capt. Spock.\");\n \n answer = JOptionPane.showConfirmDialog(null,\"\\n Would you like to play now?\", null, JOptionPane.YES_NO_OPTION);\n return answer;\n }", "public static void main(String[] args) {\n\t\tString answer = JOptionPane.showInputDialog(\"Can you write code?(Do not use capitals)\");\t\n\t\t// 2. If they say \"yes\", tell them they will rule the world.\n\t\tif(answer.equals(\"yes\")){\n\t\tJOptionPane.showMessageDialog(null,\" Of course you do, you're in a programming class.\");\t\n\t\t}else if(answer.equals(\"no\")){\n\t\t\tJOptionPane.showMessageDialog(null,\" Are you serios?! You're in a coding class!\");\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null,\" What?\");\n\t\t}\n\t\t// 3. Otherwise, wish them good luck washing dishes.\n\n\t}", "private static void displayMenu() {\n\t\tSystem.out.println(\"\\n\\nWelcome to Seneca@York Bank!\\n\" +\n\t\t\t\t\"1. Open an account.\\n\" +\n\t\t\t\t\"2. Close an account.\\n\" +\n\t\t\t\t\"3. Deposit money.\\n\" +\n\t\t\t\t\"4. Withdraw money.\\n\" +\n\t\t\t\t\"5. Display accounts. \\n\" +\n\t\t\t\t\"6. Display a tax statement.\\n\" +\n\t\t\t\t\"7. Exit\\n\");\n\t}", "public static void printWelcomeMsg() {\r\n final int WELCOME_PREPEND_SPACING_COUNT = 23;\r\n CmdUx.printHBars(preLaunchMsg);\r\n CmdUx.print(\"\\n\".repeat(WELCOME_PREPEND_SPACING_COUNT));\r\n CmdUx.print(\"\\nHello from\\n\" + LOGO);\r\n CmdUx.printHBars(WELCOME_MSG);\r\n }", "public void doWishTheDay(){\n try {\n UtilityMethods.print(\"Welcome to Day 2...\");\n } catch (Exception e) {\n UtilityMethods.print(e.getMessage());\n }\n }", "public static void printHelpGuide() {\n printDivider();\n System.out.println(\"Help arrives!\\n\");\n printUserGuide();\n printDivider();\n }", "private static void doHelp() {\r\n\t\tdoUsage();\r\n\t\tSystem.out.println(\"\\n\" + \"When passed a dictionary and a document, spell check the document. Optionally,\\n\"\r\n\t\t\t\t+ \"the switch -n toggles non-interactive mode; by default, the tool operates in\\n\"\r\n\t\t\t\t+ \"interactive mode. Interactive mode will write the corrected document to disk,\\n\"\r\n\t\t\t\t+ \"backing up the uncorrected document by concatenating a tilde onto its name.\\n\\n\"\r\n\t\t\t\t+ \"The optional -d switch with a dictionary parameter enters dictionary edit mode.\\n\"\r\n\t\t\t\t+ \"Dictionary edit mode allows the user to query and update a dictionary. Upon\\n\"\r\n\t\t\t\t+ \"completion, the updated dictionary is written to disk, while the original is\\n\"\r\n\t\t\t\t+ \"backed up by concatenating a tilde onto its name.\\n\\n\"\r\n\t\t\t\t+ \"The switch -h displays this help and exits.\");\r\n\t\tSystem.exit(0);\r\n\t}", "private void instruct() {\n\t\tif (vsComputer) {\n\t\t\tSystem.out.println(\"\"\"\n 1. Stone\n 2. Paper\n 3. Scissors\n You have to enter your choice\n \"\"\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"Tell me something about yourself\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "public static void introProgram() {\n System.out.println(\"COMMISSION CALCULATOR\");\n System.out.println(\"=====================\");\n System.out.println(\"Welcome to the Commission Calculator. This program will calculate\");\n System.out.println(\"the commission to be paid to employees based on their weekly sales.\");\n System.out.println(\"\");\n System.out.println(\"First, enter the number of employees to calculate commission for. Then,\");\n System.out.println(\"enter the name and sales of each employee. The program will return each\");\n System.out.println(\"employee's commission, as well as total sales, and total and average\");\n System.out.println(\"commissions.\");\n }", "private static void dealwithelp() {\r\n\t\tSystem.out.println(\"1 ) myip - to see your ip address.\");\r\n\t\tSystem.out.println(\"2 ) myport - to see your port number.\");\r\n\t\tSystem.out.println(\"3 ) connect <ip> <port> - connect to peer.\");\r\n\t\tSystem.out.println(\"4 ) list Command - list all the connected peer/peers.\");\r\n\t\tSystem.out.println(\"5 ) send <id> - to send message to peer.\");\r\n\t\tSystem.out.println(\"6 ) terminate <id> - terminate the connection\");\r\n\t\tSystem.out.println(\"7 ) exit - exit the program.\");\r\n\t}", "private void print_help_and_exit() {\n System.out.println(\"A bunch of simple directus admin cli commands\");\n System.out.println(\"requires DIRECTUS_API_HOST and DIRECTUS_ADMIN_TOKEN environment variables to be set\");\n System.out.println();\n\n COMMAND_METHODS.values().forEach(c -> {\n for (String desriptionLine : c.descriptionLines) {\n System.out.println(desriptionLine);\n }\n System.out.println();\n });\n\n System.out.println();\n System.exit(-1);\n }", "public static void showPrompt() {\r\n \r\n System.out.print(\"> \");\r\n \r\n }", "void sayWelcome() {\n\t\tfor (int i = 0; i<=10; i++) {\n\t\t\tSystem.out.println(\"Welcome\");\n\t\t}\n\t}", "private static void help() {\n System.out.println(USAGE); \n System.exit(0);\n }", "private void tutorial(){\n\t\tString msg = \"[Space] = Inicia e pausa o jogo depois de iniciado.\";\n\t\tmsg += \"\\n[Seta esquerda] = Move o paddle para a esquerda.\";\n\t\tmsg += \"\\n[Seta direita] = Move o paddle para a direita.\";\n\t\tmsg += \"\\n[I] = Abre a janela de informaçoes.\";\n\t\tmsg += \"\\n[R] = Reinicia o jogo.\";\n\t\tJOptionPane.showMessageDialog(null, \"\"+msg, \"Informaçoes\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "public static void main(String[] args) {\n\t\tString dominate = JOptionPane.showInputDialog(null, \"Do you are know how to write code?\");\n\n\t\t// 2. If they say \"yes\", tell them they will rule the world.\n\t\tif (dominate.equals(\"Yes\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"You shall dominate world >:D\");\n\t\t}\n\n\t\t// 3. Otherwise, wish them good luck washing dishes.\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"You are have stupid you shall wash dishes >:(\");\n\t\t\t}\n\t\t}", "private static void doUsage() {\r\n\t\tSystem.out.println(\"Usage: SpellChecker [-i] <dictionary> <document>\\n\"\r\n\t\t\t\t+ \" -d <dictionary>\\n\" + \" -h\");\r\n\t}" ]
[ "0.78766966", "0.77177685", "0.7626709", "0.75971335", "0.7592926", "0.7434446", "0.7399405", "0.7398912", "0.73862463", "0.7351685", "0.73251075", "0.73081064", "0.7307297", "0.72831136", "0.7273791", "0.72642624", "0.7258256", "0.7257111", "0.7225453", "0.71959174", "0.71672016", "0.7159607", "0.713516", "0.71183276", "0.7074773", "0.70206594", "0.70123214", "0.69499904", "0.6919005", "0.68775547", "0.68642414", "0.68556285", "0.6821622", "0.6819359", "0.6808516", "0.68053156", "0.6798377", "0.6784164", "0.67716956", "0.6771601", "0.6753542", "0.6747926", "0.67477614", "0.6746125", "0.6734524", "0.67329055", "0.672717", "0.672482", "0.672171", "0.6716545", "0.6708818", "0.6705244", "0.66958225", "0.6693937", "0.66857207", "0.6682685", "0.6677026", "0.66670215", "0.6656294", "0.6653862", "0.6651453", "0.66506493", "0.663898", "0.6635056", "0.6634537", "0.6630631", "0.66294205", "0.66293734", "0.662637", "0.6623642", "0.6619531", "0.6613623", "0.6604028", "0.6600631", "0.6598933", "0.65984476", "0.6596116", "0.6594545", "0.6591249", "0.6589294", "0.6579338", "0.65790325", "0.6576807", "0.6576312", "0.65620726", "0.6548764", "0.6538713", "0.65325713", "0.65237767", "0.65117055", "0.6511044", "0.6510401", "0.6502604", "0.6502195", "0.6494202", "0.64819753", "0.64782655", "0.64729035", "0.64676404", "0.64658415" ]
0.7816374
1
This method shows the user a menu and allows them to pick what kind of employee they want to add, print all employees Name, Number, and Date of Hire, or exit the program.
public static void menu(Scanner input, ArrayList<Employee> newEmployee){ String menuAns; int userAnswer = 0; //Infinite loop until user selected exit while(true){ System.out.print("\nWhat would you like to do at this time?"+ "\n1) Add Employee"+ "\n2) Add Shift Supervisor"+ "\n3) Add Production Worker"+ "\n4) Add Team Leader"+ "\n5) Print employees"+ "\n6) Exit the Program"+ "\nPlease enter a choice: "); menuAns = input.nextLine(); userAnswer = UtilityMethods.verifyInt(input, menuAns); switch(userAnswer){ case 1: addEmployee(input, newEmployee); break; case 2: addShiftSupervisor(input, newEmployee); break; case 3: addProductionWorker(input, newEmployee); break; case 4: addTeamLeader(input, newEmployee); break; case 5: printEmployees(newEmployee); break; case 6: farewell(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEmployee(){\n\t\tSystem.out.println(\"Of what company is the employee?\");\n\t\tSystem.out.println(theHolding.companies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name:\");\n\t\t\tString name = reader.nextLine();\n\t\t\tSystem.out.println(\"Position:\");\n\t\t\tString position = reader.nextLine();\n\t\t\tSystem.out.println(\"Mail:\");\n\t\t\tString mail = reader.nextLine();\n\t\t\tEmployee toAdd = new Employee(name, position, mail);\n\t\t\tSystem.out.println(theHolding.addEmployee(selected, toAdd));\n\t\t}\n\t}", "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}", "public static void main(String[] args){\n ArrayList<Employee> newEmployee = new ArrayList<Employee>();\n \n //Scanner used for user input\n Scanner input = new Scanner(System.in);\n \n welcome();\n menu(input, newEmployee);\n \n }", "public static void EmployeeTest()\r\n\t{\n\t\t\tScanner getVar = new Scanner(System.in);\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\t//Arrays to hold final values.\r\n\t\t\tString[] employeeNameArr = new String[100];\r\n\t\t\tdouble[] employeeSalArr = new double[100];\r\n\t\t\t\r\n\t\t\t//Variable for user choice.\r\n\t\t\tint choice;\r\n\t\t\t\r\n\t\t\t//Loop the menu until exit.\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t//Creating the menu.\r\n\t\t\t\tSystem.out.println(\"1. Create employee\\n2. Give Employee 10% Raise\\n3. Display Employees\\n4. Exit\");\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"Enter a choice: \");\r\n\t\t\t\tchoice = input.nextInt();\r\n\t\t\t\t\r\n\t\t\t\tswitch(choice)\r\n\t\t\t\t{\r\n\t\t\t\t/*CREATE EMPLOYEE: ASKS FOR USERS NAME AND MONTHLY SALARY\r\n\t\t\t\t \t\t\t\tCONVERTS THE MONTHLY SALARY TO YEARLY SALARY\r\n\t\t\t\t \t\t\t\tENSURES THAT THE EMPLOYEE IS PAYED.*/\r\n\t\t\t\tcase 1:\r\n\t\t\t\t{\r\n\t\t\t\t\t//Setting Employee's First Name\r\n\t\t\t\t\tSystem.out.print(\"Enter Employee's First Name: \");\r\n\t\t\t\t\tString fName = getVar.next();\r\n\t\t\t\t\tsetFirstName(fName);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Setting Employee's Last Name\r\n\t\t\t\t\tSystem.out.print(\"Enter Employee's Last Name: \");\r\n\t\t\t\t\tString lName = getVar.next();\r\n\t\t\t\t\tsetLastName(lName);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Setting Employee's Monthly Salary\r\n\t\t\t\t\twhile(true) {\r\n\t\t\t\t\t\tSystem.out.print(\"Enter the Employee's MONTHLY Salary: \");\r\n\t\t\t\t\t\tdouble createSal = getVar.nextDouble()*12;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t//Making Sure the Employee is Paid Properly\r\n\t\t\t\t\t\tif(createSal<=0) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Invalid Salary\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tsetMonthlySalary(createSal);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//Pushes the names and values into an array.\r\n\t\t\t\t\t\t\tfor(int i = 0; i <= employeeNameArr.length; i++)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(employeeNameArr[i] == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\temployeeNameArr[i] = getFirstName() + \" \" + getLastName();\r\n\t\t\t\t\t\t\t\t\temployeeSalArr[i] = getMonthlySalary();\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\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t/*GIVE EMPLOYES 10% RAISE: ADDS 10% TO THE MONTHLY SALARY\r\n\t\t\t\t \t\t\t\t\t\tALLOWS USER TO CHOOSE EMPLOYEE FROM LIST\r\n\t\t\t\t \t\t\t\t\t\tMAKES SURE THERE IS AT LEAST ONE EMPLOYEE*/\t\r\n\t\t\t\tcase 2:\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Confirming that there is at least one employee\r\n\t\t\t\t\tif(employeeNameArr[0] == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"There are currently no employees.\\n\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Listing each employee and their yearly salary (i+1 to avoid displaying 0)\r\n\t\t\t\t\tfor(int i = 0; employeeNameArr[i] != null; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println((i+1)+\". \"+employeeNameArr[i]);\r\n\t\t\t\t\t\tSystem.out.println(\"$\"+employeeSalArr[i]+\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//User inputs which employee gets the raise.\r\n\t\t\t\t\tSystem.out.print(\"Which employee should receive the raise? : \");\r\n\t\t\t\t\tint salChoice = getVar.nextInt();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Calculating the raise to the monthly salary\r\n\t\t\t\t\temployeeSalArr[salChoice-1] = (employeeSalArr[salChoice-1]/12) * .10 + employeeSalArr[salChoice-1]/12;\r\n\t\t\t\t\t//Converting monthly salary to yearly salary\r\n\t\t\t\t\temployeeSalArr[salChoice-1] = employeeSalArr[salChoice-1]*12;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Outputting new information.\r\n\t\t\t\t\tSystem.out.println(\"New yearly salary for \" + employeeNameArr[salChoice-1] + \": \" + employeeSalArr[salChoice-1] + \"\\n\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t/*DISPLAY EMPLOYEES: MAKES SURE THERE IS AT LEAST ONE EMPLOYEE\r\n\t\t\t\t * \t\t\t\t\tLISTS ALL AVAILABLE EMPLOYEES IN ORDER OF CREATION*/\r\n\t\t\t\tcase 3:\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(employeeNameArr[0] == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"There are currently no employees.\\n\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Displaying the employees \r\n\t\t\t\t\tfor(int i = 0; employeeNameArr[i] != null; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(employeeNameArr[i]);\r\n\t\t\t\t\t\tSystem.out.println(\"$\"+employeeSalArr[i]+\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t/*EXIT: EXITS THE PROGRAM\r\n\t\t\t\t * \t\tFREES THE SCANNERS FROM MEMORY*/\r\n\t\t\t\tcase 4:\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Logging out...\");\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t\tgetVar.close();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void showMenu(){\n\t\tSystem.out.println(\"******************************************************\");\n\t\tSystem.out.println(\"************Welcome to the holding program************\");\n\t\tSystem.out.println(\"******************************************************\");\n\t\tint option = -1;\n\t\twhile(option != 0){\n\t\t\tSystem.out.println(\"******************************************************\");\n\t\t\tSystem.out.println(\"***************Please, select an option***************\");\n\t\t\tSystem.out.println(\"******************************************************\");\n\t\t\tSystem.out.println(\"0. To exit of the program\");\n\t\t\tSystem.out.println(\"1. To add a public service company\");\n\t\t\tSystem.out.println(\"2. To add an university company\");\n\t\t\tSystem.out.println(\"3. To add a high school company\");\n\t\t\tSystem.out.println(\"4. To add a technological company\");\n\t\t\tSystem.out.println(\"5. To add a food company\");\n\t\t\tSystem.out.println(\"6. To add a medicine company\");\n\t\t\tSystem.out.println(\"7. Show the information of the holding\");\n\t\t\tSystem.out.println(\"8. Register a poll\");\n\t\t\tSystem.out.println(\"9. To add a employee\");\n\t\t\tSystem.out.println(\"10. Find the extension of a employee\");\n\t\t\tSystem.out.println(\"11. Find the mails of all the employees that are occupied a position\");\n\t\t\tSystem.out.println(\"12. To add a product\");\n\t\t\toption = reader.nextInt();\n\t\t\treader.nextLine();\n\t\t\tswitch(option){\n\t\t\t\tcase 0:\n\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\tpublicService();\n\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tuniversity();\n\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\thighSchool();\n\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\ttechnological();\n\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\tfood();\n\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\tmedicine();\n\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\tSystem.out.println(theHolding.wholeInformation());\n\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\tregisterPoll();\n\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\taddEmployee();\n\t\t\t\tbreak;\n\t\t\t\tcase 10:\n\t\t\t\textensionEmployee();\n\t\t\t\tbreak;\n\t\t\t\tcase 11:\n\t\t\t\tmailsPosition();\n\t\t\t\tbreak;\n\t\t\t\tcase 12:\n\t\t\t\taddProduct();\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Select a correct option\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void extensionEmployee(){\n\t\tSystem.out.println(\"Of what company is the employee?\");\n\t\tSystem.out.println(theHolding.companies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name of the employee:\");\n\t\t\tString nameEmployee = reader.nextLine();\n\t\t\tSystem.out.println(\"How do you want to perform the search:\");\n\t\t\tSystem.out.println(\"L\");\n\t\t\tSystem.out.println(\"Z\");\n\t\t\tSystem.out.println(\"X\");\n\t\t\tSystem.out.println(\"O\");\n\t\t\tSystem.out.println(\"R. spiral by row\");\n\t\t\tchar travel = reader.nextLine().charAt(0);\n\t\t\tSystem.out.println(\"The extension of the cubicle of the employee is \"+theHolding.extensionEmployee(selected, nameEmployee, travel));\n\t\t}\n\t}", "public static void main(String[] args) {\n\r\n System.out.println(\"* * * * * Welcome to the employee inform * * * * * \");\r\n\r\n Employee_Company Jane = new Employee_Company();\r\n Employee_Company Lucas = new Employee_Company();\r\n Employee_Company Intern_Sophia = new Employee_Company();\r\n Employee_Company Intern_Ava = new Employee_Company();\r\n Employee_Company Intern_James = new Employee_Company();\r\n Employee_Company Intern_Nicholas = new Employee_Company();\r\n\r\n\r\n Lucas.Set_name_employee(\"Lucas Smith\");\r\n Lucas.Set_Email_employee(\"Lucas_Smith@TechCompany.org\");\r\n Lucas.Set_role_employee(\"Software Engineer\");\r\n Lucas.setSalary_employee(103438);\r\n\r\n\r\n Jane.Set_name_employee(\"Jane charlotte\");\r\n Jane.Set_Email_employee(\"Jane_Charlotte@TechCompany.org\");\r\n Jane.setSalary_employee(623100);\r\n Jane.Set_role_employee(\"CEO Tech Company\");\r\n\r\n\r\n Intern_Sophia.Set_name_employee(\"Sophia Wood\");\r\n Intern_Sophia.Set_Intern_application('A');\r\n Intern_Sophia.Set_role_employee(\"Intern Artificial Intelligence \");\r\n\r\n\r\n Intern_Ava.Set_name_employee(\"Ava Richardson\");\r\n Intern_Ava.Set_Intern_application('B');\r\n Intern_Ava.Set_role_employee(\"Intern Computer Science\");\r\n\r\n\r\n Intern_James.Set_name_employee(\"James Benjamin\");\r\n Intern_James.Set_Intern_application('B');\r\n Intern_James.Set_role_employee(\"Intern Business Analyst\");\r\n\r\n\r\n Intern_Nicholas.Set_name_employee(\"Nicholas Miller\");\r\n Intern_Nicholas.Set_Intern_application('C');\r\n Intern_Nicholas.Set_role_employee(\"Intern Systems Integration Engineering\");\r\n\r\n\r\n\r\n System.out.println(\"\\n\\t*** Tech Company employee information ***\");\r\n System.out.println(\"1. View Salary\");\r\n System.out.println(\"2. View Name of the Employee\");\r\n System.out.println(\"3. View Email Address\");\r\n System.out.println(\"4. View Employee Role\");\r\n System.out.println(\"5. View Intern Application grade\");\r\n\r\n\r\n\r\n Scanner input = new Scanner(System.in);\r\n System.out.println(\"Direction: Input the number is addressed in Tech Company employee information\");\r\n int input_user = input.nextInt();\r\n\r\n switch (input_user){\r\n case 1 -> {\r\n System.out.println(\"Here is the salary of the employee of Tech Company\");\r\n System.out.println(\"Salary of Software engineering: \"+Lucas.getSalary_employee());\r\n System.out.println(\"Salary of CEO: \"+Jane.getSalary_employee());\r\n }\r\n case 2 ->{\r\n System.out.println(\"Here is the name of the employee of Tech Company\");\r\n System.out.println(\"The software engineering of Tech Company name of the employee is: \"+Jane.Get_name_employee());\r\n System.out.println(\"The CEO Tech Company name of the employee is: \"+Lucas.Get_name_employee());\r\n }\r\n case 3 ->{\r\n System.out.println(\"Here is the Email Address of employee of Tech Company\");\r\n System.out.println(\"Jane Charlotte is CEO of Tech company Email Address its : \"+Jane.Get_Email_employee());\r\n System.out.println(\"Lucas Smith is Software Engineering of Tech Company Email Address its: \"+Lucas.Get_Email_employee());\r\n }\r\n case 4 ->{\r\n System.out.println(\"Here is the Employee Role of Tech Company\");\r\n System.out.println(Jane.Get_role_employee());\r\n System.out.println(Lucas.Get_role_employee());\r\n }\r\n case 5 ->{\r\n System.out.println(\"Here is all the Intern get accepted to Tech Company \");\r\n System.out.println(\"1.\"+Intern_Ava.Get_name_employee()+\" GPA college: \"+Intern_Ava.Get_Intern_application()+\"- \"+\" Application: Accepted \"+Intern_Ava.Get_role_employee());\r\n System.out.println(\"2.\"+Intern_Sophia.Get_name_employee()+\" GPA college: \"+Intern_Sophia.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Sophia.Get_role_employee());\r\n System.out.println(\"3.\"+Intern_James.Get_name_employee()+\" GPA college: \"+Intern_James.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_James.Get_role_employee());\r\n System.out.println(\"4.\"+Intern_Nicholas.Get_name_employee()+\"GPA college: \"+Intern_Nicholas.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Nicholas.Get_role_employee());\r\n }\r\n }\r\n\r\n\r\n\r\n }", "public static void displayMenu() {\r\n System.out.print(\"\\nName Saver Server Menu\\n\\n\"\r\n +\"1. Add a name\\n2. Remove a name\\n3. List all names\\n\"\r\n +\"4. Check if name recorded\\n5. Exit\\n\\n\"\r\n +\"Enter selection [1-5]:\");\r\n }", "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "public void employeeMenu(String activeId) {\n try {\n do {\n System.out.println(EOL + \" ---------------------------------------------------\");\n System.out.println(\"| Employee Screen - Type one of the options below: |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 1. Register a game |\");\n System.out.println(\"| 2. Remove a game |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 3. Register an album |\");\n System.out.println(\"| 4. Remove an album |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 5. Register a customer |\");\n System.out.println(\"| 6. Upgrade a customer |\");\n System.out.println(\"| 7. Remove a customer |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 8. Return rented item |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 9. View all games and albums (sorted) |\");\n System.out.println(\"| 10. View all customers |\");\n System.out.println(\"| 11. View all rentals and history |\");\n System.out.println(\"| 12. View total rent profit |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 13. Send message to customer |\");\n System.out.println(\"| 14. Send message to employee |\");\n System.out.println(\"| 15. Read my messages \" + messageController.checkNewMsg(activeId, \"Employee\") + \" |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 16. Return to Main Menu |\");\n System.out.println(\" ---------------------------------------------------\");\n String[] menuAcceptSet = new String[]{\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\"}; // Accepted responses for menu options\n String userInput = getInput.getMenuInput(\"menuOptionPrompt\", menuAcceptSet); // Calling Helper method\n switch (userInput.toLowerCase()) {\n case \"1\" -> dartController.addGame();\n case \"2\" -> dartController.deleteProduct(\"Game\");\n case \"3\" -> dartController.addAlbum();\n case \"4\" -> dartController.deleteProduct(\"Album\");\n case \"5\" -> userController.addCustomer();\n case \"6\" -> userController.upgradeCustomerView(null);\n case \"7\" -> userController.deleteCustomer();\n case \"8\" -> dartController.returnRental();\n case \"9\" -> productSortView(activeId);\n case \"10\" -> userController.displayCustomers(false);\n case \"11\" -> dartController.viewCurrentRentals();\n case \"12\" -> dartController.viewRentalTotalProfit();\n case \"13\" -> messageController.buildMessage(activeId, \"Employee\", \"Customer\", null, \"message\", null);\n case \"14\" -> messageController.buildMessage(activeId, \"Employee\", \"Employee\", null, \"message\", null);\n case \"15\" -> messageController.openInbox(activeId, \"Employee\");\n case \"16\" -> mainMenu();\n default -> printlnInterfaceLabels(\"menuOptionNoMatch\");\n }\n } while (session);\n } catch (Exception e) {\n printlnInterfaceLabels(\"errorExceptionMenu\", String.valueOf(e));\n }\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\t// create an BasePlusCommEmployee object and assign it to employee\n\t\tBasePlusCommEmployee employee = new BasePlusCommEmployee();\n\n\t\t// prompt user\n\t\tSystem.out.println(\"Please enter the employee ID:\");\n\t\tint employeeId = Integer.parseInt(input.nextLine()); // read a line of text\n\t\temployee.setEmployeeID(employeeId);\n\n\t\tSystem.out.println(\"Please enter the name:\");\n\t\tString employeeName = input.nextLine(); // read a line of text\n\t\temployee.setName(employeeName);\n\n\t\tSystem.out.println(\"Please enter the base salary:\");\n\t\tint employeeSalary = Integer.parseInt(input.nextLine()); // read a line of text\n\t\temployee.setBaseSalary(employeeSalary);\n\n\t\tSystem.out.println(\"Please enter the commission rate:\");\n\t\tdouble employeeCmRate = Double.parseDouble(input.nextLine()); // read a line of text\n\t\temployee.setCommissionRate(employeeCmRate);\n\n\t\tSystem.out.println(\"Please enter the total sales:\");\n\t\tdouble employeeSale = Double.parseDouble(input.nextLine()); // read a line of text\n\t\temployee.setTotalSales(employeeSale);\n\n\t\tSystem.out.println(); // outputs a blank line\n\n\t\t//display\n\t\temployee.getEmployeeInfo();\n\t\t\n\t}", "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "public void managerMenu() {\n try {\n do {\n System.out.println(EOL + \" ---------------------------------------------------\");\n System.out.println(\"| Manager Screen - Type one of the options below: |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 1. Add an employee |\");\n System.out.println(\"| 2. Remove an employee |\");\n System.out.println(\"| 3. View all employees |\");\n System.out.println(\"| 4. View employees' total salary cost |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 5. View total rent profit |\");\n System.out.println(\"| 6. View most profitable item |\");\n System.out.println(\"| 7. View most frequent rented item |\");\n System.out.println(\"| 8. View best customer |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 9. Load user, product data file |\");\n System.out.println(\"| 10. Load rental history file |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 11. Save DART data file |\");\n System.out.println(\"| 12. Save Rental history file |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 13. Return to Main Menu |\");\n System.out.println(\" ---------------------------------------------------\");\n String[] menuAcceptSet = new String[]{\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\"}; // Accepted responses for menu options\n String userInput = getInput.getMenuInput(\"menuOptionPrompt\", menuAcceptSet); // Calling Helper method\n\n DartController dart = new DartController();\n\n switch (userInput.toLowerCase()) {\n case \"1\" -> userController.addEmployee();\n case \"2\" -> userController.deleteEmployee();\n case \"3\" -> userController.displayEmployees(false);\n case \"4\" -> userController.calculateSalary();\n case \"5\" -> dart.viewRentalTotalProfit();\n case \"6\" -> dart.viewRentalProfitable();\n case \"7\" -> dart.viewRentalFrequency();\n case \"8\" -> dart.viewRentalBestCustomer();\n case \"9\" -> dart.loadProductData();\n case \"10\" -> dart.loadRentalData();\n case \"11\" -> dart.saveProductData();\n case \"12\" -> dart.saveRentalData();\n case \"13\" -> mainMenu();\n\n default -> printlnInterfaceLabels(\"menuOptionNoMatch\");\n }\n } while (session);\n } catch (Exception e) {\n printlnInterfaceLabels(\"errorExceptionMainMenu\", String.valueOf(e));\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tMap<String, String > empRecord = new HashMap<>();\n\t\t\n\t\tempRecord.put(\"CEO\", null);\n\t\tempRecord.put(\"DU Head\", \"CEO\");\n\t\tempRecord.put(\"Project Manager\", \"DU Head\");\n\t\tempRecord.put(\"Team Lead\", \"Project Manager\");\n\t\tempRecord.put(\"SSE\", \"Team Lead\");\n\t\tempRecord.put(\"SE\", \"SSE\");\n\t\tempRecord.put(\"ASE\" , \"SE\");\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the name of employee\");\n\t\tString emp = sc.nextLine();\n\t\tSystem.out.println(emp);\n\t\t\n\t\tdisplayManagerEmployee(empRecord, emp);\n\t\t\n\t\t\n\t}", "public static void structEMain(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Create a new Structural Engineer Profile\");\n System.out.println(\"2 - Search for Structural Engineer Profile\\n\");\n\n System.out.println(\"0 - Continue\");\n }", "public void showMenu() {\n\t\tSystem.out.println(\"Please, choose one option!\");\n\t\tSystem.out.println(\"[ 1 ] - Highest Company Capital\");\n\t\tSystem.out.println(\"[ 2 ] - Lowest Company Capital\");\n\t\tSystem.out.println(\"[ 3 ] - Best Investor of the Day\");\n\t\tSystem.out.println(\"[ 4 ] - Worst Investor of the Day\");\n\t\tSystem.out.println(\"[ 0 ] - Exit\");\n\t}", "public static void facultyExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit to the Main Menu\");\n\t\tSystem.out.println(\"Enter 'ADD' followed by: faculty ID, name, major, class, and GPA to add a student record\");\n\t\tSystem.out.println(\"Enter 'REMOVE' followed by a faculty ID to remove a student\");\n\t\tSystem.out.println(\"Enter 'FIND' followed by a faculty ID or name to pull up student's information\");\n\t\tSystem.out.println(\"Enter 'SCHEDULE' followed by a faculty ID or name to list all courses person is teaching\");\n\t\tSystem.out.println(\"Enter 'GRANTS' followed by a faculty ID or name to list all grant information\");\n\t}", "public static void main(String[] args) {\n String inputLine = \"\";\n char action = ' ';\n Employee[] employees = new Employee[] {\n new Employee(\"John\", \"+1-518-383-9901\", 9000),\n new Employee(\"Tom\", \"+1-518-383-6664\", 12000),\n new Employee(\"Diane\", \"+1-518-383-4025\", 5000),\n new Employee(\"Robert\", \"+1-518-383-7971\", 16000),\n new Employee(\"Patrick\", \"+1-518-383-5503\", 7000),\n new Employee(\"David\", \"+1-518-383-9905\", 8000),\n new Employee(\"Kate\", \"+1-518-383-3334\", 2000),\n new Employee(\"Mary\", \"+1-518-383-4545\", 4500),\n new Employee(\"Steven\", \"+1-518-383-7845\", 3500),\n new Employee(\"Bill\", \"+1-518-383-0456\", 7500),\n new Employee(\"Peter\", \"+1-518-383-3578\", 2500),\n new Employee(\"Mike\", \"+1-518-383-3895\", 3500),\n new Employee(\"Amanda\", \"+1-518-383-1001\", 4000)\n } ;\n Company company = new Company(\"1741 Technology Drive, Suite 400, San Jose, California 95110\", \"+1-408-273-8900\", employees);\n\n while (true) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n System.out.println(\"Input 1 to add new employee/ Input 2 to remove employee / Input 3 to get list of company employees\");\n System.out.println(\"Input 3 to print sum of all salaries/ Input 4 to print average salary / Input 5 to print employee name with the highest salary\");\n System.out.println(\"Input 7 to Exit\");\n inputLine = br.readLine();\n action = inputLine.charAt(0);\n\n switch (action) {\n case '1':\n System.out.print(\"Input employee name: \");\n String name = br.readLine();\n System.out.print(\"Input employee phone: \");\n String phone = br.readLine();\n System.out.print(\"Input employee salary: \");\n String salaryStr = br.readLine();\n int salary = Integer.parseInt(salaryStr);\n Employee emp = new Employee(name, phone, salary);\n company.addEmployee(emp);\n break;\n case '2':\n System.out.println(\"Input name of employee to remove\");\n String employeeName = br.readLine();\n company.removeEmployee(employeeName);\n break;\n case '3':\n System.out.println(\"Here is list of all company employees\");\n company.printEmployees();\n break;\n case '4':\n System.out.println(\"Sum of all salaries is \" + company.getSumOfAllSalaries());\n break;\n case '5':\n System.out.println(\"Average company salary is \" + company.getAverageSalary());\n break;\n case '6':\n System.out.println(\"Employee name with the highest salary is \" + company.getEmployeeNameWithMaxSalary());\n break;\n case '7': System.exit(0);\n default:\n System.out.println(\"You have written wrong or not supported action!\");\n break;\n }\n }\n catch (NumberFormatException e) {\n System.out.println(\"You entered non-number salary for employee!\");\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t// Employers DATA BASE ----------------------------\n\t\t\n\t\temployee emp1 = new employee();\n\t\temp1.Name = \"John Billa\";\n\t\temp1.employeeCode = 001;\n\t\t\n\t\temployee emp2 = new employee();\n\t\temp2.Name = \"Anthony Woods\";\n\t\temp2.employeeCode = 002;\n\t\t\n\t\temployee emp3 = new employee();\n\t\temp3.Name = \"Jessica Underwood\";\n\t\temp3.employeeCode = 003;\n\t\t\t\t\n\t\t// End of Employers DATA BASE ---------------------\n\t\t\n\t\tSystem.out.println(\"Welcome! Please insert your EmployeeCode:\");\n\t\tint codeEnter = sc.nextInt();\n\t\t\n\t\tif(codeEnter == 001) {\n\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\tSystem.out.println(\"Welcome \" + emp1.Name + \" we hope you have a nice day of work.\");\n\t\t}\n\t\telse if(codeEnter == 002) {\n\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\tSystem.out.println(\"Welcome \" + emp2.Name + \" we hope you have a nice day of work.\");\n\t\t}\n\t\telse if(codeEnter == 003) {\n\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\tSystem.out.println(\"Welcome \" + emp3.Name + \" we hope you have a nice day of work.\");\n\t\t}\n\t\t\n\t\telse {\n\t\t\tSystem.out.println(\"ERROR!!! ERROR!!!\");\n\t\t\twhile (codeEnter > 003) {\n\t\t\t\tSystem.out.println(\"=====================================\");\n\t\t\t\tSystem.out.println(\"Insert Again your EmployeeCode\");\n\t\t\t\tcodeEnter = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(codeEnter == 001) {\n\t\t\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\t\t\tSystem.out.println(\"Welcome \" + emp1.Name + \" we hope you have a nice day of work.\");\n\t\t\t\t}\n\t\t\t\telse if(codeEnter == 002) {\n\t\t\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\t\t\tSystem.out.println(\"Welcome \" + emp2.Name + \" we hope you have a nice day of work.\");\n\t\t\t\t}\n\t\t\t\telse if(codeEnter == 003) {\n\t\t\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\t\t\tSystem.out.println(\"Welcome \" + emp3.Name + \" we hope you have a nice day of work.\");\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"======================================================= \");\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tif (codeEnter == 001) {\n\t\t\tSystem.out.println(emp1.Name + \", what would you like to do?\");\n\t\t}\n\t\t\n\t\telse if (codeEnter == 002) {\n\t\t\tSystem.out.println(emp2.Name + \", what would you like to do?\");\n\t\t}\n\t\t\n\t\telse {\n\t\t\tSystem.out.println(emp3.Name + \", what would you like to do?\");\n\t\t}\n\t\t\n\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"1. New Delivery\");\n\t\tSystem.out.println(\"2. New Client\");\n\t\tSystem.out.println(\"3. Exit System\");\n\t\t\n\t\tint employeeChoice = sc.nextInt();\n\t\t\n\t\tswitch(employeeChoice){\n\t\t\tcase 1: \n\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 2: \n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tsc.close();\n\t}", "public void menu()\n {\n System.out.println(\"\\n\\t\\t============================================\");\n System.out.println(\"\\t\\t|| Welcome to the Movie Database ||\");\n System.out.println(\"\\t\\t============================================\");\n System.out.println(\"\\t\\t|| (1) Search Movie ||\");\n System.out.println(\"\\t\\t|| (2) Add Movie ||\");\n System.out.println(\"\\t\\t|| (3) Delete Movie ||\");\n System.out.println(\"\\t\\t|| (4) Display Favourite Movies ||\");\n System.out.println(\"\\t\\t|| (5) Display All Movies ||\");\n System.out.println(\"\\t\\t|| (6) Edit movies' detail ||\");\n System.out.println(\"\\t\\t|| (7) Exit System ||\");\n System.out.println(\"\\t\\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.print( \"\\t\\tPlease insert your option: \");\n }", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "public void main_menu()\n\t{\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.println(\"Please Select an option\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.print(\"1.Add 2.Update 3.Delete 4.Exit\\n\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tchoice=me.nextInt();\n\t\tthis.check_choice(choice);\n\t}", "private void newJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newJMenuItemActionPerformed\n // TODO add your handling code here:\n //Event handler for Adding a new employee \n try\n {\n //Create and display a new AddDialog\n boolean empExists = false;\n AddEmployee addEmployee = new AddEmployee(this, true);\n addEmployee.setVisible(true);\n Employee newEmployee = addEmployee.getEmployee();\n String employeeName = newEmployee.getName();\n empExists = findEmployee(employeeName) != null;\n if(newEmployee != null && empExists == false)\n { \n employees.add(newEmployee);\n displayEmployee();\n saveEmployee();\n }\n else\n {\n String first = employeeName + \" already exists.\";\n String second = \"No update was made.\";\n displayResults(first, second);\n employeeJList.setVisible(true);\n employeeJList.setSelectedIndex(0);\n }\n }\n catch(NullPointerException nullex)\n {\n JOptionPane.showMessageDialog(null, \"Employee not added\", \"Input error\",\n JOptionPane.WARNING_MESSAGE);\n employeeJList.setVisible(true);\n employeeJList.setSelectedIndex(0); \n }\n }", "public static void main(String[] args) {\n String[] List = new String[50];\n\n System.out.println(\"Hello! Here is a list with the actions that you can do! \");\n Agenda m = new Agenda();\n\n //create an object to show printMenu method\n m.printMenu();\n\n System.out.println(\"Select an option:\");\n Scanner intrare=new Scanner(System.in);\n\n\n do {\n\n //Option takes the entered value\n int option= intrare.nextInt();\n\n switch (option){\n case 1: m.listWholeList();\n break;\n\n case 2: m.searchNameAndDisplay();\n break;\n\n case 3: m.createItem();\n break;\n\n case 4: m.updateName();\n break;\n\n case 5: m.deleteName();\n break;\n\n case 6: m.exitList();\n break;\n }\n\n\n }\n while (true);\n\n\n\n\n\n}", "public static void structEngineerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Structural Engineer's Information\");\n System.out.println(\"2 - Would you like to search for a Structural Engineer's Information\");\n System.out.println(\"3 - Adding a new Structural Engineer's Information\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public static void main(String args[])\r\n\t{\r\n\t\t\r\n\t\tSystem.out.println(\"Enter your first name:\");\r\n\t\tString firstname = sc.nextLine();\r\n\t\tSystem.out.println(\"Enter your last name:\");\r\n\t\tString lastname = sc.nextLine();\r\n\t\tSystem.out.println(\"Please enter the department from the folloiwng \\n 1.Technical \\n 2.Admin \\n 3.Human Resource \\n 4.Legal \");\r\n\t\tint choice = sc.nextInt();\r\n\t\t\r\n\t\tEmployee emp;\r\n\t\t\r\n\t\tswitch( choice ) {\r\n\t\t\tcase 1:\r\n\t\t\t\temp = new Employee( firstname, lastname, \"tech\" );\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\temp = new Employee( firstname, lastname, \"adm\" );\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\temp = new Employee( firstname, lastname, \"hr\" );\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\temp = new Employee( firstname, lastname, \"lg\" );\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println( \"Incorrect choice\" );\r\n\t\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t\t//generate email\r\n\t\tCredentialService cs = new CredentialService();\r\n\t\tString email = cs.generateEmailAddress( emp );\r\n\t\tString password = cs.GeneratePassword();\r\n\t\tcs.showCredentials(emp, email, password);\r\n\r\n\r\n\t\t}", "public void mainMenu()\n {\n\n System.out.println('\\u000C'); //clears screen\n System.out.println(\"<------------- Press 0 to return.\");\n System.out.println();\n System.out.println();\n System.out.println(\"\\t\\tTeacher Menu\");\n System.out.println(\"\\t1. View Names\");\n System.out.println(\"\\t2. Change Name\");\n System.out.println(\"\\t3. Add Teacher\");\n input = in.nextInt();\n in.nextLine();\n\n switch(input)\n {\n case 0: //call main menu -- create instance of menu class here to pass in current state of arraylist\n returnTo = new StartMenu(teachers);\n returnTo.enterId(teachers);\n break;\n\n case 1: //view names -- a subclass class that extends StudentMenu \n //temporary method that will view all names\n viewNames();\n break;\n\n case 2: //change names\n changeName();\n break;\n\n case 3: //change grade\n addNewPerson();\n break;\n\n } //ends switch statement\n\n }", "public static void menu() {\n\t\tSystem.out.println(\"\\nPlease select which type of argument to generate by entering the associated number.\\n\");\n\t\tfor(int i = 0; i < type.length; i++) {\n\t\t\tSystem.out.println((i+1)+\". \"+type[i]);\n\t\t}\n\t\tSystem.out.println(\"8. Quit\");\n\t}", "private void displayMenu()\r\n {\r\n System.out.println(\"\\nWelcome to Car Park System\");\r\n System.out.println(\"=============================\");\r\n System.out.println(\"(1)Add a Slot \");\r\n System.out.println(\"(2)Delete a Slot\");\r\n System.out.println(\"(3)List all Slots\");\r\n System.out.println(\"(4)Park a Car\");\r\n System.out.println(\"(5)Find a Car \");\r\n System.out.println(\"(6)Remove a Car\");\r\n System.out.println(\"(7)Exit \");\r\n System.out.println(\"\\nSelect an Option: \");\r\n }", "public static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\n }", "public void displayEmployees(){\n System.out.println(\"NAME --- SALARY --- AGE \");\n for (Employee employee : employees) {\n System.out.println(employee.getName() + \" \" + employee.getSalary() + \" \" + employee.getAge());\n }\n }", "private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }", "public static void EmployeeJob() {\r\n\t\t\r\n\t\tJLabel e4 = new JLabel(\"Employee's Job:\");\r\n\t\te4.setFont(f);\r\n\t\tGUI1Panel.add(e4);\r\n\t\tGUI1Panel.add(employeeJobType);\r\n\t\te4.setHorizontalAlignment(JLabel.LEFT);\r\n\t\tGUI1Panel.add(Box.createHorizontalStrut(5));\r\n\t}", "private void accept() throws NumberFormatException, IOException {\r\n\r\n\t\tint choice;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"Enter choice\\n1.Add New Employee\\n2.View all employees\\n3.Get employee by id\\n4.Delete an employee\\n5.Exit\");\r\n\t\t\tchoice = Integer.parseInt(reader.readLine());\r\n\r\n\t\t\tswitch (choice) {\r\n\t\t\tcase 1:\r\n\t\t\t\tSystem.out.println(\"Enter the Employee Name\");\r\n\t\t\t\temployee.put(\"id\", String.valueOf(Employee.getNextId()));\r\n\t\t\t\temployee.put(\"name\", reader.readLine());\r\n\t\t\t\tcontrol.addEmployee(employee);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tviewAll(control.viewAllEmployee());\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tSystem.out.println(\"Enter the Employee ID\");\r\n\t\t\t\tcontrol.getEmployeeById(Integer.parseInt(reader.readLine()));\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tSystem.out.println(\"Enter the Employee ID\");\r\n\t\t\t\tcontrol.deleteEmployee(Integer.parseInt(reader.readLine()));\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}", "public static void mainMenu() \n\t{\n\t\t// display menu\n\t\tSystem.out.print(\"\\nWhat would you like to do?\" +\n\t\t\t\t\"\\n1. Enter a new pizza order (password required)\" +\n\t\t\t\t\"\\n2. Change information of a specific order (password required)\" +\n\t\t\t\t\"\\n3. Display details for all pizzas of a specific size (s/m/l)\" +\n\t\t\t\t\"\\n4. Statistics of today's pizzas\" +\n\t\t\t\t\"\\n5. Quit\" +\n\t\t\t\t\"\\nPlease enter your choice: \");\t\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\t\tif(employees.size() >= 1){\n\t\t\t\t\tif(empNameCombo.getSelectedIndex() != 0){\n\t\t\t\t\t\tfor(Employee employee: employees){\n\t\t\t\t\t\t\tif(employee.getEmployeeName().equalsIgnoreCase(empNameCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\t\tempJTextArea.setText(\"Employee ID: \"+employee.getEmployeeId()\n\t\t\t\t\t\t\t+\"\\n Name: \" +employee.getEmployeeName() \n\t\t\t\t\t\t\t+\"\\n Access Level: \" +employee.getAccess()\n\t\t\t\t\t\t\t+\"\\n Password: \" +employee.getPassword()\n\t\t\t\t\t\t\t+\"\\n Salary: \" +employee.getSalary());\n\t\t\t\t\t\t\tempNameCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Employee.\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No Employees Found\");\n\t\t\t\t}\n\t\t\t}", "public static void main(){\n\t\tint option = getUserOption();\n\t\t/** switch case option start below */\n\t\tswitch (option){\n\t\t\tcase 1 : ToScreen.listEmployee(employee.getAllEmployee(), true); main();\n\t\t\t\tbreak;\n\t\t\tcase 2 : listStaffByCategory();\n\t\t\t\tbreak;\n\t\t\tcase 3 : ToScreen.listAdminStaffTask(employee.getAllAdminStaff(), true);main();\n\t\t\t\tbreak;\n\t\t\tcase 4 : searchStaffByName();\n\t\t\t\tbreak;\n\t\t\tcase 5 : ToScreen.listAnimal(animals.getAllAnimals(), true); main();\n\t\t\t\tbreak;\n\t\t\tcase 6 : ListAnimalByType();\n\t\t\t\tbreak;\n\t\t\tcase 7 : searchAnimalByName();\n\t\t\t\tbreak;\n\t\t\tcase 8 : MenuReception.main();\n\t\t\t\tbreak;\n\t\t\tcase 9 : System.exit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tmain();\n\t\t}\n\t}", "public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }", "private void mainMenuDetails() {\r\n try {\r\n System.out.println(\"Enter your choice:\");\r\n int menuOption = option.nextInt();\r\n switch (menuOption) {\r\n case 1:\r\n showFullMenu();\r\n break;\r\n case 2:\r\n empLogin();\r\n break;\r\n case 3:\r\n venLogin();\r\n // sub menu should not be this\r\n break;\r\n case 4:\r\n Runtime.getRuntime().halt(0);\r\n default:\r\n System.out.println(\"Choose either 1,2,3\");\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"enter a valid value\");\r\n }\r\n option.nextLine();\r\n mainMenu();\r\n }", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter employee ID: \");\r\n\t\tint empId = input.nextInt();\r\n\t\tSystem.out.println(\"-----------------------------------------------\");\r\n\t\tinput.close();\r\n\t\t\r\n\t\t/*\r\n\t\t * I figured it would be more efficient to call the subclasses from the\r\n\t\t * superclass. To stay within the guidelines of the assignment I will\r\n\t\t * call the superclass so that I can correctly fill the array and allow\r\n\t\t * the status of the employee to determine which subclass will be used.\r\n\t\t */\r\n\t\t\r\n\t\tEmployee e1 = new Employee(empId);\r\n\t\tString stat = e1.getStatus();\r\n\t\t\r\n\t\tif(stat.equals(\"Full Time\")) {\r\n\t\t\t\r\n\t\t\tSalaryEmployee se1 = new SalaryEmployee(empId);\r\n\r\n\t\t} else if(stat.equals(\"Part Time\")) {\r\n\t\t\t\r\n\t\t\tHourlyEmployee he1 = new HourlyEmployee(empId);\r\n\t\t\t\r\n\t\t} else if(stat.equals(\"Commission\")) {\r\n\t\t\t\r\n\t\t\tCommissionEmployee ce1 = new CommissionEmployee(empId);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\te1.setPay(0.00);\r\n\t\t\te1.printEmployee();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\tse1.printEmployee();\r\n\t\t\r\n//\t\tEmployee e1 = new Employee(empId);\r\n//\t\te1.getEmployee();\r\n\t\t\r\n\t}", "public static void main(String[] args) throws NullPointerException {\n\n\t\t// default constructor\n\t\tEmployeeInfo employeeInfo = new EmployeeInfo();\n\t\tEmployeeInfo employeeInfo1 = new EmployeeInfo(\" FORTUNE COMPANY \");\n\n\t\tEmployeeInfo emp1 = new EmployeeInfo(1, \"Abrah Lincoln\", \"Accounts\", \"Manager\", \"Hodgenville, KY\");\n\t\tEmployeeInfo emp2 = new EmployeeInfo(2, \"John F Kenedey\", \"Marketing\", \"Executive\", \"Brookline, MA\");\n\t\tEmployeeInfo emp3 = new EmployeeInfo(3, \"Franklin D Rossevelt\", \"Customer Realation\", \"Assistnt Manager\",\n\t\t\t\t\"Hyde Park, NY\");\n\n\n\t\t// Printing Employee information in this pattern\n\t\t// \"ID Name Number Department Position Years Worked Pension Bonus Total salary \"\n\n\t\tSystem.out.println(emp1.employeeId() + \"\\t\" + emp1.employeeName() + \"\\t\\t\" + emp1.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp1.getJobTitle() + \"\\t\\t\\t\" + emp1.getYearsWorked() + \"\\t\\t\" + emp1.calculateEmployeePension()\n\t\t\t\t+ \"\\t\" + emp1.calculateEmployeeBonus() + \"\\t\\t\" + emp1.calculateSalary());\n\n\t\tSystem.out.println(emp2.employeeId() + \"\\t\" + emp2.employeeName() + \"\\t\\t\" + emp2.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp2.getJobTitle() + \"\\t\\t\" + emp2.getYearsWorked() + \"\\t\\t\" + emp2.calculateEmployeePension() + \"\\t \"\n\t\t\t\t+ emp2.calculateEmployeeBonus() + \"\\t\\t\" + emp2.calculateSalary());\n\n\t\tSystem.out.println(emp3.employeeId() + \"\\t\" + emp3.employeeName() + \"\\t\" + emp3.getDepartment() + \"\\t\"\n\t\t\t\t+ emp3.getJobTitle() + \"\\t\" + emp3.getYearsWorked() + \"\\t\\t \" + emp3.calculateEmployeePension() + \"\\t\"\n\t\t\t\t+ emp3.calculateEmployeeBonus() + \" \\t\\t\" + emp3.calculateSalary());\n\n\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tEmployee employees[] = new Employee[4];\n\n\t// Assign objects of Employee to employees declared above\n\t\t\n\t\tSystem.out.println(\"Enter the Date Of Report :\" );\n\t\tString dtReport = Console.readLine();\n\t\t\n\t//\tCreate an object of EmployeeReport\n\n\t// Invoke display() method by passing the employee array\n\t}", "private String printMainMenu() {\n System.out.println(\"Please make a selection:\");\n System.out.println(\"1: List all tools\");\n System.out.println(\"2: Search for tool by toolName\");\n System.out.println(\"3: Search for tool by toolID\");\n System.out.println(\"4: Check item quantity\");\n System.out.println(\"5: Decrease item quantity\");\n System.out.println(\"6: Make New Order/Append Today's Order\");\n System.out.println(\"7: View Current Orders\");\n System.out.println(\"8: View Supplier List\");\n System.out.println(\"9: Quit\");\n String selection = this.userInput.nextLine();\n return selection;\n }", "@Override\n\tpublic void showBeveragesMenu(int selectedPerson) {\n\t\ttry{\n System.out.println(\"Please place your order\");\n randomNum=transactionService.createRandomOrderNumber();\n OrderNum=initialOrderNum+randomNum;\n do {\n \t\n showCoffeeType();\n showCoffeeSize();\n System.out.println(\"Do you want Add-ons?\");\n subChoice=input.next();\n if(subChoice.equalsIgnoreCase(\"yes\"))\n {\n showCoffeeAddon();\n \n }\n else\n {\n \ttransactionService.createCoffeeOrder(selectedPerson,OrderNum,selectedCoffeeType,selectedCoffeeSize,selectedAddon);\n }\n System.out.println(\"Do you want to order more coffee?\");\n subChoice = input.next();\n \n \n\n }while(subChoice.equalsIgnoreCase(\"yes\"));\n showVoucher();\n\n printBill(selectedPerson,OrderNum,selectedVoucher);\n System.out.println(\"Happy Drink! Have a good day.\");\n System.out.println(\"================================\");\n\n\n\n }\n \n catch (InputMismatchException e)\n {\n System.out.println(\"Please provide a correct input\");\n }\n catch (NullPointerException en)\n {\n System.out.println(en.getMessage());\n }\n\t\t\n\t}", "public static void mainExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit the program\");\n\t\tSystem.out.println(\"Enter 'STU' for the Student Menu\");\n\t\tSystem.out.println(\"Enter 'FAC' for the Faculty Menu\");\n\t\tSystem.out.println(\"You may also enter a customized SQL query:\");\n\t\tSystem.out.println(\"However, this may only be a SELECT query, not a DDl,INSERT or UPDATE query\");\n\t}", "private void ShowMenu() {\n\t\tSystem.out.println(\"Please enter a number between 0 and 6 to perform the below actions:\\n\" + \n\t\t\t\t\"0: Exit the program\\n\" + \n\t\t\t\t\"1: Show total population for all zip codes available\\n\" + \n\t\t\t\t\"2: Show the total parking fines per capita for each zip code available\\n\" + \n\t\t\t\t\"3: Show the average market value for residences in a specified zip code\\n\" + \n\t\t\t\t\"4: Show the average total livable area for residences in a specified zip code\\n\" + \n\t\t\t\t\"5: Show the total residential market value per capita for a specified zip code\\n\" +\n\t\t\t\t\"6: Show a sorted list of zip codes and their most common fine in that zip code. Values sorted by total livable area per capita\");\n\t}", "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "public static void listMainMenuOptions(){\n\t\tSystem.out.println(\"\\nWelcome to Vet Clinic Program. Please choose an option from the list below.\\n\");\n\t\tSystem.out.println(\"1: List all staff.\");\n\t\tSystem.out.println(\"2: List staff by category.\");\n\t\tSystem.out.println(\"3: List admin Staff performing a task.\");\n\t\tSystem.out.println(\"4: Search for a specific member of staff by name.\");\n\t\tSystem.out.println(\"5: List all animals.\");\n\t\tSystem.out.println(\"6: List animals by type.\");\n\t\tSystem.out.println(\"7: Search for a specific animal by name.\");\n\t\tSystem.out.println(\"8: See the Queue to the Veterinary\");\n\t\tSystem.out.println(\"9: Exit\");\n\t}", "public static void main(String[] args) {\n\t\tEmployee employee= new Employee(\"Gowtham\",\"Subramanian\");\r\n\t\tSystem.out.println(\"Hello \"+employee.getfName()+\" Enter Department Name\");\r\n\t\tSystem.out.println(\"1.Technical\\n2.Admin\\n3.HR\\n4.Legal\");\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\tint depChoice = in.nextInt();\r\n\t\tDepartment department = new Department();\r\n\t\tCredentialService cr = new CredentialService();\r\n\t\tswitch(depChoice) {\r\n\t\tcase 1:\r\n\t\t\tdepartment.setDeptName(\"technical\");\r\n\t\t\tString email = cr.generateEmail(employee, department);\r\n\t\t\tString password = cr.generatePassword();\r\n\t\t\tcr.showCredentials(email, password);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tdepartment.setDeptName(\"admin\");\r\n\t\t\temail = cr.generateEmail(employee, department);\r\n\t\t\tpassword = cr.generatePassword();\r\n\t\t\tcr.showCredentials(email, password);\r\n\t\t\tbreak;\r\n\r\n\t\tcase 3:\r\n\t\t\tdepartment.setDeptName(\"hr\");\r\n\t\t\temail = cr.generateEmail(employee, department);\r\n\t\t\tpassword = cr.generatePassword();\r\n\t\t\tcr.showCredentials(email, password);\r\n\t\t\tbreak;\r\n\r\n\t\tcase 4:\r\n\t\t\tdepartment.setDeptName(\"legal\");\r\n\t\t\temail = cr.generateEmail(employee, department);\r\n\t\t\tpassword = cr.generatePassword();\r\n\t\t\tcr.showCredentials(email, password);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Invalid\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\r\n\t\t// While loop that will run until the program is exited\r\n\t\twhile (true) {\r\n\t\t\r\n\t\t// Creates a scanner object that allows for user input\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t// This allows the user to select which menu they would like to access\r\n\t\tSystem.out.print(\"Please enter the number of the menu you would like to access:\\n\"\r\n\t\t\t\t+ \"1. Person\\n\"\r\n\t\t\t\t+ \"2. Projects\\n\"\r\n\t\t\t\t+ \"0. Exit\\n\");\r\n\t\tSystem.out.println(\"Please select a number from 0-2: \");\r\n\t\t// Saves the entered number as the menu\r\n\t\tString menu = input.nextLine();\r\n\t\tint menu_select = Integer.parseInt(menu);\r\n\t\t// Runs if statements based on what the user has selected in the main menu\r\n\t\tif (menu_select == 0) {\r\n\t\t\tSystem.out.print(\"Goodbye\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t// Runs if statements based on what the user has selected in the main menu\r\n\t\tif (menu_select == 1) {\r\n\t\t\tBoolean person_view = true;\r\n\t\t\twhile (person_view == true) {\r\n\t\t\t\t// This allows the user to select what they would like to do\r\n\t\t\t\tSystem.out.print(\"Please enter a number of the task you would like to do:\\n\"\r\n\t\t\t\t\t\t+ \"1. Add Customer\\n\"\r\n\t\t\t\t\t\t+ \"2. Add Contractor\\n\"\r\n\t\t\t\t\t\t+ \"3. Add Architect\\n\"\r\n\t\t\t\t\t\t+ \"4. Add Project Manager\\n\"\r\n\t\t\t\t\t\t+ \"5. Allocate Project to Person\\n\"\r\n\t\t\t\t\t\t+ \"0. Back to main menu.\\n\");\r\n\t\t\t\tSystem.out.println(\"Please select a number from 0-4: \");\r\n\t\t\t\t// Uses the entered number as the task\r\n\t\t\t\tString person_task = input.nextLine();\r\n\t\t\t\tint person_task_select = Integer.parseInt(person_task);\r\n\t\t\t\tif (person_task_select == 1) {\r\n\t\t\t\t\tadd_person(0);\r\n\t\t\t\t}\r\n\t\t\t\tif (person_task_select == 2) {\r\n\t\t\t\t\tadd_person(1);\r\n\t\t\t\t}\r\n\t\t\t\tif (person_task_select == 3) {\r\n\t\t\t\t\tadd_person(2);\r\n\t\t\t\t}\r\n\t\t\t\tif (person_task_select == 4) {\r\n\t\t\t\t\tadd_person(3);\r\n\t\t\t\t}\r\n\t\t\t\tif (person_task_select == 5) {\r\n\t\t\t\t\tassign_project();\r\n\t\t\t\t}\r\n\t\t\t\tif (person_task_select == 0) {\r\n\t\t\t\t\tperson_view = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Runs if statements based on what the user has selected in the main menu\r\n\t\tif (menu_select == 2) {\r\n\t\t\tBoolean project_view = true;\r\n\t\t\twhile (project_view == true) {\r\n\t\t\t\t// This allows the user to select what they would like to do\r\n\t\t\t\tSystem.out.print(\"Please enter a number of the task you would like to do:\\n\"\r\n\t\t\t\t\t\t+ \"1. Add Project\\n\"\r\n\t\t\t\t\t\t+ \"2. Update Project Status\\n\"\r\n\t\t\t\t\t\t+ \"3. Search Projects\\n\"\r\n\t\t\t\t\t\t+ \"4. Finalize Project\\n\"\r\n\t\t\t\t\t\t+ \"5. View Missed Deadline Project\\n\"\r\n\t\t\t\t\t\t+ \"6. View Incomplete Project\\n\"\r\n\t\t\t\t\t\t+ \"0. Back to Main Menu\\n\"\r\n\t\t\t\t\t\t);\r\n\t\t\t\tSystem.out.println(\"Please select a number from 0-4: \");\r\n\t\t\t\t// Uses the entered number as the task\r\n\t\t\t\tString project_task = input.nextLine();\r\n\t\t\t\tint project_task_select = Integer.parseInt(project_task);\r\n\t\t\t\tif (project_task_select == 1) {\r\n\t\t\t\t\tadd_project();\r\n\t\t\t\t}\r\n\t\t\t\tif (project_task_select == 2) {\r\n\t\t\t\t\tupdate_project_status();\r\n\t\t\t\t}\r\n\t\t\t\tif (project_task_select == 3) {\r\n\t\t\t\t\tSystem.out.println(\"1. Search by ID\\n2. Search by name\");\r\n\t\t\t\t\tString project_search_str = input.nextLine();\r\n\t\t\t\t\tint project_search = Integer.parseInt(project_search_str);\r\n\t\t\t\t\tif (project_search == 1) {\r\n\t\t\t\t\t\tsearch_by_id();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (project_search == 2) {\r\n\t\t\t\t\t\tsearch_by_name();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (project_task_select == 4) {\r\n\t\t\t\t\tfinalise_project();\r\n\t\t\t\t}\r\n\t\t\t\tif (project_task_select == 5) {\r\n\t\t\t\t\tString missed_deadline = \"SELECT * FROM projects \"\r\n\t\t\t\t\t\t\t+ \"INNER JOIN project_statuses ON projects.project_id = project_statuses.project_id \"\r\n\t\t\t\t\t\t\t+ \"WHERE completion_date > deadline_date;\";\r\n\t\t\t\t\tString heading = \"Missed Deadlines\\n\";\r\n\t\t\t\t\tlist_projects(missed_deadline, heading);\r\n\t\t\t\t}\r\n\t\t\t\tif (project_task_select == 6) {\r\n\t\t\t\t\tString missed_deadline = \"SELECT * FROM projects \"\r\n\t\t\t\t\t\t\t+ \"INNER JOIN project_statuses ON projects.project_id = project_statuses.project_id \"\r\n\t\t\t\t\t\t\t+ \"WHERE project_statuses.status <> 'Complete';\";\r\n\t\t\t\t\tString heading = \"Incomplete Projects\\n\";\r\n\t\t\t\t\tlist_projects(missed_deadline, heading);\r\n\t\t\t\t}\r\n\t\t\t\tif (project_task_select == 0) {\r\n\t\t\t\t\tproject_view = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n}", "public static void main (String args[] ){\n\t\tScanner scanner = new Scanner( System.in );\r\n\t\tSystem.out.print ( \" 1. Load Employee (From File) \\n 2. Exit Program \\n Enter Your Selection: \" );\r\n\t\tint input = scanner.nextInt();\r\n\t\t\r\n\t\t//if user inputs 1 read the text file and print employees loaded from the file\r\n\t\tif (input == 1 ){\r\n\t\t\tString[] Data;\r\n\t\t\t/**\r\n\t\t\t**create four arrays each of type StaffPharmacist, PharmacyManager, StaffTechnician, Senior technician\r\n\t\t\t**in order to store the employee objects. create arrays of length 1\r\n\t\t\t**/\r\n\t\t\tStaffPharmacist [] Pharmacist = new StaffPharmacist[1];\t\t\r\n\t\t\tPharmacyManager [] Manager = new PharmacyManager[1];\t\t\t\r\n\t\t\tStaffTechnician [] staffTech = new StaffTechnician[1];\t\t\t\r\n\t\t\tSeniorTechnician [] seniorTech = new SeniorTechnician[1];\r\n\t\t\ttry{\r\n\t\t\t\t//read the text file using scanner\r\n\t\t\t\tFile file = new File(\"employees.txt\");\r\n\t\t\t\t\t\t\r\n\t\t\t\tScanner sc = new Scanner(file);\r\n\t\t\t\t\t\r\n\t\t\t\t//while text file has next line split the text to store all elements in to an array\r\n\t\t\t\twhile (sc.hasNextLine()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//read the text file and store it in an array called data. split the text file at , and read until we have next line\r\n\t\t\t\t\tData = sc.nextLine().split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t//create 4 employee objects of each employee type \r\n\t\t\t\t\tPharmacyManager pharmacyManager = new PharmacyManager(Data);\r\n\t\t\t\t\tStaffPharmacist staffPharmacist = new StaffPharmacist(Data);\r\n\t\t\t\t\tStaffTechnician staffTechnician = new StaffTechnician(Data);\r\n\t\t\t\t\tSeniorTechnician seniorTechnician = new SeniorTechnician(Data);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tint i;\r\n\t\t\t\t\t/** parse through the text files to check the job id number.\r\n\t\t\t\t\tif the job id is one than the employee is pharmacy manager and there fore store it in an array of type pharmacy manager, else if job id == 2 than it is a staff pharmacist there fore store the staff pharmacist employee in the respective array. else if job id == 3 the employee is a staff technician therefore store the employee object staff technician in array of type staff technician and if the id == 4 than the employee is senior technician so store the employee senior technician in an array of type senior technician\r\n\t\t\t\t\t**/\r\n\t\t\t\t\tfor( i = 0; i < Data.length; i = i + 4){\r\n\t\t\t\t\t\tif( Integer.parseInt(Data[i]) == 1 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tManager[0] = pharmacyManager;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 2 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tPharmacist[0] = staffPharmacist;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 3 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tstaffTech[0] = staffTechnician;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 4 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tseniorTech[0] = seniorTechnician;\r\n\t\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\t\t\r\n\t\t\t\t//close the file \r\n\t\t\t\tsc.close();\r\n\t\t\t\t\t\r\n\t\t\t\t//print that the file loaded success fully\r\n\t\t\t\tSystem.out.println ( \" \\n File Successfully Loaded! \" );\r\n\t\t\t\t\t\r\n\t\t\t\t//set a boolean variable named keepgoing equal to true.\r\n\t\t\t\tboolean keepGoing = true;\r\n\t\t\t\t//as long as keep going remains true, do the following steps\r\n\t\t\t\twhile(keepGoing){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//ask the user what they would like to do next\r\n\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t\t//if user inputs 3 that is tries to print checks prior to entering hours worked than throw an error\r\n\t\t\t\t\t\tif(input == 3){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSystem.out.println( \" Please enter the hours worked (Option #2) before trying to calculate the paycheck amounts! \" );\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//again ask the user after throwing the exception about what they would like to do\r\n\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do this steps as long as user inputs 1 or 2\r\n\t\t\t\t\t\tdo{\r\n\t\t\t\t\t\t\t//if the user inputs 1 print the employee information described in respective classes of employees\r\n\t\t\t\t\t\t\tif(input == 1){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tManager[0].printPharmacyManager();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tPharmacist[0].printStaffPharmacist();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tseniorTech[0].printSeniorTechnician();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tstaffTech[0].printStaffTechnician();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//if the user inputs 2 prompt the user asking the number of hours worked by employees\r\n\t\t\t\t\t\t\telse if(input == 2){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tSystem.out.print( \" \\n Please enter the hours worked: \" );\r\n\t\t\t\t\t\t\t\tint workingHours = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//than again ask user what they would like to do\r\n\t\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t/**if user inputs 3 after they entered number of hours employees worked than calculate the employee pay checks\r\n\t\t\t\t\t\t\t\tusing the calculate pay method defined in employee class\r\n\t\t\t\t\t\t\t\tget the employees pay rate by using getHourlyRate method defined in employee class\r\n\t\t\t\t\t\t\t\t**/\r\n\t\t\t\t\t\t\t\tif(input == 3){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tManager[0].calculatePay(workingHours, Manager[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tPharmacist[0].calculatePay(workingHours, Pharmacist[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tstaffTech[0].calculatePay(workingHours, seniorTech[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tseniorTech[0].calculatePay(workingHours, staffTech[0].getHourlyRate() );\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\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//again show the menu to the user asking them what they would like to do\r\n\t\t\t\t\t\t\t//if user enters one or two or three repeat the above steps else exit the loop\r\n\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}while(input == 1 || input == 2 );\r\n\t\t\t\t\t}while(input == 3);\r\n\t\t\t\t\t//if user enters 4 set keepGoing = false print good bye and exit the loop.\r\n\t\t\t\t\tif(input == 4){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tkeepGoing = false;\r\n\t\t\t\t\t\tSystem.out.println( \" Goodbye! \" );\r\n\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//if the file is not found in the system throw an IO exception printing file not found\t\t\t\t\t\t\t\r\n\t\t\t}catch(FileNotFoundException fnfe){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t//catch the exception if the file is not found\r\n\t\t\t\tSystem.out.println(\" File Load Failed! \\n java.io.FileNotFoundException: employees.txt ( The system cannot find the file specified) \\n Program Exiting..... \");\r\n\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t//if the user inputs 2 in the main menu bar exit the loop and say goodBye!\r\n\t\tif(input == 2){\r\n\t\t\t\t\r\n\t\t\tSystem.out.println ( \"\\n Good Bye! \\n\" );\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "private void doViewAllEmployees() {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"***Hors Management System:: System Administration:: View All Staffs\");\n\n List<Employee> employees = employeeControllerRemote.retrieveAllEmployees();\n\n employees.forEach((employee) -> {\n System.out.println(\"Employee ID: \" + employee.getEmployeeId() + \"First Name: \" + employee.getFirstName() + \"Last Name: \" + employee.getLastName() + \"Job Role: \" + employee.getJobRole().toString() + \"Username: \" + employee.getUserName() + \"Password: \" + employee.getPassword());\n });\n\n System.out.println(\"Press any key to continue...>\");\n sc.nextLine();\n }", "public static void main(String[] args) {\n\t\tint ans;\n\t\t\n\t\t//Welcome Message\n\t\tSystem.out.println(\"Welcome to employee wage computation\\n\");\n\t\t\n\t\tEmployee_wage emp = new Employee_wage();\n\t\temp.print_company();\n\t\t\n\t\tdo {\n\t\t\tScanner sc=new Scanner(System.in);\n\t\t\tSystem.out.println(\"\\nEnter 1 to add company details or 2 to compute the wages for the company or 3 to get the total wages of a particular company or 4 to print the company list or 5 to exit the programto print the company list\");\n\t\t\tans=sc.nextInt();\n\t\t\tswitch (ans) {\n\t\t\tcase 1:\n\t\t\t\temp.add_company();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Enter the company name for computing employee wages\");\n\t\t\t\tString name = sc.next();\n\t\t\t\temp.search_company(name);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println(\"Enter the name of the company you want the total wages\");\n\t\t\t\tname = sc.next();\n\t\t\t\temp.fetch_total_wages(name);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.println(\"Company details\");\n\t\t\t\temp.print_company();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tSystem.out.println(\"Exiting the program\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Not a valid option\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(ans!=3);\n\t}", "public static void welcome(){\n\n System.out.print(\"Welcome to the Human Resources Management System.\"+\n \"\\nThis program allows you to add new employees and print all employees.\");\n \n }", "private void mainMenuDetails() {\n try {\n System.out.println(\"Enter your choice:\");\n final int menuOption = option.nextInt();\n switch (menuOption) {\n case 1:\n showFullMenu();\n break;\n case 2:\n acceptRejectResponse();\n break;\n case 3:\n placeOrder();\n break;\n case 4:\n showFullOrder();\n break;\n case 5:\n Runtime.getRuntime().halt(0);\n default:\n System.out.println(\"Choose either 1 or 2\");\n }\n } catch (final Exception e) {\n e.printStackTrace();\n System.out.println(\"enter a valid value\");\n }\n option.nextLine();\n mainMenu();\n }", "public void displayMenu() {\n\t\tSystem.out.println(\"\\n1 to see vehicles in a date interval\");\n\t\tSystem.out.println(\"2 to see a specific reservation\");\n\t\tSystem.out.println(\"3 to see all reservations\");\n\t\tSystem.out.println(\"9 to exit\\n\");\n\t\ttry {\n\t\t\tString in = reader.readLine();\n\t\t\tswitch (in) {\n\t\t\tcase \"1\":\n\t\t\t\tdisplayCarsInInterval();\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tdisplaySpecificBooking();\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tdisplayBookings();\n\t\t\t\tbreak;\n\t\t\tcase \"9\":\n\t\t\t\tSystem.out.println(\"Client application terminated\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Please insert a valid number\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unexpected problem with reading your input, please try again.\");\n\t\t}\n\t\tdisplayMenu();\n\t}", "public static void main(String args[]) throws IOException\r\n\t{\r\n\t\t// Stores the user's menu selection. Only valid between 1 and 7.\r\n\t\tint menuSelection = 0;\r\n\t\t\r\n\t\t// Opening screen with program name & information\r\n\t\tclearScreen();\r\n\t\tSystem.out.println(\"[MGMT CUSTOMER MANAGMENT SOFTWARE]\");\r\n\t\tSystem.out.println(\" author: Nathan Typanski\");\r\n\t\tSystem.out.println(\" version: 1.0\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t// Get a garbage user input before showing the Main menu\r\n\t\tString trash = new String(inputString(true));\r\n\t\t\r\n\t\t// Displays the main menu. Exits when 8 is entered.\r\n\t\twhile(!(menuSelection == 8))\r\n\t\t{\r\n\t\t\tclearScreen();\r\n\t\t\tSystem.out.println(\"[MAIN MENU]\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"1) Create customers\");\r\n\t\t\tSystem.out.println(\"2) Print customers\");\r\n\t\t\tSystem.out.println(\"3) Edit customers\");\r\n\t\t\tSystem.out.println(\"4) Alphabetize customers\");\r\n\t\t\tSystem.out.println(\"5) Search customers\");\r\n\t\t\tSystem.out.println(\"6) Save customer database\");\r\n\t\t\tSystem.out.println(\"7) Restore customer database\");\r\n\t\t\tSystem.out.println(\"8) Quit\");\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\t// Get's the user's input between 1 and 8.\r\n\t\t\tmenuSelection = inputInt(1, 8);\r\n\t\t\t\r\n\t\t\t// Adds a new customer to customer ArrayList\r\n\t\t\tif(menuSelection == 1)\r\n\t\t\t\tcreateCustomer();\r\n\t\t\t\r\n\t\t\t// Prints all customers in a nice scrollable interface\r\n\t\t\telse if(menuSelection == 2)\r\n\t\t\t\tprintCustomers(customers);\r\n\t\t\t\r\n\t\t\t// Allows the user to select and edit a customer based on the customerID\r\n\t\t\telse if(menuSelection ==3)\r\n\t\t\t\teditCustomers(customers);\r\n\t\t\t\r\n\t\t\t// Alphabetizes customers using a bubble sort\r\n\t\t\telse if(menuSelection == 4)\r\n\t\t\t\talphabetizeCustomers();\r\n\t\t\t\r\n\t\t\t// Searches customers based on a name\r\n\t\t\telse if(menuSelection == 5)\r\n\t\t\t\tsearchCustomers(customers);\r\n\t\t\t\r\n\t\t\t// Saves customers to CustomerDatabase.txt\r\n\t\t\telse if(menuSelection == 6)\r\n\t\t\t\tsaveCustomers();\r\n\t\t\t\r\n\t\t\t// Restores customers from CustomerDatabase.txt\r\n\t\t\telse if(menuSelection == 7)\r\n\t\t\t\tloadCustomers();\r\n\t\t}\r\n\t}", "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "void printEmployeeDetail(){\n\t\tSystem.out.println(\"First name: \" + firstName);\n\t\tSystem.out.println(\"Last name: \" + lastName);\n\t\tSystem.out.println(\"Age: \" + age);\n\t\tSystem.out.println(\"Salary: \" + salary);\n\t\tSystem.out.println(firstName + \" has \" + car.color + \" \" + car.model + \" it's VIN is \" + car.VIN + \" and it is make year is \" + car.year );\n\t\t\n\t}", "private void searchJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchJMenuItemActionPerformed\n try\n {\n // Get data on new employee--a separate form is better \n String name = JOptionPane.showInputDialog(\"Name of Employee:\"); \n boolean empExists = true;\n Employee emp = null;\n // Search for employee in employeesArrayList and if not found\n // write employee to external file and store in the ArrayList\n emp = searchEmployee(name);\n if(emp != myEmployee)\n empExists = false;\n else if(emp.equals(\"\"))\n empExists = false;\n \n if(empExists)\n {\n employeeJComboBox.setSelectedItem(emp.getName());\n listModel.clear(); // Clean JList\n String nameAndGrossPay; // Contains name and gross pay \n // Calculate gross pay\n double grossPay = emp.getHours() * emp.getRate();\n //Display name and gross pay in JList\n nameAndGrossPay = emp.getName() + \" = \" + \n dollars.format(grossPay);\n listModel.addElement(\"Gross Pay for Employee\");\n listModel.addElement(nameAndGrossPay);\n // Add the list model to the JList\n employeeJList.setModel(listModel); \n enablePrint(true);\n }\n else\n {\n JOptionPane.showMessageDialog(null, \"Employee Not Found\", \"Error!\",\n JOptionPane.WARNING_MESSAGE); \n clearAll();\n }\n }\n catch (NullPointerException ex) \n {\n JOptionPane.showMessageDialog(null, \"Employee Not Found\", \"Error!\",\n JOptionPane.WARNING_MESSAGE); \n }\n }", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "private void printMainMenu(){\n\t\tprint(\"Please choose from the options below\", System.lineSeparator()+\"1.Login\", \"2.Exit\");\n\t}", "public static void work(Employee [] employee) {\n\t\tfor (int i = 0; i < Employee.getEmployeeQuantity(); i++) {\n\t\t\tif (employee[i+1].isAdminOrNot()) { //Administrative\n\t\t\t\tObject[] options = {\"Rent a Vehicle\", \"Return a Vehicle\", \"Rental Customer Info.\", \"Sales Info.\"\n\t\t\t\t\t\t, \"Employee Info.\", \"Vehicle Info.\", \"Exit\"};\n\t\t\t\tdo {\n\t\t\t\t\tswitch (JOptionPane.showOptionDialog(null, \"Please select one of the menus\", \n\t\t\t\t\t\t\t\"Administrative user\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, \n\t\t\t\t\t\t\tnull, options, options[0])) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Rent a Vehicle\");\n\t\t\t\t\t\t\t\trentVehicle(employee[i]);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Return a Vehicle\");\n\t\t\t\t\t\t\t\treturnVehicle(employee, employee[i]);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Customer Information\");\n\t\t\t\t\t\t\t\tprintCustomerInformation(employee);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Sales Information\");\n\t\t\t\t\t\t\t\tgetSalesInformation(employee);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Employee Information\");\n\t\t\t\t\t\t\t\tgetEmployeeInformation(employee);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Vehicle Information\");\n\t\t\t\t\t\t\t\tgetVehicleInformation(employee);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Now you are exiting this program.\");\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\tdefault: JOptionPane.showMessageDialog(null, \"Error\");\n\t\t\t\t\t}\n\t\t\t\t} while(true);\n\t\t\t} else { //Regular\n\t\t\t\tObject[] options = {\"Rent a Vehicle\", \"Return a Vehicle\", \"Enter Customer Information\"};\n\t\t\t\tdo {\n\t\t\t\t\tswitch (JOptionPane.showOptionDialog(null, \"Please select one of the menus\", \n\t\t\t\t\t\t\t\"Regular user\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, \n\t\t\t\t\t\t\tnull, options, options[0])) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Enter Customer Information\");\n\t\t\t\t\t\t\t\tprintCustomerInformation(employee);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Return a Vehicle\");\n\t\t\t\t\t\t\t\treturnVehicle(employee, employee[i]);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Rent a Vehicle\");\n\t\t\t\t\t\t\t\trentVehicle(employee[i]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Now you are exiting this program.\");\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} while(true);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tAddress johnDoeAdd = new Address(\"114 Market St\", \"St Louis\", \"MO\", \"63403\");\n\t\tPerson johnDoe = new Person(\"John\", \"\", \"Doe\", \"2456895241\", johnDoeAdd);\n\t\tAddress johnEDoeAdd = new Address(\"324 Main St\", \"St Charles\", \"MO\", \"63303\");\n\t\tPerson johnEDoe = new Person(\"John\", \"E\", \"Doe\", \"8475390126\", johnEDoeAdd);\n\t\tAddress johnMDoeAdd = new Address(\"574 Pole ave\", \"St. Peters\", \"MO\", \"63333\");\n\t\tPerson johnMDoe = new Person(\"John Michael\", \"\", \"West Doe\", \"5628592375\", johnMDoeAdd);\n\n\t\tPerson[] persons = new Person[3];\n\t\tpersons[0] = johnDoe;\n\t\tpersons[1] = johnEDoe;\n\t\tpersons[2] = johnMDoe;\n\t\tint choice = 0;\n\t\twhile (choice != 11) {\n\t\t\tchoice = menu();\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Add a new person\");\n\t\t\t\tadd();\n\t\t\tcase 2:\n\t\t\tcase 3:\n\t\t\tcase 11:\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\nString Arshia=\"Super Cool\";\r\nString Ashay=\"Hard-working\";\r\nString Devin=\"Positive\";\r\nString Andrew=\"Helpful\";\r\nString Darren=\"Kind and Nice\";\r\n\t\t// 2. Ask the user to enter a name. Store their answer in a variable.\r\nString input= JOptionPane.showInputDialog(null, \"Enter a name\");\r\nif(input.equalsIgnoreCase(\"Arshia\")) {\r\nJOptionPane.showMessageDialog(null, Arshia);\r\n\r\n}else if( input.equalsIgnoreCase(\"Ashay\")){\r\n\tJOptionPane.showMessageDialog(null, Ashay);\r\n\tif(input.equalsIgnoreCase(\"Devin\")) {\r\n\t\tJOptionPane.showMessageDialog(null, Devin);\r\n\t\tif(input.equalsIgnoreCase(\"Andrew\")) {\r\n\t\t\tJOptionPane.showMessageDialog(null, Andrew);\r\n\t\t\tif(input.equalsIgnoreCase(\"Darren\")) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, Darren);\r\n\t\t\r\n\r\n// 3. In a pop-up, tell the user what is remarkable about that person. \r\n}\r\n\t}\r\n}\r\n}\r\n}", "public static void main(String[] args) {\n\n ArrayList<Car> carList = new ArrayList<>();\n int userMenuSelection = 0;\n do {\n System.out.println(\"Menu Options \\n\" + \"1. Add new car to list. \\n\" + \"2. Remove a car from list. \\n\"\n + \"3. Change a car in the list\\n\" + \"4. Display details of a car. \\n\"\n + \"5. Display details of all cars. \\n\" + \"6. Get average mileage from all the cars.\\n\"\n + \"7. Get cash offer for a car.\\n\");\n System.out.println(\"Please enter the number of the action to perform or 0 to end the program.\");\n userMenuSelection = input.nextInt();\n menuSelection(userMenuSelection, carList);\n\n } while (userMenuSelection != 0);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"MajorAssignment.java - starting main method\\n\");\n\n\t\t// Create a scanner to accept input from the user\n\t\tScanner sc = new Scanner(System.in);\n\t\t// Create a DBConnect object and open a connection\n\t\tDBConnect dbc2 = new DBConnect();\n//\t\tinput your details\n\t\tdbc2.setUpForKnuthMySQL(\"s2992196\", \"iestadom\", \"s2992196\", \"s2992196\", \"iestadom\");\n\t\t// open the connection\n\t\tdbc2.openConnection();\n// creating a do loop that will loop the option once\n\t\tdo {\n\t\t\t// Menu of the application\n//\t\t\tamend the menu with the new options\n\t\t\tSystem.out.println(\"\\n===========================================================\");\n\t\t\tSystem.out.println(\"USER MENU\");\n\t\t\tSystem.out.println(\"Please select an option by typing the corresponding number.\");\n\t\t\tSystem.out.println(\"0. Exit\");\t\t\t\t\n\t\t\tSystem.out.println(\"1. Display the count of the employees\");\n\t\t\tSystem.out.println(\"2. Display records of all employees\");\n\t\t\tSystem.out.println(\"3. Search for an employee by last name\");\n\t\t\tSystem.out.println(\"4. Add a new employee\");\n\t\t\tSystem.out.println(\"5. Show the salary of an employee by entering their number.\");\t\t\t\t\n\t\t\tSystem.out.println(\"6. Show all the employee's department number\");\n\t\t\tSystem.out.println(\"===========================================================\");\n\t\t\tSystem.out.print(\"option> \");\n\n\t\t\t// store the selected option number\n\t\t\tint option = sc.nextInt();\n\n\t\t\t// 0. exit the program\n\t\t\t\n\t\t\tif (option == 0) {\n\t\t\t\tSystem.out.println(\"Exiting the program\");\n\t\t\t\tbreak; //exit the while loop\n//\t\t\t\twhen we exit the loop the program stops\n\t\t\t}\n\n\t\t\t// 1. displaying all employees\n\t\t\telse if (option == 1) {\n\t\t\t\tint result = MajorAssignment.getEmployeeCount(dbc2.getConnection());\n\t\t\t\tSystem.out.println(result);\n//\t\t\t\tthis was done already in the class\n\t\t\t\t// Output the result of the getEmployeeCount method which is implemented after the main method\n//\t\t\t\tWe have written the method, like all the other get methods written in the options, at the bottom of the document\n\t\t\t}\n\n\t\t\t// 2. displaying all employees \n\t\t\telse if (option == 2) {\n//\t\t\t\twe are writing the second option which will show all the employees in the oop_employees table\n//\t\t\t\twe are using the get all employee details method that we have written at the end of the document\n\t\t\t\tEmployee [] result = MajorAssignment.getAllEmployeesDetails(dbc2.getConnection());\n\t\t\t\tfor (Employee e:result) {\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 3. search for an employee by name\n//\t\t\tWe are writing the third option which outputs all the details from an employee when we enter their last name.\n\t\t\telse if (option == 3) {\n\n\t\t\t\t// Use the getEmployeebyLastName method\t\t\t\n//\t\t\t\tAsk for the user input\n\t\t\t\tSystem.out.println(\"Please enter the last name of the employee you are searching for: \");\n\n\t\t\t\tString input_last_name = sc.next();\n\n\t\t\t\tgetEmployeeByLastName(dbc2.getConnection(), input_last_name);\n\n\t\t\t}\n\t\t\t\n\t\t\t// 4. adding an employee\n\n\t\t\telse if (option == 4) {\n\n\t\t\t\t\n\n\t\t\t\t// We are asking for the user input and storing it with a constructor from employee.java\n\n\t\t\t\tEmployee newEmployee = new Employee();\n\n\t\t\t\tSystem.out.println(\"Please enter the employee's employee number: \");\n\n\t\t\t\tint emp_no = sc.nextInt();\n\n\t\t\t\tnewEmployee.setEmpNumber(emp_no);\n\n\t\t\t\tSystem.out.println(\"Please enter the employee's date of birth in the format yyyy-MM-dd: \");\n\n\t\t\t\tString temp = sc.next();\n\n\t\t\t\tDate dob = Date.valueOf(temp);\n\n\t\t\t\tnewEmployee.setBirthDate(dob);\n\n\t\t\t\tSystem.out.println(\"Please enter the employee's first name: \");\n\n\t\t\t\tString f_name = sc.next();\n\n\t\t\t\tnewEmployee.setFirstName(f_name);\n\n\t\t\t\tSystem.out.println(\"Please enter the employee's last name: \");\n\n\t\t\t\tString l_name = sc.next();\n\n\t\t\t\tnewEmployee.setLastName(l_name);\n\n\t\t\t\tSystem.out.println(\"Please enter the employee's gender (M/F): \");\n\n\t\t\t\tString gender = sc.next();\n\n\t\t\t\tnewEmployee.setGender(gender);\n\n\t\t\t\tSystem.out.println(\"Please enter the employee start date in the format yyyy-MM-dd: \");\n\n\t\t\t\tString temp2 = sc.next();\n\n\t\t\t\tDate hire_date = Date.valueOf(temp2); \n\n\t\t\t\tnewEmployee.setHireDate(hire_date);\n\n\t\t\t\t\n//\t\t\t\tWe are inserting the input into a string and formating it accordingly\n\t\t\t\tString insertEmp = String.format(\"CALL newEmployee('%d', '%s', '%s', '%s', '%s', '%s');\", newEmployee.getEmpNo(), newEmployee.getDateofBirth(), newEmployee.getFirstName(), newEmployee.getLastName(), newEmployee.getGender(), newEmployee.getHireDate());\n\n\t\t\t\t\n//\t\t\t\tSaving the formated String and calling the newEmployee method written below\n\t\t\t\tnewEmployee(dbc2.getConnection(), insertEmp);\n\n\t\t\t}\n//\t\t\tI have written the option 5 to show us employees salary when we ask for the employee nubmer\n\t\t\t// 5. Additional functionality \n\t\t\telse if (option == 5) {\t\t\n\n\t\t\t\tSystem.out.println(\"Please enter the number of the employee whose salary you would like to look up: \");\n\n\t\t\t\tint input_emp_no = sc.nextInt();\n//\t\t\t\tStoring the salary and calling the method\n\t\t\t\tgetEmployeeSalary(dbc2.getConnection(), input_emp_no);\n\n\t\t\t\n\t\t\t\t\n\t\t\t}\t\n\t\t\t// 6. Additional functionality \n//\t\t\tI have added the sixth option to show us all the employees with their last names and the department numbers in which they belog\n\t\t\telse if (option == 6) {\n\t\t\t\tgetEmployeeDepartmentNo(dbc2.getConnection());\n\t\t\t}\t\n\n\t\t\t// unknown option\n//\t\t\tthis will be printed in case there is no valid option, meaning if the numbers 0-6 are not entered\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Invalid option.\");\n\t\t\t}\n\t\t}\n\t\t\n//\t\tthe loop runs unless 0 is selected\n\t\twhile(true); //loop until option 0 is selected\n\n\t\t// Close the connection\n\t\tdbc2.closeConnection();\n\t\t// Close the scanner\n\t\tsc.close();\n//\t\twe are calling that the program has ended\n\t\tSystem.out.println(\"MajorAssignment.java - ending main method\\n\");\n\n\t}", "public void menu(){\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"<=======|\" + name + \"|=======>\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tSystem.out.println(\"1 -> Jouer\");\n\t\tSystem.out.println(\"2 -> Creer votre personnage\");\n\t\tSystem.out.println(\"3 -> Charger\");\n\t\tSystem.out.println(\"4 -> Best Score\");\n\t\tSystem.out.println(\"5 -> Instruction\");\n\t\tSystem.out.println(\"6 -> Quitter\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tint choice = in.nextInt();\n\n\t\t\tswitch (choice){\n\t\t\t\tcase 1:\n\t\t\t\t\tstartPlay();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tcreateChar();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tchargeGame();\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.print(\" NOM -\");\n\t\t\t\t\tSystem.out.print(\" GENRE -\");\n\t\t\t\t\tSystem.out.print(\" SANTEE -\");\n\t\t\t\t\tSystem.out.print(\" FORCE -\");\n\t\t\t\t\tSystem.out.print(\" ARMES -\");\n\t\t\t\t\tSystem.out.println(\" ARGENT -\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tbdd.dbQuery(\"SELECT * FROM score ORDER BY health DESC\");\n\t\t\t\t\tmenu();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\trules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\texit();\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Choix non valide\");\n\t\t\t\t\tmenu();\n\t\t\t}\n\t}", "private void mainMenu() {\r\n System.out.println(\"Please choose an option: \");\r\n System.out.println(\"1. New Player\");\r\n System.out.println(\"2. New VIP Player\");\r\n System.out.println(\"3. Quit\");\r\n }", "public static void returnAddNewServicesMenu() {\n System.out.print(\"Please enter a number to continue:\");\n processAddnewServicesMenu();\n }", "private static void profelEmployee(Employee e) {\n\t\tString choix = scannerResultat(e.affichageMenu());\n\t\twhile (!choix.equalsIgnoreCase(\"Q\")) {\n\t\t\tif (choix.equalsIgnoreCase(\"A\")) {\n\t\t\t\te.CreeUneOperation();\n\t\t\t\tchoix = \"Q\";\n\t\t\t}\n\t\t\tif (choix.equalsIgnoreCase(\"B\")) {\n\t\t\t\te.afficherLaListe();\n\t\t\t}\n\t\t\tif (choix.equalsIgnoreCase(\"C\")) {\n\t\t\t\t\n\t\t\t}\n\t\t\tif (choix.equalsIgnoreCase(\"D\")) {\n\t\t\t\te.afficherLaListe();\n\t\t\t}\n\t\t\tif (choix.equalsIgnoreCase(\"E\")) {\n\t\t\t\tchoix = \"Q\";\n\t\t\t}\n\t\t}\n\t}", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "public void userForm(){\n\t\tSystem.out.print(menu);\n\t\tScanner input = new Scanner(System.in);\n\t\tselection = input.nextInt();\n\t\tmenuActions(selection);\n\t\t}", "private static void MainMenuRec(){\n System.out.println(\"Choose one of the following:\");\n System.out.println(\"-----------------------------\");\n System.out.println(\"1. Book room\");\n System.out.println(\"2. Check-out\");\n System.out.println(\"3. See room list\");\n System.out.println(\"4. Create a new available room\");\n System.out.println(\"5. Delete a room\");\n System.out.println(\"6. Make a room unavailable\");\n System.out.println(\"7. Make a (unavailable) room available\");\n System.out.println(\"8. Back to main menu\");\n System.out.println(\"-----------------------------\");\n }", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "public static void main(String[] args)\n\t{\n// FIRST LEVEL MENU\n\t\ttry\n\t\t{\n\t\t\twhile (!exitMenu1) // First level menu\n\t\t\t{\n\t\t\t\texitMenu2 = false; // We want to be able to enter the 2nd level menu\n\t\t\t\tSystem.out.println(\"-1- (create a customer)\\n-2- (view/edit a customer record)\\n-9- (exit the program)\");\n\t\t\t\tuserInput = Integer.parseInt(scan.nextLine());\n\t\t\t\tswitch (userInput)\n\t\t\t\t\t{\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t// Obtaining input from user\n\t\t\t\t\t\tSystem.out.print(\"Enter your first name: \");\n\t\t\t\t\t\tfirstName = scan.nextLine();\n\t\t\t\t\t\tSystem.out.print(\"Enter your last name: \");\n\t\t\t\t\t\tlastName = scan.nextLine();\n\t\t\t\t\t\tSystem.out.print(\"Enter your SIN: \");\n\t\t\t\t\t\tsin = scan.nextLine();\n\t\t\t\t\t\tSystem.out.print(\"Enter your address: \");\n\t\t\t\t\t\taddress = scan.nextLine();\n\n\t\t\t\t\t\t// Creating and saving new customer record\n\t\t\t\t\t\tcustomer_temp = new Customer(firstName, lastName, sin, address);\n\t\t\t\t\t\taddCustomer(customer_temp);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tif (!customerList.isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.print(\"Enter a name to search by: \");\n\t\t\t\t\t\t\tfilter = scan.nextLine();\n\n\t\t\t\t\t\t\tSystem.out.println(searchCustomer(filter));\n\n\t\t\t\t\t\t\tif (!customerSearch.isEmpty())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(displaySearchResults());\n\t// SECOND LEVEL MENU\n\t\t\t\t\t\t\t\twhile (!exitMenu2)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// Get the index of a customer record (in customerList) from customerSearch\n\t\t\t\t\t\t\t\t\tSystem.out.print(\"Choose a record number to edit: \\n-9-(back to the main menu)\\n\");\n\t\t\t\t\t\t\t\t\tuserInput_2 = Integer.parseInt(scan.nextLine());\n\t\t\t\t\t\t\t\t\tif (userInput_2 == 9)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tclearCustomerSearch(); //purge our customerSearch array\n\t\t\t\t\t\t\t\t\t\texitMenu2 = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tSystem.out.printf(\"%s%53s%n\", \"Change credentials: \", \"Account operations: \");\n\t\t\t\t\t\t\t\t\t\tSystem.out.printf(\"%s%52s%n%s%n\", \"-1-(name) -2-(surname) -3-(sin) -4-(address)\", \"-5-(deposit) -6-(withdraw) -7-(add account)\", \"-9-(back to the main menu)\");\n\t\t\t\t\t\t\t\t\t\tuserInput = Integer.parseInt(scan.nextLine());\n\t\t\t\t\t\t\t\t\t\tswitch (userInput)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter new name: \");\n\t\t\t\t\t\t\t\t\t\t\t\tfirstName = scan.nextLine();\n\t\t\t\t\t\t\t\t\t\t\t\tgetCustomer(userInput_2).setFirstName(firstName);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter new surname: \");\n\t\t\t\t\t\t\t\t\t\t\t\tlastName = scan.nextLine();\n\t\t\t\t\t\t\t\t\t\t\t\tgetCustomer(userInput_2).setLastName(lastName);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter new SIN: \");\n\t\t\t\t\t\t\t\t\t\t\t\tsin = scan.nextLine();\n\t\t\t\t\t\t\t\t\t\t\t\tgetCustomer(userInput_2).setSin(sin);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter new address: \");\n\t\t\t\t\t\t\t\t\t\t\t\taddress = scan.nextLine();\n\t\t\t\t\t\t\t\t\t\t\t\tgetCustomer(userInput_2).setAddress(address);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter account number: \");\n\t\t\t\t\t\t\t\t\t\t\t\tacctNumber = Integer.parseInt(scan.nextLine());\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter deposit amount: \");\n\t\t\t\t\t\t\t\t\t\t\t\tamount = Double.parseDouble(scan.nextLine());\n\t\t\t\t\t\t\t\t\t\t\t\tif (getCustomer(userInput_2).getAccount(acctNumber).Deposit(amount))\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Successful deposit!\");\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Invalid amount specified. Operation cancelled.\");\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter account number: \");\n\t\t\t\t\t\t\t\t\t\t\t\tacctNumber = Integer.parseInt(scan.nextLine());\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter withdraw amount: \");\n\t\t\t\t\t\t\t\t\t\t\t\tamount = Double.parseDouble(scan.nextLine());\n\t\t\t\t\t\t\t\t\t\t\t\tif (getCustomer(userInput_2).getAccount(acctNumber).Withdraw(amount))\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Successful withdraw!\");\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Insufficient balance/Limit exceeded. Operation cancelled.\");\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\t\t\t\t\t\tif(getCustomer(userInput_2).createAcct())\n\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\tSystem.out.println(\"A new account has been added\");\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\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\tSystem.out.println(\"A maximum allowed number of accounts has been exceeded\");\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tcase 9:\n\t\t\t\t\t\t\t\t\t\t\t\tclearCustomerSearch(); //we purge our customerSearch array\n\t\t\t\t\t\t\t\t\t\t\t\texitMenu2 = true;\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.println(\"There are no records present\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 9:\n\t\t\t\t\t\texitMenu1 = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tSystem.out.println(\"Terminating...\");\n\t\t}\n\t\t\t\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\tif(employees.size() >= 1){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tfor(Employee employee: employees){\n\t\t\t\t\t\t\tif(employee.getEmployeeId()== Integer.parseInt(empIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\t\tempJTextArea.setText(\"Employee ID: \"+employee.getEmployeeId()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Name: \" +employee.getEmployeeName() \n\t\t\t\t\t\t\t\t\t\t+\"\\n Access Level: \" +employee.getAccess()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Password: \" +employee.getPassword()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Salary: \" +employee.getSalary());\n\t\t\t\t\t\t\t\tempIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch(NumberFormatException nfe){\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Employee Id should be a number.\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No Employees Found\");\n\t\t\t\t}\n\t\t\t}", "public static void menu() {\n\n\t\tSystem.out.println(\"\\n*** MENU ***: \");\n\t\tSystem.out.print(\"\\n1. Host current Date and Time\\n\" + \"2. Host uptime\\n\" + \"3. Host memory use\\n\"\n\t\t\t\t+ \"4. Host IPV4 socket connections\\n\" + \"5. Host current users\\n\" + \"6. Host running processes\\n\"\n\t\t\t\t+ \"7. Quit\\n\" + \"\\nSelect option: \");\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\ttry {\n\t\t\tmenuSelect = sc.nextInt();\n\t\t\tif (menuSelect < 1 || menuSelect > 7) {\n\t\t\t\tSystem.out.println(\"\\nUser invalid input, input number between 1 and 7\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"\\nUser invalid input, input number between 1 and 7\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tswitch (menuSelect) {\n\t\tcase 1:\n\t\t\tSystem.out.println(\"Date Request from Client\");\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tSystem.out.println(\"Uptime Request from Client\");\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tSystem.out.println(\"Memory Use Request from Client\");\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tSystem.out.println(\"IPV4 Socket Connections Request from Client\");\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tSystem.out.println(\"Current Users Request from Client\");\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tSystem.out.println(\"Current OS Version Request from Client\");\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Quit\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tsc.close(); // close the Scanner object\n\t}", "public String promptMenu() {\n String selection;\n promptMenu: do {\n selection = promptString(\n \"\\n======== FLOORING PROGRAM MAIN MENU ========\\n\" + \n \"DISPLAY - Display Orders\\n\" + \n \"ADD - Add an Order\\n\" + \n \"EDIT - Edit an Order\\n\" + \n \"REMOVE - Remove an Order\\n\" + \n \"EXPORT - Export all data to file\\n\" + \n \"EXIT - Exit\\n\" +\n \"What would you like to do?\"\n );\n \n switch(selection.toLowerCase()) {\n case \"display\":\n case \"add\":\n case \"edit\":\n case \"remove\":\n case \"export\":\n case \"exit\":\n break promptMenu;\n default:\n continue;\n }\n } while(true);\n \n return selection;\n }", "public static void facultyText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'ADD' 3.'REMOVE' 4.'FIND' 5.'SCHEDULE' 6.'GRANTS' 7.'MORE' -for more detail about options\");\n\t}", "private void displayCusInterface() {\n\t\t// Display menu options\n\t\tSystem.out.println(\n\t\t\t\"\\nAVAILABLE CUSTOMER COMMANDS:\" +\n\t\t\t\"\\n1: Add customer\" +\n\t\t\t\"\\n2: Show customer info, given customer name\" +\n\t\t\t\"\\n3: Find price for flights between two cities\" +\n\t\t\t\"\\n4: Find all routes between two cities\" +\n\t\t\t\"\\n5: Find all routes between two cities of a given airline\" +\n\t\t\t\"\\n6: Find all routes with available seats between two cities on given day\" +\n\t\t\t\"\\n7: For a given airline, find all routes with available seats between two cities on given day\" +\n\t\t\t\"\\n8: Add reservation\" +\n\t\t\t\"\\n9: Show reservation info, given reservation number\" +\n\t\t\t\"\\n10: Buy ticket from existing reservation\" +\n\t\t\t\"\\n11: Quit\\n\");\n\n\t\t// Get user input\n\t\tSystem.out.print(\"Enter command number: \");\n\t\tinputString = scan.nextLine();\n\t\t// Convert input to integer, if not convertable, set to 0 (invalid)\n\t\ttry { choice = Integer.parseInt(inputString);\n\t\t} catch(NumberFormatException e) {choice = 0;}\n\n\t\t// Handle user choices\n\t\tif(choice == 1) {\n\t\t\tSystem.out.print(\"Please enter Salutation (Mr/Mrs/Ms): \");\n\t\t\tString salutation = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter First Name: \");\n\t\t\tString first = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter Last Name: \");\n\t\t\tString last = scan.nextLine();\n\t\t\ttry { // Check if customer already exists\n\t\t\t\tquery = \"select * from CUSTOMER where first_name = ? and last_name = ?\";\n\t\t\t\tPreparedStatement updateStatement = connection.prepareStatement(query);\n\t\t\t\tupdateStatement.setString(1,first);\n\t\t\t\tupdateStatement.setString(2,last);\n\t\t\t\tupdateStatement.executeUpdate();\n\t\t\t\tresultSet = updateStatement.executeQuery(query);\n\t\t\t\t// If name doesn't exist, continue and get additional user input\n\t\t\t\tif(!resultSet.next()) {\n\t\t\t\t\tSystem.out.print(\"Please enter Street Address: \");\n\t\t\t\t\tString street = scan.nextLine();\n\t\t\t\t\tSystem.out.print(\"Please enter City: \");\n\t\t\t\t\tString city = scan.nextLine();\n\t\t\t\t\tSystem.out.print(\"Please enter State (2 letter): \");\n\t\t\t\t\tString state = scan.nextLine();\n\t\t\t\t\tSystem.out.print(\"Please enter Phone Number: \");\n\t\t\t\t\tString phone = scan.nextLine();\n\t\t\t\t\tSystem.out.print(\"Please enter Email address: \");\n\t\t\t\t\tString email = scan.nextLine();\n\t\t\t\t\tSystem.out.print(\"Please enter Credit Card Number: \");\n\t\t\t\t\tString cardNum = scan.nextLine();\n\t\t\t\t\tSystem.out.print(\"Please enter Credit Card Expiration Date (MM/YYYY): \");\n\t\t\t\t\tString expire = scan.nextLine();\n\t\t\t\t\tcus1(salutation, first, last, street, city, state, phone, email, cardNum, expire);\n\t\t\t\t} else System.out.println(\"ERROR: Customer already exists!\");\n\t\t\t} catch(SQLException Ex) {System.out.println(\"Error running the sample queries. Machine Error: \" + Ex.toString());}\n\t\t}\n\t\telse if(choice == 2) {\n\t\t\tSystem.out.print(\"Please enter Customer First Name: \");\n\t\t\tString first = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter Last Name: \");\n\t\t\tString last = scan.nextLine();\n\t\t\tcus2(first, last);\n\t\t}\n\t\telse if(choice == 3) {\n\t\t\tSystem.out.print(\"Please enter City One (3 letter): \");\n\t\t\tString one = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter City Two (3 letter): \");\n\t\t\tString two = scan.nextLine();\n\t\t\tcus3(one, two);\n\t\t}\n\t\telse if(choice == 4) {\n\t\t\tSystem.out.print(\"Please enter Departure City (3 letter): \");\n\t\t\tString depart = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter Arrival City (3 letter): \");\n\t\t\tString arrive = scan.nextLine();\n\t\t\tcus4(depart, arrive);\n\t\t}\n\t\telse if(choice == 5) {\n\t\t\tSystem.out.print(\"Please enter Departure City (3 letter): \");\n\t\t\tString depart = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter Arrival City (3 letter): \");\n\t\t\tString arrive = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter Airline name (full name): \");\n\t\t\tString airline = scan.nextLine();\n\t\t\tcus5(depart, arrive, airline);\n\t\t}\n\t\telse if(choice == 6) {\n\t\t\tSystem.out.print(\"Please enter Departure City (3 letter): \");\n\t\t\tString depart = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter Arrival City (3 letter): \");\n\t\t\tString arrive = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter Date (MM/DD/YYYY): \");\n\t\t\tString date = scan.nextLine();\n\t\t\tcus6(depart, arrive, date);\n\t\t}\n\t\telse if(choice == 7) {\n\t\t\tSystem.out.print(\"Please enter Departure City (3 letter): \");\n\t\t\tString depart = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter Arrival City (3 letter): \");\n\t\t\tString arrive = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter Date (MM/DD/YYYY): \");\n\t\t\tString date = scan.nextLine();\n\t\t\tSystem.out.print(\"Please enter Airline name (full name): \");\n\t\t\tString airline = scan.nextLine();\n\t\t\tcus7(depart, arrive, date, airline);\n\t\t}\n\t\telse if(choice == 8) {\n\t\t\t// Flight numbers\n\t\t\tString flight1 = null, flight2 = null, flight3 = null, flight4 = null;\n\t\t\t// Flight dates\n\t\t\tString dateN1 = null, dateN2 = null, dateN3 = null, dateN4 = null;\n\t\t\t// Booleans for if flight is available or wasn't entered\n\t\t\tboolean flight1A = false, flight2A = false, flight3A = false, flight4A = false;\n\t\t\tSystem.out.println(\"ADDING RESERVATION:\\nAdd first flight:\");\n\t\t\t// Get first leg (required)\n\t\t\tSystem.out.print(\" Flight Number: \");\n\t\t\tflight1 = scan.nextLine();\n\t\t\tSystem.out.print(\" Departure Date (MM/DD/YYYY): \");\n\t\t\tdateN1 = scan.nextLine();\n\t\t\t// Get second leg (optional)\n\t\t\tSystem.out.print(\"Add another leg in this direction? (Y/N): \");\n\t\t\tinputString = scan.nextLine();\n\t\t\tif(inputString.equals(\"Y\") || inputString.equals(\"y\")) {\n\t\t\t\tSystem.out.print(\" Flight Number: \");\n\t\t\t\tflight2 = scan.nextLine();\n\t\t\t\tSystem.out.print(\" Departure Date (MM/DD/YYYY): \");\n\t\t\t\tdateN2 = scan.nextLine();\n\t\t\t}\n\t\t\t// Get return trip first leg (optional)\n\t\t\tSystem.out.print(\"Add return trip? (Y/N): \");\n\t\t\tinputString = scan.nextLine();\n\t\t\tif(inputString.equals(\"Y\") || inputString.equals(\"y\")) {\n\t\t\t\tSystem.out.print(\" Flight Number: \");\n\t\t\t\tflight3 = scan.nextLine();\n\t\t\t\tSystem.out.print(\" Departure Date (MM/DD/YYYY): \");\n\t\t\t\tdateN3 = scan.nextLine();\n\t\t\t\t// Get return trip second leg (optional, requires return trip first leg)\n\t\t\t\tSystem.out.print(\"Add another leg in this direction? (Y/N): \");\n\t\t\t\tinputString = scan.nextLine();\n\t\t\t\tif(inputString.equals(\"Y\") || inputString.equals(\"y\")) {\n\t\t\t\t\tSystem.out.print(\" Flight Number: \");\n\t\t\t\t\tflight4 = scan.nextLine();\n\t\t\t\t\tSystem.out.print(\" Departure Date (MM/DD/YYYY): \");\n\t\t\t\t\tdateN4 = scan.nextLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry { // Check if seats are available in non-null flights\n\t\t\t\tPreparedStatement updateStatement;\n\t\t\t\tif(flight2 != null && !flight1.isEmpty()) { // Check if flight1 seat is available\n\t\t\t\t\tquery = \"select flight_number from flight f1, plane where f1.flight_number = ? AND plane.plane_capacity > (select count(D.flight_number) from DETAIL D where D.flight_number = ?)\";\n\t\t\t\t\tupdateStatement = connection.prepareStatement(query);\n\t\t\t\t\tupdateStatement.setString(1,flight1);\n\t\t\t\t\tupdateStatement.setString(2,flight1);\n\t\t\t\t\tupdateStatement.executeUpdate();\n\t\t\t\t\tresultSet = updateStatement.executeQuery(query);\n\t\t\t\t\tif(resultSet.next())\n\t\t\t\t\t\tflight1A = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tflight1A = true;\n\t\t\t\tif(flight2 != null && !flight2.isEmpty()) { // Check if flight2 seat is available\n\t\t\t\t\tquery = \"select flight_number from flight f1, plane where f1.flight_number = ? AND plane.plane_capacity > (select count(D.flight_number) from DETAIL D where D.flight_number = ?)\";\n\t\t\t\t\tupdateStatement = connection.prepareStatement(query);\n\t\t\t\t\tupdateStatement.setString(1,flight2);\n\t\t\t\t\tupdateStatement.setString(2,flight2);\n\t\t\t\t\tupdateStatement.executeUpdate();\n\t\t\t\t\tresultSet = updateStatement.executeQuery(query);\n\t\t\t\t\tif(resultSet.next())\n\t\t\t\t\t\tflight2A = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tflight2A = true;\n\t\t\t\tif(flight3 != null && !flight3.isEmpty()) { // Check if flight3 seat is available\n\t\t\t\t\tquery = \"select flight_number from flight f1, plane where f1.flight_number = ? AND plane.plane_capacity > (select count(D.flight_number) from DETAIL D where D.flight_number = ?)\";\n\t\t\t\t\tupdateStatement = connection.prepareStatement(query);\n\t\t\t\t\tupdateStatement.setString(1,flight3);\n\t\t\t\t\tupdateStatement.setString(2,flight3);\n\t\t\t\t\tupdateStatement.executeUpdate();\n\t\t\t\t\tresultSet = updateStatement.executeQuery(query);\n\t\t\t\t\tif(resultSet.next())\n\t\t\t\t\t\tflight3A = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tflight3A = true;\n\t\t\t\tif(flight4 != null && !flight4.isEmpty()) { // Check if flight4 seat is available\n\t\t\t\t\tquery = \"select flight_number from flight f1, plane where f1.flight_number = ? AND plane.plane_capacity > (select count(D.flight_number) from DETAIL D where D.flight_number = ?)\";\n\t\t\t\t\tupdateStatement = connection.prepareStatement(query);\n\t\t\t\t\tupdateStatement.setString(1,flight4);\n\t\t\t\t\tupdateStatement.setString(2,flight4);\n\t\t\t\t\tupdateStatement.executeUpdate();\n\t\t\t\t\tresultSet = updateStatement.executeQuery(query);\n\t\t\t\t\tif(resultSet.next())\n\t\t\t\t\t\tflight4A = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tflight4A = true;\n\t\t\t\t// If all non-null flights are available, get cid and call cus8 to gather data and make reservation\n\t\t\t\tif(flight1A && flight2A && flight3A && flight4A) {\n\t\t\t\t\t// Get customer CID\n\t\t\t\t\tSystem.out.print(\"Seating available!\\n Please enter CID: \");\n\t\t\t\t\tString cid = scan.nextLine();\n\t\t\t\t\tcus8(flight1, flight2, flight3, flight4, dateN1, dateN2, dateN3, dateN4, cid);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"SEATING UNAVAILABLE ON ONE OR MORE FLIGHTS\");\n\t\t\t} catch(SQLException Ex) {System.out.println(\"Error running the sample queries. Machine Error: \" + Ex.toString());}\n\t\t}\n\t\telse if(choice == 9) {\n\t\t\tSystem.out.print(\"Please enter reservation number: \");\n\t\t\tString num = scan.nextLine();\n\t\t\tcus9(num);\n\t\t}\n\t\telse if(choice == 10) {\n\t\t\tSystem.out.print(\"Please enter reservation number: \");\n\t\t\tString num = scan.nextLine();\n\t\t\tcus10(num);\n\t\t}\n\t\telse if(choice == 11) exit = true;\n\t\telse System.out.println(\"INVALID CHOICE\");\n\n\t\tif(!exit) { // Exiting will ignore loop and drop to main to exit properly\n\t\t\t// Repeat menu after user controlled pause\n\t\t\tSystem.out.print(\"Press Enter to Continue... \");\n\t\t\tscan.nextLine();\n\t\t\tdisplayCusInterface();\n\t\t}\n\t}", "public static void showEmployees(RequestHandler handler) {\n\t\tStringBuilder sb;\n\t\tsb = new StringBuilder();\n\t\tsb.append(\"\\nDisplaying all employees:\");\n\t\thandler.sendMessage(sb.toString());\n\t\tfor (Employee e : EmployeeData.getEmployees()) {\n\t\t\tshowEmployee(handler, e);\n\t\t}\n\t\thandler.sendMessage(new StringBuilder(\"Finished Displaying Employees\"));\n\t}", "public static void printEmployees() {\n List<Employee> employees = null;\n try {\n employees = employeeRepository.getAll(dataSource);\n } catch (SQLException e) {\n LOGGER.error(e.getMessage());\n }\n if (employees.isEmpty()) {\n System.out.println(\"\\n\" + resourceBundle.getString(\"empty.list\") + \"\\n\");\n LOGGER.warn(\"The list of employees is empty\");\n return;\n }\n System.out.println();\n employees.forEach(System.out::println);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (addName.equals(e.getSource())) {\n\t\t\tadd\t= JOptionPane.showInputDialog(null,\"What Name Would You Like To Add To The Guest Book?\");\n\t\t\tnames.add(add);\n\t\t}\n\t\tif(viewNames.equals(e.getSource())){\n\t\t\tfor (int i =1; i < names.size(); i++) {\n\t\t\t\tString s = names.get(i);\n\t\t\t\tSystem.out.println(\"Guest Book Names: \"+s+\" \"+i); \n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "public static void studentText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'ADD' 3.'REMOVE' 4.'FIND 5.'ENROLL' 6.'WITHDRAW' 7.'SCHEDULE' 8.'MORE' -for more detail about options\");\n\t}", "private void editJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editJMenuItemActionPerformed\n // TODO add your handling code here:\n //Clear and set JTextFields visible--not a good a good implementation\n int index = employeeJComboBox.getSelectedIndex();\n try\n {\n String employeeName = employeeJComboBox.getSelectedItem().toString();\n\n //Create a temp city to populate fields of form\n Employee employeeToEdit = new Employee(findEmployee(employeeName));\n \n //pass city info to EdiCity constructor and view Edit form\n EditEmployee editedEmployee = new EditEmployee(this, true, employeeToEdit);\n editedEmployee.setVisible(true);\n if(editedEmployee.getEmployee() != null)\n {\n employees.remove(index);\n employees.add(index, editedEmployee.getEmployee());\n saveEmployee();\n displayEmployee();\n }\n }\n catch(NullPointerException nullex)\n {\n JOptionPane.showMessageDialog(null, \"Employee not edited\", \"Input error\",\n JOptionPane.WARNING_MESSAGE);\n //clearAll();\n employeeJList.setVisible(true);\n employeeJList.setSelectedIndex(0);\n }\n\n }", "public static void Display() {\n\t\tStockAccountImp SAI = new StockAccountImp();\n\t\tSystem.out.println(\"************Menu*************\");\n\t\tSystem.out.println(\"1.Add the User into the file\");\n\t\tSystem.out.println(\"2.Buy the Share\");\n\t\tSystem.out.println(\"3.Sell the Share\");\n\t\tSystem.out.println(\"4.Display\");\n\t\tSystem.out.println(\"5.Exit\");\n\t\tSystem.out.println(); \n\t\tSystem.out.println(\"Enter the Choice\");\n\t\tint choice =sc.nextInt();\n\t\tswitch(choice) {\n\t\tcase 1:\n\t\t\t\ttry {\n\t\t\t\t\tSAI.createUser();\n\t\t\t\t\tDisplay();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\tcase 2:try {\n\t\t\t\t\tSAI.buyShare();\n\t\t\t\t\tDisplay();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\tbreak;\n\t\tcase 3:try {\n\t\t\t\t\tSAI.sellShare();\n\t\t\t\t\tDisplay();\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\tbreak;\n\t\t\tcase 4:try {\n\t\t\t\t\tdisplayReport();\n\t\t\t\t\tDisplay();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tbreak;\n\t\tcase 5: break;\n\t\t\n\t\t}\n\t\t\n\t}", "protected static int mainMenu() {\n System.out.println(\"Main Menu:\");\n System.out.println(\" 1 - Add a room\");\n System.out.println(\" 2 - Remove a room\");\n System.out.println(\" 3 - Schedule a room\");\n System.out.println(\" 4 - List Schedule\");\n System.out.println(\" 5 - List Rooms\");\n System.out.println(\" 6 - save Roomdetails\");\n System.out.println(\" 7 - save schedule\");\n System.out.println(\" 8 - save meeting\");\n System.out.println(\" 9 - import Roomdetails\");\n System.out.println(\" 10 -import schedule\");\n System.out.println(\" 11 -import meeting\");\n System.out.println(\"Enter your selection: \");\n\n return keyboard.nextInt();\n }", "public static void studentExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit to the Main Menu\");\n\t\tSystem.out.println(\"Enter 'ADD' followed by: studentID, studentName, major, class, and GPA to add a student record\");\n\t\tSystem.out.println(\"Enter 'REMOVE' followed by a studentID to remove a student\");\n\t\tSystem.out.println(\"Enter 'FIND' followed by a studentID or studentName to pull up student's information\");\n\t\tSystem.out.println(\"Enter 'ENROLL' followed by a studentID, deptID and course_Number to enroll a student\");\n\t\tSystem.out.println(\"Enter 'WITHDRAW' followed by a studentID, deptID and course_Number to withdraw a student in a course\");\n\t\tSystem.out.println(\"Enter 'SCHEDULE' followed by a studentID or studentName to list all courses student is enrolled in.\");\n\t}", "public static String menuSelection() throws ParseException {\n System.out.print(\"\\nWelcome to Poised!\");\n System.out.print(\"\\n1\\t-\\tAdd a new project\");\n System.out.print(\"\\n2\\t-\\tChange due date of a project\");\n System.out.print(\"\\n3\\t-\\tChange payment on project\");\n System.out.print(\"\\n4\\t-\\tUpdate contact details\");\n System.out.print(\"\\n5\\t-\\tFinalise a project\");\n System.out.print(\"\\nPlease make your selection: \");\n\n // User's selection determine which method should be called\n // If user's selection is '1', then user can create a new project\n int userSelection = input.nextInt();\n input.nextLine();\n if (userSelection == 1) {\n ProjectList.add(createProject());\n }\n\n // If user selection '2', then can amend the due date of the project\n else if (userSelection == 2) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n newDeadline(selectedProj);\n }\n\n // If user selects '3', then user can change the payment on the project\n else if (userSelection == 3) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n makePayment(selectedProj);\n }\n\n // If user selects '4', then user can update the details of either the\n // contractor, client or architect.\n else if (userSelection == 4) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n updateDetails(selectedProj);\n }\n\n // If user selects '5', then user can finalise the project\n else if (userSelection == 5) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n finalisation(selectedProj);\n }\n\n return menuSelection();\n }", "public static void getEmployeeInformation(Employee [] employee) {\n\t\tif (Employee.getEmployeeQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no employee!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Employee.getEmployeeQuantity(); i++) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"-------List of Employees-------\\n\"\n\t\t\t\t\t\t+ (i+1) + \": \"+ employee[i+1].getName() + \"\\n\");\n\t\t\t}\t\t\t\n\t\t}\n\t}", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "public void menuOptions(String type) {\n System.out.println(\"\\n\" + \"To select an option, type what's inside the parenthesis.\");\n System.out.println(\"While in a sub-menu -> (0) Back out of a sub-menu. \\n\");\n System.out.println(\"Main Menu\");\n if (type.equals(\"Attendee\") || type.equals(\"VIP\")) {\n System.out.println(\"(1a) Message, (2a) Contacts, (3a) Signup, (4a) See Attendee Schedule\");\n System.out.println(\"(5a) Get Event Details, (6a) View Conference Schedule, \"+\n \" (p) Export the conference schedule to a PDF\");\n } else if (type.equals(\"Organizer\")) {\n System.out.println(\"(1o) Message, (2o) Contacts, (3o) View Conference Schedule\");\n System.out.println(\"(4o) Modify Events, (5o) Add room, (6o) Create a User account\"+\n \" (p) Export the conference schedule to a PDF\");\n System.out.println(\"(7o) View Current Rooms, (8o) Get Event Details\");\n } else if (type.equals(\"Speaker\")) {\n System.out.println(\"(1s) Message, (2s) Contacts, (3s) See Speaker Schedule\");\n System.out.println(\"(4s) Get Event Details, (5s) View Conference Schedule\"+\n \" (p) Export the conference schedule to a PDF\");\n }\n System.out.println(\"Type Quit to logout\");\n }", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tEmployeeService service=new EmployeeService();\r\n\t Map<Integer,Employee> acc=new TreeMap<Integer,Employee>();\r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString choice=\"\";\r\n\t\twhile(true)\r\n\t\t{\r\n\t\tSystem.out.println(\"Menu\");\r\n\t\tSystem.out.println(\"======================\");\r\n\t\tSystem.out.println(\"1 for creating employee and getting details from user\");\r\n\t\tSystem.out.println(\"2 for calculating scheme\");\r\n\t\tSystem.out.println(\"3 for display\");\r\n\t\tSystem.out.println(\"4 for exit\");\r\n\t\tchoice=br.readLine();\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\tcase \"1\":int eid=0;String ename=\"\"; double salary=0.0; String designation=\"\";\r\n\t\t\t System.out.println(\"employee id\");\r\n\t\t\t while(true)\r\n\t\t\t {\r\n\t\t\t \t String s_id=br.readLine();\r\n\t\t\t \t boolean c=Validator.validate(s_id, Validator.idpattern);\r\n\t\t\t \t if(c==true)\r\n\t\t\t \t {\r\n\t\t\t \t\t try {\r\n\t\t\t \t\t eid=Integer.parseInt(s_id);\r\n\t\t\t \t\t break;\r\n\t\t\t \t }\r\n\t\t\t \t\t catch(NumberFormatException e)\r\n\t\t\t \t\t {\r\n\t\t\t \t\t\t System.out.println(\"Enter employee number in numeric\");\r\n\t\t\t \t\t }\r\n\t\t\t }\r\n\t\t\t \t else\r\n\t\t\t \t {\r\n\t\t\t \t\t System.out.println(\"Enter id in 3 digits\");\r\n\t\t\t \t }\r\n\t\t }//end of employee id while\r\n\t\t \r\n\t\t\t System.out.println(\"employee name\");\r\n\t\t\t while(true)\r\n\t\t\t {\r\n\t\t\t \t String s_na=br.readLine();\r\n\t\t\t \t boolean c=Validator.validate(s_na, Validator.namepattern);\r\n\t\t\t \t if(c==true)\r\n\t\t\t \t {\r\n\t\t\t \t\t try {\r\n\t\t\t \t\t ename=s_na;\r\n\t\t\t \t\t break;\r\n\t\t\t \t }\r\n\t\t\t \t\t catch(NumberFormatException e)\r\n\t\t\t \t\t {\r\n\t\t\t \t\t\t System.out.println(\"Enter employee number in alphabetical order\");\r\n\t\t\t \t\t }\r\n\t\t\t }\r\n\t\t\t \t else\r\n\t\t\t \t {\r\n\t\t\t \t\t System.out.println(\"Enter name in correct format\");\r\n\t\t\t \t }\r\n\t\t }//end of employee name while\r\n\t\t \r\n\t\t\t System.out.println(\"employee designation\");\r\n\t\t\t while(true)\r\n\t\t\t {\r\n\t\t\t \t String s_d=br.readLine();\r\n\t\t\t \t boolean c=Validator.validate(s_d, Validator.despattern);\r\n\t\t\t \t if(c==true)\r\n\t\t\t \t {\r\n\t\t\t \t\t try {\r\n\t\t\t \t\t designation=s_d;\r\n\t\t\t \t\t break;\r\n\t\t\t \t }\r\n\t\t\t \t\t catch(NumberFormatException e)\r\n\t\t\t \t\t {\r\n\t\t\t \t\t\t System.out.println(\"Enter employee designation in alphabets\");\r\n\t\t\t \t\t }\r\n\t\t\t }\r\n\t\t\t \t else\r\n\t\t\t \t {\r\n\t\t\t \t\t System.out.println(\"Enter designation again\");\r\n\t\t\t \t }\r\n\t\t }//end of employee id while\r\n\t\t\t System.out.println(\"employee salary\");\r\n\t\t\t while(true)\r\n\t\t\t {\r\n\t\t\t \t String s_sa=br.readLine();\r\n\t\t\t \t boolean c=Validator.validate(s_sa, Validator.salpattern);\r\n\t\t\t \t \r\n\t\t\t \t if(c==true)\r\n\t\t\t \t {\r\n\t\t\t \t\t try {\r\n\t\t\t \t\t salary=Double.parseDouble(s_sa);\r\n\t\t\t \t\t break;\r\n\t\t\t \t }\r\n\t\t\t \t\t catch(NumberFormatException e)\r\n\t\t\t \t\t {\r\n\t\t\t \t\t\t System.out.println(\"Enter employee salary in numeric\");\r\n\t\t\t \t\t }\r\n\t\t\t }\r\n\t\t\t \t else\r\n\t\t\t \t {\r\n\t\t\t \t\t System.out.println(\"Enter salary again \");\r\n\t\t\t \t }\r\n\t\t\t \t \r\n\t\t\t \t if(salary<0)\r\n\t\t\t \t {\r\n\t\t\t \t\t System.out.println(\"Enter the salary greater than zero \");\r\n\t\t\t \t\t break;\r\n\t\t\t \t }\r\n\t\t\t \t \r\n\t\t }//end of employee id while\r\n\t\t\t Employee ob=new Employee(eid,ename,salary,designation);\r\n\t \t\t acc.put(ob.getEid(),ob);\r\n\t\t\t System.out.println(\"Employee added\");\r\n\t\t break;\r\n\t\t \r\n\t\tcase \"2\"://System.out.println(\"enter employee id \");\r\n\t\t //eid=Integer.parseInt(br.readLine());\r\n\t\t\t Collection<Employee> v=acc.values();\r\n\t List<Employee> acclis=new ArrayList<Employee>(v);\r\n\t for(Employee o:acclis)\r\n\t {\r\n\t \t service.calculateScheme(o);\r\n\t }\r\n\t\t //System.out.println(service.calculateScheme(acc.get(eid)));\r\n\t\t break;\r\n\t\t \r\n\t\tcase \"3\":System.out.println(\"The details for employees are\");\r\n\t\t System.out.println(\"=============================\");\r\n\t\t Collection<Employee> vc=acc.values();\r\n\t\t List<Employee> acclist=new ArrayList<Employee>(vc);\r\n\t\t for(Employee o:acclist)\r\n\t\t {\r\n\t\t \t service.display(o);\r\n\t\t }\r\n\t\t break;\r\n\t\t \r\n\t\tcase \"4\":System.out.println(\"System exiting\");\r\n\t\t System.exit(0);\r\n\t\t break;\r\n\t\t \r\n\t\tdefault:System.out.println(\"wrong choice\");\r\n\t\t}\r\n\t\t}\r\n\t}", "public void displayMenu() throws FileNotFoundException {\n\t\tfinal String BOOK_KEY = \"1234\";\n\t\tString option;\n\t\tString isbnSelection;\n\t\tString bookTitle;\n\t\tString displayBookOfType;\n\t\tint typeOfBook;\n\t\tint numOfRandomBooks;\n\t\tchar freqSelected;\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tSystem.out.printf(\"Welcome to the ABC Book Company: How may we assist you?%n\" + \"1. Checkout Book%n\"\n\t\t\t\t+ \"2. Find Books by Title%n\" + \"3. Display Books by Type%n\" + \"4. Produce Random Book List%n\"\n\t\t\t\t+ \"5. Save & Exit%n%n\");\n\n\t\tSystem.out.printf(\"Enter option: \");\n\t\toption = in.nextLine();\n\n\t\twhile (!option.equals(\"5\")) {\n\t\t\tswitch (option) {\n\t\t\tcase \"1\":\n\t\t\t\tSystem.out.printf(\"Enter the ISBN of book: \");\n\t\t\t\tisbnSelection = in.nextLine();\n\t\t\t\tcheckOutBook(isbnSelection);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tSystem.out.printf(\"Enter the title to search for: \");\n\t\t\t\tbookTitle = in.nextLine();\n\t\t\t\tfindBookTitle(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tSystem.out.printf(\"# Type%n\" + \"1. Children's Books%n\" + \"2. CookBooks%n\" + \"3. Paperbacks%n\"\n\t\t\t\t\t\t+ \"4. Periodicals%n%n\");\n\t\t\t\tSystem.out.printf(\"Enter type of book: \");\n\n\t\t\t\tdisplayBookOfType = in.nextLine();\n\t\t\t\t\n\t\t\t\tif (BOOK_KEY.contains(displayBookOfType)&&displayBookOfType.length()==1) {\n\t\t\t\t\ttypeOfBook = Integer.parseInt(displayBookOfType);\n\t\t\t\t\tif (typeOfBook == 4) {\n\t\t\t\t\t\tSystem.out.printf(\"%nEnter a frequency (D for Daily, W for Weekly, \"\n\t\t\t\t\t\t\t\t+ \"M for Monthly, B for Biweekly, or Q for Quarterly): \");\n\t\t\t\t\t\tfreqSelected = in.nextLine().charAt(0);\n\t\t\t\t\t\tshowBookType(typeOfBook, freqSelected); // displayFrequency method needed!\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowBookType(typeOfBook);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Enter a valid book type (1-4):\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\tcase \"4\":\n\t\t\t\tSystem.out.printf(\"Enter number of books: \");\n\t\t\t\ttry {\n\t\t\t\t\tnumOfRandomBooks = Integer.parseInt(in.nextLine());\n\t\t\t\t\tif (numOfRandomBooks <= 50 && numOfRandomBooks >= 0) {\n\t\t\t\t\t\tproduceRandomBookList(numOfRandomBooks);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"Wrong user Input. Please use an appropriate number from 1-50.\");\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Wrong user Input. Please use an appropriate number from 1-50.\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Please enter an appropriate choice (1-4):\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.printf(\"Welcome to the ABC Book Company: How may we assist you?%n\" + \"1. Checkout Book%n\"\n\t\t\t\t\t+ \"2. Find Books by Title%n\" + \"3. Display Books by Type%n\" + \"4. Produce Random Book List%n\"\n\t\t\t\t\t+ \"5. Save & Exit%n%n\");\n\n\t\t\tSystem.out.printf(\"Enter option: \");\n\n\t\t\toption = in.nextLine();\n\t\t}\n\t\tsaveBook();\n\t\tin.close();\n\t}", "public void displayMenu () {\n\t\twhile (true) {\n\t\t\tint option = -1;\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\twhile ((option < 1) || (option > 8)) {\n\t\t\t\tSystem.out.println(\"________________________________________________________________\");\n\t\t\t\tSystem.out.println(\" ADDRESS BOOK MENU\");\n\t\t\t\tSystem.out.println(\"________________________________________________________________\");\n\t\t\t\tSystem.out.println(\"1. Add new entry\");\n\t\t\t\tSystem.out.println(\"2. Edit an entry\");\n\t\t\t\tSystem.out.println(\"3. View entry details\");\n\t\t\t\tSystem.out.println(\"4. Delete an entry\");\n\t\t\t\tSystem.out.println(\"5. Sort address book by name\");\n\t\t\t\tSystem.out.println(\"6. Sort address book by zip code\");\n\t\t\t\tSystem.out.println(\"7. List all entries in mailing format\");\n\t\t\t\tSystem.out.println(\"8. Done (Go back)\");\n\n\t\t\t\tSystem.out.print(\"\\nEnter the corresponding number to select an option: \");\n\n\t\t\t\ttry {\n\t\t\t\t\toption = sc.nextInt();\n\t\t\t\t} catch (InputMismatchException e) {\n\t\t\t\t\tsc.nextLine();\t\t\t// Clear the buffer\n\t\t\t\t\tSystem.out.println(\"\\nERROR: Entered option must be a number from 1 to 8\");\n\t\t\t\t\tSystem.out.println(\"Please try again.\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif ((option < 1) || (option > 8)) {\n\t\t\t\t\tSystem.out.println(\"\\nERROR: Entered option must be a number from 1 to 8\");\n\t\t\t\t\tSystem.out.println(\"Please try again.\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"________________________________________________________________\");\n\n\t\t\tswitch (option) {\n\t\t\t\tcase 1:\n\t\t\t\t\tthis.addEntry();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tthis.editEntry();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.viewEntry();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tthis.deleteEntry();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tthis.sortAddressBookByName();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tthis.sortAddressBookByZipCode();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tthis.showAllEntries();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tSystem.out.println(\"Exiting Address Book Menu...\");\n\t\t\t\t\treturn;\t\t// Exit AddresBookMenu\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"\\nERROR: Entered option must be a number from 1 to 6\");\n\t\t\t\t\tSystem.out.println(\"Please try again.\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"________________________________________________________________\");\t\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// Give all details of first employee\n\t\tSystem.out.println(\"Give the information about first employee\");\n\t\tSystem.out.println(\"Name of first employee\");\n\n\t\t// Take name of first employee from user\n\t\tString name1 = sc.next();\n\n\t\tSystem.out.println(\"Department id of first employee\");\n\n\t\t// Take department id of first employee from user\n\t\tString id1 = sc.next();\n\n\t\tSystem.out.println(\"Salary of first employee\");\n\n\t\t// Take salary of first employee from user\n\t\tint salary1 = sc.nextInt();\n\n\t\t// Provide details of first employee\n\t\tEmployeeQ7 e1 = new EmployeeQ7(name1, id1, salary1);\n\n\t\t// Give all details of second employee\n\t\tSystem.out.println(\"Give the information about second employee\");\n\t\tSystem.out.println(\"Name of second employee\");\n\n\t\t// Take name of second employee from user\n\t\tString name2 = sc.next();\n\n\t\tSystem.out.println(\"Department id of second employee\");\n\n\t\t// Take department id of second employee from user\n\t\tString id2 = sc.next();\n\n\t\tSystem.out.println(\"salary of second employee\");\n\n\t\t// Take salary of second employee from user\n\t\tint salary2 = sc.nextInt();\n\n\t\t// Provide details of second employee\n\t\tEmployeeQ7 e2 = new EmployeeQ7(name2, id2, salary2);\n\n\t\t// Call compareEmployeeSalary method and provide details of both\n\t\t// employee\n\t\tcompareEmployeeSalary(e1, e2);\n\n\t}" ]
[ "0.76233184", "0.71806437", "0.71201867", "0.70864713", "0.70691645", "0.70626193", "0.70164955", "0.6930744", "0.68983024", "0.68948776", "0.6788527", "0.6747732", "0.66989166", "0.66743904", "0.66670215", "0.66528565", "0.66510206", "0.6634094", "0.66245717", "0.66159225", "0.66087204", "0.65860325", "0.6541141", "0.6527907", "0.65226346", "0.65036625", "0.6482123", "0.64748305", "0.6459561", "0.6454091", "0.6447312", "0.6420656", "0.6407451", "0.6392859", "0.6387923", "0.63818026", "0.6373122", "0.6369604", "0.63523376", "0.63516587", "0.6340488", "0.6329169", "0.63193655", "0.63084745", "0.6303513", "0.6300336", "0.62833154", "0.62812203", "0.6275984", "0.62721884", "0.62704927", "0.6268572", "0.6264077", "0.6259017", "0.6254088", "0.6248025", "0.6238604", "0.62340534", "0.62148553", "0.6211385", "0.6201582", "0.6195132", "0.61944765", "0.61873287", "0.6177068", "0.61698", "0.61689883", "0.61679643", "0.6164793", "0.61575997", "0.6154467", "0.6153044", "0.61341816", "0.61269325", "0.6125357", "0.61154956", "0.61091554", "0.6107342", "0.6103965", "0.6096544", "0.60879076", "0.608521", "0.60684043", "0.6067474", "0.6067344", "0.60640043", "0.6048534", "0.6045582", "0.60402596", "0.6032501", "0.60315883", "0.60309136", "0.60301185", "0.60242796", "0.6014576", "0.6007289", "0.60041726", "0.6002793", "0.5998917", "0.5996378" ]
0.7274547
1
This method allows the user to add a new general employee
public static void addEmployee(Scanner input, ArrayList<Employee> newEmployee){ Employee newEmp = new Employee(); String empNumber, empHireDate; System.out.print("Please enter the employee's first and last name: "); newEmp.setName(input.nextLine()); System.out.print("Please enter the new employee's Employee Number.\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: "); empNumber = input.nextLine(); newEmp.setNumber(verifyEmpNum(input, empNumber)); System.out.print("Please enter the new employee's hire date.\nMake sure the date you enter matches IX/JX/KXXX including the slashes" + "\nwhere I is a 0 or 1,J is 0-3, K is a 1 or 2, and X is a digit 0-9: "); empHireDate = input.nextLine(); newEmp.setDate(verifyHireDate(input, empHireDate)); newEmployee.add(newEmp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEmployee(){\n\t\tSystem.out.println(\"Of what company is the employee?\");\n\t\tSystem.out.println(theHolding.companies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name:\");\n\t\t\tString name = reader.nextLine();\n\t\t\tSystem.out.println(\"Position:\");\n\t\t\tString position = reader.nextLine();\n\t\t\tSystem.out.println(\"Mail:\");\n\t\t\tString mail = reader.nextLine();\n\t\t\tEmployee toAdd = new Employee(name, position, mail);\n\t\t\tSystem.out.println(theHolding.addEmployee(selected, toAdd));\n\t\t}\n\t}", "public void addEmployee(Employee emp) {\n\t\t\r\n\t}", "public String addEmployee() {\n\t\t\t//logger.info(\"addEmployee method called\");\n\t\t\t//userGroupBO.save(userGroup);;\n\t\t\treturn SUCCESS;\n\t\t}", "private static void newEmployee(UserType employeeType) {\n\n\t\tString username = null, password;\n\n\t\tboolean valid = false;\n\n\t\t// make sure that the username is not already taken\n\t\twhile (!valid) {\n\t\t\tSystem.out.print(\"What username would you like for your account? \");\n\t\t\tusername = input.nextLine();\n\t\t\tif (nameIsTaken(username, customerList)) {\n\t\t\t\tSystem.out.println(\"Sorry but that username has already been taken.\");\n\t\t\t} else\n\t\t\t\tvalid = true;\n\t\t}\n\t\t// set valid to false after each entry\n\t\tvalid = false;\n\n\t\tSystem.out.print(\"What password would you like for your account? \");\n\t\tpassword = input.nextLine();\n\n\t\tEmployee e = new Employee(username, password);\n\n\t\te.setType(employeeType);\n\t\temployeeList.add(e);\n\t\tcurrentUser = e;\n\t\twriteObject(employeeFile, employeeList);\n\t\temployeeDao.create(e);\n\t}", "@PostMapping(value = \"/addEmployee\")\n\tpublic void addEmployee() {\n\t\tEmployee e = new Employee(\"Iftekhar Khan\");\n\t\tdataServiceImpl.add(e);\n\t}", "public addEmployee() {\n initComponents();\n \n conn = db.java_db();\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation(size.width / 2 - getWidth() / 2, size.height / 2 - getHeight() / 2);\n }", "@Override\n\tpublic void createEmployee(Employee e) {\n\t\t\n\t}", "@Test\n\tpublic void testingAddNewEmployee() {\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tthis.sendingKeys();\n\t\t\n\t\tdriver.findElement(By.id(\"sn_staff\")).click();\n\t\tdriver.findElement(By.id(\"act_primary\")).click();\n\t\t\n\t\tdriver.findElement(By.id(\"_asf1\")).sendKeys(\"FirstName\");\n\t\tdriver.findElement(By.id(\"_asl1\")).sendKeys(\"LastName\");\n\t\tdriver.findElement(By.id(\"_ase1\")).sendKeys(\"emailAddress\");\n\t\t\n\t\tdriver.findElement(By.id(\"_as_save_multiple\")).click();\n\t\t\n\t\tWebElement newEmployee = driver.findElement(By.linkText(\"FirstName LastName\"));\n\t\tassertNotNull(newEmployee);\n\t\t\n\t}", "@Override\r\n\tpublic String AddEmployeeDetails(EmployeeEntity employee) throws CustomException {\n\t\tString strMessage=\"\";\r\n\t\trepository.save(employee);\r\n\t\tstrMessage=\"Employee data has been saved\";\r\n\t\treturn strMessage;\r\n\t}", "@Override\n public Employee addNewEmployee(Employee employee) {\n return null;\n }", "public void createEmployee(Employee newEmployee) {\n\t\tif(false == this.employee.contains(newEmployee)) {\n\t\t\tthis.employee.add(newEmployee);\n\t\t}\n\t}", "private void addEmployee(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString firstName = request.getParameter(\"firstName\");\r\n\t\tString lastName = request.getParameter(\"lastName\");\r\n\t\tString gender = request.getParameter(\"gender\");\r\n\t\tint age = Integer.parseInt(request.getParameter(\"age\"));\r\n\t\tString email = request.getParameter(\"email\");\t\t\r\n\t\t\r\n\t\t// create a new employee object\r\n\t\tEmployee theEmployee = new Employee (firstName, lastName,gender,age, email);\r\n\t\t\r\n\t\t// add the employee to the database\r\n\t\temployeeDAO.addEmployee(theEmployee);\r\n\t\t\t\t\r\n\t\t// send back to main page (the student list)\r\n\t\tlistEmployees(request, response);\r\n\t}", "@Override\n\tpublic void add(Employee employee) {\n\t\temployeeDao.save(employee);\t\t\n\t}", "@Override\n\tpublic int addNewEmployee(String firstName, String lastName, String email, String designation, String location,\n\t\t\tint salary) {\n\t\treturn template.update(\n\t\t\t\t\"insert into employee(fname, lname, email, desig, location, salary) values(?, ?, ?, ?, ?, ?)\",\n\t\t\t\tfirstName, lastName, email, designation, location, salary);\n\t}", "public boolean addEmp(Employee e) {\n\t\treturn edao.create(e);\n\t\t\n\t}", "@Override\n\tpublic void addEmployee(Employee employee) {\n\t\tem.getTransaction().begin();\n\t\tem.persist(employee);\n\t\tem.getTransaction().commit();\n\t\tSystem.out.println(\"Data Added successfully\");\n\t\tlogger.log(Level.INFO, \"Data Added successfully\");\n\n\t}", "public String addEmployee(EmployeeDetails employeeDetails) throws NullPointerException;", "public void addEmployee(ActionRequest request, ActionResponse response)\n\t\t\tthrows SystemException, IOException, PortalException {\n\t\tlong employeeId = CounterLocalServiceUtil.increment(Employee.class.getName());\n\t\tEmployee employee = null;\n\t\temployee = EmployeeLocalServiceUtil.createEmployee(employeeId);\n\t\temployee.setEmployeeName(ParamUtil.getString(request, \"employeeName\"));\n\t\temployee.setEmployeeDesignation(ParamUtil.getString(request, \"employeeDesignation\"));\n\t\temployee.setAddress(ParamUtil.getString(request, \"address\"));\n\t\temployee.setEmail(ParamUtil.getString(request, \"email\"));\n\t\temployee.setPhoneNumber(ParamUtil.getString(request, \"phoneNumber\"));\n\t\t/* Uploading employee documents */\n\t\tThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);\n\t\t// Checking permission for ADD_EMPLOYEE\n//\t\tEmployeePermission.insertPermission(themeDisplay);\n\t\tcreateFolder(request, themeDisplay);\n\t\tlong fileEntryId = fileUpload(employee, themeDisplay, request);\n\t\temployee.setFileEntryId(fileEntryId);\n\t\t// setting groupId\n\t\temployee.setGroupId(themeDisplay.getScopeGroupId());\n\t\tEmployeeLocalServiceUtil.addEmployee(employee);\n\t\tResourceLocalServiceUtil.addResources(themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId(),\n\t\t\t\tthemeDisplay.getUserId(), Employee.class.getName(), employeeId, false, true, true);\n\t}", "@Override\r\n\tpublic void addEmployee(Employee employee) {\n\t\temployees.add(employee);\r\n\t\t\r\n\t}", "@Test\r\n\tpublic void addEmployeeTestCase3() {\n\t\tEmployee employee3 = new Employee();\r\n\t\temployee3.name = \"Lingtan\";\r\n\t\temployee3.role = \"Ui designer\";\r\n\t\temployee3.email = \"lingtan@chainsys.com\";\r\n\t\temployee3.employeeID = \"Ling2655\";\r\n\t\temployee3.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee3.gender = \"Male\";\r\n\t\temployee3.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee3.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tEmployeeOperations.addEmployee(employee3);\t\r\n\t}", "@PostMapping(\"addEmployee\")\r\n\tpublic String addEmployee(@ModelAttribute(\"employee\") Employee employee) {\r\n\r\n\t\temployeeDao.addEmployee(employee);\r\n\t\t\r\n\t\treturn \"EmployeeDetails\";\r\n\t}", "public void registerNewEmployee(Administrator user, List<Employee> employees, UserType userType){\n boolean flag;\n String dni;\n do{\n System.out.print(\"\\t Ingrese el dni: \");\n dni = new Scanner(System.in).nextLine();\n flag = user.verifyEmployeeDni(dni,employees);\n if(flag){\n System.out.println(\"El DNI ingresado ya pertenece a un empleado. Vuelva a Intentar...\");\n }\n } while (flag);\n System.out.print(\"\\t Ingrese el nombre: \");\n String name = new Scanner(System.in).nextLine();\n System.out.print(\"\\t Ingrese el apellido: \");\n String surname = new Scanner(System.in).nextLine();\n int age = this.enterNumber(\"la edad\");\n String username;\n do{\n System.out.print(\"\\t Ingrese el username: \");\n username = new Scanner(System.in).nextLine();\n flag = user.verifySystemUsername(username,employees);\n if(flag){\n System.out.println(\"Ese usuario ya esta registrado. Vuelva a Intentar...\");\n }\n } while (flag);\n System.out.print(\"\\t Ingrese el password: \");\n String password = new Scanner(System.in).nextLine();\n\n Employee employee = user.createEmployee(userType,name,surname,dni,age,username,password);\n employees.add(employee);\n }", "public andrewNamespace.xsdconfig.EmployeeDocument.Employee addNewEmployee()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n andrewNamespace.xsdconfig.EmployeeDocument.Employee target = null;\r\n target = (andrewNamespace.xsdconfig.EmployeeDocument.Employee)get_store().add_element_user(EMPLOYEE$0);\r\n return target;\r\n }\r\n }", "public static void addEmployee(Employee employee) {\n try {\n if (employeeRepository.insert(dataSource, employee) == 1) {\n LOGGER.warn(\"The employee \" + employee.getFirstName() + \" \" + employee.getLastName() + \" \" + employee.getBirthday() + \" is already in the list\");\n System.out.println(\"\\n\" + resourceBundle.getString(\"emp\") + employee.getFirstName() + \" \" + employee.getLastName() + \" \" + employee.getBirthday() + \" \" + resourceBundle.getString(\"in-list\") + \"\\n\");\n } else {\n LOGGER.info(\"The employee \" + employee.getFirstName() + \" \"\n + employee.getLastName() + \" \" + employee.getBirthday() + \" was successfully added to the list of employees\");\n System.out.println(\"\\n\" + resourceBundle.getString(\"emp\") + \" \" + employee.getFirstName() + \" \"\n + employee.getLastName() + \" \" + employee.getBirthday() + \" \" + resourceBundle.getString(\"success.add\") + \"\\n\");\n }\n } catch (SQLException e) {\n LOGGER.error(e.getMessage());\n }\n }", "public void saveEmployee(Employe employee) {\n\t\t\n\t}", "@RequestMapping(value = \"/employee\", method = RequestMethod.POST)\r\n\tpublic Employee addEmployee(@RequestBody Employee employee) throws EmployeeMaintainceException {\r\n\r\n\t\ttry {\r\n\t\t\treturn eService.addEmp(employee);\r\n\t\t}\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(400, e.getMessage());\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic int addEmployee(Employee employee) {\n\t\tint added = 0;\r\n\t\tString insertData = \"insert into employee values(?,?,?,?)\";\r\n\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = dataSource.getConnection().prepareStatement(insertData);\r\n\t\t\tps.setString(1, employee.getName());\r\n\t\t\tps.setInt(2, employee.getEmpId());\r\n\t\t\tps.setString(3, employee.getTechnoogy());\r\n\t\t\tps.setInt(4, employee.getSalary());\r\n\r\n\t\t\tadded = ps.executeUpdate();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn added;\r\n\t}", "@Override\r\n\tpublic int addEmployee1(Employee employee) throws SQLException {\n\t\tint added = 0;\r\n\t\tString insertData = \"insert into employee values(?,?,?,?)\";\r\n\r\n\t\t\tPreparedStatement ps = dataSource.getConnection().prepareStatement(insertData);\r\n\t\t\tps.setString(1, employee.getName());\r\n\t\t\tps.setInt(2, employee.getEmpId());\r\n\t\t\tps.setString(3, employee.getTechnoogy());\r\n\t\t\tps.setInt(4, employee.getSalary());\r\n\r\n\t\t\tadded = ps.executeUpdate();\r\n\t\treturn added;\r\n\t}", "@RequestMapping(value = \"/add\", method = RequestMethod.GET)\r\n\tpublic ModelAndView addEmployee(@ModelAttribute Employee employee) {\r\n\t\tSystem.out.println(\"------------- redirecting to emp registration page --------------\" + employee);\r\n\t\tMap<String, Object> model = new HashMap<String, Object>();\r\n\t\treturn new ModelAndView(\"add\", model);\r\n\t}", "public EmployeeBoarding addEmployee(RetailscmUserContext userContext, String employeeBoardingId, String companyId, String title, String departmentId, String familyName, String givenName, String email, String city, String address, String cellPhone, String occupationId, String responsibleForId, String currentSalaryGradeId, String salaryAccount , String [] tokensExpr) throws Exception;", "@Override\r\n\tpublic Employee addEmployeeData(Employee emp) {\n\t\treturn employeeDAO.addEmployee(emp);\r\n\t}", "@Test\r\n\tpublic void addEmployeeTestCase2() {\n\t\tEmployee employee2 = new Employee();\r\n\t\temployee2.name = \"JD\";\r\n\t\temployee2.role = \"Technical Consultant\";\r\n\t\temployee2.email = \"jd@chainsys.com\";\r\n\t\temployee2.employeeID = \"Jd2655\";\r\n\t\temployee2.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee2.gender = \"Male\";\r\n\t\temployee2.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee2.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tEmployeeOperations.addEmployee(employee2);\r\n\t}", "@RequestMapping(value = BASE_URL_API, method=RequestMethod.POST)\r\n public ResponseEntity<?> addNewEmployee(@RequestBody EmployeeVO newEmployeeVO) {\r\n\r\n checkLogin();\r\n\r\n EmployeeVO employeeVO = employeeService.addEmployee(newEmployeeVO);\r\n\r\n return new ResponseEntity<>(employeeVO, HttpStatus.CREATED);\r\n }", "@PostMapping(\"/employee\")\r\n\tpublic void add(@RequestBody Employee employee) {\r\n\t\tempService.save(employee);\r\n\t}", "@Override\n\tpublic void create(Empleado e) {\n\t\tSystem.out.println(\"Graba el empleado \" + e + \" en la BBDD.\");\n\t}", "@PostMapping(\"/employees\")\r\n\tpublic Employee addEmployee(@RequestBody Employee theEmployee) {\r\n\t\t\r\n\t\t// also just in case the pass an id in JSON... set id to 0\r\n\t\t// this force a save of new item...instead of update\r\n\t\ttheEmployee.setId(0);\r\n\t\t\r\n\t\temployeeService.saveEmployee(theEmployee);\r\n\t\t\r\n\t\treturn theEmployee;\r\n\t\t\r\n\t}", "public abstract int addEmployee(Employee emp) throws DatabaseExeption;", "@Override\r\n\tpublic Result add(Employees employees) {\n\t\treturn null;\r\n\t}", "@PostMapping(\"/employees\")\n\tpublic Employee addEmployee(@RequestBody Employee theEmployee) {\n\t\t theEmployee.setId(0);\n\t\t employeeService.save(theEmployee);\n\t\t \n\t return theEmployee;\n\t}", "public void addEmployee(int noOfEmployee) {\r\n\t\tint id = 0;\r\n\t\tString name = null;\r\n\t\tString address = null;\r\n\t\t\r\n\t\tfor (int index = 0; index < noOfEmployee; index++) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter employee id :\");\r\n\t\t\tid = input.nextInt();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter employee name : \");\r\n\t\t\tinput.nextLine();\r\n\t\t\tname = input.nextLine();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter employee address :\");\r\n\t\t\taddress = input.nextLine();\r\n\t\t\t\r\n\t\t\tif (empId.contains(id)) {\r\n\t\t\t\tSystem.out.println(\"Emp ID : \"+ id +\" employee ID already exists !!!!!\");\r\n\t\t\t} else {\r\n\t\t\t\tempId.add(id);\r\n\t\t\t\temp.add(addEmployee(id, name, address));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void ModifyEmployee() {\n\t\t\n\t}", "public void createemployee(Employeee em) {\n\t\temployeerepo.save(em);\n\t}", "public void add(Employee emp)\n\t{\n\t\tHRProtocol envelop = null;\n\t\tenvelop = new HRProtocol(HRPROTOCOL_ADD_EMPLOYEE_REQUEST, emp, null);\n\t\tsendEnvelop(envelop);\n\t\tenvelop = receiveEnvelop();\n\t\tif(envelop.getPassingCode() == HRPROTOCOL_ADD_EMPLOYEE_RESPONSE)\n\t\t{\t//Success in transition\n\t\t}else\n\t\t{\n\t\t\t//Error in transition. or other error codes.\n\t\t}\n\t}", "public void addEmployee(final Employee employee) {\r\n\t\tfinal Session session = sessionFactory.getCurrentSession();\t\r\n\t\tsession.save(employee);\r\n\t}", "@Override\n public Mechanic addEmployee(Mechanic mechanic) {\n LOGGER.info(\"Create new Mechanic in the database\");\n return mechanicRepository.save(mechanic);\n }", "public void addEmployee(Employee employee) {\n employeeRepository.save(employee);\n }", "@Override\n\tpublic Integer insertEmp(Employee e) {\n\t\treturn null;\n\t}", "@Override\n public ResponseEntity createEmployee(@Valid Employee employeeRequest) {\n Employee savedemployee = employeeService.create(employeeRequest);\n URI location= ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\").buildAndExpand(savedemployee.getId()).toUri();\n return ResponseEntity.created(location).build();\n\n }", "public void AddEmployee(String firstName ,String lastName , String name_department)\n\t{\n\t\tEmployee emp = new Employee();\n\t\temp.setName(firstName);\n\t\temp.setSurname(lastName);\n\t\temp.setDepartment(SearchDepartment(name_department));\n\t\tAddEmployeeToDepartement(name_department,emp);\n\t}", "@POST\n @Consumes( { \"application/xml\", \"text/xml\", \"application/json\" })\n public Response createEmployee(Employee employee) {\n final int staffNo = this.employeeMgr.createEmployee(employee);\n final URI location = createdLocation(staffNo);\n return Response.created(location).build();\n }", "public EmployeeDTO createEmployee(final EmployeeDTO createEmployeeDTO) throws ApplicationCustomException;", "public void addEmployee(Map<String, String> employee) {\r\n\t\tEmployee employees = new Employee(Integer.parseInt(employee.get(\"id\")), employee.get(\"name\"));\r\n\t\temployee1.put(Integer.parseInt(employee.get(\"id\")), employees);\r\n\t}", "@Transactional\n\t@CacheEvict(cacheNames = {\"allEmployeesCache\"}, allEntries = true)\n\tpublic void addEmployee(Employee employee) throws Exception {\n\t\tString password = passwordService.createPassword();\n\t\tString passwordEncode = passwordEncoder.encode(password);\n\t\tUser user = employee.getUser();\n\t\tuser.setEnabled(true);\n\t\tuser.setPassword(passwordEncode);\n\t\tOptional<Role> role1 = roleRepository.findById(1L);\n\t\tOptional<Role> role4 = roleRepository.findById(4L);\n List<Role> roles = new ArrayList<>();\n roles.add(role1.get());\n roles.add(role4.get());\n user.setRoles(roles);\n employee.setRegisterDateTime(LocalDateTime.now());\n final User userFromRequest = getUserFromRequest();\n employee.setUserRegister(userFromRequest);\n\t\temployeeRepository.save(employee);\n\t\tsendEmailForAddAdminEmployee(employee, password);\n\t}", "@Override\r\n\tpublic int insertEmployee(Employee employee) {\n\t\treturn employeedao.insertEmployee(employee);\r\n\t}", "@Override\r\n\tpublic void saveEmployee(Employee employee) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void addEmployeToGroupe(Long codeEmp, Long codeGroup) {\n dao.addEmployeToGroupe(codeEmp, codeGroup);\r\n\t}", "@Override\r\n\tpublic void post(Employee employee) {\n\t\t empdao.save(employee);\r\n\t}", "public void addEmployee(Employee employee)\n {\n try\n {\n InputStream is = employee.getPicture().getInputStream();\n \n while (is.read() != -1);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n \n \n \n System.out.println(\"Added \" + employee.getName() + \" in division \" + employee.getDivision()\n + \" with a picture \" + employee.getPicture());\n employees.add(employee);\n invocationCount++;\n }", "@Test\r\n\tpublic void addEmployeeTestCase5() {\n\t\tEmployee employee5 = new Employee();\r\n\t\temployee5.name = \"JosephKuruvila\";\r\n\t\temployee5.role = \"Software Developer\";\r\n\t\temployee5.employeeID = \"Jose2455\";\r\n\t\temployee5.email = \"joseph@chainsys.com\";\r\n\t\temployee5.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee5.gender = \"Male\";\r\n\t\temployee5.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee5.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tboolean isAddedEmployee = EmployeeOperations.addEmployee(employee5);\r\n\t\tassertTrue(isAddedEmployee);\r\n\t}", "public void addEmployee(Employee employee) throws SQLException {\n\t\tConnection connection = DatabaseConnection.getConnection();\n\t\tString query = \"INSERT INTO EMPLOYEE VALUES(?,?)\";\n\t\tPreparedStatement pStatement = connection.prepareStatement(query);\n\t\tpStatement.setString(1, employee.getEmpId());\n\t\tpStatement.setString(2, employee.getEname());\n\t\tpStatement.executeUpdate();\n\n\t}", "@Override\n\tpublic void save(Employee theEmployee) {\n\t\t\n\t}", "@PostMapping(\"/add_employee\")\n public ResponseEntity<?> createEmployee(@Valid @RequestBody Employee employee){\n\n employeeService.add_employee(employee);\n\n return new ResponseEntity<>(\"Employee was added successfully!\", HttpStatus.OK);\n }", "@Test\r\n\tpublic void addEmployeeTestCase1() {\n\t\tEmployee employee1 = new Employee();\r\n\t\temployee1.name = \"JosephKuruvila\";\r\n\t\temployee1.role = \"Software Developer\";\r\n\t\temployee1.employeeID = \"Jose2455\";\r\n\t\temployee1.email = \"joseph@chainsys.com\";\r\n\t\temployee1.dob = LocalDate.of(2000, 12, 12);\r\n\t\temployee1.gender = \"Male\";\r\n\t\temployee1.mobileNumber =Long.parseLong(\"9249324982\");\r\n\t\temployee1.joiningData = LocalDate.of(2000, 12, 12);\r\n\t\t\r\n\t\tboolean isAddedEmployee = EmployeeOperations.addEmployee(employee1);\r\n\t\tassertTrue(isAddedEmployee);\r\n\t}", "public static void registerEmployee(RequestHandler handler) {\n\n\t\tEmployee e = new Employee();\n\t\te.setId(-1);\n\n\t\tStringBuilder sb;\n\t\tsb = new StringBuilder();\n\t\tsb.append(\"\\nPlease enter employee email: \");\n\t\thandler.sendMessage(sb);\n\t\tString eEmail = handler.getMessage();\n\n\t\tif (eEmail != null) {\n\t\t\thandler.sendMessage(\"RECEIVED: \" + eEmail);\n\t\t\tif (Utils.isValidEmailAddress(eEmail)) {\n\t\t\t\tif (!EmployeeData.emailExists(eEmail)) {\n\t\t\t\t\t// we have a valid, unique email address\n\t\t\t\t\te.setEmail(eEmail);\n\t\t\t\t\thandler.sendMessage(\"Please enter employee name: \");\n\t\t\t\t\teEmail = null;\n\n\t\t\t\t\tString eName = handler.getMessage();\n\t\t\t\t\tif (eName != null && eName.length() > 0) {\n\n\t\t\t\t\t\te.setName(eName);\n\t\t\t\t\t\thandler.sendMessage(\"Please enter department name: \");\n\t\t\t\t\t\teName = null;\n\n\t\t\t\t\t\tString eDept = handler.getMessage();\n\t\t\t\t\t\tif (eDept != null && eDept.length() > 0) {\n\t\t\t\t\t\t\te.setDepartment(eDept);\n\n\t\t\t\t\t\t\tif (EmployeeData.addEmployee(e)) {\n\t\t\t\t\t\t\t\thandler.sendMessage(\"Employee \" + e.getEmail() + \" successfully added with ID \" + e.getId());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\thandler.sendMessage(\"Failed to add employee \" + e.getEmail() + \", reason unknown\");\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\thandler.sendMessage(\"User with email \" + eEmail + \" already exists on system - ABORTING\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\thandler.sendMessage(\"Invalid email address format for: \" + eEmail + \" - ABORTING\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "@FXML\r\n\tprivate void saveEmployee(ActionEvent event) {\r\n\t\tif (validateFields()) {\r\n\t\t\tEmployee e;\r\n\t\t\tif (newEmployee) {\r\n\t\t\t\te = new Employee();\r\n\t\t\t\tlistaStaff.getItems().add(e);\r\n\t\t\t} else {\r\n\t\t\t\te = listaStaff.getSelectionModel().getSelectedItem();\r\n\t\t\t}\r\n\t\t\te.setUsername(txUsuario.getText());\r\n\t\t\te.setPassword(txPassword.getText());\r\n\t\t\tif (checkAdmin.isSelected())\r\n\t\t\t\te.setIsAdmin(1);\r\n\t\t\telse\r\n\t\t\t\te.setIsAdmin(0);\r\n\t\t\tif (checkTPV.isSelected())\r\n\t\t\t\te.setTpvPrivilege(1);\r\n\t\t\telse\r\n\t\t\t\te.setTpvPrivilege(0);\r\n\t\t\tif (newEmployee) {\r\n\t\t\t\tservice.saveEmployee(e);\r\n\t\t\t\tnewEmployee = false;\r\n\t\t\t} else\r\n\t\t\t\tservice.updateEmployee(e);\r\n\t\t\tbtGuardar.setDisable(true);\r\n\t\t\tbtEditar.setDisable(false);\r\n\t\t\tconmuteFields();\r\n\t\t\tupdateList();\r\n\t\t}\r\n\t}", "public int addEmployee(String name, String employeeRole, String address, String email, String phone){\n char first;\n int businessID;\n\n /* Capitalize first char */\n first = Character.toUpperCase(name.charAt(0));\n name = first + name.substring(1);\n\n log.debug(\"Inside addEmployee Method.\");\n log.info(\"Adding employee details: \" + name + \" \" + employeeRole + \" \" + email + \" \" + phone);\n\n businessID = session.getLoggedInUserId();\n\n if(!nameValidation(name)){\n log.debug(\"Failed to add employee because of failed name validation, returning to controller\");\n return -1;\n }\n if(!emailValidation(email)){\n log.debug(\"Failed to add employee because of failed email validation, returning to controller\");\n return -2;\n }\n if(!phoneValidation(phone)){\n log.debug(\"Failed to add employee by phone validation, returning to controller\");\n return -3;\n }\n /*\n if(!roleLimitCheck(employeeRole)){\n log.debug(\"Failed to add employee: too many assigned to one role\");\n return -4;\n }\n */\n\n\n String employeeDetailsSQL = \"INSERT INTO employeeDetails(businessID, name, \" +\n \"employeeRole, address, email, phone) values(\"\n + businessID + \",\" +\n \"'\" + name + \"',\" +\n \"'\" + employeeRole + \"',\" +\n \"'\" + address + \"',\" +\n \"'\" + email + \"',\" +\n \"'\" + phone +\"')\";\n if(database.updateDatabase(employeeDetailsSQL)){\n log.debug(\"Successfully added employee\");\n if(createEmployeeAvailability(name)){\n return 1;\n }\n return 0;\n }\n log.debug(\"Failed to added employee\");\n return 0;\n }", "void addEmployee(Employee emp){\n\t\tEntityManager em = emf.createEntityManager();\n\t\tEntityTransaction tx = em.getTransaction();\n\t\ttx.begin();\n\t\tem.persist(emp);\n\t\ttx.commit();\n\t\tem.close();\n\t}", "public void saveEmployee(CreateOrEditEmployeeRequestDto employee);", "@Override\r\n\tpublic Employe addEmploye(Employe e, Long codeSup) {\n\t\treturn dao.addEmploye(e, codeSup);\r\n\t}", "@PostMapping(\"/register\")\n\tpublic ResponseEntity<Employee> saveEmployee(@RequestBody Employee emp){\n\t\tEmployee addedEmployee = employeeService.saveEmployee(emp);\n\t\treturn new ResponseEntity<Employee>(addedEmployee, HttpStatus.OK);\n\t}", "@PostMapping(value=\"/employes\")\n\tpublic void createEmployeeDeatils(@RequestBody Employee employee){\n\t\t\t\n\t\temployeeService.saveEmployeeDetails(employee);\n\t\t\n\t}", "public AddEmployeeGUI() {\r\n\t\tsetBackground(Color.RED);\r\n\t\tsetTitle(\"Add Employee\");\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 450, 500);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\tJLabel lblSelectEmployeeType = new JLabel(\"Select Employee Type\");\r\n\t\tlblSelectEmployeeType.setBounds(5, 0, 207, 25);\r\n\t\tcontentPane.add(lblSelectEmployeeType);\r\n\r\n\t\tlabel = new JLabel(\"\");\r\n\t\tlabel.setBounds(180, 36, 212, 24);\r\n\t\tcontentPane.add(label);\r\n\r\n\t\tJLabel lblFirstName = new JLabel(\"First Name\");\r\n\t\tlblFirstName.setBounds(5, 55, 207, 45);\r\n\t\tcontentPane.add(lblFirstName);\r\n\r\n\t\ttxtFirstName = new JTextField();\r\n\t\ttxtFirstName.setBounds(180, 71, 212, 24);\r\n\t\tcontentPane.add(txtFirstName);\r\n\t\ttxtFirstName.setColumns(10);\r\n\r\n\t\tJLabel lblLastName = new JLabel(\"Last Name\");\r\n\t\tlblLastName.setBounds(5, 105, 207, 45);\r\n\t\tcontentPane.add(lblLastName);\r\n\r\n\t\ttxtLastName = new JTextField();\r\n\t\ttxtLastName.setBounds(180, 119, 212, 24);\r\n\t\tcontentPane.add(txtLastName);\r\n\t\ttxtLastName.setColumns(10);\r\n\r\n\t\tJLabel lblDateOfBirth = new JLabel(\"Date of Birth (yyyy-mm-dd)\");\r\n\t\tlblDateOfBirth.setBounds(5, 155, 207, 45);\r\n\t\tcontentPane.add(lblDateOfBirth);\r\n\r\n\t\ttxtDOB = new JTextField();\r\n\t\ttxtDOB.setBounds(180, 167, 212, 24);\r\n\t\tcontentPane.add(txtDOB);\r\n\t\ttxtDOB.setColumns(10);\r\n\r\n\t\tJLabel lblTelephoneNo = new JLabel(\"Telephone no.\");\r\n\t\tlblTelephoneNo.setBounds(5, 205, 207, 45);\r\n\t\tcontentPane.add(lblTelephoneNo);\r\n\r\n\t\ttxtTel = new JTextField();\r\n\t\ttxtTel.setBounds(180, 215, 212, 24);\r\n\t\tcontentPane.add(txtTel);\r\n\t\ttxtTel.setColumns(10);\r\n\r\n\t\tJLabel lblEmail = new JLabel(\"Email\");\r\n\t\tlblEmail.setBounds(5, 255, 207, 45);\r\n\t\tcontentPane.add(lblEmail);\r\n\r\n\t\ttxtEmail = new JTextField();\r\n\t\ttxtEmail.setBounds(180, 263, 212, 24);\r\n\t\tcontentPane.add(txtEmail);\r\n\t\ttxtEmail.setColumns(10);\r\n\r\n\t\tJLabel lblGener = new JLabel(\"Gender\");\r\n\t\tlblGener.setBounds(5, 305, 207, 45);\r\n\t\tcontentPane.add(lblGener);\r\n\r\n\t\ttxtGender = new JTextField();\r\n\t\ttxtGender.setBounds(180, 311, 212, 24);\r\n\t\tcontentPane.add(txtGender);\r\n\t\ttxtGender.setColumns(10);\r\n\r\n\t\tJLabel lblStartDate = new JLabel(\"Start Date (yyyy-mm-dd)\");\r\n\t\tlblStartDate.setBounds(5, 355, 207, 45);\r\n\t\tcontentPane.add(lblStartDate);\r\n\r\n\t\ttxtStartDate = new JTextField();\r\n\t\ttxtStartDate.setBounds(180, 359, 212, 24);\r\n\t\tcontentPane.add(txtStartDate);\r\n\t\ttxtStartDate.setColumns(10);\r\n\r\n\t\tlabel_1 = new JLabel(\" \");\r\n\t\tlabel_1.setBounds(5, 405, 207, 50);\r\n\t\tcontentPane.add(label_1);\r\n\r\n\t\tbtnAdd = new JButton(\"Add\");\r\n\t\tbtnAdd.setBounds(325, 405, 67, 24);\r\n\t\tcontentPane.add(btnAdd);\r\n\t}", "private void doCreateEmployee() {\n Scanner sc = new Scanner(System.in);\n Employee newEmployee = new Employee();\n int response;\n\n System.out.println(\"*** Hors Management System::System Administration::Create New Employee ***\");\n System.out.print(\"Enter First name>\");\n newEmployee.setFirstName(sc.nextLine().trim());\n System.out.print(\"Enter Last name>\");\n newEmployee.setLastName(sc.nextLine().trim());\n\n while (true) {\n System.out.println(\"Select Job Role:\");\n System.out.println(\"1. System Administrator\");\n System.out.println(\"2. Operation Manager\");\n System.out.println(\"3. Sales Manager\");\n System.out.println(\"4. Guest Officer\\n\");\n\n response = sc.nextInt();\n\n //set job role\n if (response >= 1 && response <= 4) {\n newEmployee.setJobRole(JobRoleEnum.values()[response - 1]);\n break;\n } else {\n System.out.println(\"Invalid option, please try again \\n\");\n }\n }\n sc.nextLine();\n System.out.print(\"Enter Username\");\n newEmployee.setUserName(sc.nextLine().trim());\n System.out.println(\"Enter Password\");\n newEmployee.setPassword(sc.nextLine().trim());\n\n Set<ConstraintViolation<Employee>> constraintViolations = validator.validate(newEmployee);\n\n if (constraintViolations.isEmpty()) {\n newEmployee = employeeControllerRemote.createNewEmployee(newEmployee);\n System.out.println(\"New Staff created successfully, employee ID is: \"+newEmployee.getEmployeeId());\n }else{\n showInputDataValidationErrorsForEmployee(constraintViolations);\n }\n\n }", "private Employee addEmployee(int id, String name, String address) {\r\n\t\treturn new Employee(id, name, address);\r\n\t}", "public static void main(String[] args) {\n\r\n System.out.println(\"* * * * * Welcome to the employee inform * * * * * \");\r\n\r\n Employee_Company Jane = new Employee_Company();\r\n Employee_Company Lucas = new Employee_Company();\r\n Employee_Company Intern_Sophia = new Employee_Company();\r\n Employee_Company Intern_Ava = new Employee_Company();\r\n Employee_Company Intern_James = new Employee_Company();\r\n Employee_Company Intern_Nicholas = new Employee_Company();\r\n\r\n\r\n Lucas.Set_name_employee(\"Lucas Smith\");\r\n Lucas.Set_Email_employee(\"Lucas_Smith@TechCompany.org\");\r\n Lucas.Set_role_employee(\"Software Engineer\");\r\n Lucas.setSalary_employee(103438);\r\n\r\n\r\n Jane.Set_name_employee(\"Jane charlotte\");\r\n Jane.Set_Email_employee(\"Jane_Charlotte@TechCompany.org\");\r\n Jane.setSalary_employee(623100);\r\n Jane.Set_role_employee(\"CEO Tech Company\");\r\n\r\n\r\n Intern_Sophia.Set_name_employee(\"Sophia Wood\");\r\n Intern_Sophia.Set_Intern_application('A');\r\n Intern_Sophia.Set_role_employee(\"Intern Artificial Intelligence \");\r\n\r\n\r\n Intern_Ava.Set_name_employee(\"Ava Richardson\");\r\n Intern_Ava.Set_Intern_application('B');\r\n Intern_Ava.Set_role_employee(\"Intern Computer Science\");\r\n\r\n\r\n Intern_James.Set_name_employee(\"James Benjamin\");\r\n Intern_James.Set_Intern_application('B');\r\n Intern_James.Set_role_employee(\"Intern Business Analyst\");\r\n\r\n\r\n Intern_Nicholas.Set_name_employee(\"Nicholas Miller\");\r\n Intern_Nicholas.Set_Intern_application('C');\r\n Intern_Nicholas.Set_role_employee(\"Intern Systems Integration Engineering\");\r\n\r\n\r\n\r\n System.out.println(\"\\n\\t*** Tech Company employee information ***\");\r\n System.out.println(\"1. View Salary\");\r\n System.out.println(\"2. View Name of the Employee\");\r\n System.out.println(\"3. View Email Address\");\r\n System.out.println(\"4. View Employee Role\");\r\n System.out.println(\"5. View Intern Application grade\");\r\n\r\n\r\n\r\n Scanner input = new Scanner(System.in);\r\n System.out.println(\"Direction: Input the number is addressed in Tech Company employee information\");\r\n int input_user = input.nextInt();\r\n\r\n switch (input_user){\r\n case 1 -> {\r\n System.out.println(\"Here is the salary of the employee of Tech Company\");\r\n System.out.println(\"Salary of Software engineering: \"+Lucas.getSalary_employee());\r\n System.out.println(\"Salary of CEO: \"+Jane.getSalary_employee());\r\n }\r\n case 2 ->{\r\n System.out.println(\"Here is the name of the employee of Tech Company\");\r\n System.out.println(\"The software engineering of Tech Company name of the employee is: \"+Jane.Get_name_employee());\r\n System.out.println(\"The CEO Tech Company name of the employee is: \"+Lucas.Get_name_employee());\r\n }\r\n case 3 ->{\r\n System.out.println(\"Here is the Email Address of employee of Tech Company\");\r\n System.out.println(\"Jane Charlotte is CEO of Tech company Email Address its : \"+Jane.Get_Email_employee());\r\n System.out.println(\"Lucas Smith is Software Engineering of Tech Company Email Address its: \"+Lucas.Get_Email_employee());\r\n }\r\n case 4 ->{\r\n System.out.println(\"Here is the Employee Role of Tech Company\");\r\n System.out.println(Jane.Get_role_employee());\r\n System.out.println(Lucas.Get_role_employee());\r\n }\r\n case 5 ->{\r\n System.out.println(\"Here is all the Intern get accepted to Tech Company \");\r\n System.out.println(\"1.\"+Intern_Ava.Get_name_employee()+\" GPA college: \"+Intern_Ava.Get_Intern_application()+\"- \"+\" Application: Accepted \"+Intern_Ava.Get_role_employee());\r\n System.out.println(\"2.\"+Intern_Sophia.Get_name_employee()+\" GPA college: \"+Intern_Sophia.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Sophia.Get_role_employee());\r\n System.out.println(\"3.\"+Intern_James.Get_name_employee()+\" GPA college: \"+Intern_James.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_James.Get_role_employee());\r\n System.out.println(\"4.\"+Intern_Nicholas.Get_name_employee()+\"GPA college: \"+Intern_Nicholas.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Nicholas.Get_role_employee());\r\n }\r\n }\r\n\r\n\r\n\r\n }", "public Employeedetails addEmployee(Employeedetails employeeDetail,\n\t\t\tConnection connection) {\n\t\ttry {\n\t\t\tint flag = 0;\n\t\t\tString employeeId = employeeDetail.getEmployeeId();\n\t\t\tString employeeName = employeeDetail.getEmployeeName();\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet rs = statement\n\t\t\t\t\t.executeQuery(\"select employeeid from employeeregister\");\n\t\t\twhile (rs.next()) {\n\t\t\t\tif (employeeId.equalsIgnoreCase(rs.getString(1))) {\n\t\t\t\t\tflag = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == 0) {\n\t\t\t\tString squery = \"insert into employeeregister values('\"\n\t\t\t\t\t\t+ employeeId + \"', '\" + employeeName + \"');\";\n\t\t\t\tint a = statement.executeUpdate(squery);\n\t\t\t\treturn employeeDetail;\n\t\t\t} else {\n\t\t\t\treturn employeeDetail;\n\t\t\t}\n\n\t\t} catch (SQLException sqle) {\n\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\treturn employeeDetail;\n\t}", "boolean addUser(int employeeId, String name, String password, String role);", "private void saveEmployee(Employee employee) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(ReportContract.EmployeeEntry.COLUMN_KEY, employee.getKey());\n contentValues.put(ReportContract.EmployeeEntry.COLUMN_VALUE, employee.getValue());\n\n getContext().getContentResolver().insert(\n ReportContract.EmployeeEntry.CONTENT_URI,\n contentValues\n );\n\n }", "@FXML\r\n\tprivate void newEmployee(ActionEvent event) {\r\n\t\tnewEmployee = true;\r\n\t\tputEditables(true);\r\n\t\teraseFieldsContent();\r\n\t\tbtEditar.setDisable(true);\r\n\t\tbtGuardar.setDisable(false);\r\n\t\tbtDelete.setDisable(true);\r\n\t}", "private void addEmployeeInfo(Section catPart) throws SQLException, IOException{\r\n PdfPTable employee = new PdfPTable(1);\r\n \r\n Paragraph empId = new Paragraph(\"Medarbejdernummer: \"+model.getTimeSheet(0).getEmployeeId());\r\n PdfPCell empIdCell = new PdfPCell(empId);\r\n empIdCell.setBorderColor(BaseColor.WHITE);\r\n String name = fal.getFiremanById(model.getTimeSheet(0).getEmployeeId()).getFirstName() +\" \"+ fal.getFiremanById(model.getTimeSheet(0).getEmployeeId()).getLastName();\r\n Paragraph empName = new Paragraph(\"Navn: \" + name);\r\n PdfPCell empNameCell = new PdfPCell(empName);\r\n empNameCell.setBorderColor(BaseColor.WHITE);\r\n \r\n employee.setHeaderRows(0);\r\n employee.addCell(empIdCell);\r\n employee.addCell(empNameCell);\r\n employee.setWidthPercentage(80.0f);\r\n \r\n catPart.add(employee);\r\n }", "public boolean createEmployeeInfo(Employee employee) {\n\t\treturn dao.createEmployeeInfo(employee);\n\t}", "public Employe(String nomEmploye) {\r\n\t\tsuper();\r\n\t\tthis.nomEmploye = nomEmploye;\r\n\t}", "@Override\r\n\tpublic Employee add(Employee entity) {\n\t\treturn entity;\r\n\t}", "@GetMapping(\"/showNewEmpForm\")\n\tpublic String showNewEmpForm(Model model) {\n\t\tEmployees employee = new Employees();\n\t\tmodel.addAttribute(\"employee\", employee);\n\t\treturn \"new_employee\";\n\t}", "@Override\n\tpublic boolean InsertEmployessLog(EmployeesLog employeesLog) {\n\t\treturn false;\n\t}", "@Override\n\tpublic Result add(Employer employer) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Employee create(Employee emp) {\n\t\tlog.debug(\"Welcome to logging\");\n\t\tSystem.out.println(\"Server logs \");\n\t\temployeeDAO.create(emp);\n\t\treturn null;\n\t}", "@PostMapping(\"/AddEmployee\")\r\n public Serializable addStudentService(@RequestBody Employee employee) {\r\n return admin.addEmployeeService(employee);\r\n }", "public andrewNamespace.xsdconfig.EmployeeDocument.Employee insertNewEmployee(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n andrewNamespace.xsdconfig.EmployeeDocument.Employee target = null;\r\n target = (andrewNamespace.xsdconfig.EmployeeDocument.Employee)get_store().insert_element_user(EMPLOYEE$0, i);\r\n return target;\r\n }\r\n }", "public void addNewEmployeeDetails(int employeeId, String firstName, String lastName, int salary, long mobileNumber,\n\t Date dateOfBirth) {\n\temployeeService.addNewEmployeeDetails(employeeId, firstName, lastName, salary, mobileNumber, dateOfBirth);\n }", "@PostMapping(\"/addNewEmployee/save\")\n public String saveEmployee(@ModelAttribute(\"employee\") Employee employee){\n employeeService.saveEmployee(employee);\n return \"redirect:/\";\n }", "@RequestMapping(value=\"/addEmployeeSubmit\", method=RequestMethod.POST)\n /* Add submitted new employee details to database, and then redirect to listEmployees */\n public String addEmployeeSubmit(Employee employee) {\n employeeservice.saveEmployee(employee);\n\n return \"redirect:/employee/listEmployees\";\n }", "public void create(Employee employee, Company company, IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "Employee() {\n\t}", "public void insertEmp(Emp emp) {\n\t\t\n\t}", "public void addingNewUser() throws Exception {\n\t\tlog.info(\"Started ----- Adding New User -----\");\n\t\tFirstNameField.sendKeys(pr.loaddata(\"FirstNameField\"));\n\t\tExcelAPI e=new ExcelAPI(System.getProperty(\"user.dir\")\n\t\t\t\t+ \"/src/main/java/WebTesting/AutomationTask/TestData/AutomationTask_TestData.xlsx\");\n\t\tint rcnt = e.getRowCount(\"Task2_TestData\");\n\t\tfor (int i = 1; i < rcnt; i++) {\n\t\t\tLastNameField.clear();\n\t\t\tLastNameField.sendKeys(e.getCellData(\"Task2_TestData\", \"Last Name\", i));\n\t\t\tPasswordField.sendKeys(e.getCellData(\"Task2_TestData\", \"Password\", i));\n\t\t\tEmailField.sendKeys(e.getCellData(\"Task2_TestData\", \"Email\", i));\n\t\t}\n\t\tUserNameField.sendKeys(pr.loaddata(\"username\") + pr.randomusername());\n\t\tWebElement radio_Button = CustomerField;\n\t\tif (!radio_Button.isSelected()) {\n\t\t\tCustomerField.click();\n\t\t\tThread.sleep(1000);\n\t\t}\n\t\tRoleField.click();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); // Implicitly Wait\n\t\tPhoneField.sendKeys(pr.loaddata(\"phonenumber\") + pr.randomphonenumber());\n\t\tSaveButtonField.click();\n\t\twaitforElement(SearchField, 30); // Explicitly Wait\n\t\tlog.info(\"Ended ----- Adding New User -----\");\n\t}", "@Test\n @DisplayName(\"Test for add employee to employee arrayList if correct\")\n public void testAddEmployeeTrue(){\n assertEquals(\"test\",department.getEmployees().get(0).getFirstName());\n assertEquals(\"test\",department.getEmployees().get(0).getLastName());\n assertEquals(\"test\",department.getEmployees().get(0).getPersonNumber());\n }", "Employee(String name, String profile, int id, String regime) {\n super(name, profile, id);\n this.regime = regime;\n }", "@PostMapping(\"/addEmployee\")\n\tpublic ResponseEntity<EmployeeMon> createEmployee(@RequestBody EmployeeMon employee)\n\t{\n\t\ttry {\n\t\t\tEmployeeMon stud = repository.save(\n\t\t\t\t\tnew EmployeeMon(employee.getId(),employee.getName(),employee.getAddress(), employee.getEmail(),\n\t\t\t\t\t\t\temployee.getSalary()));\n\t\t\tLOGGER.info(\"Inserted data into Table\");\n\t\t\treturn new ResponseEntity<>(stud, HttpStatus.CREATED);\n\t\t} catch(Exception e) {\n\t\t\treturn new ResponseEntity<>(null, HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t}", "@Override\r\n\tpublic int insertEmployee(Connection con, Employee employee) {\n\t\treturn 0;\r\n\t}" ]
[ "0.72741705", "0.7235598", "0.7224776", "0.70068806", "0.7002003", "0.6957233", "0.6894553", "0.6815201", "0.6809091", "0.67647785", "0.67250764", "0.6693124", "0.6690668", "0.6690002", "0.6676683", "0.6619478", "0.66041404", "0.6599529", "0.657495", "0.6555168", "0.65432763", "0.65394104", "0.65208375", "0.6438476", "0.64314336", "0.64158493", "0.6388712", "0.63712597", "0.63532156", "0.6335182", "0.63300294", "0.6326375", "0.6319011", "0.63129044", "0.62717366", "0.6269838", "0.6259696", "0.62579805", "0.6240625", "0.6239971", "0.62179077", "0.62075794", "0.61821914", "0.6174739", "0.6170796", "0.61609524", "0.6148456", "0.6141455", "0.6138061", "0.6134713", "0.61302763", "0.61292964", "0.6118323", "0.61167836", "0.6103495", "0.609435", "0.60921293", "0.6087854", "0.6079336", "0.6077035", "0.6070462", "0.60689425", "0.6060471", "0.6058415", "0.60507053", "0.60468894", "0.603198", "0.59898037", "0.59845525", "0.5983385", "0.5978079", "0.59777087", "0.59737056", "0.5965398", "0.59605646", "0.59376884", "0.59254926", "0.59250414", "0.59242713", "0.5921876", "0.5910847", "0.59038264", "0.5903076", "0.59018093", "0.59010625", "0.58980757", "0.5891823", "0.589165", "0.5874474", "0.5866117", "0.58653355", "0.5862789", "0.58573806", "0.5856571", "0.58515453", "0.58411276", "0.583781", "0.58342427", "0.58294094", "0.58291453" ]
0.6091759
57
////////////////////////////////////////////////////////////////////////////////////////////////////// This method is used to verify the correctness of the employee ID number via Regular Expression //////////////////////////////////////////////////////////////////////////////////////////////////////
public static String verifyEmpNum(Scanner input, String tempNumber){ //String used for regex verification of Employee number String theRegex = "[0-9][0-9][0-9][-][A-Ma-m]"; //While tempNumber does not match theRegex while(!tempNumber.matches(theRegex)){ System.out.print("The Employee Number you entered was invalid.\nThe Employee Number must match XXX-L including the dash " + "where X is a digit and L is a letter A-M: "); tempNumber = input.nextLine(); } return tempNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean validateEmployeeID() {\n if (employeeID.length() - 1 != 6) {\n return false;\n }\n else if (employeeID.toCharArray()[2] != '-') {\n return false;\n }\n else if (Character.isLetter(employeeID.toCharArray()[0] & employeeID.toCharArray()[1])) {\n return true;\n }\n else if (Character.isDigit(employeeID.toCharArray()[3] & employeeID.toCharArray()[4]\n & employeeID.toCharArray()[5] & employeeID.toCharArray()[6])) {\n return true;\n }\n else{\n return false;\n }\n }", "public static boolean empidValidate(String emp_id){\n if(emp_id.matches(\"\\\\p{IsAlphabetic}{2}-\\\\d{4}\"))\n return true;\n\n else {\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n return false;\n }\n\n }", "boolean validateEmployeeId(String employeeId);", "private boolean validityChecker(TextField employeeId) {\n\t\tString empid = employeeId.getValue();\n\t\tint length = empid.length();\n\t\tif (empid.matches(\".*[A-Za-z].*\") || length < minLength || length> maxLength)\n\t\t\treturn false;\n\t\tif(!isNew){\n\t\tif (EmployeeDAO.getEmployee(empid) == null)\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static String verifyEmployeeID(String employeeID) {\r\n\r\n if (employeeID.matches(\"^[0-9]*$\")) {\r\n try {\r\n int employeeId = Integer.parseInt(employeeID);\r\n } catch (Exception e) {\r\n System.err.println(e.getMessage());\r\n return null;\r\n }\r\n\r\n }\r\n return employeeID;\r\n }", "private boolean CheckID(String id) {\n\t\tif ((!id.matches(\"([0-9])+\") || id.length() != 9) && (!id.matches(\"S([0-9])+\") || id.length() != 10)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "static boolean verifyID(String id)\r\n\t{\r\n\t\tfor(int i = 0; i < id.length(); i++)\r\n\t\t{\r\n\t\t\tchar c = id.charAt(i);\r\n\t\t\tif((c <= 'Z' && c >= 'A') || (c >= 'a' && c <= 'z')) //isAlpha\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c >= '0' && c <= '9' || c == '_' || c == '-') //is digit or _ or -\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c == ' ')\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn id.length() > 0;\r\n\t}", "public void testNumberID() {\n String testID = generator.generatePrefixedIdentifier(\"123\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"_123\" + ID_REGEX));\n }", "@Test\n\tpublic void inValidEmailIdIsTested() {\n\t\ttry {\n\t\t\tString emailId = \"divyagmail.com\";\n\t\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailID Format\");\n\t\t\tassertFalse(isValidMail);\n\t\t} catch (Exception e) {\n\t\t\tassertEquals(\"InValid EmailID Format\", e.getMessage());\n\n\t\t}\n\t}", "public void setEmployeeID(int employeeID)\n {\n if(employeeID<=9999&&employeeID>=1000)\n {\n this.employeeID = employeeID;\n }else\n {\n System.out.println(\"The Employee ID should be of 4 digits only.\");\n \n }\n }", "public static void main(String[] args) {\n String idNum = \"410326880818551\";\n System.out.println(verify15(idNum));\n// String idNum2 = \"411111198808185510\";\n String idNum2 = \"410326198808185515\";\n System.out.println(verify(idNum2));\n }", "static boolean verifyIDRelaxed(String id)\r\n\t{\r\n\t\tfor(int i = 0; i < id.length(); i++)\r\n\t\t{\r\n\t\t\tchar c = id.charAt(i);\r\n\t\t\tif(Character.isLetterOrDigit(c)) //isAlpha\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c == ' ' || c == '_' || c == '-')\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn id.length() > 0;\r\n\t}", "public static boolean isValidId(String test) {\n return test.matches(VALIDATION_REGEX);\n }", "public static boolean isValidId(String test) {\n return test.matches(VALIDATION_REGEX);\n }", "public boolean validateID() {\n\t\tif (this.id == null || this.id.length() < 1)\n\t\t\treturn false;\n\t\ttry {\n\t\t\tInteger.parseInt(this.id);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "protected static String goodSearchID(String IDCheck) throws Exception\n {\n String[] ID; \n try{\n ID = IDCheck.split(\"\\\\s+\");\n if (ID.length > 1 ) {\n throw new Exception(\"ERROR: The ID must be 1 word only\\n\");\n }\n if (!(ID[0].equals(\"\")) && ID[0].length() != 6) {\n throw new Exception(\"ERROR: ID entered but it is not 6 digits\\n\");\n }\n if (!(ID[0].matches(\"[0-9]+\"))) {\n throw new Exception(\"ERROR: ID must only contain numbers\");\n }\n return ID[0];\n } catch (Exception e){\n throw new Exception(e.getMessage());\n }\n }", "@Test\n\tpublic void test() {\n\t\tString r1 = CGroup.createRandomId();\n\t\tassertTrue(r1.matches(\"[0-9]+\"));\n\t\t\n\t\tString r2 = CGroup.createRandomId();\n\t\tassertFalse(r1.equals(r2));\n\t}", "private boolean isValidEmployeeIds(List<Employee> employees) {\n //all employee Ids must be positive integer value\n if (employees.stream().mapToInt(Employee::getEmployeeId)\n .anyMatch(employeeId -> employeeId<=0))\n // if any id is <= 0 then the list is not valid\n return false;\n\n //EmployeeId must be unique\n long idCount = employees.stream()\n .mapToInt(Employee::getEmployeeId)\n .count();\n long idDistinctCount = employees.stream()\n .mapToInt(Employee::getEmployeeId)\n .distinct().count();\n // if both are equal then the ids are already unique\n return idCount == idDistinctCount;\n }", "private void validateId(String id) {\n if (!id.matches(\"[0-9]+\")) {\n throw new IllegalArgumentException(\"Invaild Tweet Id\");\n }\n return;\n }", "public static boolean\n isValidAadharNumber(String str) \n { \n // Regex to check valid Aadhar number. \n String regex \n = \"^[2-9]{1}[0-9]{3}\\\\s[0-9]{4}\\\\s[0-9]{4}$\"; \n \n // Compile the ReGex \n Pattern p = Pattern.compile(regex); \n \n // If the string is empty \n // return false \n if (str == null) { \n return false; \n } \n \n // Pattern class contains matcher() method \n // to find matching between given string \n // and regular expression. \n Matcher m = p.matcher(str); \n \n // Return if the string \n // matched the ReGex \n return m.matches(); \n }", "private boolean checkId() {\n int sum = 0;\n int id;\n\n try\n {\n id = Integer.parseInt(ID.getText().toString());\n }\n catch (Exception e)\n {\n return false;\n }\n\n if (id >= 1000000000)\n return false;\n\n for (int i = 1; id > 0; i = (i % 2) + 1) {\n int digit = (id % 10) * i;\n sum += digit / 10 + digit % 10;\n\n id=id/10;\n }\n\n if (sum % 10 != 0)\n return false;\n\n return true;\n }", "public abstract boolean isValidID(long ID);", "private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}", "@Test\n public void contactNumber_WhenValid_ShouldReturnTrue(){\n RegexTest valid = new RegexTest();\n boolean result = valid.contactNumber( \"91 1234567890\");\n Assert.assertEquals(true,result);\n }", "public abstract boolean verifyIdAnswers(String firstName, String lastName, String address, String city, String state, String zip, String ssn, String yob);", "protected boolean isAirportIDValid(String airportID) {\n return (airportID.length() <= 5 && airportID.matches(\"[0-9]+\"));\n }", "protected boolean isAirlineIDValid(String airlineID) {\n return airlineID.length() <= 5 && airlineID.matches(\"[0-9]+\");\n }", "@Test\n public void testIncorrectId(){\n UserRegisterKYC idTooLong = new UserRegisterKYC(\"hello\",\"S12345678B\",\"26/02/1995\",\"738583\");\n int requestResponse = idTooLong.sendRegisterRequest();\n assertEquals(400, requestResponse);\n\n UserRegisterKYC nonAlphanumId = new UserRegisterKYC(\"hello\",\"S12345!8B\",\"26/02/1995\",\"738583\");\n requestResponse = nonAlphanumId.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC invalidPrefixId = new UserRegisterKYC(\"hello\",\"A\"+validId3.substring(1),\"26/02/1995\",\"738583\");\n requestResponse = invalidPrefixId.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC alphaInMiddleId = new UserRegisterKYC(\"hello\",\"S1234A68B\",\"26/02/1995\",\"738583\");\n requestResponse = alphaInMiddleId.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC idTooShort = new UserRegisterKYC(\"hello\",\"S123678B\",\"26/02/1995\",\"738583\");\n requestResponse = idTooShort.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC invalidChecksum = new UserRegisterKYC(\"hello\",\"S1234578B\",\"26/02/1995\",\"738583\");\n requestResponse = invalidChecksum.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n }", "private boolean isValidId(String id) {\r\n\t\tboolean result = false;\r\n\t\tif (id.length() >= 1) {\r\n\t\t\tif (Character.isLetter(id.charAt(0))) {\r\n\t\t\t\tif (id.contains(\".\")) {\r\n\t\t\t\t\tString[] tokens = id.split(\"\\\\.\");\r\n\t\t\t\t\tif (tokens.length == 2) {\r\n\t\t\t\t\t\tfor (int i = 0; i < tokens[0].length(); i++) {\r\n\t\t\t\t\t\t\tif (!(tokens[0].charAt(i) == '.'\r\n\t\t\t\t\t\t\t\t\t|| tokens[0].charAt(i) == '_'\r\n\t\t\t\t\t\t\t\t\t|| tokens[0].charAt(i) == '-' || Character\r\n\t\t\t\t\t\t\t\t\t\t.isLetterOrDigit(tokens[0].charAt(i)))) {\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfor (int i = 0; i < tokens[1].length(); i++) {\r\n\t\t\t\t\t\t\tif (!(tokens[0].charAt(i) == '.'\r\n\t\t\t\t\t\t\t\t\t|| tokens[0].charAt(i) == '_'\r\n\t\t\t\t\t\t\t\t\t|| tokens[0].charAt(i) == '-' || Character\r\n\t\t\t\t\t\t\t\t\t\t.isLetterOrDigit(tokens[0].charAt(i)))) {\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Test\n public void testIsValidPhonenumber() {\n System.out.println(\"isValidPhonenumber\");\n String phonenumber = \"gd566666666666666666666666666666666666666\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidPhonenumber(phonenumber);\n assertEquals(expResult, result);\n }", "private static boolean isLegalIdentifier(String str) {\n if (\"\".equals(str)) {\n return false;\n }\n if (str.charAt(0) >= '0' & str.charAt(0) <= '9') {\n return false;\n }\n\n return str.matches(\"^\\\\w+$\");\n }", "@Test\n\tpublic void validEmailIdIsTested() throws InValidEmailException {\n\t\tString emailId = \"divyamar@gmail.com\";\n\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailId Format\");\n\t\tassertTrue(isValidMail);\n\t}", "@Override\n public final boolean isValid(final String taxId) {\n if (hasInvalidLength(taxId) || hasInvalidCharacter(taxId)) {\n return false;\n }\n if (computeCheckDigit(taxId) != taxId.charAt(EXPECTED_LEN - 1)) {\n return false;\n }\n return true;\n }", "public static String verifySalary(String salary) {\r\n\r\n if (salary.matches(\"^[0-9]*$\")) {\r\n try {\r\n int employeeId = Integer.parseInt(salary);\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n\r\n }\r\n return salary;\r\n }", "private boolean hasInvalidCharacter(final String taxId) {\n char aChar;\n for (int i = 0; i < EXPECTED_LEN; i++) {\n aChar = taxId.charAt(i);\n if (!(aChar >= '0' && aChar <= '9' || aChar >= 'A' && aChar <= 'Z')) {\n return true;\n }\n }\n return false;\n }", "public void testStringID() {\n String testID = generator.generatePrefixedIdentifier(\"test\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"test\" + ID_REGEX));\n }", "public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }", "public static boolean isValidStudentId(String test) {\n return test.matches(STUDENT_ID_VALIDATION_REGEX);\n }", "private static boolean isContactNumberValid(String contactNumber) {\n return contactNumber.matches(\"\\\\d{10}\");\n }", "private boolean isValidManagerIds(List<Employee> employees) {\n // if an employee's manager id refers to his own employee id, then this is invalid\n if (employees.stream().filter(e -> e.getEmployeeId().equals(e.getManagerId())).count()!=0)\n return false;\n\n List<Integer> employeeIds = employees.stream()\n .mapToInt(Employee::getEmployeeId)\n .boxed().collect(Collectors.toList());\n List<Integer> managerIds = employees.stream()\n .filter(Employee::hasManager)\n .mapToInt(Employee::getManagerId).distinct()\n .boxed().collect(Collectors.toList());\n //check if there's a manager id that is not one of the employees\n return employeeIds.containsAll(managerIds);\n }", "@Test\n\tpublic void TestR1NonIntegerParseableChars() {\n\t\tString invalid_solution = \"a74132865635897241812645793126489357598713624743526189259378416467251938381964572\";\n\t\tassertEquals(-1, sv.verify(invalid_solution));\n\t}", "public void checkRule() {\n if (s.matches(\"^\\\\d+$\"))\n System.out.println(\"I see a number. Rule 2 \");\n }", "public boolean validateAccountNumber() {\n\t\tif (!this.setAccountNumber(this.account))\n\t\t\treturn false;\n\t\treturn this.getAccountNumber().length() > 0 && this.getAccountNumber().length() <= 11;\n\t}", "static boolean isValidIdentifier(String identifier) {\n return FULL_IDENTIFIER_PATTERN.matcher(identifier).matches();\n }", "public static boolean isValidEmailId(String userInput) {\n return Pattern.matches(Constants.EMAIL_VALIDATION, userInput);\n }", "protected void validateMobileNumber(){\n /*\n Checking For Mobile number\n The Accepted Types Are +00 000000000 ; +00 0000000000 ;+000 0000000000; 0 0000000000 ; 00 0000000000\n */\n Boolean mobileNumber = Pattern.matches(\"^[0]?([+][0-9]{2,3})?[-][6-9]+[0-9]{9}\",getMobileNumber());\n System.out.println(mobileNumberResult(mobileNumber));\n }", "@org.junit.Test\r\n public void testPositiveScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"+27712612199\");// function should return true\r\n assertEquals(true, result);\r\n\r\n }", "private void AnalyzeIdentNum(String s, int lineNum){\n if (s.matches(\"[a-z](([a-z]|[0-9])*)\")){\n arrL.add(new Token(s, 61, lineNum));\n }\n //check s is number or not\n else if (s.matches(\"[1-9]([0-9]*)\")||s.matches(\"0\")){\n arrL.add(new Token(s, 60, lineNum));\n }\n // check s is a\n // none of above, then s is an errorToken\n else{\n arrL.add(new Token(s, 0, lineNum));\n Error(\"Error: Invalid input \\\"\" + s + \"\\\" on line \" + lineNum);\n }\n }", "private void checkHexnumber(String add,String errorMsg) throws NotHexNumber{\n\t\tint subIndex=0;\n\t\tif(add.substring(0,2).equals(\"0x\")){\n\t\t\tsubIndex=2;\n\t\t}\n\t\tif(add.substring(subIndex).matches(\"^[0-9A-Fa-f]+$\")==false){\n\t\t\tthrow new NotHexNumber(\"NotHexNumber.\"+errorMsg);\n\t\t}\t\t\n\t}", "private static boolean validatePhoneNumber(String phoneNo) {\n if (phoneNo.matches(\"\\\\d{10}\")) return true;\n //validating phone number with -, . or spaces\n else if(phoneNo.matches(\"\\\\d{3}[-\\\\.\\\\s]\\\\d{3}[-\\\\.\\\\s]\\\\d{4}\")) return true;\n //validating phone number with extension length from 3 to 5\n else if(phoneNo.matches(\"\\\\d{3}-\\\\d{3}-\\\\d{4}\\\\s(x|(ext))\\\\d{3,5}\")) return true;\n //validating phone number where area code is in braces ()\n else if(phoneNo.matches(\"\\\\(\\\\d{3}\\\\)-\\\\d{3}-\\\\d{4}\")) return true;\n //return false if nothing matches the input\n else return false;\n\n }", "@Test\n public void testSsnvalidatorFalse(){\n assertFalse(register.ssnValidator(\"70091212345\")); // a date can`t start with 70\n }", "@Override\r\n\tpublic boolean validate(String num) {\n\t\treturn false;\r\n\t}", "@Test\n @Disabled\n public void testValidateNIF() {\n assertTrue(RegExprMain.validateNIF(\"46098494P\"));\n assertFalse(RegExprMain.validateNIF(\"46098494A\"));\n assertTrue(RegExprMain.validateNIF(\"43267890C\"));\n assertFalse(RegExprMain.validateNIF(\"46098494A\"));\n assertFalse(RegExprMain.validateNIF(\"4609844AA\"));\n assertFalse(RegExprMain.validateNIF(\"4609844A\"));\n assertTrue(RegExprMain.validateNIF(\"45678932D\"));\n assertTrue(RegExprMain.validateNIF(\"41256789S\"));\n assertFalse(RegExprMain.validateNIF(\"460984943A\"));\n assertFalse(RegExprMain.validateNIF(\"46098494\"));\n\n }", "public Employeedetails checkEmployee(String uid);", "private void validateEmployee(final TimeEntryDto timeEntryDto, final BindingResult result) {\n\t\tif (timeEntryDto.getEmployeeId() == null) {\n\t\t\tresult.addError(new ObjectError(\"employee\", \"Employee not informed.\"));\n\t\t\treturn;\n\t\t}\n\n\t\tLOGGER.info(\"Validating employee id {}: \", timeEntryDto.getEmployeeId());\n\t\tfinal Optional<Employee> employee = this.employeeService.findById(timeEntryDto.getEmployeeId());\n\t\tif (!employee.isPresent()) {\n\t\t\tresult.addError(new ObjectError(\"employee\", \"Employee not found. Nonexistent ID.\"));\n\t\t}\n\t}", "@Test\n\tpublic void invalidLengthLong() {\n\t\tboolean result = validator.isValid(\"73102851691\");\n\t\tassertFalse(result);\n\t}", "private boolean validate(){\n\n String MobilePattern = \"[0-9]{10}\";\n String name = String.valueOf(userName.getText());\n String number = String.valueOf(userNumber.getText());\n\n\n if(name.length() > 25){\n Toast.makeText(getApplicationContext(), \"pls enter less the 25 characher in user name\",\n Toast.LENGTH_SHORT).show();\n return true;\n }\n\n\n\n else if(name.length() == 0 || number.length() == 0 ){\n Toast.makeText(getApplicationContext(), \"pls fill the empty fields\",\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n\n\n else if(number.matches(MobilePattern))\n {\n\n return true;\n }\n else if(!number.matches(MobilePattern))\n {\n Toast.makeText(getApplicationContext(), \"Please enter valid 10\" +\n \"digit phone number\", Toast.LENGTH_SHORT).show();\n\n\n return false;\n }\n\n return false;\n\n }", "@Test\n public void testUserIdDoesNotExist() {\n\n String userInput = \"harrylouis\";\n\n assertEquals(ownerHelper.validateUser(userInput, \"Mounta1nM@n\"), null);\n\n }", "public static boolean isValidModuleId(String test) {\n return test.matches(VALIDATION_REGEX);\n }", "@Test(groups = {\"All\"})\n\tpublic void R2267_TC91417_Validate_VisitExceptionID_invalid() throws InterruptedException, IOException,\n\t\t\tParseException {\n\n\t\t// logger = extent.startTest(\"R2267_TC91417_Validate_VisitExceptionID_valid\");\n\t\tlogger.log(LogStatus.INFO, \"Validating_VisitExceptionID with valid value\"); \n\n\t\tJSONArray jsonArrayVisit=GenerateUniqueParam.VisitParams_AltEVV();\n\t\tJSONObject jsonObjectVisit = (JSONObject) jsonArrayVisit.get(0);\n\n\t\tJSONArray jsonArrayVisitException = (JSONArray) jsonObjectVisit.get(\"VisitExceptionAcknowledgement\");\n\t\tJSONObject jsonObjectVisitException = (JSONObject) jsonArrayVisitException.get(0);\n\n\t\tjsonObjectVisitException.put(globalVariables.ExceptionAcknowledgedjson, true);\n\t\tjsonObjectVisitException.put(globalVariables.ExceptionIDjson, CommonMethods.generateRandomNumberOfFixLength(3));\n\n\t\tString bodyAsString = CommonMethods.capturePostResponse(jsonArrayVisit,\n\t\t\t\tCommonMethods.propertyfileReader(globalVariables.altevv_visit));\n\t\n\t\tCommonMethods.verifyjsonassertFailcase(bodyAsString, globalVariables.ExceptionIDformaterror);\n\t}", "public void isValidEmployee(Employee employee) throws ValidationException, ServiceException {\n\t\tNumberValidator.isValidEmployeeId(employee.getEmployeeId());\n\t\tNumberValidator.isValidMobileNumber(employee.getMobileNumber());\n\t\tStringValidator.isValidName(employee.getName());\n\t\tStringValidator.isValidEmail(employee.getEmail());\n\t\tStringValidator.isValidPassword(employee.getPassword());\n\t\tStringValidator.isValidUsername(employee.getUsername());\n\t\tInteger id = employeeService.exists(employee.getEmployeeId());\n\t\tif (id != null) {\n\t\t\tthrow new ValidationException(\"Employee Id already exists\");\n\t\t}\n\t\tid = employeeService.exists(employee.getMobileNumber());\n\t\tif (id != null) {\n\t\t\tthrow new ValidationException(\"Mobile Number already exists\");\n\t\t}\n\t\tid = employeeService.exists(employee.getEmail());\n\t\tif (id != null) {\n\t\t\tthrow new ValidationException(\"Email Id already exists\");\n\t\t}\n\t\tDateValidator.isValidJoinedDate(employee.getJoinedDate());\n\t}", "boolean isValid(String candidateOid);", "private static boolean m4389a(String str) {\n return str != null && str.length() != 0 && Pattern.compile(\"^[0-9A-Fa-f]{13,18}+$\").matcher(str).matches() && str.indexOf(\"000000000\") == -1 && str.indexOf(\"111111111\") == -1 && str.indexOf(\"222222222\") == -1 && str.indexOf(\"333333333\") == -1 && str.indexOf(\"444444444\") == -1 && str.indexOf(\"555555555\") == -1 && str.indexOf(\"666666666\") == -1 && str.indexOf(\"777777777\") == -1 && str.indexOf(\"888888888\") == -1 && str.indexOf(\"999999999\") == -1;\n }", "@Test(groups = {\"All\"})\n\tpublic void R2267_TC91417_Validate_VisitExceptionID() throws InterruptedException, java.text.ParseException,\n\t\t\tIOException, ParseException, SQLException, ClassNotFoundException\n\t{\n\n\t\t// logger = extent.startTest(\"R2267_TC91417_Validate_VisitExceptionID\");\n\t\tlogger.log(LogStatus.INFO, \"Validating_VisitExceptionID\"); \n\n\t\tJSONArray jsonArrayVisit=GenerateUniqueParam.VisitParams_AltEVV();\n\t\tJSONObject jsonObjectVisit = (JSONObject) jsonArrayVisit.get(0);\n\n\t\tJSONArray jsonArrayVisitException = (JSONArray) jsonObjectVisit.get(\"VisitExceptionAcknowledgement\");\n\t\tJSONObject jsonObjectVisitException = (JSONObject) jsonArrayVisitException.get(0);\n\n\t\tjsonObjectVisitException.put(globalVariables.ExceptionAcknowledgedjson, true);\n\t\tjsonObjectVisitException.put(globalVariables.ExceptionIDjson, CommonMethods.generateRandomNumberOfFixLength(2));\n\t\t\t\t\n\t\tCommonMethods.validateResponse(jsonArrayVisit,\n\t\t\t\t\tCommonMethods.propertyfileReader(globalVariables.altevv_visit));\n\n\t}", "public static boolean isNumeric(String userInput) {\n return Pattern.matches(Constants.ID_VALIDATION, userInput);\n }", "@Test(priority=1)\n\tpublic void checkFirstNameAndLastNameFieldValiditywithNumbers(){\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"jane@doe.com\");\n\t\tsignup.enterFirstName(\"12345\");\n\t\tsignup.enterLastName(\"56386\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\t// given page accepts numbers into the firstname and lastname fields\n\t\tAssert.assertFalse(TestHelper.isStringPresent(errors, \"Please enter your last name.\"));\n\t\tAssert.assertFalse(TestHelper.isStringPresent(errors, \"Please enter your first name.\"));\n\t}", "public boolean Validate() \r\n {\n return phoneNumber.matcher(getText()).matches();\r\n }", "void validateMobileNumber(String stringToBeValidated,String name);", "@Test\n @Disabled\n public void testValidateTLF() {\n assertTrue(RegExprMain.validateTLF(\"622 24 64 59\"));\n assertTrue(RegExprMain.validateTLF(\"634 84 34 54\"));\n assertTrue(RegExprMain.validateTLF(\"645 74 44 53\"));\n assertFalse(RegExprMain.validateTLF(\"656 154 54 56\"));\n assertTrue(RegExprMain.validateTLF(\"656 14 54 56\"));\n assertTrue(RegExprMain.validateTLF(\"667 54 74 55\"));\n assertFalse(RegExprMain.validateTLF(\"656 16 5 56\"));\n assertFalse(RegExprMain.validateTLF(\"656 15A 54 56\"));\n assertTrue(RegExprMain.validateTLF(\"611 34 84 57\"));\n assertFalse(RegExprMain.validateTLF(\"6564 15 54 56\"));\n \n\n }", "private boolean isPhoneNumberValid(String phoneNumber){\n boolean isValid = false;\n\n String expression = \"^\\\\(?(\\\\d{3})\\\\)?[- ]?(\\\\d{3})[- ]?(\\\\d{4})$\";\n CharSequence inputStr = phoneNumber;\n Pattern pattern = Pattern.compile(expression);\n Matcher matcher = pattern.matcher(inputStr);\n if(matcher.matches()){\n isValid = true;\n }\n return isValid;\n }", "public ErrorMessage verifyCode(String code, Integer year, Long exception);", "public void validateInput(String fName, String lName, String zipCode, String employID){\n boolean firstname = firstNameTwoCharactersLong(fName);\n //boolean firstFilled = firstNameFilled\n boolean firstFilled = firstNameFilled(fName);\n //boolean lastname = lastNameTwoCharactersLong\n boolean lastname = lastNameTwoCharactersLong(lName);\n //boolean lastFilled = lastNameFilled\n boolean lastFilled = lastNameFilled(lName);\n //boolean the rest\n boolean employeeID = employeeIDValid(employID);\n boolean zCode = zipCodeValid(zipCode);\n\n //if all of them are valid=true then error prints \"there are no errors found\n if (firstname && firstFilled && lastname && lastFilled && employeeID && zCode){\n errorMessage = \"There were no errors found\";\n }\n //Display error message\n System.out.println(errorMessage);\n\n }", "private String isValid(String number)\n {\n\tif(number.matches(\"\\\\d+\")) return number;\n\treturn null;\n }", "public static boolean testparseBookId() {\n boolean test = false; // test set to false because must throw a ParseException to be\n // true\n try {\n // creates a new ExceptionLibrary to check if parseException thrown from parse bookId\n ExceptionalLibrary lib = new ExceptionalLibrary(\"Madison\", \"Gus\", \"abc\");\n String bookId = \"1s\"; // invalid bookId that should throw parseException\n int errorOffset = 1;\n lib.parseBookId(bookId, errorOffset);\n } catch (ParseException e) {\n test = true; // test passes if catches a parse Exception from invalid bookId\n System.out.println(\"Caught parse exception: test passed\");\n }\n return test;\n }", "@SuppressWarnings(\"unused\")\n\t@Test(groups = {\"All\", \"Regression\"})\n\t@AdditionalInfo(module = \"OpenEVV\")\n\tpublic void TC95800_Xref_EmployeeQual_num_and_ClientQual_num_valid() throws InterruptedException, java.text.ParseException, IOException, ParseException, ConfigurationException, SQLException\n\t{\n\n\t\t// logger = extent.startTest(\"TC95800_Xref_EmployeeQual_num_and_ClientQual_num_valid\");\n\n\t\tlogger.log(LogStatus.INFO, \"To validate valid TC95800_Xref_EmployeeQual_num_and_ClientQual_num_valid\");\n\n\t\tJSONArray jsonarray=GenerateUniqueParam.XrefParams(globalVariables.xref_json);\n\t\tJSONObject jsonobject = (JSONObject) jsonarray.get(0);\n\t\tjsonobject.put(\"EmployeeQualifier\", CommonMethods.generateRandomNumberOfFixLength(7));\n\t\tjsonobject.put(\"ClientIDQualifier\", CommonMethods.generateRandomNumberOfFixLength(7));\n\n\n\t\tString bodyAsString = CommonMethods.capturePostResponse(jsonarray, CommonMethods.propertyfileReader(globalVariables.openevv_xref_url));\n\t\tCommonMethods.verifyjsonassertFailcase(bodyAsString, globalVariables.ClientidQualifierFormatError);\n\t\tCommonMethods.verifyjsonassertFailcase(bodyAsString, globalVariables.EmployeeidQualifierFormatError);\n\n\n\t}", "private boolean isInputValid() {\r\n \r\n String errorMessage = \"\";\r\n \r\n // Email regex provided by emailregex.com using the RFC5322 standard\r\n String emailPatternString = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\r\n \r\n // Phone number regex provided by Ravi Thapliyal on Stack Overflow:\r\n // http://stackoverflow.com/questions/16699007/regular-expression-to-match-standard-10-digit-phone-number\r\n String phoneNumString = \"^(\\\\+\\\\d{1,2}\\\\s)?\\\\(?\\\\d{3}\\\\)?[\\\\s.-]?\\\\d{3}[\\\\s.-]?\\\\d{4}$\";\r\n \r\n Pattern emailPattern = Pattern.compile(emailPatternString, Pattern.CASE_INSENSITIVE);\r\n Matcher emailMatcher;\r\n \r\n Pattern phoneNumPattern = Pattern.compile(phoneNumString);\r\n Matcher phoneNumMatcher;\r\n \r\n // Validation for no length or over database size limit\r\n if ((custFirstNameTextField.getText() == null || custFirstNameTextField.getText().length() == 0) || (custFirstNameTextField.getText().length() > 25)) {\r\n errorMessage += \"First name has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custLastNameTextField.getText() == null || custLastNameTextField.getText().length() == 0) || (custLastNameTextField.getText().length() > 25)) {\r\n errorMessage += \"Last name has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custAddressTextField.getText() == null || custAddressTextField.getText().length() == 0) || (custAddressTextField.getText().length() > 75)) {\r\n errorMessage += \"Address has to be between 1 and 75 characters.\\n\";\r\n }\r\n \r\n if ((custCityTextField.getText() == null || custCityTextField.getText().length() == 0) || (custCityTextField.getText().length() > 50)) {\r\n errorMessage += \"City has to be between 1 and 50 characters.\\n\";\r\n }\r\n \r\n if ((custProvinceTextField.getText() == null || custProvinceTextField.getText().length() == 0) || (custProvinceTextField.getText().length() > 2)) {\r\n errorMessage += \"Province has to be a two-letter abbreviation.\\n\";\r\n }\r\n \r\n if ((custPostalCodeTextField.getText() == null || custPostalCodeTextField.getText().length() == 0) || (custPostalCodeTextField.getText().length() > 7)) {\r\n errorMessage += \"Postal Code has to be between 1 and 7 characters.\\n\";\r\n }\r\n \r\n if ((custCountryTextField.getText() == null || custCountryTextField.getText().length() == 0) || (custCountryTextField.getText().length() > 25)) {\r\n errorMessage += \"Country has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custHomePhoneTextField.getText() == null || custHomePhoneTextField.getText().length() == 0) || (custHomePhoneTextField.getText().length() > 20)) {\r\n errorMessage += \"Phone number has to be between 1 and 20 characters long.\\n\";\r\n } else {\r\n phoneNumMatcher = phoneNumPattern.matcher(custHomePhoneTextField.getText());\r\n if (!phoneNumMatcher.matches()) {\r\n errorMessage += \"Phone number not in the correct format: (111) 111-1111.\\n\";\r\n }\r\n }\r\n \r\n if ((custBusinessPhoneTextField.getText() == null || custBusinessPhoneTextField.getText().length() == 0) || (custBusinessPhoneTextField.getText().length() > 20)) {\r\n errorMessage += \"Phone number has to be between 1 and 20 characters long.\\n\";\r\n } else {\r\n phoneNumMatcher = phoneNumPattern.matcher(custBusinessPhoneTextField.getText());\r\n if (!phoneNumMatcher.matches()) {\r\n errorMessage += \"Phone number not in the correct format: (111) 111-1111.\\n\";\r\n }\r\n }\r\n \r\n if ((custEmailTextField.getText() == null || custEmailTextField.getText().length() == 0) || (custEmailTextField.getText().length() > 50)) {\r\n errorMessage += \"Email has to be between 1 and 50 characters.\\n\";\r\n } else {\r\n emailMatcher = emailPattern.matcher(custEmailTextField.getText());\r\n if (!emailMatcher.matches()) {\r\n errorMessage += \"Email format is not correct. Should be in the format username@domain.domaincode.\\n\"; \r\n } \r\n }\r\n \r\n if (errorMessage.length() > 0) {\r\n Alert alert = new Alert(AlertType.ERROR, errorMessage, ButtonType.OK);\r\n alert.setTitle(\"Input Error\");\r\n alert.setHeaderText(\"Please correct invalid fields\");\r\n alert.showAndWait();\r\n \r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public String verifyID(String documentNumber) throws RepeatedDocumentException{\n for (int i = 0; i<users.size(); i++) {\n\t\t\tif (users.get(i).getDocumentNumber().equals(documentNumber)) {\n\t\t\t\tthrow new RepeatedDocumentException(documentNumber);\n\t\t\t}\n\t\t}\n\t\treturn \"ok\";\n }", "private static boolean stringContainsNumber( String userName ) {\n return Pattern.compile( \"[0-9]\" ).matcher( userName).find();\n }", "public static boolean verifyId(long id) {\n \n boolean isTrue = true;\n \n if(id >= MINIMUM_ID_NUMBER && id <= MAXIMUM_ID_NUMBER) {\n return isTrue;\n } else {\n isTrue = false;\n \n return isTrue;\n } \n }", "public static String verifyHireDate(Scanner input, String tempDate){\n \n //String used for regex verification of input date\n String theRegex = \"[0-1][0-9][/][0-3][0-9][/][1-2][0-9][0-9][0-9]\";\n \n //While tempDate does not match theRegex\n while(!tempDate.matches(theRegex)){\n System.out.print(\"The employee's hire date you entered was invalid.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1, J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n tempDate = input.nextLine();\n }\n return tempDate; \n }", "public void isEmployee(String username) throws ValidationException {\n\t\ttry {\n\t\t\temployeeService.getEmployeeId(username);\n\t\t} catch (ServiceException e) {\n\t\t\tthrow new ValidationException(INVALIDEMPLOYEE);\n\t\t}\n\t}", "@Test\n @Disabled\n public void testValidateFormat() {\n assertTrue(RegExprMain.validateFormat(\"CC222CC\"));\n assertTrue(RegExprMain.validateFormat(\"DD333DD\"));\n assertTrue(RegExprMain.validateFormat(\"AA999AA\"));\n assertTrue(RegExprMain.validateFormat(\"VV555VV\"));\n assertTrue(RegExprMain.validateFormat(\"JJ777JJ\"));\n assertFalse(RegExprMain.validateFormat(\"J777JJ\"));\n assertFalse(RegExprMain.validateFormat(\"JJ777J\"));\n assertFalse(RegExprMain.validateFormat(\"JJ77JJ\"));\n assertFalse(RegExprMain.validateFormat(\"JJ777AA\"));\n assertFalse(RegExprMain.validateFormat(\"AA777JJ\"));\n \n\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateAdduserEmailidField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Email address Field validations and its appropriate error message\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateEmailidField(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}", "public void setEmployeeNum(String employeeNum) {\n this.employeeNum = employeeNum == null ? null : employeeNum.trim();\n }", "@Test(groups = {\"All\", \"fixing\"})\n\tpublic void TC89302_OpenEVV_invalid_numeric_Gender() throws InterruptedException, IOException, ParseException\n\t{\n\t\t// logger = extent.startTest(\"TC89302_OpenEVV_invalid_numeric_Gender\");\n\t\t \n\t\tlogger.log(LogStatus.INFO, \"To validate the numeric employee gender\");// adding what you are verifing\n\n\t\t//Using Reusable method to load client json\n\t\tJSONArray j=CommonMethods.LoadJSON_OpenEVV(\"employee\");\n\n\t\t//Making json values dynamic\n\t\tJSONObject js = (JSONObject) j.get(0);\n\t\tjs.put(\"EmployeeGender\",CommonMethods.generateRandomNumberOfFixLength(1));\n\t\tlogger.log(LogStatus.INFO, \"Passing EmployeeGender as number \");\n \n\t\tString bodyAsString = CommonMethods.capturePostResponse(j, CommonMethods.propertyfileReader(globalVariables.openevv_emp_url));\n\n\t\tlogger.log(LogStatus.INFO, \"Validating Json response \");\n\n\n\t\t//Using Assert to validate the expected result\n\t\tAssert.assertTrue(bodyAsString.contains(\"\\\"status\\\": \\\"FAILED\\\",\"));\n\t\tAssert.assertTrue(bodyAsString.contains(\"ERROR: The EmployeeGender expected format is not correct.\"));\n\t}", "public boolean isScheduleIdValid(String scheduleId) throws IdInvalidException, NullValueException\r\n\t{\r\n\t\tPattern pattern = Pattern.compile(\"[s][c][0-9]{3}\");\r\n\t\tMatcher match = pattern.matcher(scheduleId);\r\n\t\tif(scheduleId.isEmpty())\r\n\t\t{\r\n\t\t\tthrow new NullValueException(\"Value cannot be empty\");\r\n\t\t}\r\n\t\tif(!match.matches())\r\n\t\t{\r\n\t\t\tthrow new IdInvalidException(\"Entered id in wrong format\");\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public long getRollNumber() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// getter method initialized\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n Scanner scanner = new Scanner(System.in);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Initialize the scanner to get input from User\r\n System.out.print(\"Enter 7 Digit Roll Number : \");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// This will print the argument at the end of the line\r\n rollNumber = scanner.nextLong();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Read long input from the Use\r\n String inputRollNumber = Long.toString(rollNumber);\t\t\t\t\t\t\t\t\t\t // convert Integer to string.\r\n Pattern pattern = Pattern.compile(\"\\\\d{7}\");\t\t\t\t\t\t\t\t\t\t\t // The Pattern class represents a compiled regular expression.\r\n Matcher matcher = pattern.matcher(inputRollNumber );\t\t\t\t\t\t\t\t\t\t\t\t\t // The resulting Pattern object is used to obtain a Matcher instance.\r\n if (matcher.matches());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // if loop ..to match input from the User\r\n else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// else loop started\r\n System.out.println(\"Invalid Roll Number - Please enter the Phone number again\");} // This will print the argument at the end of the line\r\n return rollNumber; }", "private boolean employeeNameValid(EmployeeDto newEmpDto) {\n\t\tint nameLen = (newEmpDto.getFirstName().length() + newEmpDto.getLastName().length());\n\t\treturn (nameLen >= 2) ? true : false;\n\t}", "private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test(groups = {\"All\", \"fixing\"})\n\tpublic void TC89302_OpenEVV_invalid_special_char_EmpGender() throws InterruptedException, IOException, ParseException\n\t{\n\t\t// logger = extent.startTest(\"TC89302_OpenEVV_invalid_special_char_EmpGender\");\n\t\t \n\t\tlogger.log(LogStatus.INFO, \"To validate the special char employee gender\");\n\t\t//Using Reusable method to load client json\n\t\tJSONArray j=CommonMethods.LoadJSON_OpenEVV(\"employee\");\n\n\t\t//Making json values dynamic\n\t\tJSONObject js = (JSONObject) j.get(0);\n\t\tjs.put(\"EmployeeGender\", CommonMethods.generateSpecialChar(1));\n\t\tlogger.log(LogStatus.INFO, \"Passing EmployeeGender as special character\");\n\n\t\tString bodyAsString = CommonMethods.capturePostResponse(j, CommonMethods.propertyfileReader(globalVariables.openevv_emp_url));\n\n\t\tlogger.log(LogStatus.INFO, \"Validating Json response \");\n\n\t\t//Using Assert to validate the expected result\n\t\tAssert.assertTrue(bodyAsString.contains(\"\\\"status\\\": \\\"FAILED\\\",\"));\n\t\tAssert.assertTrue(bodyAsString.contains(\"ERROR: The EmployeeGender expected format is not correct.\"));\n\t}", "public static void main(String[] args) {\n\n\t\tString emailID = \"sudalai@mail.com\";\n\t\tboolean isValidEmailID = true;\n\n\t\t//get index(position) value of '@' and '.'\n\t\tint at_index = emailID.indexOf('@');\n\t\tint dot_index = emailID.indexOf('.');\n\t\t\t\t\n\t\t// Check all rules one by one, if any one of the rule is not satisfied then it returns false immediately,\n\t\t// it returns true only after all the rules are satisfied\n\t\tisValidEmailID = (at_index < 0 || dot_index < 0) ? false\n\t\t\t\t: (at_index != emailID.lastIndexOf('@') || dot_index != emailID.lastIndexOf('.')) ? false\n\t\t\t\t\t\t: (emailID.substring(at_index + 1, dot_index).length() != 4) ? false\n\t\t\t\t\t\t\t\t: (emailID.substring(0, at_index).length() < 3) ? false\n\t\t\t\t\t\t\t\t\t\t: (emailID.toLowerCase().endsWith(\".com\") == false) ? false : true;\n\t\t\n\t\tSystem.out.println(\"Email ID : \" + emailID);\n\t\t\n\t\t\t\t\t\t\n\t\tif (isValidEmailID) {\n\t\t\tSystem.out.println(\"Email Validation Result : True (ie given maild is in vaild format)\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Email Validation Result : False (ie given maild is not in vaild format)\");\n\t\t}\n\n\t}", "private static void validate(Identification identification) {\n if (identification.validate()) {\n System.out.println(identification.getNumber() + \" is valid for \" + identification.getIsoCode());\n } else {\n System.out.println(identification.getNumber() + \" is not valid for \" + identification.getIsoCode());\n }\n }", "@Test\n public void shouldMatchDigits(){\n Assert.assertThat(\"match all digits\",CharMatcher.DIGIT.matchesAllOf(\"1234434\"),is(true));\n Assert.assertThat(\"match any digits \",CharMatcher.DIGIT.matchesAnyOf(\"123TTT4\"),is(true));\n }", "@Test\n\tpublic void adminIDTest() {\n\t\tString string1 = \"admin\";\n\t\tassertTrue(AdminValidator.isValidAdmin(string1));\n\n\t\tString string2 = \"username\";\n\t\tassertTrue(AdminValidator.isValidAdmin(string2));\n\n\t\tString string3 = \"\";\n\t\tassertFalse(AdminValidator.isValidAdmin(string3));\n\n\n\t\tString string4 = \"admin%\";\n\t\tassertFalse(AdminValidator.isValidAdmin(string4));\n\t}", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "@org.junit.Test\r\n public void testNegativeScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"071261219\");// function should return false\r\n assertEquals(false, result);\r\n\r\n }", "public static boolean isValidMobileNo(String str) {\n Pattern ptrn = Pattern.compile(\"(0/91)?[7-9][0-9]{9}\"); \r\n //the matcher() method creates a matcher that will match the given input against this pattern \r\n Matcher match = ptrn.matcher(str); \r\n //returns a boolean value \r\n return (match.find() && match.group().equals(str)); \r\n }", "public static boolean isValid(long number) { \n\t\t\t\treturn (numberOfDigits(number) >= 13 && numberOfDigits(number) <= 16) && \n\t\t\t\t (matchPrefix(number, 4) || matchPrefix(number, 5) || matchPrefix(number, 37) || matchPrefix(number, 6)) && \n\t\t\t\t ((sumOfDoubleEvenPlace(number) + sumOfOddPlace(number)) % 10 == 0); \n\t\t\t}", "public void setId(long id) throws InvalidIdException {\n// System.out.println(\"Id passed is: \" + id);\n // Check if the ID is within range\n if(id >= MINIMUM_ID_NUMBER && id <= MAXIMUM_ID_NUMBER) {\n \n // Set this value to the attribtue\n this.id = id;\n } else { // If not\n \n // Then throw error and display error message.\n throw new InvalidIdException(\"Employee ID must be between \" + \n MINIMUM_ID_NUMBER + \" and \" + MAXIMUM_ID_NUMBER);\n } \n }" ]
[ "0.79562366", "0.7442989", "0.7211916", "0.7055618", "0.7040008", "0.6451448", "0.634454", "0.63412315", "0.61948556", "0.6164003", "0.61614466", "0.6120611", "0.61200154", "0.61200154", "0.60293514", "0.59432596", "0.5848268", "0.5833238", "0.5824243", "0.5807276", "0.57883954", "0.57815534", "0.578121", "0.5769647", "0.5721572", "0.5703493", "0.56960064", "0.56876135", "0.56742215", "0.5672068", "0.5668504", "0.5647547", "0.55962825", "0.5578013", "0.5572491", "0.5571372", "0.55532956", "0.55361044", "0.5531148", "0.5526393", "0.551521", "0.5508539", "0.55071473", "0.5504016", "0.54928803", "0.5491593", "0.5486486", "0.5476674", "0.5457097", "0.5452619", "0.54480624", "0.54240835", "0.5422283", "0.54115266", "0.54067", "0.54036564", "0.5392812", "0.539248", "0.5383951", "0.53777415", "0.5358093", "0.53483623", "0.53448707", "0.53431237", "0.5341442", "0.53402704", "0.53246456", "0.5296465", "0.5296177", "0.5285772", "0.5284977", "0.5267918", "0.52672", "0.52618635", "0.5257466", "0.525354", "0.52532345", "0.5250402", "0.5233958", "0.523356", "0.5230065", "0.52266085", "0.5221308", "0.52156645", "0.5214317", "0.52094734", "0.5203682", "0.52017385", "0.51939887", "0.51883715", "0.5184245", "0.51730114", "0.51707566", "0.5156086", "0.5149954", "0.5145914", "0.51434815", "0.51378745", "0.513763", "0.5136706" ]
0.6868522
5
////////////////////////////////////////////////////////////////////////////////// this method verifies the hire date of an employee via Regular Expression //////////////////////////////////////////////////////////////////////////////////
public static String verifyHireDate(Scanner input, String tempDate){ //String used for regex verification of input date String theRegex = "[0-1][0-9][/][0-3][0-9][/][1-2][0-9][0-9][0-9]"; //While tempDate does not match theRegex while(!tempDate.matches(theRegex)){ System.out.print("The employee's hire date you entered was invalid.\nMake sure the date you enter matches IX/JX/KXXX including the slashes" + "\nwhere I is a 0 or 1, J is 0-3, K is a 1 or 2, and X is a digit 0-9: "); tempDate = input.nextLine(); } return tempDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isValidExpression(String expr) {\n final Pattern pattern1 = Pattern.compile(DATE_REGEX_FULL);\n final Pattern pattern2 = Pattern.compile(DATE_REGEX_FULL_2);\n final Matcher matcher1 = pattern1.matcher(expr);\n final Matcher matcher2 = pattern2.matcher(expr);\n return matcher1.matches() ^ matcher2.matches();\n }", "public Boolean validateDate(String date_of_birth) {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n format.parse(date_of_birth);\n } catch (ParseException exception) {\n System.out.println(\"Invalid Input!\");\n return true;\n }\n return false;\n }", "public static boolean checkExpDate(String cS_exp_date) {\n\t\t\n\t\t\n\t\treturn true;\n\t}", "private boolean checkDate(String date) {\n return date.matches(regexDate);\n }", "public void setHire_date(Date hire_date) {\n this.hire_date = hire_date;\n }", "public boolean verifyLeaveDate(Date date){\t\t\n\t\tLocale en = new Locale(\"en\");\t\t\n\t\tString lDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn leaveDate.getText().equals(lDate);\n\t}", "public static boolean empidValidate(String emp_id){\n if(emp_id.matches(\"\\\\p{IsAlphabetic}{2}-\\\\d{4}\"))\n return true;\n\n else {\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n return false;\n }\n\n }", "boolean isValidDate(String datestr)\n {\n String validch = \"1234567890/\";\n String month, day, year;\n Integer I;\n int m, d, y;\n int slash1, slash2;\n\n datestr.trim();\n if (datestr.length() == 0)\n return false;\n\n if (!checkchars(datestr, validch, false)) {\n // Invalid date entry\n return false;\n }\n\n\n slash1 = datestr.indexOf(\"/\");\n slash2 = datestr.indexOf(\"/\",slash1+1);\n if (slash1 <= 0 || slash2 <= 0)\n {\n // Invalid Entry\n return false;\n }\n\n month = datestr.substring(0,slash1);\n day = datestr.substring(slash1+1,slash2);\n year = datestr.substring(slash2+1,datestr.length());\n if ((month.length()<1 || month.length()>2) ||\n (day.length()<1 || day.length()>2) || (year.length()!=4))\n {\n // Invalid Date\n return false;\n }\n\n I = new Integer(month);\n m = I.intValue();\n I = new Integer(day);\n d = I.intValue();\n I = new Integer(year);\n y = I.intValue();\n //basic error checking\n if (m<1 || m>12 || d<1 || d>31 || y<0 || y>9999)\n return false;\n\n // months with 30 days\n if (d==31 && (m==4 || m==6 || m==9 || m==11)){\n return false;\n }\n\n // february, leap year\n if (m==2 && d>28){\n if (d > 29)\n return false;\n if ((y%4 == 0) || ((y%400==0) && (y%100!=0)))\n return false;\n }\n\n return true;\n }", "public static boolean dateFormatCheck(String date)\r\n\t{\r\n\t\treturn date.matches(\"(0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])-((19|20)\\\\d\\\\d)\");\t\r\n\t}", "public boolean validateEmployeeID() {\n if (employeeID.length() - 1 != 6) {\n return false;\n }\n else if (employeeID.toCharArray()[2] != '-') {\n return false;\n }\n else if (Character.isLetter(employeeID.toCharArray()[0] & employeeID.toCharArray()[1])) {\n return true;\n }\n else if (Character.isDigit(employeeID.toCharArray()[3] & employeeID.toCharArray()[4]\n & employeeID.toCharArray()[5] & employeeID.toCharArray()[6])) {\n return true;\n }\n else{\n return false;\n }\n }", "private boolean dateValidation(String userDate){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false);\n\n try {\n\n //if not valid, it will throw ParseException\n Date date = sdf.parse(userDate);\n System.out.println(date);\n\n } catch (ParseException e) {\n\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "boolean isValidExpTime();", "public interface RegexRule {\n /**\n * yyyy-MM 格式校验\n */\n String START_END_TIME_RULE=\"(19|20)[0-9][0-9]-(0[1-9]|1[0-2])\";\n /**\n * yyyy-MM 格式校验\n */\n String START_END_TIME_RULE_Y_M = \"(19|20)[0-9][0-9]-(0[1-9]|1[0-2])\";\n /**\n * yyyy-MM-dd 时间格式校验\n */\n String START_END_TIME_RULE_Y_M_D = \"((\\\\d{2}(([02468][048])|([13579][26]))[\\\\-\\\\s]?((((0?[13578])|(1[02]))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])))))|(\\\\d{2}(([02468][1235679])|([13579][01345789]))[\\\\-\\\\s]?((((0?[13578])|(1[02]))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\\\-\\\\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))\";\n /**\n * yyyy-MM-dd hh:mm:ss\n */\n String START_END_TIME_RULE_Y_M_D_H_M_S = \"^\\\\d{4}[-]([0][1-9]|(1[0-2]))[-]([1-9]|([012]\\\\d)|(3[01]))([ \\\\t\\\\n\\\\x0B\\\\f\\\\r])(([0-1]{1}[0-9]{1})|([2]{1}[0-4]{1}))([:])(([0-5]{1}[0-9]{1}|[6]{1}[0]{1}))([:])((([0-5]{1}[0-9]{1}|[6]{1}[0]{1})))$\";\n /**\n * 名称格式校验\n */\n String NAME_RULE = \"[^\\\\\\\\<>%'\\\"]{0,10}\";\n /**\n * 不含有特殊字符格式校验\n */\n String SPECIAL_WORD_RULE = \"[^\\\\\\\\<>%'\\\"]{1,50}\";\n /**\n * 不含有特殊字符格式校验\n */\n String SPECIAL_WORD_RULE_TWENTY = \"[^\\\\\\\\<>%'\\\"]{1,19}\";\n /**\n * 标题校验\n */\n String TITLE_RULE = \"[^\\\\\\\\<>%'\\\"]{1,60}\";\n /**\n * 用户昵称格式\n */\n String USERNAME_RULE = \"[^\\\\\\\\<>%'\\\"]{1,15}$\";\n /**\n * 时间的格式\n */\n String TIME_FORMAT_Y_M_D = \"yyyy-MM-dd\";\n /**\n * 时间的格式yyyy-MM-dd HH:MM:SS 12时制\n */\n String TIME_FARMAT_Y_M_D_H_M_S = \"yyyy-MM-dd hh:mm:ss\";\n /**\n * 24时制\n */\n String TIME_FARMAT_YYYY_MM_DD_HH_MM_SS_24 = \"yyyy-MM-dd HH:mm:ss\";\n\n /**\n * 1-50汉字格式校验\n */\n String CHINA_WORD = \"[^\\\\\\\\<>%'\\\"]{1,50}\";\n /**\n * 1-5汉字的格式检验\n */\n String CHINESE_RULE = \"^[\\\\u4e00-\\\\u9fa5 ]{1,5}$\";\n\n int FIVE_THOUSAND = 500;\n\n}", "public boolean experired() {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear = parts[1];\n\t\tint oY = Integer.parseInt(originalYear);\n\t\t\n\t\tif(oY < year) {\n\t\t\treturn true;\n\t\t}\n\t\tif(oY == year && oM < month) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void setHireDate(Date hireDate) {\n this.hireDate = hireDate;\n }", "private boolean validityChecker(TextField employeeId) {\n\t\tString empid = employeeId.getValue();\n\t\tint length = empid.length();\n\t\tif (empid.matches(\".*[A-Za-z].*\") || length < minLength || length> maxLength)\n\t\t\treturn false;\n\t\tif(!isNew){\n\t\tif (EmployeeDAO.getEmployee(empid) == null)\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public Employee(int emp_no, Date birth_date, String first_name, String last_name, String gender, Date hire_date) {\n this.emp_no = emp_no;\n this.birth_date = birth_date;\n this.first_name = first_name;\n this.last_name = last_name;\n this.gender = gender.equals(\"M\")?Gender.M:Gender.F;\n this.hire_date = hire_date;\n }", "abstract void birthDateValidity();", "public static String verifyEmpNum(Scanner input, String tempNumber){\n \n //String used for regex verification of Employee number\n String theRegex = \"[0-9][0-9][0-9][-][A-Ma-m]\";\n \n //While tempNumber does not match theRegex\n while(!tempNumber.matches(theRegex)){\n System.out.print(\"The Employee Number you entered was invalid.\\nThe Employee Number must match XXX-L including the dash \"\n + \"where X is a digit and L is a letter A-M: \");\n tempNumber = input.nextLine();\n }\n return tempNumber;\n }", "private boolean checkValidDate(String inputDate) {\n SimpleDateFormat date = new SimpleDateFormat(\"ddMMyy\");\n date.setLenient(false);\n try {\n date.parse(inputDate);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "@Test\n public void testconvertDateYearsLongueurPasValide() {\n FieldVerifier projet = new FieldVerifier();\n boolean longueurInvalideTest = projet.isValidDate(\"01/05/102\");\n assertEquals(false, longueurInvalideTest);\n }", "public static void isValidCreditCardExpirationDate(String userInput) {\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM/yy\");\n\t\ttry {\n\t\t\t// Try to parse a YearMonth from the input, then check to make sure it is not in\n\t\t\t// the past.\n\t\t\tif (YearMonth.parse(userInput, formatter).isBefore(YearMonth.now())) {\n\t\t\t\tthrow new IllegalArgumentException(\"Expiration date must be in the future! Please try again:\");\n\t\t\t}\n\t\t} catch (DateTimeException dte) {\n\t\t\tthrow new IllegalArgumentException(\"Expiration date format must be mm/yy. Please try again:\");\n\t\t}\n\n\t}", "@Test\n @Disabled\n public void testValidateFecha() {\n assertTrue(RegExprMain.validateFecha(\"10/06/2022\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2011\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2015\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2016\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2021\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/1999\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2007\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2000\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2002\"));\n assertFalse(RegExprMain.validateFecha(\"38/06/2009\"));\n assertFalse(RegExprMain.validateFecha(\"10/20/2010\"));\n \n \n\n }", "public String verifyDateFormat(String object, String data) {\n\t\tlogger.debug(\"verifying the date format\");\n\t\ttry {\n\t\t\tString date_text = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getText();\n\t\t\tString date[] = date_text.split(\"/\");\n\t\t\tBoolean flag = false;\n\n\t\t\tint month = Integer.parseInt(date[0]);\n\t\t\tint day = Integer.parseInt(date[1]);\n\t\t\tint year = Integer.parseInt(date[2]);\n\n\t\t\tfor (int i = 0; i < date.length; i++) {\n\t\t\t\tif (month <= 12 && day <= 31 && year > 2000) {\n\t\t\t\t\tflag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (flag) {\n\n\t\t\t\treturn Constants.KEYWORD_PASS + \"--date is in correct format\";\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\treturn Constants.KEYWORD_FAIL + \"--date is not in correct format\";\n\t\t\t}\n\n\t\t} \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n\t\t}\n\t}", "public void validate_the_Date_of_Birth_of_Security_in_Customer_Tab(String DateofBirth)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll(\"M_Header\", \"Security\").replaceAll(\"M_Category\", \"Date of Birth\").replaceAll(\"M_InnerText\", DateofBirth), \"Date of Birth - \"+DateofBirth, false);\n\t}", "boolean validateEmployeeId(String employeeId);", "public static boolean isValidDOB(String userInput) {\n \n return Pattern.matches(Constants.DATE_VALIDATION, userInput);\n }", "public Date getHire_date() {\n return hire_date;\n }", "public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public static boolean isValidDate(String test) {\n if (test.matches(VALIDATION_REGEX)) {\n try {\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n LocalDate date = LocalDate.parse(test, format);\n if (date.format(format).equals(test)) {\n return true;\n }\n return false;\n } catch (DateTimeParseException e) {\n return false;\n }\n }\n return false;\n }", "public static void addEmployee(Scanner input, ArrayList<Employee> newEmployee){\n Employee newEmp = new Employee();\n String empNumber, empHireDate;\n System.out.print(\"Please enter the employee's first and last name: \");\n newEmp.setName(input.nextLine());\n System.out.print(\"Please enter the new employee's Employee Number.\\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: \");\n empNumber = input.nextLine();\n newEmp.setNumber(verifyEmpNum(input, empNumber));\n System.out.print(\"Please enter the new employee's hire date.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1,J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n empHireDate = input.nextLine();\n newEmp.setDate(verifyHireDate(input, empHireDate));\n \n newEmployee.add(newEmp);\n \n }", "public boolean isValidDate(String valD) { //Checks if date is in proper format\n String valDWithoutSpace = valD.replaceAll(\"\\\\s\", \"\");\n return valDWithoutSpace.length() == 8;\n}", "private static boolean validDate(String date) {\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tDate tryDate = null; \n\t\t\ttry\n\t\t{\n\t\t\ttryDate = formatter.parse(date);\n\t\t}catch (ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t\tformatDate(tryDate);\n\t\treturn true; \n\t\t\n\t}", "public static boolean checkDatePattern(String date) {\n return date.matches(\"^[0-9]{4}-[0-9]{2}-[0-9]{2}$\");\n }", "private boolean checkNgay(String ngaySD){\n String pattern=\"\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}\";\n return ngaySD.matches(pattern);\n }", "public String verifyDateInput(String object, String data) {\n logger.debug(\"verifying Date in Input\");\n try {\n Boolean flag = false;\n String actual = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getAttribute(\"value\");\n String expected = data.replace(\",\", \"/\");\n logger.debug(actual);\n logger.debug(expected);\n if (actual.trim().equals(expected.trim()))\n flag = true;\n else\n flag = false;\n\n if (flag)\n return Constants.KEYWORD_PASS + \"--Date Inputs Matched\";\n else\n return Constants.KEYWORD_FAIL + \"--Date Input is not matched\";\n\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception ex) {\n \t\n return Constants.KEYWORD_FAIL + ex.getLocalizedMessage();\n }\n }", "public Date checkDate() {\n // Create new sdf with format is dd/MM/yyyy\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false); // Check special day\n Date date = null; // Create date\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n try {\n String dateStr = checkEmpty(\"DOB\"); // Call method to check input of dob\n date = sdf.parse(dateStr); // Convert string to date\n return date;\n\n } catch (ParseException e) {\n // Print error if date is invalid\n System.out.println(\"Date is invalid !\");\n System.out.print(\"Enter again (dd/MM/yyyy): \");\n }\n }\n return date; // Return date\n }", "public static boolean validateDateDDMMYYYY(String inputParam,\n\t\t\tString regexExp) {\n\t\tPattern pattern = Pattern.compile(regexExp);\n\n\t\tMatcher matcher = pattern.matcher(inputParam);\n\n\t\tif (matcher.matches()) {\n\n\t\t\tmatcher.reset();\n\n\t\t\tif (matcher.find()) {\n\n\t\t\t\tString day = matcher.group(1);\n\t\t\t\tString month = matcher.group(2);\n\t\t\t\tint year = Integer.parseInt(matcher.group(3));\n\n\t\t\t\tif (\"31\".equals(day)\n\t\t\t\t\t\t&& (\"4\".equals(month) || \"6\".equals(month)\n\t\t\t\t\t\t\t\t|| \"9\".equals(month) || \"11\".equals(month)\n\t\t\t\t\t\t\t\t|| \"04\".equals(month) || \"06\".equals(month) || \"09\"\n\t\t\t\t\t\t\t\t.equals(month))) {\n\t\t\t\t\treturn false; // only 1,3,5,7,8,10,12 has 31 days\n\t\t\t\t} else if (\"2\".equals(month) || \"02\".equals(month)) {\n\t\t\t\t\t// leap year\n\t\t\t\t\tif (year % 4 == 0) {\n\t\t\t\t\t\tif (\"30\".equals(day) || \"31\".equals(day)) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (\"29\".equals(day) || \"30\".equals(day)\n\t\t\t\t\t\t\t\t|| \"31\".equals(day)) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean checkDeadline(String d)\n\t{\n\t\t//yyyy/mm/dd\n\t\treturn Pattern.matches(\"[0-9][0-9][0-9][0-9]/[0-1][0-9]/[0-3][0-9]\", d);\n\t}", "public Date getHireDate() {\n return hireDate;\n }", "public Date getHireDate() {\n return hireDate;\n }", "private boolean isDOBValid(String DOB) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n dateFormat.setLenient(false);\n try {\n dateFormat.parse(DOB.trim());\n } catch (ParseException pe) {\n return false;\n }\n return true;\n }", "public static boolean isValidDate(String date, String[] openMarketTime) {\n if (date.length() != 14) {\n return false;\n }\n\n String hhmm = date.substring(8, 10) + \":\" + date.substring(10, 12); // yyyyMMddHHmmss -> hh:mm\n return Util.isBetweenTimes(openMarketTime, hhmm);\n }", "boolean checkNumberFormat (String birthDate){\r\n for (int i = 0; i < birthDate.length(); i++) {\r\n if ((birthDate.charAt(i) < 48 && birthDate.charAt(i) != 32 \r\n && birthDate.charAt(i) != 10) \r\n || birthDate.charAt(i) > 57){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static void validateDate(String date) throws CustomExceptionHandler {\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd.MM.yyyy\");\n formatter.setLenient(false);\n Date parsedDate;\n\n //Throw Exception if string is blank\n if(date.isBlank()||date.isEmpty())\n throw new CustomExceptionHandler(\"Date NOT Specified\");\n\n\n\n //Throw exception if date is not formatted correctly\n try\n {\n parsedDate = formatter.parse(date);\n\n }\n catch (Exception e)\n {\n throw new CustomExceptionHandler(\"The date format is not correct\");\n }\n }", "@Test\n public void LastName_WhenValid_ShouldReturnTrue() {\n RegexTest valid = new RegexTest();\n boolean result = valid.lastName(\"JAMKHANDI\");\n Assert.assertEquals(true,result);\n }", "private boolean employeeDobValid(EmployeeDto newEmpDto) {\n\t\treturn (newEmpDto.getDob().compareTo(Calendar.getInstance()) < 0) ? true : false ;\n\t}", "public Employee(String firstName, String lastName, Date birthDate, \n Date hireDate, Address Address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.birthDate = birthDate;\n this.hireDate = hireDate;\n this.Address = Address;\n }", "private static boolean validateAge(String age) {\n return true;\n\n }", "@Override\n public boolean isInputDateValid(String dateStr) {\n DateFormat sdf = new SimpleDateFormat(this.date);\n sdf.setLenient(false);\n try {\n sdf.parse(dateStr);\n } catch (ParseException e) {\n return false;\n }\n return true;\n }", "public static void birthdateValidation(Date birthdate) throws Exception {\n if (birthdate.after(new Date())) {\n throw new Exception(\"Your birth date cannot be in the future\");\n }\n }", "public boolean DateValidation(String date, String startTime, String currentTime) {\n\n boolean state = false;\n\n //String x = dateChooser.getDate().toString();\n String Hyear = date.substring(24, 28); // get user input date\n String Hmonth = monthToCompare(date);\n String Hdate = date.substring(8, 10);\n String stHr = startTime.substring(0, 2);\n String stMin = startTime.substring(3, 5);\n\n int userYr, userMnth, userDate, userHour, userMin = 0;\n userYr = Integer.parseInt(Hyear); // conversion of user entered year to int\n userMnth = Integer.parseInt(Hmonth);\n userDate = Integer.parseInt(Hdate);\n userHour = Integer.parseInt(stHr);\n userMin = Integer.parseInt(stMin);\n\n String yyr = currentTime.substring(0, 4); // get currrent year from the string f\n String mmnth = currentTime.substring(5, 7);\n String ddt = currentTime.substring(8, 10); // get current date from the string f\n String hours = currentTime.substring(11, 13);\n String mins = currentTime.substring(14, 16);\n\n int yr, mnth, dt, shr, smin = 0;\n yr = Integer.parseInt(yyr); // convert current year from string to int\n mnth = Integer.parseInt(mmnth);\n dt = Integer.parseInt(ddt);\n shr = Integer.parseInt(hours);\n smin = Integer.parseInt(mins);\n\n if ((userYr == yr) || (userYr > yr)) { // if user entered year is the current year or future year, ok \n if (((userYr == yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth < mnth))) {\n if (((userYr == yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate >= dt))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour == shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour > shr) && (userMin < smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))) {\n state = true;\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid day!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid month!\");\n state = false;\n }\n } else {// if the user entered year is already passed\n JOptionPane.showMessageDialog(null, \"Invalid year\");\n state = false;\n }\n return state;\n }", "public static void main(String[] args) {\r\n\t\tDate today = new Date(2, 26, 2012);\r\n\t\tSystem.out.println(\"Input date is \" + today);\r\n\t\tSystem.out.println(\"Printing the next 10 days after \" + today);\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\ttoday = today.next();\r\n\t\t\tSystem.out.println(today);\r\n\t\t}\r\n\t\tDate expiry = new Date(2011);\r\n\t\tSystem.out.println(\"testing year 2011 as input:\" + expiry);\r\n\r\n\t\tDate todayDate = new Date();\r\n\t\tSystem.out.println(\"todays date: \" + todayDate);\r\n\t\tSystem.out.println(\"current month:\" + todayDate.month);\r\n\r\n\t\t// testing isValidMonth function\r\n\t\tDate start = new Date(\"08-01-2010\");\r\n\t\tDate end1 = new Date(\"09-01-2010\");\r\n\t\tboolean param1 = start.isValidMonth(4, end1);\r\n\t\tSystem.out.println(\"is April valid between: \" + start + \" and \" + end1\r\n\t\t\t\t+ \": \" + param1);\r\n\t\tDate end2 = new Date(\"02-01-2011\");\r\n\t\tboolean param2 = start.isValidMonth(2, end2);\r\n\t\tSystem.out.println(\"is feb valid between: \" + start + \" and \" + end2\r\n\t\t\t\t+ \": \" + param2);\r\n\t\tboolean param3 = start.isValidMonth(8, start);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tparam3 = start.isValidMonth(4, start);\r\n\t\tSystem.out.println(\"is april valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tDate end3 = new Date(\"02-01-2010\");\r\n\t\tboolean param4 = start.isValidMonth(8, end3);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + end3\r\n\t\t\t\t+ \": \" + param4);\r\n\t\t \r\n\t\tDate lease = new Date(\"1-01-2012\");\r\n\t\tDate expiry1 = new Date(\"12-31-2012\");\r\n\r\n\t\t// testing daysBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING daysBetween method\\n------------------------------\");\r\n\t\tint count = lease.daysBetween(expiry);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry + \"is: \"\r\n\t\t\t\t+ count);\r\n count = new Date(\"1-01-2011\").daysBetween(new Date(\"12-31-2011\"));\r\n\t\tSystem.out.println(\"Days between [1-01-2011] and [12-31-2011]\" + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tcount = lease.daysBetween(expiry1);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry1 + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tDate testDate = new Date(\"12-31-2013\");\r\n\t\tcount = lease.daysBetween(testDate);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [12-31-2013] \"\r\n\t\t\t\t+ \"is: \" + count);\r\n\t\tcount = lease.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n count = lease.daysBetween(new Date(\"1-10-2012\"));\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [1-10-2012\" + \"is: \"\r\n\t\t\t\t+ count);\r\n \r\n\t\tcount = testDate.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + testDate + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n\r\n\t\t// testin isBefore\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING isBefore method\\n------------------------------\");\r\n\t\tboolean isBefore = today.isBefore(today.next());\r\n\t\tSystem.out.println(today + \"is before \" + today.next() + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.next().isBefore(today);\r\n\t\tSystem.out.println(today.next() + \"is before \" + today + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.isBefore(today);\r\n\t\tSystem.out.println(today + \"is before \" + today + \": \" + isBefore);\r\n isBefore = today.isBefore(today.addMonths(12));\r\n\t\tSystem.out.println(today + \"is before \" + today.addMonths(12) + \": \" + isBefore);\r\n\r\n\t\t// testing addMonths\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING addMonths method\\n------------------------------\");\r\n\t\ttoday = new Date(\"1-31-2011\");\r\n\t\tDate newDate = today.addMonths(1);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 1 months to \" + today + \" gives: \" + newDate);\r\n\t\tnewDate = today.addMonths(13);\r\n\t\tSystem.out.println(\"adding 13 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\ttoday = new Date(\"3-31-2010\");\r\n\t\tnewDate = today.addMonths(15);\r\n\t\tSystem.out.println(\"adding 15 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(23);\r\n\t\tSystem.out.println(\"adding 23 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(49);\r\n\t\tSystem.out.println(\"adding 49 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(0);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 0 months to \" + today + \" gives: \" + newDate);\r\n\t\t\r\n\t\t// testing monthsBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING monthsBetween method\\n------------------------------\");\r\n\t\tint monthDiff = today.monthsBetween(today.addMonths(1));\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + today.addMonths(1)\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\tmonthDiff = today.next().monthsBetween(today);\r\n\t\tSystem.out.println(\"months between \" + today.next() + \" and \" + today\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date(\"09-30-2011\");\r\n\t\tDate endDate = new Date(\"2-29-2012\");\r\n\t\tmonthDiff = today.monthsBetween(endDate);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate + \": \"\r\n\t\t\t\t+ monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate1 = new Date(\"12-04-2011\");\r\n\t\tmonthDiff = today.monthsBetween(endDate1);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate1\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate2 = new Date(\"12-22-2010\");\r\n\t\tmonthDiff = today.monthsBetween(endDate2);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate2\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\t\r\n\t\t// following should generate exception as date is invalid!\r\n\t\t// today = new Date(13, 13, 2010);\r\n\r\n\t\t// expiry = new Date(\"2-29-2009\");\r\n // newDate = today.addMonths(-11);\r\n\r\n\t}", "String isOoseChangeDateAllowed(Record inputRecord);", "private void checkDate(String strDate, LocalDate localDate) {\n if (Integer.parseInt(strDate.substring(0, 4)) != localDate.getYear()\n || Integer.parseInt(strDate.substring(5, 7)) != localDate.getMonthValue()\n || Integer.parseInt(strDate.substring(8,10)) != localDate.getDayOfMonth()) {\n throw new IllegalArgumentException(\"Illegal date: date dose not exist.\");\n }\n }", "public boolean verifyReturnDate(Date date){\n\t\tLocale en = new Locale(\"en\");\n\t\tString rDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn returnDate.getText().equals(rDate);\n\t}", "protected void validateLastName(){\n Boolean lastName = Pattern.matches(\"[A-Z][a-z]{2,}\",getLastName());\n System.out.println(nameResult(lastName));\n }", "private static void checkDate(String date) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n if (!date.matches(RegexPattern.DATE_PATTERN)) {\n throw new DaoException(ExceptionMessage.getMessage(ExceptionMessage.DATE_PATTERN_ERROR));\n }\n try {\n Date formatDate = simpleDateFormat.parse(date);\n if (formatDate.getTime() + TIME_IN_DAY < new Date().getTime()) {\n throw new DaoException(\"Date must be in Future\");\n }\n } catch (ParseException ex) {\n throw new DaoException(ex.getMessage());\n }\n }", "boolean isValidForDate(LocalDate date);", "public static boolean isValidIssueExpireDate(String issueDate, String expirationDate) throws ParseException {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date issue = format.parse(issueDate);\n Date expiration = format.parse(expirationDate);\n if (issue.after(expiration)) {\n return false;\n }\n if (issue.getTime() > new Date().getTime()) {\n return false;\n }\n return true;\n }", "private boolean employeeNameValid(EmployeeDto newEmpDto) {\n\t\tint nameLen = (newEmpDto.getFirstName().length() + newEmpDto.getLastName().length());\n\t\treturn (nameLen >= 2) ? true : false;\n\t}", "private static boolean isDate(String token) {\n return dateRegex.matcher(token).matches();\n }", "public static boolean isValidBirthdate (String test) {\n try {\n LocalDate.parse(test);\n return isValidBirthdate(LocalDate.parse(test));\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "public void setDateExamine (java.util.Date dateExamine) {\n\t\tthis.dateExamine = dateExamine;\n\t}", "public boolean checkBirthDay(java.util.Date birthdate) {\r\n\r\n Calendar calendar = GregorianCalendar.getInstance();\r\n calendar.setTime(new java.util.Date());\r\n int currentYear = calendar.get(Calendar.YEAR);\r\n\r\n calendar.setTime(birthdate);\r\n int birthYear = calendar.get(Calendar.YEAR);\r\n if ((currentYear - birthYear) < 18) {\r\n return false;\r\n }\r\n return true;\r\n\r\n }", "@Test public void Mdy_at_y_slash()\t\t\t\t\t\t\t\t{tst_date_(\"1/2/70\"\t\t\t\t\t, \"1970-01-02\");}", "public static Boolean isEntry(LocalDate date, Date dateEmployee) {\n return date.equals(convertDate(dateEmployee));\n }", "private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }", "public static boolean checkExpiryDate(int year,int month,int day) {\n \tCalendar expirydate=Calendar.getInstance();\n\t\texpirydate.set(year, month-1, day);\n\t\tcal=Calendar.getInstance();\n\t\t\n\t\tif(cal.getTime().compareTo(expirydate.getTime())>0) {\n\t\t\tlogErrPrint(\"checkExpiryDate(): Has expired...\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected void validateFirstName(){\n Boolean firstName = Pattern.matches(\"[A-Z][a-z]{2,}\",getFirstName());\n System.out.println(nameResult(firstName));\n }", "public boolean validateDate(String date) {\n\n\t\tDate enteredDate = null;\n\t\ttry {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tenteredDate = format.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDate currentDate = new Date();\n\t\treturn enteredDate.before(currentDate);\n\t}", "@Test\n public void test10020ATS001ValidationofDatefieldsinPayHistory() throws Exception {\n driver.get(\"http://Clarity\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).sendKeys(\"02.08.09\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).sendKeys(\"password\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_LoginButton\")).click();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_btnLogin\")).click();\n //driver.findElement(By.linkText(\"Select\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*How much is my pension[\\\\s\\\\S][\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"02/10/20\");\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*Start date is later than end date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"25/07/2017\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).sendKeys(\"02/10/2\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"02/10/2\");\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*End Date is not recognized as a valid date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).sendKeys(\"21221\\\"\\\"\\\"\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"wewe\\\"\\\"\\\"\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n //try {\n //assertTrue(driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDateTypeValidator\")).getText().matches(\"^exact:[\\\\s\\\\S]*$\"));\n //} catch (Error e) {\n // verificationErrors.append(e.toString());\n //}\n // ERROR: Caught exception [Error: locator strategy either id or name must be specified explicitly.]\n driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_LoginStatus\")).click();\n }", "private boolean isValidDate(String date){\n Date inputDate = new Date(date);\n boolean isValid = false;\n\n if (inputDate.isValid()) {\n isValid = true;\n }else{\n generalTextArea.appendText(date + \" is not a valid date!\\n\");\n }\n return isValid;\n }", "@Test\n public void test0() {\n chkDate(\"> '2013'\", true);\n\n }", "public EmployeeRecord(String newLastName, String newFirstName, char newType)\n {\n if ((Character.toLowerCase(newType) != 'h' && Character.toLowerCase(newType) != 'p' && Character.toLowerCase(newType) != 's') || !newLastName.matches(\"[a-zA-Z]+\") || !newFirstName.matches(\"[a-zA-Z]+\")) return;\n else \n {\n this.lastName = newLastName;\n this.firstName = newFirstName;\n this.type = newType;\n this.grossPay = this.taxAmt = this.netPay = 0.00;\n }\n }", "public static void main(String[] args) {\n\t\t SimpleDateFormat sdf = new SimpleDateFormat (\"dd-MM-yyyy\");\n\t\t\t\t sdf.setLenient(false);\n\t\t\t\t String input = \"13-02-2018\"; \n\t\t\t\t System.out.println(\"Given Date is:\"+ input); \n\t\t\t\t Date dt;\n\t\t\t\t try {\n\t\t\t\t dt = sdf.parse(input); \n\t\t\t\t System.out.println(dt); \n\t\t\t\t } catch (ParseException e) { \n\t\t\t\t System.out.println(\"Invalid date entered :\" + input); \n\t\t\t\t }\n\n\t}", "public java.util.Date getDateExamine () {\n\t\treturn dateExamine;\n\t}", "public Boolean validarFecha(LocalDate fechaIngresada);", "@Test\n public void isValidFormat() {\n assertFalse(Deadline.isValidFormat(VALID_DAY_1));\n\n // Deadline with day and month dd/mm -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Deadline with all 3 fields dd/mm/yyyy -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_2018.toString()));\n }", "public boolean checkData(String data){\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t dateFormat.setLenient(false);\n\t try {\n\t\t\tdateFormat.parse(data.trim());\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t return true;\n\t}", "@Test\n public void testGetDateCreated() throws ParseException {\n System.out.println(\"getDateCreated Test (Passing value)\");\n Date expResult = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(\"1955-11-05 06:00:00\");\n Date result = user.getDateCreated();\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertEquals(expResult, result);\n }", "@Test\n public void testGetLastLoginDate() throws ParseException {\n System.out.println(\"getLastLoginDate Test (Passing value)\");\n Date expResult = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(\"1955-11-05 06:00:00\");\n Date result = user.getLastLoginDate();\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertEquals(expResult, result);\n }", "private boolean isValidDate(String date) {\n\t Date d = null;\n\t try {\n\t\t\td = format.parse(date);\t\t\t\n\t\t\treturn d != null;\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isOneDateMatch(final ExpressionJpa expr) {\n boolean isOneMatch = false;\n\n // 033 (R)\n for (MarcDataField field033 :\n this.marcRecord.getDataFields(\"033\")) {\n // |a (R)\n for (String date033 : field033.getValueList('a')) {\n // expression.dates\n for (int idx = 0;\n idx < expr.getDates().size();\n idx++) {\n // normalize for comparison\n if (expr.getDates().get(idx).getText().equals(\n DateNormalizer.normalizeExpr033Date(date033))) {\n isOneMatch = true;\n }\n }\n }\n }\n\n return isOneMatch;\n }", "@Test\n public void isValidDeadline() {\n assertFalse(Deadline.isValidDeadline(INVALID_0_JAN_2018.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_0_2018.toString()));\n\n // Valid deadline -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_2018.toString()));\n\n // Valid deadline for february -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_28TH_FEB_2018.toString()));\n\n // Invalid deadline for february in common year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_29TH_FEB_2018.toString()));\n\n // Valid deadline for february during leap year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_29TH_FEB_2020.toString()));\n\n // Invalid deadline for february during leap year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_30TH_FEB_2020.toString()));\n\n // Valid deadline for months with 30 days -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_30TH_APR_2018.toString()));\n\n // Invalid deadline for months with 30 days -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_31ST_APR_2018.toString()));\n\n // Valid deadline for months with 31 days -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_31ST_JAN_2018.toString()));\n\n // Invalid deadline for months with 31 days -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_32ND_JAN_2018.toString()));\n\n // Invalid month -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_0_2018.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_13_2018.toString()));\n\n // Valid month -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_APR_2018.toString()));\n\n // Valid year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_9999.toString()));\n\n // Invalid year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_JAN_2017.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_JAN_10000.toString()));\n\n // Valid date without year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Invalid date without year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_32ND_JAN_WITHOUT_YEAR.toString()));\n }", "ExpressionValidationOutcome expressionIsValid(String expression, ParseType parseType);", "@Test\n public void testIsValidateDate() {\n System.out.println(\"isValidateDate\");\n String dateString = \"2016-03-23T10:25:01Z\";\n boolean expResult = true;\n boolean result = DateUtil.isValidateDate(dateString);\n assertEquals(expResult, result);\n }", "@Test\n public void testSsnvalidatorFalse(){\n assertFalse(register.ssnValidator(\"70091212345\")); // a date can`t start with 70\n }", "boolean validDate(String dateString){\r\n\t\t\r\n\t\tif(DateUtil.parse(dateString) != null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean isValidDate(String input) {\n try {\n LocalDate.parse(input);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "abstract void lastNameValidity();", "public String getDateOfHire() {\n return formatter.format(this.dateOfHire);\n }", "public boolean validateDate(Date Date) {\n if (Date.after(startSemester) && Date.before(endSemester))\n if (Date.after(endHoliday) || Date.before(beginHoliday))\n return true;\n return false;\n\n }", "boolean hasExpireDate();", "public boolean isDate (int year, int doy)\n {\n return ((year >= FIRST_YEAR)\n && (1 <= doy && doy <= getLengthOfYear (year)));\n }", "boolean hasDate();", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "private static boolean isValid(int m, int d, int y) {\n\t\t\tif (m < 1 || m > 12) return false;\n\t\t\tif (d < 1 || d > DAYS[m]) return false;\n\t\t\tif (m == 2 && d == 29 && !isLeapYear(y)) return false;\n\t\t\treturn true;\n\t\t}", "@Test\n public void testV4HeaderDateValidationSuccess()\n throws MalformedResourceException {\n LocalDate now = LocalDate.now();\n String dateStr = DATE_FORMATTER.format(now);\n testRequestWithSpecificDate(dateStr);\n\n // Case 2: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.plus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n\n // Case 3: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.minus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n }", "public Fulltime(String employeeName, String deptCode, Date hireDate,\n\t\t\tdouble salary) {\n\t\tsuper(employeeName, deptCode, hireDate);\n\t\tthis.annualSalary = salary;\n\t}" ]
[ "0.6202614", "0.61723644", "0.5986102", "0.56997204", "0.56264096", "0.561302", "0.5599538", "0.55962735", "0.5586683", "0.55819184", "0.55729264", "0.55325973", "0.5520638", "0.54899687", "0.5461377", "0.54415303", "0.54254186", "0.54181844", "0.5416667", "0.5413999", "0.53919786", "0.53685325", "0.536801", "0.534257", "0.53358036", "0.5333206", "0.5308623", "0.52993757", "0.52976924", "0.5285009", "0.5276258", "0.5259838", "0.5248358", "0.5242073", "0.523492", "0.52331823", "0.5224848", "0.52248067", "0.52233213", "0.5222713", "0.5222713", "0.52189416", "0.5212989", "0.5203845", "0.5201887", "0.51917285", "0.5187288", "0.5182183", "0.5174804", "0.5168578", "0.5163321", "0.51600575", "0.51583517", "0.51561075", "0.513139", "0.5118702", "0.5109713", "0.509175", "0.50875735", "0.5069606", "0.5052821", "0.5048235", "0.5046632", "0.50411713", "0.5040208", "0.50129783", "0.5008709", "0.5008039", "0.5005896", "0.50058424", "0.5000071", "0.49833873", "0.49756494", "0.49662834", "0.49589157", "0.49473488", "0.49433088", "0.49160495", "0.49014315", "0.48984346", "0.4898036", "0.48950627", "0.4894279", "0.4893288", "0.48897", "0.48846874", "0.4874545", "0.48570982", "0.48553973", "0.4847998", "0.48407397", "0.48351628", "0.4833881", "0.48313427", "0.48210135", "0.48148283", "0.48088914", "0.48055413", "0.48051694", "0.48047292" ]
0.6884239
0
/////////////////////////////////////////////////////////////////////////////////////////////// This method allows the user to add a Shift Supervisor ///////////////////////////////////////////////////////////////////////////////////////////////
public static void addShiftSupervisor(Scanner input, ArrayList<Employee> newEmployee){ ShiftSupervisor newSupervisor = new ShiftSupervisor(); String empNumber, empHireDate, salary, bonus; System.out.print("Please enter the employee's first and last name: "); newSupervisor.setName(input.nextLine()); System.out.print("Please enter the new employee's Employee Number.\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: "); empNumber = input.nextLine(); newSupervisor.setNumber(verifyEmpNum(input, empNumber)); System.out.print("Please enter the new employee's hire date.\nMake sure the date you enter matches IX/JX/KXXX including the slashes" + "\nwhere I is a 0 or 1, J is 0-3, K is a 1 or 2, and X is a digit 0-9: "); empHireDate = input.nextLine(); newSupervisor.setDate(verifyHireDate(input, empHireDate)); System.out.print("Please enter the salary the new Supervisor will be paid as a double: "); salary = input.nextLine(); newSupervisor.setSalary(UtilityMethods.verifyDouble(input, salary)); System.out.print("Please enter the bonus the new Supervisor could be paid as a double: "); bonus = input.nextLine(); newSupervisor.setBonus(UtilityMethods.verifyDouble(input, bonus)); newEmployee.add(newSupervisor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addShift(Shift shift){shifts_dao.addShift(shift);}", "void addShift(Shift shiftToAdd);", "public synchronized void agregarSupervisor(Supervisor supervisor) {\n System.out.println(\"SE LIBERO SUPERVISOR\");\n \n getSupervisores().add(supervisor); \n }", "@Override\n public String toString(){\n\treturn toStringBase() + \"Salaried Supervisor\";\n }", "public void setSupervisor(Supervisor supervisor){\r\n this.supervisor = supervisor;\r\n }", "@Override\n public void register(Remote registerObj, String name) throws RemoteException\n {\n synchronized (supervisors)\n {\n Logger.getGlobal().log(Level.INFO, String.format(\"Register Supervisor: %s.\", name));\n addSupervisor(name);\n registry.rebind(name, registerObj);\n }\n }", "public void addPassengerShip(Scanner sc){\n PassengerShip pShip = new PassengerShip(sc, portMap, shipMap, dockMap);\n if(hashMap.containsKey(pShip.getParent())){\n if(hashMap.get(pShip.getParent()).getIndex()>=10000 && hashMap.get(pShip.getParent()).getIndex() < 20000){\n currentPort = (SeaPort) hashMap.get(pShip.getParent());\n currentPort.setShips(pShip);\n currentPort.setAllShips(pShip);\n \n }\n else{\n currentDock = (Dock) hashMap.get(pShip.getParent());\n currentDock.addShip(pShip);\n currentPort = (SeaPort) hashMap.get(currentDock.getParent());\n currentPort.setAllShips(pShip);\n }\n \n \n }\n hashMap.put(pShip.getIndex(), pShip);\n shipMap.put(pShip.getIndex(), pShip);\n everything.add(pShip);\n }", "@Override\n public void addStudent(Student student) {}", "public void addSchool(School school) {\n\n\t}", "public void editShiftAction() {\n\t\tArrayList<SpatialObjectModel> locations = (ArrayList<SpatialObjectModel>) getSpatialObjects();\n\t\tthis.animalShiftEditPanel = new AnimalShiftEditPanel(animalsTab, locations);\n\t\tUtils.changePanelContent(this.animalsTab, this.animalShiftEditPanel);\n\t}", "public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Swissprot addNewSwissprot()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Swissprot target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Swissprot)get_store().add_element_user(SWISSPROT$14);\r\n return target;\r\n }\r\n }", "void addEventPowerUp(DefaultPowerUp powerUp);", "private void shift(int shift)\n\t{\n\t\tthis.shiftAmount = shift;\n\t}", "Observable<Shift> createNewShift(Shift shift);", "public void add (EmpEachShift empEachShift) {\n\t\tempEachShiftList.add(empEachShift);\n\t}", "public ShopsRecord() {\n super(Shops.SHOPS);\n }", "public void registerStaffToShop(Staff staff) throws RosterException {\n\t\t_staffList.registerStaff(staff); //register into the staff list.\n\t}", "public void createCalShift() {\n\t\tString yes = \"Y\";\n\t\tString effectiveToDate = getProperty(\"EFFECTIVE_TO_DATE\");\n\t\tString defShiftStartTime = getProperty(\"SHIFT_START_TIME\");\n\t\tString defShiftEndTime = getProperty(\"SHIFT_END_TIME\");\n\t\tYFCElement effectivePeriodsEle = docCreateCalenderInXml.getDocumentElement().getChildElement(XMLLiterals.EFFECTIVE_PERIODS);\n\t\tYFCElement effectivePeriodEle = effectivePeriodsEle.getChildElement(XMLLiterals.EFFECTIVE_PERIOD);\n\t\teffectivePeriodEle.setAttribute(XMLLiterals.EFFECTIVE_TO_DATE, effectiveToDate);\n\t\tYFCElement shiftEle=effectivePeriodEle.createChild(XMLLiterals.SHIFTS).createChild(XMLLiterals.SHIFT);\n\t\tshiftEle.setAttribute(XMLLiterals.WEDNESDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.TUESDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.THURSDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SUNDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SATURDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.MONDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.FRIDAY_VALID,yes);\n\t\tshiftEle.setAttribute(XMLLiterals.SHIFT_START_TIME,defShiftStartTime);\n\t\tshiftEle.setAttribute(XMLLiterals.SHIFT_END_TIME,defShiftEndTime);\n\t}", "void addUses(Equipment newUses);", "public boolean isShift ()\n {\n return isShift;\n }", "public void setSShiftID(String sShiftID) {\n this.sShiftID = sShiftID;\n }", "@Override\n public String getName() {\n return \"sspawn:spawn\";\n }", "@Test\n public void supervisorCanOpenACashRegister() {\n this.supervisor.canOpen();\n }", "public void addStudent(Student student) {\n\t\t\r\n\t}", "private void createRoutine() {\n String s = (String) JOptionPane.showInputDialog(\n this,\n \"Name the new routine:\",\n \"Create new\",\n JOptionPane.PLAIN_MESSAGE,\n null, null, null);\n\n if (s != null) {\n Routine r = new Routine(s);\n collection.add(r);\n listModel.addElement(r);\n list.setSelectedValue(r, true);\n new WorkoutsFrame(r);\n }\n }", "public void register()\n {\n menu.registerDisplay();\n chooseRole();\n }", "public void saveShift(View view) {\n\t\tboolean hasErrors = new ShiftValidator(this).validate();\n\t\tif (!hasErrors) {\n\t\t\tEditText titleEditText = (EditText)findViewById(R.id.addShiftNameEditText);\n\t\t\tString newTitle = titleEditText.getText().toString();\n\t\t\t\n\t\t\tEditText startTimeEditText = (EditText)findViewById(R.id.startTimeEditText);\n\t\t\tString newStartTime = startTimeEditText.getText().toString();\n\t\t\n\t\t\tEditText endTimeEditText = (EditText)findViewById(R.id.endTimeEditText);\n\t\t\tString newEndTime = endTimeEditText.getText().toString();\n\t\t\t\n\t\t\tShift shift = getShift(title);\n\t\t\tshift.setTitle(newTitle);\n\t\t\tshift.setStarttime(newStartTime);\n\t\t\tshift.setEndtime(newEndTime);\n\n\t\t\t// Save the changes\n\t\t\ttry {\n\t\t\t\tgetHelper().getShiftDao().update(shift);\n\t\t\t\tLog.i(EditShiftActivity.class.getName(), \"saved shift\");\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinish();\n\t\t}\n\t}", "public void setShift(boolean shift) {\n mShift = shift;\n }", "private void addStudents() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"u\");\n String className = SchoolClassHandler.getTimetable().getClassName(new Integer(sdf.format(new Date())), new Date());\n\n addButton(className);\n }", "public void moveShiftLeft();", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "public ShiftMgrHome() {\n initComponents();\n }", "public void startSystem() \r\n {\r\n Scanner sc = new Scanner(System.in);\r\n while(true)\r\n {\r\n displayMenu();\r\n if(sc.hasNextInt())\r\n {\r\n int choice = sc.nextInt();//choice stores the value of input entered by the user. \r\n switch(choice)\r\n {\r\n case 1: pSlot.addSlot();\r\n break;\r\n case 2: pSlot.deleteSlot();\r\n break;\r\n case 3: pSlot.listSlots();\r\n break;\r\n case 4: pSlot.parkCar();\r\n break;\r\n case 5: pSlot.findCar();\r\n break;\r\n case 6: pSlot.removeCar();\r\n break;\r\n case 7: exitApplication();\r\n break; \r\n default: System.out.println(\"\\n Please choose the input from 1-7\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"\\n Please choose the input from 1-7\");\r\n sc.next();\r\n }\r\n }\r\n \r\n }", "@Override\r\n\tpublic int addReservationDetails(ReservationDetails reservationDetails) {\n\t\treturn 0;\r\n\t}", "public static void addAshPanel(int sid,long serial, int instanceNumber) {\n // search the ashPanel vector to see if this panel already exists\n boolean exists = false;\n SessionASHPanel tmpASHP = null;\n for (int i=0; i < ashV.size(); i++) {\n tmpASHP = (SessionASHPanel)ashV.elementAt(i);\n if (tmpASHP.sid == sid) {\n exists = true;\n break;\n }\n }\n\n if (exists) {\n // switch focus\n SessionPanel.sessionTP.setSelectedComponent(tmpASHP);\n }\n else {\n JTabbedPane sessionTP = SessionPanel.sessionTP;\n \n // create the ashPanel\n SessionASHPanel ashPanel = new SessionASHPanel(sid,serial,instanceNumber);\n \n // add the ashPanel to the consoleTP\n String label = \"ASH \" + instanceNumber + \" | \" + sid;\n try {\n sessionTP.add(ashPanel, label);\n } catch (Exception e) {\n \n }\n\n // add ashPanel to ashV Vector\n boolean ok = ashV.add(ashPanel);\n\n // make this ashPanel the focused tab\n sessionTP.setSelectedComponent(ashPanel);\n try {\n sessionTP.setTabComponentAt(numSessionPanelsAdded - numSessionPanelsRemoved,new ButtonTabComponent(sessionTP));\n } catch (Exception e) {\n \n }\n numSessionPanelsAdded++;\n }\n }", "@Override\r\n\tpublic void add(Enter enter) {\n\t\tsession.insert(\"enter.insert\", enter);\r\n\t}", "public void addNewSystemUser()\n {\n\n DietTreatmentSystemUserBO newUser = new DietTreatmentSystemUserBO();\n // default user\n newUser.setSystemUser(SystemUserController.getInstance()\n .getCurrentUser());\n // default function\n newUser.setFunction(SystemUserFunctionBO.TREATING_ASSISTANT);\n\n _dietTreatment.addSystemUsers(newUser);\n }", "private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}", "public void addStudent(Student InStudent)\n\t{\n\t\tclassRoll.add (InStudent);\n\t\tthis.saveNeed = true;\n\n\t\t\n\t}", "public static void addNewServices() {\n displayAddNewServicesMenu();\n processAddnewServicesMenu();\n }", "@Override\r\n\tpublic void adminSelectAdd() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "public void add_stage() {\r\n\t\tif (this.controller.getSelectedCatagory() == null)\r\n\t\t\treturn;\r\n\t\tString name = JOptionPane.showInputDialog(this,\r\n\t \t\"Choose a name for the stage\",\r\n\t \"Name Stage\", 1);\r\n\t if (name == null) {\r\n\t \treturn;\r\n\t }\r\n\t // If the stage cannot be added, inform the user\r\n\t\tif (!controller.addStage(name)) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A Stage with that name already exists\");\r\n\t\t}\r\n\t}", "public void add(Student s)\r\n {\r\n students.add(s);\r\n }", "public void actionPerformed(ActionEvent e){\n \t\t \tstudentsController.addStudent();\n \t\t }", "public void addWasher() {\r\n\t\tdo {\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tdouble price = getDouble(\"Enter washer price: \");\r\n\t\t\tWasher washer = store.addWasher(brand, model, price);\r\n\t\t\tif (washer != null) {\r\n\t\t\t\tSystem.out.println(washer);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Would you like to add another washer?\"));\r\n\t}", "public String getSShiftID() {\n return sShiftID;\n }", "@Override\n\tpublic void insertSeatNum(seatStructure ss) {\n\t\tuserdao.insertSeatNum(ss);\n\t}", "public void processAddStation() {\n AppTextEnterDialogSingleton dialog = AppTextEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Station\", \"Enter Name of the Metro Station:\");\n \n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_STATION_MODE);\n }", "@Override\r\n\tpublic void add() {\n\t\tif(alreadyAdded()) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Member is already added\");\r\n\t\t}else {\r\n\t\t\t\r\n\t\t\t\ttry(Connection connection= db.getConnection();) {\r\n\t \t\r\n\t\t\t\t\r\n\t\t\t\tString addString=\"INSERT INTO members VALUES(?,?,?,?)\";\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(addString);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t\t\tpreparedStatement.setString(2, super.getNameString());\r\n\t\t\t\tpreparedStatement.setString(3, super.getSurnameString());\r\n\t\t\t\tpreparedStatement.setString(4, super.getEmailString());\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t}", "public void addScAction() {\n\t\taddPairItem(labels.get(Labels.PROP_INFO_SC), true);\n\t}", "public int addShelter(Shelter shelter) {\n\t\tint count = 0;\n\t\ttry {\n\t\t\taddShelterStmt.setString(1, shelter.getName());\n\t\t\taddShelterStmt.setInt(2, shelter.getNrTel());\n\t\t\taddShelterStmt.setString(3, shelter.getAdvertisingLabel());\n\n\t\t\tcount = addShelterStmt.executeUpdate();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn count;\n\t}", "public void addInstruction(){\n\n }", "@Override\n\tpublic void addWorkout(int id) {\n\n\t}", "public void addSAction() {\n\t\taddPairItem(labels.get(Labels.PROP_INFO_S), false);\n\t}", "public static void doShift(ZombieTrapGame game, String shift){\r\n switch(shift){ \r\n case \"u\": game.shiftUp(); break; // case \"u\": \r\n case \"d\": game.shiftDown(); break; // case \"d\": \r\n case \"l\": game.shiftLeft(); break; // case \"l\": \r\n case \"r\": game.shiftRight(); break; // case \"r\": \r\n default: throw new RuntimeException(\"Something is terribly wrong.\");\r\n }\r\n }", "public static void addProductionWorker(Scanner input, ArrayList<Employee> newEmployee){\n \n ProductionWorker newWorker = new ProductionWorker();\n String empNumber, empHireDate, shift, payRate;\n int shiftNum;\n \n System.out.print(\"Please enter the employee's first and last name: \");\n newWorker.setName(input.nextLine());\n System.out.print(\"Please enter the new employee's Employee Number.\\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: \");\n empNumber = input.nextLine();\n newWorker.setNumber(verifyEmpNum(input, empNumber));\n System.out.print(\"Please enter the new employee's hire date.\\nMake sure the date you enter matches IX/XX/XXXX including the slashes\\nwhere I is a 0 or 1 and X is a digit 0-9: \");\n empHireDate = input.nextLine();\n newWorker.setDate(verifyHireDate(input, empHireDate));\n System.out.print(\"Please enter the Production workers shift, 1 for day shift and 2 for night shift: \");\n shift = input.nextLine();\n shiftNum = UtilityMethods.verifyInt(input, shift);\n newWorker.setShift(verifyShift(input, shiftNum));\n System.out.print(\"Please enter the pay rate of the Production worker as a double: \");\n payRate = input.nextLine();\n newWorker.setPayRate(UtilityMethods.verifyDouble(input, payRate));\n \n newEmployee.add(newWorker);\n }", "public void addHardwareDeviceToRent()\n {\n try\n {\n String Description=rentDescriptiontxt.getText();\n String Manufacturer=rentManufacturertxt.getText();\n \n int downPayment=Integer.parseInt(downPaymenttxt.getText());\n int dailyRate=Integer.parseInt(dailyRatetxt.getText());\n \n HardwareDeviceToRent HardwareToRent=new HardwareDeviceToRent( Description, Manufacturer, downPayment, dailyRate);\n equipment.add(HardwareToRent);\n \n JOptionPane.showMessageDialog(frame, \"Successfully added GeneratorToRent\",\"Information\", JOptionPane.INFORMATION_MESSAGE);\n }\n catch(NumberFormatException aE)\n {\n JOptionPane.showMessageDialog(frame, aE.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void addHardwareDeviceToSell()\n {\n try\n {\n String Description=sellDescriptiontxt.getText();\n String Manufacturer=sellManufacturertxt.getText();\n \n int price=Integer.parseInt(pricetxt.getText());\n int tax=Integer.parseInt(taxtxt.getText());\n HardwareDeviceToSell HardwareToSell=new HardwareDeviceToSell(Description, Manufacturer, price,tax);\n equipment.add(HardwareToSell);\n \n JOptionPane.showMessageDialog(frame, \"Sucessfully added GeneratorToSell\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\n }\n catch(NumberFormatException aE)\n {\n JOptionPane.showMessageDialog(frame, aE.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void addStudent(User user) {\n\t\t\r\n\t}", "public void addShield(Shield sh) {\n setShield(getShield() + sh.getStrength());\n setShieldSlots(getShieldSlots() - 1);\n }", "@Override\n\tprotected void addItineraryToCalendar() {\n\t\tstartActivity(generateHotelCalendarIntent(false));\n\t\tstartActivity(generateHotelCalendarIntent(true));\n\n\t\tOmnitureTracking.trackHotelConfirmationAddToCalendar();\n\t}", "void add(User user) throws AccessControlException;", "public void setShiftId(Integer shiftId) {\n this.shiftId = shiftId;\n }", "public abstract int addInhibitor(Guid process, Guid signal)\r\n throws SignalModeConflictException;", "public void addStudent(Student student);", "public abstract AbstractSctlThreadEntry addThread();", "public CWE insertSubstanceManufacturerName(int rep) throws HL7Exception { \r\n return (CWE) super.insertRepetition(17, rep);\r\n }", "void add(Control control);", "private void onAddClicked() {\r\n\t\t\r\n\t\tString givenName = Window.showStudentDialog();\r\n\t\t\r\n\t\tif (givenName != null) {\r\n\t\t\t\r\n\t\t\tif(!chart.addStudentName(givenName)) {\r\n\t\t\t\tWindow.msg(\"There are no seats available.\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t}\r\n\t\t\r\n\t}", "public Supervisor(double salario) {\r\n super(salario);\r\n }", "public static void studentExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit to the Main Menu\");\n\t\tSystem.out.println(\"Enter 'ADD' followed by: studentID, studentName, major, class, and GPA to add a student record\");\n\t\tSystem.out.println(\"Enter 'REMOVE' followed by a studentID to remove a student\");\n\t\tSystem.out.println(\"Enter 'FIND' followed by a studentID or studentName to pull up student's information\");\n\t\tSystem.out.println(\"Enter 'ENROLL' followed by a studentID, deptID and course_Number to enroll a student\");\n\t\tSystem.out.println(\"Enter 'WITHDRAW' followed by a studentID, deptID and course_Number to withdraw a student in a course\");\n\t\tSystem.out.println(\"Enter 'SCHEDULE' followed by a studentID or studentName to list all courses student is enrolled in.\");\n\t}", "@Put\n public void addMember(){\n try {\n controller.addMember(getQueryValue(\"id\"), getQueryValue(\"name\"));\n }catch(MenuException e){\n System.out.println(e.getMessage());\n }\n }", "@Override\n\tpublic void addedSwitch(IOFSwitch sw) \n\t{\n\n\t}", "com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints addNewScans();", "protected void addStudentClass(ActionEvent ae) {\n\t\tAddStudentClassFrm sca = new AddStudentClassFrm();\n\t\tsca.setVisible(true);\n\t\tdesktopPane.add(sca);\n\t}", "public void addSuperRegionAccs(com.hps.july.persistence.SuperRegionAcc arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().addSuperRegionAccs(arg0);\n }", "@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tInputDialog id1=new InputDialog(sShell,\"新增员工\",\"输入员工信息,用空格分开,例如:001 Manager Tommy f 312039\",\"\",null);\r\n\t\t\t\tif(id1.open()==0){\r\n\t\t\t\t\tinput=id1.getValue();\r\n\t\t\t\t\tif(input.equals(\"\")) return;\r\n\t\t\t\t}\r\n\t\t\t\telse return;\r\n\t\t\t\tString str[]=input.split(\" \");\r\n\t\t\t\tCommonADO ado=CommonADO.getCommonADO();\r\n\t\t\t\tString sql=\"insert into Staff values('\"+str[0]+\"','\"+str[1]+\"','\"+str[2]+\"','\"+str[3]+\"','\"+str[4]+\"')\";\r\n\t\t\t\tado.executeUpdate(sql);\r\n\t\t\t\tshowStaff();\r\n\t\t\t}", "public Guest addGuest() {\n\t\tString name;\n\t\tkeyboard.nextLine();\n\t\tSystem.out.println(\"What is the name of the new guest?\");\n\t\tname = keyboard.nextLine();\n\t\tname = name.substring(0, 1).toUpperCase() + name.substring(1);\t\t//makes first letter of name capital\n\n\t\tSystem.out.println(\"Is \"+name+\" ......\\n\\t1. A Lecturer\\n\\t Or\\n\\t2. A Student\");\n\t\tuserChoice = keyboard.nextInt();\t\t\t\t\t\t\t\t\t//choose if guest is Lecturer/Student\n\n\t\tswitch(userChoice) {\n\t\tcase 1:\t//is Lecturer\n\t\t\tguest = new Lecturer(name);\t\t\t\t\t\t\t\t\t\t//if Lecturer, create new guest of type lecturer\n\t\t\tbreak;\n\n\t\tcase 2:\t// is Student\n\t\t\tguest = new Student(name);\t\t\t\t\t\t\t\t\t\t//if Student, create new guest of type student\n\t\t\tbreak;\n\t\t}\t\t\n\t\treturn guest;\t\t\t\t\t\t\t\t\t\t\t\t\t\t//returns a guest\n\t}", "private void register()\n {\n ScControlRegistry r = getRegistry();\n\n _key = r.getNextKey();\n r.register(this);\n }", "public SuperS()\r\n {\r\n setStep(0,0,0,0,0);\r\n }", "private void addNewMember(Event x) {\r\n \r\n \r\n \r\n }", "boolean add( Software s );", "public interface ElevatorControl {\n /**\n *Задать место назначения\n * @param destination этаж\n */\n void addNewDestination(Integer destination);\n}", "@Override\n\tpublic void gstudentAdd(Gstudent gstudent) {\n\t\tGstudentMapper.gstudentAdd(gstudent);\n\t}", "public void moveShiftRight();", "public void addSpaceStation()\n\t{\n\t\t//if a space station is already spawned, one will not be added\n\t\tif (gameObj[5].size() == 0)\n\t\t{\n\t\t\tgameObj[5].add(new SpaceStation());\n\t\t\tSystem.out.println(\"SpaceStation added\");\n\t\t}else{\n\t\t\tSystem.out.println(\"A space station is already spawned\");\n\t\t}\n\t}", "@Override\r\n\tpublic SysPrivilege addSysPrivilege(SysPrivilege sysPrivilege) {\n\t\treturn (SysPrivilege)sysPrivilegeDao.save(sysPrivilege);\r\n\t}", "@Override\r\n\tpublic void addMe() {\n\t\t\r\n\t}", "public void addAdmin(Admin admin);", "protected void addButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\t\t\n\t\t// Get selected supply type\n\t\tSupplyType supply = null;\n\t\ttry {\n\t\t\tsupply = ftms.getSupplyType(selectedSupply);\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Get given quantity\n\t\tdouble qty = -1;\n\t\ttry {\n\t\t\tqty = Double.parseDouble(qtyTextField.getText());\n\t\t} catch (NumberFormatException | NullPointerException e) {\n\t\t}\n\t\t\n\t\t// Add supply to item\n\t\ttry {\n\t\t\tmc.addIngredientToItem(item, supply, qty);\n\t\t} catch (InvalidInputException | DuplicateTypeException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}", "public Slayer() \r\n {\r\n super(1, \"Slayer\");\r\n setSpecialPower(\"killDragon\");\r\n }", "public void addCargoShip(Scanner sc){\n CargoShip cShip = new CargoShip(sc, portMap, shipMap, dockMap);\n if(hashMap.containsKey(cShip.getParent())){\n if(hashMap.get(cShip.getParent()).getIndex()>=10000 && hashMap.get(cShip.getParent()).getIndex() < 20000){\n currentPort = (SeaPort) hashMap.get(cShip.getParent());\n currentPort.setShips(cShip);\n currentPort.setAllShips(cShip);\n }\n else{\n currentDock = (Dock) hashMap.get(cShip.getParent());\n currentDock.addShip(cShip);\n currentPort = (SeaPort) hashMap.get(currentDock.getParent());\n currentPort.setAllShips(cShip);\n }\n \n \n }\n hashMap.put(cShip.getIndex(), cShip);\n shipMap.put(cShip.getIndex(), cShip);\n everything.add(cShip);\n }", "public boolean addItem(Scanner scanner){\n super.addItem(scanner);\n System.out.print(\"Enter the name of the farm supplier: \");\n farmName = scanner.next();\n scanner.nextLine();\n return true;\n }", "public void enterShipment(){\n Shipment shipment = new Shipment();\n shipment.setShipmentID(data.numberOfShipment());\n shipment.setReceiver(new Customer(data.numberOfCustomer(), GetChoiceFromUser.getStringFromUser(\"Enter Receiver FirstName: \"),\n GetChoiceFromUser.getStringFromUser(\"Enter Receiver Last Name: \"),data.getBranchEmployee(ID).getBranchID()));\n shipment.setSender(new Customer(data.numberOfCustomer(), GetChoiceFromUser.getStringFromUser(\"Enter Sender First Name: \"),\n GetChoiceFromUser.getStringFromUser(\"Enter Sender Last Name: \"),data.getBranchEmployee(ID).getBranchID()));\n shipment.setCurrentStatus(getStatus());\n shipment.setTrackingNumber(getUniqueTrackingNumber());\n shipment.setBranchID(data.getBranchEmployee(ID).getBranchID());\n data.getBranch(shipment.getBranchID()).addShipment(shipment);\n data.addShipment(shipment,shipment.getReceiver());\n System.out.printf(\"Your Shipment has added with tracking Number %d !\\n\",shipment.getTrackingNumber());\n }", "public final void addWorkout(String name, Config.Equipment equipment, Config.Muscle primaryMuscle,\r\n\t\t\tConfig.Muscle secondaryMuscle, String desc, String reminders) {\r\n\t\tworkoutList.add(new Workout(name, equipment, primaryMuscle, secondaryMuscle, desc, reminders));\r\n\t}", "public void addshortcut() {\n Intent addshort = new Intent(getApplicationContext(), ShortMaster.class);\n addshort.setAction(Intent.ACTION_MAIN);\n Intent addIntent = new Intent();\n addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, R.string.app_name);\n addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, addshort);\n addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, Intent.ShortcutIconResource.fromContext(getApplicationContext(), R.mipmap.ic_launcher));\n getApplicationContext().sendBroadcast(addIntent);\n }", "@RequestMapping(value=\"/shiftInfo\", method=RequestMethod.POST)\n public String shiftInfo(\n \t\t@RequestParam(value=\"title\", required=false) String title,\n \t\t@RequestParam(value=\"shiftType\", required=false) String shiftType,\n \t\t@RequestParam(value=\"shiftDate\", required=false) String shiftDate, \n \t\t@RequestParam(value=\"beginTime\", required=false) String beginTime, \n \t\t@RequestParam(value=\"endTime\", required=false) String endTime,\n \t\t@RequestParam(value=\"howMany\", required=false) String howMany,\n \t\tModelMap model) throws ParseException{\n \n if(validationService.dateNotEmpty(shiftDate) && validationService.beginTimeNotEmpty(beginTime) && validationService.endTimeNotEmpty(endTime) && validationService.timeCorrect(beginTime,endTime) && validationService.shiftTitleNotEmpty(title) && validationService.howManyNotEmpty(howMany)) {\n \t\tShift s = new Shift(title, shiftType, shiftDate, beginTime, endTime, howMany);\n \t\tmodel.addAttribute(\"shift\", s);\n \t\tvalidationService.addShift(s);\n \t\treturn \"/shiftConfirmation\";\n }\n else {\n \tString errorMessage = validationService.getShiftErrorMessage(shiftDate,beginTime,endTime,title,howMany);\n\t\tmodel.addAttribute(\"errorMessage\", errorMessage); \n\t\treturn \"/shiftRegistration\";\n }\n }", "public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}", "private void addNewSpinnerItem7() \n\t{\n\t\tmscust=ecust.getText().toString();\n\t\tCharSequence textHolder = \"\" +mscust; \n\t\tadapterpaw.insert(textHolder, 0);\n\t\tspaw.setAdapter(adapterpaw);\n\t}", "public void addItem(Menu subMenu, Class<?> appClass) {\n\t\tMenuItem item = new MenuItem(Messages.getMessages().getString(\"app_\"+appClass.getSimpleName()));\n\t\tsubMenu.getItems().add(item);\n\t\titem.setOnAction(mainApp.new AppStarter(appClass, subMenu.getText()));\n\t}" ]
[ "0.6837905", "0.6803317", "0.57557565", "0.5392938", "0.5260494", "0.52342457", "0.5201901", "0.5171225", "0.51416063", "0.5139526", "0.51343995", "0.51273704", "0.5118356", "0.50821245", "0.50781196", "0.5074088", "0.5048834", "0.50486684", "0.5041351", "0.50035864", "0.4996975", "0.4981092", "0.49807274", "0.49804908", "0.49754524", "0.49702653", "0.4955085", "0.4946637", "0.49401328", "0.4933236", "0.49233302", "0.49039054", "0.49014142", "0.48933432", "0.489299", "0.48836148", "0.48822227", "0.48699048", "0.4867439", "0.48660317", "0.4863122", "0.486242", "0.48508298", "0.48436216", "0.48433706", "0.48329282", "0.48293284", "0.48204407", "0.48201647", "0.4817451", "0.48174375", "0.4817403", "0.48104006", "0.48026168", "0.48013854", "0.4799491", "0.4797357", "0.47922575", "0.478342", "0.4777814", "0.47697136", "0.47693488", "0.47578365", "0.4755347", "0.4743354", "0.47420794", "0.4740181", "0.473472", "0.47278106", "0.4719564", "0.47115505", "0.470927", "0.47071317", "0.47052047", "0.47044003", "0.47034758", "0.47033387", "0.47029907", "0.46962053", "0.46940294", "0.46881703", "0.4687095", "0.4686056", "0.46822083", "0.46788", "0.46782812", "0.46696448", "0.46679005", "0.4667113", "0.4664325", "0.46641174", "0.46631134", "0.4656762", "0.46563977", "0.4651451", "0.4646561", "0.46433553", "0.46407127", "0.46401033", "0.46337783" ]
0.65466136
2
///////////////////////////////////////////////////////////////////////////// This method allows the user to add a production worker /////////////////////////////////////////////////////////////////////////////
public static void addProductionWorker(Scanner input, ArrayList<Employee> newEmployee){ ProductionWorker newWorker = new ProductionWorker(); String empNumber, empHireDate, shift, payRate; int shiftNum; System.out.print("Please enter the employee's first and last name: "); newWorker.setName(input.nextLine()); System.out.print("Please enter the new employee's Employee Number.\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: "); empNumber = input.nextLine(); newWorker.setNumber(verifyEmpNum(input, empNumber)); System.out.print("Please enter the new employee's hire date.\nMake sure the date you enter matches IX/XX/XXXX including the slashes\nwhere I is a 0 or 1 and X is a digit 0-9: "); empHireDate = input.nextLine(); newWorker.setDate(verifyHireDate(input, empHireDate)); System.out.print("Please enter the Production workers shift, 1 for day shift and 2 for night shift: "); shift = input.nextLine(); shiftNum = UtilityMethods.verifyInt(input, shift); newWorker.setShift(verifyShift(input, shiftNum)); System.out.print("Please enter the pay rate of the Production worker as a double: "); payRate = input.nextLine(); newWorker.setPayRate(UtilityMethods.verifyDouble(input, payRate)); newEmployee.add(newWorker); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProductionWorker(String name, String number, String date) \r\n\t{\r\n\t\tsuper(name, number, date);\r\n\t\ttitle = \"Production Worker\";\r\n\t}", "public static void AddWorker(ExecutorService worker)\n\t{\n\t\t//TODO something reasonable\n\t}", "public void createWorker(Worker worker){\n }", "protected void addWorker(IWorkerConfiguration workerCfg) {\n if (!workerCfg.activate())\n return;\n \n log.debug(\"Adding new worker to the pool\");\n \n try {\n Class taskClass = Class.forName(workerCfg.getWorkerTask());\n\n int numWorker = (workerCfg.getConcurrentExecutions() == 0 ? 1 : workerCfg.getConcurrentExecutions());\n for(int i = 0; i < numWorker; i++) {\n RunningWorkerInstance rWorker = new RunningWorkerInstance();\n rWorker.workerName = workerCfg.getName();\n rWorker.task = (IWorkerTask) taskClass.newInstance();\n rWorker.task.setName(workerCfg.getName() + \":\" + i);\n rWorker.task.setParameters(workerCfg.getTaskParameters());\n\n Interval interval = workerCfg.getInterval();\n if (interval != null) \n rWorker.runningWorker = pool.scheduleWithFixedDelay(rWorker.task, 0, interval.getLength(), interval.getUnit());\n else\n rWorker.runningWorker = pool.submit(rWorker.task);\n\n workers.add(rWorker);\n \n log.debug(\"Added new worker instance [\" + workerCfg.getName() + \"] to the pool\");\n }\n } catch (ClassNotFoundException cnfe) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be found\");\n } catch (InstantiationException ie) { \n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be created\");\n } catch (IllegalAccessException iae) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be created\");\n } catch (ClassCastException cce) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] is not a WorkerTask object\");\n } catch (TaskConfigurationException tce) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task could not be configured correctly [\" + tce.getMessage() + \"]\");\n }\n }", "void allocateDeamonWorker(Work work);", "public void addWorker(int workerType, int workerWage) {\n Connection dbConnection = DatabaseConnection.getDbConnection();\n try {\n preparedStatement = dbConnection.prepareStatement(ADD_WORKER);\n preparedStatement.setInt(1, workerType);\n preparedStatement.setInt(2, workerWage);\n preparedStatement.execute();\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n } finally {\n try {\n preparedStatement.close();\n dbConnection.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }\n }", "public WorkerVO addWorker(Message message) {\n\t\tSystem.out.println(\"Worker is added\");\n\t\treturn null;\n\t}", "public int addJob(String cust, int copies, int pages, \n boolean isColour, boolean isHQuality, boolean isDSided);", "CreateWorkerResult createWorker(CreateWorkerRequest createWorkerRequest);", "void allocateWorker(Work work);", "public static void main (String[] args)\n {\n ProductionWorker pw =\n new ProductionWorker(\"John Smith\", \"123-A\", \"11-15-2012\",\n ProductionWorker.DAY_SHIFT, 26.50);\n\n //Display the data\n System.out.println(\"Here's the first production worker. \");\n System.out.println(pw);\n\n //Create another ProductionWorker object and use the\n //set methods\n ProductionWorker pw2 = new ProductionWorker();\n pw2.setName(\"Jane Doe\");\n pw2.setEmployeeNumber(\"123-E\");\n pw2.setHireDate(\"12-12-2012\");\n pw2.setShift(ProductionWorker.NIGHT_SHIFT);\n pw2.setPayRate(28.50);\n\n //Display Data\n System.out.println(\"\\nHere's the next production worker. \");\n System.out.println(pw2);\n }", "void secondarySetTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;", "public void setWorkername(java.lang.String newWorkername) {\n\tworkername = newWorkername;\n}", "public void addWork(Work w) {\r\n\t\twork.add(w);\t\t\r\n\t}", "void addProduces(Computer newProduces);", "void forkWorker(Map<String,Object> workerConfig);", "Value worker(String main, String address);", "public void addJob(Process p) \n {\n \tif(p != null)\n \t\tprocesses.add(p);\n }", "void setTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;", "public void addWerker(Worker w)\n {\n if(aantalWerkers < 5)\n {\n boolean geplaatst = false; // plaatselijke parameter die zegt of de workers al gepaatst is of niet\n for(int i=0; i<5;i++)\n {\n \n if( geplaatst == false)\n {\n if(workers[i] == null)\n {\n workers[i] = w;\n geplaatst = true;\n }\n }\n }\n aantalWerkers++;\n w.setInStructure(true);\n }\n }", "public void addToPumpQueue(Driver driver){\n\t\tqueue.add(driver);\n\t\tdriver.assignPump(pumpNumber);\n\t\tunitSpaceAvailable -= driver.getVehicle().getUnitSize();\n\t}", "public Worker(String name, Date dob, Boss currentBoss){\n super(name, dob);\n this.workerBoss = currentBoss;\n this.workerBoss.add_worker(this);\n }", "public String getWorker() {\r\n\t\treturn \"\" + name + \" : \" + execAction();\t\t\t // a worker operates\r\n\t}", "public String get_worker() {\n return this._worker;\n }", "public CoreWorker getCoreWorker(String worker){ \n\t if(worker == null){ \n\t return null; \n\t } \n\t if(worker.equalsIgnoreCase(\"Controller\")) { \n\t return new WHControllerDAO(); \n\t } \n\t else if(worker.equalsIgnoreCase(\"Action\")){ \n\t return new ActionDAO(); \n\t } \n\t return null; \n\t }", "@Override\n\tvoid startProduction() {\n\t\tSystem.out.println(\"Begin sweat shirt producton\");\n\n\t}", "private void promptAddWorker()\n {\n JPanel workerSettingsPanel = new JPanel(new BorderLayout());\n JPanel colourPanel = new JPanel(new GridLayout(1, 2));\n JButton colourButton = new JButton(\"Colour\");\n JLabel colourLabel = new JLabel(\"Choose colour\");\n JLabel nameLabel = new JLabel(\"Enter workers name\");\n colourButton.setBackground(Color.WHITE);\n colourButton.setIcon(new ImageIcon(colorIconImage));\n \n //Show colour chooser dialog\n //Allow user to pick crawlers output colour\n colourButton.addActionListener((ActionEvent e) -> \n {\n Color c = JColorChooser.showDialog(null, \"Choose worker colour\", Color.WHITE);\n colourButton.setBackground(c);\n });\n \n colourPanel.add(colourLabel);\n colourPanel.add(colourButton);\n workerSettingsPanel.add(colourPanel, BorderLayout.NORTH);\n workerSettingsPanel.add(nameLabel);\n \n String name = JOptionPane.showInputDialog(null, workerSettingsPanel, \"Add worker\", JOptionPane.INFORMATION_MESSAGE);\n Color workerColour = colourButton.getBackground();\n \n if(name == null) return;\n \n if(name.equals(\"\"))\n JOptionPane.showMessageDialog(null, \"Invalid worker settings\");\n else if(spider.getWorker(name) != null)\n JOptionPane.showMessageDialog(null, \"Worker names must be unique\");\n else\n {\n spider.addWorker(name, workerColour);\n workerModel.addElement(name);\n }\n }", "public void addJob(Process p) {\n // Remove the next lines to start your implementation\n //throw new UnsupportedOperationException();\n \n // Fill in this method\n /*------------------------------------------------------------*/\n\n //Add the job to the unfinished process queue if it is not already present\n if(!this.unfinishedJobs.contains(p)){\n this.unfinishedJobs.add(p);\n }\n /*------------------------------------------------------------*/\n }", "public abstract String getWorkerName();", "worker(long workOn) {\n this.workOn = workOn;\n }", "@RequestMapping(value = \"/addWorker\", method = RequestMethod.POST)\n public int addWorker(@RequestParam(value = \"fio\", required = true) String fio,\n @RequestParam(value = \"occupation\", required = true) String occupation,\n @RequestParam(value = \"department\", required = true) String department) {\n Worker worker = new Worker(fio, occupation, department);\n LOG.info(\"Insert: {}\", worker);\n return workerService.save(worker);\n }", "@Override\n\tpublic void add(DatabaseHandler db) throws Exception {\n\t\tdb.addWork(this);\n\t\t\n\t}", "public void parseAddWorkerToSite(String inpt, int passedCommunicationTurn) {\n\t\tString[] numbers = inpt.split(\" \");\n\t\t\n\t\tint buildingNo = new Integer(numbers[numbers.length-1]).intValue();\n\t\tint[] unitNos = new int[numbers.length-1];\n\t\t\n\t\tfor(int n = 0; n < numbers.length-1; n++){\n\t\t\t\n\t\t\tunitNos[n] = new Integer(numbers[n]).intValue();\n\t\t}\n\t\t\n\t\tMethodParameter parameters = new MethodParameter();\n\t\tparameters.setAddWorkerToSite(buildingNo,unitNos);\n\t\t\n\t\t\n\t\tif(passedCommunicationTurn != -1){\n\t\t\tcommands.add(MethodCallup.ADDWORKERTOSITE, parameters, communicationTurn);\n\t\t}else{\n\t\t\tcommands.add(MethodCallup.ADDWORKERTOSITE, parameters, passedCommunicationTurn);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tWorker w1=new DailyWorker(\"SUs\",40);\r\n\t\tWorker w2=new DailyWorker(\"Giri\",50);\r\n\t\tWorker w3=new SalariedWorker(\"Chap\",20);\r\n\t\tWorker w4=new SalariedWorker(\"kip\",30);\r\n\t\tSystem.out.println(w1.Pay(4));\r\n\t\tSystem.out.println(w2.Pay(5));\r\n\t\tSystem.out.println(w3.Pay(20));\r\n\t\tSystem.out.println(w4.Pay(42));\r\n\t}", "public void addWasher() {\r\n\t\tdo {\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tdouble price = getDouble(\"Enter washer price: \");\r\n\t\t\tWasher washer = store.addWasher(brand, model, price);\r\n\t\t\tif (washer != null) {\r\n\t\t\t\tSystem.out.println(washer);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Would you like to add another washer?\"));\r\n\t}", "void addRequest(DymonPatchRequest pr)\n{\n if (pr == null) return;\n\n System.err.println(\"ADD PATCH REQUEST \" + pr.getModelName());\n\n synchronized (this) {\n if (active_requests.contains(pr)) return;\n if (request_queue.contains(pr)) return;\n\n if (!is_enabled) {\n\t request_queue.offer(pr);\n\t return;\n }\n if (checkConflicts(pr,active_requests)) {\n\t request_queue.offer(pr);\n\t for (DymonPatchRequest ar : active_requests) {\n\t if (pr.getPriority() < ar.getPriority()) removeActive(ar);\n\t }\n\t return;\n }\n\n active_requests.add(pr);\n }\n\n if (instrument(pr,true)) {\n long ivl = pr.getDuration();\n if (ivl != 0) {\n\t RemoveRequest rr = new RemoveRequest(pr);\n\t remove_handlers.put(pr,rr);\n\t synchronized (this) {\n\t if (request_timer == null) request_timer = new Timer(\"DymonPatchTrackTimer\");\n\t request_timer.schedule(rr,ivl);\n\t }\n }\n }\n else {\n removeRequest(pr,false);\n }\n}", "public void addProduction() {\n\n money += money_production;\n money += terraforming_rating;\n\n steel += steel_production;\n\n titanium += titanium_production;\n\n plants += plants_production;\n\n heat += energy;\n heat += heat_production;\n\n energy = energy_production;\n }", "private void startBackgroundWorker() {\n\t\tworker.execute(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (!buildList.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTestsResultQueueEntry testsResultQueueEntry = buildList.get(0);\n\t\t\t\t\t\t\tTestsResult testsResult = pluginServices.getTestsResult(testsResultQueueEntry.jobId, testsResultQueueEntry.buildId);\n\t\t\t\t\t\t\tOctaneResponse response = pushTestsResult(testsResult);\n\t\t\t\t\t\t\tif (response.getStatus() == HttpStatus.SC_ACCEPTED) {\n\t\t\t\t\t\t\t\tlogger.info(\"tests result push SUCCEED\");\n\t\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t\t} else if (response.getStatus() == HttpStatus.SC_SERVICE_UNAVAILABLE) {\n\t\t\t\t\t\t\t\tlogger.info(\"tests result push FAILED, service unavailable; retrying after a breathe...\");\n\t\t\t\t\t\t\t\tbreathe(SERVICE_UNAVAILABLE_BREATHE_INTERVAL);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// case of any other fatal error\n\t\t\t\t\t\t\t\tlogger.error(\"tests result push FAILED, status \" + response.getStatus() + \"; dropping this item from the queue\");\n\t\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tlogger.error(\"tests result push failed; will retry after \" + SERVICE_UNAVAILABLE_BREATHE_INTERVAL + \"ms\", e);\n\t\t\t\t\t\t\tbreathe(SERVICE_UNAVAILABLE_BREATHE_INTERVAL);\n\t\t\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\t\t\tlogger.error(\"tests result push failed; dropping this item from the queue \", t);\n\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreathe(LIST_EMPTY_INTERVAL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "BackgroundWorker (String page, String name, String type, Context context) {this.page=page; this.name=name; this.type=type; this.context=context; flag=2;}", "public void addDependentJob(IJob job);", "@Test\n public void testAddWorkload_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n Workload userType = new Workload();\n\n fixture.addWorkload(userType);\n }", "ExpProtocolApplication createSimpleRunExtraProtocolApplication(ExpRun expRun, String name);", "public WorkerVO inquireWorker(String id) {\n\t\tSystem.out.println(\"Worker is inquired\");\n\t\treturn null;\n\t}", "UpdateWorkerResult updateWorker(UpdateWorkerRequest updateWorkerRequest);", "public void addProduct() {\n Product result;\n String prodName = getToken(\"Enter product name: \");\n double price = getDouble(\"Enter price per unit: $\");\n result = warehouse.addProduct(prodName, price);\n if (result != null) {\n System.out.println(result);\n }\n else {\n System.out.println(\"Product could not be added.\");\n }\n }", "private void doCreateWorkout(ExercisePlan exercisePlan) {\n if (getMobileClientService() == null) {\n Log.w(TAG, \"Service is still not bound\");\n creatingExercisePlanOperationResult(false, \"Not bound to the service\", null);\n return;\n }\n\n try {\n boolean isCreating = getMobileClientService().createWorkout(exercisePlan);\n if (!isCreating) {\n creatingExercisePlanOperationResult(false, \"No Network Connection\", null);\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n creatingExercisePlanOperationResult(false, \"Error sending message\", null);\n }\n }", "public void add(Vector<String> prod) {\n\tproductions.add(prod);\n }", "public void addMainReplicator(Replicator r) {\n\t_replicator = r;\n\t_hasReplicator = true;\n\tr.setPoolData(_poolData);\n\tr.setVersionCache(_versionCache);\n\t\n\t// THE FOLLOWING TWO LINES USED TO BE IN THE CONSTRUCTOR\n\t// THE PROBLEM IS THAT WE CAN'T DO THIS UNTIL WE KNOW ABOUT \n\t// THE REPLICATING CAPABILITIES OF THE PROCESSOR\n\tTaskProcessorHandle tph = new TaskProcessorHandle(this);\n \taddProcessor(tph);\n }", "public ProcessCodeRec addProcessCode(ProcessCodeRec pr, String pg){\n pr = sysBuff.processCodeUpdate(pr, pg);\n return pr;\n }", "private void addPermExcludedWorkerForMicrotask( Key<Microtask> microtaskKey, String excludedWorkerID)\n\t{\n\t\t// retrieve the current permanently excluded workers for the microtask\n\t\tHashSet<String> permExcludedForMicrotask = permanentlyExcludedWorkers.get( Microtask.keyToString(microtaskKey) );\n\n\t\t// if there aren't permanently excluded workers\n\t\tif (permExcludedForMicrotask == null){\n\n\t\t\t// create a new hash set\n\t\t\tpermExcludedForMicrotask = new HashSet<String>();\n\t\t\tpermanentlyExcludedWorkers.put( Microtask.keyToString(microtaskKey) , permExcludedForMicrotask );\n\t\t}\n\n\t\t// add the worker to the permanently excluded workers for this microtask\n\t\tpermExcludedForMicrotask.add(excludedWorkerID);\n\n\t\t// add the worker to the actual excluded\n\t\taddExcludedWorkerForMicrotask( microtaskKey , excludedWorkerID );\n\t}", "void scheduleWorker(HttpServletRequest req, AppEngineJobContext context,\n TaskAttemptID taskAttemptId, int sliceNumber) {\n Preconditions.checkArgument(\n context.getJobID().equals(taskAttemptId.getJobID()),\n \"Worker task must be for this MR job\");\n \n String taskName = (\"worker_\" + taskAttemptId + \"__\" + sliceNumber).replace('_', '-');\n try {\n context.getWorkerQueue().add(\n TaskOptions.Builder.withMethod(TaskOptions.Method.POST)\n .url(getBase(req) + MAPPER_WORKER_PATH)\n .param(AppEngineTaskAttemptContext.TASK_ATTEMPT_ID_PARAMETER_NAME, \n \"\" + taskAttemptId)\n .param(AppEngineJobContext.JOB_ID_PARAMETER_NAME, \"\" + taskAttemptId.getJobID())\n .param(AppEngineJobContext.SLICE_NUMBER_PARAMETER_NAME, \"\" + sliceNumber)\n .taskName(taskName));\n } catch (TaskAlreadyExistsException e) {\n log.warning(\"Worker task \" + taskName + \" already exists.\");\n }\n }", "private void startAppLockWorker() {\n\n OneTimeWorkRequest oneTimeWorkRequest = new OneTimeWorkRequest.Builder(AppLockWorker.class).build();\n WorkManager.getInstance(getApplicationContext()).enqueueUniqueWork(Constants.APPLOCKWORK, ExistingWorkPolicy.REPLACE,oneTimeWorkRequest);\n }", "public void addSupplier() {\n String name = getToken(\"Enter supplier company: \");\n String address = getToken(\"Enter address: \");\n String phone = getToken(\"Enter phone: \");\n Supplier result;\n result = warehouse.addSupplier(name, address, phone);\n if (result == null) {\n System.out.println(\"Supplier could not be added.\");\n }\n System.out.println(result);\n }", "public WorkerPool(String name) {\n this.name = name;\n\n log = LogFactory.getLog(WorkerPool.class.getName() + \":\" + name);\n }", "private void createWorkSpace() {\n\t\tif(promptForWorkSpaceName() != null){\n\t\t\tmyWorkSpaceListener.createWorkSpace(promptForWorkSpaceName());\n\t\t}\n\t}", "private void assignWork(String worker, String task) {\n System.out.println(\"assign work and create node \" + worker + \"/task\");\n zk.setData(worker, task.getBytes(), -1,\n (rc, path, ctx, data) -> {\n System.out.println(KeeperException.Code.get(rc));\n logger.info(\"DISTMASTER: task \" + task + \" has been created\");\n }, null);\n }", "@Override\n public AddWorkloadResult addWorkload(AddWorkloadRequest request) {\n request = beforeClientExecution(request);\n return executeAddWorkload(request);\n }", "public void placeWorkers(Cell destination) {\n if (workers.size()< 2) workers.add(new Worker( destination, this));\n else throw new IllegalArgumentException();\n }", "void addPC(PCDevice pc);", "@Override\n public Builder workers(int numWorkers) {\n super.workers(numWorkers);\n return this;\n }", "public void secondarySetExpeditor(com.hps.july.persistence.Worker anExpeditor) throws java.rmi.RemoteException;", "@Override\r\n\tpublic String addProductionOrderProcess(Object obj) {\n\t\ttry\r\n\t\t{\r\n\t\t\r\n\t\tmessage = productionOrderProcessDao.addProductionOrderProcess(obj);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn message;\r\n\t}", "public InstrumentedWorkerTask(gw.pl.persistence.core.BundleProvider bundleProvider) {\n this((java.lang.Void)null);\n com.guidewire.pl.system.entity.proxy.BeanProxy.initNewBeanInstance(this, bundleProvider.getBundle(), java.util.Arrays.asList());\n }", "@Override\n\tpublic void addWorkout(int id) {\n\n\t}", "GetWorkerResult getWorker(GetWorkerRequest getWorkerRequest);", "private void createManagerWorkerEvents() {\n\t\t//\n\t\tbtnCreateTicket.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif (pnlCreateTicket.isVisible()) {\n\t\t\t\t\tpnlCreateTicket.setVisible(false);\n\t\t\t\t} else {\n\t\t\t\t\tpnlCreateTicket.setVisible(true);\n\t\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnSendTicket.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (jdbc.createTicket(txtNewTicketTitle.getText(), txtNewTicketDesc.getText(), currentSessionUserID)) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket sent to Admin\");\n\t\t\t\t\tpnlCreateTicket.setVisible(false);\n\t\t\t\t} else {\n\t\t\t\t\ttxtNewTicketTitle.setText(\"\");\n\t\t\t\t\ttxtNewTicketDesc.setText(\"\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket not sent to Admin\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//assigns users to a project\t\t\n\t\tbtnAssign.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tObject x = listUsersAvailable.getSelectedValue();\n\t\t\t\tlistedUsersAddList.addElement(x);\n\t\t\t\tlistedUsersAvailList.removeElement(x);\n\t\t\t}\n\t\t});\n\t\t//removes users from a project\n\t\tbtnRemove.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tObject x = listUsersAdded.getSelectedValue();\n\t\t\t\tlistedUsersAvailList.addElement(x);\n\t\t\t\tlistedUsersAddList.removeElement(x);\n\t\t\t}\n\t\t});\n\t\t//creates a new project with the given inputs\n\t\tbtnCreateNewProject.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\tint Id= jdbc.getMaxJobID()+1;\n\t\t\t\tString s=\"\";\n\t\t\t\tString first;\n\t\t\t\tString last;\n\t\t\t\tString description = textAreaProjectDescription.getText();\n\t\t\t\tJob job =new Job(Id, txtProjectName.getText(), 1, description);\t//creates project\n\t\t\t\tjob.setJobdesc(description);\n\t\t\t\tjdbc.add_project(job);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //adds it to database\n\t\t\t\tSystem.out.println(Id);\n\t\t\t\tSystem.out.println(projectQual);\n\t\t\t\tjdbc.add_requiredQuals(Id,projectQual);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigns quals to it\n\t\t\t\tfor(int i=0; i<listUsersAdded.getModel().getSize();i++){\t\t\t\t\t\t\t\t\t\t//assigns users to it\n\t\t\t\t\ts=(String)listUsersAdded.getModel().getElementAt(i);\n\t\t\t\t\tlast=s.substring(0, s.indexOf(44));\n\t\t\t\t\tfirst=s.substring(s.indexOf(44)+2, s.length());\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tjdbc.addUserstoJob(first, last, Id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlayeredPaneManagerWorker.setVisible(true);\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Project Created!\");\n\t\t\t\tlistUsersAdded.setModel(new DefaultListModel());\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\ttxtProjectName.setText(\"\");\n\t\t\t\ttextAreaProjectDescription.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t//creates a new Task with given inputs\n\t\tbtnCreateNewTask.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTask task = new Task(textTaskName.getText(), txtAreaDescription.getText(), txtAreaReason.getText(), jdbc.getTaskID(superJobString), jdbc.getMaxTaskID()+1);\n\t\t\t\tjdbc.add_task(task);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Task Created!\");\n\t\t\t\ttextTaskName.setText(\"\");\n\t\t\t\ttxtAreaReason.setText(\"\");\n\t\t\t\ttxtAreaDescription.setText(\"\");\n\t\t\t\tpnlCreateTask.setVisible(false);\n\n\t\t\t}\n\t\t});\t\n\t\t//assign users to job\t\t\n\t\tbuttonAssignUsers.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\tObject x = listAvailableUsers.getSelectedValue();\n\t\t\t\tassignedUsersList.addElement(x);\n\t\t\t unassignedUsersList.removeElement(x);\t\t\t\n\t\t\t}\n\t\t});\n\t\t//removes users from job\n\t\tbuttonRemoveUsers.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\n\t\t\t\tObject x = listAssignedUsers.getSelectedValue();\n\t\t\t\tunassignedUsersList.addElement(x);\n\t\t\t assignedUsersList.removeElement(x);\n\t\t\t}\n\t\t});\n\t\t//Open create new project tab\n\t\tbtn_create_project.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\tpnlCreateProject.setVisible(true);\n\t\t\t\tlayeredPaneAdminComponents.setLayer(pnlUserEditInfo, 2);\t\n\t\t\t\tcreateQualificationsList();\n\t\t\t\tcreateAllUsersList();\n\t\t\t}\n\t\t});\n\t\t//closes create new project tab\n\t\tbtnCancelProject.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t//open create new task tab\n\t\tbtn_create_task.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(true);\n\t\t\t\tlayeredPaneAdminComponents.setLayer(pnlUserEditInfo, 2);\n\t\t\t\tloadJobs();\n\t\t\t}\n\t\t});\n\t\t//closes create new task tab\n\t\tbtnCancelTask.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t//open create new job tab \n\t\tbtn_create_job.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tQualification q=null;\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\tpnlCreateJob.setVisible(true);\t\n\t\t\t\tcreateManagersList();\n\t\t\t\tcreateAllUsersList();\n\t\t\t\tcreateQualificationsList();\n\t\t\t\tloadJobs();\n\t\t\t}\n\t\t});\n\t\t//closes create job tab\n\t\tbtnCancelJob.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\ttxtJobName.setText(\"\");\n\t\t\t\ttxtAreaJobDescription.setText(\"\");\n\t\t\t}\n\t\t});\t\n\t\t//creates a new job w/ info, assigns a manager to it,\n\t\tbtnCreateJob.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint Id= jdbc.getMaxJobID()+1;\n\t\t\t\tString s=\"\";\n\t\t\t\tString first;\n\t\t\t\tString last;\n\t\t\t\tint superjobID= jdbc.getIdOfJob(superjobsString);\n\t\t\t\tString description = txtAreaJobDescription.getText();\n\t\t\t\tJob job =new Job(Id, txtJobName.getText(), 2, description, superjobID);\t//creates job\n\t\t\t\tjob.setJobdesc(description);\n\t\t\t\tjob.setparentID(superjobID);\n\t\t\t\tjdbc.add_job(job);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //adds it to database\n\t\t\t\tjdbc.add_Manager(manager, Id);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigns managers to it\n\t\t\t\tjdbc.add_requiredQuals(Id,selectedQual);\t\t\t\t\t\t\t\t\t\t\t\t\t//assigns quals to it\n\t\t\t\tfor(int i=0; i<listAssignedUsers.getModel().getSize();i++){\t\t\t\t\t\t\t\t\t//assigns users to it\n\t\t\t\t\ts=(String)listAssignedUsers.getModel().getElementAt(i);\n\t\t\t\t\tlast=s.substring(0, s.indexOf(44));\n\t\t\t\t\tfirst=s.substring(s.indexOf(44)+2, s.length());\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tjdbc.addUserstoJob(first, last, Id);\n\t\t\t\t}\n\t\t\t\tlayeredPaneManagerWorker.setVisible(true);\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Job Created!\");\n\t\t\t\tlistAssignedUsers.setModel(new DefaultListModel());\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\ttxtJobName.setText(\"\");\n\t\t\t\ttxtAreaJobDescription.setText(\"\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//gets selected qualification from job and sets up users w/ it\n\t\tlistRequiredQuals.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting()) {\n \t selectedQual = (String)listRequiredQuals.getSelectedValue();\n \t \n \t createAllUsersList(selectedQual);\n }\n }\n });\n\t\t//listens for selection of a singular manager and saves it\n\t\tlistAssignableManagers.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting()) {\n String s = (String) listAssignableManagers.getSelectedValue();\n int x= s.indexOf(44);\n String last = s.substring(0, x);\n String first = s.substring(x+2, s.length());\n manager =jdbc.get_user(first, last);\n }\n }\n\t\t});\n\t\t//listens for selection of a singular qualification in project and returns users\n\t\tlistQualifications.addListSelectionListener(new ListSelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tif (!arg0.getValueIsAdjusting()) {\n\t\t\t\t\tprojectQual = (String) listQualifications.getSelectedValue();\n\t\t\t\t\tlistedUsersAvailList.clear();\n\t\t\t\t\tArrayList<User> users = jdbc.getUsersWithQual(projectQual);\n\t\t\t\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\t\t\t\tlistedUsersAvailList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//listens for selection of a singular job in tasks and saves it\t\n\t\tlistSuperJobs.addListSelectionListener(new ListSelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tif (!arg0.getValueIsAdjusting()) {\n\t\t\t\t\tsuperJobString = (String) listSuperJobs.getSelectedValue();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//listens for selection of a singular job in tasks and saves it for jobs\n\t\tlistofSuperJobsList.addListSelectionListener(new ListSelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tif (!arg0.getValueIsAdjusting()) {\n\t\t\t\t\tsuperjobsString = (String) listofSuperJobsList.getSelectedValue();\n\t\t\t\t\tSystem.out.println(superjobsString);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "ViewProcessWorker createWorker(ViewProcessWorkerContext context, ViewExecutionOptions executionOptions, ViewDefinition viewDefinition);", "public void addToQueue(Unit unit) {\n if (units.size() < maxStock) {\n endTime = System.currentTimeMillis() + unit.getBuildTime();\n units.add(unit);\n }\n }", "public void addSoftware(Software software){\n products.add (software);\n }", "java.lang.String getWorkerId();", "@Override\n\tpublic void additionalWeightWork() {\n\t\t\n\t}", "private static void addProducer()\r\n\t{\r\n\t\tfetchers++;\r\n\t\tFetcher producer = new Fetcher();\r\n\t\tproducer.start();\r\n\t}", "public org.hl7.fhir.String addNewSoftware()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().add_element_user(SOFTWARE$2);\n return target;\n }\n }", "public void askEffectBuild(int worker) {\n if (getCurrentTurn().getCurrentPlayer().isHasSpecialBuild()) {\n notifyAskForEffectBuild(currentTurn.getCurrentPlayer().getNickname(), worker);\n } else {\n notifyTimeToBuild(worker, this.getCurrentTurn().getCurrentPlayer().getNickname(), this.getCurrentTurn().getCurrentPlayer().availableCellsToBuild(this.getCurrentTurn().getCurrentPlayer().getWorkerRef().get(worker-1)));\n }\n }", "public abstract String getWorkerString();", "public void launch(String stage) {\n\t\tnew JFXPanel();\n\t\tresult = new FutureTask(new Callable(){\n \n @Override\n public Object call() throws Exception {\n StagedProduction prod=(StagedProduction)Class.forName(stage).getConstructor().newInstance();\n return (prod.produce());\n }\n \n \n });\n Platform.runLater(result);\n\t}", "public void addQueuedPassenger(){\n this._queuedPassengers +=1;\n }", "private void addExcludedWorkerForMicrotask(Key<Microtask> microtaskKey, String workerID)\n\t{\n\t\t// retrieve the current permanently excluded workers for the microtask\n\t\t// if is empty create one\n\t\tString microtaskKeyString = Microtask.keyToString(microtaskKey);\n\t\tHashSet<String> excludedWorkersForMicrotask = excludedWorkers.get( microtaskKeyString );\n\t\tif (excludedWorkersForMicrotask == null)\n\t\t{\n\t\t\texcludedWorkersForMicrotask = new HashSet<String>();\n\t\t\texcludedWorkers.put( microtaskKeyString , excludedWorkersForMicrotask);\n\t\t}\n\t\t\n\t\texcludedWorkersForMicrotask.add(workerID);\n\t\t\n\t\t//add/update excluded list inside firebase\t\n\t\tString workerList = excludedWorkersToString(excludedWorkersForMicrotask);\n\t\tFirebaseService.writeMicrotaskExcludedWorkers(microtaskKeyString,\n\t\t\tthis.getID(), workerList);\n\t}", "public static void main(String[] args) {\n CustomerManager customerManager;\n // new deyince heap'te nesne oluşturuyor.\n CustomerManager customerManager2 = new CustomerManager(); // define class from object\n customerManager = customerManager2;\n customerManager.add();\n customerManager.remove();\n customerManager.update();\n }", "org.hl7.fhir.ResourceReference addNewPerformer();", "public void addHQCopier(String id, double sheetCost, double monochromeCost,\n double colourCost, double hQPremium, double costSetup, int copySpeed);", "public interface WorkManager extends InitBean, DestroyBean {\r\n\r\n\t/**\r\n\t * This method allow you to assign given work to a worker available if no\r\n\t * Worker is available then it will create new and assign to the worker.\r\n\t * \r\n\t * @param work\r\n\t */\r\n\tvoid allocateWorker(Work work);\r\n\r\n\t/**\r\n\t * This method will release all workers registered under this maager.\r\n\t */\r\n\tvoid releaseAllWorkers();\r\n\r\n\t/**\r\n\t * This method will release the @param worker registered with this Manager.\r\n\t * \r\n\t * @param worker\r\n\t */\r\n\tvoid releaseWorker(Worker worker);\r\n\r\n\t/**\r\n\t * This method will register the @param worker passed to it with the\r\n\t * Manager.\r\n\t * \r\n\t * @param worker\r\n\t */\r\n\tvoid registerWorker(Worker worker);\r\n\r\n\t/**\r\n\t * This method allow you to assign given work to a deamon worker available\r\n\t * if no deamon Worker is available then it will create new and assign to\r\n\t * the worker.\r\n\t * \r\n\t * @param work\r\n\t */\r\n\tvoid allocateDeamonWorker(Work work);\r\n\r\n\t/**\r\n\t * This will return number of worker created using this manager.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tint numberOfWorkers();\r\n\r\n\t/**\r\n\t * This will return number of working workers.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tint numberOfWorkingWorkers();\r\n}", "public void addProcess(Process4 p)\n\t{\n\t\tif(currentProcess == null)\n\t\t{\n\t\t\tcurrentProcess = p;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tProcesses.enqueue(p);\n\t\t}\n\t}", "public boolean add(ConProcess conProcess) throws AppException;", "public void addNewJob(String jobId, String shipTo, String shipperContact, String paymentDue){\n JobInfo job = new JobInfo(shipTo,\n shipperContact,\n paymentDue,\n address,\n String.valueOf(latitude),\n String.valueOf(longitude));\n Map<String, Object> postValues = job.toMap();\n Map<String, Object> childUpdates = new HashMap<>();\n childUpdates.put(\"deliverybot/jobs/\" + jobId + \"/info\", postValues);\n firebaseDatabaseReference.updateChildren(childUpdates);\n\n if (selectedDriver.isEmpty())\n firebaseDatabaseReference.child(\"deliverybot/jobs/\" + jobId + \"/status\").setValue(\"Unassigned\");\n else\n firebaseDatabaseReference.child(\"deliverybot/jobs/\" + jobId + \"/status\").setValue(\"Assigned\");\n firebaseDatabaseReference.child(\"deliverybot/jobs/\" + jobId + \"/driver\").setValue(selectedDriver);\n\n // Add route information to firebase\n Route route = new Route(address,\n String.valueOf(latitude),\n String.valueOf(longitude),\n selectedDriver);\n Map<String, Object> postRouteUpdate = route.toMap();\n Map<String, Object> routeChildUpdates = new HashMap<>();\n routeChildUpdates.put(\"deliverybot/routes/\" + jobId, postRouteUpdate);\n firebaseDatabaseReference.updateChildren(routeChildUpdates);\n String toastMessage = getResources().getString(R.string.job_creation_toast);\n Toast.makeText(getApplicationContext(), toastMessage, Toast.LENGTH_LONG).show();\n finish();\n }", "void addPermanent(Permanent permanent, int createOrder);", "public void chooseWorker(){\n resetUpdate();\n\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.notify(gameMessage);\n\n if ( liteGame.getCurrWorker() == null ){\n removePlayerFromTheGame();\n }\n }", "public Worker(){\n\n }", "protected void addWorkspace( String workspaceName ) {\n }", "Builder addProducer(String value);", "@Override\n public void process() {\n Simulator.allocateServer(c);\n }", "public void new_boss(Boss newBoss){\n this.workerBoss = newBoss;\n }", "public interface WorkConsumerService{\n\n /**\n * Consumes a single work unit.\n * <p>\n * Blocks for 15 s or until a work unit becomes consumable, if there is currently none. \n * \n */\n void consumeWorkUnit();\n\n /**\n * Returns the total number of consumed work units by the engine instance at hand since\n * the engine's last deployment.\n */\n long getConsumedWorkUnits();\n\n}", "@Test\n public void testNewWorker() {\n BuildingWorker worker = new BuildingWorker(\"one\", 1, 0);\n\n assertTrue(worker.isWorker());\n\n assertEquals(\"one\", worker.getPlayerName());\n assertEquals(1, worker.getWorkerNumber());\n assertEquals(0, worker.getHeight());\n }", "private void produceWorker(Class<? extends WorkerWatch> jobClass, String groupName, Long queueTaskId) \n throws SchedulerException \n {\n JobDetail jobDetail = org.quartz.JobBuilder.newJob(jobClass)\n .usingJobData(\"queueTaskId\", queueTaskId)\n .withIdentity(jobClass.getName() + \"-\" + queueTaskId, groupName + \"Workers-\"+queueTaskId)\n .build();\n\n SimpleTrigger trigger = (SimpleTrigger)newTrigger()\n .withIdentity(jobClass.getName() + \"-\" + queueTaskId, groupName + \"Workers-\"+queueTaskId)\n .startNow()\n .withSchedule(simpleSchedule()\n .withMisfireHandlingInstructionNextWithExistingCount()\n .withIntervalInSeconds(1)\n .withRepeatCount(0))\n .build();\n\n Scheduler sched = new StdSchedulerFactory().getScheduler(\"AgaveConsumerTransferScheduler\");\n if (!sched.isStarted()) {\n sched.start();\n }\n \n log.debug(\"Assigning \" + jobClass.getSimpleName() + \" \" + queueTaskId + \" for processing\");\n \n sched.scheduleJob(jobDetail, trigger);\n }", "public void onNewWorkProcesses(IDuccWork work, ICommandLine commandLine, Map<DuccId, IDuccProcess> newWorkProcessMap, Map<DuccId, IDuccProcess> newWorkProcessMapToUpdate);", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "public ServiceExampleWorker() {\n super(\"ServiceExampleWorker\");\n shouldExecute = true;\n messageBinder = new IMessageBinder.Stub() {\n private List<ISubscriber> subscriberList = new ArrayList<>();\n\n @Override\n public void addSubscriber(ISubscriber subscriber) throws RemoteException {\n subscriberList.add(subscriber);\n }\n\n @Override\n public void removeSubscriber(ISubscriber subscriber) throws RemoteException {\n subscriberList.remove(subscriber);\n }\n\n @Override\n public void sendUpdate(String data) throws RemoteException {\n for (ISubscriber subscriber : subscriberList) {\n subscriber.send(data);\n }\n }\n\n @Override\n public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString) throws RemoteException {\n\n }\n };\n }", "CdapStartWorkerStep createCdapStartWorkerStep();", "public void addToComponent(String objective, OpSystem system);" ]
[ "0.63960814", "0.63926524", "0.6276146", "0.6029747", "0.59677863", "0.59652364", "0.5945094", "0.59127295", "0.5911136", "0.5706342", "0.5663225", "0.5402791", "0.5375693", "0.5319109", "0.53096235", "0.5308565", "0.5289505", "0.52374864", "0.5208323", "0.51875895", "0.51857", "0.5182752", "0.5160279", "0.51218283", "0.51054674", "0.5104095", "0.5103924", "0.5089577", "0.5089155", "0.5088036", "0.5084987", "0.5071142", "0.50496006", "0.5045918", "0.50381744", "0.5019611", "0.5013544", "0.50105083", "0.501001", "0.5008004", "0.500334", "0.5002216", "0.49899575", "0.49856615", "0.49809006", "0.4980754", "0.4968746", "0.4955622", "0.49479675", "0.49431837", "0.49412993", "0.49363673", "0.49317104", "0.49250692", "0.49207655", "0.49154425", "0.4914072", "0.4913115", "0.49057394", "0.48966274", "0.4890899", "0.4883598", "0.48744878", "0.4870916", "0.4865394", "0.48602834", "0.4859295", "0.48578444", "0.48544368", "0.48446319", "0.48385125", "0.4826171", "0.4821662", "0.4819294", "0.4819183", "0.48174524", "0.48136008", "0.4809966", "0.48029727", "0.47990194", "0.47937953", "0.47904554", "0.4786819", "0.47852647", "0.4784983", "0.47773695", "0.4775745", "0.4774808", "0.47733825", "0.47685438", "0.47631097", "0.47623765", "0.4759553", "0.47586954", "0.47580913", "0.4756992", "0.47566083", "0.47535774", "0.47508463", "0.47475982" ]
0.53214383
13
This method allows the user to add a team leader
public static void addTeamLeader(Scanner input, ArrayList<Employee> newEmployee){ TeamLeader newTeamLeader = new TeamLeader(); String empNumber, empHireDate, monthlyBonus, trainingHours, payRate, shift, requiredTrainingHours; int shiftNum; System.out.print("Please enter the employee's first and last name: "); newTeamLeader.setName(input.nextLine()); System.out.print("Please enter the new employee's Employee Number.\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: "); empNumber = input.nextLine(); newTeamLeader.setNumber(verifyEmpNum(input, empNumber)); System.out.print("Please enter the new employee's hire date.\nMake sure the date you enter matches IX/XX/XXXX including the slashes\nwhere I is a 0 or 1 and X is a digit 0-9: "); empHireDate = input.nextLine(); newTeamLeader.setDate(verifyHireDate(input, empHireDate)); System.out.print("Please enter the Production Team Leader's shift, 1 for day shift and 2 for night shift: "); shift = input.nextLine(); shiftNum = UtilityMethods.verifyInt(input, shift); newTeamLeader.setShift(verifyShift(input, shiftNum)); System.out.print("Please enter the pay rate of the Production Team Leader as a double: "); payRate = input.nextLine(); newTeamLeader.setPayRate(UtilityMethods.verifyDouble(input, payRate)); System.out.print("Please enter the monthly bonus that the Team Leader could receive: "); monthlyBonus = input.nextLine(); newTeamLeader.setMonthlyBonus(UtilityMethods.verifyDouble(input, monthlyBonus)); System.out.print("Please enter the number of training hours that the Team Leader requires as an integer: "); requiredTrainingHours = input.nextLine(); newTeamLeader.setRequiredTrainingHours(UtilityMethods.verifyInt(input, requiredTrainingHours)); System.out.print("Please enter the number of hours that the Team Leader has already acquired: "); trainingHours = input.nextLine(); newTeamLeader.setTrainingHours(UtilityMethods.verifyInt(input, trainingHours)); newEmployee.add(newTeamLeader); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addMyTeam(Team team) throws HasTeamAlreadyException;", "@RequestMapping(value = \"/team/{league}\", method = POST, consumes = MEDIA_JSON)\n @ResponseStatus(CREATED)\n public LobbyTeam createTeamAndEnter(@AuthenticationPrincipal UserSimpleDetails user,\n @PathVariable(\"league\") LobbyLeagueEnum league)\n throws TeamFullException, TeamNotFoundException {\n log.info(\"user {} creates team\", user.getIdentity());\n LobbyTeam team = lobbyService.createTeam(user.getProfileId(), league);\n return lobbyService.enterIntoTeam(user.getProfileId(), team.getId().toString());\n }", "public void cmdAddPlayer(User teller, String playerHandle) {\n Player player = tournamentService.findPlayer(playerHandle);\n try {\n player = tournamentService.createPlayer(playerHandle);\n } catch (InvalidPlayerException e) {\n replyError(teller, e);\n return;\n } catch (InvalidTeamException e) {\n replyError(teller, e);\n command.tell(teller, \"To create a new team, use the \\\"add-team\\\" command. Usage: add-team XXX\");\n return;\n }\n tournamentService.flush();\n command.tell(teller, \"Done. Player {0} has joined the \\\"{1}\\\".\", player, player.getTeam());\n command.tell(teller, \"To set the player''s real name, use: \\\"set-player {0} name 2200\\\"\", player);\n cmdShowPlayer(teller, player);\n }", "@Override\r\n\tpublic ResultMessage addTeam(TeamPO oneTeam) {\n\t\treturn teams.addTeam(oneTeam) ;\r\n\t}", "public void cmdAddTeam(User teller, String teamCode) {\n Team team = tournamentService.findTeam(teamCode);\n if (team != null) {\n command.tell(teller, \"A team with name {0} already exists.\", teamCode);\n return;\n }\n try {\n team = tournamentService.createTeam(teamCode);\n } catch (InvalidNameException e) {\n replyError(teller, e);\n return;\n }\n tournamentService.flush();\n command.tell(teller, \"Done. Team {0} has now been created.\", team.getTeamCode());\n command.tell(teller, \"To set the team name, use: \\\"set-team {0} name New York Giants\\\"\", team.getTeamCode());\n cmdShowTeam(teller, team);\n }", "Team createTeam();", "public void addOnePointToTeamA(View view)\n {\n scoreTeamA++;\n displayTeamAScore(scoreTeamA);\n }", "public void becomeLeader()\r\n\t{\r\n\t\tisleader = true;\r\n\t}", "@RequestMapping(value = \"/team/leader/{newLeaderProfileId}\", method = PUT)\n public LobbyTeam changeTeamLeader(@AuthenticationPrincipal UserSimpleDetails user,\n @PathVariable(\"newLeaderProfileId\") String newLeaderProfileId)\n throws TeamNotFoundException, TeamLeaderOnlyException, TeamMemberNotFoundException {\n log.info(\"user {} set profile {} has new team leader\", user.getIdentity(), newLeaderProfileId);\n return lobbyService.changeTeamLeader(user.getProfileId(), newLeaderProfileId);\n }", "protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }", "public void newTeam(Team team);", "public static void addPlayer(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Add Player---\");\r\n\t\ttheTeam.teamToString();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"--Top 20 Free Agents--\");\r\n\t\ttheLeague.getFreeAgents(20);\r\n\r\n\t\tint playerChoice;\r\n\t\tdo {\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\" 0 - Filter Free Agents by Position\");\r\n\t\t\t\tSystem.out.println(\" -1 - View All Free Agents\");\r\n\t\t\t\tSystem.out.println(\"1-\" + theLeague.playerList().size() + \" - Select a Player\");\r\n\t\t\t\tplayerChoice = Input.validInt(-1, theLeague.playerList().size(), keyboard);\r\n\t\t\t\t\r\n\t\t\t\tif (playerChoice == -1) {\r\n\t\t\t\t\ttheLeague.getFreeAgents();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (playerChoice == 0) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"Which position would you like to view?\");\r\n\t\t\t\t\tSystem.out.println(\"1 - QB\");\r\n\t\t\t\t\tSystem.out.println(\"2 - WR\");\r\n\t\t\t\t\tSystem.out.println(\"3 - RB\");\r\n\t\t\t\t\tSystem.out.println(\"4 - TE\");\r\n\t\t\t\t\tswitch (Input.validInt(1, 4, keyboard)) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent QBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"QB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent WRs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"WR\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent RBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"RB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent TEs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"TE\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} while (playerChoice < 1);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (theLeague.playerList().get(playerChoice - 1).getIsOwned()) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(theLeague.playerList().get(playerChoice - 1).playerToString() + \" is not available\");\r\n\t\t\t}\r\n\t\t} while (theLeague.playerList().get(playerChoice - 1).getIsOwned());\r\n\r\n\t\tPlayer thePlayer = theLeague.playerList().get(playerChoice - 1);\r\n\t\tthePlayer.setIsOwned();\r\n\t\ttheTeam.getRoster().add(thePlayer);\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"***\" + theTeam.getManagerName() + \" has added \" + thePlayer.playerToString() + \"***\");\r\n\t}", "public void playerAddedToTeam(ArenaPlayer p, Team t) {\n \t\tif (!t.hasSetName() && t.getPlayers().size() > Defaults.MAX_TEAM_NAME_APPEND){\n \t\t\tt.setDisplayName(TeamUtil.createTeamName(indexOf(t)));\n \t\t}\n \t\tstartTracking(p);\n \t\tarenaInterface.onJoin(p,t);\n \n \t\tPerformTransition.transition(this, MatchState.ONJOIN, p,t, true);\n \t}", "public static void addThief() {\r\n playerTeam.clearDead();\r\n if (playerTeam.teamSize() >= 4) {\r\n updateMessage(\"Time cheio\");\r\n return;\r\n }\r\n\r\n Thief newMember = new Thief(getPersonName(), 0);\r\n playerTeam.addMember(newMember);\r\n\r\n updateMessage(\"Adiocionado Ladrao\" + newMember.getName());\r\n }", "public void addTeamMember(String teamMember)\r\n\t{\r\n\t\tteamMembers.add(teamMember);\r\n\t}", "public void addTeam(Team team) {\n int maxTotalTeamsCurrentlyAllowed = getTotalPlayersInLeague();\n\n // If a team has been created\n if(getTeams().size() != 0) {\n\n float greatestPlayerCount;\n // if the number of players on the largest team is not equal to zero\n if((greatestPlayerCount = (float) getTeamWithMostPlayers().getPlayerCount()) != 0) {\n\n // Get the sum of all the players in the league\n float totalLeaguePlayers = (float) getTotalPlayersInLeague();\n\n // divide the total players in league by number of players in largest team, rounded down\n float totalTeamsAllowedFloat = totalLeaguePlayers / greatestPlayerCount;\n\n // cast into double for Math.floor method\n double totalTeamsAllowedDouble = (double) totalTeamsAllowedFloat;\n\n // cast into integer for comparison\n maxTotalTeamsCurrentlyAllowed = (int) Math.floor(totalTeamsAllowedDouble);\n }\n\n }\n\n // If we're requesting to make more teams than the current max allowed, throw exception\n if (getTeams().size() < maxTotalTeamsCurrentlyAllowed) {\n teams.add(team);\n } else {\n throw new IndexOutOfBoundsException(\"Not enough players for a new team\");\n }\n\n }", "public void requestLeaderboard() {\r\n connection.requestLeaderboard();\r\n }", "@Override\r\n public void isLeader() {\n }", "void addPerson(Player player);", "public void addOneForTeamA(View v) {\n scoreTeamA = scoreTeamA + 1;\n displayForTeamA(scoreTeamA);\n }", "public void addOneForTeamA(View v) {\n scoreTeamA = scoreTeamA + 1;\n displayForTeamA(scoreTeamA);\n }", "public void addFaltasTeamA(View view) {\n faltasTeamA = faltasTeamA + 1;\n displayFaltasTeamA(faltasTeamA);\n }", "@Override\n public void addTeamIdentifier(TeamIdentifier teamIdentifier) {\n }", "@WebMethod public Team addTeam(String name) throws TeamAlreadyExists;", "void create(Team team);", "private void sendAddMember(String groupName, Host leader, Host newMember) throws RemoteException, NotBoundException, MalformedURLException, UnknownHostException {\n NameServiceClient stub = (NameServiceClient) Naming.lookup(\"rmi://\" + leader + \"/\" + NameServiceClient.class.getSimpleName());\n stub.addMember(groupName, newMember);\n }", "public void addGoloTeamA(View view) {\n goloTeamA = goloTeamA + 1;\n displayGoloTeamA(goloTeamA);\n }", "public void addTeam(Team team){\n\t\tthis.teamList.add(team);\n\t}", "public void addTwoPointsToTeamA(View view)\n {\n scoreTeamA = scoreTeamA + 2;\n displayTeamAScore(scoreTeamA);\n }", "void addEventPlayers(Player player, boolean team);", "public void add() {\r\n // Getting the player name.\r\n DialogManager dialog = this.gui.getDialogManager();\r\n String name = dialog.showQuestionDialog(\"Name\", \"Enter your name:\", \"\");\r\n if (name != null) {\r\n this.scoreTable.add(new ScoreInfo(name, this.score.getValue()));\r\n try {\r\n this.scoreTable.save(new File(\"highscores\"));\r\n } catch (IOException e) {\r\n System.out.println(\"Failed creating a file.\");\r\n return;\r\n }\r\n }\r\n }", "public void addAmarelosTeamA(View view) {\n amarelosTeamA = amarelosTeamA + 1;\n displayAmarelosTeamA(amarelosTeamA);\n }", "String createTeam(String userName, String teamName, Set<String> members) throws RemoteException, InterruptedException;", "public void addPointForTeamA(View view) {\n teamA_score = teamA_score + 1;\n if (ADVANTAGE == 1) {\n advantageMode(teamA_score, teamB_score);\n } else\n checkScore(teamA_score, teamB_score);\n }", "public void leaderElection () {\n leaderID++;\n if (leaderID > numServers) {\n leaderID = 1;\n }\n if (isLeader()) {\n leader = new Leader(combine(index, Constants.LEADER), this,\n acceptors, replicas);\n leader.start();\n } else {\n leader = null;\n }\n }", "void setLeader(Genome leader);", "public void updateUserTeam() {\n\t\tUser user = users.get(userTurn);\n\t\tSystem.out.println(user.getName());\n\t\tSystem.out.println(tmpTeam.size());\n\t\tUserTeam roundTeam = new UserTeam();\n\t\troundTeam.putAll(tmpTeam.getPlayers());\n\t\tSystem.out.println(roundNumber);\n\t\tSystem.out.println(roundTeam.size());\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\tuser.setUserTeam(roundTeam, roundNumber);\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\ttmpTeam = new UserTeam();\n\t}", "public static void addTeam(TeamForm tf) {\n Team team;\n\n long id = tf.id;\n\n if (!isTeam(id)) {\n team = new Team(tf.teamName, tf.location, tf.teamType, tf.skillLevel, tf.roster, tf.description, tf.imageUrl);\n team.save();\n }\n else {\n team = getTeam(id);\n team.setTeamName(tf.teamName);\n team.setLocation(tf.location);\n team.setTeamType(tf.teamType);\n team.setSkillLevel(tf.skillLevel);\n team.setRoster(tf.roster);\n team.setDescription(tf.description);\n team.setImageUrl(tf.imageUrl);\n team.setWins(tf.wins);\n team.setLosses(tf.losses);\n team.setPointsFor(tf.pointsFor);\n team.setPointsAgainst(tf.pointsAgainst);\n team.save();\n }\n }", "@PostMapping(path=\"/add/{id}/team\")\n public @ResponseBody Object assignTeamMember(@PathVariable long id, @RequestParam Team team){\n TeamMember tm = teamMemberRepository.getOne(id);\n tm.setTeam(team); // Retrieving the list of team members and adding new team member\n return teamMemberRepository.saveAndFlush(tm);\n }", "protected void addMember() {\n\t\tString mPhoneNumber = phoneEditView.getText().toString();\n\t\t\n\t\tApiProxy apiProxy = new ApiProxy(this);\n\t\tapiProxy.addMember(mPhoneNumber);\n\t\t\n\t\tgoToFriendListPage();\n\t}", "public boolean addTeam(T team){\n if (teams.contains(team)){\n System.out.println(\"Cant add team is allready in the league list.\");\n return false;\n }else{\n teams.add(team);\n return true;\n }\n }", "public static void createNewLeague()\n\t{\n\t\t//put code to get input from end-user here.\n\t\t//generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames);\n\t}", "public void addCantosTeamA(View view) {\n cantosTeamA = cantosTeamA + 1;\n displayCantosTeamA(cantosTeamA);\n }", "private void createLeague(){ \r\n FantasyUser maxUser = new FantasyUser();\r\n maxUser.setEmail(\"max@gmail.com\");\r\n maxUser.setPassword(\"password\");\r\n fUserBean.create(maxUser);\r\n \r\n FantasyUser adrianUser = new FantasyUser();\r\n adrianUser.setEmail(\"adrian@gmail.com\");\r\n adrianUser.setPassword(\"password\");\r\n fUserBean.create(adrianUser);\r\n \r\n FantasyUser ashayUser = new FantasyUser();\r\n ashayUser.setEmail(\"ashay@gmail.com\");\r\n ashayUser.setPassword(\"password\");\r\n fUserBean.create(ashayUser);\r\n \r\n FantasyUser jessUser = new FantasyUser();\r\n jessUser.setEmail(\"jess@gmail.com\");\r\n jessUser.setPassword(\"password\");\r\n fUserBean.create(jessUser);\r\n \r\n //create league\r\n FantasyLeague league = new FantasyLeague();\r\n league.setDraftStarted(false);\r\n league.setFinishedDraft(false);\r\n league.setLeagueName(\"Mongeese Only\");\r\n league.setLeagueOwner(maxUser);\r\n flBean.create(league);\r\n \r\n //create teams\r\n FantasyTeam maxTeam = new FantasyTeam();\r\n maxTeam.setTeamName(\"Max's Team\");\r\n maxTeam.setTeamOwner(maxUser);\r\n maxTeam.setLeague(league);\r\n ftBean.create(maxTeam);\r\n \r\n FantasyTeam ashayTeam = new FantasyTeam();\r\n ashayTeam.setTeamName(\"Ashay's Team\");\r\n ashayTeam.setTeamOwner(ashayUser);\r\n ashayTeam.setLeague(league);\r\n ftBean.create(ashayTeam);\r\n \r\n FantasyTeam jessTeam = new FantasyTeam();\r\n jessTeam.setTeamName(\"Jess's team\");\r\n jessTeam.setTeamOwner(jessUser);\r\n jessTeam.setLeague(league);\r\n ftBean.create(jessTeam);\r\n \r\n FantasyTeam adrianTeam = new FantasyTeam();\r\n adrianTeam.setTeamName(\"Team Greasy Pizza\");\r\n adrianTeam.setTeamOwner(adrianUser);\r\n adrianTeam.setLeague(league); \r\n ftBean.create(adrianTeam);\r\n }", "public void addVermelhosTeamA(View view) {\n vermelhosTeamA = vermelhosTeamA + 1;\n displayVermelhosTeamA(vermelhosTeamA);\n }", "public void addThreePointsToTeamA(View view)\n {\n scoreTeamA = scoreTeamA + 3;\n displayTeamAScore(scoreTeamA);\n }", "void addParticipant(Participant participant);", "public void addPlayer(String name) {\n\t\tcreateGameLobbyController.addPlayerToList(name);\n\t}", "void updateLeaderSlot(String username, ArrayList<LightLeaderCard> leaderSlot);", "public void plusOneTeamA (View view) {\r\n scoreA++;\r\n displayScoreForTeamA(scoreA);\r\n }", "public void leaderboardPressed(View view) {\n\n Intent myLeaderboardIntent = new Intent(AllChannelListActivity.this, LeaderboardChannelActivity.class);\n\n myLeaderboardIntent.putExtra(\"userName\", userName);\n startActivity(myLeaderboardIntent);\n finish();\n }", "public void addParticipant()\n {\n boolean addFlg = false;\n do\n {\n Scanner scan = new Scanner(System.in);\n flg = scan.nextLine();\n if(flg.equalsIgnoreCase(\"y\") || flg.equalsIgnoreCase(\"Y\"))\n {\n this.autoAdd();\n addFlg = true;\n } else if(flg.equalsIgnoreCase(\"n\")|| flg.equalsIgnoreCase(\"N\"))\n {\n System.out.println(\"Athletes ID list: \");\n switch (this.getGameType()) // print out every athletes who can join the games\n {\n case 1:\n for(int j = 0; j < swimmers.size(); j++)\n {\n System.out.println(swimmers.get(j).getId());\n }\n break;\n case 2:\n for(int j = 0; j < runners.size(); j++)\n {\n System.out.println(runners.get(j).getId());\n }\n break;\n case 3:\n for(int j = 0; j < cyclists.size(); j++)\n {\n System.out.println(cyclists.get(j).getId());\n }\n break;\n }\n for(int j = 0; j < superAthletes.size(); j++)\n {\n System.out.println(superAthletes.get(j).getId());\n }\n addFlg = true;\n this.manualAdd();\n }else {\n System.out.println(\"Invalid Typing\");\n }\n }while (!addFlg);\n }", "@OnClick(R.id.team_a_1_button)\n public void add1TeamA() {\n addToScore(scoreATextView, 1);\n }", "public void addHero(Hero h) {\r\n if (team.size() < MAX_MEMBER_IN_A_TEAM) {\r\n team.add(h);\r\n }\r\n }", "private void add(String name) {\n try {\n PokemonToEdit pkm = Reader.readPokemon(name);\n team.add(pkm);\n System.out.println(name + \" has been add to the team\");\n new PokemonEditTool(pkm);\n } catch (IOException e) {\n System.out.println(\"Pokemon not found natively\");\n System.out.println(\"Try looking for the pokemon online\");\n try {\n PokemonToEdit pkm = Crawler.loadPokemon(name);\n Saver.savePokemon(pkm);\n team.add(pkm);\n System.out.println(name + \" has been added to the team\");\n new PokemonEditTool(pkm);\n } catch (IOException ex) {\n System.out.println(\"Pokemon not found\");\n } catch (TeamFullException ex) {\n System.out.println(\"Team is full\");\n }\n } catch (TeamFullException e) {\n System.out.println(\"Team is full\");\n\n }\n }", "default public boolean isTeamLeader() {\n return equals(team().leader());\n }", "public boolean addScoreTeamOne(int points) throws ByeMatchException\r\n\t{\r\n\t\tif (isByeMatch)\r\n\t\t{\r\n\t\t\tthrow new ByeMatchException();\r\n\t\t}\r\n\t\tscore1 = score1 + points;\r\n\t\treturn true;\r\n\t}", "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 void createTeam(final Map<String, String> dataTable) {\n team.processInformation(dataTable);\n WebDriverHelper.waitUntil(inputTeamName);\n WebDriverHelper.setElement(inputTeamName, team.getName());\n WebDriverHelper.clickElement(dropDownTeamType);\n selectDropDownOptionByName(team.getType());\n WebDriverHelper.setElement(inputTeamDescription, team.getDescription());\n WebDriverHelper.clickElement(btnContinue);\n WebDriverHelper.waitUntil(btnThisLater);\n WebDriverHelper.clickElement(btnThisLater);\n }", "private void addUsertoTeams(List<Team> teams) {\n \tfor(Team team: teams) {\n \t\tteam.setUser(getUserFromTeam(team));\n \t}\n }", "void addPlayer(Player newPlayer);", "public int addPlayer(String name) {\n\t\tUser user = users.get(userTurn);\n\t\tFootballPlayer player = market.findPlayer(name);\n\t\tdouble marketValue = player.getMarketValue();\n\t\tSystem.out.println(\"budget before buy\" + user.getBudget());\n\t\t\n\t\tif(tmpTeam.containsPlayer(name)) {\n\t\t\treturn 1;\n\t\t} \n\t\telse if(user.hasEnoughBudget(marketValue)) {\n\t\t\ttmpTeam.addPlayer(name, player);\n\t\t\tuser.updateBudget(marketValue, \"-\");\n\t\t\tSystem.out.println(\"budget \" + user.getBudget());\n\t\t\tSystem.out.println(\"marketvalue \" +marketValue);\n\t\t\tSystem.out.println(\"budget after buy\" + user.getBudget());\n\t\t\treturn 0;\n\t\t}\n\t\treturn -1;\n\t}", "public void onAddParticipant() {\n ParticipantDialog participantDialog = ParticipantDialog.getNewInstance();\n Optional<Participant> result = participantDialog.showAndWait();\n if (!result.isPresent()) {\n return;\n }\n\n if (controller.addParticipant(result.get())) {\n return;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_PARTICIPANT_ADD, null);\n }", "private void addTeam(String teamName, String prefix, String suffix) {\n String trimmedTeamName = trimString(teamName);\n\n // If the team already exists, skip adding it.\n if (teamExist(trimmedTeamName)) return;\n\n // Register the new team\n Team team = scoreboard.registerNewTeam(trimmedTeamName);\n\n // Set the prefix.\n if (prefix != null && !prefix.isEmpty()) {\n team.setPrefix(prefix);\n }\n\n // Set ths suffix.\n if (suffix != null && !suffix.isEmpty()) {\n team.setSuffix(suffix);\n }\n }", "public interface CreateTeamPresenter {\n void createTeam(User user, String name, String token);\n}", "public void addTwoForTeamA(View v) {\n scoreTeamA = scoreTeamA + 2;\n displayForTeamA(scoreTeamA);\n }", "public void addPenaltiTeamA(View view) {\n penaltiTeamA = penaltiTeamA + 1;\n displayPenaltiTeamA(penaltiTeamA);\n }", "public void addRefereeToLeaguePerSeason(String leagueName, String userName) {\n //This method will be shown after the user chose a referee from the list (using getReferees() method)\n\n // TODO: get league\n // League league = get from DB by leagueName\n // league.addReferee((Referee) User.getUserByID(userName).getRoles().get(Role.REFEREE));\n\n// Alert alert = new Alert();\n// alert.addToMailSet(User.getUserByID(userName).getRoles().get(Role.REFEREE));\n// alert.sendAlert(new AlertNotification(\"Invitation\",\"MAZAL TOV! you are a referee!!\"));\n logger.info(userName + \" was added to \" + leagueName);\n }", "public void addOnePointToTeamB(View view)\n {\n scoreTeamB++;\n displayTeamBScore(scoreTeamB);\n }", "private void updateLeaderboard(String channelId, String userId, int scoreFactor) {\r\n Leaderboard lb = leaderboardRepository.findByChannelId(channelId);\r\n\r\n // found leaderboard\r\n if(lb != null) {\r\n\r\n // update existing user\r\n if (lb.scores.containsKey(userId)) {\r\n\r\n UserScore us = lb.scores.get(userId);\r\n us.score += scoreFactor;\r\n us.displayName = userId;\r\n\r\n // get user display name\r\n User user = getUserInfo(userId);\r\n if(user != null) {\r\n us.displayName = user.profile.display_name_normalized;\r\n if (us.displayName.length() == 0) {\r\n us.displayName = user.profile.real_name_normalized;\r\n }\r\n }\r\n\r\n lb.scores.put(userId, us);\r\n leaderboardRepository.save(lb);\r\n }\r\n // add new user\r\n else {\r\n UserScore us = new UserScore();\r\n us.score += scoreFactor;\r\n us.displayName = userId;\r\n\r\n // get user display name\r\n User user = getUserInfo(userId);\r\n if(user != null) {\r\n us.displayName = user.profile.display_name_normalized;\r\n if (us.displayName.length() == 0) {\r\n us.displayName = user.profile.real_name_normalized;\r\n }\r\n }\r\n\r\n lb.scores.put(userId, us);\r\n leaderboardRepository.save(lb);\r\n }\r\n }\r\n // create new leaderboard\r\n else {\r\n lb = new Leaderboard(channelId);\r\n\r\n UserScore us = new UserScore();\r\n us.score += scoreFactor;\r\n us.displayName = userId;\r\n\r\n // get user display name\r\n User user = getUserInfo(userId);\r\n if(user != null) {\r\n us.displayName = user.profile.display_name_normalized;\r\n if (us.displayName.length() == 0) {\r\n us.displayName = user.profile.real_name_normalized;\r\n }\r\n }\r\n\r\n lb.scores.put(userId, us);\r\n leaderboardRepository.save(lb);\r\n }\r\n }", "@Test\n public void testAddPlayer() {\n System.out.println(\"addPlayer\");\n Player player = new Player(\"New Player\");\n Team team = new Team();\n team.addPlayer(player);\n assertEquals(player, team.getPlayers().get(0));\n }", "@Override\n public void addParticipantToTeam(Id teamId, Participant participant) throws AlfredException {\n if (!this.participantList.contains(participant.getId())) {\n throw new ModelValidationException(\"Participant does not exist in participantList\");\n }\n Team targetTeam;\n try {\n targetTeam = this.getTeam(teamId);\n } catch (MissingEntityException e) {\n throw e;\n }\n try {\n boolean isSuccessful = targetTeam.addParticipant(participant);\n if (!isSuccessful) {\n throw new AlfredModelException(\"Participant is already present in team\");\n }\n } catch (Exception e) {\n throw new AlfredModelException(e.getMessage());\n }\n }", "void convertToLeader() {\n state = InstanceState.LEADER;\n controller = new LeaderController(this, executor, clock, transport);\n }", "@Override\r\n\t@Transactional(propagation=Propagation.REQUIRED)\r\n\tpublic void add(Team team) {\n\t\tentityManager.createQuery(\"insert into Team(id, name) values (team.id, team.name)\");\r\n\t}", "public void addTeam(final TeamController team) {\r\n\t\tteamList.add(team);\r\n\t}", "private void addPlayerToGroup(Scoreboard board, Player player) {\n String playername = player.getName();\n board.registerNewTeam(playername);\n board.getTeam(playername).addPlayer(player);\n }", "public Team insert(League league, String teamName) {\n StandingDB sdb = new StandingDB();\n TeamDB tdb = new TeamDB();\n String teamID = generateTeamID();\n \n Standing standing = new Standing(teamID);\n \n Team team = new Team(teamID, teamName);\n team.setLeagueID(league);\n \n tdb.insert(team);\n sdb.insert(standing);\n return team;\n }", "void startToPerformAsLeader();", "boolean addPlayer(String player);", "public void acceptInvitation(Player player) {\n if (invitations.containsKey(player)) {\n Player p = invitations.remove(player);\n List<Player> team = teams.get(p);\n team.add(player);\n teamMessage(p, ChatColor.BLUE + player.getName() + \" has joined the team!\");\n } else {\n player.sendMessage(ChatColor.RED + \"You were not invited to any teams! Forever alone..\");\n }\n }", "protected abstract void gatherTeam();", "public static void viewLeaderBoard()\n\t{\n\t}", "public void addMember()\r\n\t{\r\n\t\tlistOfMembers.add(new Member(\r\n\t\t\t\tgetUserString(\"Enter Member's First Name\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Surname\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Email\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Telephone\"),\r\n\t\t\t\tgetUserInt(\"Enter Member's Number\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Type\")\r\n\t\t\t\t));\r\n\t\t\r\n\t}", "void setWinningTeam(TeamId winner) {\n winningTeam.set(winner);\n }", "public void startRecord(Leader leader) {\n this.record = new Record();\n record.add(leader);\n }", "public void createAndAddUser(String fName, String lName){\n ModelPlayer user = new ModelPlayer(fName, lName);\n user.setUserID(this.generateNewId());\n userListCtrl.addUser(user);\n }", "@Override\n @Transactional\n public Team addTeam(Team team) {\n KeyHolder keyHolder = new GeneratedKeyHolder();\n String sql = \"INSERT INTO Team (teamname, userid) VALUES (?, ?)\";\n\n jdbc.update((Connection connection) -> {\n PreparedStatement prep = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n prep.setString(1, team.getName());\n prep.setInt(2, team.getUser().getId());\n return prep;\n }, keyHolder);\n team.setId(keyHolder.getKey().intValue());\n return team;\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 }", "@PostMapping(path = \"/leaderboard\")\n\tpublic String username(@RequestBody leaderBoard user_name) {\n\t\tlogger.info(\"Entered into Controller\");\n\t\tleaderboardrepository.save(user_name);\n\t\tlogger.info(\"Saved:\" + user_name);\n\t\treturn \"successful\";\n\t\t//error with id\n\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\taddMember();\n\t\t\t\t\t\t}", "TeamMember(String _name, String _title) {\r\n this.name = _name;\r\n this.title = _title;\r\n }", "public void autoAdd()\n {\n switch (this.getGameType())\n {\n case 1:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(swimmers.get(i).getId(),swimmers.get(i).compete(),swimmers.get(i).getPoints());\n }\n break;\n case 2:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(runners.get(i).getId(),runners.get(i).compete(),runners.get(i).getPoints());\n }\n break;\n case 3:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(cyclists.get(i).getId(),cyclists.get(i).compete(),cyclists.get(i).getPoints());\n }\n break;\n }\n\n }", "public void addOneForTeamV (View v) {\n vScore = vScore +1;\n displayForTeamV(vScore);\n }", "public void addThreeForTeamA(View v) {\n scoreTeamA = scoreTeamA + 3;\n displayForTeamA(scoreTeamA);\n }", "@Override\n public void addToModel() {\n for (final Person person : team.observableTeamMembers()) {\n person.setTeam(team);\n }\n\n // Add team to project\n organisation.getTeams().add(team);\n }", "public void createNewUser(){\n Users user = new Users(winnerName);\n mDatabase.child(\"users\").child(winnerName).setValue(user);\n Log.d(\"DB\", \"Writing new user \" + winnerName + \" to the database\");\n\n Toast.makeText(this, \"Scoreboard has been updated!\", Toast.LENGTH_SHORT).show();\n\n endGame();\n\n\n\n }", "private void addTeamMembers(IInternalContest contest, int count, int numberOnMtea) {\n\n Account[] accounts = getTeamAccounts(contest);\n\n for (int tid = 0; tid < accounts.length && tid < count; tid++) {\n\n Account account = accounts[tid];\n if (account.getMemberNames() == null || account.getMemberNames().length == 0) {\n\n List<String> names = new ArrayList<>();\n\n for (int i = 0; i < numberOnMtea; i++) {\n String name = pickRandom(SampleContest.GIRL_NAMES);\n names.add(name);\n }\n\n String[] newNames = (String[]) names.toArray(new String[names.size()]);\n account.setMemberNames(newNames);\n }\n contest.updateAccount(account);\n }\n }", "public void addPlayerToTheList(){\n \tif(!txtFieldPlayerName.getText().trim().isEmpty() && totPlayers <= maximumPlayersAllowed){\n\t\t\t\n \t\t//creates a new Player and adds the name that the user inputs from the textField\n\t\t\tplayer.add(new Player(txtFieldPlayerName.getText()));\n\t\t\n\t\t\tString playerName = \"\";\n\t\t\tint playerNr = 1;\n\t\t\t\n\t\t\tfor(Player p : player){\n\t\t\t\tplayerName += playerNr+\": \"+p.getName()+\"<br>\"; \n\t\t\t\tplayerNr++;\n\t\t\t}\n\t\t\t\n\t\t\ttotPlayers++;\n\t\t\tlblPlayerList.setText(\"<html><h2>PLAYER LIST</h2>\"+playerName+\"</html>\");\n\t\t\ttxtFieldPlayerName.setText(\"\");\n\t\t}\n\t\t\n\t\tif(totPlayers >= minimumPlayersAllowed){\n\t\t\tbtnPlay.setEnabled(true);\n\t\t}\n\t\t\n\t\tif(totPlayers >= maximumPlayersAllowed){\n\t\t\tbtnAddPlayer.setEnabled(false);\n\t\t\ttxtFieldPlayerName.setEnabled(false);\n\t\t}\n }", "AsyncFuture<Void> becameLeader();", "public void addTeams(SoccerTeam team) throws TeamNotFoundException {\n if (teams.contains(team)){\n throw new TeamNotFoundException(\"Team Already added to the Tournament\");\n }\n this.teams.add(team);\n }" ]
[ "0.6525652", "0.65128773", "0.63664454", "0.63525736", "0.6266435", "0.62383", "0.6229513", "0.62257123", "0.6213416", "0.61974174", "0.6173001", "0.6153163", "0.61442685", "0.6099252", "0.6091248", "0.6052514", "0.6041242", "0.6020458", "0.60141945", "0.59850943", "0.59850943", "0.59837633", "0.5975687", "0.59396917", "0.5932322", "0.5924264", "0.5909903", "0.5890156", "0.5888507", "0.5874101", "0.5870493", "0.58686846", "0.5831462", "0.5808807", "0.5808805", "0.5793751", "0.5787465", "0.57863384", "0.5780424", "0.57777065", "0.5750717", "0.5744954", "0.57394487", "0.57306087", "0.5718962", "0.5714425", "0.5707522", "0.57005847", "0.57004565", "0.5674692", "0.5672027", "0.56586426", "0.5658381", "0.56565684", "0.5644577", "0.5644335", "0.5641872", "0.5623872", "0.5623429", "0.5621885", "0.5598531", "0.55873156", "0.558069", "0.55753356", "0.5566421", "0.55664", "0.55642855", "0.55631214", "0.5559321", "0.55449945", "0.553449", "0.55316436", "0.55312175", "0.5526978", "0.55265605", "0.55214334", "0.5519799", "0.55049706", "0.5491102", "0.5480171", "0.5478617", "0.54778916", "0.54697895", "0.54649085", "0.5450554", "0.54489905", "0.5440594", "0.54377395", "0.5428959", "0.5428474", "0.54266393", "0.5408972", "0.5400288", "0.53988355", "0.5395268", "0.53945076", "0.5376541", "0.5375305", "0.5374463", "0.53708744" ]
0.67903763
0
This method prints each employee entered into the Array List
public static void printEmployees(ArrayList<Employee> newEmployee){ for(int i = 0; i < newEmployee.size(); i++){ System.out.print(newEmployee.get(i).toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayEmployees(){\n System.out.println(\"NAME --- SALARY --- AGE \");\n for (Employee employee : employees) {\n System.out.println(employee.getName() + \" \" + employee.getSalary() + \" \" + employee.getAge());\n }\n }", "public static void printEmployees() {\n List<Employee> employees = null;\n try {\n employees = employeeRepository.getAll(dataSource);\n } catch (SQLException e) {\n LOGGER.error(e.getMessage());\n }\n if (employees.isEmpty()) {\n System.out.println(\"\\n\" + resourceBundle.getString(\"empty.list\") + \"\\n\");\n LOGGER.warn(\"The list of employees is empty\");\n return;\n }\n System.out.println();\n employees.forEach(System.out::println);\n }", "public void listAll(){\n /*\n for(int i=0;i<employeesList.size();i++){\n System.out.println(i);\n Employee employee=(Employee)employeesList.get(i);\n System.out.print(employeesList.get(i));\n */ \n \n \n //for used to traverse employList in order to print all employee's data\n for (int i = 0; i < employeesList.size(); i++) {\n System.out.println(\"Name: \" + employeesList.get(i).getName()); \n System.out.println(\"Salary_complement: \"+employeesList.get(i).getSalary_complement()); \n \n }\n \n \n }", "public void listEmployees()\n\t{\n\t\tString str = \"Name\\tSurname\\tMail\\tPassword\\tBranchId\\tId\\n\";\n\t\t\n\t\tList<Employee> employees = this.company.getEmployees();\n\n\t\tfor(int i=0; i<employees.length(); i++)\n\t\t{\n\t\t\tstr += employees.get(i).getName() + \"\\t\" + employees.get(i).getSurname() + \"\\t\" + employees.get(i).getMail() + \"\\t\" + employees.get(i).getPassword() + \"\\t\\t\" + employees.get(i).getBranchId() + \"\\t\\t\" + employees.get(i).getId() + \"\\n\";\n\t\t}\n\n\t\tSystem.out.println(str);\n\n\t}", "private static void LessonCollections() {\n List<Employee> employeeList = new ArrayList<Employee>();\n\n //Create Employees from Employee objects constructor\n Employee emp1 = new Employee(\"Jordan\", \"Walker\");\n Employee emp2 = new Employee(\"Mark\", \"Tuttle\");\n Employee emp3 = new Employee(\"Wayne\", \"Henderson\");\n\n //Add them to employee list\n employeeList.add(emp1);\n employeeList.add(emp2);\n employeeList.add(emp3);\n\n //Create employee and add to list in one line\n employeeList.add(new Employee(\"Erick\", \"Jensen\"));\n\n //Get info from list\n System.out.println(employeeList.get(3).GetFullName());\n\n //Print all full names from employee list\n for(Employee e : employeeList) {\n System.out.println(e.GetFullName());\n }\n\n }", "private void doViewAllEmployees() {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"***Hors Management System:: System Administration:: View All Staffs\");\n\n List<Employee> employees = employeeControllerRemote.retrieveAllEmployees();\n\n employees.forEach((employee) -> {\n System.out.println(\"Employee ID: \" + employee.getEmployeeId() + \"First Name: \" + employee.getFirstName() + \"Last Name: \" + employee.getLastName() + \"Job Role: \" + employee.getJobRole().toString() + \"Username: \" + employee.getUserName() + \"Password: \" + employee.getPassword());\n });\n\n System.out.println(\"Press any key to continue...>\");\n sc.nextLine();\n }", "public static void display(List<Employee> empList) {\r\n\t\t\r\n\t\tfor(Employee e : empList) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getEmployeeId()+\"\\t\"+e.getEmployeeName()+\"\\t\"+e.getEmployeeAddress());\r\n\t\t}\r\n\t}", "public static void getEmployeeInformation(Employee [] employee) {\n\t\tif (Employee.getEmployeeQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no employee!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Employee.getEmployeeQuantity(); i++) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"-------List of Employees-------\\n\"\n\t\t\t\t\t\t+ (i+1) + \": \"+ employee[i+1].getName() + \"\\n\");\n\t\t\t}\t\t\t\n\t\t}\n\t}", "public void DisplayAllEmployees(){\r\n String format = \"%-20s %-20s %-9s\";\r\n System.out.println(\"\\n\");\r\n System.out.printf(format, \"|\"+\" Name \", \"|\"+\" Department \", \"|\"+\" phone number|\"+\"\\n\");\r\n System.out.println(\"----------------------------------------------------------\");\r\n for(Employee employee: listOfEmployees){\r\n System.out.format(format,\"|\"+employee.name,\"|\"+employee.departmentName,\"|\"+employee.contactNumber+\" |\"+ \"\\n\");\r\n }\r\n }", "@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < employees.length; i++) {\n result.append(employees[i] + \"\\n\");\n }\n return result.toString();\n }", "public static void main(String[] args) {\n System.out.println(\"How many employees would you like to type numbers for?\");\n Scanner emp_id_in = new Scanner(System.in);\n int emp_in = emp_id_in.nextInt();\n Employee EmployeeArr[] = new Employee[emp_in]; // should be size of the scanned input\n for (int i = 0; i < EmployeeArr.length; i++) {\n // Employee number\n System.out.println(\"Please enter the employees ID number(Enter a number from 0 to 999999)\");\n Scanner emp_id_scanner = new Scanner(System.in);\n int emp_id = emp_id_scanner.nextInt();\n // First\n System.out.println(\"Please enter the employees first name:\");\n Scanner first_name_scanner = new Scanner(System.in);\n String first_name = first_name_scanner.nextLine();\n // Last\n System.out.println(\"Please enter the employees last name:\");\n Scanner last_name_scanner = new Scanner(System.in);\n String last_name = last_name_scanner.nextLine();\n // Push entries into Name class\n Name name_obj = new Name();\n name_obj.get_employee_name(emp_id, first_name, last_name);\n //Street\n System.out.println(\"Please enter the employee's street name: \");\n Scanner street_name_scanner = new Scanner(System.in);\n String street_name = street_name_scanner.nextLine();\n // City\n System.out.println(\"Please enter the employee's city: \");\n Scanner city_name_scanner = new Scanner(System.in);\n String city_name = city_name_scanner.nextLine();\n // State\n System.out.println(\"Please enter the employee's state: \");\n Scanner state_name_scanner = new Scanner(System.in);\n String state_name = state_name_scanner.nextLine();\n System.out.println(\">>>>>>>>>>\" + state_name.split(\"\").length);\n // Zip\n System.out.println(\"Please enter the employee's zip code\");\n Scanner zip_code_scanner = new Scanner(System.in);\n int zip_code = zip_code_scanner.nextInt();\n // Push entries into Address class\n Address address_obj = new Address();\n address_obj.get_address_data(street_name, city_name, state_name, zip_code);\n // hire month\n System.out.println(\"Please enter the month the employee was hired(Eg. 1,2,3,... etc): \");\n Scanner month_scanner = new Scanner(System.in);\n int month = month_scanner.nextInt();\n // hire day\n System.out.println(\"Please enter the day the employee was hired(Eg. 1,2,3,... etc): \");\n Scanner day_scanner = new Scanner(System.in);\n int day = day_scanner.nextInt();\n // hire year\n System.out.println(\"Please enter the year the employee was hired: \");\n Scanner year_scanner = new Scanner(System.in);\n int year = year_scanner.nextInt();\n // Push data into Date class\n Date date_obj = new Date();\n date_obj.get_date_data(month, day, year);\n // Push data into employee class\n EmployeeArr[i] = new Employee();\n EmployeeArr[i].get_employee_information(name_obj.employee_number, name_obj.employee_first, name_obj.employee_last, address_obj.street, address_obj.zip_code,\n address_obj.city, address_obj.state, date_obj.hire_month, date_obj.hire_day, date_obj.hire_year);\n\n }\n // Show the data\n for (int j = 0; j < EmployeeArr.length; j++) {\n EmployeeArr[j].show_dat();\n }\n }", "public void displayAllContacts() {\n\n for (int i = 0; i < contacts.size(); i ++) {\n\n Contact contact = contacts.get(i);\n\n System.out.println(\" Name: \" + contact.getName());\n System.out.println(\" Title: \" + contact.getTitle());\n System.out.println(\" ID #: \" + contact.getID());\n System.out.println(\" Hoursrate: \" + contact.getHoursrate());\n System.out.println(\" Workhours \" + contact.getWorkhours());\n System.out.println(\"-------------\");\n\n\n\n Employee one = new Employee(\"A\", \"A\", \"A\", \"A\"); // I give it some contact information first.\n Employee two = new Employee(\"Bob\", \"Bob\", \"A\", \"A\");\n\n\n\n\n\n\n}\n\n\n//***************************************************************", "public void parseAndPrintRecords() {\n ArrayList<Employee> employees;\n\n employees = parseData(data);\n\n System.out.printf(\"%10s%10s%10s\\n\", \"Last\", \"First\", \"Salary\");\n for(Employee employee : employees) {\n System.out.printf(\"%10s%10s%10d\\n\", employee.lName, employee.fName, employee.salary);\n }\n\n }", "public void listEmployees() {\n\t\tSession session = factory.openSession();\n\t\tTransaction transaction = null;\n\t\ttry {\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tList employees = session.createQuery(\"FROM Employee\").list();\n\t\t\tfor (@SuppressWarnings(\"rawtypes\")\n\t\t\tIterator iterator = employees.iterator(); iterator.hasNext();) {\n\t\t\t\tEmployee employee = (Employee) iterator.next();\n\t\t\t\tSystem.out.print(\"First Name: \" + employee.getFirstName());\n\t\t\t\tSystem.out.print(\" Last Name: \" + employee.getLastName());\n\t\t\t\tSystem.out.println(\" Salary: \" + employee.getSalary());\n\t\t\t}\n\t\t\ttransaction.commit();\n\t\t} catch (HibernateException e) {\n\t\t\tif (transaction != null)\n\t\t\t\ttransaction.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t}", "public static void printEmployeeArray(CreateUser[] arr){\n\n for (int i=0; i < arr.length; i++){\n System.out.println(\"User:\");\n System.out.println(arr[i]); // name\n }\n\n }", "void printEmployeeDetail(){\n\t\tSystem.out.println(\"First name: \" + firstName);\n\t\tSystem.out.println(\"Last name: \" + lastName);\n\t\tSystem.out.println(\"Age: \" + age);\n\t\tSystem.out.println(\"Salary: \" + salary);\n\t\tSystem.out.println(firstName + \" has \" + car.color + \" \" + car.model + \" it's VIN is \" + car.VIN + \" and it is make year is \" + car.year );\n\t\t\n\t}", "public void show() {\r\n\t\tSystem.out.println(\"Id \\t Name \\t Address\");\r\n\t\t\r\n\t\tfor (int index = 0; index < emp.size(); index++) {\r\n\t\t\tSystem.out.println(emp.get(index).empId + \"\\t\" + emp.get(index).name +\"\\t\" + emp.get(index).adress);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\n ArrayList<Person> addressBook = new ArrayList<>();\n\n\n\n Person individual; //create an object of type Person\n Scanner scan = new Scanner(System.in);\n\n for(int i=1; i <= 5; i++) {\n\n individual = new Person();\n\n\n System.out.println(\"Please enter your first name \");\n individual.setFirstName(scan.nextLine());\n\n\n System.out.println(\"Please enter your last name \");\n individual.setLastName(scan.nextLine());\n\n\n System.out.println(\"Please enter address \");\n individual.setAddress(scan.nextLine());\n\n\n System.out.println(\"Please enter phone \");\n individual.setPhone(scan.nextLine());\n\n System.out.println(\"Enter email \");\n individual.setEmail(scan.nextLine());\n\n addressBook.add(individual); //adding an individual to the arraylist\n\n\n }\n\n for(Person eachPerson: addressBook){\n System.out.println(\"First names are \" + eachPerson.getFirstName() );\n\n }\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"\\nEmployees: \" + getEmployees();\n\t}", "public static void main(String[] args){\n List<ArrayListEmployee5> ale = new ArrayList<>();\n// Creating employees\n ArrayListEmployee5 emp1 = new ArrayListEmployee5(1,\"Aaaa\",\"12 lane 3\",234567);\n ArrayListEmployee5 emp2 = new ArrayListEmployee5(2,\"Bbbbb\",\"12 lane 4\",1232343.354F);\n ArrayListEmployee5 emp3 = new ArrayListEmployee5(3,\"Cccc\",\"12 lane 9\",455677);\n// Adding employee to arraylist\n ale.add(emp1);\n ale.add(emp2);\n ale.add(emp3);\n// Input to search for a particular employee id\n System.out.println(\"Enter employee id to search in arraylist\");\n Scanner input = new Scanner(System.in);\n int empid = input.nextInt();\n// iterator to search arraylist\n Iterator<ArrayListEmployee5> iterator = ale.iterator();\n// condition to search for a employee with id\n while(iterator.hasNext()) {\n ArrayListEmployee5 employee = iterator.next();\n if(employee.id == empid) {\n System.out.println(employee);\n }\n\n }\n\n\n }", "public void outputNames(){\n System.out.printf(\"\\n%9s%11s\\n\",\"Last Name\",\"First Name\");\n pw.printf(\"\\n%9s%11s\",\"Last Name\",\"First Name\");\n ObjectListNode p=payroll.getFirstNode();\n while(p!=null){\n ((Employee)p.getInfo()).displayName(pw);\n p=p.getNext();\n }\n System.out.print(\"\\nNumber of Employees: \"+payroll.size()+\"\\n\");\n pw.print(\"\\nNumber of Employees: \"+payroll.size()+\"\\n\");\n }", "public static void main(String[] args) {\n\r\n\t\tEmployee employees[] = new Employee[4];\r\n\r\n\t\temployees[0] = new HourlyEmployee(1, \"Jim\", \"Halpert\", 52, 25.99);\r\n\t\temployees[1] = new SalariedEmployee(2, \"Pam\", \"Beesly\", 3000);\r\n\t\temployees[2] = new CommissionEmployee(3, \"Michael\", \"Scott\", 0.08, 2000, 85000);\r\n\t\temployees[3] = new CommissionEmployee(4, \"Oscar\", \"Martinez\", 0.02, 1400, 62000);\r\n\r\n\t\t// For loop in array, and toString method, to display employees and salaries\r\n\r\n\t\tfor (int i = 0; i < employees.length; i++) {\r\n\t\t\tSystem.out.println(employees[i]);\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\t\t}\r\n\t}", "public void outputInfo(){\n outputHeader();\n ObjectListNode p=payroll.getFirstNode();\n while(p!=null){\n ((Employee)p.getInfo()).displayInfo(pw);\n p=p.getNext();\n }\n System.out.print(\"\\nNumber of Employees: \"+payroll.size()+\"\\n\");\n pw.print(\"\\nNumber of Employees: \"+payroll.size()+\"\\n\");\n }", "public void list() {\n // Sort by Last Name\n addressEntryList.sort(Comparator.comparing(AddressEntry::getLastName));\n\n // Iterate through AddressEntry and print out the data\n for (int i = 1; i <= addressEntryList.size(); i++) {\n System.out.print(i + \": \");\n System.out.println(addressEntryList.get(i-1).toString());\n }\n }", "public static void main(String[] args) {\n\r\n System.out.println(\"* * * * * Welcome to the employee inform * * * * * \");\r\n\r\n Employee_Company Jane = new Employee_Company();\r\n Employee_Company Lucas = new Employee_Company();\r\n Employee_Company Intern_Sophia = new Employee_Company();\r\n Employee_Company Intern_Ava = new Employee_Company();\r\n Employee_Company Intern_James = new Employee_Company();\r\n Employee_Company Intern_Nicholas = new Employee_Company();\r\n\r\n\r\n Lucas.Set_name_employee(\"Lucas Smith\");\r\n Lucas.Set_Email_employee(\"Lucas_Smith@TechCompany.org\");\r\n Lucas.Set_role_employee(\"Software Engineer\");\r\n Lucas.setSalary_employee(103438);\r\n\r\n\r\n Jane.Set_name_employee(\"Jane charlotte\");\r\n Jane.Set_Email_employee(\"Jane_Charlotte@TechCompany.org\");\r\n Jane.setSalary_employee(623100);\r\n Jane.Set_role_employee(\"CEO Tech Company\");\r\n\r\n\r\n Intern_Sophia.Set_name_employee(\"Sophia Wood\");\r\n Intern_Sophia.Set_Intern_application('A');\r\n Intern_Sophia.Set_role_employee(\"Intern Artificial Intelligence \");\r\n\r\n\r\n Intern_Ava.Set_name_employee(\"Ava Richardson\");\r\n Intern_Ava.Set_Intern_application('B');\r\n Intern_Ava.Set_role_employee(\"Intern Computer Science\");\r\n\r\n\r\n Intern_James.Set_name_employee(\"James Benjamin\");\r\n Intern_James.Set_Intern_application('B');\r\n Intern_James.Set_role_employee(\"Intern Business Analyst\");\r\n\r\n\r\n Intern_Nicholas.Set_name_employee(\"Nicholas Miller\");\r\n Intern_Nicholas.Set_Intern_application('C');\r\n Intern_Nicholas.Set_role_employee(\"Intern Systems Integration Engineering\");\r\n\r\n\r\n\r\n System.out.println(\"\\n\\t*** Tech Company employee information ***\");\r\n System.out.println(\"1. View Salary\");\r\n System.out.println(\"2. View Name of the Employee\");\r\n System.out.println(\"3. View Email Address\");\r\n System.out.println(\"4. View Employee Role\");\r\n System.out.println(\"5. View Intern Application grade\");\r\n\r\n\r\n\r\n Scanner input = new Scanner(System.in);\r\n System.out.println(\"Direction: Input the number is addressed in Tech Company employee information\");\r\n int input_user = input.nextInt();\r\n\r\n switch (input_user){\r\n case 1 -> {\r\n System.out.println(\"Here is the salary of the employee of Tech Company\");\r\n System.out.println(\"Salary of Software engineering: \"+Lucas.getSalary_employee());\r\n System.out.println(\"Salary of CEO: \"+Jane.getSalary_employee());\r\n }\r\n case 2 ->{\r\n System.out.println(\"Here is the name of the employee of Tech Company\");\r\n System.out.println(\"The software engineering of Tech Company name of the employee is: \"+Jane.Get_name_employee());\r\n System.out.println(\"The CEO Tech Company name of the employee is: \"+Lucas.Get_name_employee());\r\n }\r\n case 3 ->{\r\n System.out.println(\"Here is the Email Address of employee of Tech Company\");\r\n System.out.println(\"Jane Charlotte is CEO of Tech company Email Address its : \"+Jane.Get_Email_employee());\r\n System.out.println(\"Lucas Smith is Software Engineering of Tech Company Email Address its: \"+Lucas.Get_Email_employee());\r\n }\r\n case 4 ->{\r\n System.out.println(\"Here is the Employee Role of Tech Company\");\r\n System.out.println(Jane.Get_role_employee());\r\n System.out.println(Lucas.Get_role_employee());\r\n }\r\n case 5 ->{\r\n System.out.println(\"Here is all the Intern get accepted to Tech Company \");\r\n System.out.println(\"1.\"+Intern_Ava.Get_name_employee()+\" GPA college: \"+Intern_Ava.Get_Intern_application()+\"- \"+\" Application: Accepted \"+Intern_Ava.Get_role_employee());\r\n System.out.println(\"2.\"+Intern_Sophia.Get_name_employee()+\" GPA college: \"+Intern_Sophia.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Sophia.Get_role_employee());\r\n System.out.println(\"3.\"+Intern_James.Get_name_employee()+\" GPA college: \"+Intern_James.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_James.Get_role_employee());\r\n System.out.println(\"4.\"+Intern_Nicholas.Get_name_employee()+\"GPA college: \"+Intern_Nicholas.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Nicholas.Get_role_employee());\r\n }\r\n }\r\n\r\n\r\n\r\n }", "private static void printEmployeeDetails(final List<Employee> employeeDetails) {\r\n\t\tString headerFormat = \"%-25s%-20s%-20s%-20s%-20s%-20s\\n\";\r\n\t\tString rowFormat = \"%-25s%-20s%-20s%-20s%-20s%-20s\\n\";\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Employee details:\");\r\n\t\tSystem.out.println(\"=============================================================================================================================\");\r\n\t\tSystem.out.format(headerFormat, \"Name\", \"Class\", \"Hours\", \"Sales\", \"Rate\", \"Weekly Pay Amount\");\r\n\t\tSystem.out.println(\"=============================================================================================================================\");\r\n\t\tfinal NumberFormat formatter = NumberFormat.getCurrencyInstance();\r\n\t\tfor (Employee employee : employeeDetails) {\r\n\t\t\tfinal StringBuilder employeeName = new StringBuilder();\r\n\t\t\temployeeName.append(employee.getFirstName()).append(\" \").append(employee.getLastName());\r\n\r\n\t\t\tif (employee.getClassType().equalsIgnoreCase(\"Salaried\")) {\r\n\r\n\t\t\t\tdouble monthlySalary = ((SalariedEmployee) employee).getMonthlySalary();\r\n\t\t\t\tboolean isRewarded = employee.isRewarded();\r\n\t\t\t\tif (isRewarded) {\r\n\t\t\t\t\tmonthlySalary += monthlySalary * 0.1;\r\n\t\t\t\t}\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tsb.append(formatter.format(monthlySalary / 4));\r\n\t\t\t\tsb.append(isRewarded ? \"*\" : \"\");\r\n\t\t\t\tSystem.out.format(rowFormat, employeeName.toString(), employee.getClassType(), \"\", \"\", \"\", sb.toString());\r\n\r\n\t\t\t} else if (employee.getClassType().equalsIgnoreCase(\"Hourly\")) {\r\n\r\n\t\t\t\tdouble weeklyWorkedHours = ((HourlyEmployee) employee).getWeeklyWorkedHours();\r\n\t\t\t\tdouble hourlyRate = ((HourlyEmployee) employee).getHourlyRate();\r\n\t\t\t\tdouble weeklyPayAmount = 40 * ((HourlyEmployee) employee).getHourlyRate();\r\n\r\n\t\t\t\t// Rate will be doubled if it’s beyond 40 hours/week.\r\n\t\t\t\tif (((HourlyEmployee) employee).getWeeklyWorkedHours() > 40) {\r\n\t\t\t\t\tdouble overtime = ((HourlyEmployee) employee).getWeeklyWorkedHours() - 40;\r\n\t\t\t\t\tdouble overtimePay = overtime * (((HourlyEmployee) employee).getHourlyRate() * 2);\r\n\t\t\t\t\tweeklyPayAmount += overtimePay;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.format(rowFormat, employeeName.toString(), employee.getClassType(), weeklyWorkedHours, \"\", formatter.format(hourlyRate), formatter.format(weeklyPayAmount));\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tdouble weeklySales = ((CommissionedEmployee) employee).getWeeklySales();\r\n\t\t\t\tdouble commissionRate = ((CommissionedEmployee) employee).getCommissionRate();\r\n\t\t\t\tSystem.out.format(rowFormat, employeeName.toString(), employee.getClassType(), \"\", formatter.format(weeklySales), \"\", formatter.format(weeklySales * commissionRate));\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"\\nNote: * A 10% bonus is awarded\\n\");\r\n\r\n\t}", "public EmployeeList() {\r\n initComponents();\r\n\r\n empName = getEmployeeName();\r\n empPosition = getEmployeePosition();\r\n System.out.println(empName + \"----- \" + empPosition);\r\n details = (ArrayList<String>) setEmployeeDetails(empName, empPosition);\r\n initializeComponents(details);\r\n\r\n }", "public static void main(String args[]) {\n\t\tEmployee emp1 = new Employee(1001, \"Gaurav\", 27);\n\t\tEmployee emp2 = new Employee(1002, \"Amey\", 26);\n\t\tEmployee emp3 = new Employee(1003, \"Ajay\", 27);\n\n\t\tArrayList<Employee> al = new ArrayList<Employee>();\n\n\t\tal.add(emp1);\n\t\tal.add(emp2);\n\t\tal.add(emp3);\n\n\t\tIterator<Employee> itr = al.iterator();\n\n\t\t// Using while loop TEST\n\t\twhile (itr.hasNext()) {\n\t\t\tEmployee emp = (Employee) itr.next();\n\t\t\tSystem.out.println(emp.EmpCode + \" \" + emp.EmpName + \" \" + emp.EmpAge);\n\t\t}\n\n\t\t// Using for loop\n\t\t/*\n\t\t * for(String obj:al){ System.out.println(obj); }\n\t\t */\n\n\t}", "public static void main(String[] args) {\n\t\tEmployee employee = new Employee(2222, \"Sagar\");\n\t\tEmployee employee1 = new Employee(2222, \"Umesh\");\n\t\tArrayList<Employee> a4 = new ArrayList<Employee>();\n\t\ta4.add(employee);\n\t\ta4.add(employee1);\n\t\t\n\t//\ta4.add(Employee);\n\t\t\n\t\tfor (Employee employee21:a4)\n\t\t{\n\t\t\tSystem.out.println(\"Employee details :\"+employee21.eId+employee21.eName);\n\t\t}\n\t\t\n\t\tArrayList<Employee> a5 = new ArrayList<Employee>();\n\t\t\n\t\ta5.addAll(a4);\n\t\t\n\t\t//System.out.println(a5);\n\t\tfor (Employee employee231:a5)\n\t\t{\n\t\t\tSystem.out.println(\"Employee details :\"+employee231.eId+employee231.eName);\n\t\t}\n\t\t\n\t}", "public static void printCustomerInformation(Employee [] employee) {\n\t\tif (Customer.getCustomerQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no customer!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Customer.getCustomerQuantity(); i++) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"-------List of Customers-------\\n\"\n\t\t\t\t\t\t+ (i+1) + \": \"+ employee[i+1].getVehicle().getCustomer().getName() + \"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t}", "public static void showEmployees(RequestHandler handler) {\n\t\tStringBuilder sb;\n\t\tsb = new StringBuilder();\n\t\tsb.append(\"\\nDisplaying all employees:\");\n\t\thandler.sendMessage(sb.toString());\n\t\tfor (Employee e : EmployeeData.getEmployees()) {\n\t\t\tshowEmployee(handler, e);\n\t\t}\n\t\thandler.sendMessage(new StringBuilder(\"Finished Displaying Employees\"));\n\t}", "List<Employee> allEmpInfo();", "public static void main(String[] args) {\n Employee[] employees = new Employee[5]; \n\n // initialize array with Employees\n employees[0] = new SalariedEmployee(\n \"John\", \"Smith\", \"111-11-1111\", 800.00);\n employees[1] = new HourlyEmployee(\n \"Karen\", \"Price\", \"222-22-2222\", 16.75, 40);\n employees[2] = new CommissionEmployee(\n \"Sue\", \"Jones\", \"333-33-3333\", 10000, .06); \n employees[3] = new BasePlusCommissionEmployee(\n \"Bob\", \"Lewis\", \"444-44-4444\", 5000, .04, 300);\n employees[4] = new PieceWorker(\n \"Victor\", \"Figueroa\", \"555-555-5555\", 90, 100);\n \n System.out.println(\"Employees processed polymorphically:\\n\");\n \n // generically process each element in array employees\n for (Employee currentEmployee : employees) {\n System.out.println(currentEmployee); // invokes toString\n System.out.printf(\"earned $%,.2f\\n\\n\", currentEmployee.earnings());\n } // end for\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 NullPointerException {\n\n\t\t// default constructor\n\t\tEmployeeInfo employeeInfo = new EmployeeInfo();\n\t\tEmployeeInfo employeeInfo1 = new EmployeeInfo(\" FORTUNE COMPANY \");\n\n\t\tEmployeeInfo emp1 = new EmployeeInfo(1, \"Abrah Lincoln\", \"Accounts\", \"Manager\", \"Hodgenville, KY\");\n\t\tEmployeeInfo emp2 = new EmployeeInfo(2, \"John F Kenedey\", \"Marketing\", \"Executive\", \"Brookline, MA\");\n\t\tEmployeeInfo emp3 = new EmployeeInfo(3, \"Franklin D Rossevelt\", \"Customer Realation\", \"Assistnt Manager\",\n\t\t\t\t\"Hyde Park, NY\");\n\n\n\t\t// Printing Employee information in this pattern\n\t\t// \"ID Name Number Department Position Years Worked Pension Bonus Total salary \"\n\n\t\tSystem.out.println(emp1.employeeId() + \"\\t\" + emp1.employeeName() + \"\\t\\t\" + emp1.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp1.getJobTitle() + \"\\t\\t\\t\" + emp1.getYearsWorked() + \"\\t\\t\" + emp1.calculateEmployeePension()\n\t\t\t\t+ \"\\t\" + emp1.calculateEmployeeBonus() + \"\\t\\t\" + emp1.calculateSalary());\n\n\t\tSystem.out.println(emp2.employeeId() + \"\\t\" + emp2.employeeName() + \"\\t\\t\" + emp2.getDepartment() + \"\\t\\t\"\n\t\t\t\t+ emp2.getJobTitle() + \"\\t\\t\" + emp2.getYearsWorked() + \"\\t\\t\" + emp2.calculateEmployeePension() + \"\\t \"\n\t\t\t\t+ emp2.calculateEmployeeBonus() + \"\\t\\t\" + emp2.calculateSalary());\n\n\t\tSystem.out.println(emp3.employeeId() + \"\\t\" + emp3.employeeName() + \"\\t\" + emp3.getDepartment() + \"\\t\"\n\t\t\t\t+ emp3.getJobTitle() + \"\\t\" + emp3.getYearsWorked() + \"\\t\\t \" + emp3.calculateEmployeePension() + \"\\t\"\n\t\t\t\t+ emp3.calculateEmployeeBonus() + \" \\t\\t\" + emp3.calculateSalary());\n\n\n\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint[] empNums = new int[5];\r\n\t\tString[] empName = new String[5];\r\n\t\tdouble[] empSal = new double[5];\r\n\t\t\r\n\t\tfor(int i=0; i<5; i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"entert the employee number\");\r\n\t\t\tempNums[i] = sc.nextInt();\r\n\t\t\tSystem.out.println(\"Enter the employee name\");\r\n\t\t\tsc.nextLine(); \r\n\t\t\tempName[i] = sc.nextLine();\r\n\t\t\tSystem.out.println(\"Please enter your salary\");\r\n\t\t\tempSal[i]=sc.nextDouble();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\tdisplay(empNums,empName,empSal);\r\n\t\tdisplay(empNums, empName);\r\n\t}", "public static void mostrarSegundaListaDeEmpleados()\r\n\t{\r\n\t\tfor(Empleado empleado: segundaListaDeEmpleados)\r\n\t\t{\r\n\t\t\tSystem.out.println(empleado);\r\n\t\t}\r\n\t}", "public static void main(String[] args){\n ArrayList<Employee> newEmployee = new ArrayList<Employee>();\n \n //Scanner used for user input\n Scanner input = new Scanner(System.in);\n \n welcome();\n menu(input, newEmployee);\n \n }", "public static void main(String[] args) {\n String inputLine = \"\";\n char action = ' ';\n Employee[] employees = new Employee[] {\n new Employee(\"John\", \"+1-518-383-9901\", 9000),\n new Employee(\"Tom\", \"+1-518-383-6664\", 12000),\n new Employee(\"Diane\", \"+1-518-383-4025\", 5000),\n new Employee(\"Robert\", \"+1-518-383-7971\", 16000),\n new Employee(\"Patrick\", \"+1-518-383-5503\", 7000),\n new Employee(\"David\", \"+1-518-383-9905\", 8000),\n new Employee(\"Kate\", \"+1-518-383-3334\", 2000),\n new Employee(\"Mary\", \"+1-518-383-4545\", 4500),\n new Employee(\"Steven\", \"+1-518-383-7845\", 3500),\n new Employee(\"Bill\", \"+1-518-383-0456\", 7500),\n new Employee(\"Peter\", \"+1-518-383-3578\", 2500),\n new Employee(\"Mike\", \"+1-518-383-3895\", 3500),\n new Employee(\"Amanda\", \"+1-518-383-1001\", 4000)\n } ;\n Company company = new Company(\"1741 Technology Drive, Suite 400, San Jose, California 95110\", \"+1-408-273-8900\", employees);\n\n while (true) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n System.out.println(\"Input 1 to add new employee/ Input 2 to remove employee / Input 3 to get list of company employees\");\n System.out.println(\"Input 3 to print sum of all salaries/ Input 4 to print average salary / Input 5 to print employee name with the highest salary\");\n System.out.println(\"Input 7 to Exit\");\n inputLine = br.readLine();\n action = inputLine.charAt(0);\n\n switch (action) {\n case '1':\n System.out.print(\"Input employee name: \");\n String name = br.readLine();\n System.out.print(\"Input employee phone: \");\n String phone = br.readLine();\n System.out.print(\"Input employee salary: \");\n String salaryStr = br.readLine();\n int salary = Integer.parseInt(salaryStr);\n Employee emp = new Employee(name, phone, salary);\n company.addEmployee(emp);\n break;\n case '2':\n System.out.println(\"Input name of employee to remove\");\n String employeeName = br.readLine();\n company.removeEmployee(employeeName);\n break;\n case '3':\n System.out.println(\"Here is list of all company employees\");\n company.printEmployees();\n break;\n case '4':\n System.out.println(\"Sum of all salaries is \" + company.getSumOfAllSalaries());\n break;\n case '5':\n System.out.println(\"Average company salary is \" + company.getAverageSalary());\n break;\n case '6':\n System.out.println(\"Employee name with the highest salary is \" + company.getEmployeeNameWithMaxSalary());\n break;\n case '7': System.exit(0);\n default:\n System.out.println(\"You have written wrong or not supported action!\");\n break;\n }\n }\n catch (NumberFormatException e) {\n System.out.println(\"You entered non-number salary for employee!\");\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public String toString() {\r\n\t\treturn \"Name : \"+name+\"\\nEmp# : \"+employeeNum;\r\n\t}", "private static void writeToFileEmployees() throws IOException {\n FileWriter write = new FileWriter(path2, append);\n PrintWriter print_line = new PrintWriter(write);\n for (int i = 0; i < RegisteredEmployees.listOfEmployees.size(); i++) {\n ArrayList<Integer> list = RegisteredEmployees.getEmployeeList();\n Integer ID = list.get(i);\n textLine = String.valueOf(ID);\n print_line.printf(\"%s\" + \"%n\", textLine);\n }\n print_line.close();\n }", "public String[][] displayEmployee() {\r\n\t\t\t\t\r\n\t\t// Print the employee numbers for the employees stored in each bucket's ArrayList,\r\n\t\t// starting with bucket 0, then bucket 1, and so on.\r\n \r\n if (numInHashTable > 0){\r\n dataTable = new String[numInHashTable][5];\r\n int q = 0;\r\n \r\n for (ArrayList<EmployeeInfo> bucket : buckets){\r\n for (int i = 0; i < bucket.size(); i++){\r\n EmployeeInfo theEmployee = bucket.get(i);\r\n \r\n //display specfically for a PTE (All the general attributes plus the specifc ones)\r\n if (theEmployee instanceof PTE) {\r\n PTE thePTE = (PTE) theEmployee;\r\n dataTable[q][0] = Integer.toString(theEmployee.getEmpNum());\r\n dataTable[q][1] = \"PTE\";\r\n dataTable[q][2] = theEmployee.getFirstName();\r\n dataTable[q][3] = theEmployee.getLastName();\r\n dataTable[q][4] = Double.toString(thePTE.calcNetAnnualIncome()); \r\n q++;\r\n }\r\n \r\n //display specfically for a FTE (All the general attributes plus the specifc ones)\r\n if (theEmployee instanceof FTE){\r\n FTE theFTE = (FTE) theEmployee;\r\n dataTable[q][0] = Integer.toString(theEmployee.getEmpNum());\r\n dataTable[q][1] = \"FTE\";\r\n dataTable[q][2] = theEmployee.getFirstName();\r\n dataTable[q][3] = theEmployee.getLastName();\r\n dataTable[q][4] = Double.toString(theFTE.calcNetAnnualIncome());\r\n q++;\r\n } \r\n }\r\n }\r\n }\r\n return dataTable;\r\n }", "public void printStudentList()\n {\n for(int i = 0; i < students.size(); i++)\n System.out.println( (i + 1) + \". \" + students.get(i).getName());\n }", "public static void mostrarPrimeraListaDeEmpleados()\r\n\t{\r\n\t\tfor(Empleado empleado: listaDeEmpleados)\r\n\t\t{\r\n\t\t\tSystem.out.println(empleado);\r\n\t\t}\r\n\t}", "public void empdetails() {\r\n\t\tSystem.out.println(\"name : \"+ name);\r\n\t}", "public String getAllEmployees() {\n\t\t\n\t\tString allEmployees = \"\\n\";\n\t\t\n\t\tfor(AbsStaffMember staffMember : repository.getAllMembers())\n\t\t{\n\t\t\tallEmployees += \"\\t- \" + staffMember.getName() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn allEmployees;\n\t}", "public String toString(){\n StringBuilder builder = new StringBuilder();\n builder.append(\"Employee :[ Name : \" + name + \", dept : \" + dept + \", salary :\"\n + salary+\", subordinates = \\n\");\n for(Employee e : this.subordinates) {\n builder.append(\"\\t\" + e + \"\\n\");\n }\n builder.append(\" ]\");\n return builder.toString();\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tEmployee employees[] = new Employee[4];\n\n\t// Assign objects of Employee to employees declared above\n\t\t\n\t\tSystem.out.println(\"Enter the Date Of Report :\" );\n\t\tString dtReport = Console.readLine();\n\t\t\n\t//\tCreate an object of EmployeeReport\n\n\t// Invoke display() method by passing the employee array\n\t}", "public static void main(String[] args) {\n\t\tEmployee e=new Employee(104, \"vik\");\r\n\t\tEmployee e1=new Employee(105, \"wik\");\r\n\t\tEmployee e2=new Employee(101, \"xik\");\r\n\t\tEmployee e3=new Employee(102, \"yik\");\r\n\t\tEmployee e4=new Employee(103, \"zik\");\r\n\t\tArrayList<Employee>al=new ArrayList<>();\r\n\t\tal.add(e);\r\n\t\tal.add(e1);\r\n\t\tal.add(e2);\r\n\t\tal.add(e3);\r\n\t\tal.add(e4);\r\n\tSystem.out.println(al);\r\n\tCollections.sort(al);// ArrayList is not ascending order so in order to do sorting we need to use .sort {its default in TreeSet so in TreeSet we don't write .sort method to sort}\r\n\tfor(Employee em:al)\r\n\t{\r\n\t\tSystem.out.println(em.getEno()+\" \"+em.getEname());\r\n\t}\r\n\t}", "public static void main (String[] args){\n Empleado[] listaEmpleados = new Empleado[10];\n \n //Asignamos objetos a cada posición\n listaEmpleados[0] = new Empleado(\"Manuel\", \"30965835V\");\n listaEmpleados[1] = new Empleado(\"Miguel\", \"30965835V\");\n listaEmpleados[2] = new Empleado(\"Pedro\", \"30965835V\");\n listaEmpleados[3] = new Empleado(\"Samuel\", \"30965835V\");\n listaEmpleados[4] = new Empleado(\"Vanesa\", \"30965835V\");\n listaEmpleados[5] = new Empleado(\"Alberto\", \"30965835V\");\n listaEmpleados[6] = new Empleado(\"Roberto\", \"30965835V\");\n listaEmpleados[7] = new Empleado(\"Carlos\", \"30965835V\");\n listaEmpleados[8] = new Empleado(\"Ernesto\", \"30965835V\");\n listaEmpleados[9] = new Empleado(\"Javier\", \"30965835V\");\n\n /*Empleado[] empleados = {\n empleado1, empleado2, empleado3, null,null,null, null,\n null,null,null\n }*/\n \n //Imprimimos el array sin ordenar\n imprimeArrayPersona(listaEmpleados);\n \n //Creamos el objeto de la empresa\n Empresa empresa0 = new Empresa(\"Indra\", listaEmpleados);\n \n //Usamos la clase array para ordenar el array de mayor a menos\n Arrays.sort(listaEmpleados);\n\n //Imprimimos de nuevo el array\n imprimeArrayPersona(listaEmpleados);\n \n //Imprimimos la empresa\n System.out.println(empresa0);\n \n //Guardamos en un string la lista de nombres de un objeto empresa\n String listado = Empresa.listaEmpleado(empresa0.empleado).toString();\n \n System.out.println(listado);//Imprimimos el listado como un string\n \n //Imprimimos el array de los nombres de los empleados de la empresa\n System.out.println(Arrays.toString(Empresa.listaEmpleadoArray(listado)));\n \n //Método que imprime los empleados de una empresa separados por comas\n Empresa.listaEmpleado(listado);\n \n /*Empresa[] listaEmpresa = new Empresa[4];\n \n listaEmpresa[0] = new Empresa(\"Intel\", listaEmpleados);\n listaEmpresa[1] = new Empresa(\"AMD\", listaEmpleados);\n listaEmpresa[2] = new Empresa(\"Asus\", listaEmpleados);\n listaEmpresa[3] = new Empresa(\"Shaphire\", listaEmpleados);\n System.out.println(Arrays.toString(listaEmpresa));\n Arrays.sort(listaEmpresa);\n System.out.println(Arrays.toString(listaEmpresa));*/\n \n \n }", "public static void main(String[] args) {\n\t\t\n\t\temployeerecords e1 = new employeerecords(\"emp001\",\"John Smith\",\"IT\",150000);\n\t\temployeerecords e2 = new employeerecords(\"emp002\",\"Brenda Kein\",\"FINANCE\",250000);\n\t\temployeerecords e3 = new employeerecords(\"emp003\", \"Clark Hope\",\"HR\",100000);\n\t\temployeerecords e4 = new employeerecords(\"emp004\",\"Diane Garner\",\"IT\",200000);\n\t\temployeerecords e5 = new employeerecords(\"emp005\",\"Julian Aniston\",\"MARKETING\",125000);\n\t\t\n\t\t\n\t\tHashMap hm = new HashMap();\n\t\t\n\t\thm.put(1,e1);\n\t\thm.put(2,e2);\n\t\thm.put(3,e3);\n\t\thm.put(4,e4);\n\t\thm.put(5,e5);\n\t\t\n\t\tIterator trav = hm.entrySet().iterator();\n\t\t\n\t\twhile(trav.hasNext())\n\t\t{\n\t\t\t\n\t\tMap.Entry record = (Map.Entry)trav.next();\n\t\temployeerecords e=(employeerecords)record.getValue();\n\t\tSystem.out.print(record.getKey() + \" \");\n\t\tSystem.out.println(e.employeeid +\" \"+ e.employeename+\" \"+e.officedepartment+\" \"+e.empsalary);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tArrayList <Person> employee_list = new ArrayList <>();\r\n\r\n//taking input for the file name\r\n\t\tSystem.out.println(\"Please enter the name of the file (with the extension) that you want to process: \");\r\n\t\tScanner sc= new Scanner(System.in);\r\n\t\tString file_name=sc.nextLine();\r\n\t\t\r\n//opening and reading the file\r\n\t\t\r\n\t\ttry {\r\n List<String> empl_Lines = Files.readAllLines(java.nio.file.Paths.get(file_name), StandardCharsets.UTF_8);\r\n for (String line: empl_Lines) {\r\n \t String[] tokens = line.split(\",\");\r\n \temployee_list.add((Person)Employee.parse(line));\r\n }\r\n }\r\n\t\tcatch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\t\t\r\n System.out.println(\"Showing the data in the unsorted format\");\r\n System.out.println();\r\n for(Person emp: employee_list) {\r\n \tSystem.out.println(emp);\r\n }\r\n System.out.println();\r\n\r\n//sorting the employee list based on their IDs in ascending order\r\n \r\n Object[] person_array = employee_list.toArray();\r\n Arrays.sort(person_array, (a,b) -> (\"\"+((Person) a).getID()).compareTo(((Person) b).getID()));\r\n System.out.println(\"Sorting the array by the people's ID:\");\r\n System.out.println();\r\n Stream<Object> stream1 = Arrays.stream(person_array);\r\n stream1.forEach(System.out::println);\r\n System.out.println();\r\n \r\n\t\t\r\n//sorting the employee list alphabetically based on their first name\r\n System.out.println(\"Sorting based on First names: \");\r\n System.out.println();\r\n Arrays.sort(person_array, (a,b) -> (\"\"+((Person) a).getFirstName()).compareTo(\"\"+((Person) b).getFirstName())); \r\n Stream<Object> stream2 = Arrays.stream(person_array);\r\n stream2.forEach(System.out::println);\r\n System.out.println();\r\n \r\n//sorting the employee list alphabetically based on their last name, if same last name, then sorting based on first name\r\n System.out.println(\"Sorting based on Last names: \");\r\n System.out.println();\r\n Arrays.sort(person_array, (a,b) -> (\"\"+((Person) a).getLastName()).compareTo(\"\"+((Person) b).getLastName())); \r\n Arrays.sort(person_array, (a, b) -> {\r\n \tint ck = (\"\" + ((Person) a).getLastName()).compareTo(\"\" + ((Person) b).getLastName()); // lastName\r\n \treturn ck != 0? ck:\r\n \t(\"\" + ((Person) a).getFirstName()).compareTo(\"\" + ((Person) b).getFirstName()); // then firstFame\r\n \t});\r\n\r\n Stream<Object> stream3 = Arrays.stream(person_array);\r\n stream3.forEach(System.out::println);\r\n System.out.println(); \r\n\t\t\r\n//showing the total average and the number of the total employees using a stream\r\n\t\t\t\tObject[] empl_array= employee_list.toArray();\r\n\t\t\t\tStream<Object> stream = Arrays.stream(empl_array);\r\n\t\t\t\tdouble avg= stream.mapToDouble(e->((Employee) e).getSalary().doubleValue()).average().getAsDouble();\r\n\t\t\t\tBigDecimal avg_sal= new BigDecimal(avg);\r\n\t\t\t\tSystem.out.print(\"The average salary is: \");\r\n\t\t\t\tSystem.out.printf(\"%.2f\", avg_sal);\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"The total number of employees is: \"+ empl_array.length);\r\n\t\t\t\tSystem.out.println();\r\n \t\t \r\n//grouping the employees based on their salary range\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\tMap<Object, DoubleSummaryStatistics> result = employee_list.stream()\r\n\t\t\t\t\t\t\t.collect(Collectors.groupingBy(emp -> \r\n\t\t\t\t\t\t\t\t\t ((Employee) emp).getSalary().doubleValue() < 25000 ? \"<25000\" :\r\n\t\t\t\t\t\t\t\t ((Employee) emp).getSalary().doubleValue() < 40000 ? \"25000-40000\" :\r\n\t\t\t\t\t\t\t\t ((Employee) emp).getSalary().doubleValue() < 70000 ? \"40000-70000\" :\r\n\t\t\t\t\t\t\t\t\t ((Employee) emp).getSalary().doubleValue() > 70000 ? \">70000\" : \">70000\",\r\n\t\t\t\t\t\t\t\t Collectors.summarizingDouble(emp -> ((Employee) emp).getSalary().doubleValue())));\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\tDoubleSummaryStatistics sal_25 = result.get(\"<25000\");\r\n\t\t\t\tdouble avg_25 = sal_25 == null ? 0.0 : sal_25.getAverage();\r\n\t\t\t\tSystem.out.println(\"<25000 --> employee count: \" + sal_25.getCount() + \" --> avg salary: \" + String.format(\"%.2f\",avg_25));\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\tDoubleSummaryStatistics sal_25_40 = result.get(\"25000-40000\");\r\n\t\t\t\tdouble avg_25_40 = sal_25_40 == null ? 0.0 : sal_25_40.getAverage();\r\n\t\t\t\tSystem.out.println(\"25000-40000 --> employee count: \" + sal_25_40.getCount() + \" --> avg salary: \" + String.format(\"%.2f\",avg_25_40));\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\tDoubleSummaryStatistics sal_40_70 = result.get(\"40000-70000\");\r\n\t\t\t\tdouble avg_40_70 = sal_40_70 == null ? 0.0 : sal_40_70.getAverage();\r\n\t\t\t\tSystem.out.println(\"40000-70000 --> employee count: \" + sal_40_70.getCount() + \" --> avg salary: \" + String.format(\"%.2f\",avg_40_70));\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\tDoubleSummaryStatistics sal_70 = result.get(\">70000\");\r\n\t\t\t\tdouble avg_70 = sal_70 == null ? 0.0 : sal_70.getAverage();\r\n\t\t\t\tSystem.out.println(\">70000 --> employee count: \" + sal_70.getCount() + \" --> avg salary: \" + String.format(\"%.2f\",avg_70));\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\t\t \r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t// Employers DATA BASE ----------------------------\n\t\t\n\t\temployee emp1 = new employee();\n\t\temp1.Name = \"John Billa\";\n\t\temp1.employeeCode = 001;\n\t\t\n\t\temployee emp2 = new employee();\n\t\temp2.Name = \"Anthony Woods\";\n\t\temp2.employeeCode = 002;\n\t\t\n\t\temployee emp3 = new employee();\n\t\temp3.Name = \"Jessica Underwood\";\n\t\temp3.employeeCode = 003;\n\t\t\t\t\n\t\t// End of Employers DATA BASE ---------------------\n\t\t\n\t\tSystem.out.println(\"Welcome! Please insert your EmployeeCode:\");\n\t\tint codeEnter = sc.nextInt();\n\t\t\n\t\tif(codeEnter == 001) {\n\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\tSystem.out.println(\"Welcome \" + emp1.Name + \" we hope you have a nice day of work.\");\n\t\t}\n\t\telse if(codeEnter == 002) {\n\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\tSystem.out.println(\"Welcome \" + emp2.Name + \" we hope you have a nice day of work.\");\n\t\t}\n\t\telse if(codeEnter == 003) {\n\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\tSystem.out.println(\"Welcome \" + emp3.Name + \" we hope you have a nice day of work.\");\n\t\t}\n\t\t\n\t\telse {\n\t\t\tSystem.out.println(\"ERROR!!! ERROR!!!\");\n\t\t\twhile (codeEnter > 003) {\n\t\t\t\tSystem.out.println(\"=====================================\");\n\t\t\t\tSystem.out.println(\"Insert Again your EmployeeCode\");\n\t\t\t\tcodeEnter = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(codeEnter == 001) {\n\t\t\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\t\t\tSystem.out.println(\"Welcome \" + emp1.Name + \" we hope you have a nice day of work.\");\n\t\t\t\t}\n\t\t\t\telse if(codeEnter == 002) {\n\t\t\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\t\t\tSystem.out.println(\"Welcome \" + emp2.Name + \" we hope you have a nice day of work.\");\n\t\t\t\t}\n\t\t\t\telse if(codeEnter == 003) {\n\t\t\t\t\tSystem.out.println(\"======================================================= \");\n\t\t\t\t\tSystem.out.println(\"Welcome \" + emp3.Name + \" we hope you have a nice day of work.\");\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"======================================================= \");\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tif (codeEnter == 001) {\n\t\t\tSystem.out.println(emp1.Name + \", what would you like to do?\");\n\t\t}\n\t\t\n\t\telse if (codeEnter == 002) {\n\t\t\tSystem.out.println(emp2.Name + \", what would you like to do?\");\n\t\t}\n\t\t\n\t\telse {\n\t\t\tSystem.out.println(emp3.Name + \", what would you like to do?\");\n\t\t}\n\t\t\n\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"1. New Delivery\");\n\t\tSystem.out.println(\"2. New Client\");\n\t\tSystem.out.println(\"3. Exit System\");\n\t\t\n\t\tint employeeChoice = sc.nextInt();\n\t\t\n\t\tswitch(employeeChoice){\n\t\t\tcase 1: \n\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 2: \n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tsc.close();\n\t}", "public List<Employee> list() {\n\t\t\treturn employees;\n\t\t}", "public static void getSalesInformation(Employee [] employee) {\n\t\tdouble total = 0;\n\t\tString report = \"-------List of employees with sales information-------\\n\";\n\t\tif (Employee.getEmployeeQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no Employee!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Employee.getEmployeeQuantity(); i++) {\n\t\t\t\ttotal += employee[i+1].getSales().getEachSales();\n\t\t\t\treport += ((i+1) + \" \" + employee[i+1].getName() + \" Sales: \" + employee[i+1].getSales().getEachSales() + \"\\n\"\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t\treport += \"\\nTotal: \" + total;\n\t\t\tJOptionPane.showMessageDialog(null, report);\n\t\t}\n\t}", "public static void fillEmployees() {\n\t\tString name1;\n\t\tString name2;\n\t\tString name3;\n\t\tString name4;\n\t\tfor(int i=0;i<auxEmployees.length;i++) { //Va llenando de una en una las filas del array auxiliar de empleados (cada fila es una empresa) con nommbres aleatorios del array employees\n\t\t\tname1=\"\";\n\t\t\tname2=\"\";\n\t\t\tname3=\"\";\n\t\t\tname4=\"\";\n\t\t\twhile (name1.equals(name2) || name1.equals(name3) || name1.equals(name4) || name2.equals(name3) || name2.equals(name4) || name3.equals(name4)) { //Si los nombres son iguales vuelve a asignar nombres\n\t\t\t\tname1=employees[selector.nextInt(employees.length)];\n\t\t\t\tname2=employees[selector.nextInt(employees.length)];\n\t\t\t\tname3=employees[selector.nextInt(employees.length)];\n\t\t\t\tname4=employees[selector.nextInt(employees.length)];\n\t\t\t}\n\t\t\tauxEmployees[i][0]=name1;\n\t\t\tauxEmployees[i][1]=name2;\n\t\t\tauxEmployees[i][2]=name3;\n\t\t\tauxEmployees[i][3]=name4;\n\t\t}\n\t}", "public List<Employee> getAllEmployees(){\n\t\tFaker faker = new Faker();\n\t\tList<Employee> employeeList = new ArrayList<Employee>();\n\t\tfor(int i=101; i<=110; i++) {\n\t\t\tEmployee myEmployee = new Employee();\n\t\t\tmyEmployee.setId(i);\n\t\t\tmyEmployee.setName(faker.name().fullName());\n\t\t\tmyEmployee.setMobile(faker.phoneNumber().cellPhone());\n\t\t\tmyEmployee.setAddress(faker.address().streetAddress());\n\t\t\tmyEmployee.setCompanyLogo(faker.company().logo());\n\t\t\temployeeList.add(myEmployee);\n\t\t}\n\t\treturn employeeList;\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Person> arr = new ArrayList<>();\n\t\tarr.add(new Person(\"billy\", \"123 Main St\", \"123456789\", \"billy@email.com\"));\n\t\tarr.add(new Student(\"bob\", \"321 Cool St\", \"987654321\", \"bob@email.com\", StatusType.FRESHMAN));\n\t\tarr.add(new Employee(\"emp\", \"789 Wow St\", \"564738291\", \"emp@email.com\", \"B1200\", 50000.0, new MyDate(-System.currentTimeMillis())));\n\t\tarr.add(new Faculty(\"Fac\", \"789 Some St\", \"564738291\", \"fac@email.com\", \"B1200\", 50000.0, new MyDate(2019, 2, 28), 8, 4, Rank.B));\n\t\tarr.add(new Faculty(\"InvalidDateFac\", \"789 CPP St\", \"564738291\", \"invaliddatefac@email.com\", \"B1200\", 50000.0, new MyDate(2019, 1, 29), 8, 4, Rank.D));\n\t\tarr.add(new Faculty(\"InvalidDateFac2\", \"789 CPP St\", \"564738291\", \"invaliddatefac2@email.com\", \"B1200\", 50000.0, new MyDate(2019, 12, 15), 8, 4, Rank.D));\n\t\tarr.add(new Staff(\"staff\", \"789 Java St\", \"564738291\", \"staff@email.com\", \"B1200\", 50000.0, new MyDate(), \"Cool Title\"));\n\n\t\ttry {\n\t\t\tarr.add(new Staff(\"InvlidSalStaff\", \"789 Java St\", \"564738291\", \"invalidsalstaff@email.com\", \"B1200\", -10000.0, new MyDate(), \"Cool Title\"));\n\t\t} catch(IllegalArgumentException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\t// print the information to the screen...\n\t\tSystem.out.println(\"Information\");\n\t\tSystem.out.println(\"-----------\");\n\t\tfor(Person p : arr) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\n\t}", "public String getEmployees(){\n return employees;\n }", "public void print()\n {\n System.out.println(name + \"\\n\");\n for(int iterator = 0; iterator < bookList.size() ; iterator++)\n {\n System.out.println((iterator+1) +\". \" + bookList.get(iterator).getTitle()+\" by \" +bookList.get(iterator).getAuthor()); \n }\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Employee [id=\" + id + \", name=\" + name + \", salary=\" + salary + \", designation=\" + designation\r\n\t\t\t\t+ \", department=\" + department + \", address=\" + address + \"]\";\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tEmployee e1 = new Professor(\"Ami\",300.0,LocalDate.of(2019, 8, 3),2);\n\t\tEmployee s1 = new Secretary(\"Jim\",400.0,LocalDate.of(2019, 2, 10),10);\n\t\t\n\n\t\t\n\t\tArrayList<Employee> list = new ArrayList<Employee>();\n\t\tlist.add(e1);\n\t\tlist.add(s1);\n\t\t\n\t\tSystem.out.println(s1);\n\t\t\n\t\tlist.forEach((e) -> {\n\t\t\t\n\t\t\tif (e instanceof Secretary)\n\t\t\t{\n\t\t\t\tSecretary s = (Secretary)e;\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.setOverTimeHour(50);\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(String.format(\"Name : %s \\nSalary : %.2f\",e.getName(), e.computeSalary()));\n\t\t});\n\t\t\n\n\t}", "public void add(){\n //Declare an ArrayList which contains string objects\n \n ArrayList<Employee> employeesList = new ArrayList<Employee>();\n \n Employee emp = new Employee();\n emp.setName(\"Marc\");\n emp.setSalary_complement(100);\n \n emp.setName(\"Paco\");\n emp.setSalary_complement(120);\n \n emp.setName(\"David\");\n emp.setSalary_complement(400);\n \n emp.setName(\"Albert\");\n emp.setSalary_complement(110);\n \n emp.setName(\"Javi\");\n emp.setSalary_complement(20);\n \n emp.setName(\"Jose\");\n emp.setSalary_complement(170);\n \n emp.setName(\"Raul\");\n emp.setSalary_complement(101);\n \n emp.setName(\"Enric\");\n emp.setSalary_complement(80);\n \n emp.setName(\"Javier\");\n emp.setSalary_complement(10);\n \n emp.setName(\"Daniel\");\n emp.setSalary_complement(120);\n \n \n employeesList.add(emp);\n /* \n ArrayList<String> employeesList = new ArrayList<>();\n employeesList.add(200,\"Marc\") ArrayList<Employee> employeesList = new ArrayList<Employee>();\n ;\n employeesList.add(250,\"Cristian\");\n employeesList.add(100,\"Paco\");\n employeesList.add(400,\"Roberto\");\n */\n }", "public void addEmployee(){\n\t\tSystem.out.println(\"Of what company is the employee?\");\n\t\tSystem.out.println(theHolding.companies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name:\");\n\t\t\tString name = reader.nextLine();\n\t\t\tSystem.out.println(\"Position:\");\n\t\t\tString position = reader.nextLine();\n\t\t\tSystem.out.println(\"Mail:\");\n\t\t\tString mail = reader.nextLine();\n\t\t\tEmployee toAdd = new Employee(name, position, mail);\n\t\t\tSystem.out.println(theHolding.addEmployee(selected, toAdd));\n\t\t}\n\t}", "public static void EmployeeTest()\r\n\t{\n\t\t\tScanner getVar = new Scanner(System.in);\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\t//Arrays to hold final values.\r\n\t\t\tString[] employeeNameArr = new String[100];\r\n\t\t\tdouble[] employeeSalArr = new double[100];\r\n\t\t\t\r\n\t\t\t//Variable for user choice.\r\n\t\t\tint choice;\r\n\t\t\t\r\n\t\t\t//Loop the menu until exit.\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t//Creating the menu.\r\n\t\t\t\tSystem.out.println(\"1. Create employee\\n2. Give Employee 10% Raise\\n3. Display Employees\\n4. Exit\");\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"Enter a choice: \");\r\n\t\t\t\tchoice = input.nextInt();\r\n\t\t\t\t\r\n\t\t\t\tswitch(choice)\r\n\t\t\t\t{\r\n\t\t\t\t/*CREATE EMPLOYEE: ASKS FOR USERS NAME AND MONTHLY SALARY\r\n\t\t\t\t \t\t\t\tCONVERTS THE MONTHLY SALARY TO YEARLY SALARY\r\n\t\t\t\t \t\t\t\tENSURES THAT THE EMPLOYEE IS PAYED.*/\r\n\t\t\t\tcase 1:\r\n\t\t\t\t{\r\n\t\t\t\t\t//Setting Employee's First Name\r\n\t\t\t\t\tSystem.out.print(\"Enter Employee's First Name: \");\r\n\t\t\t\t\tString fName = getVar.next();\r\n\t\t\t\t\tsetFirstName(fName);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Setting Employee's Last Name\r\n\t\t\t\t\tSystem.out.print(\"Enter Employee's Last Name: \");\r\n\t\t\t\t\tString lName = getVar.next();\r\n\t\t\t\t\tsetLastName(lName);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Setting Employee's Monthly Salary\r\n\t\t\t\t\twhile(true) {\r\n\t\t\t\t\t\tSystem.out.print(\"Enter the Employee's MONTHLY Salary: \");\r\n\t\t\t\t\t\tdouble createSal = getVar.nextDouble()*12;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t//Making Sure the Employee is Paid Properly\r\n\t\t\t\t\t\tif(createSal<=0) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Invalid Salary\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tsetMonthlySalary(createSal);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//Pushes the names and values into an array.\r\n\t\t\t\t\t\t\tfor(int i = 0; i <= employeeNameArr.length; i++)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(employeeNameArr[i] == null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\temployeeNameArr[i] = getFirstName() + \" \" + getLastName();\r\n\t\t\t\t\t\t\t\t\temployeeSalArr[i] = getMonthlySalary();\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\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t/*GIVE EMPLOYES 10% RAISE: ADDS 10% TO THE MONTHLY SALARY\r\n\t\t\t\t \t\t\t\t\t\tALLOWS USER TO CHOOSE EMPLOYEE FROM LIST\r\n\t\t\t\t \t\t\t\t\t\tMAKES SURE THERE IS AT LEAST ONE EMPLOYEE*/\t\r\n\t\t\t\tcase 2:\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Confirming that there is at least one employee\r\n\t\t\t\t\tif(employeeNameArr[0] == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"There are currently no employees.\\n\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Listing each employee and their yearly salary (i+1 to avoid displaying 0)\r\n\t\t\t\t\tfor(int i = 0; employeeNameArr[i] != null; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println((i+1)+\". \"+employeeNameArr[i]);\r\n\t\t\t\t\t\tSystem.out.println(\"$\"+employeeSalArr[i]+\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//User inputs which employee gets the raise.\r\n\t\t\t\t\tSystem.out.print(\"Which employee should receive the raise? : \");\r\n\t\t\t\t\tint salChoice = getVar.nextInt();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Calculating the raise to the monthly salary\r\n\t\t\t\t\temployeeSalArr[salChoice-1] = (employeeSalArr[salChoice-1]/12) * .10 + employeeSalArr[salChoice-1]/12;\r\n\t\t\t\t\t//Converting monthly salary to yearly salary\r\n\t\t\t\t\temployeeSalArr[salChoice-1] = employeeSalArr[salChoice-1]*12;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Outputting new information.\r\n\t\t\t\t\tSystem.out.println(\"New yearly salary for \" + employeeNameArr[salChoice-1] + \": \" + employeeSalArr[salChoice-1] + \"\\n\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t/*DISPLAY EMPLOYEES: MAKES SURE THERE IS AT LEAST ONE EMPLOYEE\r\n\t\t\t\t * \t\t\t\t\tLISTS ALL AVAILABLE EMPLOYEES IN ORDER OF CREATION*/\r\n\t\t\t\tcase 3:\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(employeeNameArr[0] == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"There are currently no employees.\\n\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Displaying the employees \r\n\t\t\t\t\tfor(int i = 0; employeeNameArr[i] != null; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(employeeNameArr[i]);\r\n\t\t\t\t\t\tSystem.out.println(\"$\"+employeeSalArr[i]+\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t/*EXIT: EXITS THE PROGRAM\r\n\t\t\t\t * \t\tFREES THE SCANNERS FROM MEMORY*/\r\n\t\t\t\tcase 4:\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Logging out...\");\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t\tgetVar.close();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printList() {\n System.out.println(\"Disciplina \" + horario);\n System.out.println(\"Professor: \" + professor + \" sala: \" + sala);\n System.out.println(\"Lista de Estudantes:\");\n Iterator i = estudantes.iterator();\n while(i.hasNext()) {\n Estudante student = (Estudante)i.next();\n student.print();\n }\n System.out.println(\"Número de estudantes: \" + numberOfStudents());\n }", "@Override\n\tpublic void getAllEmployee() {\n\t\t\n\t}", "@Override\r\n public String toString() {\r\n return \"Employee{\" + super.toString() + \", \" + \"employeeNumber=\" + employeeNumber + \", salary=\" + salary + '}';\r\n }", "public static void main(String[] args) {\n\t\tArrayList<Employee> list= new ArrayList<Employee>();\n\t\t\n\t\tlist.add(new Employee(3,6000,\"vinod\"));\n\t\tlist.add(new Employee(6,7500,\"Rangu\"));\n\t\tlist.add(new Employee(1,9000,\"kittu\"));\n\t\tlist.add(new Employee(5,5000,\"bunny\"));\n\t\t\n\t\tCollections.sort(list, new NameComparator());\n\t\t\n\t\tIterator it = list.iterator();\n\t\t\n\t\twhile(it.hasNext()){\n\t\t\tEmployee emp = (Employee)it.next();\n\t\t\tSystem.out.println(emp.id+\" \"+emp.salaray+\" \"+emp.name);\n\t\t\t\n\t\t\t/*Collections.sort(list, new SalaryComparator());\n\t\t\t\n\t\t\tIterator it = list.iterator();\n\t\t\t\n\t\t\twhile(it.hasNext()){\n\t\t\t\tEmployee emp = (Employee)it.next();\n\t\t\t\tSystem.out.println(emp.id+\" \"+emp.salaray+\" \"+emp.name);\n\t\t}*/\n\t}\n\t}", "@Override\r\n\tpublic List<Employee> getAllEmployee() {\n\t\treturn employees;\r\n\t}", "public static HashSet<Employee> addEmployeeDetails(int size) {\n\t\tint count = 1;\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\t\tEmployee emp = null;\n\t\tHashSet<Employee> hashLists = new HashSet<>();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\temp = new Employee();\n\n\t\t\tSystem.out.println(\"Enter the \" + count + \" Employee Details\");\n\t\t\tSystem.out.println(\"Enter the Employee id\");\n\t\t\temp.setEmpId(scan.nextInt());\n\t\t\tSystem.out.println(\"Enter the Employee name\");\n\t\t\temp.setEmpName(scan.next());\n\t\t\tSystem.out.println(\"Enter the Employee age\");\n\t\t\temp.setEmpAge(scan.nextInt());\n\t\t\tSystem.out.println(\"Enter the Employee salary\");\n\t\t\temp.setEmpSalary(scan.nextInt());\n\t\t\thashLists.add(emp);\n\t\t\tcount++;\n\t\t}\n\t\treturn hashLists;\n\n\t}", "public static void main(String[] args) {\n\t\tList<Employee_Dai> employeeList = new ArrayList<>();\r\n\t\temployeeList.add(new Employee_Dai(1, 300, 14, \"dainguyen97\", \"Nguyen Ngoc Dai\"));\r\n\t\temployeeList.add(new Employee_Dai(2, 500, 16, \"tryhard\", \"Dao Thi Nhung\"));\r\n\t\temployeeList.add(new Employee_Dai(3, 800, 18, \"nevergiveup\", \"Dinh Tien Kiet\"));\r\n\t\temployeeList.add(new Employee_Dai(4, 2000, 30, \"nothing100\", \"Nguyen Ngoc Tam\"));\r\n\t\temployeeList.add(new Employee_Dai(5, 1300, 24, \"thosan80\", \"Kieu Viet Anh\"));\r\n\t\temployeeList.add(new Employee_Dai(6, 900, 20, \"justiceleague\", \"Pham Ngoc Anh\"));\r\n\t\temployeeList.add(new Employee_Dai(7, 1000, 22, \"overnight\", \"Tran Van Phung\"));\r\n\t\temployeeList.add(new Employee_Dai(8, 1500, 28, \"theend\", \"Dang Viet Bac\"));\r\n\t\t\r\n\t\tSortBySalary(employeeList);\r\n\t\tSortByAge(employeeList);\r\n\t\tSortByName(employeeList);\r\n\t\tSearchCharacterNInUser(employeeList);\r\n\t}", "public static void addEmployee(Scanner input, ArrayList<Employee> newEmployee){\n Employee newEmp = new Employee();\n String empNumber, empHireDate;\n System.out.print(\"Please enter the employee's first and last name: \");\n newEmp.setName(input.nextLine());\n System.out.print(\"Please enter the new employee's Employee Number.\\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: \");\n empNumber = input.nextLine();\n newEmp.setNumber(verifyEmpNum(input, empNumber));\n System.out.print(\"Please enter the new employee's hire date.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1,J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n empHireDate = input.nextLine();\n newEmp.setDate(verifyHireDate(input, empHireDate));\n \n newEmployee.add(newEmp);\n \n }", "public static void main(String[] args) {\n\t\tProject project=new Project();\n\t\tproject.id=100;\n\t\tproject.name=\"Java_Training\";\n\t\t\n\t\tArrayList<Employee>empList=new ArrayList<Employee>();\n\t\tScanner sc=new Scanner(System.in);\t\t\n\t\tSystem.out.println(\"Enter the no of employees\");\n\t\t\n\t\tint limit=sc.nextInt();\n\t\t\n\t\tSystem.out.println(\"Enter Id,Name\");\n\t\tfor(int i=0;i<limit;i++){\n\t\t\tEmployee emp=new Employee();\t\t\n\t\temp.id=sc.nextInt();\n\t\temp.name=sc.next();\n \n empList.add(emp); \n\t\t}\n project.employees=empList;\n \n System.out.println(project.id+\"\\n\"+project.name);\n for(Employee temp:project.employees){\n System.out.println(temp.id);\n System.out.println(temp.name);\n }\n\t}", "public static void main (String args[] ){\n\t\tScanner scanner = new Scanner( System.in );\r\n\t\tSystem.out.print ( \" 1. Load Employee (From File) \\n 2. Exit Program \\n Enter Your Selection: \" );\r\n\t\tint input = scanner.nextInt();\r\n\t\t\r\n\t\t//if user inputs 1 read the text file and print employees loaded from the file\r\n\t\tif (input == 1 ){\r\n\t\t\tString[] Data;\r\n\t\t\t/**\r\n\t\t\t**create four arrays each of type StaffPharmacist, PharmacyManager, StaffTechnician, Senior technician\r\n\t\t\t**in order to store the employee objects. create arrays of length 1\r\n\t\t\t**/\r\n\t\t\tStaffPharmacist [] Pharmacist = new StaffPharmacist[1];\t\t\r\n\t\t\tPharmacyManager [] Manager = new PharmacyManager[1];\t\t\t\r\n\t\t\tStaffTechnician [] staffTech = new StaffTechnician[1];\t\t\t\r\n\t\t\tSeniorTechnician [] seniorTech = new SeniorTechnician[1];\r\n\t\t\ttry{\r\n\t\t\t\t//read the text file using scanner\r\n\t\t\t\tFile file = new File(\"employees.txt\");\r\n\t\t\t\t\t\t\r\n\t\t\t\tScanner sc = new Scanner(file);\r\n\t\t\t\t\t\r\n\t\t\t\t//while text file has next line split the text to store all elements in to an array\r\n\t\t\t\twhile (sc.hasNextLine()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//read the text file and store it in an array called data. split the text file at , and read until we have next line\r\n\t\t\t\t\tData = sc.nextLine().split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t//create 4 employee objects of each employee type \r\n\t\t\t\t\tPharmacyManager pharmacyManager = new PharmacyManager(Data);\r\n\t\t\t\t\tStaffPharmacist staffPharmacist = new StaffPharmacist(Data);\r\n\t\t\t\t\tStaffTechnician staffTechnician = new StaffTechnician(Data);\r\n\t\t\t\t\tSeniorTechnician seniorTechnician = new SeniorTechnician(Data);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tint i;\r\n\t\t\t\t\t/** parse through the text files to check the job id number.\r\n\t\t\t\t\tif the job id is one than the employee is pharmacy manager and there fore store it in an array of type pharmacy manager, else if job id == 2 than it is a staff pharmacist there fore store the staff pharmacist employee in the respective array. else if job id == 3 the employee is a staff technician therefore store the employee object staff technician in array of type staff technician and if the id == 4 than the employee is senior technician so store the employee senior technician in an array of type senior technician\r\n\t\t\t\t\t**/\r\n\t\t\t\t\tfor( i = 0; i < Data.length; i = i + 4){\r\n\t\t\t\t\t\tif( Integer.parseInt(Data[i]) == 1 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tManager[0] = pharmacyManager;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 2 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tPharmacist[0] = staffPharmacist;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 3 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tstaffTech[0] = staffTechnician;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 4 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tseniorTech[0] = seniorTechnician;\r\n\t\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\t\t\r\n\t\t\t\t//close the file \r\n\t\t\t\tsc.close();\r\n\t\t\t\t\t\r\n\t\t\t\t//print that the file loaded success fully\r\n\t\t\t\tSystem.out.println ( \" \\n File Successfully Loaded! \" );\r\n\t\t\t\t\t\r\n\t\t\t\t//set a boolean variable named keepgoing equal to true.\r\n\t\t\t\tboolean keepGoing = true;\r\n\t\t\t\t//as long as keep going remains true, do the following steps\r\n\t\t\t\twhile(keepGoing){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//ask the user what they would like to do next\r\n\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t\t//if user inputs 3 that is tries to print checks prior to entering hours worked than throw an error\r\n\t\t\t\t\t\tif(input == 3){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSystem.out.println( \" Please enter the hours worked (Option #2) before trying to calculate the paycheck amounts! \" );\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//again ask the user after throwing the exception about what they would like to do\r\n\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do this steps as long as user inputs 1 or 2\r\n\t\t\t\t\t\tdo{\r\n\t\t\t\t\t\t\t//if the user inputs 1 print the employee information described in respective classes of employees\r\n\t\t\t\t\t\t\tif(input == 1){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tManager[0].printPharmacyManager();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tPharmacist[0].printStaffPharmacist();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tseniorTech[0].printSeniorTechnician();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tstaffTech[0].printStaffTechnician();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//if the user inputs 2 prompt the user asking the number of hours worked by employees\r\n\t\t\t\t\t\t\telse if(input == 2){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tSystem.out.print( \" \\n Please enter the hours worked: \" );\r\n\t\t\t\t\t\t\t\tint workingHours = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//than again ask user what they would like to do\r\n\t\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t/**if user inputs 3 after they entered number of hours employees worked than calculate the employee pay checks\r\n\t\t\t\t\t\t\t\tusing the calculate pay method defined in employee class\r\n\t\t\t\t\t\t\t\tget the employees pay rate by using getHourlyRate method defined in employee class\r\n\t\t\t\t\t\t\t\t**/\r\n\t\t\t\t\t\t\t\tif(input == 3){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tManager[0].calculatePay(workingHours, Manager[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tPharmacist[0].calculatePay(workingHours, Pharmacist[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tstaffTech[0].calculatePay(workingHours, seniorTech[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tseniorTech[0].calculatePay(workingHours, staffTech[0].getHourlyRate() );\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\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//again show the menu to the user asking them what they would like to do\r\n\t\t\t\t\t\t\t//if user enters one or two or three repeat the above steps else exit the loop\r\n\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}while(input == 1 || input == 2 );\r\n\t\t\t\t\t}while(input == 3);\r\n\t\t\t\t\t//if user enters 4 set keepGoing = false print good bye and exit the loop.\r\n\t\t\t\t\tif(input == 4){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tkeepGoing = false;\r\n\t\t\t\t\t\tSystem.out.println( \" Goodbye! \" );\r\n\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//if the file is not found in the system throw an IO exception printing file not found\t\t\t\t\t\t\t\r\n\t\t\t}catch(FileNotFoundException fnfe){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t//catch the exception if the file is not found\r\n\t\t\t\tSystem.out.println(\" File Load Failed! \\n java.io.FileNotFoundException: employees.txt ( The system cannot find the file specified) \\n Program Exiting..... \");\r\n\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t//if the user inputs 2 in the main menu bar exit the loop and say goodBye!\r\n\t\tif(input == 2){\r\n\t\t\t\t\r\n\t\t\tSystem.out.println ( \"\\n Good Bye! \\n\" );\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Employeearraylist> hs = new ArrayList<>();\n\t\ths.add(new Emp(\"Poornima\",1214,\"Guntur\",30000));\n\t\ths.add(new Emp(\"vaishnavi\",1215,\"banglore\",35000));\n\t\ths.add(new Emp(\"geetha\",1216,\"kolkata\",12000));\n\t\ths.add(new Emp(\"bhavi\",1217,\"hyd\",45000));\n\t\ths.add(new Emp(\"ravi\",1218,\"pune\",56000));\n\t\n\t\tCollections.sort(e, (e1, e2) -> {\n\n\t\t\treturn (e1.name).compareTo(e2.name);\n\t\t});\n\t\tfor (Employeearraylist employee : e) {\n\t\t\tSystem.out.println(employee);\n\t\t}\n\t\tList<Integer> l = new ArrayList<Integer>();\n\t\tList<Integer> i = e.stream().filter(p -> p.salary > 70000).map(p -> p.salary).collect(Collectors.toList());\n\t\tSystem.out.println(\"salary greater than 70000\" + i);\n\t\tOptional<Integer> sal = e.stream().map(p -> p.salary).reduce((sum, salary) -> (sum + salary));\n\t\tSystem.out.println(\"sum of total employee salaries are\" + sal);\n\t\tlong se = e.stream().count();\n\t\tSystem.out.println(se);\n\n\t\t;\n\t}", "public static void getVehicleInformation(Employee [] employee) {\n\t\tif (Vehicle.getVehicleQuantity() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no vehicle!\");\n\t\t} else {\n\t\t\tfor (int i = 0; i < Vehicle.getVehicleQuantity(); i++) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"-------List of Vehicles-------\\n\"\n\t\t\t\t\t\t+ (i+1) + \" \" + employee[i+1].getVehicle().getName() + \"\\n\");\n\t\t\t}\t\t\t\n\t\t}\n\t}", "public static void forEach(HashSet<Employee> employeDetails) {\n\t\tfor (Employee emp : employeDetails) {\n\t\t\tSystem.out.println(emp.getEmpId() + emp.getEmpName() + emp.getEmpAge() + emp.getEmpSalary());\n\t\t}\n\t}", "HashSet<String> displayEmployee();", "public com.example.nettyserver.protobuf.Employee.EmployeeInfo getEmployeelist() {\n return employeelist_ == null ? com.example.nettyserver.protobuf.Employee.EmployeeInfo.getDefaultInstance() : employeelist_;\n }", "public void show_book()\n\t{\n\t\tsize=arr.size();\n\t\tif(size>0)\n\t\t{\n\t\t\t\n\t\t\tSystem.out.println(\"===========================================================\");\n\t\t\tSystem.out.println(\"Address Book List\");\n\t\t\tSystem.out.println(\"------------------------------------------------------------\");\n\t\t\tint i=1;\n\n\t\t\t//Special loop:= For Each loop for array list\n\t\t\tfor(String x: arr)\n\t\t\t{\n\t\t\t\tSystem.out.println(i+\". \"+x);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tSystem.out.println(\"------------------------------------------------------------\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"No data Found\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t\tEmployee sureshEmployee=new Employee();\n\t\tEmployee rameshEmployee=new Employee();\n\t\tEmployee dhineshEmployee=new Employee();\n\t\t\n\t\tList <Employee>employeeList=new ArrayList<Employee>();\n\t\tdhineshEmployee=rameshEmployee;\n\t\t\n\t\t\n\t\t\n\t\trameshEmployee.setDepartment(\"developer\");\n\t\trameshEmployee.setName(\"ramesh kumar\");\n\t\trameshEmployee.setEmployeeId(1001);\n\t\t\n\t\tsureshEmployee.setEmployeeId(1002);\n\t\tsureshEmployee.setName(\"suresh kumar\");\n\t\t\n\t\temployeeList.add(sureshEmployee);\n\t\temployeeList.add(dhineshEmployee);\n\t\temployeeList.add(rameshEmployee);\n\t\tSystem.out.println(employeeList);\n\t\t\n\t\tfor(int i=0;i<employeeList.size();i++){\n\t\t\tSystem.out.println(employeeList.get(i).getEmployeeId());\n\t\t}\n\t\n\t\tIterator iterator=employeeList.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\t\n\t\tfor(Employee e:employeeList){\n\t\t\tSystem.out.println(e.getEmployeeId());\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// structure /skelton/ frame + work\n\t\t// \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//System.out.println(Integer.toHexString(rameshEmployee.hashCode()));\n\t\t//System.out.println(rameshEmployee == sureshEmployee);\n\t\t//System.out.println(rameshEmployee == dhineshEmployee);\n\t\tSystem.out.println(rameshEmployee.equals(sureshEmployee));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// content \n\t\t\n\t//\tSystem.out.println(rameshEmployee.toString().hashCode());\n\t\t//System.out.println(sureshEmployee.hashCode());\n\t\t//System.out.println(dhineshEmployee.hashCode());\n\t\t\n\t\t\n\n\t}", "public void printWhoIsPresent() {\n for(Employee emp : employees) {\n if(emp.isPresent()) {\n System.out.println(emp);\n }\n }\n }", "private void listEmployees(HttpServletRequest request, HttpServletResponse response) \r\n\t\tthrows Exception {\n\t\tList<Employee> employees = employeeDAO.getEmployees();\r\n\t\t\r\n\t\t// add students to the request\r\n\t\trequest.setAttribute(\"EMPLOYEE_LIST\", employees);\r\n\t\t\t\t\r\n\t\t// send to JSP page (view)\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"/list-employees.jsp\");\r\n\t\tdispatcher.forward(request, response);\r\n\t}", "public static void main(String[] args) {\n Person[] staffs = new Person[3];\r\n Staff staff [] = new Staff[3];\r\n //JOptionPane.showMessageDialog(null,s1.toString());\r\n\r\n for(int i=1;i<=staff.length;i++){\r\n\r\n staff[i].setName(JOptionPane.showInputDialog(\"Enter Name: \"));\r\n staff[i].setAddress(JOptionPane.showInputDialog(\"Enter Address: \"));\r\n staff[i].setEmail(JOptionPane.showInputDialog(\"Enter Email: \"));\r\n staff[i].setPhoneNum(JOptionPane.showInputDialog(\"Enter Phone Number: \"));\r\n staff[i].setPps(JOptionPane.showInputDialog(\"Enter PPS: \"));\r\n staff[i].setEmpNum(Integer.parseInt(JOptionPane.showInputDialog(\"Enter Employee Number: \")));\r\n staff[i].setJobTitle(JOptionPane.showInputDialog(\"Enter Job Title: \"));\r\n i++;\r\n\r\n JTextArea area = new JTextArea(\"The full list of friends\\n\");\r\n for (i = 0; i< staffs.length; i++) // reuse the same 'i'\r\n area.append(staffs[i] + \"\\n\"); \r\n }\r\n }", "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"******student name list****\");\n\t\t// 1. creating arraylist\n\n\t\tList<String> studentNameList = new ArrayList<String>();\n\t\t// before adding elements\n\t\tSystem.out.println(\"isEmpty: \" + studentNameList.isEmpty());\n\t\tSystem.out.println(\"size: \" + studentNameList.size());\n\n\t\t// 2. adding elements: add method returns true\n\t\tstudentNameList.add(\"VIRAT\");\n\t\tstudentNameList.add(\"SACHIN\");\n\t\tstudentNameList.add(\"RAHUL\");\n\t\tstudentNameList.add(\"RAHUL\"); // arraylist can contain duplicate\n\t\t\t\t\t\t\t\t\t\t// elments.\n\n\t\t// 3. getting elements based upon index.\n\n\t\tSystem.out.println(studentNameList.get(0));\n\t\tSystem.out.println(studentNameList.get(1));\n\t\tSystem.out.println(studentNameList.get(2));\n\t\tSystem.out.println(studentNameList.get(3));\n\n\t\t// after adding elements;\n\t\tSystem.out.println(\"isEmpty: \" + studentNameList.isEmpty());\n\t\tSystem.out.println(\"size: \" + studentNameList.size());\n \n\t}", "public static void main(String[] args) {\nEmployee emp = new Employee(1,\"Pankaj\",\"CEO\");\nEmployee emp1 = new Employee(2,\"AAAA\",\"CTO\");\n\t\tArrayList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\temployees.add(emp1);\n\t\temployees.add(emp);\n\t\temployees.add(new Employee(3,\"sdfd\",\"hr\"));\n\t\t\n\t\tfor(Employee e : employees)\n\t\t{\n\t\t\t//System.out.println(e.id+\" \"+e.name);\n\t\t\tif(e.getId()>2)\n\t\t\t\te.setDept(\"Manager\");\n\t\t\t\n\t\t\tSystem.out.println(e.getDept()+\" \"+e.getId()+\" \"+e.getName());\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"----\" + \"Employee [salary=\" + salary + \", profession=\" + profession + \"]\";\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\t\tif(employees.size() >= 1){\n\t\t\t\t\tif(empNameCombo.getSelectedIndex() != 0){\n\t\t\t\t\t\tfor(Employee employee: employees){\n\t\t\t\t\t\t\tif(employee.getEmployeeName().equalsIgnoreCase(empNameCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\t\tempJTextArea.setText(\"Employee ID: \"+employee.getEmployeeId()\n\t\t\t\t\t\t\t+\"\\n Name: \" +employee.getEmployeeName() \n\t\t\t\t\t\t\t+\"\\n Access Level: \" +employee.getAccess()\n\t\t\t\t\t\t\t+\"\\n Password: \" +employee.getPassword()\n\t\t\t\t\t\t\t+\"\\n Salary: \" +employee.getSalary());\n\t\t\t\t\t\t\tempNameCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Employee.\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No Employees Found\");\n\t\t\t\t}\n\t\t\t}", "private static void dataOfPatients(Scanner scanner, Employee employee) {\n\t\tList<Patient> patients = employee.getPatients();\n\t\tfor (Patient patient : patients) {\n\t\t\tSystem.out.println(patient.toString());\n\t\t}\n\t}", "public void list()\n {\n for(Personality objectHolder : pList)\n {\n String toPrint = objectHolder.getDetails();\n System.out.println(toPrint);\n }\n }", "public void checkEmployeeEvents(Employee e){\r\n int choice;\r\n for (Event ev: e.eventsArray)\r\n {\r\n System.out.println((e.eventsArray.indexOf(ev)+1)+ \" \" + ev.getEventName());\r\n }\r\n if((e.eventsArray.size()==0))\r\n System.out.println(e.getName() + \" has no events\");\r\n else {\r\n System.out.println(\"Which event do you want to check? Input number!\");\r\n choice = kbd.nextInt();\r\n System.out.println(e.eventsArray.get(choice - 1).toString());\r\n }\r\n }", "public void listing() {\r\n int count = 1;\r\n for (AdressEntry i : addressEntryList) {\r\n System.out.print(count + \": \");\r\n System.out.println(i);\r\n count++;\r\n }\r\n System.out.println();\r\n }", "public void actionPerformed(ActionEvent e){\n\t\t\t\tempJTextArea.setText(null);\n\t\t\t\t\tif(employees.size() >= 1){\n\t\t\t\t\t\tfor(Employee employee: employees){\n\t\t\t\t\t\t\tempJTextArea.append(\"\\n Employee ID: \"+employee.getEmployeeId()\n\t\t\t\t\t\t\t+\"\\n Name: \" +employee.getEmployeeName() \n\t\t\t\t\t\t\t+\"\\n Access Level: \" +employee.getAccess()\n\t\t\t\t\t\t\t+\"\\n Password: \" +employee.getPassword()\n\t\t\t\t\t\t\t+\"\\n Salary: \" +employee.getSalary()+\"\\n\");\n\t\t\t\t\t\t\tempJTextArea.setCaretPosition(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No Employees Found\");\n\t\t\t\t\t}\n\t\t\t}", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"shiyong@cs.sunysb.edu\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "public Employee[] getEmployeesList() {\n\t\treturn employees;\n\t}", "public static void main(String[] args) {\n \n empleado[] misEmpleados=new empleado[3];\n //String miArray[]=new String[3];\n \n misEmpleados[0]=new empleado(\"paco gomez\",123321,1998,12,12);\n misEmpleados[1]=new empleado(\"Johana\",28500,1998,12,17);\n misEmpleados[2]=new empleado(\"sebastian\",98500,1898,12,17);\n \n /*for (int i = 0; i < misEmpleados.length; i++) {\n misEmpleados[i].aumentoSueldo(10);\n \n }\n for (int i = 0; i < misEmpleados.length; i++) {\n System.out.println(\"nombre :\" + misEmpleados[i].dameNombre() + \" sueldo \" + misEmpleados[i].dameSueldo()+ \" fecha de alta \"\n + misEmpleados[i].dameContrato());\n }*/\n \n for (empleado e:misEmpleados) {\n e.aumentoSueldo(10);\n \n }\n for (empleado e:misEmpleados) {\n System.out.println(\"nombre :\" + e.dameNombre() + \" sueldo \" + e.dameSueldo()+ \" fecha de alta \"\n + e.dameContrato());\n \n }\n \n }", "public String toString(){\r\n return getNumber() + \":\" + getLastName() + \",\" + getFirstName() + \",\" + \"Sales Employee\";\r\n }", "public void setEmployees(ArrayList<Employee> employees) { \r\n this.employees = employees;\r\n }", "@Override\n\tpublic List<Map<String, String>> employeeList() throws Exception {\n\t\treturn null;\n\t}" ]
[ "0.80568767", "0.7687963", "0.7665738", "0.7550573", "0.7444593", "0.72702765", "0.72663814", "0.7261654", "0.72303003", "0.70486766", "0.70174587", "0.6928397", "0.68862826", "0.6856019", "0.6846062", "0.6820173", "0.6806885", "0.67053634", "0.67041427", "0.66482824", "0.66141397", "0.65964264", "0.65890384", "0.6556089", "0.65271014", "0.6518053", "0.6471233", "0.6441624", "0.6431071", "0.6428646", "0.6427205", "0.64150786", "0.6411489", "0.63947344", "0.6385525", "0.63676286", "0.63650906", "0.63618207", "0.63559103", "0.6345906", "0.63447124", "0.6321316", "0.63126653", "0.6291956", "0.62858593", "0.6276371", "0.626817", "0.6260156", "0.62585765", "0.62497735", "0.6240047", "0.6235778", "0.6230489", "0.62271035", "0.6204504", "0.6191604", "0.6169939", "0.61624515", "0.615854", "0.6149843", "0.61488426", "0.6148567", "0.61446315", "0.61431736", "0.6136465", "0.61329824", "0.61307305", "0.6130285", "0.61269176", "0.61247295", "0.6120668", "0.61186534", "0.6113529", "0.6106645", "0.61027855", "0.61001885", "0.6089617", "0.60662", "0.606208", "0.60481036", "0.60474217", "0.60434717", "0.60381633", "0.6037512", "0.6036635", "0.60352296", "0.603521", "0.60328823", "0.60296583", "0.60268784", "0.60255414", "0.6010108", "0.6000692", "0.60003537", "0.59983647", "0.5987057", "0.597941", "0.5972581", "0.596281", "0.59604895" ]
0.7670372
2
This method thanks the user for using them program and exits
public static void farewell(){ System.out.print("Thank you for using the Human Resources Mangement System.\nGoodbye!"); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void exitProgram() {\n\r\n System.out.println(\"Thank you for using 'Covid 19 Vaccination Center Program'. \\n Stay safe!\");\r\n System.exit(0);\r\n }", "public static void checkFromUser() {\n\t\tif (askUser(\"Please type y to execute program and any other key to stop\").contentEquals(\"y\")) {\n\t\t\tSystem.out.println(\"Continuing\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Terminating program\");\n\t\t\tSystem.exit(0); \n\t\t}\n\t\tSystem.out.println(\"Calculating the greatest house income, the greatest income after expenditure and greatest savings from the given 3 families\");\n\t}", "public void requestExit()\r\n {\r\n // WE MAY HAVE TO SAVE CURRENT WORK\r\n boolean continueToExit = true;\r\n if (!saved)\r\n {\r\n // THE USER CAN OPT OUT HERE\r\n continueToExit = promptToSave();\r\n }\r\n \r\n // IF THE USER REALLY WANTS TO EXIT THE APP\r\n if (continueToExit)\r\n {\r\n // EXIT THE APPLICATION\r\n System.exit(0);\r\n }\r\n }", "public void exitProgram() {\n System.out.println(\"Closing Ranking....\");\n ScannerInputs.closeScanner();\n System.exit(0);\n }", "private static void exitArgumentError() {\n\t\tSystem.out.println(\"To run the application, please input the following arguments:\");\n\t\tSystem.out.println(\"java -jar aqmaps.jar DD MM YY latitude longitude random_seed port_number\");\n\t\tSystem.exit(1); \n\t}", "private void ExitProc()\r\n\t{\r\n\t\tint n = JOptionPane.showConfirmDialog(\r\n\t\t\t frame ,\r\n\t\t\t \"EXIT NOF FreeWare ???\",\r\n\t\t\t \"--NOF--\",\r\n\t\t\t JOptionPane.YES_NO_OPTION);\r\n\t\t\r\n\t\t//user pressed result.\r\n\t\tswitch (n) \r\n\t\t{\r\n\t\tcase 0: //yes\r\n\r\n\t\t\tframe.dispose();\r\n\t\t\tl = new log(\"event\",\"Exit Software\",\"Exit Pressed - Thank you for using NOF Software.\");\r\n\t\t\terase del = new erase(StStr); //StStr);\r\n\t\t\t//del.erase_output(StStr);\r\n\t\t\tSystem.exit(0); // Exit Program\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase 1: //no\r\n\t\t\tl = new log(\"event\",\"Exit_option\",\"Exit - have been canceled\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t}", "private void exitProgram() {\n try {\n logic.updateInventory();\n } catch (FileIOException e) {\n view.displayExceptionMessage(\"Error updating inventory file: \" + e.getMessage());\n view.waitOnUser();\n }\n view.showExitMessage();\n }", "private void runApp() {\n boolean running = true;\n String command;\n\n while (running) {\n showCommands();\n command = input.next().toLowerCase();\n\n if (command.equals(\"exit\")) {\n running = false;\n } else {\n execute(command);\n }\n }\n\n System.out.println(\"\\nExiting.\");\n }", "private static void quitProgram(Scanner input) {\n System.out.println(\"Thank you, ending session.\");\n input.close();\n System.exit(0);\n }", "public void exitTheProgram(){\n System.exit(0);\n }", "private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public static void main(String[] args) {\n ICommand[] commandRegister = {\n new LeagueCmd(),\n new TeamCmd(),\n new MatchCmd(),\n new LoadCmd(),\n new SaveCmd()\n };\n if (Utils.initSaveFileLocation()) {\n final CommandHandler cmdHandler = new CommandHandler(commandRegister);\n Scanner scanner = new Scanner(System.in);\n boolean isExited = false;\n String userInput;\n String[] exitCmd = {\"exit\", \"quit\", \"close\"};\n\n System.out.println(\"# CompetitionManager.\\nAfin d'afficher la liste des commandes, entrez \\\"help\\\".\");\n Utils.displayBasePath();\n\n while (!isExited) {\n // Boucle de lecture des commandes\n System.out.printf(\"%s> \", renderSelected());\n userInput = scanner.nextLine();\n if (Arrays.asList(exitCmd).contains(userInput)) isExited = true;\n else cmdHandler.handleMessage(userInput);\n }\n } else {\n System.out.println(\"Une erreur est survenue lors de l'initialisation de l'application.\");\n }\n }", "public void quitProgram(){}", "public void menu()\r\n\t{\r\n\t\t//TODO\r\n\t\t//Exits for now\r\n\t\tSystem.exit(0);\r\n\t}", "private void processQuit() {\n System.exit(0);\n }", "private static void exitAsInvalidInput() {\n\t\tSystem.out.println(\n\t\t\t\t\"You have entered invalid input. Exiting the system now.\");\n\t\tSystem.exit(0);\n\t}", "public void exitProgram() {\n\t\tgoOffline();\n\t\tmainWindow.dispose();\n\t\tif (config_ok)\n\t\t\tsaveConnectionConfiguration();\n\t\tSystem.exit(0);\n\t\t\n\t}", "private void exitRegards()\n {\n System.out.println(\"\\t\\tSystem exit...\");\n System.out.println(\"\\t\\t================Thankyou, have a wonderful day! ===============\");\n System.exit(0);\n }", "public void quit(){\n this.println(\"Bad news!!! The library has been cancelled!\");\n System.exit(0);\n\n }", "public void home()\n {\n \n Scanner console = new Scanner(System.in);\n String answer = \"\";\n boolean valid = false;\n \n while(!valid)\n {\n menu.homeDisplay();\n answer = console.nextLine().trim();\n valid = validation.integerValidation(answer, 1, 3);\n }\n \n\n if (answer.equals(\"1\"))\n {\n register();\n menu.welcomeNewUser();\n runOJSS();\n }\n \n else\n if(answer.equals(\"2\"))\n runOJSS();\n \n else\n if(answer.equals(\"3\"))\n exit();\n }", "public void exit() {\n System.out.println(\"Thank you for playing Nim\");\n }", "public void exit() {\n try {\n processLine(\"exit\");\n } catch (NoSystemException ex) {\n\t\t\tLog.error(\"No System available. Please load a model before executing this command.\");\n }\n }", "public static void main(String []args) {\n\t\t/*\n\t\t * The user will be shown two options:\n\t\t * Exit from the system by pressing 0.\n\t\t * OR\n\t\t * Enabling user to enter credential information(Email Id and Password) by pressing 1.\n\t\t * If user enters any other key Invalid choice will be displayed and again user will be given two choices.\n\t\t * */\n\t\tboolean run = true;\n\t\twhile(run) {\n\t\t\tviewOptions();\n\t\t\ttry {\n\t\t\t\tint option = sc.nextInt();\n\t\t\t\tswitch(option) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\t//If user enters 0 terminate the while loop by making run = false.\n\t\t\t\t\t\trun = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t//Try to login into the system\n\t\t\t\t\t\tattemptToLogin();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tlog.error(\"Invalid Choice!\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If user tries to enter non numeric characters exception will be thrown and will caught below.\n\t\t\tcatch(InputMismatchException e){\n\t\t\t\tlog.error(\"Invalid Choice!\");\n\t\t\t}\t\t\n\t\t}\n\t}", "public static void main(String[] args) {\n \n int result=JOptionPane.showConfirmDialog(null,\"Are you sure to Exit?\",\n \"My Question\",JOptionPane.YES_NO_OPTION);\n \n switch(result){\n case JOptionPane.YES_OPTION :\n JOptionPane.showMessageDialog(null,\"OK we do..\");\n break;\n \n case JOptionPane.NO_OPTION :\n JOptionPane.showMessageDialog(null,\"OK we do not..\");\n break;\n \n case JOptionPane.CANCEL_OPTION :\n JOptionPane.showMessageDialog(null,\"OK we cancel it..\");\n }\n }", "private static void CLIapplication() {\n\n\t\tboolean done = false;\n\t\tdo {\n\t\t\tint choice = HQmenu();\n\t\t\tSite newSite;\n\n\t\t\tswitch(choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Register exchange office\");\n\t\t\t\tnewSite = createNewSite();\n\t\t\t\tif(sites.containsKey(newSite.getSiteName())) {\n\t\t\t\t\tSystem.out.println(\"Site already registred!1\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsites.putIfAbsent(newSite.getSiteName(), newSite);\t\t\t\t\t\n\t\t\t\t\twriteNewSiteToConfigFile(newSite.getSiteName());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(sites.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"You need to register site(s) first.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tCLIHelper.menuInput();\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\tdone = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Not a valid menu choice!\");\n\t\t\t}\n\t\t\tlogger.info(\"-------Task_Done-------\\n\");\n\t\t}while(!done);\n\t}", "public void giveUp(){\r\n System.out.println(\"You are such a loser. Glad that you give up!\");\r\n System.exit(0);\r\n }", "public void exitApp() {\n\t\tSystem.out.println(\"Exiting PhoneBook\");\n\n\t}", "@Override\n public void terminateProgram() {\n \n }", "private void launch() {\n\n boolean running = true;\n while (running) {\n System.out.println(\"What would you like to do?\");\n System.out.println(\"1 - Add a new patient file\");\n System.out.println(\"2 - Delete an existing patient file\");\n System.out.println(\"0 - Exit\");\n System.out.println(\"\\n >\");\n\n //Scanner reader = new Sca(System.in);\n // int input = reader.nextInt();\n\n try {\n String userInput = System.console().readLine();\n\n int userSelection = Integer.parseInt(userInput);\n\n switch (userSelection) {\n case 0:\n running = false;\n break;\n\n case 1:\n System.out.println(\"Please enter patient details.\");\n System.out.println(\"You selected option 1 : Enter first name:\");\n String name = System.console().readLine();\n System.out.println(\"Please Enter age:\");\n int age = Integer.parseInt(System.console().readLine());\n System.out.println(\"Please Enter illness:\");\n String illness = System.console().readLine();\n HospitalManager hm = new HospitalManager();\n Patient firstPatient = hm.getFirstPatient();\n hm.addPatient(firstPatient);\n System.out.println(\"\\n\");\n System.out.println(\"Name: \" + firstPatient.getName() + \" Age: \"\n + firstPatient.getAge() + \" illness :\" + firstPatient.getIllness());\n System.out.println(\"\\n\");\n break;\n\n case 2:\n break;\n\n default:\n System.out.println(\"Invalid option selected. Please try again.\");\n }\n } catch (NumberFormatException ex) {\n running = false;\n System.out.println(\"Please enter a valid integer. Error processing input.\");\n }\n }\n }", "public static void main(String[] args) {\n menu();\r\n int num = 0;\r\n try {\r\n Scanner scan = new Scanner(System.in);\r\n num = scan.nextInt();\r\n } catch (InputMismatchException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n switch (num)\r\n {\r\n case 1:\r\n commercial();\r\n break;\r\n case 2:\r\n residential();\r\n case 3:\r\n System.out.println(\"Your session is over\");\r\n default:\r\n System.out.println(\"\");\r\n }\r\n\r\n }", "private void runAuctionApp() {\r\n exitApp = false;\r\n String command;\r\n input = new Scanner(System.in);\r\n System.out.println(\"Welcome to C-Auction!\");\r\n\r\n loadCarListings();\r\n\r\n while (!exitApp) {\r\n\r\n displayMenu();\r\n command = input.next();\r\n\r\n processInput(command);\r\n\r\n }\r\n System.out.println(\"The application is closing\");\r\n }", "public void run() throws IOException {\n String EXIT_COMMAND = \"7\";\n ui.printIntro();\n ui.printExeType();\n String exeCommand = ui.getStringInput();\n while (!exeCommand.equals(EXIT_COMMAND)) {\n Parser parser = new Parser(ui, tasks);\n parser.parseCommand(exeCommand); //to select the exeType and execute it\n ui.printExeType(); //user guide after execution of command\n exeCommand = ui.getStringInput(); //get the next command\n }\n ui.printExit();\n }", "public void exit();", "public static void main(String[] args) {\n final Scanner scanner = new Scanner(System.in);\n boolean exit = false;\n String select;\n loadFromFile();\n do {\n System.out.println(\"Premier League Manager\");\n System.out.println(\"=================================\");\n System.out.println(\"Please enter A to Add Football Club\");\n System.out.println(\"Please enter D to Delete Football Club\");\n System.out.println(\"Please enter S to Display Club Statistics\");\n System.out.println(\"Please enter P to Display League Table\");\n System.out.println(\"Please enter M to Add Played Match\");\n System.out.println(\"Please enter G to Start GUI\");\n System.out.println(\"Please enter Q to Exit\");\n System.out.print(\"Please enter your choice: \");\n select = scanner.nextLine();\n switch (select){\n case \"A\":\n case \"a\" :\n addFootballClub();\n exit = false;\n break;\n case \"D\":\n case \"d\":\n deleteFootballClub();\n exit = false;\n break;\n case \"S\":\n case \"s\":\n displayStatistics();\n exit = false;\n break;\n case \"P\":\n case \"p\":\n displayLeagueTable();\n exit = false;\n break;\n case \"M\":\n case \"m\":\n addPlayedMatch();\n exit = false;\n break;\n case \"G\":\n case \"g\":\n gui();\n exit = false;\n break;\n case \"Q\":\n case \"q\":\n //saveToFile();\n System.exit(0);\n exit = true;\n default:\n System.out.println(\"Invalid choice! please try again\");\n exit = false;\n\n }\n }while (!exit);\n\n\n }", "public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}", "public static void main(String[] args) {\n\t\tString option = \"\";\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile (!option.equals(\"3\")) {\n\t\t\tcreateMenu(scanner);\n\t\t\toption = scanner.nextLine();\n\t\t\tswitch (option) {\n\t\t\tcase \"1\":\n\t\t\t\tcreateQuestions(scanner);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tquizView();\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tSystem.out.println(\"Exit program...\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Invalid option! Please choose again.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Goodbye!\");\n\t\tscanner.close();\n\t}", "public void quit() {System.exit(0);}", "private void quit()\n\t{\n\t\tapplicationView.showChatbotMessage(quitMessage);\n\t\tSystem.exit(0);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t// Set up Scanner object\n\t\tScanner keyboard = new Scanner(System.in);\n\t\t\n\t\t// Print welcome message\n\t\tSystem.out.println(\"Welcome to JGRAM.\");\n\t\t\n\t\t// Loop until the user indicates they wish to exit\n\t\tboolean keepGoing = true;\n\t\twhile (keepGoing) {\n\t\t\n\t\t\t// Post1 Task and secret prompt\n\t\t\tSystem.out.println(\"\\n---------------------------------[ INPUT ]--\"\n\t\t\t\t\t+ \"-----------------------------------\\n\");\n\t\t\tString task = prompt(TASK_SELECTION, keyboard);\n\t\t\t\n\t\t\t// Post3 Task execution\n\t\t\tswitch (task) {\n\t\t\t\t\n\t\t\t\t// New Document\n\t\t\t\tcase \"1\":\n\t\t\t\t\tTask newDocTask = new NewDocumentTask(keyboard);\n\t\t\t\t\tnewDocTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Evaluation\n\t\t\t\tcase \"2\":\n\t\t\t\t\tString evalSecret = prompt(GET_SECRET, keyboard);\n\t\t\t\t\tSystem.out.println(SECRET_REMINDER);\n\t\t\t\t\tTask evalTask = new EvaluationTask(evalSecret, keyboard);\n\t\t\t\t\tevalTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Tamper\n\t\t\t\tcase \"3\":\n\t\t\t\t\tString tamperSecret = prompt(GET_SECRET, keyboard);\n\t\t\t\t\tSystem.out.println(SECRET_REMINDER);\n\t\t\t\t\tTask tamperTask = new TamperTask(tamperSecret, keyboard);\n\t\t\t\t\ttamperTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t// Report\n\t\t\t\tcase \"4\":\n\t\t\t\t\tTask assignmentReportTask = new AssignmentReportTask(keyboard);\n\t\t\t\t\tassignmentReportTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t// Help\n\t\t\t\tcase \"5\":\n\t\t\t\t\thelp();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Exit\n\t\t\t\tcase \"6\":\n\t\t\t\t\tkeepGoing = false;\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Invalid selection\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Invalid selection. Please try again.\");\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t} // End switch\n\t\t\t\t\t\n\t\t\t\n\t\t} // End while\n\t\t\n\t\tkeyboard.close();\n\t\tSystem.out.println(\"Goodbye...\");\n\t}", "public void exitGame() {\n System.out.println(\"Thank you and good bye!\");\n System.exit(0);\n }", "@Override\n public void execute() {\n System.out.println(\"programm closed\");\n System.exit(0);\n }", "protected void exit() {\n\t\tSystem.exit(0);\n\t}", "final private static void usage () {\n\t\t usage_print () ;\n\t\t System.exit (0) ;\n }", "public static int quit() {\r\n int quit = JOptionPane.showConfirmDialog(null, \"Exit Program? \", null, JOptionPane.YES_NO_OPTION);\r\n if (quit != 0) {//Confirms Program Termination\r\n //do nothing \r\n } else\r\n System.exit(quit);\r\n return quit;\r\n }", "public static void main(String[] args) {\n\t\tinvalidInput();\n\n\t}", "public void cancelarIniciarSesion(){\n System.exit(0);\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint select = 0;\n\n\t\t//Menu for accessing applications\n\t\twhile (select != 3) {\n\t\t\tSystem.out.println(\"\\n*************************************************\");\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"\\nPlease make your choice between Applications. \\n\\n1. Rolling Dice App. \\n2. Airline Reservation System\\n3. Exit\\n\");\n\t\t\tSystem.out.println(\"*************************************************\");\n\t\t\tselect = scan.nextInt();\n\n\t\t\tif (select == 1) {\n\t\t\t\tDice_Rolling_App Obj1 = new Dice_Rolling_App();\n\t\t\t\tselect = 0;\n\t\t\t}\n\n\t\t\telse if (select == 2) {\n\t\t\t\tAirline Flight = new Airline();\n\t\t\t\tselect = 0;\n\t\t\t\t}\n\t\t\t\n\t\t\telse if (select == 3) {\n\t\t\t\tSystem.out.println(\"\\nExiting the system......\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nPlease enter choice No. 1 or choice No. 2, or choice No. 3\");\n\n\t\t\t}\n\t\t}\n\n\t}", "public void console() throws RemoteException {\r\n Scanner in = new Scanner(System.in);\r\n do {\r\n System.out.println(\"Select one of the following options:\");\r\n System.out.println(\" 1: Be a publisher\");\r\n System.out.println(\" 2: Be a subscriber\");\r\n System.out.println(\" 3: Save & quit\");\r\n System.out.print(\"Enter a number:\");\r\n int choice = 0;\r\n try {\r\n choice = in.nextInt();\r\n } catch (Exception e) {\r\n System.err.println(\"Provide a Valid Option... \");\r\n }\r\n switch (choice) {\r\n case 1: {\r\n optionsForPublisher();\r\n break;\r\n }\r\n case 2: {\r\n optionsForSubscriber();\r\n break;\r\n }\r\n case 3: {\r\n in.close();\r\n saveState();\r\n break;\r\n }\r\n default: System.out.println(\"Input not recognized, Please enter a valid option...\");\r\n }\r\n } while (true);\r\n }", "private void userInteraction() {\n\t\tSystem.out.println(\"Starting user Interaction\");\n\t\twhile (true) {\n\t\t\tint input = Integer.parseInt(getUserInput(\"1 - Read, 2 - Send Email, Any other number - Exit...\"));\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tcheckMails(getUserInput(\"Type Folder Name to view details : \"));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tsendEmail();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "protected static void quitingProgram(boolean isFromConsole) {\n\n // If the user tried to terminate the program from the console.\n if (isFromConsole) {\n\n // Asking for Confirmation to terminate the program.\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Press Y to Exit\\n\" +\n \"Press C to continue\\n\" +\n \"\\t: \");\n String text = formattingWhitespace(sc.nextLine());\n\n // If user wants to terminate the program.\n if (text.equalsIgnoreCase(\"Y\")) {\n System.out.println(\"Quiting Program...\");\n System.exit(0);\n }\n // If user wants to continue the program.\n else if (text.equalsIgnoreCase(\"C\")) {\n System.out.println(\"Continuing program\");\n mainMenu();\n }\n // User entering an Invalid Input.\n else {\n System.out.println(\"Invalid Input\");\n quitingProgram(true);\n }\n }\n // If the user tried to terminate the program from the GUI.\n else {\n // Asking for Confirmation to terminate the program.\n String result = ConfirmBox.display(\"Confirm Exit\", \"Are you sure you want to exit?\", \"Yes\", \"No\");\n\n // Checking the confirmation\n if (result.equalsIgnoreCase(\"yes\")) {\n System.out.println(\"Quiting Program...\");\n System.exit(0);\n }\n }\n }", "private static void executeProgram() throws IllegalArgumentException {\n\t\twhile(true) {\n\t\t\tcalculateRoot();\n\t\t\tsc = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Do you want to enter another equation? :\");\n\t\t\tString answer = sc.next();\n\t\t\tif(answer.equalsIgnoreCase(\"no\")) {\n\t\t\t\tSystem.out.println(\"Good bye!!!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "void doKill() throws IOException\n\t{\n\t\tif (m_session == null)\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"programNotBeingRun\")); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\tif (yesNoQuery(getLocalizationManager().getLocalizedTextString(\"askKillProgram\"))) //$NON-NLS-1$\n\t\t\t\texitSession();\n\t\t}\n\t}", "@FXML\n public void ExitProgram(ActionEvent e) {\n Runtime.getRuntime().exit(0);\n }", "private static void help(){\r\n System.out.println(\"\\n\\t Something Went Wrong\\nType\\t java -jar nipunpassgen.jar -h\\t for mor info\");\r\n System.exit(0);\r\n }", "protected static void launchingMainMenu(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.print(\"\\n\\nSelect an option from the Menu.\\n\" +\n \"\\tC : To CONTINUE the Program (Run MongoDB MANUALLY beforeHand) \\n\" +\n \"\\tQ : To Quit the program\\n\" +\n \"\\n\\nEnter option letter to proceed : \");\n String text = formattingWhitespace(sc.nextLine());\n if (text.equalsIgnoreCase(\"c\")) {\n // Reading the Database from Train Booking to get the Waiting room.\n TrainStation.setWaitingRoom();\n // Running the program.\n GUI.main(args);\n } else if (text.equalsIgnoreCase(\"Q\")){\n System.out.println(\"Exiting program.\");\n } else {\n System.out.println(\"Error - Invalid Input.\\n\");\n launchingMainMenu(args);\n }\n }", "private static void usage(String argv[]) {\n\tSystem.out.println(\"Usage: java Sudoku\");\n System.exit(-1);\n }", "static void exit()\r\n\t {\n\t\t System.exit(0);\r\n\t }", "public static void main(String[] args) {\n boolean exit = false;\n int choice = 0;\n\n printIntructions();\n while (!exit)\n {\n\n System.out.print(\"yo...sup..enter ur choice -> \");\n\n choice = scanner.nextInt();\n scanner.nextLine();\n switch (choice)\n {\n case 0:\n printIntructions();\n break;\n case 1:\n printContactList();\n break;\n case 2:\n addContact();\n break;\n case 3:\n modifyContact();\n break;\n case 4:\n removeContact();\n break;\n case 5:\n findContact();\n break;\n case 6:\n System.out.print(\"Thanks for using surbitonix-tech\\nExiting...\");\n exit = true;\n break;\n }\n }\n }", "public static void main(String[] args) throws NoSuchCommandExceptions\n\t{\n\t\twhile (true)\n\t\t{\n\t\t\t// indicate user to enter student ID or quit System\n\t\t\tinput = ui.promptID();\n\t\t\t/* user enter ID or Q */\n\t\t\tint InputReact = UserInput();\n\t\t\tif (InputReact == 0)\n\t\t\t\tbreak;\n\t\t\telse if (InputReact == 1)\n\t\t\t\tcontinue;\n\t\t\t/* user enter G, R, A, W or E */\n\t\t\tfunctionMode();\n\t\t}\n\t\tscanner.close();\n\t}", "private void run() \n{\n String answer;\t//console answer\n \tboolean error;\t//answer error flag\n \terror = false;\n \tdo {\t\t\t\t\t\t\t//get the right answer\n \t \t//Take user input\n \t \t//System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n \t\t\tSystem.out.println(\"Would you like to enter GUI or TIO?\");\n \t\t\tanswer = console.nextLine();\n \t \tif(answer.equals(\"GUI\"))\n \t\t\t{\n \t\t\t\terror = false;\n \t\t\t\tlaunchGUI();\n \t\t\t}else if(answer.equals(\"TIO\"))\n \t\t\t{\n \t\t\t\terror = false;\n \t\t\t\tlaunchTIO();\n \t\t\t}else\n \t\t\t{\n \t\t\t\t//Error: Not correct format\n \t\t\t\terror = true;\n \t\t\t\tSystem.out.println(\"I couldn't understand your answer. Please enter again \\n\");\n \t\t\t}\n \t\t}while (error == true);\n\n}", "private static void exit(){\n\t\t\n\t\tMain.run=false;\n\t\t\n\t}", "public static void main(String[] args) {\t\n\t\tlaunch(args);\n\t\tSystem.exit(0);\n\t}", "public static void main(String[] args) {\n\t\tString countryname;\n\t\t\n\t\tdo {\n\t\t\t\n\t\t\tSystem.out.println(\"Chose country name :\\nyour option Bangladesh,pakistan,india\\nIf you type Exit your program is close ....\");\n\n\t\t\tScanner scanner = new Scanner(System.in);\n\n\t\t\tcountryname = scanner.next();\n\t\t\tif(!countryname.equalsIgnoreCase(\"exit\")){\n\n\t\t\tCricketTeam cricketTeam = new CricketTeam();\n\n\t\t\tcricketTeam.MemberName(countryname);\n\t\t\t}\n\n\t\t} while (!countryname.equalsIgnoreCase(\"Exit\"));\n\t\t\n\t\tSystem.out.println(\"---------Thank you Good Bye---------\");\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tString response=JOptionPane.showInputDialog(null,\"Do you know how to write code?\");\n\t\t// 2. If they say \"yes\", tell them they will rule the world.\n\t\tif(response.equalsIgnoreCase(\"yes\") || response.equalsIgnoreCase(\"sure\"))\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null,\"Than you will rule the world!\");\n\t\t}\n\t\t// 3. Otherwise, wish them good luck washing dishes.\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\"Good luck on your career!\");\n\t\t}\n\t}", "void exit();", "private static void printUsageExitError(){\n\t\tSystem.out.println(usage);\n\t\tSystem.exit(1);\n\t}", "private static void exit()\n {\n System.out.println(\"Graceful exit\");\n System.exit(0);\n }", "static void quit()\n {\n clrscr();\n System.out.println(\"You don't suck in life human. Life sucks you in.\");\n System.exit(0);\n }", "public static void main(String[] args) {\n\t\tBufferedReader reader = InputReader.getReader();\n\t\tboolean exit = false;\n\t\tdo {\n\t\t\n\t\tSystem.out.println(\"Enter your ID:\\n\");\n\t\tString memberID;\n\t\ttry {\n\t\t\tmemberID = reader.readLine();\n\n\t\t\t// Check if the ID entered is valid\n\t\t\tif (memberID.length() == 8 && Utilities.matchesOrNot(\"\\\\d+\",memberID.substring(4,8))) {\n\t\t\t\tif (Utilities.CodeCheck(memberID, true, University.UNIVERSITY1.getCode(), false)\n\t\t\t\t\t\t|| Utilities.CodeCheck(memberID, true, University.UNIVERSITY2.getCode(), false)) {\n\t\t\t\t\t// When the member is a user, call the userClient method to\n\t\t\t\t\t// proceed\n\t\t\t\t\tUserClientController user = new UserClientController();\n\t\t\t\t\tuser.userClient(memberID);\n\t\t\t\t} else if (Utilities.CodeCheck(memberID, true, University.UNIVERSITY1.getCode(), true)\n\t\t\t\t\t\t|| Utilities.CodeCheck(memberID, true, University.UNIVERSITY2.getCode(), true)) {\n\t\t\t\t\t// When the member is a manager, call the managerClient\n\t\t\t\t\t// method\n\t\t\t\t\t// to proceed\n\t\t\t\t\tManagerClientController manager = new ManagerClientController();\n\t\t\t\t\tmanager.managerClient(memberID);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Enter a valid ID!!\\n\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Enter a valid ID!!\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Want to exit the application? (Y/N)\\n\");\n\t\t\tString exitString = reader.readLine();\n\t\t\texit = (exitString.equals(\"Y\"))? true : false;\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} \n\t\t\t\n\t\t} while (!exit);\n\t\tSystem.out.println(\"Application terminated!!\");\n\t\t\n\t}", "public void quit() {\n\t\tSystem.exit(0);\n\t}", "private void exitApplication()\r\n {\r\n System.exit(0);\r\n }", "private void exit() {\n\n // Farewell message\n pOutput.println(\"Good Bye!\");\n pOutput.close();\n\n try {\n pClient.close();\n\n } catch (final IOException ex) {\n pShellService.error(\"Shell::exit()\", ex);\n }\n\n // Clean up\n pShellService = null;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n System.exit(1);\n }", "public void run() \n\t\t{\n\t\t\tboolean exitMenu = false;\n\t\t\tdo \n\t\t\t{\t\t\t\t\t\n\t\t\t\tmenu.display();\n\t\t\t\tint choice = menu.getUserSelection();\n\t\t\t\t// the above method call will return 0 if the user did not\n\t\t\t\t// entered a valid selection in the opportunities given...\n\t\t\t\t// Otherwise, it is valid...\n\t\t\t\tif (choice == 0)\n\t\t\t\t{\n\t\t\t\t\t// here the user can be informed that fail to enter a\n\t\t\t\t\t// valid input after all the opportunities given....\n\t\t\t\t\t// for the moment, just exit....\n\t\t\t\t\texitMenu = true;\n\t\t\t\t}\n\t\t\t\telse if (choice == 1) \n\t\t\t\t{\n\t\t\t\t\t// here goes your code to initiate action associated to\n\t\t\t\t\t// menu option 1....\n\t\t\t\t\tProjectUtils.operationsOnNumbers();\n\t\t\t\t}\n\t\t\t\telse if (choice == 2)\n\t\t\t\t{\n\t\t\t\t\tProjectUtils.operationsOnStrings();\n\t\t\t\t}\n\t\t\t\telse if (choice == 3) \n\t\t\t\t{\n\t\t\t\t\tProjectUtils.showStatistics();\n\t\t\t\t}\n\t\t\t\telse if (choice == 4)\n\t\t\t\t{\n\t\t\t\t\texitMenu = true; \n\t\t\t\t\tProjectUtils.println(\"Exiting now... \\nGoodbye!\");\n\t\t\t\t}\n\t\t\t} while (!exitMenu);\n\t\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello World\");\n\t\tSystem.out.println(\"Please choose a number between 1 and 5\");\n\t\tAskQuestion qa = new AskQuestion();\n\t\tint number = qa.scanInt();\n\t\tif(number < 1){\n\t\t\tSystem.out.println(\"Your chosen number is too small...\");\n\t\t}\n\t\telse if(number > 5){\n\t\t\tSystem.out.println(\"Your chosen number is too big...\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Wow, you are very good at following instructions!\");\n\t\t}\n\t}", "private void exitGame() {\n System.exit(0);\n }", "public static void main(String[] args) {\n\t\tif (!processArguments(args)) {\n\t\t\tSystem.out.println(\"Invalid Arguments! Please try again..\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t//Print out message to users\n\t\tSystem.out.println(\"Please enter a sentence: \");\n\t\t//Store user input as a string variable\n\t\tString userInput = sc.nextLine();\n\t\tif (userInput.contains(\"exit\")) {//check if the input contains exit\n\t\t\tSystem.out.println(\"Bye!\");\n\t\t\t\n\t\t}\telse {\n\t\t\tSystem.out.println(\"String length: \" + userInput.length());\n\t\t}\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n List<UsedCar> carList = new ArrayList<>();\n int menuChoice = -1;\n int numCars = 0;\n\n populateList(carList);\n do { // repeat this loop until the user wants to quit\n do { // repeat this loop until we have a valid response\n numCars = carCount(carList);\n printList(carList, numCars);\n menuChoice = queryUser(scan, carList, numCars);\n } while (menuChoice == -1); // repeat if user input is invalid\n purchaseCar(scan, carList, menuChoice, numCars);\n } while (menuChoice != numCars); //repeat so long as user chooses to keep going\n\n System.out.println(\"Have a great day!\");\n\n scan.close();\n }", "private void doExit() {\n\t\tif (userMadeChanges()) {\n showSaveChangesBeforeExitPrompt();\n\t\t} else {\n\t\t\tfinish();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter a negative number: \");\n\t\tint num = input.nextInt();\n\t\t\n\t\tif (num >= 0) {\n\t\t\tSystem.out.println(\"Please enter a negative Number\");\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"The number is: \" + num);\n\t\t\tSystem.out.println(\"Thank you.\");\n\t\t}\n\t\tSystem.out.println(\"Run your code again.\");\n\t\tSystem.out.println(\"Exit!!\");\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Imprime por pantalla la caca esta\");\r\n\t\t\r\n\t\tScanner entrada=new Scanner(System.in);\r\n\t\t\r\n\t\tString a=entrada.nextLine();\r\n\t\t\r\n\t\tSystem.out.println(a);\r\n\t\t\r\n\t\tString caca=JOptionPane.showInputDialog(\"HOlaaa\");\r\n\t\t\r\n\t\tSystem.out.println(caca);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void starter() throws IOException{\n\t\tSystem.out.println(\"\\nType and Enter,\\n(1)for creating an account.\"\n\t\t\t\t+ \"\\n(2)for returning users login.\"\n\t\t\t\t+ \"\\n(3)to exit.\");\n\t\tScanner input = new Scanner(System.in);\n\t\tint userCommand = input.nextInt();\n\t\tif(userCommand==1){\n\t\t\tcreateAccount();\n\t\t}\n\t\telse if(userCommand==2){\n\t\t\tlogin();\n\t\t}\n\n\t\telse if(userCommand==3){\n\t\t\tSystem.out.println(\"Thanks for using InfoCabinet!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void quitApp() {\n\t\tlogger.trace(\"quitApp() is called\");\n\t\t\n \tint answer = JOptionPane.showConfirmDialog(null, \"Exit App?\");\n \tif (answer == JOptionPane.YES_OPTION){\n \t\tstopServer(); \n \t\tsaveData();\n \t\tlogger.trace(\"Server app exits\");\n \t\tSystem.exit(0);\n \t}\n }", "static void playerLost() {\n\n\t\tSystem.exit(0); // This code ends the program\n\t}", "public static void main(String args[]) {\n System.exit(0);\n }", "public static void main(String [] args) throws Exception{\n\tint Systemexit= ToolRunner.run(new DriverIndianAirport(), args);\r\n\tSystem.exit(Systemexit);\r\n}", "public static void main(String[] args) {\n\t\t//thread to allow exit at any time;\n \t(new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\tint buttonPressed=Button.waitForAnyPress();\n\t\t\t\twhile (buttonPressed != Button.ID_ESCAPE){\n\t\t\t\t\tbuttonPressed=Button.waitForAnyPress();\n\t\t\t\t}\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}).start();\n \t\n\t\ttestClaw();\t\n\t}", "public abstract void exit();", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tProcess Process = new Process();\n\t\tScheduler Schedule = new Scheduler();\n\t\tString fileInput;\n\t\t//ReadyQue\n\t\t\n\t\t//test for single file\n\t\tSystem.out.println(\"Press 1 to choose a file \");\n\t\tSystem.out.println(\"Press 2 to choose multiple files \");\n\t\tint choiceInput = scan.nextInt();\n\t\t\tif(choiceInput == 1)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What file would you liked to use :\");\n\t\t\t\tfileInput = scan.next();\n\t\t\t\tProcess.runProgram(fileInput);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(choiceInput == 2)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"How many programs do you want to run\");\n\t\t\t\tint fileNumber = scan.nextInt();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int PS = 0; PS <= fileNumber; PS ++)\n\t\t\t\t{\n\t\t\t\t\tScheduler.positionofLL(PS);\n\t\t\t\t\t\n\t\t\t\t\tif(PS%2 == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfileInput = \"paint.txt\";\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{\n\t\t\t\t\t\tfileInput = \"ide.txt\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tProcess.runProgram(fileInput);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Invalid Choice.\\n Please Run program again.\");\n\t\t\t}\n\t\n\t\t\n\t\t\n\t\tscan.close();\n\t\t\n\t\n\t}", "public void run() {\n Application.launch(TermGUI.class);\n System.exit(0);\n }", "public void go() { \n\n Scanner scan = new Scanner(System.in); // reading keaboard input\n\n String input = \"\";\n int flightNumber = 0;\n \n \n \n System.out.println(\"\\n SY Catering-Management (Version 1.0 (C) 2020 by Group 26)\");\n System.out.println(\"1: Create a Flight\");\n System.out.println(\"2: Update a Flight\");\n System.out.println(\"3: Delete a Flight\");\n System.out.println(\"4: Show All flights\");\n System.out.println(\"0: Return to Main Menu\");\n\n System.out.print(\"Please enter your choice: \");\n input = scan.nextLine();\n\n try {\n int flightManagerNumber = Integer.parseInt(input);\n if (flightManagerNumber == 1) {\n createAFlight();\n System.exit(0);\n }\n if (flightManagerNumber == 2) {\n updateAFlight();\n System.exit(0);\n }\n if (flightManagerNumber == 3) {\n deleteAFlight();\n System.exit(0);\n }\n if (flightManagerNumber == 4) {\n showAllFlights();\n System.exit(0);\n }\n if (flightManagerNumber == 0) {\n mainMenu();\n\n } else {\n flightManager();\n\n }\n } catch (NumberFormatException e) {\n flightManager();\n System.exit(0);\n }\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}", "private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\txMax = sc.nextInt(); // 행\r\n\t\tyMax = sc.nextInt(); // 열\r\n\t\t\r\n\t\tsc.close();\r\n\t\t\r\n\t\tterminate(execute(xMax, yMax));\r\n\t\t\r\n\t\t\r\n\t}", "public void exit() {\n\t\tSystem.exit(0);\n\t}", "public void exit() {\n\t\tSystem.exit(0);\n\t}", "public static void main(){\n\t\tint option = getUserOption();\n\t\t/** switch case option start below */\n\t\tswitch (option){\n\t\t\tcase 1 : ToScreen.listEmployee(employee.getAllEmployee(), true); main();\n\t\t\t\tbreak;\n\t\t\tcase 2 : listStaffByCategory();\n\t\t\t\tbreak;\n\t\t\tcase 3 : ToScreen.listAdminStaffTask(employee.getAllAdminStaff(), true);main();\n\t\t\t\tbreak;\n\t\t\tcase 4 : searchStaffByName();\n\t\t\t\tbreak;\n\t\t\tcase 5 : ToScreen.listAnimal(animals.getAllAnimals(), true); main();\n\t\t\t\tbreak;\n\t\t\tcase 6 : ListAnimalByType();\n\t\t\t\tbreak;\n\t\t\tcase 7 : searchAnimalByName();\n\t\t\t\tbreak;\n\t\t\tcase 8 : MenuReception.main();\n\t\t\t\tbreak;\n\t\t\tcase 9 : System.exit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tmain();\n\t\t}\n\t}", "static void mainMenu ()\r\n \t{\r\n \t\tfinal byte width = 45; //Menu is 45 characters wide.\r\n \t\tString label [] = {\"Welcome to my RedGame 2 compiler\"};\r\n \t\t\r\n \t\tMenu front = new Menu(label, \"Main Menu\", (byte) width);\r\n \t\t\r\n \t\tMenu systemTests = systemTests(); //Gen a test object.\r\n \t\tMenu settings = settings(); //Gen a setting object.\r\n \t\t\r\n \t\tfront.addOption (systemTests);\r\n \t\tfront.addOption (settings);\r\n \t\t\r\n \t\tfront.select();\r\n \t\t//The program should exit after this menu has returned. CLI-specific\r\n \t\t//exit operations should be here:\r\n \t\t\r\n \t\tprint (\"\\nThank you for using my program.\");\r\n \t}", "public static void main(String[] args) {\n\t\tInvoker invoker=new Invoker();\n\t\tSystem.out.println(\"请选择米家模式:\\n 1.离家模式\\n 2.回家模式\\n 0.退出\");\n\t\tScanner console = new Scanner(System.in);\n\t\tString input = console.next();\n\t\tswitch(input) {\n\t\tcase \"1\":LeaveHome(invoker);\n\t\t break;\n\t\tcase \"2\":BackHome(invoker);\n\t\t break;\n\t\tcase \"3\":break;\n\t\t}\n\t\t\n\t}" ]
[ "0.75582707", "0.7540888", "0.7321268", "0.7059109", "0.69956446", "0.69848573", "0.6982686", "0.6956602", "0.6901395", "0.68458456", "0.6841307", "0.68207496", "0.6807875", "0.6794455", "0.6785291", "0.67838407", "0.672201", "0.6555535", "0.65497464", "0.6538602", "0.6532799", "0.6520117", "0.6515508", "0.65133893", "0.65030044", "0.6498428", "0.64811975", "0.64782", "0.6477487", "0.6458867", "0.64373314", "0.6435398", "0.6425293", "0.6420981", "0.6415252", "0.6408748", "0.6406595", "0.64063543", "0.6399448", "0.6398701", "0.6394506", "0.63931537", "0.6380477", "0.637439", "0.6371132", "0.6367158", "0.6358295", "0.6351712", "0.63516444", "0.6344866", "0.6333869", "0.63319176", "0.6327357", "0.63248956", "0.6324876", "0.6323774", "0.6323119", "0.63152534", "0.6312889", "0.6309552", "0.63021475", "0.6297522", "0.6292482", "0.62873745", "0.62850183", "0.6283633", "0.6275652", "0.626915", "0.6261753", "0.6253362", "0.6243913", "0.6227663", "0.6223413", "0.62213445", "0.6219558", "0.6216997", "0.62161607", "0.6209066", "0.62087655", "0.6208308", "0.6202942", "0.6202555", "0.62005675", "0.61920255", "0.6190621", "0.61904377", "0.6190033", "0.61897516", "0.6167425", "0.61670524", "0.6166987", "0.6160816", "0.6160591", "0.61594987", "0.61592525", "0.6158221", "0.6158221", "0.615264", "0.614979", "0.61477315" ]
0.66354287
17
This method verifies the shift input from the user to make sure it is a 1 or 2
public static int verifyShift(Scanner input, int shift){ String tempStr; while(shift != 1 && shift != 2){ System.out.print("Please enter a 1 or 2 for day shift or night shift: "); tempStr = input.next(); shift = UtilityMethods.verifyInt(input, tempStr); } return shift; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean parse(Scanner input, int numShift);", "public static int menu(){\n int input;\n System.out.println();\n System.out.println(\"Welcome to War\");\n System.out.println(\"[1] Play War\");\n System.out.println(\"[2] Exit\");\n input = scan.nextInt();\n while (input < 1 || input > 2){\n System.out.println(\"Invalid input, try again\");\n input = scan.nextInt();\n }\n return input;\n }", "public boolean isShift ()\n {\n return isShift;\n }", "public int chooseDirection(){\n int direction;\n do{\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Choose a transfer method.\\n(1) from saving to checking.\\n(2) from checking to saving.\");\n direction = scanner.nextInt();\n } while(!(direction !=1 || direction !=2));\n return direction;\n }", "private int getUserInput() {\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n int input = scanner.nextInt();\n while(input < 1 || input > 3) {\n System.out.println(\"only enter 1 2 or 3.\");\n input = scanner.nextInt();\n }\n return input;\n }", "public static byte f_SidesQuest() {\n Scanner keyboard = new Scanner(System.in);\r\n byte op;\r\n\r\n System.out.println(\"Do you know the value of the sides of the figure? (1 or 0)\");\r\n op = keyboard.nextByte();\r\n\r\n while (op < 0 || op > 1) {\r\n System.err.println(\"ERROR, The input must be between 1 and 0\\nRetry:\");\r\n op = keyboard.nextByte();\r\n }\r\n return op;\r\n }", "static int inputCheck(Mode game){\n Scanner sc=new Scanner(System.in);\r\n int input;\r\n System.out.println(\"Your turn:\");\r\n do {\r\n input = sc.nextInt();\r\n if(input < 1 || input >9){\r\n System.out.println(\"Enter a number from 1-9\");\r\n }else if (game.filled(input)){\r\n System.out.println(\"Box is full, please enter another number\");\r\n }\r\n }while(input < 1 || input >9 || game.filled(input));\r\n return input;\r\n }", "public static void main(String[] args) {\n\n\t\tScanner s =new Scanner(System.in);\n\t\tSystem.out.println(\"If Yes then it is power of 2 or else No\");\n\t\tSystem.out.print(\"Enter a positive Number:\");\n\t\tint a=s.nextInt();\n\t\t\n\t\t if (check(a)) \n\t System.out.println(\"Yes\"); \n\t else\n\t System.out.println(\"No\"); \n\t\t\n\t}", "protected abstract int isValidInput();", "public static int typeValidation(int type) {\n Scanner scanner = new Scanner(System.in);\n int attempt = type;\n while (attempt > 3 || attempt < 1)// Type 4 is supposed to be people who can make employees. Computer decides that, not the user\n {\n System.out.println(\"Invalid Choice\");\n System.out.print(\" > \");\n attempt = scanner.nextInt();\n }\n return attempt;\n\n }", "static int checkIfInt(int check)\n {\n Scanner input = new Scanner(System.in);\n String str;\n int temp=0;\n int hold = 0;\n do{\n output(check);\n if(input.hasNextInt())\n {\n temp = input.nextInt();\n if(temp >0)\n {\n break;\n }\n }\n str = input.nextLine();\n if(check != 1)\n {\n count++;\n }\n System.out.println(\"Sorry. That's not a valid input\");\n }while(hold == 0);\n return temp;\n }", "public static int checkInt() {\n\n\t{\n\t\tint userInput;\n\t\tboolean validInt = false;\n\t\tuserInput = 0;\n\t\tdo\n\t\t{\n\t\t\t\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\t//checks if the next entered value is an integer\n\t\t\tif (sc.hasNextInt())\n\t\t\t{\n\t\t\t // do-while loop breaks here\n\t\t\t\tuserInput = sc.nextInt();\n\t\t\t\tvalidInt = true;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tUserInterface.displayError(\"Input is not an integer. Please enter again\");\n\t\t\t}\n\t\t}while(validInt == false);\n\t\treturn userInput;\n\t}\n\n}", "public int getStudentClass() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// getter method initialized\r\n Scanner scanner = new Scanner(System.in);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Initialize the scanner to get input from User\r\n System.out.print(\"Enter Class : \");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// This will print the argument at the end of the line\r\n studentClass = scanner.nextInt();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Read Integer input from the Use\r\n String inputStudentClass = Integer.toString(studentClass);\t\t\t\t\t\t\t\t\t\t // convert Integer to string.\r\n Pattern pattern = Pattern.compile(\"[0-1]{1}[0-9]{1}\");\t\t\t\t\t\t\t\t\t\t\t \t\t// The Pattern class represents a compiled regular expression.\r\n Matcher matcher = pattern.matcher(inputStudentClass );\t\t\t\t\t\t\t\t\t\t\t\t\t // The resulting Pattern object is used to obtain a Matcher instance.\r\n if (matcher.matches());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // if loop ..to check match input from the User\r\n else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// else loop started\r\n System.out.println(\"Invalid Class - Please enter the Class again\"); } \t\t\t// if the binaryNum1 from the User is not 0 or 1 then it will print \"Try again by entering binary number 0 or 1\"\r\n return studentClass; }", "public int checkValidate() {\n while (true) {\n if (scanner.hasNextInt()) {\n // Get input from user\n int choice = scanner.nextInt();\n scanner.nextLine(); // Remove enter key\n return choice; // Return choice\n } else {\n // Show out error if not an interger number\n System.out.println(\"Your inputted not an integer number!\");\n System.out.print(\"Choice again: \"); // Retype\n scanner.next();\n }\n }\n }", "public boolean canShift() {\n\t\treturn marker < getRhs().length;\n\t}", "protected abstract boolean shift();", "public static boolean validateMenuOption(String input) {\r\n boolean valid = false;\r\n try {\r\n if (Integer.parseInt(input) < 1 || Integer.parseInt(input) > 5){\r\n System.out.println(\"**Error: Menu option not found.\\n\"\r\n +\" Please type a single digit [1-5] for menu option.\");\r\n } \r\n else {\r\n valid = true;\r\n }\r\n }\r\n catch (NumberFormatException nfe) {\r\n System.out.println(\"**Error: Only a single number can be input.\\n\"\r\n +\" Please type a single digit [1-5] for menu option.\");\r\n }\r\n return valid;\r\n }", "private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}", "public static int mainMenuInput(){\n System.out.println(mainMenu);\n String input = sc.nextLine();\n String[] valid = {\"1\",\"2\",\"3\"};\n if(Arrays.asList(valid).contains(input)){\n return Integer.parseInt(input);\n } else {\n return -1;\n }\n }", "public static void main(String[] args) throws IOException {\n\t\t\r\n\t\tScanner sc = new Scanner(System.in); \r\n\t\t\r\n\t\tint number = sc.nextInt();\r\n\t\t\r\n\t\tif (number % 2 == 0 && number != 2) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"YES\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"NO\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsc.close();\r\n\r\n\t}", "private static boolean valid_input(String user_input) {\n \n boolean output = false;\n \n if(user_input.length() == 2){\n \n output = (user_input.substring(0,1).matches(\"[0-9]\") && user_input.substring(1,2).matches(\"[a-zA-Z]\"));\n } else if (user_input.length() == 3) {\n \n output = (user_input.substring(0,2).matches(\"[1-2][0-9]\") && user_input.substring(2,3).matches(\"[a-zA-Z]\"));\n \n if(Integer.parseInt(user_input.substring(0,2))>TicTacToe.game.gridSize){\n output = false;\n }\n }\n \n return output;\n }", "public boolean checkInput();", "public void checkForGearShift() {\n boolean shiftHi = Robot.leftJoystick.getRawButton(HI_SHIFTER);\n boolean shiftLo = Robot.leftJoystick.getRawButton(LO_SHIFTER);\n\n if (shiftHi) {\n currentGear = Gear.HI;\n if (shiftInit) {\n shiftTimer.setTimer(Constants.SHIFT_TIME);\n shiftInit = false;\n }\n if (shiftTimer.isExpired()) {\n isShifting = false;\n shiftInit = true;\n } else {\n isShifting = true;\n }\n gearShifter.set(Constants.HI_GEAR_VALUE);\n } else if (shiftLo) {\n currentGear = Gear.LO;\n if (shiftInit) {\n shiftTimer.setTimer(Constants.SHIFT_TIME);\n shiftInit = false;\n }\n if (shiftTimer.isExpired()) {\n isShifting = false;\n shiftInit = true;\n } else {\n isShifting = true;\n }\n gearShifter.set(Constants.LO_GEAR_VALUE);\n } else {\n isShifting = false;\n }\n\n }", "private void check2(){\n \n // All methods past the first rule check to see\n // if errorCode is still 0 or not; if not skips respective method\n if(errorCode == 0){\n \n if (!(fourthDigit == fifthDigit + 1)){\n valid = false;\n errorCode = 2;\n }\n }\n\t}", "public static int prompt_input1(int mx){\n System.out.print(\"Please select your option: \");\n String choice = in.nextLine(); \n boolean invalid = !U.isInteger(choice);\n int c=-1;\n if(!invalid)c = Integer.parseInt(choice)-1;\n while(invalid||c<0||c>=mx){\n System.out.println(\"Invalid Input.\");\n System.out.printf(\"%s %d %s %d: \",\"Enter your choice between\",1,\"-\",mx);\n choice = in.nextLine(); \n invalid = !U.isInteger(choice);\n if(!invalid)c = Integer.parseInt(choice)-1;\n //System.err.println(\"choice: \"+choice);\n }\n return c;\n }", "public static int ContShoppingOrCheckout(){\r\n int input = 0;\r\n boolean wrongNumber = false;//Boolean for error handling\r\n //Menu\r\n System.out.println(\"\\n1 Continue shopping\\n2 Check-out to collect items\");\r\n //Loop\r\n do { \r\n if(wrongNumber)System.out.println(\"Enter CORRECT number.\"); //Error if not a valid number or Exception\r\n wrongNumber = false;\r\n try {\r\n System.out.print(\"Make your choice: \");\r\n input = Vending_Machine.GetInput();\r\n System.out.println(\"\");\r\n if(1 > input || input > 2)wrongNumber = true;//Error handling nummeric input value\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Enter a numeric value, try again\"); \r\n wrongNumber = true;//Error handling exception\r\n } \r\n } while (wrongNumber);//Will loop if wrong numeric value or exception on input\r\n return input;\r\n }", "@Test\r\n public void testIsValidTap() {\r\n assertTrue(boardManager3.isValidTap(7));\r\n assertTrue(boardManager3.isValidTap(5));\r\n assertFalse(boardManager3.isValidTap(0));\r\n }", "protected abstract boolean checkInput();", "public static void main(String[] args) {\n\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"did you workout today? 1 for yes 2 for no\");\r\n\r\n\t\tint n = scan.nextInt();\r\n\r\n\t\tif (n >= 0 && n <= 1) {\r\n\r\n\t\t\tSystem.out.println(\"yay! keep it up!\");\r\n\r\n\t\t} else if (n >= 2 && n < 3) {\r\n\r\n\t\t\tSystem.out.println(\"you should work out tommorow you got this!\");\r\n\r\n\t\t} else {\r\n\r\n\t\t\tSystem.out.println(\"enter 1 or 2\");\r\n\r\n\t\t}\r\n\t}", "private void shift(int shift)\n\t{\n\t\tthis.shiftAmount = shift;\n\t}", "public static int getLegalMove(char mark) {\n\t\tjava.util.Scanner console = new java.util.Scanner(System.in);\n\t\twhile (true) {\n\t\t\tSystem.out.println(mark + \"'s next move: \");\n\t\t\tint square = console.nextInt();\n\t\t\tif ((square >= 1) && (square <= 9) && (isSquareEmpty(square))) {\n\t\t\t\treturn square;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nIllegal move, try again\\n\");\n\t\t}\n\t}", "public static int check() {\r\n\t\tint num = 0;\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0) {\r\n\t\t\t\t\tnum = Math.abs(num);\r\n\t\t\t\t}\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t\t// hvatanje greske i ispis da je unos pogresan\r\n\t\t\t\tSystem.out.println(\"You know it's wrong input, try again mate:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn num;\r\n\t}", "public static int input(int grade){\n Scanner myScanner=new Scanner(System.in);\n boolean flag=true;\n while(flag){ \n if(myScanner.hasNextInt()){\n while(flag){\n grade=myScanner.nextInt();\n if(grade>=0&&grade<=100){ \n flag=false;break;}\n else{\n System.out.println(\"ERROR: Please input an integer between 0-100.\");// if input is not in range 0-100, then reinput\n System.out.print(\"Please input again: \");\n flag=true; }}}\n else{\n System.out.println(\"ERROR: Please input an integer.\"); // if input is not an integer, then reinput\n System.out.print(\"Please input again: \");\n myScanner.next();flag=true;}}\n return grade; }", "public void checkRule() {\n if (s.matches(\"^\\\\d+$\"))\n System.out.println(\"I see a number. Rule 2 \");\n }", "private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static int promptUser(Scanner sc){\n int userInput = 0;\n boolean validInput = false;\n\n System.out.print(\"\" +\n \"Choose a game option: \\n\" +\n \" 1. Start playing \\n\" +\n \" 2. Set the starting configuration\\n\" +\n \"Enter your choice --> \");\n\n //loop until a valid input is read in\n while(validInput == false) {\n //ask until an integer is found\n while (!sc.hasNextInt()) {\n System.out.println(\"\\n\\t***INVALID INPUT***\\n\");\n System.out.println(\"\" +\n \"Choose a game option: \\n\" +\n \" 1. Start playing \\n\" +\n \" 2. Set the starting configuration\\n\" +\n \"Enter your choice --> \");\n sc.next();\n }\n\n userInput = sc.nextInt();\n\n //check to see if they entered a 1 or a 2\n if(userInput == 1 || userInput == 2)\n validInput = true;\n else{ //otherwise, re-prompt\n System.out.println(\"\\n\\t***INVALID INPUT***\\n\");\n System.out.println(\"\" +\n \"Choose a game option: \\n\" +\n \" 1. Start playing \\n\" +\n \" 2. Set the starting configuration\\n\" +\n \"Enter your choice --> \");\n continue;\n }\n\n }\n\n return userInput;\n }", "private static int askForGoMainMenu(String message){\n\t\tshowMessage(message);\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint input;\n\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tinput = Integer.parseInt(myReader.readLine());\n\n\t\t\t\tif ((input < 0) || (input>1)) {\n\t\t\t\t\tSystem.out.println(\"Please type 1 or 2.\\n\");\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid. Choose 1 or 2.\\n\");\n\t\t\t\tinput = 0;\n\t\t\t}\n\n\n\t\t}\n\t\twhile ((input < 0) || (input>1));\n\n\t\treturn input;\n\n\t}", "private int errorCheckingInt(String display) {\n\n\t\tint tempChoice;\n\t\tScanner input = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"\\n\" + display);\n\t\t\ttry {\n\t\t\t\ttempChoice = input.nextInt();\n\t\t\t\tif(display.equals(\"Enter number of kids: \")) { //only for kids\n\t\t\t\t\tif(tempChoice < 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\t}\n\t\t\t\telse if (tempChoice < 1)\n\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\tbreak;\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Error input \\n\");\n\t\t\t\tinput.next();\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\n\t\tinput.nextLine();\n\n\t\treturn tempChoice;\n\t}", "public static int queryMenuInput(){\n System.out.println(queryMenu);\n String input = sc.nextLine();\n String[] valid = {\"1\",\"2\",\"3\",\"4\"};\n if(Arrays.asList(valid).contains(input)){\n return Integer.parseInt(input);\n } else {\n return -1;\n }\n }", "private void checkUserInput() {\n }", "private static int getAction(Scanner in)\n {\n int choice = 0;\n while (choice < 1 || choice > 3)\n {\n System.out.println(\"1. Add a value to the set\");\n System.out.println(\"2. Remove a value from the set\");\n System.out.println(\"3. Exit\");\n choice = Integer.parseInt(in.nextLine());\n if (choice < 1 || choice > 3)\n System.out.println(\"Not a valid operation. Choose Again.\");\n }\n return choice;\n }", "public boolean isTimeBetweenTwoTime(String shift, String loc) throws ParseException {\n String locale = loc.substring(0, 1);\n boolean valid = false;\n\n //Time variables\n Calendar cal = Calendar.getInstance();\n int currentDay = cal.get(Calendar.DAY_OF_MONTH);\n\n DateFormat df = new SimpleDateFormat(\"HH:mm:ss\");\n String argCurrentTime = df.format(new Date());\n String argStartTime=\"\";\n String argEndTime=\"\";\n\n //Set start & end timings for shift patterns (Stations & Depots)\n //30 minutes extra time for updating attendance of the shift\n switch(shift){\n case \"A\":\n //Station Shift A Timing\n if(locale.equalsIgnoreCase(\"E\") || locale.equalsIgnoreCase(\"N\")) {\n argStartTime = \"04:00:00\";\n argEndTime = \"12:00:00\";\n }\n //Depot Shift A Timing\n else if(locale.equalsIgnoreCase(\"D\")) {\n argStartTime = \"04:00:00\";\n argEndTime = \"13:00:00\";\n }\n break;\n case \"B\":\n //Station Shift B Timing\n if(locale.equalsIgnoreCase(\"E\") || locale.equalsIgnoreCase(\"N\")) {\n argStartTime = \"11:00:00\";\n argEndTime = \"19:00:00\";\n }\n //Depot Shift B Timing\n else if(locale.equalsIgnoreCase(\"D\")) {\n argStartTime = \"12:00:00\";\n argEndTime = \"21:00:00\";\n }\n break;\n case \"C\":\n //Station Shift C Timing\n if(locale.equalsIgnoreCase(\"E\") || locale.equalsIgnoreCase(\"N\")) {\n argStartTime = \"18:00:00\";\n argEndTime = \"02:00:00\";\n }\n //Depot Shift C Timing\n else if(locale.equalsIgnoreCase(\"D\")) {\n argStartTime = \"20:00:00\";\n argEndTime = \"05:00:00\";\n }\n break;\n }\n\n if (shift.equalsIgnoreCase(\"A\") || shift.equalsIgnoreCase(\"B\") || shift.equalsIgnoreCase(\"C\")) {\n // Start Time\n Date startTime = new SimpleDateFormat(\"HH:mm:ss\").parse(argStartTime);\n Calendar startCalendar = Calendar.getInstance();\n startCalendar.setTime(startTime);\n\n // Current Time\n Date currentTime = new SimpleDateFormat(\"HH:mm:ss\").parse(argCurrentTime);\n Calendar currentCalendar = Calendar.getInstance();\n currentCalendar.setTime(currentTime);\n\n // End Time\n Date endTime = new SimpleDateFormat(\"HH:mm:ss\").parse(argEndTime);\n Calendar endCalendar = Calendar.getInstance();\n endCalendar.setTime(endTime);\n\n //\n if (currentTime.compareTo(endTime) < 0) {\n currentCalendar.add(Calendar.DATE, 1);\n currentTime = currentCalendar.getTime();\n }\n\n if (startTime.compareTo(endTime) < 0) {\n startCalendar.add(Calendar.DATE, 1);\n startTime = startCalendar.getTime();\n }\n\n //\n if (currentTime.before(startTime)) {\n valid = false;\n } else {\n if (currentTime.after(endTime)) {\n endCalendar.add(Calendar.DATE, 1);\n endTime = endCalendar.getTime();\n }\n\n if (currentTime.before(endTime)) {\n valid = true;\n } else {\n valid = false;\n }\n }\n }\n\n return valid;\n }", "public static boolean checkInt(Scanner scan) {\n\n if (scan.hasNextInt()) {//if the input is an integer\n return (true);\n }\n else {\n System.out.print(\"You did not enter an int; try again: \");\n return (false);\n \n }\n\n }", "public static void doShift(ZombieTrapGame game, String shift){\r\n switch(shift){ \r\n case \"u\": game.shiftUp(); break; // case \"u\": \r\n case \"d\": game.shiftDown(); break; // case \"d\": \r\n case \"l\": game.shiftLeft(); break; // case \"l\": \r\n case \"r\": game.shiftRight(); break; // case \"r\": \r\n default: throw new RuntimeException(\"Something is terribly wrong.\");\r\n }\r\n }", "public static void main(String[]args)\n {\n /*prompt user to input non-negative integer*/\n \n System.out.println(\"Please enter a non-negative integer value:\");\n Scanner keyboard = new Scanner(System.in);\n \n int input = keyboard.nextInt();\n \n /*keep prompting user until they enter an acceptable (non-negative) \n value*/\n if (input < 0)\n { while(input < 0)\n {\n System.out.println(\"Please enter a non-negative integer value:\");\n input = keyboard.nextInt();\n }\n }\n \n /* call convertToBinary on the acceptable integer that is input by the user, store \n this binary value in an int variable named binaryConversion\n */\n int binaryConversion = convertToBinary(input);\n \n //System.out.println(\"Binary conversion is: \" + binaryConversion);\n \n /* to easily count the number of ones in the binary number, convert \n binaryConversion to a string using Integer wrapper class*/\n \n String binaryString = Integer.toString(binaryConversion);\n //System.out.println(\"Binary string is: \" + binaryString);\n \n /*initialize number of ones to 0, then accumulate using a for loop; check \n each index value using the string method charAt(index) to see if the character\n at that index is a 1; if so, add one to numOnes*/\n \n int numOnes = 0;\n for (int i = 0; i < binaryString.length();i ++)\n { if (binaryString.charAt(i) == '1')\n numOnes ++;\n }\n \n /*if numOnes is divisible by two, it's even, which means the input decimal \n number has even parity\n */\n if (numOnes%2 == 0)\n System.out.println(\"The number \" + input + \" has EVEN parity.\");\n \n /*if numOnes is NOT divisible by two, it's odd, which means the input decimal \n number has ODD parity\n */\n \n else \n System.out.println(\"The number \" + input + \" has ODD parity.\");\n }", "public static void main(String[] args) {\n Scanner scn =new Scanner(System.in);\n boolean b=true;\n while(b)\n {\n \n char ch=scn.next().charAt(0);\n \n if(ch=='+'||ch=='-'||ch=='*'||ch=='/'||ch=='%')\n {\n\t int N1 =scn.nextInt();\n\t int N2 =scn.nextInt();\n\t calculator(ch,N1,N2);\n }\n else if(ch!='X'&&ch=='x')\n\t {System.out.println(\"try again\");}\n else\n\tbreak;\n }\n }", "void shiftRight(int numberToShift);", "private static void maybeShiftKeysChanged(final @NonNull PInputEvent e) {\r\n\t\tif (ArrayUtils.contains(SHIFT_KEYS, e.getKeyCode())) {\r\n\t\t\tfinal PPickPath path = e.getInputManager().getMouseOver();\r\n\t\t\tfinal @NonNull PInputEvent ePrime = new PInputEvent(e.getInputManager(),\r\n\t\t\t\t\tnew MouseEvent((Component) e.getSourceSwingEvent().getSource(), SHIFT_KEYS_CHANGED, e.getWhen(),\r\n\t\t\t\t\t\t\te.getModifiersEx(), -1, -1, 0, false, MouseEvent.NOBUTTON));\r\n\t\t\ttry {\r\n\t\t\t\tpath.processEvent(ePrime, SHIFT_KEYS_CHANGED);\r\n\t\t\t} catch (final Throwable ignore) {\r\n\t\t\t\t// ePrime might be handled by a listener that isn't a\r\n\t\t\t\t// MyInputEventHandler,\r\n\t\t\t\t// in which case it will barf on SHIFT_KEYS_CHANGED\r\n\t\t\t}\r\n\t\t\t// Make sure our super doesn't get an unhandled event type it\r\n\t\t\t// doesn't recognize.\r\n\t\t\te.setHandled(true);\r\n\t\t}\r\n\t}", "private boolean checkValue(){\n\t\tfor (int i = 0; i <binary.length();i++){\n\t\t\tif(Character.getNumericValue(binary.charAt(i))>'1' || binary.length()>32 || binary.length()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%4 != 0){\n\t\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\t\tpw.println(\"Invalid Input\");\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\t\t\n\t}", "private boolean checkForWrongInput(){\n if(this.studentCode.getText().isEmpty())\n return true;\n //Check for length\n if(this.studentCode.getText().length() != 3)\n return true;\n //Check for invalid characters\n for(char c: this.studentCode.getText().toCharArray())\n if(!Character.isDigit(c))\n return true;\n\n return false;\n }", "public boolean humanPlayerTypeSelectionMenu(Scanner keyboardIn) {\n boolean selectedOdds = true;\n\n keyboardIn = new Scanner(System.in);\n int selection = 0;\n\n do{\n System.out.println(\"Would you like to play Odds or Even? Please select\");\n System.out.println(\"1. Odds\");\n System.out.println(\"2. Even\");\n selection = keyboardIn.nextInt();\n } while (selection != 1 && selection != 2);\n \n if (selection == 1){\n selectedOdds = true;\n }\n else selectedOdds = false;\n\n return selectedOdds;\n }", "private static boolean validateInput2(String[] input) {\n\t\tif (input.length != 2) {\n\t\t\tSystem.out.println(ErrorType.UNKNOWN_COMMAND);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "boolean isInt(TextField input);", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\nSystem.out.println(\"Enter an Integer , string or boolean value\");\nString str=sc.next().toUpperCase();\nif(str.equals(\"true\") || str.equals(\"false\"))\n\tSystem.out.println(\"Given input is string\");\n\t\n\telse if(str.length()==1 && (str.charAt(0)>49 && str.charAt(0)<54))\n\t\tSystem.out.println(\"Its an integert value\");\n\telse if(str.length()>2 )\n\t\t\tSystem.out.println(\"its a boolean\");\n\n}", "@Override\r\n\tpublic boolean enter() {\n\t\tint storyInt = GameCharacter.storyInt;\r\n\t\t// System.out.println(\"Wizard\"+storyInt+(storyInt>=1&&storyInt<=2));\r\n\t\treturn storyInt >= 2 && storyInt <= 4;\r\n\t}", "void addShift(Shift shiftToAdd);", "public boolean isValidMove(int value){\n if (value == HIT || value == MISS) {\n System.out.println(\"Already shot here\");\n return false;\n }\n return true;\n }", "public void setShift(boolean shift) {\n mShift = shift;\n }", "public void playerTurn(Mark mark) {\n boolean validInput = false;\n String player;\n do {\n if (mark == Mark.CROSS) {\n player = \"'X'\";\n } else {\n player = \"'O'\";\n }\n try {\n System.out.print(\"Player \" + player +\", enter the coordinates of your placement (1, 2 or 3) \\nrow: \");\n int row = scanner.nextInt();\n System.out.print(\"column: \");\n int col = scanner.nextInt();\n validInput = isValidInput(mark, row, col);\n }\n catch (InputMismatchException ex){\n System.out.println(\"Invalid coordinate(s): must be a number. Try again..\");\n scanner.next(); // avoid infinity loop by pointing scanner to the token value that causes exception\n }\n }\n // repeat tot dat input valid is\n while (!validInput);\n }", "public static boolean checkForValidInput(String input) {\n try {\n int inputValue = Integer.parseInt(input);\n return inputValue >= 0 && inputValue <= 8;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "private boolean isSecondMove(int numberGeneratedSoFarLength) {\n\t\treturn numberGeneratedSoFarLength == 2;\n\t}", "private int takeChangeInput() {\n\t\tSystem.out.println(\"Enter desired change amount\");\n\n\t\tString amount = scan.next();\n\t\twhile (!amount.matches(\"\\\\d+\")) {\n\t\t\tSystem.out.println(\"Invalid input, please try again.\");\n\t\t\tamount = scan.next();\n\t\t}\n\n\t\tint change = Integer.valueOf(amount);\n\n\t\treturn change;\n\t}", "private void check3(){\n \n if (errorCode == 0){\n \n if (firstDigit * fifthDigit * ninthDigit != 24){\n valid = false;\n errorCode = 3;\n }\n }\n\t}", "public static void checkAndAssign(int player,int mode,int i){\n\tboolean flag = false;\r\n\tString inp;\r\n\tif(mode==1||(mode==2&&i%2==0)||(mode==3&&i%2==1)){\r\n\tSystem.out.print(\"Enter your input Player \"+ player);\r\n\t}\r\n\telse\r\n\t\tSystem.out.print(\"The inputs of computer based Player \"+player+\"\\t\");\r\n\tif((mode==2&&i==1&&gamebd[1][1]==0)||(mode==3&&i==0&&gamebd[1][1]==0)){\r\n\t\tinp=2+\" \"+2;\r\n\t\tSystem.out.println(inp);\r\n\t}\r\n\telse\r\n inp=input(mode,i,player);\r\n\tdo{\r\n String[] temp = inp.split(\" \");\t\r\n if(!(Integer.parseInt(temp[0])>=1&&Integer.parseInt(temp[1])>=1&&Integer.parseInt(temp[0])<=3&&Integer.parseInt(temp[1])<=3))\r\n\t {\r\n\t System.out.println(\"Enter a valid input\");\r\n\t inp=input(mode,i,player);\r\n continue;\r\n\t}\t\t\t\r\n if(gamebd[Integer.parseInt(temp[0])-1][Integer.parseInt(temp[1])-1]==0){\r\n\t\t\tgamebd[Integer.parseInt(temp[0])-1][Integer.parseInt(temp[1])-1]=player;\r\n\t\t\tflag=true;\r\n\t}\r\n\t\telse if(mode==1||(mode==2&&i%2==0)||(mode==3&&i%2==1)){\r\n\t\t\tSystem.out.print(\"Enter your input again Player \"+player);\r\n\t\t inp=input(mode,i,player);\r\n\t\t}\r\n}while(flag==false);\r\n}", "public static boolean restartEN() {\t\t\r\n\t\tint num = 0;\r\n\t\tSystem.out.println(\"\\nRoll again or khmm.. be chicken?\\n1- Roll like a man!\\n2- Exit\");\r\n\t\tdo {\r\n\t\t\tnum = check();\r\n\t\t\tif (num != 1 && num != 2) {\t\t\t\t\t\t\t// u slucaju da se ne unese broj 1 ili 2\r\n\t\t\t\tSystem.out.println(\"Don't be knave, enter option 1 or 2:\");\r\n\t\t\t} else\r\n\t\t\t\tbreak;\r\n\t\t} while (true);\r\n\t\tif (num == 2) {\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tbyte no;\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"enter no\");\n\t\tno = sc.nextByte();\n\t\tbyte temp;\n\t\t\t\n\t\tfor (byte i = 7; i >=0; i--) {\n\n\t\t\tbyte fb = (byte) ((1) << i);\n\t\t\ttemp = (byte) (no & fb);\n\t\t\tif(temp!=0){\n\t\t\t\tSystem.out.print(\"1\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.print(\"0\");\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "private static void check (int expected) {\n\t\tif (sym == expected) scan(); // if verified,read next\n\t\telse error(TokenCodes.tokenName[expected]+\"expected\" );\n\t\t}", "private static int getIntegerInput() {\n\t\tScanner integer_input = new Scanner(System.in);\n\t\tboolean valid_inputType = false;\n\t\tint menu_option = -1;\n\t\t\n\t\t/*Repeatedly asks user to enter input until user enters an integer value as input*/\n\t\twhile(!valid_inputType){\n\t\t\ttry{\n\t\t\t\tmenu_option = integer_input.nextInt(); //get menu option to execute\n\t\t\t\tvalid_inputType = true;\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"ERROR! Invalid Input Type: Input must be a number\");\n\t\t\t\tSystem.out.println(\"Re-enter input: \");\n\t\t\t\tinteger_input = new Scanner(System.in); //clears value previously in integer_input so that user can enter a new value into menu_option.\n\t\t\t}\n\t\t}\n\t\treturn menu_option;\n\t}", "private int ProcessInstruction(String input) {\n\t\tif (InputFileChecks.isStringInteger(input)) {\n\t\t\tint inputVal = Integer.parseInt(input);\n\t\t\tif (inputVal >=0 && inputVal <= 6) {\n\t\t\t\treturn inputVal;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Please return a proper input. Input provided: \" + input + \". Please input a from 0-6\");\n\t\treturn -1;\n\t}", "public static char validateShipping(char deliveryType)\n {\n while (deliveryType != 'F' && deliveryType != 'U')\n {\n System.out.print\n (\"ERROR in your input. You must select either F for Fredcost or U for USPS (F/U): \");\n System.out.print(\"\\nPlease re-enter either F for Fredcost or U for USPS (F/U): \");\n deliveryType = GetInput.readLineNonwhiteChar();\n deliveryType = Character.toUpperCase(deliveryType);\n\n }//end of while loop\n return (deliveryType);\n }", "private static int validateInput() {\n Scanner genericInt = new Scanner(System.in);\n int number = 0;\n if (genericInt.hasNextInt()) {\n number = genericInt.nextInt();\n return number;\n }\n else {\n validateInput();\n }\n return number;\n }", "public void setShift(int shift)\r\n\t{\r\n\t\tif(shift == 0)\r\n\t\t\tdayOrNight = \"Day\";\r\n\t\telse if(shift == 1)\r\n\t\t\tdayOrNight = \"Night\";\r\n\t\telse\r\n\t\t\tdayOrNight = \"INVALID\";\r\n\t\tm_shift = shift;\r\n\t}", "public static void acceptOnlyNumberFifteen(){\n\t\tSystem.out.println(\"please enter the first number: \");\n\t\tScanner scann=new Scanner(System.in);\n\t\tint x1=scann.nextInt();\n\t\tSystem.out.println(\"please enter the second number: \");\n\t\tScanner scan=new Scanner(System.in);\n\t\tint x2=scan.nextInt();\n\t\tSystem.out.println(\"The result is: \" +isTrue(x1,x2));\n\t}", "private void userMoveInput(Board board) {\n\n Scanner in = new Scanner(System.in);\n System.out.print(this.name + \"- Enter number to place \" + this.xOrO + \" :\");\n try {\n this.playerInput = in.nextInt() - 1;\n if (board.checkIfSpotTaken(playerInput)) {\n invalidInput(board);\n }\n }\n catch(Exception err){\n System.out.print(\"Enter a number from 1 - 9. \");\n invalidInput(board);\n }\n }", "private int insertExitMenuAnswer()\n {\n boolean valid = false;\n String choice = \"\";\n Scanner content = new Scanner(System.in);\n \n while (!valid)\n {\n menu.exitOptions();\n choice = content.nextLine().trim();\n valid = validation.integerValidation(choice, 1, 3);\n }\n \n int ans = Integer.parseInt(choice);\n return ans;\n }", "public static boolean isValid(String args[]){\n \n if(args.length < 2){\n System.out.println(\"Not enough arguments detected. Please enter two\"\n + \" integer arguments.\");\n return false;\n }\n \n Scanner scanin = new Scanner(args[0]);\n Scanner scanin2 = new Scanner(args[1]);\n\t \n if(!scanin.hasNextInt() || !scanin2.hasNextInt()){\n System.out.println(\"Invalid argument type detected. Please enter two\"\n + \" integer arguments.\");\n return false;\n }\n\t else\n return true;\n }", "@Test\n public void testIsValidTap() {\n setUpCorrect();\n assertTrue(boardManager.isValidTap(11));\n assertTrue(boardManager.isValidTap(14));\n assertFalse(boardManager.isValidTap(10));\n }", "public boolean isStrobogrammatic(String num) {\n char input[] = num.toCharArray();\n int p1 = 0, p2 = num.length() - 1;//pointers\n while(p1 <= p2) {\n if(input[p1] == '6') {\n if(input[p2] != '9') return false;\n } else if (input[p1] == '9') {\n if(input[p2] != '6') return false;\n } else if (input[p1] == '1' || input[p1] == '8'||input[p1] == '0') {\n if (input[p2] != input[p1]) return false;\n } else {\n return false;\n }\n p1++;\n p2--;\n }\n return true;\n }", "public static int checkCharType(char input){\n\n // Scanner scanner = new Scanner(System.in);\n // System.out.println(\"Enter a Character : \");\n // char input = scanner.next().charAt(0);\n //scanner.close();\n\n if(input >='a' && input <= 'z'){\n System.out.println(\"Small case Letter.\");\n return 1;\n }\n else if(input >='A' && input <= 'Z'){\n System.out.println(\"Capital Letter.\");\n return 2;\n }\n else if(input >='0' && input <= '9'){\n System.out.println(\"A Digit.\");\n return 3;\n }\n else{\n System.out.println(\"Special Character.\");\n return 4;\n }\n }", "public static boolean userInput(){\n String tempInput = \"y\"; //string to hold input for bulletproofing, default length is one character\n Scanner input = new Scanner(System.in);\n\n do { //bulletproofing input\n\n if (tempInput.length() != 1){ //if looping for second time, output error message\n System.out.println(\"Unaccepted input. Please reenter.\");\n }\n\n tempInput = input.nextLine(); //take input\n\n }while(tempInput.length() != 1); //loops again if input is not single character\n\n return tempInput.charAt(0) == 'y';\n }", "@Override\n public boolean validate(List<Shift> shifts, Employee employee , ShiftConfiguration config) {\n if(shifts.isEmpty()) {\n return true;\n }\n int lastIndex = shifts.size() - 1;\n Shift shift = shifts.get(lastIndex);\n int dayNumber = shift.getDayNumber();\n if(dayNumber < timeFrame) {\n return true;\n }\n return true;\n }", "public static int checkInput() {\r\n\t\tint num = 0;\r\n\t\tboolean error = true; // check for error\r\n\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\t// input has to be an integer and not negative number\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0)\r\n\t\t\t\t\tthrow new InputMismatchException();\r\n\t\t\t\terror = false;\r\n\r\n\t\t\t} catch (InputMismatchException e) {\r\n\r\n\t\t\t\tSystem.out.print(\"Wrong input, try again...: \");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t\t// loop continue while there is an error\r\n\t\t} while (error);\r\n\r\n\t\treturn num;\r\n\t}", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\tint tmp = t;\n\t\t\t\tif (tmp % 2 == 0) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "public static void main(String[] args) {\n\t\t\t\tScanner input;\n\t\t\t\tboolean valid;\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// Prompt the user for input\n\t\t\t\t\tSystem.out.println(\"Please enter a number: \");\n\t\t\t\t\t\n\t\t\t\t\t// re-initialize the scanner\n\t\t\t\t\tinput = new Scanner(System.in);\n\t\t\t\t\t\n\t\t\t\t\t// verify the right kind of input\n\t\t\t\t\tvalid = input.hasNextInt();\n\t\t\t\t\tSystem.out.println(valid);\n\t\t\t\t\t\n\t\t\t\t\t// we only read the user input if it is valid\n\t\t\t\t\tif(valid) {\n\t\t\t\t\t\t// this is the actual reading \n\t\t\t\t\t\tint userInput = input.nextInt();\n\t\t\t\t\t}\n\t\t\t\t} while (!valid);\n\t\t\t\t//Flow Control Demo Starts here:\n\t\t\t\t\n\t\t\t\t// Conditionals (If and Switch)\n\t\t\t\t\n//\t\t\t\tboolean condition = userInput >= 0;\n//\t\t\t\t\n//\t\t\t\tif (condition) {\n//\t\t\t\t\tSystem.out.println(\"Your number is Positive: \");\n//\t\t\t\t}\n////\t\t\t\tif (userInput > 50) {\n////\t\t\t\t\tSystem.out.println(\"Your in the magic range: \");\n////\t\t\t\t}\n//\t\t\t\telse {\n//\t\t\t\t\tSystem.out.println(\"Your number is Negative: \");\n//\t\t\t\t}\n//\t\t\t\t\n\t\t\t\t// Switch\n\t\t\t\t\n\t\t\t\tswitch (userInput) {\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"Home Menu: \");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"User Settings: \");\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"No Options valid: \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// similar code with if\n//\t\t\t\tif(userInput <= 5) {\n//\t\t\t\t\tif (userInput > 1) {\n//\t\t\t\t\t\tif(userInput %2 ==0) {\n//\t\t\t\t\t\t\tSystem.out.println(\"Target Range: \");\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t\t \n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Loops\n\t\t\t\t// While loop\n\t\t\t\t\n//\t\t\t\tint counter = 0;\n\t\t\t\t\n\t\t\t\t\n//\t\t\t\twhile(counter < 10) {\n//\t\t\t\t\tSystem.out.println(counter);\n//\t\t\t\t\tcounter++;\n//\t\t\t\t}\n\t\t\t\t\n//\t\t\t\twhile(userInput < 0){\n//\t\t\t\t\tSystem.out.println(\"Enter a number: \");\n//\t\t\t\t\tuserInput = input.nextInt();\n//\t\t\t\t\tSystem.out.println(userInput);\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Do While Loop\n\t\t\t\t\n//\t\t\t\tdo {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.println(\"Enter a Positive number only: \");\n//\t\t\t\t\tuserInput = input.nextInt();\n//\t\t\t\t\tSystem.out.println(\"Iterating through Do-while\");\n//\t\t\t\n//\t\t\t\t} while (userInput < 0);\n//\t\t\t\t\n//\t\t\t\t\n\t\t\t\t// Print the input to show that we stored / received it\n//\t\t\t\tSystem.out.println(userInput);\n\t\t\t\t\n\t\t\t\t// For Loop \n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 9; i >=0; i-= 2) {\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Sample Code from Powerpoint\n\t\t\t\tboolean condition = true;\n\t\t\t\tfor(int i = 1; condition; i += 4) {\n\t\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\t\tcondition = false;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t\t}\n\t\t\t\n\t\t\t\t// Nested for loop\n\t\t\t\tfor(int i = 0 ; i < 10; i++) {\n\t\t\t\t\t\n\t\t\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\t\t\tSystem.out.println(i + \":\" + j);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// Close the input\n\t\t\t\tinput.close();\n\n\t}", "public static char validateProduct(char product)\n {\n while (product != 'W' && product != 'G')\n {\n System.out.print\n (\"ERROR in your input. You must select either W for widgets or G for gizmos (W/G): \");\n System.out.print(\"\\nPlease re-enter either W for widgets or G for gizmos (W/G): \");\n product = GetInput.readLineNonwhiteChar();\n product = Character.toUpperCase(product);\n }//end of while loop\n return (product);\n }", "public boolean checkInteger(String input, int gridSize)\n {\n Scanner console = new Scanner(System.in);\n boolean error = true;\n boolean value = true;\n int result = 0;\n while(error)\n {\n if(checkInput(input) == true)\n {\n result = Integer.parseInt(input);\n if(result >= 0 && result < gridSize)\n {\n error = false;\n }\n else\n {\n System.out.println(\"Please enter a value between 0 and \"+(gridSize-1));\n value = false;\n error = false;\n }\n }\n else\n {\n System.out.println(\"Wrong Input, please enter correct input\");\n value = false;\n error = false;\n }\n }\n return value;\n }", "public static int checkUserInput(int move, Scanner scanner){\n //Catch the exceptions that the user input is not integers\n boolean bError = true;\n while(bError){\n if (scanner.hasNextInt())\n move = scanner.nextInt();\n else {\n System.out.println(\"Wrong input! Please re-enter a correct position(1-9).\");\n scanner.next();\n continue;\n }\n bError = false;\n }\n //To catch the exceptions that user's input is not in [0,9].\n while(!correctPos.contains(move)){\n System.out.println(\"Oops! Your input is not from 1-9, please enter the correct move.\");\n move =scanner.nextInt();\n }\n //To catch the exceptions that user may place a move that has been taken. \n while(Player0Pos.contains(move)||Player1Pos.contains(move)){\n System.out.println(\"Error! Your move has been taken, please enter a correct position.\");\n move =scanner.nextInt();\n }\n return move;\n \n }", "@Test\n\tpublic void secindForInputChecker() {\n\t\tchar charTest = 'c';\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tresult = object1.inputChecker(charTest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean ExpectedResult = true;\n\t\tassertEquals(ExpectedResult, result);\n\n\t}", "public static boolean CheckInputCorrect(String input) {\r\n\t\tboolean binary_tautology = false;\r\n\r\n\t\t// every char is passed through to evaluate if it is a 1 or 0.\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tint z = Character.digit(input.charAt(i), 10);\r\n\r\n\t\t\tif ((z == 0) || (z == 1)) {\r\n\t\t\t\tbinary_tautology = true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn binary_tautology;\r\n\t}", "private String attemptDecrypt(String input, int shift) {\n String output = \"\";\n for (char c : input.toCharArray()) {\n if (c != ' ' && c != '\\n' && !Character.isUpperCase(c)) {\n throw new IllegalArgumentException(\"Character '\" + c + \"' is not capitalized\");\n } else if (c == ' ' || c == '\\n') {\n output += c;\n } else {\n output += (char) (Math.floorMod((c - shift - 'A'), 26) + 'A');\n }\n }\n return output;\n }", "public boolean checkRight()\n\t{\n\t\tif(col+1<=9)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public int promptSeatSelect()\n\t{\n\t\t\t\t\n\t\tString tempSeatSelection = JOptionPane.showInputDialog(\"Please type 1 for a window seat or 2 for isle seat: \");\n\t\t\n\t\t//handles a cancel\n\t\tif(tempSeatSelection == null)\n\t\t{\n\t\t\tpromptExit();\n\t\t}\n\t\t\n\t\tif(!validate(tempSeatSelection))\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tpromptClassSelect();\n\t\t}\n\t\t\n\t\tint seatSelection = Integer.parseInt(tempSeatSelection);\n\t\t \n\t\tif(seatSelection != 1 && seatSelection != 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tpromptSeatSelect();\n\t\t}\n\t\t\n\t\treturn seatSelection;\n\t\t\n\t}", "public static int getMenuOption() {\n Scanner input = new Scanner(System.in);\n\n menuOption = input.next().toLowerCase().charAt(0);\n\n while (menuOption != 'a' && menuOption != 'r' && menuOption != 'f' && menuOption != 'i' && menuOption != 'n' && menuOption != 'q') {\n System.out.print(\"Enter a valid choice: \");\n menuOption = input.next().toLowerCase().charAt(0);\n }\n\n if (menuOption == 'a') {\n return 1;\n } else if (menuOption == 'r') {\n return 2;\n } else if (menuOption == 'f') {\n return 3;\n } else if (menuOption == 'i') {\n return 4;\n } else if (menuOption == 'n') {\n return 5;\n } else {\n return 6;\n }\n }", "public int getPossibleShift() {\n\t\t\treturn possibleShift;\n\t\t}", "public static boolean validateTool(String key, int type, boolean sneaking) {\n\t\tList<String> item = Arrays.asList(getSettings()\n\t\t\t\t.getString(key).split(\",\"));\n\t\tif (item.contains(\"*\")) {\n\t\t\treturn true;\n\t\t}\n\t\tfor (String s : item) {\n\t\t\tboolean isShift = false;\n\t\t\tif (s.contains(\"SHIFT-\")) {\n\t\t\t\ts = s.replace(\"SHIFT-\", \"\");\n\t\t\t\tisShift = true;\n\t\t\t}\n\t\t\tif (Integer.parseInt(s) == type && isShift == sneaking) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean keyInput(int code, int action);", "private static void LessonCalculatorLab() {\n //Write code that prompts the user to enter a number from 0-9 and then reads the users input.\n // Create a Scanner object\n Scanner reader = new Scanner(System.in);\n // Prompt User and get num1 input\n System.out.print(\"Enter a number from 0-9: \");\n int num1 = reader.nextInt();\n\n //If the user enters anything other than a number from 0-9, print \"INVALID\" to the console and reprommpt.\n while(num1 < 0 || num1 > 9) {\n System.out.println(\"INVALID\");\n System.out.print(\"Enter a number from 0-9: \");\n num1 = reader.nextInt();\n }\n\n //Prompt the user for a second number, with the same check.\n //Second Number\n System.out.print(\"Enter another number from 0-9: \");\n int num2 = reader.nextInt();\n reader.nextLine(); //fix issue with not consuming next line after nextInts\n\n //If the user enters anything other than a number from 0-9, print \"INVALID\" to the console and reprommpt.\n while(num2 < 0 || num2 > 9) {\n System.out.println(\"INVALID\");\n System.out.print(\"Enter another number from 0-9: \");\n num2 = reader.nextInt();\n reader.nextLine();\n }\n\n //Operator\n //Prompt the user to choose an operator (+, -, /, *) and accept input.\n //If the user enters anything other than one of the four operators, print \"INVALID\" to the console and reprompt.\n System.out.print(\"Choose an Operator +, -, /, * \");\n String operator = reader.nextLine();\n\n while(!operator.equals(\"-\") && !operator.equals(\"+\") && !operator.equals(\"*\") && !operator.equals(\"/\")) {\n System.out.println(\"INVALID\");\n System.out.print(\"Choose an Operator +, -, /, * \");\n operator = reader.nextLine();\n }\n// boolean flag = true;\n//\n// do {\n// if(operator.equals(\"-\") || operator.equals(\"+\") || operator.equals(\"*\") || operator.equals(\"/\")) {\n// flag = false;\n// } else {\n// System.out.println(\"INVALID\");\n// System.out.print(\"Choose an Operator +, -, /, * \");\n// operator = reader.nextLine();\n// }\n// } while (flag);\n\n //Using a switch/case perform the selected operation on the two entered numbers and output the result to the console.\n //switch (operator) {\n //case \"-\" -> System.out.println(num1 - num2);\n //case \"+\"-> System.out.println(num1 + num2);\n //case \"*\"-> System.out.println(num1 * num2);\n //case \"/\" -> System.out.println(num1/num2);\n //default -> System.out.println(\"This will never happen\");\n //}\n }", "private int validateIntegerInput(int input) {\n if (input < 1 ) {\n input = -1;\n }\n return input;\n }", "public int getShiftType() {\n\t\treturn shiftType;\n\t}", "public static boolean shiftIsDown()\n\t{\n\t\treturn shiftDown;\n\t}" ]
[ "0.594604", "0.58621365", "0.57994354", "0.577768", "0.57359564", "0.57170755", "0.5703358", "0.5670079", "0.5632967", "0.56205845", "0.5590732", "0.54790235", "0.54720366", "0.5450968", "0.5446539", "0.54188585", "0.5409071", "0.53851104", "0.5379246", "0.5357388", "0.5331153", "0.53249466", "0.53143317", "0.53085375", "0.52996814", "0.527668", "0.5239138", "0.522996", "0.52116036", "0.52016485", "0.51963586", "0.5195708", "0.51834905", "0.5181223", "0.5175942", "0.51673436", "0.5163244", "0.51507217", "0.5148852", "0.5147867", "0.51386184", "0.51309675", "0.512658", "0.5126383", "0.5124332", "0.51100886", "0.5107167", "0.51041096", "0.5103195", "0.5098399", "0.50961196", "0.5084047", "0.5077235", "0.50735855", "0.5068908", "0.5068889", "0.50666326", "0.5058653", "0.5058169", "0.5055403", "0.50392187", "0.50360364", "0.5035326", "0.5030001", "0.50290453", "0.50279754", "0.50259125", "0.50227344", "0.50207245", "0.50183904", "0.50179297", "0.5014085", "0.5012566", "0.5012374", "0.501085", "0.4999847", "0.49997017", "0.49992973", "0.49958745", "0.49939734", "0.49878946", "0.49822757", "0.49764836", "0.49661234", "0.49563327", "0.49494985", "0.49481967", "0.49466348", "0.4945463", "0.49387273", "0.49359328", "0.49209696", "0.49176502", "0.49152896", "0.49136463", "0.49094045", "0.49069196", "0.49047652", "0.49041912", "0.49037164" ]
0.8186238
0
TODO Autogenerated method stub circle
public static void main(String[] args) { Circle a = new Circle(); System.out.println(a); //Rectangle Rectangle b = new Rectangle(33.3, 22.2, "green", false); System.out.println(b); //compare a & b's areas System.out.println(equalArea(a, b)? "":"not" + " equal"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Circle() {\r\n this.radius = 0.0;\r\n this.center = new Point();\r\n }", "private void addCircle() {\n\t\tdouble r = getRadius();\n\t\tadd(new GOval(getWidth() / 2.0 - r, getHeight() / 2.0 - r, 2 * r, 2 * r));\n\t}", "public Circle() {\n radius = 1.0;\n color = \"red\";\n }", "public Circle() {\n radius = 1.0;\n color = \"red\";\n }", "public Circle()\r\n\t{\r\n\t\tradius = 0.0;\r\n\t}", "@Override\n public String getName() {\n return \"Circle\";\n }", "SimpleCircle() {\n\t\tradius=1;\n\t}", "public Circle(){\n\t\t\n\t\tradius = 1.0;\n\t\tcolor =\"Red\";\n\t}", "public Circle getCircle(){\n return circleObj;\n }", "public Circle(){ // 1 constructor\n this.radius = DEFAULT_RADIUS;\n this.color = DEFAULT_COLOR;\n }", "public Circle() {\n\t\tr=0.0; //by defalut set radius to something so we have a circle \n\t}", "public Circle(){}", "SimpleCircle() {\n\t\tradius = 1;\n\t}", "public Circle(double r)\n {\n setRad(r);\n\n }", "public Circle(double radius){ // 2 constructor\n this.radius = radius;\n this.color = DEFAULT_COLOR;\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"Circle\";\n\t}", "private void circle(){\n\t\tsquareCollison();\n\t\tsetMoveSpeed(10);\n\t}", "public Circle(double radius){\n this.radius = radius;\n }", "public Circle(double radius){\n\t\tradius =this.radius;\n\t\tcolor =\"Red\";\n\t}", "private void circleCollison() {\n\t\t\n\t}", "public Coordinate getCircle();", "public String _setcirclecolor(int _nonvaluecolor,int _innercolor) throws Exception{\n_mcirclenonvaluecolor = _nonvaluecolor;\n //BA.debugLineNum = 61;BA.debugLine=\"mCircleFillColor = InnerColor\";\n_mcirclefillcolor = _innercolor;\n //BA.debugLineNum = 62;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 63;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void calling() {\n\t\tCircle tc = new Circle(new Coordinate(-73, 42), 0);\n\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n\t\t\tPaintShapes.paint.color = PaintShapes.paint.redTranslucence;\n\t\t\tPaintShapes.paint.addCircle(tc);\n\t\t\tPaintShapes.paint.myRepaint();\n\t\t}\n\t\t\n//\t\tMap<Double, Coordinate>angle_coordinate=new HashMap<Double, Coordinate>();\n//\t\tLinkedList<double[]>coverangle=new LinkedList<double[]>();\n//\t\tMap<Double[], Coordinate[]>uncoverArc=new HashMap<Double[], Coordinate[]>();\n//\t\tdouble a1[]=new double[2];\n//\t\ta1[0]=80;\n//\t\ta1[1]=100;\n//\t\tangle_coordinate.put(a1[0], new Coordinate(1, 0));\n//\t\tangle_coordinate.put(a1[1], new Coordinate(0, 1));\n//\t\tcoverangle.add(a1);\n//\t\tdouble a2[]=new double[2];\n//\t\ta2[0]=0;\n//\t\ta2[1]=30;\n//\t\tangle_coordinate.put(a2[0], new Coordinate(2, 0));\n//\t\tangle_coordinate.put(a2[1], new Coordinate(0, 2));\n//\t\tcoverangle.add(a2);\n//\t\tdouble a3[]=new double[2];\n//\t\ta3[0]=330;\n//\t\ta3[1]=360;\n//\t\tangle_coordinate.put(a3[0], new Coordinate(3, 0));\n//\t\tangle_coordinate.put(a3[1], new Coordinate(7, 7));\n//\t\tcoverangle.add(a3);\n//\t\tdouble a4[]=new double[2];\n//\t\ta4[0]=20;\n//\t\ta4[1]=90;\n//\t\tangle_coordinate.put(a4[0], new Coordinate(4, 0));\n//\t\tangle_coordinate.put(a4[1], new Coordinate(0, 4));\n//\t\tcoverangle.add(a4);\n//\t\tdouble a5[]=new double[2];\n//\t\ta5[0]=180;\n//\t\ta5[1]=240;\n//\t\tangle_coordinate.put(a5[0], new Coordinate(5, 0));\n//\t\tangle_coordinate.put(a5[1], new Coordinate(0, 5));\n//\t\tcoverangle.add(a5);\n//\t\tdouble a6[]=new double[2];\n//\t\ta6[0]=270;\n//\t\ta6[1]=300;\n//\t\tangle_coordinate.put(a6[0], new Coordinate(6, 0));\n//\t\tangle_coordinate.put(a6[1], new Coordinate(0, 6));\n//\t\tcoverangle.add(a6);\n//\t\tdouble a7[]=new double[2];\n//\t\ta7[0]=360;\n//\t\ta7[1]=360;\n//\t\tangle_coordinate.put(a7[0], new Coordinate(7, 7));\n//\t\tangle_coordinate.put(a7[1], new Coordinate(7, 7));\n//\t\tcoverangle.add(a7);\n//\t\t// sort the cover arc\n//\t\tint minindex = 0;\n//\t\tfor (int j = 0; j < coverangle.size() - 1; j++) {\n//\t\t\tminindex = j;\n//\t\t\tfor (int k = j + 1; k < coverangle.size(); k++) {\n//\t\t\t\tif (coverangle.get(minindex)[0] > coverangle.get(k)[0]) {\n//\t\t\t\t\tminindex = k;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tdouble tem[] = new double[2];\n//\t\t\ttem = coverangle.get(j);\n//\t\t\tcoverangle.set(j, coverangle.get(minindex));\n//\t\t\tcoverangle.set(minindex, tem);\n//\t\t}\n//\t\tfor(int ii=0;ii<coverangle.size();ii++){\n//\t\t\tdouble aa[]=coverangle.get(ii);\n//\t\t\tSystem.out.println(aa[0]+\" \"+aa[1]);\n//\t\t}\n//\t\tSystem.out.println(\"----------------------------\");\n//\t\t// find the uncover arc\n//\t\tint startposition = 0;\n//\t\twhile (startposition < coverangle.size() - 1) {\n//\t\t\tdouble coverArc[] = coverangle.get(startposition);\n//\t\t\tboolean stop = false;\n//\t\t\tint m = 0;\n//\t\t\tfor (m = startposition + 1; m < coverangle.size() && !stop; m++) {\n//\t\t\t\tdouble bb[] = coverangle.get(m);\n//\t\t\t\tif (bb[0] <= coverArc[1]) {\n//\t\t\t\t\tcoverArc[0] = Math.min(coverArc[0], bb[0]);\n//\t\t\t\t\tcoverArc[1] = Math.max(coverArc[1], bb[1]);\n//\t\t\t\t} else {\n//\t\t\t\t\tCoordinate uncover[]=new Coordinate[2];\n//\t\t\t\t\t//record the consistant uncover angle\n//\t\t\t\t\tDouble[] uncoverA=new Double[2];\n//\t\t\t\t\tuncoverA[0]=coverArc[1];\n//\t\t\t\t\tuncoverA[1]=bb[0];\n//\t\t\t\t\tIterator<Map.Entry<Double, Coordinate>> entries = angle_coordinate\n//\t\t\t\t\t\t\t.entrySet().iterator();\n//\t\t\t\t\twhile (entries.hasNext()) {\n//\t\t\t\t\t\tMap.Entry<Double, Coordinate> entry = entries.next();\n//\t\t\t\t\t\tif (entry.getKey() == coverArc[1])\n//\t\t\t\t\t\t\tuncover[0] = entry.getValue();\n//\t\t\t\t\t\telse if (entry.getKey() == bb[0])\n//\t\t\t\t\t\t\tuncover[1] = entry.getValue();\n//\t\t\t\t\t}\n//\t\t\t\t\tuncoverArc.put(uncoverA, uncover);\n//\t\t\t\t\tstartposition = m;\n//\t\t\t\t\tstop = true;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tif(m==coverangle.size()){\n//\t\t\t\tstartposition=m;\n//\t\t\t}\n//\t\t}\n//\t\n//\t\tSystem.out.println(uncoverArc.entrySet().size());\n//\t\tint n=uncoverArc.entrySet().size();\n//\t\tint k=2;\n//\t\twhile(n>0){\n//\t\t\tIterator<Map.Entry<Double[],Coordinate[]>>it=uncoverArc.entrySet().iterator();\n//\t\t\tMap.Entry<Double[], Coordinate[]>newneighbor=it.next();\n//\t\t\tSystem.out.println(newneighbor.getKey()[0]+\" \"+newneighbor.getValue()[0]);\n//\t\t\tSystem.out.println(newneighbor.getKey()[1]+\" \"+newneighbor.getValue()[1]);\n//\t\t uncoverArc.remove(newneighbor.getKey());\n//\t\t \n//\t\tif(k==2){\n//\t\tDouble[] a8=new Double[2];\n//\t\ta8[0]=(double)450;\n//\t\ta8[1]=(double)500;\n//\t\tCoordinate a9[]=new Coordinate[2];\n//\t\ta9[0]=new Coordinate(9, 0);\n//\t\ta9[1]=new Coordinate(0, 9);\n//\t\tuncoverArc.put(a8, a9);\n//\t\tk++;\n//\t\t}\n//\t\tn=uncoverArc.entrySet().size();\n//\t\tSystem.out.println(\"new size=\"+uncoverArc.entrySet().size());\n//\t\t}\n//\t\t\t\n\t\t\t\n\t\t\n\t\t/***************new test*************************************/\n//\t\tCoordinate startPoint=new Coordinate(500, 500);\n//\t\tLinkedList<VQP>visitedcircle_Queue=new LinkedList<VQP>();\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(500, 500), 45));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(589, 540), 67));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(500, 550), 95));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(439, 560), 124));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(460, 478), 69));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(580, 580), 70));\n//\t\tIterator<VQP>testiterator=visitedcircle_Queue.iterator();\n//\t\twhile(testiterator.hasNext()){\n//\t\t\tVQP m1=testiterator.next();\n//\t\t\tCircle tm=new Circle(m1.getCoordinate(), m1.getRadius());\n//\t\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n//\t\t\t\tPaintShapes.paint.color = PaintShapes.paint.redTranslucence;\n//\t\t\t\tPaintShapes.paint.addCircle(tm);\n//\t\t\t\tPaintShapes.paint.myRepaint();\n//\t\t\t}\n//\t\t\t\n//\t\t}\n//\t\tdouble coverradius=calculateIncircle(startPoint, visitedcircle_Queue);\n//\t\tCircle incircle=new Circle(startPoint, coverradius);\n//\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n//\t\t\tPaintShapes.paint.color = PaintShapes.paint.blueTranslucence;\n//\t\t\tPaintShapes.paint.addCircle(incircle);\n//\t\t\tPaintShapes.paint.myRepaint();\n//\t\t}\n//\t\t/***************end test*************************************/\n\t\tEnvelope envelope = new Envelope(-79.76259, -71.777491,\n\t\t\t\t40.477399, 45.015865);\n\t\tdouble area=envelope.getArea();\n\t\tdouble density=57584/area;\n\t\tSystem.out.println(\"density=\"+density);\n\t\tSystem.out.println(\"end calling!\");\n\t}", "public Circle(int x, int y, int r) {\n super(x-r,y-r);\n name = \"Circle\";\n width = 2*r;\n height = 2*r;\n radius = r;\n }", "public ShapeComponent drawCircle()\n\t{\n\t\tShapeComponent circleComponent = new ShapeComponent(radius*2, radius*2, \n\t\t\t\t\"circle\");\n\t\treturn circleComponent;\n\t}", "private void doCircle()\n\t{\n\t\tubisenseData = new UbisenseMockupData();\n\t\tDecimalFormat df = new DecimalFormat(\"#0,00\");\n\n\t\telapsedTime = 0;\n\t\t\n\t\tubisenseData.setTagID(Helper.DEFAULT_TAG_ID);\n\t\tubisenseData.setUnit(Helper.UBISENSE_UNIT);\n\t\tubisenseData.setOntology(Helper.LP_ONTOLOGY_URL);\n\t\tubisenseData.setVersion(Helper.UBISENSE_VERSION);\n\t\tubisenseData.setId(\"\");\n\t\tubisenseData.setSendTime(sendTime);\n\n\t\tlong millis = startDate.getMillis();\n\t\tmillis += offset.toStandardDuration().getMillis();\n//\t\tmillis += parentOffset.toStandardDuration().getMillis();\n\t\t\n\t\t//Radianten des Winkels berechnen\n\t\tdouble radiant = Math.toRadians(arc);\n\t\t\n\t\t// Distanz d berechnen, die auf dem Kreis zurückgelegt werden soll\n\t\tdouble d = Math.PI * radius * (arc / 180);\n\t\t\n\t\t// Zeit t [s] berechnen, die für die Distanz d unter gegebener Geschwindigkeit benötigt wird.\n\t\tdouble t = d / toolSpeed;\n\t\tdouble steps = Math.ceil(t) +1;\n\n\t\t//Startkoordinaten berechnen\n\t\tint startX, startY;\n\t\tstartX = x1;\n\t\tstartY = y1 + radius;\n\t\t\n\t\twhile(steps > 0 && !terminate)\n\t\t{\n\t\t\tdouble x,y, currentTime=0, currentArc = 0;\n\t\t\tif (t != 0)\n\t\t\tcurrentTime = elapsedTime / t;\n\n\t\t\tcurrentArc = radiant * currentTime;\n\t\t\t\n\t\t\tx = (startX - x1) * Math.cos(currentArc) - (startY - y1) * Math.sin(currentArc) + x1;\n\t\t\ty = (startX - x1) * Math.sin(currentArc) + (startY - y1) * Math.cos(currentArc) + y1;\n\n\t\t\tubisenseData.setPosition(new Point3D(\tDouble.parseDouble(df.format(x)),\n\t\t\t \tDouble.parseDouble(df.format(y)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t1.6));\n\t\t\tubisenseData.setId(String.valueOf(Helper.getRandomInt()));\n\t\t\tubisenseData.setTime(millis + (long) (elapsedTime*SLEEP_INTERVAL));\n\t\t\t\n\t\t\tEntryEvent event = new EntryEvent(this);\n\t\t\tnotifyListeners(event);\n\t\t\telapsedTime++;\n\t\t\tif (elapsedTime > t)\n\t\t\t\telapsedTime = t;\n\t\t\t\n\t\t\tsteps--;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (speed > 0)\n\t\t\t\t\tThread.sleep(SLEEP_INTERVAL/speed);\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public Circle(){\n }", "public Ex1Circle(double radiusIn)\n {\n radius = radiusIn;\n }", "public Circle(){\r\n\t \t// System.out.println(\"Default constructor dipanggil.\");\r\n\t \tjejari = 1;\r\n\t \tx = 5;\r\n\t \tbilObjekWujud++;\r\n\t }", "public Circle(int x, int y, int r, Color c) {\n super(x-r,y-r);\n color = c;\n name = \"Circle\";\n width = 2*r;\n height = 2*r;\n radius = r;\n }", "@Override\n public void draw() {\n drawAPI.drawCircle(radius, x, y); \n }", "public Circle(int x, int y) {\n\t \n\tSystem.out.println(\"Circel constructor called.\"); \n \n\tthis.X=x;\n\tthis.Y=y;\n}", "@Override\r\n\tpublic boolean isCircle() {\n\t\treturn false;\r\n\t}", "public Circle(int x, int y) {\n super(x-5,y-5);\n name = \"Circle\";\n width = 2*5;\n height = 2*5;\n radius = 5;\n }", "public Circle(double radio) {\n\n super(\"circle\");\n this.radio=radio;\n }", "public Circle(double radius){\n// Set the this.X to the args\n//Force any var radius < 0 to 0\n this.radius = Math.max(0, radius);\n }", "SimpleCircle(double newRadius){\n\t\tradius=newRadius;\n\t}", "public CircleComponent()\n {\n circles = new ArrayList<>();\n circleCounter = 0;\n\n }", "private void createCircle(double x, double y) {\r\n GOval circle = new GOval(x, y, DIAMETR, DIAMETR);\r\n circle.setFilled(true);\r\n circle.setFillColor(Color.BLACK);\r\n add(circle);\r\n }", "public Circle(double r)\r\n\t{\r\n\t\tradius=r;\r\n\t}", "public Circle() {\n this( 1.0 ); \n }", "public boolean getShowCircle() {\n return displayCircle;\n }", "@Override\n public boolean isCircle() {\n return mIsCircle;\n }", "public Circle(Circle circle) {\n this.center = circle.center;\n this.radius = circle.radius;\n }", "public void getCircles() {\n\t\tlong startTime = System.nanoTime();\n\t\tif (circleImage != null) {\n\t\t\tcircleFrame.getContentPane().remove(circleImage);\n\t\t}\n//\t\tcircles = ProcessOpenCV.getCircles(cannyMat, cannyImage.getWidth()/5);\n\t\tcircles = ProcessOpenCV.getCircles(zoomImage.getImage(), cannyImage.getWidth()/4);\n\t\tcircleImage = new SignImage(cannyImage.getWidth(), cannyImage.getHeight() );\n\t\tcircleImage.setCircles(circles);\n\t\tcircleFrame.getContentPane().add(circleImage);\n\t\tcircleFrame.setSize(lineImage.getWidth(), lineImage.getHeight());\n//\t\tcircleFrame.setVisible(true);\t\n\t}", "public double getCircleRadius();", "public Circle(int r) {\n\t\tthis.radius = r;\n\t}", "public Circle getShape(){\n\t\treturn new Circle();\n\t}", "public Circle(double r) {\n radius = r;\n color = \"red\";\n }", "public Circle(double newRadius) {\n\t\tradius = newRadius;\t\t\t\n\t}", "public Circle() {\n super(new GeoCircle(), FeatureTypeEnum.GEO_CIRCLE);\n this.setFillStyle(null);\n }", "SimpleCircle(double newRadius) {\n\t\tradius = newRadius;\n\t}", "public Circle(double givenRadius)\n\t{\n\t\tradius = givenRadius;\n\t}", "public Color getColor() {\n return circleColor;\n\n }", "public Circle(double r) {\n radius = r;\n color = \"red\";\n }", "private void drawCircle(GraphicsContext gc, double x, double y) {\r\n GraphicsContext gc1 = myCanvas.getGraphicsContext2D();\r\n gc1.setFill(randomColor());\r\n gc1.fillOval(x - 20, y - 20, 40, 40);\r\n }", "public double getRadius(){return radius;}", "public void clearCircle();", "public Circle() {\n this(0, 0, 1);\n }", "private void finishCircle(MouseEvent e) {\n\t\tint x = e.getX();\n\t\tint y = e.getY();\n\t\tradius = Math.sqrt((x - centerX) * (x - centerX) + (y - centerY) * (y - centerY));\n\t}", "public Circle(double radius) {\n super(\"white\", true);\n this.radius = radius;\n }", "long getRadius();", "Circle(int radius) {\n\t\tsuper(radius);\n\t\tSystem.out.println(\"The area of circle is \"+3.14*(radius*radius));\n\t}", "@Override\r\n\tpublic double getRadius() {\n\t\treturn 0;\r\n\t}", "public Circle(double r) {\n this.r = r;\n }", "public Circle(double radius,String c){\n\t\tradius = this.radius;\n\t\tcolor =c;\n\t}", "public double getRadius() {\n return radius; \n }", "private void DrawCircle(GL2 gl, int xC, int yC, int radius) {\n gl.glPointSize(10.0f);\n gl.glColor3d(1, 2, 1);\n gl.glBegin(GL2.GL_POINTS);\n\n gl.glVertex2d(xC, yC);\n\n int x = radius, y = 0, d = -4 * radius + 5;\n draw8SymmetricCurves(gl, xC, yC, x, y);\n while (y <= x) {\n if (d < 0) {\n d = d + ((2 * y + 3) * 4);\n y++;\n } else {\n d += ((-2 * x + 2 * y + 5) * 4);\n x--;\n y++;\n }\n draw8SymmetricCurves(gl, xC, yC, x, y);\n }\n gl.glEnd();\n }", "public Circle(Point p, Point q, double r) {\n // TODO: Question 2.1\n\n }", "public int getRadius() { return radius; }", "public void printCircleInfo(){\n System.out.println(\"The circle is created \" + getDateCreated() + \" and the readius is \" + radius);\n }", "public double getRadius(){\n return radius;\n }", "private static void calculateRadiusforCircle()\r\n\t{\r\n\t\tsensorRadius = Math.sqrt((double) averageDensity / (double) numberOfSensors);\r\n\t\tsensorRadius = sensorRadius * unitSizeForCircle;\r\n\t\tnoOfCellRowsCoulmns = (int) (unitSizeForSquare / sensorRadius);\r\n\t\tcell = new Cell[noOfCellRowsCoulmns + 2][noOfCellRowsCoulmns + 3];\r\n\t\tinitializeCell(noOfCellRowsCoulmns + 2, noOfCellRowsCoulmns + 3);\r\n\t}", "private void newCircle()\n {\n setMinimumSize(null);\n\n //Generate a new circle\n panel.generateNewCircle();\n\n //Calculate the circle properties and setup the text area with their values\n generateTextArea();\n\n //Repack the frame to fit everything perfectly\n pack();\n\n setMinimumSize(getSize());\n }", "public Circle getCircle() {\n\t\tnew LoggingAspectProxyConcept().loggingAdvice();\n\t\treturn super.getCircle();\n\t\t\n\t}", "protected void renderCircle(Graphics g, int x, int y, int diameter)\n {\n\tx -= diameter/2;\n\ty -= diameter/2;\n\t\n\tg.drawOval(x,y,diameter,diameter);\n\tig.drawOval(x,y,diameter,diameter);\n }", "public Circle(double radius, Point center) {\r\n this.radius = radius;\r\n this.center = center;\r\n }", "private Arc2D.Double getCircle(double cenX, double cenY, double radius) {\r\n\t\t// Create an arc centered on the passed coordinates, beginning and\r\n\t\t// ending at the same position and forming a closed loop full circle.\r\n\t\treturn getPie(cenX, cenY, radius, 0.0, 360.0);\r\n\t}", "public abstract float getRadius();", "public abstract float getRadius();", "public Circle(SelectedColor color) {\n super(Name.Circle, color);\n\n Log.i(\"Circle\",\"Created a \" + color + \" Circle\");\n //Need getcolor() to pick random\n //Maybe keep all colors random at create time, then when we add them to data struc\n //we change one of the colors depending on \"correct shape\"\n }", "public Circle(float centerX, float centerY, float radius) {\n this.center = new Vector2(centerX, centerY);\n this.radius = radius;\n }", "public Circle(double r) {\n this.r = r;\n this.center = new Point(0,0);\n }", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Circle Drawn\");\r\n\t}", "public boolean isCircle();", "public Circle(Point o, double r) {\n origin = new Point(o);\n radius = r;\n }", "public Circle(double radius, String color){ // 3 constructor\n this.radius = radius;\n this.color = color;\n }", "public static double circle(int r) {\n\t\treturn Math.PI * square(r);\r\n\t\t//return multiple(3.14, square(r));\r\n\t}", "public double getRadius(){\r\n return radius;\r\n }", "int getRadius();", "private void updateRadiusCircle(){\n if(mRadiusCircle != null) {\n mRadiusCircle.setVisible(false);\n }\n mRadiusCircle = mMap.addCircle(new CircleOptions()\n .center(new LatLng(mCurrentLoc.latitude, mCurrentLoc.longitude))\n .radius(mRadius * METERS_PER_MILE)\n .strokeColor(Color.BLUE)\n .fillColor(BLUE_COLOR));\n mRadiusCircle.setVisible(true);\n }", "public void drawCircle(int RGB, int startX, int startY, int radius) {\n\t\tfor (int i = 0; i < 360; i++) {\n\t\t\tfloat x_off = (radius / 2) * (float) Math.cos(i * Math.PI / 180);\n\t\t\tfloat y_off = (radius / 2) * (float) Math.sin(i * Math.PI / 180);\n\t\t\tdrawPixel(RGB, (int) (startX + (radius / 2) + x_off), (int) (startY\n\t\t\t\t\t+ (radius / 2) + y_off));\n\t\t}\n\t}", "double getRadius();", "public Circle(Vector2 center, float radius) {\n this.center = center;\n this.radius = radius;\n }", "@Test\n\tpublic void testCircleRadiusOne()\n\t{\n\t\tfinal EllipseRegionOfInterest ellipse = new EllipseRegionOfInterest( 2 );\n\t\tellipse.setOrigin( new double[] { 1, 1 } );\n\t\tellipse.setRadius( 1 );\n\t\ttestEllipse( ellipse );\n\n\t}", "public Square getCircleSquare(){\n return circleSquare;\n }", "ActionType(int x,int y,int rad,Circle crl,boolean isC){\n oldX=x;\n oldY=y;\n radius=rad;\n circleObj=crl;\n wasCreated=isC;\n }", "public void setCenterCircleFill(){\n if(solvable){\n solvableCircle.setFill(Color.GREEN);\n }\n else{\n solvableCircle.setFill(Color.RED);\n }\n }", "public void drawCircle() {\n mMap.clear();\n // Generate the points\n mMap.addPolygon(new PolygonOptions().addAll(points).strokeWidth(5).strokeColor(Color.RED).fillColor(Color.TRANSPARENT));\n // Create and return the polygon\n for (int i=0;i<points.size();i++){\n Log.v(\"DrawCircle\",\"drwaakmdaskfmlsmn\"+points.get(i));\n }\n\n\n\n }", "public void circlePressed() {\n\t\tif (edit) {\n\t\t\tedit = false;\n\t\t\tactiveNode.setDimmedHand(false);\n\t\t\tcurrentDeck.setActive(false);\n\t\t\tcurrentDeck = null;\n\t\t\tactiveDeck = NO_DECK;\n\t\t} else {\n\t\t\tMainMenu.getMainMenu().initStartPage(0);\n\t\t}\n\t}", "private void drawRoundHead(Canvas canvas, int centerX, int centerY, float degree, int radius, int color){\n double radian = degree * Math.PI / 180;\n double drawX = centerX + Math.cos(radian) * DOWNLOAD_ARC_DRAW_R;\n double drawY = centerY + Math.sin(radian) * DOWNLOAD_ARC_DRAW_R;\n Paint paint = new Paint();\n paint.setColor(color);\n paint.setAntiAlias(true);\n canvas.drawCircle((float)drawX, (float)drawY, radius, paint);\n }" ]
[ "0.7153298", "0.7127359", "0.70904696", "0.70763946", "0.69941694", "0.6957324", "0.69477725", "0.6935513", "0.6917661", "0.68971497", "0.6884002", "0.68724597", "0.684227", "0.6832199", "0.68277", "0.6804906", "0.67608786", "0.6711696", "0.67096514", "0.67069024", "0.6689839", "0.6677269", "0.665908", "0.6644565", "0.6643189", "0.66383874", "0.6623771", "0.6619471", "0.6619049", "0.6615381", "0.65855354", "0.65547454", "0.6541812", "0.6522125", "0.6511817", "0.651066", "0.6495089", "0.6484448", "0.6472754", "0.64605683", "0.6455471", "0.64508104", "0.64481914", "0.6442786", "0.64300203", "0.64245504", "0.6422331", "0.6411996", "0.6384888", "0.63798535", "0.6374794", "0.63723254", "0.63713795", "0.6342646", "0.6321803", "0.6303434", "0.6291737", "0.6281481", "0.6260668", "0.6246476", "0.62428033", "0.62403744", "0.62382054", "0.6227686", "0.6221953", "0.62095886", "0.6206255", "0.62013423", "0.61974376", "0.6176174", "0.6160493", "0.6158531", "0.6157441", "0.6154433", "0.61518306", "0.612445", "0.61205375", "0.61167", "0.6108048", "0.6108048", "0.61051875", "0.6094894", "0.608936", "0.6087769", "0.6084768", "0.6054216", "0.6053489", "0.6052981", "0.6047839", "0.6047551", "0.60316557", "0.6029478", "0.6026122", "0.6013373", "0.59915286", "0.5990707", "0.59891796", "0.59817016", "0.5980727", "0.5973921", "0.5966204" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0)); lblServerIP = new javax.swing.JLabel(); lblServerIPValue = new javax.swing.JLabel(); jSplitPane1 = new javax.swing.JSplitPane(); jPanel2 = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); txpChat = new javax.swing.JTextPane(); jPanel4 = new javax.swing.JPanel(); txtMessage = new javax.swing.JTextField(); btnSend = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); jPanel9 = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); lstPlayers = new javax.swing.JList(); pnlSettings = new javax.swing.JPanel(); jPanel6 = new javax.swing.JPanel(); lblStartLevel = new javax.swing.JLabel(); filler5 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0)); sprStartLevel = new JSpinner(new SpinnerNumberModel(1, 1, 15, 1)); jPanel8 = new javax.swing.JPanel(); lblNumberOfJokers = new javax.swing.JLabel(); filler3 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0)); sprNumberOfJokersValue = new javax.swing.JSpinner(); cbxRandomSeed = new javax.swing.JCheckBox(); jPanel7 = new javax.swing.JPanel(); lblSeed = new javax.swing.JLabel(); filler4 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0)); sprSeed = new javax.swing.JSpinner(new SpinnerNumberModel(1, Long.MIN_VALUE, Long.MAX_VALUE, 1)); cbxIncludeSpecialBlocks = new javax.swing.JCheckBox(); filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 32767)); jPanel5 = new javax.swing.JPanel(); filler6 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0)); btnStart = new javax.swing.JButton(); filler7 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767)); btnExit = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); setMaximumSize(new java.awt.Dimension(750, 500)); setMinimumSize(new java.awt.Dimension(750, 500)); setPreferredSize(new java.awt.Dimension(750, 500)); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 10, 1, 10)); jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.LINE_AXIS)); jLabel1.setText("<html><h3>ZeLaMoSe-Tetris - Lobby</h3></html>"); jLabel1.setMaximumSize(new java.awt.Dimension(500, 37)); jPanel1.add(jLabel1); jPanel1.add(filler1); lblServerIP.setText("Server-IP:"); jPanel1.add(lblServerIP); lblServerIPValue.setText("<ServerIPValue>"); jPanel1.add(lblServerIPValue); getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH); jSplitPane1.setResizeWeight(1.0); jSplitPane1.setMaximumSize(new java.awt.Dimension(750, 500)); jSplitPane1.setMinimumSize(new java.awt.Dimension(750, 500)); jSplitPane1.setPreferredSize(new java.awt.Dimension(750, 500)); jPanel2.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5)); jPanel2.setMaximumSize(new java.awt.Dimension(500, 500)); jPanel2.setMinimumSize(new java.awt.Dimension(500, 500)); jPanel2.setPreferredSize(new java.awt.Dimension(500, 500)); jPanel2.setLayout(new java.awt.BorderLayout()); txpChat.setEditable(false); txpChat.setFocusable(false); jScrollPane3.setViewportView(txpChat); jPanel2.add(jScrollPane3, java.awt.BorderLayout.CENTER); jPanel4.setLayout(new java.awt.BorderLayout()); txtMessage.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtMessageActionPerformed(evt); } }); jPanel4.add(txtMessage, java.awt.BorderLayout.CENTER); btnSend.setText("Send"); btnSend.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSendActionPerformed(evt); } }); jPanel4.add(btnSend, java.awt.BorderLayout.EAST); jPanel2.add(jPanel4, java.awt.BorderLayout.SOUTH); jSplitPane1.setLeftComponent(jPanel2); jPanel3.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5)); jPanel3.setMaximumSize(new java.awt.Dimension(250, 500)); jPanel3.setMinimumSize(new java.awt.Dimension(250, 10)); jPanel3.setPreferredSize(new java.awt.Dimension(250, 10)); jPanel3.setLayout(new javax.swing.BoxLayout(jPanel3, javax.swing.BoxLayout.Y_AXIS)); jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder("Players")); jPanel9.setAlignmentX(0.0F); jPanel9.setAlignmentY(0.0F); jPanel9.setMaximumSize(new java.awt.Dimension(250, 250)); jPanel9.setLayout(new java.awt.BorderLayout()); jScrollPane2.setAlignmentX(0.0F); jScrollPane2.setAlignmentY(0.0F); lstPlayers.setModel(playerListModel); lstPlayers.setAlignmentX(0.0F); lstPlayers.setAlignmentY(0.0F); lstPlayers.setCellRenderer(playerListCellRenderer); jScrollPane2.setViewportView(lstPlayers); jPanel9.add(jScrollPane2, java.awt.BorderLayout.CENTER); jPanel3.add(jPanel9); pnlSettings.setBorder(javax.swing.BorderFactory.createTitledBorder("Settings")); pnlSettings.setAlignmentX(0.0F); pnlSettings.setAlignmentY(0.0F); pnlSettings.setMaximumSize(new java.awt.Dimension(250, 132)); pnlSettings.setMinimumSize(new java.awt.Dimension(250, 132)); pnlSettings.setPreferredSize(new java.awt.Dimension(250, 132)); pnlSettings.setLayout(new javax.swing.BoxLayout(pnlSettings, javax.swing.BoxLayout.Y_AXIS)); jPanel6.setAlignmentX(0.0F); jPanel6.setAlignmentY(0.0F); jPanel6.setLayout(new javax.swing.BoxLayout(jPanel6, javax.swing.BoxLayout.LINE_AXIS)); lblStartLevel.setText("Start at Level:"); jPanel6.add(lblStartLevel); jPanel6.add(filler5); sprStartLevel.setModel(new javax.swing.SpinnerNumberModel(1, 1, 15, 1)); sprStartLevel.setMaximumSize(new java.awt.Dimension(100, 21)); sprStartLevel.setMinimumSize(new java.awt.Dimension(100, 21)); sprStartLevel.setPreferredSize(new java.awt.Dimension(100, 21)); jPanel6.add(sprStartLevel); pnlSettings.add(jPanel6); jPanel8.setAlignmentX(0.0F); jPanel8.setAlignmentY(0.0F); jPanel8.setLayout(new javax.swing.BoxLayout(jPanel8, javax.swing.BoxLayout.LINE_AXIS)); lblNumberOfJokers.setText("Number of Jokers:"); jPanel8.add(lblNumberOfJokers); jPanel8.add(filler3); sprNumberOfJokersValue.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(0), Integer.valueOf(0), null, Integer.valueOf(1))); sprNumberOfJokersValue.setMaximumSize(new java.awt.Dimension(100, 21)); sprNumberOfJokersValue.setMinimumSize(new java.awt.Dimension(100, 21)); sprNumberOfJokersValue.setPreferredSize(new java.awt.Dimension(100, 21)); jPanel8.add(sprNumberOfJokersValue); JFormattedTextField txt = ((JSpinner.NumberEditor) sprNumberOfJokersValue.getEditor()).getTextField(); ((NumberFormatter) txt.getFormatter()).setAllowsInvalid(false); ((NumberFormatter) txt.getFormatter()).setMinimum(0); pnlSettings.add(jPanel8); cbxRandomSeed.setSelected(true); cbxRandomSeed.setText("Random Seed"); cbxRandomSeed.setAlignmentY(0.0F); cbxRandomSeed.setMaximumSize(new java.awt.Dimension(200, 20)); cbxRandomSeed.setMinimumSize(new java.awt.Dimension(91, 20)); cbxRandomSeed.setPreferredSize(new java.awt.Dimension(100, 20)); cbxRandomSeed.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbxRandomSeedActionPerformed(evt); } }); pnlSettings.add(cbxRandomSeed); jPanel7.setAlignmentX(0.0F); jPanel7.setAlignmentY(0.0F); jPanel7.setLayout(new javax.swing.BoxLayout(jPanel7, javax.swing.BoxLayout.LINE_AXIS)); lblSeed.setText("Seed:"); lblSeed.setEnabled(false); jPanel7.add(lblSeed); jPanel7.add(filler4); sprSeed.setModel(new javax.swing.SpinnerNumberModel(Long.valueOf(0L), Long.valueOf(0L), null, Long.valueOf(1L))); sprSeed.setEnabled(false); sprSeed.setMaximumSize(new java.awt.Dimension(100, 21)); sprSeed.setMinimumSize(new java.awt.Dimension(100, 21)); sprSeed.setPreferredSize(new java.awt.Dimension(100, 21)); jPanel7.add(sprSeed); pnlSettings.add(jPanel7); cbxIncludeSpecialBlocks.setSelected(true); cbxIncludeSpecialBlocks.setText("Include Special Blocks"); cbxIncludeSpecialBlocks.setAlignmentY(0.0F); cbxIncludeSpecialBlocks.setMaximumSize(new java.awt.Dimension(200, 21)); cbxIncludeSpecialBlocks.setMinimumSize(new java.awt.Dimension(129, 21)); cbxIncludeSpecialBlocks.setPreferredSize(new java.awt.Dimension(129, 21)); pnlSettings.add(cbxIncludeSpecialBlocks); jPanel3.add(pnlSettings); jPanel3.add(filler2); jPanel5.setAlignmentX(0.0F); jPanel5.setAlignmentY(0.0F); jPanel5.setMaximumSize(new java.awt.Dimension(32910, 23)); jPanel5.setPreferredSize(new java.awt.Dimension(258, 23)); jPanel5.setLayout(new javax.swing.BoxLayout(jPanel5, javax.swing.BoxLayout.LINE_AXIS)); jPanel5.add(filler6); btnStart.setText("Start Game"); btnStart.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnStartActionPerformed(evt); } }); jPanel5.add(btnStart); jPanel5.add(filler7); btnExit.setText("Exit"); btnExit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnExitActionPerformed(evt); } }); jPanel5.add(btnExit); jPanel3.add(jPanel5); jSplitPane1.setRightComponent(jPanel3); getContentPane().add(jSplitPane1, java.awt.BorderLayout.CENTER); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7322098", "0.7292275", "0.7292275", "0.7292275", "0.72872275", "0.72507876", "0.7214814", "0.7209056", "0.7197325", "0.71918863", "0.71856284", "0.7160448", "0.7148918", "0.7094831", "0.70820963", "0.70585436", "0.6988433", "0.6978755", "0.69569016", "0.6955245", "0.6946354", "0.6943946", "0.69372547", "0.69337106", "0.692833", "0.6926309", "0.6925797", "0.6913563", "0.69128335", "0.68947935", "0.68944126", "0.6892644", "0.6892526", "0.6890029", "0.68840426", "0.6883357", "0.68825054", "0.68799883", "0.6877452", "0.68761104", "0.6872709", "0.6860889", "0.685809", "0.68573505", "0.6857084", "0.6855715", "0.6854889", "0.6853878", "0.6853878", "0.68449485", "0.6837977", "0.6837628", "0.68301326", "0.68300813", "0.68270093", "0.68252003", "0.6824086", "0.68179536", "0.6817771", "0.6812606", "0.68101424", "0.6810129", "0.68094033", "0.68090034", "0.6803104", "0.67956436", "0.67945904", "0.67945004", "0.67922586", "0.6791291", "0.6790622", "0.6788877", "0.67824686", "0.6767054", "0.6766772", "0.67666554", "0.6757428", "0.6757375", "0.67544115", "0.6752288", "0.6742188", "0.6740892", "0.673854", "0.6737719", "0.67355186", "0.67291087", "0.67281425", "0.67225796", "0.6716416", "0.6716406", "0.67161214", "0.6709585", "0.67085403", "0.6704994", "0.67029893", "0.6702461", "0.6700217", "0.6700078", "0.6695004", "0.66921735", "0.6690468" ]
0.0
-1
End of variables declaration//GENEND:variables
@Override public void update(Observable o, Object o1) { TetrisController.UpdateType type = (TetrisController.UpdateType) o1; switch (type) { case INIT_SIGNAL: chatController.deleteObserver(this); chatController.deleteObserver(playerListModel); chatController.tearDown(); tetrisController.deleteObserver(this); final GameFieldJFrame gameField = new GameFieldJFrame(tetrisController, tetrisController.getInputSampler(), tetrisController.getLocalSimulationStateInterface(), tetrisController.getOtherSimulationStateInterfaces()); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { gameField.setVisible(true); dispose(); } }); break; case EXCEPTION_THROWN: break; case CHAT_MESSAGE_RECEIVED: writeChatMessage(chatController.getChatMessage()); break; case SESSION_ADDED: writeServerMessage(chatController.getAddedSession().getNickname() + " enters"); break; case SESSION_REMOVED: writeServerMessage(chatController.getRemovedSession().getNickname() + " has left"); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\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 }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
Clean up the media player by releasing its resources.
private void releaseMediaPlayer() { // If the media player is not null, then it may be currently playing a sound. if (mediaPlayer != null) { // Regardless of the current state of the media player, release its resources // because we no longer need it. mediaPlayer.release(); // Set the media player back to null. For our code, we've decided that // setting the media player to null is an easy way to tell that the media player // is not configured to play an audio file at the moment. mediaPlayer = null; audioManager.abandonAudioFocus(mOnAudioFocusChangeListener); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cleanUp() {\n\t\tVisualizerView mVisualizerView = MusicApplication.getInstance()\n\t\t\t\t.getVisualizerView();\n\t\tif (mVisualizerView != null) {\n\t\t\tmVisualizerView.updateVisualizer(new byte[] {});\n\t\t}\n\t\t//\t\tif (mCurrentMediaPlayer != null) {\n\t\t//\t\t\tmCurrentMediaPlayer.reset();\n\t\t//\t\t\t//\t\t\tmCurrentMediaPlayer = null;\n\t\t//\t\t\tsetState(IDLE);\n\t\t//\t\t\tcom.dj.util.Log.i(this.getClass().getSimpleName(),\n\t\t//\t\t\t\t\t\" 歌曲停止,释放资源。mCurrentMediaPlayer: \" + mCurrentMediaPlayer);\n\t\t//\t\t\t//\t\t\tcleanEQ();\n\t\t//\t\t}\n\t}", "private void releaseMediaPlayer(){\n if (mediaPlayer != null) {\n mediaPlayer.release();\n mediaPlayer = null;\n }\n }", "private void releaseResources() {\n\t\tstopForeground(true);\n\t\taudioManager.unregisterRemoteControlClient(remoteControlClient);\n\t\taudioManager.unregisterMediaButtonEventReceiver(remoteReceiver);\n\t\t\n\t\tif (mediaPlayer != null){\n\t\t\tmediaPlayer.reset();\n\t\t\tmediaPlayer.release();\n\t\t\tmediaPlayer = null;\n\t\t}\n\t\t\n\t\tif (wifiLock.isHeld()) {\n\t\t\twifiLock.release();\n\t\t}\n\t}", "public void destroy() {\n uiView.setMediaPlayer(null);\n mediaLoader.destroy();\n }", "private void releaseMediaPlayer() {\n if (mediaPlayer != null) {\n // Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n mediaPlayer.release();\n }\n\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n mediaPlayer = null;\n\n }", "public void dispose() {\n if (mediaPlayer.isPlaying())\n mediaPlayer.stop();\n mediaPlayer.release();\n }", "public static void release() {\r\n for (int i = 0; i < players_.size(); i++) {\r\n MediaPlayer p = players_.valueAt(i);\r\n if (p != null) {\r\n if (p.isPlaying()) {\r\n p.stop();\r\n }\r\n p.release();\r\n }\r\n }\r\n players_.clear();\r\n currentMusic_ = INVALID_NUMBER;\r\n }", "private void releaseMediaPlayer() {\n if (colors_audio != null) {\n // Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n colors_audio.release();\n\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n colors_audio = null;\n colors_audioManager.abandonAudioFocus(colors_OnAudioFocusChangeListener);\n }\n }", "private void releaseMediaPlayerResources(){\n if(mRingTonePlayer != null){\n mRingTonePlayer.stop();\n mRingTonePlayer.release();\n mRingTonePlayer = null;\n }\n }", "public void deallocate() {\n\tsetLoaded(false);\n\n if (!externalAudioPlayer) {\n if (audioPlayer != null) {\n audioPlayer.close();\n audioPlayer = null;\n }\n }\n \n\tif (!externalOutputQueue) {\n\t outputQueue.close();\n\t}\n }", "private void releaseMediaPlayer() {\n if (mediaPlayer != null) {\n // Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n mediaPlayer.release();\n\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n mediaPlayer = null;\n mAudiomanager.abandonAudioFocus(afChangeListener);\n }\n\n }", "private void releaseMediaPlayer() {\n if (mMymedia != null) {// Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n mMymedia.release();\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n mMymedia = null;\n am.abandonAudioFocus(afChangeListener);\n }\n }", "public void destroy() {\n // Stop any play or record\n if (this.player != null) {\n if ((this.state == STATE.MEDIA_RUNNING) || (this.state == STATE.MEDIA_PAUSED)) {\n this.player.stop();\n }\n this.player = null;\n }\n }", "private void releaseMediaPlayer() {\n // If the media player is not null, then it may be currently playing a sound.\n if (mediaPlayer != null) {\n // Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n mediaPlayer.release();\n Log.v(TAG, \"Audio resource released\");\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n mediaPlayer = null;\n audioManager.abandonAudioFocus(afChangeListener);\n }\n }", "@Override\n protected void onDestroy() {\n \tsuper.onDestroy();\n \t\n \tif(mediaPlayer!=null){\n \t\t\n \t\tmediaPlayer.stop();\n \t\tmediaPlayer=null;\n \t}\n }", "private void releaseMediaPlayer() {\n if (mediaPlayer != null) {\n // Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n mediaPlayer.release();\n\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n mediaPlayer = null;\n\n // Regardless of whether or not we were granted audio focus, abandon it. This also\n // unregisters the AudioFocusChangeListener so we don't get anymore callbacks.\n\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tMediaPlayUtil.getInstance().stop();\n\t\tMediaPlayUtil.getInstance().release();\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tMediaPlayUtil.getInstance().release();\n\t\tMediaPlayUtil.getInstance().stop();\n\n\t}", "private void releaseMediaPlayer() {\n // If the media player is not null, then it may be currently playing a sound.\n if (mMediaPlayer != null) {\n // Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n mMediaPlayer.release();\n\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n mMediaPlayer = null;\n\n mAudioManager.abandonAudioFocus(afChangeListener);\n }\n }", "@Override\n public void onDestroy(){\n\tandroid.widget.Toast.makeText(getApplicationContext(), \"done \", android.widget.Toast.LENGTH_SHORT).show();\n\tmediaPlayer.release();\n\tmediaPlayer = null;\n\tsuper.onDestroy();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n \tmediaplayer.release();\n\t}", "private void releaseMediaPlayer() {\r\n // If the media player is not null, then it may be currently playing a sound.\r\n if (mMediaPlayer != null) {\r\n // Regardless of the current state of the media player, release its resources\r\n // because we no longer need it.\r\n mMediaPlayer.release();\r\n\r\n // Set the media player back to null. For our code, we've decided that\r\n // setting the media player to null is an easy way to tell that the media player\r\n // is not configured to play an audio file at the moment.\r\n mMediaPlayer = null;\r\n\r\n mAudioManager.abandonAudioFocus(mOnAudioFocusChangeListener);\r\n }\r\n\r\n\r\n }", "public void release() {\n\t\t\treset();\n\t\t\tmCurrentMediaPlayer.release();\n\t\t}", "@Override\n public void onDestroy(){\n super.onDestroy();\n releaseMediaPlayerResources();\n }", "private void releaseMediaPlayer(){\n if(mMediaPlayer !=null){\n //Regardless of the current state of the media player, release its resources\n //because we no longer need it\n mMediaPlayer.release();\n\n //set the media player back to null. For your code, we 've decided that\n //setting the media player to null is an easy way to tell that the media player\n //is not configured to play an audio file at the moment.\n mMediaPlayer=null;\n\n // Regardless of whether or not we were granted audio focus, abandon it. This also\n // unregisters the AudioFocusChangeListener so we don't get anymore callbacks.\n mAudioManager.abandonAudioFocus(mOnAudioFocusChangeListener);\n }\n }", "public void releaseMediaPlayers() {\n if(arrSpFiles != null && arrSpFiles.size() > 0) {\n for(SoundPlayerFile spPlayerFile : arrSpFiles) {\n if(spPlayerFile.mp != null) {\n spPlayerFile.mp.release();\n }\n }\n }\n }", "private void releaseMediaPlayer() {\n // If the media player is not null, then it may be currently playing a sound.\n if (mMediaPlayer != null) {\n // Regardless of the current state of the media player, release its resources\n // because we no longer need it.\n mMediaPlayer.release();\n\n // Set the media player back to null. For our code, we've decided that\n // setting the media player to null is an easy way to tell that the media player\n // is not configured to play an audio file at the moment.\n mMediaPlayer = null;\n\n // Regardless of whether or not we were granted audio focus, abandon it. This also\n // unregisters the AudioFocusChangeListener so we don't get anymore callbacks.\n mAudioManager.abandonAudioFocus(mOnAudioFocusChangeListener);\n }\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n releasePlayer();\n mMediaSession.setActive(false);\n }", "private void ReleaseMediaPlayer() {\n if(mMediaPlayer != null) {\n mMediaPlayer.release();\n mMediaPlayer = null;\n mAudioManager.abandonAudioFocus(mOnAudioFocusChangeListener);\n }\n }", "protected synchronized void cleanup() {\n frameStorage.clear();\n if (frameIterator != null) {\n try {\n frameIterator.close();\n } catch (IOException ex) {\n logger.error(Thread.currentThread().getName() + \" IOException while closing the mediaReader\", ex);\n }\n }\n status = Status.STOPPED;\n frameIterator = null;\n }", "@Override\n public void onDestroy() {\n if (mediaPlayer != null)\n mediaPlayer.release();\n\n super.onDestroy();\n // unregister receiver.\n }", "@Override\n protected void onStop() {\n mediaPlayer.release();\n super.onStop();\n }", "private void releasePlayer() {\n\t\ttry {\n\t\t\tif (mediaPlayer.isPlaying()) {\n\t\t\t\tmediaPlayer.pause();\n\t\t\t}\n\t\t\tmediaPlayer.stop();\n\t\t\tmediaPlayer.release();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLog.v(LOG_TAG, \"Reached exception when releasing media player\");\n\t\t}\n\t}", "public void release() {\n stop();\n Log.d(LOGTAG, \"mMediaPlayer release \");\n mMediaPlayer.release();\n \n }", "public void dispose() {\n\t\tmusic.dispose();\n\t}", "private void releaseMediaPlayer() {\n\n if (mMediaPlayer != null) {\n mMediaPlayer.release();\n\n mMediaPlayer = null;\n\n // Regardless of whether or not we were granted audio focus, abandon it. This also\n //unregisters the AudioFocusChangeListener so we don't gey anyone callbacks\n mAudioManager.abandonAudioFocus(mOnAudioFocusChangeListener);\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (mMediaPlayer.isPlaying()) {\n\t\t\tmMediaPlayer.stop();\n\t\t}\n\t}", "public void teardown() {\n // This is called by the C++ MediaPlayerPrivate dtor.\n // Cancel any active poster download.\n if (mPosterDownloader != null) {\n mPosterDownloader.cancelAndReleaseQueue();\n }\n mNativePointer = 0;\n }", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n releaseMediaPlayer();\n }", "private void releasePlayer() {\n if (player != null) {\n playbackPosition = player.getCurrentPosition();\n currentWindow = player.getCurrentWindowIndex();\n playWhenReady = player.getPlayWhenReady();\n player.release();\n player = null;\n }\n }", "private void releasePlayer() {\n mVideoView.stopPlayback();\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n releasePlayer();\n }", "@Override\n protected void onDestroy() {\n Log.v(\"MediaPlayer\", \"onDestroy\");\n super.onDestroy();\n if (mp.isPlaying()) {\n mp.stop();\n }\n mp.release();\n }", "private void releaseResouces(boolean releaseMediaPlayer) {\n if (releaseMediaPlayer && mMediaPlayer != null) {\n mMediaPlayer.reset();\n mMediaPlayer.release();\n mMediaPlayer = null;\n }\n\t}", "private void release() {\n\t\tinitialized = false;\n\t\tpause();\n\t\tsetOnCompletionListener(null);\n\t\tgetMp().release();\n\t\tmp = null;\n\t}", "@Override\r\n\tpublic void mediaFreed(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "public void releasePlayer() {\n\n mSimplePlayer.stop();\n mSimplePlayer.release();\n mSimplePlayer = null;\n\n }", "private void shutdown() {\n mMediaRecorder.reset();\n mMediaRecorder.release();\n mCamera.release();\n\n // once the objects have been released they can't be reused\n mMediaRecorder = null;\n mCamera = null;\n }", "private void cleanupResources() {\n Log.d(TAG, \"Initiating resource cleanup\");\n if (mWorkerThread != null) {\n mWorkerThread.quitSafely();\n try {\n mWorkerThread.join();\n mWorkerThread = null;\n } catch (InterruptedException e) {\n Log.e(TAG, \"Failed to join on mWorkerThread\");\n }\n }\n //mListener = null;//Release later when being finalized\n mDisplayHandler = null;\n mERDHandler = null;\n mContext = null;\n surface = null;\n mIface = null;\n mLocalWfdDevice = null;\n mPeerWfdDevice = null;\n mActionListener = null;\n Log.d(TAG, \"Done with resource cleanup\");\n }", "public void release() {\n changeToUninitialized();\n mHasDisplay = false;\n mPlayer.release();\n }", "public void release() {\n synchronized (mLock) {\n super.release();\n detachMediaController();\n setContentUri(PlayMode.NONE, null);\n setContentFd(PlayMode.NONE, null);\n setCurrentState(State.RELEASED);\n mContext = null;\n }\n }", "@Override\n\t\t\t\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t\t\t\tplayer.release();\n\t\t\t\t\t\t}", "private void detener() {\n player.stop();\n player.release();\n player = null;\n }", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n if(mediaPlayer!=null){\n mediaPlayer.release();\n mediaPlayer=null;\n }\n }", "@Override\n protected void onPause() {\n super.onPause();\n if (isFinishing() && mMediaPlayer != null) {\n mVisualizer.release();\n mMediaPlayer.release();\n mEqualizer.release();\n mMediaPlayer = null;\n }\n }", "@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\tmp.release();\n\t\t\t}", "protected void cleanup() throws QTException {\n switch(action) {\n case REMOVE_DRAWING_COMPLETE_PROC:\n MoviePlayer player = (MoviePlayer)needsCleaning[0];\n if (player == null) return;\n Movie movie = player.getMovie();\n movie.removeDrawingCompleteProc();\n player.setGWorld(QDGraphics.scratch);\n needsCleaning[0] = null;\n }\n }", "public void release() {\n stop();\n\n Intent i = new Intent(AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION);\n i.putExtra(AudioEffect.EXTRA_AUDIO_SESSION, getAudioSessionId());\n i.putExtra(AudioEffect.EXTRA_PACKAGE_NAME, mContext.getPackageName());\n mContext.sendBroadcast(i);\n\n mPlayer.release();\n mWakeLock.release();\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n music.release();\n }", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tvideoView.release();\r\n\t}", "public void release()\n {\n audioEffect.release();\n }", "public void cleanup() {\n this.close();\n this.delete(this.backingFileBasename + RECORDING_OUTPUT_STREAM_SUFFIX);\n this.delete(this.backingFileBasename + RECORDING_INPUT_STREAM_SUFFIX);\n }", "public void release() {\n\n mTextureRender = null;\n mSurfaceTexture = null;\n }", "@Override\n public void onDestroy() {\n //super.onDestroy();\n Utils.showToast(this, \"service done\");\n /*if(mediaPlayer.isPlaying()) {\n mediaPlayer.stop();\n }\n mediaPlayer.release();*/\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n ytplayer.release();\n }", "@Override\n protected void onStop() {\n super.onStop();\n // when the activity is stopped, release the media player resources because we won't\n // be playing any more sounds.\n releaseMediaPlayer();\n }", "@Override\n public void onCompletion(MediaPlayer mp) {\n mp.release();\n }", "@Override\n protected void onStop() {\n super.onStop();\n releaseMediaPlayer();\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n if(player != null){\n\n player.stop();\n }\n }", "@Override\n protected void onDestroy() {\n Spotify.destroyPlayer(this);\n super.onDestroy();\n }", "private void releaseMediaRecorder() {\n if (mediaRecorder == null) return;\n\n mediaRecorder.stop();\n mediaRecorder.reset(); // clear recorder configuration\n }", "private void clearMediaAssetFileHolder() { mediaAssetFileHolder_ = null;\n \n }", "public void cleanup()\n {\n \tsuper.cleanup();\n _channelHandler.cleanup();\n }", "@Override\n public void cleanup() {\n // dispose GUI:\n if (this.mainPanel != null) {\n this.mainPanel.dispose();\n }\n }", "@Override\n protected void onStop()\n {\n super.onStop();\n ukuleleMediaPlayer.release();\n ipuMediaPlayer.release();\n }", "@Override\n public void destroy() {\n // clean up any resources created by initialize\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmp.release();\n\t\t\n\t}", "protected void cleanup() {\n try {\n if (_in != null) {\n _in.close();\n _in = null;\n }\n if (_out != null) {\n _out.close();\n _out = null;\n }\n if (_socket != null) {\n _socket.close();\n _socket = null;\n }\n } catch (java.io.IOException e) {\n }\n }", "@VisibleForTesting\n public void cleanup() {\n cleanupNative();\n }", "public void cleanup() {\r\n }", "public void release() {\n\t\tif (state == State.RECORDING) {\n\t\t\tstopRecord();\n\t\t}\n\t\tif (audioRecorder != null) {\n\t\t\taudioRecorder.release();\n\t\t}\n\t\tstate = State.INITIALIZING;\n\t\tsRecorderManager = null;\n\t\taudioRecorder = null;\n\t}", "public void cleanup();", "public void stop()\n {\n mediaPlayer.stop();\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n // if (PlayerService.myMediaPlayer != null) {\n // PlayerService.myMediaPlayer.stop();\n // PlayerService.myMediaPlayer.release();\n // PlayerService.myMediaPlayer = null;\n // }\n Log.d(TAG,\"MainActivity destroyed\");\n }", "@Override\r\n public void release() {\r\n videoRendererStatus = NexVideoRendererStatus.VIDEO_RENDERER_NONE;\r\n if(mBaseView instanceof NexSurfaceTextureView) {\r\n ((NexSurfaceTextureView)mBaseView).release();\r\n }\r\n mNexPlayer = null;\r\n mSurface.release();\r\n setListener(null);\r\n }", "public void onDestroy() {\n Log.d(TAG, \"onDestroy\");\n\n if (videoSource != null) {\n Log.d(TAG, \"VideoSource dispose\");\n videoSource.dispose();\n videoSource = null;\n }\n\n if (factory != null) {\n Log.d(TAG, \"PeerConnectionFactory dispose\");\n factory.dispose();\n factory = null;\n }\n\n\n if (mSocket != null) {\n Log.d(TAG, \"Socket dispose\");\n closeSocket();\n mSocket = null;\n }\n\n\n }", "public void dispose() {\n if (mainDocument != null) {\n mainDocument.dispose();\n }\n\n if (docAttachments != null) {\n for (DocumentItem d : docAttachments) {\n d.dispose();\n }\n\n docAttachments.clear();\n }\n\n if (documentLink != null) {\n documentLink.clear();\n }\n\n contextWidget = null;\n mainDocument = null;\n docAttachments = null;\n documentLink = null;\n callback = null;\n window = null;\n linkedData = null;\n }", "@Override\n public void onPause() {\n super.onPause();\n\n if (null != mRecorder) {\n mRecorder.release();\n mRecorder = null;\n }\n\n if (null != mPlayer) {\n mPlayer.release();\n mPlayer = null;\n }\n\n }", "void onCleanup() {\n\t\tdimensionMap.forEachValue(e -> {\n\t\t\te.releaseAllChunkData();\n\t\t\treturn true;\n\t\t});\n\t\tdimensionMap.clear();\n\t\tconnectedPlayers.clear();\n\t}", "public void cleanup() {\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n final Intent audioEffectsIntent = new Intent(\n AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION);\n audioEffectsIntent.putExtra(AudioEffect.EXTRA_AUDIO_SESSION, getAudioSessionId());\n audioEffectsIntent.putExtra(AudioEffect.EXTRA_PACKAGE_NAME, getPackageName());\n sendBroadcast(audioEffectsIntent);\n mPlayerHandler.removeCallbacksAndMessages(null);\n mPlayer.release();\n mPlayer = null;\n mAudioManager.abandonAudioFocus(mOnAudioFocusChangeListener);\n mPlayerHandler.removeCallbacksAndMessages(null);\n mWakeLock.release();\n }", "@Override\n public void destroy() {\n // destroy any persistent resources\n // such as thread pools or persistent connections\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tvideo_webview.destroy();\n\t}", "@Override\n protected void onPause() {\n super.onPause();\n if(mediaPlayer != null)\n {\n mediaPlayer.stop();\n if(isFinishing())\n {\n mediaPlayer.stop();\n mediaPlayer.release();\n }\n }\n }", "private void stop()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n }", "@Override\n public void onCatalystInstanceDestroy() {\n super.onCatalystInstanceDestroy();\n\n Set<Map.Entry<Integer, PlayerInfo>> entries = playerPool.entrySet();\n for (Map.Entry<Integer, PlayerInfo> entry : entries) {\n PlayerInfo info = entry.getValue();\n if (info == null) {\n continue;\n }\n AudioPlayer player = info.audioPlayer;\n if (player == null) {\n continue;\n }\n try {\n player.setOnCompletionListener(null);\n player.setOnPreparedListener(null);\n player.setOnErrorListener(null);\n if (player.isPlaying()) {\n player.pause();\n }\n player.reset();\n player.release();\n } catch (Exception ex) {\n Log.e(\"RNSoundModule\", \"Exception when closing audios during app exit. \", ex);\n }\n }\n entries.clear();\n }", "@Override\n protected void onDestroy() {\n super.onDestroy();\n mTrackList.clear();\n\n if (isFinishing()) {\n unbindService(serviceConnection);\n mIsBound = false;\n mPlayerService.stopSelf();\n }\n }", "public void cleanup() {\n\t\tref.removeEventListener(listener);\n\t\tmodels.clear();\n\t\tmodelNames.clear();\n\t\tmodelNamesMapping.clear();\n\t}", "@Override\n\tpublic void dispose() \n\t{\n\t\tbackground.dispose();\n\t\tplayBtn.dispose();\t\n\t}", "@Override\r\n protected void onDestroy() {\r\n Log.d(LOGTAG, \"onDestroy\");\r\n super.onDestroy();\r\n\r\n try {\r\n vuforiaAppSession.stopAR();\r\n } catch (ArException e) {\r\n Log.e(LOGTAG, e.getString());\r\n }\r\n\r\n // Unload texture:\r\n mTextures.clear();\r\n mTextures = null;\r\n\r\n System.gc();\r\n }" ]
[ "0.8160787", "0.8159045", "0.81289524", "0.8125524", "0.81073266", "0.80795056", "0.79802835", "0.7877332", "0.7856565", "0.78518474", "0.78441167", "0.7832714", "0.7809192", "0.77672094", "0.77244014", "0.76678824", "0.76616627", "0.765978", "0.7650864", "0.7632862", "0.7630752", "0.7613867", "0.75527585", "0.7518179", "0.7517262", "0.7460803", "0.74588907", "0.74530387", "0.7384054", "0.73599297", "0.73266786", "0.7315839", "0.73138475", "0.72782725", "0.72470635", "0.7136326", "0.7122455", "0.7112678", "0.7090474", "0.70637727", "0.70520455", "0.7046815", "0.704156", "0.7034665", "0.70233583", "0.70182174", "0.69908094", "0.6981516", "0.6973868", "0.69521195", "0.6936721", "0.69359475", "0.6901717", "0.6867283", "0.6857447", "0.6833593", "0.68197876", "0.6782608", "0.6782065", "0.67749166", "0.6762725", "0.6736304", "0.6735559", "0.6731567", "0.6731549", "0.67134553", "0.66979057", "0.66749644", "0.6658722", "0.6623207", "0.66101557", "0.6605339", "0.6596652", "0.6556342", "0.6552548", "0.6536838", "0.65238637", "0.65232885", "0.6517379", "0.65048015", "0.6502681", "0.64952296", "0.64916027", "0.64820313", "0.64407706", "0.6438331", "0.64333516", "0.64319277", "0.64275587", "0.6409658", "0.63978803", "0.6397", "0.63767296", "0.63740253", "0.63727415", "0.6370208", "0.6363252", "0.6363011", "0.6359051", "0.6354783" ]
0.7713532
15
A toString method to print students if desired
public String toString() { return "Name: " + name + "\nAddress: " + addr + "\n" + city + "\n" + state + "\n" + zip + "\nPhone: " + phone + "\nId: " + id + "\nMajor: " + major + "\nGPA: " + gpa; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString()\n {\n return \"Student(\" + studentName + \", \" + currentPhone + \")\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn \" \" + getStudentId() + \":\" + getStudentName();\n\t}", "public String toString()\n\t{\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < numStudents; i++)\n\t\t\tstr += students[i].toString() + '\\n';\n\t\treturn str;\n\t}", "public String toString() {\r\n String string; //a string is created to hold the information about the student\r\n string = \"Name: \" + getName(); //the name is added to the string\r\n string = string + \", Gender: \" + getGender(); //gender is added\r\n string = string + \", Age: \" + getAge(); //age is added\r\n string = string + \", Courses enroled: \";\r\n if (getCourse().length == 0) {\r\n string = string + \"None\"; //returns none if the student is not enroled into a course\r\n } else {\r\n for (Course course : getCourse())\r\n string = string + course.getSubject().getDescription() + \" \"; //adds the subject description if theyre in a course\r\n }\r\n string = string + \", Certificates: \";\r\n if (getCertificates().size() == 0) {\r\n string = string + \"None\"; //displays none if the student has no certificates\r\n }\r\n for (Integer id : getCertificates().toArray(new Integer[getCertificates().size()])) {\r\n string = string + id + \" \"; //adds each id of each course completed\r\n }\r\n return string + \"\\n\";\r\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuilder stud = new StringBuilder();\n\t\tfor (Student s : students) {\n\t\t\tstud.append(\"; \" + s.getBrojIndeksa());\n\t\t}\n\t\t\n\t\tif (professor != null)\n\t\t\treturn code + \"; \" + name + \"; \" + semester + \"; \"\n\t\t\t\t\t+ yearOfStuding + \"; \" + professor.getIdNumber() + stud;\n\t\telse\n\t\t\treturn code + \"; \" + name + \"; \" + semester + \"; \"\n\t\t\t+ yearOfStuding + \"; \" + stud;\n\t}", "public String toString() {\n\t\treturn \" Student: \" + getName() + \"\\t ID: \" + getIDnumber();\t\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"student ID --> \"+this.studentID+\", Name --> \"+this.studentName;\n\t}", "public String toString() {\r\n String st = \"Student Name: \" + getStudentName() +\r\n \" ID: \" + getStudentId() + \"\\n\";\r\n return st;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"Student(name:%s,score:%d)\", name,score);\n\t}", "public String toString() {\n \r\n return this.studentID + \", \" + this.lastName + \", \" +\r\n this.firstName + \", \" + this.q1 + \", \" +\r\n this.q2 + \", \" + this.q3 + \", \" +\r\n this.q4 + \", \" + this.q5 + \", \" +\r\n this.qmkup + \", \" + this.midterm + \", \" +\r\n this.problems + \", \" +\r\n this.finalExam + \", \" + this.courseGrade + \", \" +\r\n this.letterGrade;\r\n }", "public String toString() {\n\t\treturn \"Student's name is \" + getname() + \".\" + System.lineSeparator() + \"Their Student ID number is \" \n\t\t\t\t+ getid() + \" while their course is \"+ getcourse() + System.lineSeparator();\n\t}", "public String toString(Student s){\r\n\r\n\r\n\t\treturn \"******************************************************\\n*\"+ \r\n\r\n\t\t\t\t\t\" Name #\"+\" \"+s.getName()+\"\\n*\"+\r\n\t\t\t\t\t\" id number # \"+s.getId()+ \"\\n*\"+\r\n\t\t\t\t\t\" Grades # \"+s.getGrade(0)+\" |\"+ s.getGrade(1)+\" |\"+s.getGrade(2)+\"\\n*\"+\r\n\t\t\t\t\t\" Grade Average# \"+ s.getAverage()+\"\\n*\"+\r\n\t\t\t\t\t\" Letter Grade # \"+ s.getLetterGrade(s.getAverage())+\r\n\t\t\t\t\t\"\\n******************************************************\\n\";\r\n\r\n\r\n\t}", "public String toString() {\r\n\t\treturn \"Student ID: \" + this.studentID + \"\\n\" + \r\n\t\t\t\t\"Name and surname: \" + this.name + \"\\n\" + \r\n\t\t\t\t\"Date of birth: \" + this.dateOfBirth + \"\\n\" + \r\n\t\t\t\t\"University:\" + this.universityName + \"\\n\" + \r\n\t\t\t\t\"Department code: \" + this.departmentCode + \"\\n\" + \r\n\t\t\t\t\"Department: \" + this.departmentName + \"\\n\" +\r\n\t\t\t\t\"Year of enrolment: \" + this.yearOfEnrolment;\r\n\t}", "public String toString() {\n String o = \"\";\n for (Student v : students) {\n boolean first = true;\n o += \"Student \";\n o += v.getName();\n o += \" has neighbors \";\n ArrayList<Student> ngbr = v.getNeighbors();\n for (Student n : ngbr) {\n o += first ? n.getName() : \", \" + n.getName();\n first = false;\n }\n first = true;\n o += \" with prices \";\n ArrayList<Integer> wght = v.getPrices();\n for (Integer i : wght) {\n o += first ? i : \", \" + i;\n first = false;\n }\n o += System.getProperty(\"line.separator\");\n\n }\n\n return o;\n }", "public String toString(){\n\t\treturn \"The student \"+Student.getFirstName()+\" \"+Student.getFamilyName()+\" has average of \"+averageGrade();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn name + \" \" + studentID;\n\t}", "public String DisplayStudents()\n\t{\t\n\t\tString studentList= \"\";\n\t\tint i=1; //the leading number that is interated for each student\n\t\tfor(Student b : classRoll)\n\t\t{\n\t\t\tstudentList += i + \". \" + b.getStrNameFirst ( ) + \" \" + b.getStrNameLast () +\"\\n\";\n\t\t\ti++;\n\t\t}\n\t\treturn studentList= getCourseName() +\"\\n\" + getCourseNumber()+\"\\n\" + getInstructor()+ \"\\n\" + studentList;\n\t}", "@Override\r\n public String toString() {\r\n return \"Student: \" + super.toString();\r\n }", "@Override\r\n public String toString() \r\n {\r\n return (String.format(\"#%d\\t %-20s\\t %-10s\\n\", this.studentId, this.studentName, this.studentMajor));\r\n }", "public String toString() {\n // get the string of student, time, and coins\n return student.getStudentName() + \" \" + getCoins() + \" \" + timestamp;\n }", "@Override\n public String toString() {\n return \"Student{\" + \"id=\" + id + \", name=\" + name + \", yob=\" + yob + \", gpa=\" + gpa + '}';\n }", "public String toString() { return \"StudentYear: ...\"; }", "public String toString() { return \"Name: \" + firstName + ' ' + lastName + \"\\tGrade: \" + grade; }", "public String toString() {\n\t\treturn this.getFirstName() + \" \" + this.getMiddleName() + \" \" + this.getLastName() + \" (Student)\\nMajor: \"\n\t\t\t\t+ this.major;\n\t}", "public String toString() {\r\n\t\treturn \"Student \" + imePrezime + \" studira \" + fakultet + \" fakultet \" + \r\n\t\t\t\t\"i trenutno je na \" + godina + \". godini\";\r\n\t}", "public String toString(){\n return \"The marks for student \" + registrationNumber + \"\" + \" are \" + Arrays.toString(getMarks()) + \"\" + \"their grade is \" + totalMark() + \".\" + \" This student passed: \" + passed() + \".\";\n }", "public String toString() {\n\t\tNumberFormat formatter = NumberFormat.getPercentInstance();\n\t\tformatter.setMinimumFractionDigits(1);\n\n\t\treturn (\"\\nStudent Name: \" + lastName + \", \" + firstName + \"\\nWID: \" + wId + \"\\nOverall Pct: \"\n\t\t\t\t+ formatter.format(scorePercent) + \"\\nFinal Grade: \" + calcFinalGrade());\n\t}", "public String toString(){\r\n String text = String.format(\"%-20s %s %-20s %d\", \"Undergrad Student: \", super.toString(), \"\\n\\tYear level:\", getYearLevel());\r\n return text;\r\n }", "public String getStudentList()\n\t{\n\t\tString courseOutput = \"\";\n\t\tint studentNum = 1;\n\t\t\n\t\tfor(Student student: classRoll)\n\t\t{\n\t\t\tcourseOutput += studentNum + \". \" + student + \"\\n\";\t\n\t\t\t\t//adds a Student to the already created string one student at a time\n\t\t\tstudentNum++;\n\t\t}\n\t\t\n\t\tcourseOutput = getCourseName() + getCourseNumber() + getInstructor() + courseOutput;\n\t\treturn courseOutput;\n\t}", "public String toString() {\n return \"Name: \" + firstName + \" \" + lastName +\n \", Grade: \" + grade + \", Unique Student Number: \" + randomNumb;\n }", "public String toString(){\n return \"Available information for this student: \" + fname + \" \" + lname + \", \" + college + \", \"\n + major + \" major, GPA: \" + gpa;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"StudentForList [marks=\" + Arrays.toString(marks) + \", names=\" + names + \"]\";\n\t}", "public String toString()\n {\n String output = new String();\n output = \"The student's first name is \" + fname + \", and his/her last name is \" + lname + \". His/her grade is \" + grade + \" and his/her student number is \" + studentNumber + \".\";\n return output;\n }", "public String toString(){\n return \"Name: \" +name+\", School Name: \"+school;\n }", "public String printStudentCourses() {\r\n String s = \"Completed courses: \\n\";\r\n for (Registration r : completeCourses) {\r\n s += r.toString();\r\n }\r\n s += \"Current courses: \\n\";\r\n for (Registration r : studentRegList) {\r\n s += r.toString();\r\n }\r\n s += \"\\0\";\r\n return s;\r\n }", "public String toString(){\n\t\t \n\t\treturn this.scholarship + \": \" + this.student + \", Date Submitted: \" + this.date + \", GPA: \" + this.gpa + \", Education Level: \" + this.edulvl + \", Priority: \" + this.priority + \", Status: \" + this.status;\n\t}", "public String toString()\r\n\t{\r\n\t\treturn (name+\" \"+age+\" \"+college+\" \"+course+\" \"+address+\" \");\r\n\t}", "public String getStudentsInCourse() {\n String output = \"\"; \n for (Student student : students) { // enhanced for\n output += student.toString() + \"\\n\";\n } // end for\n return output;\n }", "@Override\n public String toString() {\n // Returns \"Name: {name} Grade: {grade}\"\n return String.format(\"Name: %s %s Grade: %d\", this.firstName, this.lastName, this.grade);\n }", "public String studentInfo()\n\t{\n\t\tString strStudentInfo;\n\t\tDecimalFormat percent = new DecimalFormat(\"0.0%\");\n\t\tdouble dRoundedCourseAverage;\n\t\tdouble dCourseAverage;\n\t\tdCourseAverage= courseAverage();\n\t\t\t\n\t\tdRoundedCourseAverage= Math.round(dCourseAverage);\n\t\tstrStudentInfo =\n\t\t(\"\\nName: \" + name +\n\t\t\"\\nCourse: \" + courseDesc +\n\t\t\"\\nNumber: \" + courseNum +\n\t\t\"\\nInstructor:\" + instructor +\n\t\t\"\\nGrades:\" +\n\t\t\"\\nTest: \\tAverage: \"+ average('t') +\"\\tPercent: \" + pctT +\n\t\t\"\\nQuizzes: \\tAverage: \"+ average('q') +\"\\tPercent: \" + pctQ +\n\t\t\"\\nProject: \\tAverage: \"+ average('p') +\"\\tPercent: \" + pctP +\n\t\t\"\\nCourse Average: \" + dCourseAverage + \"(or \"+\n\t\t\tpercent.format(dRoundedCourseAverage/100) + \")\");\n\t\treturn strStudentInfo;\n\t}", "public String toString()\n\t{\n\t\treturn \"Faculty \"+super.toString()+\" exp in yrs \"+expInYears+\" expert in \"+sme;\n\t}", "@Override\n\tpublic void printStudent() {\n\t\tSystem.out.print(\"학번\\t국어\\t영어\\t수학\\n\");\n\t\tSystem.out.println(\"=\".repeat(60));\n\t\tint nSize = scoreList.size();\n\t\tfor(int i = 0 ; i < nSize ; i++) {\n\t\t\tScoreVO vo = new ScoreVO();\n\t\t\tSystem.out.print(vo.getNum() + \"\\t\");\n\t\t\tSystem.out.print(vo.getKor() + \"\\t\");\n\t\t\tSystem.out.print(vo.getEng() + \"\\t\");\n\t\t\tSystem.out.print(vo.getMath() + \"\\n\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "public void printStudentList()\n {\n for(int i = 0; i < students.size(); i++)\n System.out.println( (i + 1) + \". \" + students.get(i).getName());\n }", "@Override public String toString(){\n\t\treturn String.format(\"%s %s %s\", firstName, middleName, lastName);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + String.format(\"%-17s\", \"\\nSCHOOL NAME\") + \" --> \" + this.schoolName;\n\t}", "public void printStudentInfo(){\r\n System.out.println(\"Name: \" + getName());\r\n System.out.println(\"Student Id: \" + getId());\r\n printMarks();\r\n System.out.println(\"\\nAverage \" + getAverage() + \"%\");\r\n printNumberOfCoursesInEachLetterGradeCategory();\r\n }", "@Override\n public String toString() {\n String str = \"\";\n \n str += String.format(\"%-20s: %s\\n\", \"Name\", name);\n str += String.format(\"%-20s: %s\\n\", \"Gender\", gender);\n str += String.format(\"%-20s: %s\\n\\n\", \"Email\", email);\n \n str += String.format(\"%-20s %-30s %-10s %s\\n\", \"Course\", \"Name\", \"Credit\", \"Score\");\n str += \"---------------------------------------------------------------\\n\";\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 1\", \n course1.getCourseName(), course1.getCredit(), course1.calcFinalScore());\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 2\", \n course2.getCourseName(), course2.getCredit(), course3.calcFinalScore());\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 3\", \n course3.getCourseName(), course3.getCredit(), course3.calcFinalScore());\n str += String.format(\"%-20s: %d\\n\", \"Passed Courses\", calcPassedCourseNum());\n str += String.format(\"%-20s: %.1f\\n\", \"Passed Courses\", calcTotalCredit());\n \n return str;\n }", "public static void printStudentInfo() {\n\t\tfor (Student student : StudentList)\n\t\t\tSystem.out.println(\"Name: \" + student.getName() + \" Matric Number: \" + student.getMatricNo() + \" Degree:\"\n\t\t\t\t\t+ student.getDegree());\n\t}", "public void showstudents(){\n for (int i=0; i<slist.size(); i++){\n System.out.println(slist.get(i).getStudent());\n }\n }", "public String toString() {\n DecimalFormat f1 = new DecimalFormat(\"#,###\");\n if (gender) {\n return \"\" + f1.format(numsBaby) + \" girls named \" + name + \" in \" + year;\n } else {\n return \"\" + f1.format(numsBaby) + \" boys named \" + name + \" in \" + year;\n\n }\n }", "public void printStudents()\n {\n for(Student s : students)\n System.out.println(s);\n }", "public String toString() {\n\t\treturn \"ID: \" + id + \"\\nStudent Answer: \" + givenAnswer.toString() + \"\\n\";\n\t}", "public static void show(Student[] student){\n for(int i=0;i<student.length;i++){\n System.out.printf(\"First Name: %s Last Name: %s Gender: %s Student ID: %d GPA: %,.2f Department: %s Midterm Grade: %d Final Grade: %d %n\",student[i].getFirstName(),student[i].getLastName(),student[i].getGender(),student[i].getStudentID(),student[i].getGPA(),student[i].getDepartment(),student[i].getExamGrade().getMidtermExamGrade(),student[i].getExamGrade().getFinalExamGrade());\n }\n }", "@Override\n\tpublic String toString() {\n\t\tint temp = totalFees-feesPayed;\n\t\treturn (\"Student: \" + name + \" Total Fees Payed: $\" + feesPayed + \" Total Fees Remaining: $\" + temp);\n\t}", "@Override\r\n public String toString()\r\n {\r\n return \"Professor: name=\" + name + \" and id=\" + id;\r\n }", "public String toString()\n\t{\n\t\tString ret = \"I am a \" + age + \" year old \";\n\t\tif (gender == 'M' || gender == 'm')\n\t\t\tret += \"male \";\n\t\telse\n\t\t\tret += \"female \";\n\t\tret += \"and my name is \" + firstName + \" \" + lastName + \".\";\n\t\t\n\t\tret += \" Also, b/c I trust you, my SSN is \" + getSsnString(\"password123\") + \".\";\n\t\t\n\t\treturn ret;\n\t}", "public String getStudent(){\n\t\t\n\t\treturn this.student;\n\t}", "public String print() {\r\n\t\t\r\n\t\tString printString = new String();\r\n\t\t\r\n\t\tif(numStudents == 0) {\r\n\t\t\tSystem.out.println(\"List is empty\");\r\n\t\t\tprintString = printString + \"List is empty\";\r\n\t\t\treturn printString;\r\n\t\t}\r\n \r\n\t\tSystem.out.println(\"\\nWe have the following Students:\\n\");\r\n\t\tprintString = printString + \"\\nWe have the following Students:\\n\";\r\n\r\n\t\tfor(int i = 0; i < numStudents; i++) {\r\n\t\t\t \r\n\t\t\tString student = ((Student)list[i]).toString();\r\n\t\t\tint tuitionDue = ((Student)list[i]).tuitionDue(); \r\n\t\t\t \r\n\t\t\t System.out.println(student + \" \" + \"tuition due: \" + tuitionDue);\r\n\t\t\t printString = printString + student + \" \" + \"tuition due: \" + tuitionDue + \"\\n\";\r\n\t\t }\r\n\t\t\r\n\t\tSystem.out.println(\"--End of List--\"); \r\n\t\tprintString = printString + \"--End of List--\";\r\n\t\t\r\n\t\treturn printString;\r\n\t}", "public String toString(){\n\t\tString temp = new String();\n\n\t\tif(cancelled){\n\t\t\ttemp+=\"WARNING COURSE SHOULD BE CANCELLED!\\n\";\n\t\t}\n\n\t\ttemp += \" Course subject ID: \" + subject.getID();\n\t\ttemp += \"\\n \" + (getStatus() < 0 ? \"Due to start\" : \"Finishes\") + \" in: \" + Math.abs(getStatus());\n\t\ttemp += \"\\n \" + (instructor == null ? \"Instructor not assigned\" : \"Instructor: \" + instructor.getName());\n\t\ttemp += \"\\n Amount of students enrolled: \" + enrolled.size() + \"\\n Enrolled list:\\n\";\n\n\t\tfor(Student student : enrolled){\n\t\t\ttemp+= \" * \" + student.getName() + \"\\n\";\n\t\t}\n\t\treturn temp;\n\t}", "public String toString() {\r\n return COURSE_ID + \"-\" + COURSE_NAME;\r\n }", "public String toString () {\r\n String display = courseCode;\r\n display += \"\\nDepartment: \" + department;\r\n display += \"\\nGrade: \" + grade;\r\n return display;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"[\"+ this.firstName + \" \" + this.lastName +\"]\";\n\t}", "public String toString(){\n return getfName() +\"\\n\" + getlName() + \"\\n\" + getSsn() + \"\\n\" + getBday() + \"\\n\" + getGender();\n }", "public String getStudents(){\n\t\treturn this.students;\n\t}", "public String toString(){\n return \"NAME: \"+this.name+\" ROLL: \"+this.roll+\" MALE: \"+this.male;\r\n }", "public String toString() {\n String s = \"Computer Science Courses for \" + semester + \":\\n\";\n for (int i = 0; i < courseList.size(); i++) {\n s += courseList.get(i) + \"\\n\";\n }\n return s;\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.getFirstName() + \",\" + this.getLastName() + \",\" + this.getId() + \",\" + this.getEmail() + \",\" + this.getPassword() + \",\" + this.getMaxCourses();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"[\" + firstName + \", \" + lastName\n\t\t\t\t+ \", ssn:\" + socSecurityNumber + \"]\";\n\t}", "public String toString() {\n\n return this.name + \"\\n\" +\n this.numOnRoster + \" enrolled (maximum allowed \" +\n this.maxRosterStudents + \")\\n\" +\n this.numOnWaitlist + \" on waitlist (maximum allowed \" +\n this.maxWaitlistStudents + \")\\n \";\n\n }", "public String toString()\r\n\t\t{\r\n\t\t\treturn firstName + \"#\" + familyName + \"#\" + ID + \"#\";\r\n\t\t}", "@Override\n\tpublic void print() {\n\t\tSystem.out.print(\"\\nMSc. student:\\n\");\n\t\tsuper.print();\n\t}", "@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRUtility.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n }", "public String toString(){\r\n return super.toString() + \",\" +\r\n this.getAuthor() + \",\" +\r\n this.getRating();\r\n }", "public String toString() {\r\n\t\treturn \"\\n\\tName: \" + lastName + \", \" + firstName;\r\n\t}", "public String toString() \n {\n String outString = \"\\nCourse Id: \" + courseId;\n outString += \"\\nClass Name: \" + className;\n outString += \"\\nAssignments: \\n\";\n for (Assignment assignment : assignments) \n {\n outString += assignment.toString();\n }\n return outString;\n }", "public String toString() {\n String s = (\"<html>School: \" + name + \" Academics: \" + academics +\n \" Research: \" + research + \" Publications: \" + publications + \" Overall: \" + \n rating + \" Current Rank: \" +rank+\"<br><br><html>\");\n return s;\n }", "public String toString()\n\t{\n\treturn\n\t\t\t//is the customer a student ? \"Yes, do it\" : \"No, do it\"\n\t\t\t\"CUSTOMER DETAILS: \" + this.name + \" age: \" + this.age + \" Student? \" + (this.isStudent ? \"Yes\" : \"No\")\n\t\t\t+ \"\\n\" + \n\t\t\t//returns the final price of the ticket using the get method\n\t\t\t//the String.format gives the decimal ccurrent format for currency\n\t\t\tString.format(\"TOTAL COST: $%1.2f\", cost())\n\t\t\t+ \"\\n\" + \n\t\t\t\"------------------------------------------------------------\";\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn name + \" \" + age + \" \" + sex;\n\t}", "public String toString(){\r\n return getNumber() + \":\" + getLastName() + \",\" + getFirstName() + \",\" + \"Sales Employee\";\r\n }", "@Override\n\tpublic String toString (int printText){\n\t\tString printOut = \"\";\n\n\t\tif(printText != 2){\n\t\t\tprintOut = super.program + \" \" + super.year + \" \" + super.average;\n\t\t\t\n\t\t\tif(printText == 1 && this.isPhD){//print the text version of the phd status\n\t\t\t\tprintOut += \" \" + this.supervisor + \" PhD \" + this.undergraduateSchool;\n\t\t\t}else if(printText == 1 && !this.isPhD){\n\t\t\t\tprintOut += \" \" + this.supervisor + \" Masters \" + this.undergraduateSchool;\n\t\t\t}\n\n\t\t\tif(printText == 0 && this.isPhD){//print the number version of the phd status\n\t\t\t\tprintOut += \" \" + this.supervisor + \" 1 \" + this.undergraduateSchool;\n\t\t\t}else if(printText == 0 && !this.isPhD){\n\t\t\t\tprintOut += \" \" + this.supervisor + \" 0 \" + this.undergraduateSchool;\n\t\t\t}\n\n\t\t\tprintOut += \" \" + this.lastName;\n\t\t}else{\n\t\t\tprintOut = super.toString(printText);//if the printText is equal to 2, concat only the program name, year, and last name\n\t\t}\n\t\treturn printOut;\n\t}", "@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRDateUtils.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n\n }", "public String toString() {\n\t\treturn this.getStatisticID() + \"\" + this.getMark() + \"\" + this.getStudentName() + \"\" + this.getCourse() + \"\"\n\t\t\t\t+ this.getAssignmentName() + \"\" + this.getFeedback() + \"\" + this.getAverage();\n\n\t}", "public String toString() {\n\t\treturn super.toString() + \"\\nLevel: \" + getTitle(level) + edu.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t//\tString str = String.format(\"Patient ID#%s Name: %d %s Birthdate: %s Gender: %s\",\n\t//\t\tpatientID, firstName, lastName, birthdate.toString(), gender);\n\n String str = \"Patient ID: \" + patientID + \", Name: \" + firstName + \" \" + lastName +\n \", Birthdate: \" + birthdate + \", Gender: \" + gender;\n\t\treturn str;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"学号\" + sid + \"名字\" + sname + \"性别\" + sex;\n\t}", "public String toString() {\n\t\t\r\n\t\treturn String.format(\"N%s. Title is %s, employer is %s,\"\r\n\t\t\t\t+ \"employee grade is %d, salary is %d\",super.toString(), getTitle(), employer, \r\n\t\t\t\temployeeGrade, salary);\r\n\t}", "@Override //indicates that this method overrides a superclass method\n public String toString(){\n\n return String.format(\"%s: %s %s%n%s : %s%n%s: %.2f%n%s: %.2f\",\"commission employee\",firstName,lastName,\n \"pan number\",panCardNumber,\"gross sales\",grossSales,\"commission rate\",commissionRate);\n }", "@Override\n public String toString(){\n return (\"firstName:\"+getFirstName()+\" lastName:\"+getLastName()+\" Social Insurance Number:\"+getSocialInsuranceNumber());\n }", "@Override\n public void display(){\n System.out.println(\"Student id: \"+getStudentId()+\"\\nName is: \"+getName()+\"\\nAge :\"+getAge()+\"\\nAcademic year: \"+getSchoolYear()\n +\"\\nNationality :\"+getNationality());\n }", "@Override\n public String toString() {\n return firstName + \"\\n\" + lastName + \"\\n\";\n }", "@Override\n public String toString(){\n \n return String.format(\"%-8d%-10s%-10s%-10s %.2f\\t%-6b\", getCustNumber(), getFirstName(), getSurname(),\n getPhoneNum(), getCredit(), canRent);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"\\ntoStringcalled\\t\"+name+\"\\t\"+age+\"\\t\"+salary;\n\t}", "public String toString() {\n String s = this.firstName + \" \" + this.lastName + \" (Andrew ID: \"\n + this.andrewId + \", Phone Number: \" + this.phoneNumber\n + \") \\n\";\n return s;\n }", "@Override\n public String toString(){\n return (this.name + \" \" + this.score);\n }", "private static void printList(Student[] students)\r\n {\r\n for(int index = 0; index < students.length; index++)\r\n {\r\n System.out.println(students[index].toString());\r\n }\r\n }", "public String toString()\n\t{\n\t\t\n\t\treturn (\"The grade for quiz 1 is: \" + this.quiz1 + \" the grade for quiz 2 is: \"+ this.quiz2 + \" the grade for quiz 3 is: \" + this.quiz3 + \" the grade for the midterm is: \" + this.midtermExam + \" the grade for the final is: \" + this.finalExam);\n\t}", "@Override\n public final String toString() {\n return firstName + \" \" + lastName;\n\n }", "public String toString() {\n return firstName + \" \" + lastName;\n }", "@AutoEscape\n\tpublic String getStudentName();", "@Override\n\tpublic String toString() { \n\t\treturn name + \" \" + score;\n\t}", "@Override\n public String toString() {\n return \"Name: \" + firstName + \"\\n\" + \"Lastname: \" + lastName;\n \n }" ]
[ "0.82011503", "0.81463975", "0.8068577", "0.8061144", "0.8051148", "0.80279195", "0.8015384", "0.7954273", "0.79532605", "0.79246235", "0.78773737", "0.7862028", "0.7856899", "0.78534466", "0.78520495", "0.7816987", "0.7727799", "0.7724674", "0.7673709", "0.7631709", "0.76138586", "0.759682", "0.75759774", "0.7573761", "0.7529601", "0.75233346", "0.75053537", "0.7442139", "0.7436978", "0.74245256", "0.7424141", "0.7329065", "0.7326384", "0.73221934", "0.72886556", "0.7246607", "0.7231395", "0.7155956", "0.7149696", "0.7145922", "0.709014", "0.7089844", "0.70560545", "0.6981176", "0.6967089", "0.6957126", "0.695214", "0.6947842", "0.6932506", "0.6912177", "0.68739474", "0.6846196", "0.6842334", "0.684034", "0.6810905", "0.6808299", "0.68056864", "0.6777826", "0.67619836", "0.67494863", "0.67467725", "0.674664", "0.6735797", "0.6730569", "0.6730412", "0.6722558", "0.67214566", "0.6717733", "0.6715957", "0.66954964", "0.6693154", "0.6687736", "0.66699904", "0.66637665", "0.6661088", "0.6653101", "0.6644288", "0.66410613", "0.66405034", "0.66277736", "0.66246223", "0.6623788", "0.66129345", "0.66005564", "0.6596522", "0.6593857", "0.65841734", "0.656635", "0.6565789", "0.65654", "0.6562307", "0.6546482", "0.6545734", "0.6545451", "0.65412843", "0.65389603", "0.652065", "0.6511081", "0.65007627", "0.64908713", "0.6490211" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.livephoto, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
6/17/2019 TinLM Create Get address of Store by id of location
public void getAddressOfStoreById(Store store) { StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); String url = ConstainServer.BaseURL + ConstainServer.LocationURL + store.getLocationId(); String respone = ""; try { URL url1 = new URL(url); respone = ReadStream.readStream(url1.openStream()); JSONObject jsonObject = new JSONObject(respone); if (jsonObject.has(address)) { store.setAddress(jsonObject.getString(address)); } } catch (Exception e) { Log.e("ELocation", e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Location getLocationById(long id);", "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;", "java.lang.String getHotelAddress();", "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;", "public void getStore( Integer store_id ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"store_id\", String.valueOf(store_id));\r\n String url = API_DOMAIN + STORE_EXT;\r\n this.makeVolleyRequest( url, params );\r\n }", "public static String getLocationFromAddress(Context context, String strAddress) {\n\n Geocoder coder = new Geocoder(context);\n List<Address> address;\n String data = \"\";\n\n try {\n // address = coder.getFromLocationName(strAddress, 5);\n address = coder.getFromLocationName(strAddress, 15);\n if (address == null || address.size() <= 0) {\n return data;\n }\n Address location = address.get(0);\n\n System.out.println(\"============\" + location.getLatitude() + \"===================\" + location.getLongitude() + \"====================\");\n System.out.println(\"=====Local=======\" + location.getSubLocality());\n System.out.println(\"=====City=======\" + location.getLocality());\n System.out.println(\"=====State=======\" + location.getAdminArea());\n System.out.println(\"=====PinCode=======\" + location.getPostalCode());\n System.out.println(\"=====Country=======\" + location.getCountryName());\n\n data = location.getLatitude() + \",,,\" + location.getLongitude() + \",,,\" + location.getSubLocality() + \",,,\" + location.getLocality() + \",,,\" + location.getAdminArea() + \",,,\" +\n location.getPostalCode() + \",,,\" + location.getCountryName();\n\n\n } catch (Exception ex) {\n\n ex.printStackTrace();\n return data;\n }\n return data;\n\n }", "public LocationDetail getLocationDetail(Long locationId) throws LocationException;", "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 }", "MasterZipcode getById(int id);", "@Override\n\tpublic Address getAddressById(int id) {\n\t\treturn sqlSessionTemplate.selectOne(sqlId(\"getAddressById\"),id);\n\t}", "public LiveData<Long> addStore(String name, String address, String placeId, double longitude, double latitude) {\n MutableLiveData<Long> result = new MutableLiveData<>();\n Store store = new Store();\n store.setName(name);\n store.setAddress(address);\n store.setLongitude(longitude);\n store.setLatitude(latitude);\n new InsertStoreTask(this.getApplication(), store, result).execute();\n return result;\n }", "public static Location find(int id) {\n try (DatabaseContext db = new DatabaseContext()) {\n Object[] obj = db.fetchFirst(\"SELECT id, street, zipCode, city, amountParkingSpaces FROM locations WHERE id = ?\", Integer.toString(id));\n Location location = new Location();\n location.setId((int) obj[0]);\n location.setStreet(obj[1].toString());\n location.setZipCode(obj[2].toString());\n location.setCity(obj[3].toString());\n location.setParkingSpaces((int) obj[4]);\n return location;\n } catch (Exception ex) {\n log.error(ex, \"Could not connect to database.\");\n }\n return null;\n }", "int getLocationID();", "public String getFromStoreId();", "public String getStore_location()\n {\n \treturn store_location;\n }", "public Addresses getAddresses(Long id) {\n\t\treturn addressesRepository.findOne(id);\r\n\t}", "public ShopResponseTO saveShop(String shopName, String shopAddressNumber, String shopAddressPostcode) throws ParseException\n\t{\n\t\tfinal String shopManagementUri = \"http://localhost:8083/add\";\n\t \n\t RestTemplate restTemplate = new RestTemplate();\n\t ShopTO shopTO = new ShopTO();\n\t shopTO.setName(shopName);\n\t shopTO.setShopAddressNumber(shopAddressNumber);\n\t shopTO.setShopAddressPostcode(shopAddressPostcode);\n\t ShopTO addedShop = restTemplate.postForObject(shopManagementUri, shopTO, ShopTO.class);\n\t Long shopId = addedShop.getId();\n\t System.out.println(\"fetched shop id=\"+shopId);\n\t \n\t final String shopLocationUri = \"http://localhost:8082/addShopLocation\";\n\t \n\t AddShopLocationRequestTO addShopLocationRequestTO = new AddShopLocationRequestTO();\n\t addShopLocationRequestTO.setShopAddressNumber(shopAddressNumber);\n\t addShopLocationRequestTO.setShopAddressPostcode(shopAddressPostcode);\n\t addShopLocationRequestTO.setShopId(shopId);\n\t ShopLocationTO addedShopLocation = restTemplate.postForObject(shopLocationUri, addShopLocationRequestTO, ShopLocationTO.class);\n\t \n\t ShopResponseTO shopResponseTO = new ShopResponseTO();\n\t shopResponseTO.setId(shopId);\n\t shopResponseTO.setName(addedShop.getName());\n\t shopResponseTO.setShopAddressNumber(addedShop.getShopAddressNumber());\n\t shopResponseTO.setShopAddressPostcode(addedShop.getShopAddressPostcode());\n\t shopResponseTO.setLatitude(addedShopLocation.getLatitude());\n\t shopResponseTO.setLongitude(addedShopLocation.getLongitude());\n\t \n\t\treturn shopResponseTO;\n\t}", "@Override\n public void onSuccess(Location location) {\n\n if (location != null) {\n // Logic to handle location object\n\n Geocoder gcd = new Geocoder(MainActivity.this, Locale.getDefault());\n List<Address> addresses = null;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (addresses.size() > 0) {\n System.out.println(addresses.get(0).getLocality());\n sp.set(SPConstants.location,addresses.get(0).getLocality()+\", \"+addresses.get(0).getCountryName());\n }\n else {\n sp.set(SPConstants.location,\"\");\n\n // do your stuff\n }\n\n }\n }", "private void getUserLocation()\n {\n Log.i(\"values\",getArguments().getString(\"type\"));\n fetchStores(placeID);\n }", "public int getStoreID() { return storeID; }", "private String getAddress() {\n String add = \"\";\n if (mLocationHelper != null) {\n add = getString(R.string.address, mLocationHelper.getAddress());\n }\n return add;\n }", "public Store(String name, String address1, String city, String state, String postalCode) {\n this.name = name;\n this.address1 = address1;\n this.city = city;\n this.state = state;\n this.postalCode = postalCode;\n }", "@Override\r\n\tpublic Store getStoreByID(int id) {\n\t\treturn getByKey(id);\r\n\t}", "public String getToStoreId();", "@Override\n\tpublic BranchAddressVo c_selectAddress(String id) throws SQLException {\n\t\treturn sqlSession.selectOne(\"yes.c_selectAddress\", id);\n\t}", "public Optional<Location> getLocationById(int id) {\n\t\treturn locationRepository.findById(id);\n\t}", "public Store(String storeName, String streetAddress, String cityAddress, String stateAddress) {\n this.storeName = storeName;\n this.streetAddress = streetAddress;\n this.cityAddress = cityAddress;\n this.stateAddress = stateAddress;\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 }", "@Override\r\n\tpublic List<EasybuyAddress> getAddressByUserId(String id) {\n\t\tList<EasybuyAddress> addresses=new ArrayList<EasybuyAddress>();\r\n\t\tString sql=\"select * from easybuy_address where ad_user_id=?\";\r\n\t\tResultSet rSet=super.query(sql, new Object[]{id});\r\n\t\ttry {\r\n\t\t\twhile(rSet.next())\r\n\t\t\t{\r\n\t\t\t\tEasybuyAddress address=new EasybuyAddress();\r\n\t\t\t\taddress.setAd_id(rSet.getInt(1));\r\n\t\t\t\taddress.setAd_user_id(rSet.getString(2));\r\n\t\t\t\taddress.setAd_address(rSet.getString(3));\r\n\t\t\t\taddresses.add(address);\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}\r\n\t\treturn addresses;\r\n\t}", "@GET\n\t\t\t@Path(\"/{id}/address\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getAddressRows(@Context UriInfo uriInfo,@Context HttpHeaders header) {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new WarehouseDao(uriInfo,header).getAddressRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlogger.info( \"Error calling getAddressRows()\"+ ex.getMessage());\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "public String getAddress(){\n return address;\n\n }", "public Location(String store_name, String store_location, String address, String city, String state, String zip_code, double latitude, double longitude, String county)\n\t{\n super();\n this.store_name = store_name;\n this.store_location = store_location;\n this.address = address;\n this.city = city;\n this.state = state;\n this.zip_code = zip_code;\n this.latitude = latitude;\n this.longitude = longitude;\n this.county = county;\n }", "private void getAddress(Location location){\n List<Address> addresses = null;\n try {\n addresses = geocoder.getFromLocation(location.getLatitude(),location.getLongitude(),1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n yourAddress.setText(addresses.get(0).getAddressLine(0) + \"\\n\" + addresses.get(0).getLocality() + \"\\n\" +addresses.get(0).getAdminArea() + \"\\n\" + addresses.get(0).getCountryName());\n// String postalCode = addresses.get(0).getPostalCode();\n// String knownName = addresses.get(0).getFeatureName();\n }", "public int getAddress()\n {\n return address;\n }", "String getAddress(int type);", "Addresses selectByPrimaryKey(Integer id);", "public String getAddress() {return address;}", "@Override\r\n\tpublic Store getStoreById(int id) {\n\t\treturn storeRepository.getStoreById(id);\r\n\t}", "public abstract LinphoneAddress getAddress();", "public Integer getAddressId() {\n return addressId;\n }", "public String getAddress(){\r\n return address;\r\n }", "private OrdPerson initAddress(String id) {\n\t\t\r\n\t\tUserAddress userAddress = receiverUserServiceAdapter.queryAddressByAddressNo(id);\r\n\t\t \r\n\t\tif (userAddress == null) {\r\n\t\t\tthrow new NullPointerException(\"收件地址不存在\");\r\n\t\t}\r\n\t\t// 地址\r\n\t\tList<OrdAddress> addressList = new ArrayList<OrdAddress>();\r\n\t\tOrdAddress ordAddress = new OrdAddress();\r\n\t\tordAddress.setProvince(userAddress.getProvince());\r\n\t\tordAddress.setCity(userAddress.getCity());\r\n\t\tordAddress.setStreet(userAddress.getAddress());\r\n\t\tordAddress.setPostalCode(userAddress.getPostCode());\r\n\t\taddressList.add(ordAddress);\r\n\r\n\t\t// 游玩人\r\n\t\tOrdPerson ordPerson = new OrdPerson();\r\n\t\tordPerson.setFullName(userAddress.getUserName());\r\n\t\tordPerson.setMobile(userAddress.getMobileNumber());\r\n\t\tordPerson.setObjectType(\"ORD_INVOICE\");\r\n\t\tordPerson.setPersonType(IReceiverUserServiceAdapter.RECEIVERS_TYPE.ADDRESS.name());\r\n\t\tordPerson.setAddressList(addressList);\r\n\t\treturn ordPerson;\r\n\t}", "public Address getAddress(double latitude, double longitude)\n {\n Geocoder geocoder;\n List<Address> addresses;\n geocoder = new Geocoder(context, Locale.getDefault());\n\n try {\n addresses = geocoder.getFromLocation(latitude,longitude, 1); // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n return addresses.get(0);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n\n }", "public Short getAddressId() {\r\n return addressId;\r\n }", "@Test\n\tpublic void searhEmpIdtoAddress() {\n\t\tEmployee employee = employeeService.searhEmpIdtoAddress();\n\t\tAssert.assertEquals(id.intValue(), employee.getId().intValue());\n\t\n\t}", "@Override\n public void onLocationChanged(Location location) {\n latitude=String.valueOf(location.getLatitude());\n longitude= String.valueOf(location.getLongitude());\n\n System.out.println(\"asdfgh==\"+latitude);\n\n\n /* Geocoder geocoder;\n List<Address> addresses;\n geocoder = new Geocoder(SafetyActivity.this, Locale.getDefault());\n\n try {\n addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n String address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n String city = addresses.get(0).getLocality();\n String state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n String postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName();\n\n System.out.println(\"addresses==\"+address);\n // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n } catch (IOException e) {\n e.printStackTrace();\n }*/\n }", "@Test\n public void getLocationById() throws Exception {\n }", "@GetMapping(\"/locations/{locationId}\")\n public Location getLocation(@PathVariable Integer locationId){\n\n return service.getOne(locationId);\n }", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "@Override\n\tpublic ClientResponse get(Integer id) {\n\t\tWebResource webResource = this.webResource.path(\"/location/\" + id);\n\t\treturn get(webResource);\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public int getAddress() {\n return address;\n }", "public interface AddressService {\n\n /**\n * description 获取用户收货地址列表\n * @author importtao\n * @date 2018/5/19 20:22\n * @param userId 用户ID\n * @return HashMapL\n */\n HashMap getAddressListByUserId(String userId);\n\n /**\n * description 获取用户收货地址缩写\n * @author importtao\n * @date 2018/6/1 10:33\n * @param userId 用户ID\n * @return HashMap\n */\n HashMap getSimpleAddressListByUserId(String userId);\n\n /**\n * description 添加收货地址\n * @author importtao\n * @date 2018/5/19 20:27\n * @param userId 用户ID\n * @param province 省\n * @param city 市\n * @param county 县\n * @param town 乡镇街道\n * @param detail 详细地址\n * @param tel 电话\n * @param name 姓名\n * @return HashMap\n */\n HashMap addAddress(String userId,String province,String city,String county,String town,String detail,String tel,String name);\n\n /**\n * description 修改收货地址\n * @author importtao\n * @date 2018/5/19 20:27\n * @param id 用户ID\n * @param province 省\n * @param city 市\n * @param county 县\n * @param town 乡镇街道\n * @param detail 详细地址\n * @param tel 电话\n * @param name 姓名\n * @return HashMap\n */\n HashMap updateAddress(Long id,String province,String city,String county,String town,String detail,String tel,String name);\n\n /**\n * description 删除收货地址\n * @author importtao\n * @date 2018/5/19 20:35\n * @param id id\n * @return HashMap\n */\n HashMap deleteAddress(Long id);\n}", "public abstract List<LocationDto> searchLocationType(int loc_type_id);", "public String GetAddressFromLatLng(Double latitude,Double longitude)\n {\n //Geocoder geocoder = null;\n List<Address> addresses;\n String address = \"\";\n //Geocoder geocoder = new Geocoder(HomeMapsActivity.this, Locale.getDefault());\n\n// Geocoder geocoder = CustomApplication.geoCoder;\n try {\n addresses = CustomApplication.geoCoder.getFromLocation(latitude, longitude, 1); // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n String city = addresses.get(0).getLocality();\n String state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n String postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName(); // Only if available else return NULL\n } catch (IOException e) {\n e.printStackTrace();\n }\n Log.i(TAG, \"GetAddressFromLatLng: \"+address);\n\n return address;\n }", "public static Store getStore(final StoreDto _store){\n\t\tStore store = new Store();\n\t\tstore.setStoreAddress(_store.getStoreAddress());\n\t\t//store.setStoreCity(Integer.parseInt(_store.getStoreCity()));\n\t\t//store.setStoreId(Integer.parseInt(_store.getStoreId()));\n\t\t//store.setStoreLocality(Integer.parseInt(_store.getStoreLocality()));\n\t\tstore.setStoreMobNo(Integer.parseInt(_store.getStoreMobNo()));\n\t\tstore.setStoreName(_store.getStoreName());\n\t\t//store.setStoreType(Integer.parseInt(_store.getStoreType()));\n\t\t//store.setOwnerName(_store.getOwnerName());\n\t\t//store.setEmailAddress(_store.getEmailAddress());\n\t\t//store.setStorePincode(Integer.parseInt(_store.getStorePincode()));\n\t\t//store.setServiceArea(_store.getServiceArea());\n\t\treturn store;\n\t}", "com.google.ads.googleads.v14.common.LocationInfo getLocation();", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"shipping_address_id\", String.valueOf(id));\n\n return params;\n }", "public String getLocationAddress() {\n return locationAddress;\n }", "public List<Almacen> getStoresByIdCompany(long idCompany);", "public LocationHandler getLocation (long id){\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tCursor cursor = db.query( table_location, new String[] { \n\t\t\t\tkey_id, key_base_id, key_date_entry, key_latitude, key_longitude, key_name, key_type, key_search_tag, key_amountables, key_description,\n\t\t\t\tkey_best_seller, key_web_site}, key_id + \"=?\", \n\t\t\t\tnew String[]{ String.valueOf(id) } , null, null, null, null);\n\t\tLocationHandler locationHandlerArray = null;\n\t\tLog.i(TAG, \"cussor size : \" + cursor.getCount() + \" with id : \" + id);\n\t\tif(cursor != null)\n\t\t\tif(cursor.moveToFirst()){\n\t\t\t\tlocationHandlerArray = new LocationHandler(\n\t\t\t\t\t\tcursor.getInt(cursor.getColumnIndex(key_id)), \n\t\t\t\t\t\tcursor.getInt(cursor.getColumnIndex(key_base_id)), \n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(key_date_entry)), \n\t\t\t\t\t\tcursor.getDouble(cursor.getColumnIndex(key_longitude)), \n\t\t\t\t\t\tcursor.getDouble(cursor.getColumnIndex(key_latitude)), \n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(key_name)), \n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(key_type)),\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(key_search_tag)),\n\t\t\t\t\t\tcursor.getDouble(cursor.getColumnIndex(key_amountables)),\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(key_description)),\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(key_best_seller)),\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(key_web_site))\n\t\t\t\t\t\t);\n\t\t\t}\n\t\tdb.close();\n\t\treturn locationHandlerArray; \n\t}", "public String getShopsAddress(int deliveryid) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<CustomerReceipt> listReceiptAddressByList(\r\n\t\t\tCustomerRec customerRec) {\n\t\tString customerId=customerRec.getId();\r\n\t\t List<CustomerReceipt> recList =customerReceiptDao\r\n\t\t\t.getCustomerReceiptListByCustomerId(customerId);\r\n\t\t\t\r\n\t\t\tfor (CustomerReceipt a : recList) {\r\n\t\t\t\tSystem.out.println(\"===================11111==================\");\r\n\t\t\t\tSystem.out.println(a.getId());\r\n\t\t\t\tSystem.out.println(a.getCustomerId());\r\n\t\t\t\tSystem.out.println(a.getAddressProvince());\r\n\t\t\t\tSystem.out.println(a.getAddressProvinceName());\r\n\t\t\t\tSystem.out.println(a.getAddressCity());\r\n\t\t\t\tSystem.out.println(a.getAddressCityName());\r\n\t\t\t\tSystem.out.println(a.getAddressCounty());\r\n\t\t\t\tSystem.out.println(a.getAddressCountyName());\r\n\t\t\t\tSystem.out.println(a.getAddressfull());\r\n\t\t\t\tSystem.out.println(a.getReceiptplaceId());\r\n\t\t\t\tSystem.out.println(a);\r\n\r\n\r\n\t\t\t}\r\n\t\tif (recList != null && recList.size() > 0) {\r\n\t\t\tHashMap<String, Area> areaMap = new HashMap<String, Area>();\r\n\t\t\tfor (CustomerReceipt rec : recList) {\r\n\t\t\t\tareaMap.put(rec.getAddressProvince(), new Area());\r\n\t\t\t\tareaMap.put(rec.getAddressCity(), new Area());\r\n\t\t\t\tareaMap.put(rec.getAddressCounty(), new Area());\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tareaMap = (HashMap<String, Area>) areaService\r\n\t\t\t\t\t\t.getAreaMapByIdMap(areaMap);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tfor (CustomerReceipt rec : recList) {\r\n\t\t\t\tString provinceId = rec.getAddressProvince();\r\n\t\t\t\tString cityId = rec.getAddressCity();\r\n\t\t\t\tString countyId = rec.getAddressCounty();\r\n\t\t\t\trec.setAddressProvinceName(nullToBlank(areaMap.get(provinceId)\r\n\t\t\t\t\t\t.getAreaName()));\r\n\t\t\t\trec.setAddressCityName(nullToBlank(areaMap.get(cityId).getAreaName()));\r\n\t\t\t\trec.setAddressCountyName(nullToBlank(areaMap.get(countyId).getAreaName()));\r\n\t\t\t\trec.setReceiptplaceName(\"包头\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn recList;\r\n\r\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}", "public String myLocation(double latitude, double longitude){\n String myCity = \"\";\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n List<Address> addressList ;\n try{\n addressList = geocoder.getFromLocation(latitude,longitude,1);\n\n if(addressList.size()>0){\n myCity = addressList.get(0).getLocality();\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n return myCity;\n }", "@Override\n public String getAddress() {\n\n if(this.address == null){\n\n this.address = TestDatabase.getInstance().getClientField(token, id, \"address\");\n }\n\n return address;\n }", "public Seller(int id, String name, String email, String phoneNumber, Location location) { \n this.id = id;\n this.name = name;\n this.email = email;\n this.phoneNumber = phoneNumber;\n this.location = location;\n }", "@Override\r\n\tpublic Store getStore(String name, String location){\r\n\t\tif (name != null && location != null) {\r\n\t\t\ttry {\r\n\t\t\t\tIData data = DataFactory.getInstance(emf);\r\n\t\t\t\tIPersistence pm = data.getPersistenceManager();\r\n\t\t\t\tIPersistenceContext pctx = pm.getPersistenceContext();\r\n\t\t\t\tStore store = data.getStoreQuery().queryStore(name, location, pctx);\r\n\t\t\t\treturn store;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tif (LoggerConfig.ON) {\r\n\t\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "String getStreet();", "public StoreWithEnterpriseTO getStore(long storeID) throws NotInDatabaseException;", "@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}", "@AutoEscape\n\tpublic String getLocationId();", "public Address getAddress() { return address; }", "private String getCompleteAddressString(double LATITUDE, double LONGITUDE) {\n String strAdd = \"\";\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n try {\n List<Address> addresses = geocoder.getFromLocation(LATITUDE, LONGITUDE, 1);\n if (addresses != null) {\n Address returnedAddress = addresses.get(0);\n StringBuilder strReturnedAddress = new StringBuilder(\"\");\n\n for (int i = 0; i <= returnedAddress.getMaxAddressLineIndex(); i++) {\n strReturnedAddress.append(returnedAddress.getAddressLine(i)).append(\"\\n\");\n }\n strAdd = strReturnedAddress.toString();\n } else {\n Log.e(\"Current loction address\", \"No Address returned!\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"Current loction address\", \"Canont get Address!\");\n }\n return strAdd;\n }", "int getStoreID(Vector<Integer> storeIDs, Vector<String> storeCodes, String cellValue);", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "public void setLocationId(String value) { _locationId = value; }", "public List<OrderReport> getAllOrders(@Param(\"storeid\") String storeid);", "public Company getCompanyByNameAndStreet(String name, String add1) {\r\n\t\tfor (int i = 0 ; i < companyDirectory.size() ; i++) {\r\n\t\t\tfor(int j = 0; j < companyDirectory.get(i).getLocations().size(); j++)\r\n\t\t\t if ( companyDirectory.get(i).getLocations().get(j) instanceof BillTo )\r\n\t\t\t \tif(companyDirectory.get(i).getLocations().get(j).getAddress1().equals(add1) &&\r\n\t\t\t \t\t\tcompanyDirectory.get(i).getName().equals(name))\r\n\t\t\t \t\treturn companyDirectory.get(i);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public abstract StoreInfo getInfo();", "Location selectByPrimaryKey(Integer locationId);", "@Test\n public void testGetCoordinatesByAddressID() throws Exception {\n System.out.println(\"getCoordinatesByAddressID\");\n int adressID = 0;\n String result = instance.getCoordinatesByAddressID(adressID);\n assertTrue(!result.isEmpty());\n }", "@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 }", "LocationsClient getLocations();", "public String getAddress()\r\n\t{\r\n\t\treturn address.getModelObjectAsString();\r\n\t}", "@Test\n public void test008() {\n List<HashMap<String, ?>> address = response.extract().path(\"data.findAll{it.name=='Maplewood'}.address\");\n\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The address for store name is Maplewood:\" + address);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "public static LocationId getLocationIds()\n {\n LocationId locnIds = new LocationId();\n IoTGateway.getGlobalStates().forEach(\n (locn,sv)->{\n locnIds.addId(locn);\n }\n );\n return locnIds;\n }", "public String getAddress();", "@Override\n\tdefault Optional<Locations> findById(Integer id) {\n\t\treturn null;\n\t}", "public String toString(){ \n\t return id+\" \"+name+\" \"+address; \n\t }", "public abstract Address getCustomerAddress();", "private List<Address> collectLocationAddresses(APDataCollection apData) {\n\t\tint numLocations = apData.getCount(ICommlAutoConstants.LOCATION_XPATH);\n\t\tList<Address> addresses = new ArrayList<Address>(numLocations);\n\n\t\t// Loop through the Location aggregates in the ap data\n\t\tfor (int locationIndex = 0; locationIndex < numLocations; locationIndex++) {\n\n\t\t\t// Create an Address object for each one (containing just the\n\t\t\t// address information.\n\t\t\tAddress address = new Address(apData, ICommlAutoConstants.LOCATION_XPATH, new int[] { locationIndex });\n\t\t\tString id = apData.getFieldValue(ICommlAutoConstants.LOCATION_ID_XPATH, locationIndex, \"\");\n\n\t\t\t// add an id to any location missing one. We need id's on the\n\t\t\t// location so we can link\n\t\t\t// the vehicles back to them.\n\t\t\tif (isEmpty(id)) {\n\t\t\t\tid = apData.generateUID();\n\t\t\t\tapData.setFieldValue(ICommlAutoConstants.LOCATION_ID_XPATH, locationIndex, id);\n\t\t\t}\n\t\t\taddress.setID(id);\n\t\t\taddresses.add(address);\n\t\t}\n\t\treturn addresses;\n\t}", "public static List<Address> getAddressesFromGeoCoder(Context context,double latitude,double longitude,int addressesToReturn) {\n List<Address> listOfAddresses = null;\n Geocoder gc=new Geocoder(context);\n try {\n listOfAddresses = gc.getFromLocation(latitude, longitude, addressesToReturn);\n\n //This is a test of more than one zip code - will give us 10023 & 10024\n //listOfAddresses = gc.getFromLocation(40.782891, -73.983085, addressesToReturn);\n } catch (IOException e) {\n Log.e(new Object() { }.getClass().getEnclosingClass()+\">\",e.getMessage());\n }\n catch (IllegalArgumentException e) {\n Log.e(new Object() { }.getClass().getEnclosingClass()+\">\",e.getMessage());\n }\n //Could be empty or null - we don't want to return null\n if (listOfAddresses==null){\n listOfAddresses=new ArrayList<>();\n }\n return listOfAddresses;\n }" ]
[ "0.6431128", "0.60116655", "0.5957986", "0.59112495", "0.58910537", "0.58043766", "0.57904136", "0.5727221", "0.57248414", "0.5718711", "0.5700172", "0.5676757", "0.56689835", "0.56664944", "0.56482947", "0.56301594", "0.5615574", "0.56073916", "0.5600396", "0.5584505", "0.5570311", "0.5551688", "0.55383056", "0.5535546", "0.55326116", "0.55322164", "0.55320466", "0.54963195", "0.5482721", "0.5482308", "0.5469982", "0.54618096", "0.5456572", "0.54563284", "0.54489464", "0.54479665", "0.5444087", "0.54361904", "0.54308856", "0.5428531", "0.5416552", "0.5414887", "0.5404277", "0.5398441", "0.539506", "0.53881985", "0.5385442", "0.53819084", "0.53805083", "0.5378674", "0.53770375", "0.53770375", "0.53770375", "0.53762245", "0.5369752", "0.53661364", "0.5363832", "0.53631604", "0.5353269", "0.532822", "0.5324156", "0.5319751", "0.5317386", "0.5317306", "0.5316898", "0.530692", "0.53023666", "0.5300877", "0.5300102", "0.52989906", "0.52978075", "0.52957386", "0.5289061", "0.52831787", "0.52795285", "0.52745724", "0.52717257", "0.5267554", "0.5267554", "0.5267554", "0.5267554", "0.5267554", "0.5267554", "0.5266977", "0.5263069", "0.5258995", "0.5257625", "0.5251382", "0.52491146", "0.524785", "0.5247189", "0.52464676", "0.524091", "0.5223952", "0.5220397", "0.5216984", "0.52160025", "0.52140623", "0.52134734", "0.52090657" ]
0.77965945
0
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); HttpSession session = request.getSession(); String accion = request.getParameter("accion"); Usuario objUsuario = (Usuario) session.getAttribute("usuario"); cFamilia objcFamilia = new cFamilia(); cOtros objcOtros = new cOtros(); if (accion == null) { session.removeAttribute("codFamiliaMantenimiento"); response.sendRedirect("articuloProducto/familiaMantenimiento.jsp"); } else { if (accion.equals("registrar")) { try { Familia objFamilia = new Familia(); objFamilia.setFamilia(request.getParameter("familia")); objFamilia.setObservacion(request.getParameter("observacion")); objFamilia.setRegistro(objcOtros.registro("1", objUsuario.getCodUsuario().toString())); int codFamilia = objcFamilia.Crear(objFamilia); if (codFamilia != 0) { out.print(codFamilia); } else { out.print("Error: " + objcFamilia.getError()); } } catch (Exception e) { out.print("Error en parámetros."); } } if (accion.equals("mantenimiento")) { session.removeAttribute("codFamiliaMantenimiento"); session.setAttribute("codFamiliaMantenimiento", Integer.parseInt(request.getParameter("codFamilia"))); response.sendRedirect("articuloProducto/familiaMantenimiento.jsp"); } if (accion.equals("editar")) { try { Familia objFamilia = new Familia(); objFamilia.setCodFamilia(Integer.parseInt(request.getParameter("codFamilia"))); objFamilia.setFamilia(request.getParameter("familia")); objFamilia.setObservacion(request.getParameter("observacion")); objFamilia.setRegistro(objcOtros.registro("1", objUsuario.getCodUsuario().toString())); if (objcFamilia.actualizar(objFamilia)) { out.print(objFamilia.getCodFamilia()); } else { out.print("Error: " + objcFamilia.getError()); } } catch (NumberFormatException e) { out.print("Error en parámetros."); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }" ]
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.639271", "0.63919044", "0.63919044", "0.63903785", "0.63903785", "0.63903785", "0.63903785", "0.63887113", "0.63887113", "0.6380285", "0.63783026", "0.63781637", "0.637677", "0.63761306", "0.6370491", "0.63626", "0.63626", "0.63614637", "0.6355308", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234", "0.6754993", "0.6754993", "0.67394847", "0.6719924", "0.6716244", "0.67054695", "0.67054695", "0.67012346", "0.6684415", "0.6676695", "0.6675696", "0.6675696", "0.66747975", "0.66747975", "0.6669016", "0.66621476", "0.66621476", "0.66476154", "0.66365504", "0.6615004", "0.66130257", "0.6604073", "0.6570195", "0.6551141", "0.65378064", "0.6536579", "0.65357745", "0.64957607", "0.64672184", "0.6453189", "0.6450501", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.64067316", "0.6395873", "0.6379907", "0.63737476", "0.636021", "0.6356937", "0.63410467", "0.6309468", "0.630619", "0.630263", "0.63014317", "0.6283933", "0.62738425", "0.62680805", "0.62585783", "0.62553537", "0.6249043", "0.62457556", "0.6239428", "0.6239428", "0.62376446", "0.62359244", "0.6215947", "0.62125194", "0.6207376", "0.62067443", "0.6204527", "0.6200444", "0.6199078", "0.61876005", "0.6182614", "0.61762017", "0.61755335", "0.61716276", "0.6170575", "0.6170397", "0.616901" ]
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException 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\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197", "0.6515622", "0.6513045", "0.6512626", "0.6492367", "0.64817846", "0.6477479", "0.64725804", "0.6472099", "0.6469389", "0.6456206", "0.6452577", "0.6452577", "0.6452577", "0.6450273", "0.6450273", "0.6438126", "0.6437522", "0.64339423", "0.64253825", "0.6422238", "0.6420897", "0.6420897", "0.6420897", "0.6407662", "0.64041835", "0.64041835", "0.639631", "0.6395677", "0.6354875", "0.63334197", "0.6324263", "0.62959254", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6280875", "0.6272104", "0.6272104", "0.62711537", "0.62616795", "0.62544584", "0.6251865", "0.62274224", "0.6214439", "0.62137586", "0.621211", "0.620854", "0.62023044", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61638993", "0.61603814", "0.6148914", "0.61465937", "0.61465937", "0.614548", "0.6141879", "0.6136717", "0.61313903", "0.61300284", "0.6124381", "0.6118381", "0.6118128", "0.61063534", "0.60992104", "0.6098801", "0.6096766" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", "0.85282224", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8516995", "0.8512296", "0.8511239", "0.8510324", "0.84964365", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599" ]
0.0
-1
change drawable to bitmap
private void initPaint() { paint = new Paint(); paint.setAntiAlias(true); Bitmap bitmap = Bitmap.createBitmap(starSize, starSize, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); lightDrawable.setBounds(0,0,starSize,starSize); lightDrawable.draw(canvas); paint.setShader(new BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Bitmap drawableToBitmap(Drawable drawable) {\n if (drawable == null) {\n return null;\n } else if (drawable instanceof BitmapDrawable) {\n return ((BitmapDrawable) drawable).getBitmap();\n }\n\n //Avoid Color Drawable special case\n int width = drawable.getIntrinsicWidth();\n width = width > 0 ? width : 1;\n int height = drawable.getIntrinsicHeight();\n height = height > 0 ? height : 1;\n\n Bitmap bitmap;\n try {\n bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n } catch (OutOfMemoryError e) {\n Log.e(\"PolygonImageView\", \"OutOfMemory during bitmap creation\");\n return null;\n }\n\n Canvas canvas = new Canvas(bitmap);\n drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());\n drawable.draw(canvas);\n\n return bitmap;\n }", "Drawable createDrawable(Context context, Bitmap b);", "public Bitmap drawableBitmap(int drawableId){\n return BitmapFactory.decodeResource(getResources(), drawableId);\n }", "public static Bitmap drawable2Bitmap(Drawable drawable) {\n\t\tBitmap bitmap = Bitmap\r\n\t\t\t\t.createBitmap(\r\n\t\t\t\t\t\tdrawable.getIntrinsicWidth(),\r\n\t\t\t\t\t\tdrawable.getIntrinsicHeight(),\r\n\t\t\t\t\t\tdrawable.getOpacity() != PixelFormat.OPAQUE ? Bitmap.Config.ARGB_8888\r\n\t\t\t\t\t\t\t\t: Bitmap.Config.RGB_565);\r\n\t\tCanvas canvas = new Canvas(bitmap);\r\n\t\tdrawable.setBounds(0, 0, drawable.getIntrinsicWidth(),\r\n\t\t\t\tdrawable.getIntrinsicHeight());\r\n\t\tdrawable.draw(canvas);\r\n\r\n\t\tbitmap = ThumbnailUtils.extractThumbnail(bitmap, 320, 320);\r\n\r\n\t\treturn bitmap;\r\n\t}", "public static Bitmap createDrawableBitmap(Drawable drawable) {\n int width = drawable.getIntrinsicWidth();\n int height = drawable.getIntrinsicHeight();\n if (width <= 0 || height <= 0) {\n return null;\n }\n float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (width * height));\n if (drawable instanceof BitmapDrawable && scale == 1f) {\n // return same bitmap if scale down not needed\n return ((BitmapDrawable) drawable).getBitmap();\n }\n int bitmapWidth = (int) (width * scale);\n int bitmapHeight = (int) (height * scale);\n Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n Rect existingBounds = drawable.getBounds();\n int left = existingBounds.left;\n int top = existingBounds.top;\n int right = existingBounds.right;\n int bottom = existingBounds.bottom;\n drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);\n drawable.draw(canvas);\n drawable.setBounds(left, top, right, bottom);\n return bitmap;\n }", "private Bitmap getBitmap(int drawableRes) {\n Drawable drawable = ResourcesCompat.getDrawable(getResources(), drawableRes, null);\n Canvas canvas = new Canvas();\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\n canvas.setBitmap(bitmap);\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\n drawable.draw(canvas);\n\n return bitmap;\n }", "private void loadBitmap() {\n\n BitmapDrawable bitmapDrawable = (BitmapDrawable) this.getDrawable();\n\n if (bitmapDrawable != null)\n image = bitmapDrawable.getBitmap();\n }", "@Override\n public void getDrawable(Drawable drawable) {\n imageView.setImageDrawable(drawable);\n }", "@Override\n public void setImageDrawable(@Nullable Drawable drawable) {\n mOriginalDrawable = drawable;\n setImageWhenReady();\n }", "private void recreateBitmap() {\n if (sprite != null) {\n sprite.recycle();\n }\n sprite = Bitmap.createBitmap(specState.targetWidth,\n specState.targetHeight,\n Bitmap.Config.ARGB_8888);\n spriteDrawable = new BitmapDrawable(getResources(), sprite);\n spriteDrawable.getPaint().setFilterBitmap(false);\n preview.setImageDrawable(spriteDrawable);\n }", "public interface DrawableCreator {\n /**\n * Create a drawable from this bitmap\n */\n Drawable createDrawable(Context context, Bitmap b);\n }", "private BitmapDrawable getBitmapDrawableFromView(View v) {\r\n Bitmap bitmap = Bitmap.createBitmap(v.getWidth(), v.getHeight(), Bitmap.Config.ARGB_8888);\r\n Canvas canvas = new Canvas(bitmap);\r\n v.draw(canvas);\r\n return new BitmapDrawable(getResources(), bitmap);\r\n }", "@Nullable\n private static Bitmap drawableToBitmap(@Nullable Drawable drawable, int maxDims) {\n if (drawable == null) {\n return null;\n }\n final int actualWidth = Math.max(1, drawable.getIntrinsicWidth());\n final int actualHeight = Math.max(1, drawable.getIntrinsicHeight());\n final double scaleWidth = ((double) maxDims) / actualWidth;\n final double scaleHeight = ((double) maxDims) / actualHeight;\n final double scale = Math.min(1.0, Math.min(scaleWidth, scaleHeight));\n final int width = (int) (actualWidth * scale);\n final int height = (int) (actualHeight * scale);\n if (drawable instanceof BitmapDrawable) {\n final BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;\n if (actualWidth != width || actualHeight != height) {\n return Bitmap.createScaledBitmap(\n bitmapDrawable.getBitmap(), width, height, /*filter=*/false);\n } else {\n return bitmapDrawable.getBitmap();\n }\n } else {\n final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n final Canvas canvas = new Canvas(bitmap);\n drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());\n drawable.draw(canvas);\n return bitmap;\n }\n }", "public Knob(Context context, int drawable) {\r\n\t\t\tBitmapFactory.Options opts = new BitmapFactory.Options();\r\n\t\t\topts.inJustDecodeBounds = true;\r\n\t\t\timg = BitmapFactory.decodeResource(context.getResources(), drawable); \r\n\t\t}", "@Override\n\t\t\t\tpublic void onObtainDrawable(Drawable drawable, ImageView imageView) {\n\t\t\t\t}", "@Override\n protected void onDraw(Canvas canvas) {\n if(d==null){\n return;\n }\n\n int width=getMeasuredWidth();\n int height=getMeasuredHeight();\n Bitmap bitmap;\n if(d instanceof GifDrawable){\n bitmap= ((GifDrawable) d).getFirstFrame();\n }else if(d instanceof ColorDrawable){\n bitmap = Bitmap.createBitmap(width,height,\n Bitmap.Config.ARGB_8888);\n bitmap.eraseColor(((ColorDrawable) d).getColor());\n } else {\n bitmap=((BitmapDrawable) d).getBitmap();\n }\n\n if(bitmap==null){\n bitmap = Bitmap.createBitmap(width,height,\n Bitmap.Config.ARGB_8888);\n bitmap.eraseColor(Color.parseColor(\"#eeeeee\"));\n }\n Rect rectSrc=new Rect(0,0, bitmap.getWidth(), bitmap.getHeight());\n Rect rectDst=new Rect(0,0,width,height);\n\n Paint paint=new Paint();\n final float roundPx = ConvertUtils.dp2px(5);\n paint.setAntiAlias(true);\n paint.setColor(bgColor);\n int canvasWidth = canvas.getWidth();\n int canvasHeight = canvas.getHeight();\n\n\n int layerId = canvas.saveLayer(0, 0, canvasWidth, canvasHeight, null, Canvas.ALL_SAVE_FLAG);\n canvas.drawRoundRect(new RectF(rectDst), roundPx, roundPx , paint);\n canvas.drawRect(new RectF(0,height/2,width,height), paint);\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n canvas.drawBitmap(bitmap, rectSrc, rectDst, paint);\n\n\n// canvas.drawBitmap(bitmapColor, rectSrc, rectDst, paint);\n //最后将画笔去除Xfermode\n paint.setXfermode(null);\n canvas.restoreToCount(layerId);\n\n\n }", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\n\t\tcanvas.drawBitmap(bitmap_new, 0, 0, paint);\n\t}", "void setImage(Bitmap bitmap);", "private Drawable rezizedDrawable() {\n Drawable logo = getResources().getDrawable(R.drawable.logo_compact);\n Bitmap mp = ((BitmapDrawable) logo).getBitmap();\n\n return new BitmapDrawable(getResources(), Bitmap.createScaledBitmap(mp, 100, 100, true));\n }", "@Override\n\t\t\tprotected void onDraw(Canvas canvas) {\n\t\t\t\t\n\t\t\t\tcanvas.drawColor(0xffff9900); // Orange\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// this gets us the view size relative to the bitmap\n\t\t\t\t// getWidth and getHeight() return int so we case denom to float\n\t\t\t\t\n\t\t\t\tfloat scaleX = this.getWidth() / ((float) mBitmap.getWidth());\n\t\t\t\tfloat scaleY = this.getHeight() / ((float) mBitmap.getHeight());\n\t\t\t\t// Log.d(\"MainActivity\",\"Scale:\"+scaleX+\",\"+scaleY);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// we can scale the canvas. \n\t\t\t\t// think about changes the rulers to the external \n\t\t\t\t// \n\t\t\t\t// this would double the bitmap size two times \n\t\t\t\t// \n\t\t\t\t// canvas.scale(2,2)\n\t\t\t\t// canvas.scale(2,2)\n\t\t\t\t\n\t\t\t\t// with canvas its possible to remember the settings using canvas.save(); \n\t\t\t\t\n\t\t\t\t\n\t\t\t\tcanvas.save();\n\t\t\t\tcanvas.scale(scaleX, scaleY);\n\t\t\t\t\n\t\t\t\t// Here we try to add the bitmap to the canvas\n\t\t\t\t// canvas.drawBitmap(b,0,0,null)\n\t\t\t\t// Note: here b is a local variable declared above\n\t\t\t\t// if we try to use local variables that were declared outside of the anonymous inner class\n\t\t\t\t// we have 2 ways to make that work \n\t\t\t\t// 1. we can make the declaration final. e.g. \n\t\t\t\t// \n\t\t\t\t// final Bitmap b = Bitmap.createBitmap(4,4,Bitmap.Config.ARGB_8888); \n\t\t\t\t// \n\t\t\t\t// for pointers that means that means that b is fated to always point to the \n\t\t\t\t// same java object. \n\t // \n\t\t\t\t// The other thing we can do is make the bitmap an instance variable\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// For Android 4.x we also need to pass a paint\n\t\t\t\t// to turn off filtering -\n\t\t\t\tmPaint.setFilterBitmap(false); // Experiment with false vs true\n\t\t\t\tcanvas.drawBitmap(mBitmap, 0, 0, mPaint);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// canvas.restore() works in concert with canvas.save() \n\t\t\t\t// restores the prior settings\n\t\t\t\tcanvas.restore();\n\n\t\t\t\t// this draws a circle around our penguin\n\t\t\t\t// the circle has to be drawn before we draw the penguin otherwise\n\t\t\t\t// the penguin will be hidden behind the circle\n\t\t\t\t\n\t\t\t\tmPaint.setColor(0x80ffffff); \t\t\t\t\t// White\n\t\t\t\tmPaint.setStyle(Style.FILL_AND_STROKE);\n\n\t\t\t\t\n\t\t\t\t// here we're drawing the penguin\n\t\t\t\t// initially the penguin wasn't visible because the scale was too large\n\t\t\t\t// one fix is to reverse the scale\n\t\t\t\t// \n\t\t\t\t// $ canvas.scale(1/scaleX, 1/scaleY); \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// canvas allows us to rotate. We do this in degrees. \n\t\t\t\t// by default the canvas rotates around 0,0\n\t\t\t\t\n\t\t\t\t// we use this calculation to determine how much to rotate the penguin\n\t\t\t\t// SystemClock.uptimeMillis() does not include time asleep\n\t\t\t\t// good clock to use if you want to count how long a user has seen something\n\t\t\t\t// \n\t\t\t\t// we take the SystemClock divided / 10.0f \n\t\t\t\t\n\t\t\t\t// Note: instead of moving the penguin, we first translate the canvas and then \n\t\t\t\t// rotate the penguin relative to the canvas\n\t\t\t\t\n\t\t\t\tfloat angle = SystemClock.uptimeMillis() / 10.0f;\n\t\t\t\tcanvas.translate(x,y); \n\t\t\t\n\t\t\t\n\n\t\t\t\t// move the circle to be drawn after we translate the canvas\n\t\t\t\tcanvas.drawBitmap(mPenguin, 0, 0, null);\n\t\t\t\t\n\t\t\t\t// here we add movement\n\t\t\t\t// we're adding gravity. \n\t\t\t\t// we check to see if the penguin is too low, and if he is \n\t\t\t\t// then we change the sign of 'gravity'\n\t\t\t\t\n\t\t\t\t// want to bounce on bottom of screen\n\t\t\t\t// canvas.getHeight doesn't work \n\t\t\t\t// Log.d(\"TAG\", \"Canvas: \" + canvas.getHeight()) + \" View: \" + this.getHeight())\n\t\t\t\t// the canvas is not as large as the view because things like status bars take up \n\t\t\t\t// part of the view\n\t\t\t\t// \n\t\t\t\t// the penguin is drawn from the topleft corner. To get the bottom corner we have to \n\t\t\t\t// add 2*mPHheight\n\t\t\t\t\n\t\t\t\tif(y + 2*mPHheight + vy+1 >= this.getHeight()){ \n\t\t\t\t\tvy = -0.8f * vy; //make sure I stay with float 0 \n\t\t\t\t} else { \n\t\t\t\t\t// only accelerate if not bouncing\n\t\t\t\t\tvy = vy + 2; \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tx = x + vx; \n\t\t\t\ty = y + vy; \n\t\t\t\t\n\t\t\t\t// we use postInvalidate to animate the penguin\n\t\t\t\t// postInvalidate means 'please redraw me' \n\t\t\t\t// you can call this method from anywhere\n\t\t\t\t// for example if you have a thread where you get a new sensor measurement, \n\t\t\t\t// you can call post invalidate on your view\n\t\t\t\n\t\t\t\t\n\t\t\t\t// In 20ms (1/50th second) this view will need to be redrawn\n\t\t\t\tpostInvalidateDelayed(20);\n\t\t\t}", "private void setPicToView(Intent picdata) {\n Bundle extras = picdata.getExtras();\n if (extras != null) {\n Bitmap photo = extras.getParcelable(\"data\");\n Drawable drawable = new BitmapDrawable(getResources(), photo);\n groupSetAvatar.setImageDrawable(drawable);\n // uploadUserAvatar(Bitmap2Bytes(photo));\n saveBitmapFile(picdata);\n\n }\n\n }", "public abstract void setUpBitmap(Context context);", "private LayerDrawable buildPinIcon(String iconPath, int iconColor) {\n\n LayerDrawable result = null;\n\n BitmapFactory.Options myOptions = new BitmapFactory.Options();\n myOptions.inDither = true;\n myOptions.inScaled = false;\n myOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;// important\n myOptions.inPurgeable = true;\n\n Bitmap bitmap = null;\n try {\n bitmap = BitmapFactory.decodeStream(container.getContext().getAssets().open(iconPath), null, myOptions);\n\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }catch (Exception e) {\n //Crashlytics.logException(e);\n\n }\n\n\n Bitmap workingBitmap = Bitmap.createBitmap(100, 100, bitmap.getConfig()); //Bitmap.createBitmap(bitmap);\n Bitmap mutableBitmap = workingBitmap.copy(Bitmap.Config.ARGB_8888, true);\n\n\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setDither(false);\n\n paint.setColor(iconColor);\n\n Canvas canvas = new Canvas(mutableBitmap);\n canvas.drawCircle(bitmap.getWidth()/2 + 10, bitmap.getHeight()/2 + 10, 32, paint);\n\n //\t canvas.drawBitmap(bitmap, 10, 10, null);\n\n if (!iconPath.isEmpty()) {\n\n try {\n result = new LayerDrawable(\n new Drawable[] {\n\t\t\t\t\t\t\t\t/*pincolor*/ new BitmapDrawable(mutableBitmap),\n new BitmapDrawable(BitmapFactory.decodeStream(container.getContext().getAssets().open(iconPath)))});\n\n } catch (Resources.NotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n\n\n return result;\n\n }", "public void setDrawable(Drawable drawable)\n\t {\n\t this.drawable=drawable;\n\t }", "private void refreshImage() {\n Bitmap image = drawableToBitmap(getDrawable());\n int canvasSize = Math.min(canvasWidth, canvasHeight);\n if (canvasSize > 0 && image != null) {\n //Preserve image ratio if it is not square\n BitmapShader shader = new BitmapShader(ThumbnailUtils.extractThumbnail(image, canvasSize, canvasSize),\n Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);\n mPaint.setShader(shader);\n }\n }", "public static BitmapDrawable convertByteToBitmapDrawable(Context context, byte[]\n imgData) {\n\n Bitmap bitmap = ImageUtil.convertByteToBitmap(imgData);\n BitmapDrawable bitmapDrawable = null;\n if( bitmap != null ) {\n\n bitmapDrawable = new BitmapDrawable(context\n .getResources(), bitmap);\n }\n\n return bitmapDrawable;\n }", "@Override\n void draw(Canvas canvas) {\n canvas.drawBitmap(appearance, getX(), getY(), null);\n }", "Bitmap m7900a(Bitmap bitmap);", "public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n }\n }", "private BitmapDescriptor getMarkerIconFromDrawable(Drawable drawable) {\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "public static void ponerImagenConFormatoRedondoEnImageView(Context context, Bitmap bitmap, ImageView imageview) {\n RoundedBitmapDrawable circularBitmapDrawable = RoundedBitmapDrawableFactory.create(context.getResources(), bitmap);\n circularBitmapDrawable.setCircular(true);\n imageview.setImageDrawable(circularBitmapDrawable);\n imageview.setScaleType(ImageView.ScaleType.CENTER_CROP);\n }", "public void saveBitmap(Context context, int id) {\n bitmap = BitmapFactory.decodeResource(context.getResources(), id);\n resourcesLoaded++;\n }", "public void m2261I() {\n try {\n if (this.f2513n != null) {\n this.f2513n.setImageDrawable(C5150d.m3784a(mo61159b().getResources(), \"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA39pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozODRkZTAxYi00OWRkLWM4NDYtYThkNC0wZWRiMDMwYTZlODAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkE0Q0U2MUY2QzA0MTFFNUE3MkJGQjQ1MTkzOEYxQUUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkE0Q0U2MUU2QzA0MTFFNUE3MkJGQjQ1MTkzOEYxQUUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjlkZjAyMGU0LTNlYmUtZTY0ZC04YjRiLWM5ZWY4MTU4ZjFhYyIgc3RSZWY6ZG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmU1MzEzNDdlLTZjMDEtMTFlNS1hZGZlLThmMTBjZWYxMGRiZSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PngNsEEAAANeSURBVHjatFfNS1tBEH+pUZOQ0B4i3sTSxHMRFNQoFBEP7dHgvyDiKWgguQra9F+oxqNiwOTQ+oFI1ZM3jSf1YK5FL41ooaKZzu+x+4gv2bx9Rgd+JNn5zO7s7IzH0CQiCvLHZ8YnxkfGe8ZbwS4zSowTxi/GT4/Hc2u8BLHjCOM745b06VboRJpx7GN8ZfyDxUqlQgcHB5RMJmloaIg6Ozupra3NBL5jDTzIQFYQdDOw5db5B8YxLDw+PtLKygr19PQQWDqIRqOUzWZNXUHH2rvBgr2M39C6uLig/v5+bcd2QLdUKskgYLNX57yvIL2zs0OhUOjZziU6Ojro8PBQBnGl3Alm+BknkMI54mybdS4BW3t7ezKIInzVCwDJYm4Zon4p5xLYzfPzcxlEpl7S3SNpmjlznZwQiXn/5CjEnTUzt5GBsbExamlpUfLBg0wjG8vLy3IXlqTzEAoH7m4kElEqTk1Nmfd7bW2tbhBYAw8ykFXZgQ9RJ1CsQghgEr/29/eVStPT09XFhdbX18nr9Vr81tZWyuVyFh+yMzMzSnvwJWjyDS+MYic2NzeV17O7u9vg2m79jsfjBv9bg7PbxOrqqjExMWHxIdvV1aW0V+VrFDtwhFCGh4cbnl0mk6kp+BsbGybsBNlGtkZGRqToEQK4xjfUc6csXlhYcHyFFhcXHe3Al6BrQz427e3tWldpfn5e6Rw83cIkHyvXAUAZb4SdsKZbPe0BaB+Bz+cjTiDlDmxtbZkybo9AKwn9fj9tb2875gBkINvIFnzJJMQ1PMV9GBgYUF6bQCBgFAoFY3x8/Ml6KpUy0un0kzXIQBY6KqrydapViPL5fM0/Rfcj+fhuJw5CqxBpleJYLEY3NzeW8dnZ2RoZrEmCLHQcSvGdWYrFe7CEFTwUqqjR85XLZUokEkoZ8CADWe3HqKoTcnyOdW5KI5m+vj56eHiQz3G0bkNyeXn5ag3J2dmZ/PffVC1Z8bVast3d3eqWLKDVlAaDwaadh8Nhvaa0XluOHg7n9lzn0MWRarfltp0oysEErRqGDTeDCbK9ajApuh7TxGiWERlrjWZzc3M0ODhYM5phDTzbaHb/rNHMFkhUNK13LobTv6K2RJ3se1yO519s4/k7wf5jG89/6I7n/wUYAGo3YtcprD4sAAAAAElFTkSuQmCC\"));\n this.f2513n.setScaleType(ScaleType.FIT_CENTER);\n }\n } catch (Exception e) {\n C5017f.m3256a(mo61159b(), C5015d.EXCEPTION, \"MraidMode.showDefaultCloseButton\", e.getMessage(), \"\");\n }\n }", "public static Bitmap convertToMutable(Bitmap imgIn) {\n try {\n //this is the file going to use temporally to save the bytes.\n // This file will not be a imageView, it will store the raw imageView data.\n File file = new File(Environment.getExternalStorageDirectory() + File.separator + \"temp.tmp\");\n\n //Open an RandomAccessFile\n //Make sure you have added uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"\n //into AndroidManifest.xml file\n RandomAccessFile randomAccessFile = new RandomAccessFile(file, \"rw\");\n\n // get the width and height of the source bitmap.\n int width = imgIn.getWidth();\n int height = imgIn.getHeight();\n Bitmap.Config type = imgIn.getConfig();\n\n //Copy the byte to the file\n //Assume source bitmap loaded using options.inPreferredConfig = Config.ARGB_8888;\n FileChannel channel = randomAccessFile.getChannel();\n MappedByteBuffer map = channel.map(FileChannel.MapMode.READ_WRITE, 0, imgIn.getRowBytes()*height);\n imgIn.copyPixelsToBuffer(map);\n //recycle the source bitmap, this will be no longer used.\n imgIn.recycle();\n System.gc();// try to force the bytes from the imgIn to be released\n\n //Create a new bitmap to load the bitmap again. Probably the memory will be available.\n imgIn = Bitmap.createBitmap(width, height, type);\n map.position(0);\n //load it back from temporary\n imgIn.copyPixelsFromBuffer(map);\n //close the temporary file and channel , then delete that also\n channel.close();\n randomAccessFile.close();\n\n // delete the temp file\n file.delete();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return imgIn;\n }", "public void setDrawable(Drawable drawable) {\n this.mDrawable = drawable;\n }", "public void setDrawable(Drawable drawable) {\n this.mDrawable = drawable;\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btnClear:\n if (null != mCanvas) {\n mCanvas.drawColor(Color.WHITE);\n ivGraffit.setImageBitmap(mBitmap);\n }\n break;\n case R.id.btnSave:\n\n // AT_MOST:我们可以指定一个上限,要保存的图片的大小不会超过它。\n // EXACTLY:我们指定了一个明确的大小,要求图片保存时满足这个条件。\n // UNSPECIFIED:图片多大,我们就保存多大。\n\n ivGraffit.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));\n ivGraffit.layout(0, 0, ivGraffit.getMeasuredWidth(), ivGraffit.getMeasuredHeight());\n ivGraffit.buildDrawingCache();\n Bitmap drawingCache = ivGraffit.getDrawingCache();\n if (null == drawingCache) {\n UIUtils.toastShow(\"null == drawingCache\");\n return;\n }\n // FileOutputStream fos =\n // new\n // FileOutputStream(file)\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try {\n\n drawingCache.compress(CompressFormat.JPEG, 100, baos);\n baos.writeTo(new FileOutputStream(FileUtils.getImgFile()));\n } catch (Exception e) {\n // TODO Auto-generated\n // catch block\n e.printStackTrace();\n } finally {\n\n try {\n baos.flush();\n baos.close();\n } catch (IOException e) {\n // TODO\n // Auto-generated\n // catch block\n e.printStackTrace();\n }\n }\n break;\n\n default:\n break;\n }\n }", "public void changePicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(type == \"generic\") {\n //add the new picture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"picture\"){\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n }", "public Bitmap saveBitmap(int sampleSize, int radius, int strokeWidth) {\n\r\n try {\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n options.inJustDecodeBounds = true; //Chỉ đọc thông tin ảnh, không đọc dữ liwwuj\r\n BitmapFactory.decodeFile(pathImage, options); //Đọc thông tin ảnh\r\n options.inSampleSize = sampleSize; //Scale bitmap xuống 1 lần\r\n options.inJustDecodeBounds = false; //Cho phép đọc dữ liệu ảnh ảnh\r\n Bitmap originalSizeBitmap = BitmapFactory.decodeFile(pathImage, options);\r\n\r\n Bitmap mutableBitmap = originalSizeBitmap.copy(Bitmap.Config.ARGB_8888, true);\r\n RectF originalRect =\r\n new RectF(0, 0, mutableBitmap.getWidth(), mutableBitmap.getHeight());\r\n\r\n originalSizeBitmap.recycle();\r\n originalSizeBitmap = null;\r\n System.gc();\r\n\r\n Canvas canvas = new Canvas(mutableBitmap);\r\n\r\n float[] originXy = getOriginalPoint(originalRect);\r\n circlePaint.setStrokeWidth(strokeWidth);\r\n canvas.drawCircle(originXy[0], originXy[1], radius, circlePaint);\r\n return mutableBitmap;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n Toast.makeText(getContext(), \"can not draw original bitmap\", Toast.LENGTH_SHORT)\r\n .show();\r\n return getBitmapScreenShot();\r\n }\r\n }", "Bitmap load(String id);", "void mo12205a(Bitmap bitmap);", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tdrawView.setDrawingCacheEnabled(true);\n\t\t\t\t\tString imgSaved = MediaStore.Images.Media.insertImage(\n\t\t\t\t\t\t\tgetContentResolver(), drawView.getDrawingCache(),\n\t\t\t\t\t\t\tUUID.randomUUID().toString() + \".png\", \"drawing\");\n\t\t\t\t\tSystem.out.println(\"the string uri:\" + imgSaved);\n\n\t\t\t\t\tif (imgSaved != null) {\n\t\t\t\t\t\tToast savedToast = Toast\n\t\t\t\t\t\t\t\t.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\"Drawing saved to Gallery!\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\t\t// savedToast.show();\n\t\t\t\t\t\tdrawView.destroyDrawingCache();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast unsavedToast = Toast.makeText(\n\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\"Oops! Image could not be saved.\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\t\t// unsavedToast.show();\n\t\t\t\t\t}\n\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "@Override\r\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\r\n\t\tcanvas.drawBitmap(mStarting, 0, 0, null);\r\n\t}", "@Override\n\t\tpublic void draw(Canvas canvas) {\n\t\t\tif(drawable != null) {\n\t\t\t\tdrawable.draw(canvas);\n\t\t\t}\n\t\t}", "private BitmapDescriptor getMarkerIconFromDrawable(Drawable inputDrawable){\n Canvas canvas = new Canvas();\n Bitmap bitmap = Bitmap.createBitmap(inputDrawable.getIntrinsicWidth(), inputDrawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\n canvas.setBitmap(bitmap);\n inputDrawable.setBounds(0, 0, inputDrawable.getIntrinsicWidth(), inputDrawable.getIntrinsicHeight());\n inputDrawable.draw(canvas);\n return BitmapDescriptorFactory.fromBitmap(bitmap);\n }", "public void setImageBitmapInto(Bitmap bitmap, View view) {\n ((ImageView) view).setImageBitmap(bitmap);\n }", "private void setImageBitmap(ImageView imageView, Bitmap bitmap,\n boolean isTran) {\n if (isTran) {\n final TransitionDrawable td = new TransitionDrawable(\n new Drawable[] {\n new ColorDrawable(android.R.color.transparent),\n new BitmapDrawable(mContext.getResources(), bitmap) });\n td.setCrossFadeEnabled(true);\n imageView.setImageDrawable(td);\n td.startTransition(300);\n } else {\n imageView.setImageBitmap(bitmap);\n }\n }", "public void setBitmap(Bitmap bitmap) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t \t\n\t \tclass ToSaveCropped{\n\t \t\t\n\t \t\tfloat x=finalx;\n\t \t\tfloat y=finaly;\n\n\t\t\t\t\tprivate byte[] data = MainActivity.getbitmapData();\n\t\t\t Bitmap mImage = BitmapFactory.decodeByteArray(data, 0, data.length);\n\t\t\t \n\t\t\t Drawable myMask = getResources().getDrawable(R.drawable.mask);\n\t\t\t Bitmap mMask = ((BitmapDrawable) myMask).getBitmap();\n\t\t\t Bitmap mmImage = dv.bitmapRotate(mImage);\n\t\t\t \n\t\t\t Bitmap mmmImage = dv.getResizedBitmap(mmImage,height,width);\n\t\t\t \n\t\t\t Bitmap mmMask = dv.getResizedBitmap(mMask,wMask,wMask);\n\t\t\t\t\t\n\t\t\t\t\tpublic void onDraw(){\n\t\t\t\t\t\tCanvas canvas; \t\t\t\n\t \t\t\tint w = mmMask.getWidth(), h = mmMask.getHeight();\n\t \t\t\tBitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types\n\t \t\t\tcroppedBitmap = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap\n\t \t\t\tcanvas = new Canvas(croppedBitmap);\n\t \t\t\t\n\t \t\t\tPaint maskPaint = new Paint();\n\t \t\t\tmaskPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n\n\t Paint imagePaint = new Paint();\n\t imagePaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OVER));\n\t \t\t\t//Log.i(\"\"+x,\"\"+y);\n\t \t//canvas.drawBitmap(mMask,x,y,maskPaint);\n\t \tcanvas.drawBitmap(mmmImage,-x,-y,imagePaint);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t \t}\t \t\n\t \tToSaveCropped tsc = new ToSaveCropped();\n\t \ttsc.onDraw();\n\t \tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\t \tcroppedBitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);\n\t \tbitData = stream.toByteArray();\n\t\t\t\t\n\t\t\t\tSaveFile sv = new SaveFile();\n\t\t\t\tsv.save();\n\t\t\t\t\n\t\t\t\tMediaStore.Images.Media.insertImage(getContentResolver(), croppedBitmap, \"\", \"\");\n\t\t\t\t\n\t\t\t}", "public void mo18696a(Drawable resource) {\n ((ImageView) this.f10538c).setImageDrawable(resource);\n }", "public void recycle() {\n Drawable drawable = this.view.getDrawable();\n if (drawable != null && (drawable instanceof BitmapDrawable)) {\n ((BitmapDrawable) drawable).getBitmap().recycle();\n }\n }", "@Override\n public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition<? super Bitmap> transition) {\n Bitmap scaledBitmap = Bitmap.createScaledBitmap(resource,\n AlchenomiconConstants.ICON_UPSCALED_SIZE,\n AlchenomiconConstants.ICON_UPSCALED_SIZE, false);\n view.setImageBitmap(scaledBitmap);\n }", "public void setImageDrawableInto(Drawable drawable, View view) {\n ((ImageView) view).setImageDrawable(drawable);\n if (drawable instanceof AnimationDrawable) {\n ((AnimationDrawable) drawable).start();\n }\n }", "public static Bitmap getBitmapFromView(View view) {\n Bitmap returnedBitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(),Bitmap.Config.ARGB_8888);\n //Bind a canvas to it\n Canvas canvas = new Canvas(returnedBitmap);\n //Get the view's background\n Drawable bgDrawable =view.getBackground();\n if (bgDrawable!=null)\n //has background drawable, then draw it on the canvas\n bgDrawable.draw(canvas);\n else\n //does not have background drawable, then draw white background on the canvas\n canvas.drawColor(Color.WHITE);\n // draw the view on the canvas\n view.draw(canvas);\n //return the bitmap\n return returnedBitmap;\n }", "@Override\n public void setLoadingDrawable(ImageView imageView, Drawable drawable) {\n }", "private void draw() {\n\tSurfaceHolder holder = getSurfaceHolder();\n\tCanvas canvas = null;\n\ttry {\n\t\tcanvas = holder.lockCanvas();\n\t\tif (canvas != null) {\n\t\t\tif (bitmap == null) {\n\t\t\t\tbitmap = iniBitmap(canvas.getWidth(), canvas.getHeight());\n\t\t\t}\n\t\t\tcanvas.drawBitmap(bitmap.getBitmap(), 0, 0, paint);\n\t\t}\n\t} finally {\n\t\tif (canvas != null) holder.unlockCanvasAndPost(canvas);\n\t}\n}", "@Override\n public void imageLoad(ImageView imageView, Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n //item.picture = bitmap;\n }", "@Override\n\tpublic void draw(Canvas canvas) {\n\t\tif (drawable != null) {\n\t\t\tdrawable.draw(canvas);\n\t\t}\n\t}", "public void makeActive(){\n active = true;\n \n // loads in asset and turns it into bitmaps\n ballBitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.ball);\n ballBitmap = Bitmap.createScaledBitmap(ballBitmap,\n bitmapDimensions.width, bitmapDimensions.height, true);\n }", "@Override\r\n public void onPrepareLoad(Drawable arg0) {\n\r\n }", "private BitmapDescriptor BitmapFromVector(Context context, int vectorResId) {\n Drawable vectorDrawable = ContextCompat.getDrawable(context, vectorResId);\n //below line is use to set bounds to our vector drawable.\n vectorDrawable.setBounds(0, 0, vectorDrawable.getIntrinsicWidth(), vectorDrawable.getIntrinsicHeight());\n //below line is use to create a bitmap for our drawable which we have added.\n Bitmap bitmap = Bitmap.createBitmap(vectorDrawable.getIntrinsicWidth(), vectorDrawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\n //below line is use to add bitmap in our canvas.\n Canvas canvas = new Canvas(bitmap);\n //below line is use to draw our vector drawable in canvas.\n vectorDrawable.draw(canvas);\n //after generating our bitmap we are returning our bitmap.\n return BitmapDescriptorFactory.fromBitmap(bitmap);\n }", "@Override\n public Bitmap onPreSetBitmap(ImageView imageView, Bitmap loadedBitmap, String url, boolean loadedFromCache) {\n return ImageUtils.getCircleBitmap(loadedBitmap);\n }", "@Override\n public void onClick(View view) {\n BitmapDrawable bitmapDrawable = (BitmapDrawable) imgHinh.getDrawable();\n Bitmap bitmap = bitmapDrawable.getBitmap();\n ByteArrayOutputStream byteArray = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArray);\n byte[] hinhAnh = byteArray.toByteArray();\n AnhcuatoiActivity.database.INSERT_AnhCuaToi(\n edtTen.getText().toString().trim(),\n edtMoTa.getText().toString().trim(),\n hinhAnh\n );\n Toast.makeText(AnhcuatoiActivity.this, \"Đã Thêm\", Toast.LENGTH_SHORT).show();\n }", "public static Bitmap getBitmapFromView(View view) {\n Bitmap returnedBitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888);\n //Bind a canvas to it\n Canvas canvas = new Canvas(returnedBitmap);\n //Get the view's background\n Drawable bgDrawable = view.getBackground();\n if (bgDrawable != null)\n //has background drawable, then draw it on the canvas\n bgDrawable.draw(canvas);\n else\n //does not have background drawable, then draw white background on the canvas\n canvas.drawColor(Color.WHITE);\n // draw the view on the canvas\n view.draw(canvas);\n //return the bitmap\n return returnedBitmap;\n }", "public Bitmap getB(String name){\n\t\treturn BitmapFactory.decodeResource(activity.getResources(),\n\t\t\t\tactivity.getResources().getIdentifier(name, \"drawable\", activity.getPackageName()));\n\t\t\n\t}", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\tBitmap b = null;\n\t\tfor (int i = 0; i < mViewNum; i++) {\n\t\t\tif (i == mCurrSelectIndex) {\n\t\t\t\tb = BitmapFactory.decodeResource(getResources(), R.mipmap.pic_select_point);\n\t\t\t} else {\n\t\t\t\tb = BitmapFactory.decodeResource(getResources(), R.mipmap.pic_noselect_point);\n\t\t\t}\n\t\t\tfloat vl = (float) getMeasuredWidth() / 2 - (float) (mViewNum * b.getWidth() + (mViewNum - 1) * b.getWidth()) / 2;\n\t\t\tvl = vl + (float) i * 2 * b.getWidth();\n\t\t\tcanvas.drawBitmap(b, vl, getMeasuredHeight() - 2 * b.getHeight(), null);\n\t\t}\n\t}", "private Bitmap convertCursorRowToUXFormat(Cursor cursor) {\n // get row indices for our cursor\n int idx_poster_img = cursor.getColumnIndex(MoviesContract.MovieEntry.COLUMN_POSTER);\n\n byte[] blob = cursor.getBlob(idx_poster_img);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(blob);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n\n return bitmap;\n }", "public void bindDrawable(Drawable drawable) {\n mItemImageView.setImageDrawable(drawable);\n }", "@Override\n public void draw(Canvas canvas) {\n if(drawable != null) {\n drawable.draw(canvas);\n }\n }", "public void init(GLAutoDrawable drawable) {}", "@Override\r\n\tpublic void setImageBitmap(Bitmap source) {\n//\r\n//\t\tMatrix matrix = new Matrix();\r\n//\t\tmatrix.postScale(ratio, ratio);\r\n//\t\tsource = Bitmap.createBitmap(source, 0, 0, width, height, matrix, true);\r\n//\r\n//\t\twidth = source.getWidth();\r\n//\t\theight = source.getHeight();\r\n//\r\n//\t\tx = (width - ConfigSize.SIZE_THUMB) / 2;\r\n//\t\ty = (height - ConfigSize.SIZE_THUMB) / 2;\r\n//\r\n//\t\tsource = Bitmap.createBitmap(source, x, y, ConfigSize.SIZE_THUMB,\r\n//\t\t\t\tConfigSize.SIZE_THUMB);\r\n\r\n\t\tsuper.setImageBitmap(source);\r\n\t}", "@Override\r\nprotected void onActivityResult(int requestCode, int resultCode, Intent vgt) {\n\t\tsuper.onActivityResult(requestCode, resultCode, vgt);\r\n\t\tBitmap bm=(Bitmap) vgt.getExtras().get(\"data\"); //Use only data\r\n\t\tiv.setImageBitmap(bm); \r\n\t}", "public void mo3105a(Intent intent, Drawable drawable, Context context) {\n Bitmap bitmap;\n mo3104a(context);\n int i = this.f2605a;\n if (i == 1) {\n bitmap = (Bitmap) this.f2606b;\n if (drawable != null) {\n bitmap = bitmap.copy(bitmap.getConfig(), true);\n }\n } else if (i == 2) {\n try {\n Context createPackageContext = context.createPackageContext(mo3107b(), 0);\n if (drawable == null) {\n intent.putExtra(\"android.intent.extra.shortcut.ICON_RESOURCE\", ShortcutIconResource.fromContext(createPackageContext, this.f2609e));\n return;\n }\n Drawable c = C0540a.m2546c(createPackageContext, this.f2609e);\n if (c.getIntrinsicWidth() > 0) {\n if (c.getIntrinsicHeight() > 0) {\n bitmap = Bitmap.createBitmap(c.getIntrinsicWidth(), c.getIntrinsicHeight(), Config.ARGB_8888);\n c.setBounds(0, 0, bitmap.getWidth(), bitmap.getHeight());\n c.draw(new Canvas(bitmap));\n }\n }\n int launcherLargeIconSize = ((ActivityManager) createPackageContext.getSystemService(\"activity\")).getLauncherLargeIconSize();\n bitmap = Bitmap.createBitmap(launcherLargeIconSize, launcherLargeIconSize, Config.ARGB_8888);\n c.setBounds(0, 0, bitmap.getWidth(), bitmap.getHeight());\n c.draw(new Canvas(bitmap));\n } catch (NameNotFoundException e) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Can't find package \");\n sb.append(this.f2606b);\n throw new IllegalArgumentException(sb.toString(), e);\n }\n } else if (i == 5) {\n bitmap = m2628a((Bitmap) this.f2606b, true);\n } else {\n throw new IllegalArgumentException(\"Icon type not supported for intent shortcuts\");\n }\n if (drawable != null) {\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n drawable.setBounds(width / 2, height / 2, width, height);\n drawable.draw(new Canvas(bitmap));\n }\n intent.putExtra(\"android.intent.extra.shortcut.ICON\", bitmap);\n }", "private void setImage(Bitmap image) {\n }", "public static Bitmap getBitmapFromView(View v) {\n //Define a bitmap with the same size as the view\n Bitmap returnedBitmap = Bitmap.createBitmap(v.getWidth(), v.getHeight(),Bitmap.Config.ARGB_8888);\n //Bind a canvas to it\n Canvas palit = new Canvas(returnedBitmap);\n //Get the view's background\n Drawable bgDrawable =v.getBackground();\n if (bgDrawable!=null)\n //has background drawable, then draw it on the canvas\n bgDrawable.draw(palit);\n else\n //does not have background drawable, then draw white background on the canvas\n palit.drawColor(Color.WHITE);\n // draw the view on the canvas\n v.draw(palit);\n //return the bitmap\n return returnedBitmap;\n }", "@Override\n protected void onDraw(Canvas canvas) {\n canvas.drawBitmap(mBitmap, mTransformation, mBitmapPaint);\n// for (Path p : paths) {\n// canvas.drawPath(p, mPaint);\n// }\n for (PathColored p : pathSaved) {\n canvas.drawPath(p.getPath(), p.getPaint());\n }\n }", "private BitmapDescriptor getMarkerIconFromDrawableForFood() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_food);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "public interface IBitmapFactory {\n public Bitmap decodeResource(Resources resources, int resId);\n public Bitmap createBitmap(int width, int height, Bitmap.Config config);\n}", "@Override\n\tpublic Drawable getDrawable() {\n\t\tDrawable drawable = null;\n \n if (mDrawable != null) {\n drawable = mDrawable;\n } else if (mContentUri != null) {\n Bitmap bitmap = null;\n try {\n InputStream is = mContext.getContentResolver().openInputStream(\n mContentUri);\n bitmap = BitmapFactory.decodeStream(is);\n drawable = new BitmapDrawable(mContext.getResources(), bitmap);\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(),\n drawable.getIntrinsicHeight());\n is.close();\n } catch (Exception e) {\n Log.e(\"sms\", \"Failed to loaded content \" + mContentUri, e);\n }\n } else {\n try {\n drawable = mContext.getResources().getDrawable(mResourceId);\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(),\n drawable.getIntrinsicHeight());\n } catch (Exception e) {\n Log.e(\"sms\", \"Unable to find resource: \" + mResourceId);\n } \n }\n\n return drawable;\n\t}", "@Override\n public void onClick(View v) {\n Bitmap zoomedBitmap= Bitmap.createScaledBitmap(bmp, photoView.getWidth(), photoView.getHeight(), true);\n SaveImage(zoomedBitmap);\n }", "private void setPic() {\n int targetW = img_clip.getWidth();\n int targetH = img_clip.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n img_clip.setImageBitmap(bitmap);\n }", "private void configDefaultDrawable() {\n drawableResId().open = R.drawable.sms_add_btn;\n drawableResId().close = R.drawable.sms_close_btn;\n drawableResId().gotoEmotion = R.drawable.sms_kaomoji_btn;\n drawableResId().keyboard = R.drawable.sms_keyboard;\n drawableResId().voiceNormal = R.drawable.sms_voice_btn;\n drawableResId().voicePressed = R.drawable.sms_voice_btn_p;\n }", "private Bitmap convertToBitmap(byte[] b){\n\n return BitmapFactory.decodeByteArray(b, 0, b.length);\n\n }", "protected void onPostExecute(Bitmap result) {\n\n\n\n bmImage.setImageBitmap(result);\n bmImage.setBackgroundResource( R.color.trans );\n }", "public void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n Bitmap bitmap = this.mBitmap;\n if (bitmap != null) {\n canvas.drawBitmap(bitmap, 0.0f, 0.0f, (Paint) null);\n }\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\r\n Bitmap b=(Bitmap)data.getExtras().get(\"data\");\r\n i1.setImageBitmap(b);\r\n\r\n }", "public boolean Drawable();", "private void toggleDrawable(TextView textView, boolean pressed){\n\n if(pressed){ // a textView Drawable is pressed\n\n if(mIncrement){\n\n //change the drawable on the textView\n //1st param is drawable we are to use for drawableLeft\n //2nd param is drawable to use for drawableTop\n //3rd param is drawable to use for drawableRight\n //4th param is drawable to use for drawableBottom\n //note that we are changing the drawable to be up_pressed for the drawableTop.\n textView.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.up_pressed, 0, R.drawable.down_normal);\n\n\n }\n if(mDecrement){\n\n //1st param is drawable we are to use for drawableLeft\n //2nd param is drawable to use for drawableTop\n //3rd param is drawable to use for drawableRight\n //4th param is drawable to use for drawableBottom\n //note that we are changing the drawable to be up_pressed for the drawableTop.\n textView.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.up_normal, 0, R.drawable.down_pressed);\n\n\n }\n\n }\n else{ // a textView Drawable is not pressed\n\n //1st param is drawable we are to use for drawableLeft\n //2nd param is drawable to use for drawableTop\n //3rd param is drawable to use for drawableRight\n //4th param is drawable to use for drawableBottom\n //note that we are changing the drawable to be up_pressed for the drawableTop.\n textView.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.up_normal, 0, R.drawable.down_normal);\n\n\n }\n }", "@Override\n\t\t\t\tpublic void onObtainBitmap(Bitmap bitmap, ImageView imageView) {\n\t\t\t\t\timageView.setImageBitmap(bitmap);\n\t\t\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tif(iconurl!=null){\n\t\t\tFile i = writeFromInput(getCacheDir().getAbsolutePath(),\n\t\t\t\t\t\"service_icon.jpg\", getInputStream(iconurl));\n\t\t\ttargeticon = Bytes2Bimap(DensityUtil.getBytes(i.getAbsolutePath()));}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\t BitmapDrawable dra=(BitmapDrawable) getResources().getDrawable(R.id.head_icon);\n\t\t\t\t targeticon=dra.getBitmap();\n\t\t\t\t}\n\t\t\t\n\t\t}", "public synchronized BitmapDrawable getExtralBitmapDrawable(String name, View loaderView) {\n\t\tif (null == name) {\n\t\t\treturn null;\n\t\t}\n\t\tFile sourceImg = getFile(name);\n\t\tif (!sourceImg.exists()) {\n\t\t\treturn null;\n\t\t}\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(sourceImg);\n\t\t} catch (Exception e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tif (null == fis) {\n\t\t\treturn null;\n\t\t}\n\t\tBitmapDrawable drawable = null;\n\t\t\n\t\ttry {\n\t\t\tint width = 0, height = 0;\n\t\t\tif ((null != loaderView) && (loaderView.getWidth() > 0)\n\t\t\t\t\t&& (loaderView.getHeight() > 0)) {\n\t\t\t\twidth = loaderView.getWidth();\n\t\t\t\theight = loaderView.getHeight();\n\t\t\t}else{\n//\t\t\t\twidth = RkGlobalParams.getInstance().getWidth();\n//\t\t\t\theight = RkGlobalParams.getInstance().getHeight();\n\t\t\t\twidth = 200;\n\t\t\t\theight = 200;\n\t\t\t}\n\t\t\tLog.i(\"getExtralBitmapDrawable method \", \"width=\"+width+\",height=\"+height);\n\t\t\tBitmap bitmap = null;\n\t\t\ttry {\n\t\t\t\tbitmap = decodeSampledBitmapFromDescriptor(fis.getFD(), width, height, this);\n//\t\t\t\tbitmap = BitmapFactory.decodeFileDescriptor(fis.getFD());\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tif (bitmap != null) {\n\t\t\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t\t\t\t\t// Running on Honeycomb or newer, so wrap in a standard\n\t\t\t\t\t// BitmapDrawable\n\t\t\t\t\tdrawable = new BitmapDrawable(mResource, bitmap);\n\t\t\t\t} else {\n\t\t\t\t\t// Running on Gingerbread or older, so wrap in a\n\t\t\t\t\t// RecyclingBitmapDrawable\n\t\t\t\t\t// which will recycle automagically\n\t\t\t\t\tdrawable = new RecyclingBitmapDrawable(mResource, bitmap);\n\t\t\t\t}\n\n\t\t\t\tif (drawable != null) {\n\t\t\t\t\tmMemoryCache.put(name, drawable);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n//\t\t\te.printStackTrace();\n\t\t}\n\t\treturn drawable;\n\t}", "public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }", "@Override\n\tpublic void setImageBitmap(Bitmap bm) {\n\t\tif (mImage==mOriginal) {\n\t\t\tmOriginal=null;\n\t\t} else {\n\t\t\tmOriginal.recycle();\n\t\t\tmOriginal=null;\n\t\t}\n\t\tif (mImage != null) {\n\t\t\tmImage.recycle();\n\t\t\tmImage=null;\n\t\t}\n\t\tmImage = bm;\n\t\tmOriginal = bm;\n\t\ttry{\n\t\tmImageHeight = mImage.getHeight();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tmImageHeight=0;\n\t\t}\n\t\tmImageWidth = mImage.getWidth();\n\t\tmAspect = (float)mImageWidth / mImageHeight;\n\t\tsetInitialImageBounds();\n\t}", "private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageView.setImageBitmap(bitmap);\n imageView.invalidate();\n }", "public Bitmap getBitmap(){\n return bitmap;\n }", "@Override\n public void onDraw(Canvas canvas) {\n if (mImage == null) {\n loadBitmap();\n }\n if (mImage != null) {\n float circleCenter = mWidth / 2;\n // draw the coloured circle\n canvas.drawCircle(circleCenter, circleCenter, circleCenter, mPaintBorder);\n // draw bitmap image inside outer circle, leaving a border\n canvas.drawCircle(circleCenter, circleCenter, circleCenter - mBorderWidth, mPaint);\n// canvas.drawRect(circleCenter - mWidth/2, circleCenter-mWidth/2, circleCenter+mWidth/2, circleCenter+mWidth/2, mPaint);\n }\n }", "public void mo5975l() {\n new C1292f(this.f5384D.getmImageView(), new int[]{R.drawable.iqoo_btn_play_15, R.drawable.iqoo_btn_play_14, R.drawable.iqoo_btn_play_13, R.drawable.iqoo_btn_play_12, R.drawable.iqoo_btn_play_11, R.drawable.iqoo_btn_play_10, R.drawable.iqoo_btn_play_9, R.drawable.iqoo_btn_play_8, R.drawable.iqoo_btn_play_7, R.drawable.iqoo_btn_play_6, R.drawable.iqoo_btn_play_5, R.drawable.iqoo_btn_play_4, R.drawable.iqoo_btn_play_3, R.drawable.iqoo_btn_play_2, R.drawable.iqoo_btn_play_1, R.drawable.iqoo_btn_play_0}, new int[]{3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3});\n }", "private BitmapDescriptor getMarkerIconFromDrawableForEducation() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_education);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "private static List<Drawable> bitmapsToDrawables(List<Bitmap> bitmaps) {\n final List<Drawable> drawables = new ArrayList<>(bitmaps.size());\n for (Bitmap bitmap : bitmaps) {\n if (bitmap != null) {\n drawables.add(new BitmapDrawable(null, bitmap));\n } else {\n drawables.add(null);\n }\n }\n return drawables;\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n BitmapDrawable background = new BitmapDrawable(loadedImage);\n ll.setBackgroundDrawable(background);\n }", "private Bitmap getMarkerBitmapFromView(View view) {\n view.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);\n view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());\n Bitmap returnedBitmap = Bitmap.createBitmap(view.getMeasuredWidth(), view.getMeasuredHeight(),\n Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(returnedBitmap);\n canvas.drawColor(Color.WHITE, PorterDuff.Mode.SRC_IN);\n Drawable drawable = view.getBackground();\n if (drawable != null)\n drawable.draw(canvas);\n view.draw(canvas);\n return returnedBitmap;\n }" ]
[ "0.7567307", "0.7115575", "0.6984701", "0.6978459", "0.6761855", "0.67304754", "0.67267954", "0.64731544", "0.6395113", "0.63746285", "0.62636167", "0.62513864", "0.6248196", "0.62369496", "0.6223979", "0.6214209", "0.6171827", "0.615463", "0.615045", "0.6145006", "0.61187446", "0.6117147", "0.6110741", "0.61092305", "0.60935056", "0.60827124", "0.60567", "0.59980476", "0.5926886", "0.5916532", "0.59154916", "0.5905616", "0.5898848", "0.5895922", "0.58924073", "0.58924073", "0.58839333", "0.5872974", "0.58375585", "0.5820175", "0.58152753", "0.5800554", "0.5785272", "0.5757719", "0.5757331", "0.57391053", "0.5739094", "0.5727592", "0.57275677", "0.57159805", "0.571178", "0.5688543", "0.5673223", "0.5647799", "0.56451476", "0.56439215", "0.5643839", "0.5615005", "0.56095153", "0.5603412", "0.55994093", "0.55976266", "0.5592891", "0.559013", "0.55817354", "0.5578264", "0.55732477", "0.5567527", "0.55657935", "0.5564675", "0.5560306", "0.5551238", "0.554904", "0.554028", "0.553769", "0.5529288", "0.5524757", "0.5521301", "0.55191314", "0.5513536", "0.5511738", "0.5509818", "0.55053484", "0.5501487", "0.55013824", "0.5499623", "0.5495486", "0.54950964", "0.5494465", "0.548576", "0.5480463", "0.5480084", "0.5470516", "0.5470188", "0.54572535", "0.54565686", "0.5449559", "0.544791", "0.54465204", "0.5436635", "0.54331344" ]
0.0
-1
metoda liczaca moment bezwladnosci wzgledem osi x
public double Ix() { double ix = 0; for(int i = 0;i < liczbaPunktow;i++) { ix = ix + A[i].getMasa() * (Math.pow((XYZC[1] - A[i].getPozY()),2) + Math.pow((XYZC[2] - A[i].getPozZ()),2)); } return ix; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.apache.xmlbeans.XmlDateTime xgetLastrun();", "public void setDateTrx (Timestamp DateTrx)\n{\nif (DateTrx == null) throw new IllegalArgumentException (\"DateTrx is mandatory\");\nset_Value (\"DateTrx\", DateTrx);\n}", "public void mo1972o() throws cf {\r\n }", "public abstract void aktualisiereZeitpunk(int momentanZeitpunkt);", "public Date getGioBatDau();", "public Timestamp getDateTrx();", "public Timestamp getDateTrx();", "void xsetLastrun(org.apache.xmlbeans.XmlDateTime lastrun);", "@Test\n public void testCalculerMoyenne() {\n\n System.out.println(\"calculerMoyenne\");\n Date date1 = new DateTime(2013, 1, 1, 0, 0).toDate();\n Date date2 = new DateTime(2013, 1, 6, 0, 0).toDate();\n\n POJOCompteItem instance = genererInstanceTest();\n try {\n instance.compte();\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n Integer expResult = null;\n Float result = instance.calculerMoyenne(date1, date2);\n\n if (!result.equals(new Float(2.6))) {\n fail(\"le résultat est 2.6\");\n }\n// assertEquals(expResult, result);\n System.out.println(\"MOY : \" + result);\n\n try {\n instance.calculerMoyenne(null, null);\n fail(\"devait lever une exeception\");\n } catch (Exception e) {\n }\n }", "public static void main(String[] args) {\n\t\tCalendar cl = Calendar.getInstance();\r\n\t\tSystem.out.println(\"lich hien tai :\"+cl.getTime());\r\n\t\tSystem.out.println(\"min cua year \"+cl.getActualMinimum(Calendar.YEAR));\r\n\t\tSystem.out.println(\"min cua month \"+cl.getActualMinimum(Calendar.MONTH));\r\n\t\tSystem.out.println(\"min cua cac tuan trong thang \"+cl.getActualMinimum(Calendar.WEEK_OF_MONTH));\r\n\t\tSystem.out.println(\"min cac tuan trong nam \"+cl.getActualMinimum(Calendar.WEEK_OF_YEAR));\r\n\t\tSystem.out.println(\"min cac ngay trong tuan \"+cl.getActualMinimum(Calendar.DAY_OF_WEEK));\r\n\t\tSystem.out.println(\"min date \"+cl.getActualMinimum(Calendar.DATE));\r\n\t\tSystem.out.println(\"min cua cac day trong Month \"+cl.getActualMinimum(Calendar.DAY_OF_MONTH));\r\n\t\tSystem.out.println(\"min cua cac day trong year \"+cl.getActualMinimum(Calendar.DAY_OF_YEAR));\r\n\t\tSystem.out.println(\"min cua minute \"+cl.getActualMinimum(Calendar.MINUTE));\r\n\t\tSystem.out.println(\"min cua hour \"+cl.getActualMinimum(Calendar.HOUR));\r\n\t\tSystem.out.println(\"min cua hour trong day \"+cl.getActualMinimum(Calendar.HOUR_OF_DAY));\r\n\t\tSystem.out.println(\"min cua second \"+cl.getActualMinimum(Calendar.SECOND));\r\n\t}", "public Timestamp getDateTrx() \n{\nreturn (Timestamp)get_Value(\"DateTrx\");\n}", "@Override\n public void date_()\n {\n }", "public void mo1970m() throws cf {\r\n }", "@Test\n\tpublic void testDate1() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(0);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1900);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "private Moment() {}", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "@Override\n public void date()\n {\n }", "public TelaInicial() {\n\n boolean expirou = false;\n if(new Date().after(new Date(2020 - 1900, Calendar.JULY, 31))){\n JOptionPane.showMessageDialog(this, \"Periodo de teste acabou.\");\n expirou = true;\n }\n initComponents(expirou);\n }", "private TimestampUtils(){}", "public abstract java.sql.Timestamp getFecha_ingreso();", "public void testOctaedre() {\n\t\t\t\n\t\t\tSolide i = Octaedre.octaedre();\n\t\t\t\n\t\t\t/* creation de points qui ont les memes coordonnees que ceux qui \n\t\t\t * constituent notre solide (car octaedre() n'a pas de parametres)\n\t\t\t */\n\t\t\t\n\t\t\tPoint p1 = new Point(-25, 0,-25);\n\t\t\tPoint p2 = new Point(-25, 0,25);\n\t\t\tPoint p3 = new Point(25, 0,-25);\n\t\t\tPoint p4 = new Point(25,0,25);\n\t\t\tfloat hauteur = (float) (50/Math.sqrt(2));\n\t\t\t// on se sert de la hauteur pour donnee les coordonees des sommets manquant\n\t\t\tPoint p5 = new Point(0, hauteur,0);\n\t\t\tPoint p6 = new Point(0,-hauteur,0);\n\t\t\t\n\t\t\t//On teste si les points de l'octaedre i sont bien les memes que ceux créés\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getAbscisse()==(p1.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(1).getAbscisse()==(p2.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(5).getAbscisse()==(p3.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(3).getAbscisse()==(p4.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(2).getAbscisse()==(p5.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(0).getAbscisse()==(p6.getAbscisse()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getOrdonnee()==(p1.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(1).getOrdonnee()==(p2.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(5).getOrdonnee()==(p3.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(3).getOrdonnee()==(p4.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(2).getOrdonnee()==(p5.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(0).getOrdonnee()==(p6.getOrdonnee()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getProfondeur()==(p1.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(1).getProfondeur()==(p2.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(5).getProfondeur()==(p3.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(3).getProfondeur()==(p4.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(2).getProfondeur()==(p5.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(0).getProfondeur()==(p6.getProfondeur()));\n\t\t\t\n\t\t\t//On teste si les faces de l'octaedre contiennent bien les points créés\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(0).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(1).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(2).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(3).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p6));\n\t\t\n\t\t\tassertTrue(i.getFaces().get(4).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(5).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(6).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(7).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p6));\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "public void setFechaExpedicion(String p) { this.fechaExpedicion = p; }", "public void setDateTrx (Timestamp DateTrx);", "public void setDateTrx (Timestamp DateTrx);", "public Computus(int x){\n year = x;\n }", "@Override\n\tpublic long translatePixelToTimestamp(int x) {\n\t\treturn 0;\n\t}", "private void xuLyThemSD(){\n if (checkNgay(txtNgaySD.getText())==false){\n JOptionPane.showMessageDialog(null, \"Ngày sử dụng phải thuộc dạng [YYYY-MM-DD].\\n Vui lòng kiểm tra lại!\");\n txtNgaySD.requestFocus();\n return;\n }//kiem tra ngay su dung\n \n if (checkGia(txtGiaDV.getText())==false){\n JOptionPane.showMessageDialog(null, \"Ngày sử dụng phải là ký tự số.\\n Vui lòng kiểm tra lại!\");\n txtGiaDV.requestFocus();\n return;\n }//kiem tra gia dich vu\n \n \n SuDungService suDungService = new SuDungService();\n int x = suDungService.themSuDung(cbbMaDV.getSelectedItem().toString(),\n cbbMaKH.getSelectedItem().toString(),\n txtNgaySD.getText(), Float.valueOf(txtGiaDV.getText()));\n \n if (x>0){\n hienThiSuDung();\n JOptionPane.showMessageDialog(null, \"Đã thêm!\");\n }else{\n JOptionPane.showMessageDialog(null, \"Thêm thất bại!\");\n cbbMaDV.requestFocus();\n return;\n }\n }", "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "private ARXDate() {\r\n this(\"Default\");\r\n }", "public double x() { return _x; }", "@Test\t\t\n\t public void testSystem() {\n\t Date expected = new SystemTimeSource().getTimeMoment();\n\t\t Date actual = new Date();\n\t assertEquals(actual, expected);\n\t }", "void mo1970b();", "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}", "public java.sql.Timestamp getDia_especifico();", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}", "public void mo1964g() throws cf {\r\n }", "public ExceptionDate(){\n\t\tsuper();\n\t}", "public Date getFechaHasta()\r\n/* 174: */ {\r\n/* 175:302 */ return this.fechaHasta;\r\n/* 176: */ }", "public double x() {return _x;}", "@Override\n\tpublic java.util.Date getNgayXuatBan() {\n\t\treturn _keHoachKiemDemNuoc.getNgayXuatBan();\n\t}", "float getMonatl_kosten();", "@Test\n public void testDetecterCompteSousMoyenne() {\n// System.out.println(\"detecterAnomalieParrapportAuSeuil\");\n Integer seuil = 30;\n POJOCompteItem instance = genererInstanceTest();\n\n try {\n instance.compte();\n instance.calculerMoyenne(new DateTime(2013, 1, 1, 0, 0).toDate(), new DateTime(2013, 1, 6, 0, 0).toDate());\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n// List expResult = null;\n Map<Date, Integer> result = instance.detecterAnomalieParrapportAuSeuil(seuil);\n\n if (result.size() != 3) {\n fail(\"on attend 3 résultats\");\n }\n\n\n try { // On tente de faire le calcul avec une valeur null doit lever une NullPointerException\n instance.detecterAnomalieParrapportAuSeuil(null);\n fail(\"devait lancer une exception\");\n } catch (Exception e) {\n if (!e.getClass().equals(NullPointerException.class)) {\n fail(\"devait lever une NullPointerException\");\n }\n }\n }", "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}", "public Date () throws CGException {\n try {\n setSentinel();\n }\n catch (Exception e){\n\n e.printStackTrace(System.out);\n System.out.println(e.getMessage());\n }\n }", "private CreateDateUtils()\r\n\t{\r\n\t}", "public void mo1976s() throws cf {\r\n }", "public SIPDate(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: gov.nist.javax.sip.header.SIPDate.<init>(long):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.<init>(long):void\");\n }", "public Mencacao()\r\n {\r\n texto = \"\";\r\n deUtilizador = \"\";\r\n data = new GregorianCalendar();\r\n }", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "public TemperaturaErradaExcepcion(){\r\n super(\"mensaxe por defecto:temperatura ten que ser naior que 80ºC\");//mensaxe por defecto\r\n }", "public final boolean isCompatibleWith (Unit unit) {\n\t\tif (((unit.mksa|this.mksa)&_abs) != 0) \t\t// Special dates\n\t\t\treturn((this.mksa^_abs) == unit.mksa) ;\n\t\treturn((mksa&(~(_log|_mag))) == (unit.mksa&(~(_log|_mag)))) ;\n\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "public abstract java.lang.String getFecha_inicio();", "@Test\r\n public void getDateValue() throws Exception {\r\n assertEquals(dt1,point1.getDateValue());\r\n assertEquals(dt2,point2.getDateValue());\r\n assertEquals(dt3,point3.getDateValue());\r\n assertEquals(dt4,point4.getDateValue());\r\n }", "@Test\n\tpublic void testLecturaFrom(){\n\t\tassertEquals(esquemaEsperado.getExpresionesFrom().toString(), esquemaReal.getExpresionesFrom().toString());\n\t}", "public java.util.Calendar getFechaSolicitud(){\n return localFechaSolicitud;\n }", "public Date obterHrEnt1Turno(){\n \ttxtHrEnt1Turno.setEditable(true);\n txtHrSai1Turno.setEditable(false);\n txtHrEnt2Turno.setEditable(false);\n txtHrSai2Turno.setEditable(false);\n \ttxtHrEnt1TurnoExt.setEditable(false);\n txtHrSai1TurnoExt.setEditable(false);\n txtHrEnt2TurnoExt.setEditable(false);\n txtHrSai2TurnoExt.setEditable(false);\n\n return new Date();\n }", "public Date getFechaDesde()\r\n/* 164: */ {\r\n/* 165:283 */ return this.fechaDesde;\r\n/* 166: */ }", "public Date generarFechaSolicitudGarantia() {\r\n return new Date();\r\n }", "@Test\n public void testCalculerValeurLot() {\n double superficie = 456.0;\n double prixMin = 4.32;\n double expResult = 1969.95;\n double result = CalculAgricole.calculerValeurLot(superficie, prixMin);\n assertEquals(\"Montant pour la Valeur du Lot n'était pas correct.\", expResult, result, 0);\n }", "@Test(timeout = 4000)\n public void test318() throws Throwable {\n Form form0 = new Form(\"w\");\n // Undeclared exception!\n try { \n form0.dateFormat(\"? fOYd~2\", form0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Failed to initialize SimpleDateFormat with pattern '? fOYd~2'.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }", "@Test\n\tpublic void getTheCurrentDateSystem() {\n\t\tAssert.assertNotNull(\"The actual date is returned in the expected format \",\n\t\t\t\tTimeMilisecondHelper.fromMilisecondsToDate());\n\t}", "public void mo1963f() throws cf {\r\n }", "@Test\n\tpublic void testdeveAtualizarUmDocumentoDoBanco() {\n\t\tdouble d = documentoDao.updateDocumento(deveAlterarDocumentoExistente());\n\t\tAssert.assertEquals(1, d, 0.0001);\t\n\t}", "Period mo20733e();", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public void enviarConviteExame(LocalDate dataExame) {\n }", "@Override\n public void jornadaTrabalho(int x) {\n DateTimeFormatter formatoData = DateTimeFormatter.ofPattern(\"HH:mm\");\n \n if (x == 40) {\n // Jornada de Trabalho PADRÃO 40h\n entrada1 = LocalTime.of(8, 0);\n saida1 = LocalTime.of(12, 0);\n entrada2 = LocalTime.of(14, 0);\n saida2 = LocalTime.of(18, 0);\n cbxJornada.setSelectedIndex(1);\n jornada = 40;\n } else if (x == 44) {\n // Jornada de Trabalho PADRÃO 44h\n entrada1 = LocalTime.of(7, 0, 0);\n saida1 = LocalTime.of(12, 0, 0);\n entrada2 = LocalTime.of(14, 0, 0);\n saida2 = LocalTime.of(18, 0, 0);\n cbxJornada.setSelectedIndex(2);\n jornada = 44;\n }\n //Popula os campos de horas\n txtEntrada1.setText(entrada1.format(formatoData));\n txtSaida1.setText(saida1.format(formatoData));\n txtEntrada2.setText(entrada2.format(formatoData));\n txtSaida2.setText(saida2.format(formatoData));\n }", "public static void main(String[] args) {\n\t\tint x = 3;\n\t\tint potega = 2;\n\t\t\n\t\t\n\t\t//wiekszosc metod bazuje na wewnetrznych polach klasy.\n\t\t//np klasa liczba ma wartosc (podawana w konstruktorze)\n\t\t//metoda PodniesDoPotegi operuje na polu 'wartosc' i podnosi ja do potegi, a nastepnie zwraca wynik\n\t\t//(mozna wyobrazic sobie tez taka metode ktora nie zwraca wyniku tylko zmianie pole 'wartosc' podnoszac je do potegi\n\t\tLiczba liczba = new Liczba(x);\n\t\tint liczbaPodniesionaDoPotegi = liczba.PodniesDoPotegi(potega);\n\t\t\n\t\t//niektore metody dzialaja niezależnie od klas.\n\t\t//np metoda statyczna PodniesDoPotegi pobiera liczbe ktora ma być podniesiona oraz potege.\n\t\t//nie używa ona w swoim ciele żadnych nie statycznych metod ani pol\n\t\t liczbaPodniesionaDoPotegi = Liczba.PodniesDoPotegi(x, potega);\n\t\t\n\t\t //taka metode można przenieść do dowolnej klasy i tez bedzie dzialać, dlatego ze nie jest ona zależna od obiektow klasy.\n\t\t//np:\n\t\t liczbaPodniesionaDoPotegi = ABC.PodniesDoPotegi(x, potega);\n\t\t\n\t\t //funkcje statyczne moga uzywac pol i metod STATYCZNYCH\n\t\t // NP:\n\t\t\n\t\tint maxValue = Liczba.MaxValue();\n\t\t\n\t\t//przykład uzycia wzorca projektowego singleton\n\t\tMySingleton mysingleton = MySingleton.GetInstance();\n\t\tmysingleton.doSemethink();\n\t\t\n\t\tMySingleton mysingleton2 = MySingleton.GetInstance();\n\t\t\n\t\t//mysingleton i mysingleton2 pokazuje na ten sam obiekt;\n\t\t\n\t}", "public void test_fn_current_date_19() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-19.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-19.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "private BusinessDateUtility() {\n\t}", "@Test\n\tpublic void testDeveFalharAtualizarUmDocumentoDoBanco() {\n\t\tdouble d = documentoDao.updateDocumento(deveFalharAlterarDocumentoExistente());\n\t\tAssert.assertEquals(0, d, 0.0001);\t\n\t}", "public java.util.Date getNotBefore() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getNotBefore():java.util.Date, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getNotBefore():java.util.Date\");\n }", "public Geotemporal() {\n }", "@Override\r\n\tpublic void salarioAtual() {\n\t\tSystem.out.print(\"VALOR ATUAL\"+this.valor);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(System.currentTimeMillis()); // Quantos Milisegundos desde data 01/01/1970\n\t\t\n\t\t// Data Atual\n\t\tDate agora = new Date();\n\t\tSystem.out.println(\"Data Atual: \"+agora);\n\t\t\n\t\tDate data = new Date(1_000_000_000_000L);\n\t\tSystem.out.println(\"Data com 1.000.000.000.000ms: \"+data);\n\t\t\n\t\t// METODOS\n\t\tdata.getTime();\n\t\tdata.setTime(1_000_000_000_000L);\n\t\tSystem.out.println(data.compareTo(agora)); // -1 para anterior, 0 para igual, +1 para posterior\n\t\t\n\t\t// GregorianCalendar\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.set(1980, Calendar.FEBRUARY, 12);\n\t\tSystem.out.println(c.getTime());\n\t\tSystem.out.println(c.get(Calendar.YEAR)); // Ano\n\t\tSystem.out.println(c.get(Calendar.MONTH)); // Mes 0 - 11\n\t\tSystem.out.println(c.get(Calendar.DAY_OF_MONTH)); // Dia do mes\n\t\t\n\t\tc.set(Calendar.YEAR,2016); // Altera o Ano\n\t\tc.set(Calendar.MONTH, 10); // Altera o Mes 0 - 11\n\t\tc.set(Calendar.DAY_OF_MONTH, 24); // Altera o Dia do mes\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.clear(Calendar.MINUTE); // limpa minutos\n\t\tc.clear(Calendar.SECOND); // limpa segundos\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.add(Calendar.DAY_OF_MONTH,1); // adiciona dias (avança o mes e ano)\n\t\tc.add(Calendar.YEAR,1); // adiciona o ano \n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.roll(Calendar.DAY_OF_MONTH,20); // adiciona dias (não avança o mes e ano)\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\t// Saudação com Bom dia, Boa arde ou Boa noite\n\t\tCalendar c1 = Calendar.getInstance();\n\t\tint hora = c1.get(Calendar.HOUR_OF_DAY);\n\t\tSystem.out.println(hora);\n\t\tif(hora <= 12){\n\t\t\tSystem.out.println(\"Bom Dia\");\n\t\t} else if(hora > 12 && hora < 18){\n\t\t\tSystem.out.println(\"Boa Tarde\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Boa Noite\");\n\t\t}\n\t\t\n\n\t}", "public void xuat() {\n\n\t}", "private String tilStandardDatostreng(Calendar c)\n {\n return c.get(Calendar.DATE) + \"/\" + (c.get(Calendar.MONTH) + 1) + \"/\" + c.get(Calendar.YEAR);\n }", "public void test_fn_current_date_3() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-3.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-3.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n Date expectedDate = new Date();\n DateFormat expectedFormat = new SimpleDateFormat(\"MM\");\n \n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", Integer.valueOf(expectedFormat.format(expectedDate)).toString(), actual);\n \n }", "private void affichageDateFin() {\r\n\t\tif (dateFinComptage!=null){\r\n\t\t\tSystem.out.println(\"Le comptage est clos depuis le \"+ DateUtils.format(dateFinComptage));\r\n\t\t\tif (nbElements==0){\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos mais n'a pas d'éléments. Le comptage est en anomalie.\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos et est OK.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Le compte est actif.\");\r\n\t\t}\r\n\t}", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0a() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0a,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8h. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "org.apache.xmlbeans.XmlDateTime xgetNextrun();", "double getSalario();", "private DateUtil() {\n\t}", "private DateUtil() {\n\t}", "@Test\n\tpublic void testDate4() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36161);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 2);\n\t\t\t// month is 0 indexed, so Jan is 0\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public abstract double getCarbon();", "@Override\n public void iCGDer(int icgAbsDer, int timestamp) {\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private static String fechaMod(File imagen) {\n\t\tlong tiempo = imagen.lastModified();\n\t\tDate d = new Date(tiempo);\n\t\tCalendar c = new GregorianCalendar();\n\t\tc.setTime(d);\n\t\tString dia = Integer.toString(c.get(Calendar.DATE));\n\t\tString mes = Integer.toString(c.get(Calendar.MONTH));\n\t\tString anyo = Integer.toString(c.get(Calendar.YEAR));\n\t\tString hora = Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\tString minuto = Integer.toString(c.get(Calendar.MINUTE));\n\t\tString segundo = Integer.toString(c.get(Calendar.SECOND));\n\t\treturn hora+\":\"+minuto+\":\"+segundo+\" - \"+ dia+\"/\"+mes+\"/\"+\n\t\tanyo;\n\t}", "private GuessDate(){\n }", "@Override\n\tpublic boolean ate() {\n\t\treturn false;\n\t}", "public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }", "public void test_fn_current_date_4() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-4.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-4.txt\";\n String expectedResult = getExpectedResult(resultFile);\n Calendar cal = null;\n \n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n\t cal = dc.current_date_time();\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n assertEquals(\"XPath Result Error \" + xqFile + \":\", Integer.toString(cal.get(Calendar.DAY_OF_MONTH)), actual);\n \n \n }", "public void test_fn_current_date_9() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-9.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-9.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "public Relogio()\n\t{\n \n\t\thora = 0;\n\t\tminuto = 0;\n\t\tsegundo = 0;\n //forma.format(hora);\n if((hora<0 || hora>23) || (minuto<0 || minuto>59) || (segundo<0 || segundo>59)){\n System.out.println(\"Valor de tempo invalido!\");\n }\n\t}", "@Test\r\n\t\tpublic void testMovimientoTorreNegra0() {\r\n\t\t \r\n\t\t\tDatosPrueba prueba = new DatosPrueba(torreNegra0,\r\n\t\t\t\t\t\"Error al comprobar los movimientos del rey negro en el inicio de una aprtida en la posición 8a. \");\r\n\t\t\tboolean res = this.testMovimientos(prueba); \r\n\t\t\tassertTrue(prueba.getMensaje(), res);\r\n\t\t \r\n\t\t}", "public void test_fn_current_date_13() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-13.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-13.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }" ]
[ "0.5721047", "0.55460423", "0.55141664", "0.5510648", "0.5498651", "0.54898036", "0.54898036", "0.5474941", "0.5426328", "0.5412261", "0.5409354", "0.53760046", "0.5347921", "0.5330664", "0.53072214", "0.52821827", "0.52563614", "0.52493703", "0.5236319", "0.5234787", "0.5219908", "0.52195317", "0.52168405", "0.5207536", "0.5207536", "0.5206619", "0.51997656", "0.519798", "0.5193941", "0.5185048", "0.51824385", "0.5170641", "0.5154858", "0.5153506", "0.5147126", "0.5145214", "0.514393", "0.5140347", "0.5139846", "0.5137155", "0.5132688", "0.51259756", "0.5123346", "0.5121775", "0.51216644", "0.5115505", "0.5112957", "0.51057893", "0.50919724", "0.50904506", "0.508101", "0.50690895", "0.50603265", "0.505977", "0.50560653", "0.5055671", "0.5052967", "0.50510615", "0.5048783", "0.5047039", "0.50435406", "0.5043218", "0.50428414", "0.5042002", "0.5040488", "0.5038932", "0.5037646", "0.5035525", "0.50325346", "0.50304204", "0.5025044", "0.5023674", "0.5022611", "0.501961", "0.50168097", "0.50152737", "0.50131696", "0.5005811", "0.5003535", "0.5003416", "0.5000829", "0.49994853", "0.4997715", "0.4997263", "0.49886197", "0.49866676", "0.49850634", "0.49850634", "0.49846685", "0.49826512", "0.49776816", "0.49742043", "0.49738225", "0.49578786", "0.4956389", "0.49515602", "0.49490613", "0.49484482", "0.49483323", "0.4947607", "0.49449387" ]
0.0
-1
metoda liczaca moment bezwladnosci wzgledem osi y
public double Iy() { double iy = 0; for(int i = 0;i < liczbaPunktow;i++) { iy = iy + A[i].getMasa() * (Math.pow((XYZC[0] - A[i].getPozX()),2) + Math.pow((XYZC[2] - A[i].getPozZ()),2)); } return iy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "public abstract void aktualisiereZeitpunk(int momentanZeitpunkt);", "private Moment() {}", "public TelaInicial() {\n\n boolean expirou = false;\n if(new Date().after(new Date(2020 - 1900, Calendar.JULY, 31))){\n JOptionPane.showMessageDialog(this, \"Periodo de teste acabou.\");\n expirou = true;\n }\n initComponents(expirou);\n }", "public Date getGioBatDau();", "public Mencacao()\r\n {\r\n texto = \"\";\r\n deUtilizador = \"\";\r\n data = new GregorianCalendar();\r\n }", "public Date getFechaHasta()\r\n/* 174: */ {\r\n/* 175:302 */ return this.fechaHasta;\r\n/* 176: */ }", "public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }", "public java.util.Calendar getFechaSolicitud(){\n return localFechaSolicitud;\n }", "public abstract java.lang.String getFecha_inicio();", "public int jogadorAtual() {\n return vez;\n }", "public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}", "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}", "public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }", "public Date generarFechaSolicitudGarantia() {\r\n return new Date();\r\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private static String fechaMod(File imagen) {\n\t\tlong tiempo = imagen.lastModified();\n\t\tDate d = new Date(tiempo);\n\t\tCalendar c = new GregorianCalendar();\n\t\tc.setTime(d);\n\t\tString dia = Integer.toString(c.get(Calendar.DATE));\n\t\tString mes = Integer.toString(c.get(Calendar.MONTH));\n\t\tString anyo = Integer.toString(c.get(Calendar.YEAR));\n\t\tString hora = Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\tString minuto = Integer.toString(c.get(Calendar.MINUTE));\n\t\tString segundo = Integer.toString(c.get(Calendar.SECOND));\n\t\treturn hora+\":\"+minuto+\":\"+segundo+\" - \"+ dia+\"/\"+mes+\"/\"+\n\t\tanyo;\n\t}", "public abstract java.sql.Timestamp getFecha_ingreso();", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "@Override\n\tpublic void initDate() {\n\n\t}", "private GuessDate(){\n }", "public Relogio()\n\t{\n \n\t\thora = 0;\n\t\tminuto = 0;\n\t\tsegundo = 0;\n //forma.format(hora);\n if((hora<0 || hora>23) || (minuto<0 || minuto>59) || (segundo<0 || segundo>59)){\n System.out.println(\"Valor de tempo invalido!\");\n }\n\t}", "public Date getFechaDesde()\r\n/* 164: */ {\r\n/* 165:283 */ return this.fechaDesde;\r\n/* 166: */ }", "@Override\n public void date_()\n {\n }", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "public java.sql.Timestamp getDia_especifico();", "@RequiresApi(api = Build.VERSION_CODES.O)\n private String obtenerSegundos(){\n try{\n this.minutos = java.time.LocalDateTime.now().toString().substring(17,19);\n }catch (StringIndexOutOfBoundsException sioobe){\n this.segundos = \"00\";\n }\n return this.minutos;\n }", "private void inicializarFechaHora(){\n Calendar c = Calendar.getInstance();\r\n year1 = c.get(Calendar.YEAR);\r\n month1 = (c.get(Calendar.MONTH)+1);\r\n String mes1 = month1 < 10 ? \"0\"+month1 : \"\" +month1;\r\n String dia1 = \"01\";\r\n\r\n String date1 = \"\"+dia1+\"/\"+mes1+\"/\"+year1;\r\n txt_fecha_desde.setText(date1);\r\n\r\n\r\n day2 = c.getActualMaximum(Calendar.DAY_OF_MONTH) ;\r\n String date2 = \"\"+day2+\"/\"+mes1+\"/\"+ year1;\r\n\r\n Log.e(TAG,\"date2: \" + date2 );\r\n txt_fecha_hasta.setText(date2);\r\n\r\n }", "private void affichageDateFin() {\r\n\t\tif (dateFinComptage!=null){\r\n\t\t\tSystem.out.println(\"Le comptage est clos depuis le \"+ DateUtils.format(dateFinComptage));\r\n\t\t\tif (nbElements==0){\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos mais n'a pas d'éléments. Le comptage est en anomalie.\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos et est OK.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Le compte est actif.\");\r\n\t\t}\r\n\t}", "@Override\n public void date()\n {\n }", "public Date obterHrEnt1Turno(){\n \ttxtHrEnt1Turno.setEditable(true);\n txtHrSai1Turno.setEditable(false);\n txtHrEnt2Turno.setEditable(false);\n txtHrSai2Turno.setEditable(false);\n \ttxtHrEnt1TurnoExt.setEditable(false);\n txtHrSai1TurnoExt.setEditable(false);\n txtHrEnt2TurnoExt.setEditable(false);\n txtHrSai2TurnoExt.setEditable(false);\n\n return new Date();\n }", "private boolean validaFechasPrimerDiaLaboral(int indice,boolean isSol, int CodEmp, int CodLoc){\n boolean blnRes=false;\n try{\n if(objTblMod.getValueAt(indice, INT_TBL_DAT_EST_FAC_PRI_DIA_LAB).toString().equals(\"S\")){\n if(isSol){\n if(getFechaLab(CodEmp,CodLoc).equals(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString())){\n blnRes=true;\n }\n //strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n else{\n if(getFechaLab(CodEmp,CodLoc).equals(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString())){\n blnRes=true;\n }\n //strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n }\n else{\n blnRes=true;\n }\n \n } \n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = new DisplayDosDigitos(100);\n }", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "public abstract java.lang.String getFecha_termino();", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public TelaEntradaProduto() {\n initComponents();\n data = new Date(System.currentTimeMillis());\n SimpleDateFormat formatador = new SimpleDateFormat(\"dd/MM/yyyy\");\n JTFdata.setText(formatador.format(data));\n }", "public void mo1972o() throws cf {\r\n }", "@Test\n public void deveDevolverNaSegundaAoAlugarNoSabado() throws Exception {\n\t Usuario usuario = umUsuario().agora();\n\t List<Filme> filmes = Arrays.asList(umFilme().agora());\n\n //PowerMockito.whenNew(Date.class).withNoArguments().thenReturn(DataUtils.obterData(29, 4, 2017));\n /*Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.DAY_OF_MONTH, 29);\n calendar.set(Calendar.MONTH, Calendar.APRIL);\n calendar.set(Calendar.YEAR, 2017);\n PowerMockito.mockStatic(Calendar.class);\n PowerMockito.when(Calendar.getInstance()).thenReturn(calendar);*/\n\n Mockito.doReturn(DataUtils.obterData(29,4,2017)).when(service).obterData();\n\n\t //acao\n Locacao retorno = service.alugarFilme(usuario, filmes);\n\n //verificacao\n //boolean ehSegunda = DataUtils.verificarDiaSemana(retorno.getDataRetorno(), Calendar.MONDAY);\n //assertTrue(ehSegunda);\n assertThat(retorno.getDataRetorno(), caiNumaSegunda());\n //PowerMockito.verifyNew(Date.class, Mockito.times(2)).withNoArguments();\n\n //PowerMockito.verifyStatic(Mockito.times(2));\n //Calendar.getInstance();\n\n\n }", "@Override\n\tpublic boolean ate() {\n\t\treturn false;\n\t}", "@Test\n\tpublic void testSetFecha2(){\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(2);\n\t\tassertFalse(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "private UsineJoueur() {}", "@Override\r\n\tpublic void salarioAtual() {\n\t\tSystem.out.print(\"VALOR ATUAL\"+this.valor);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tCalendar now = Calendar.getInstance();\r\n\t\tint hour = now.get(Calendar.HOUR_OF_DAY);\r\n\t\tint minute = now.get(Calendar.MINUTE);\r\n\t\tint month = now.get(Calendar.MONTH + 1);\r\n\t\tint day = now.get(Calendar.DAY_OF_MONTH);\r\n\t\tint year = now.get(Calendar.YEAR);\r\n\r\n\t\tSystem.out.println(now.getTime());\r\n\r\n\t\t// Crear una fecha fija\r\n\t\tCalendar sameDate = new GregorianCalendar(2010, Calendar.FEBRUARY, 22, 23, 11, 44);\r\n\r\n\t\t// mostrar los agradecimientos\r\n\t\tif (hour < 12)\r\n\t\t\tSystem.out.println(\"Buenos días. \\n\");\r\n\t\telse if (hour < 17)\r\n\t\t\tSystem.out.println(\"Buenas tardes. \\n\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Buenas noches charAt(\\n)\");\r\n\r\n\t\t// Mostrar minutos\r\n\t\tSystem.out.println(\"It is\");\r\n\t\tif (minute != 0) {\r\n\t\t\tSystem.out.print(\" \" + minute + \" \");\r\n\t\t\tSystem.out.print((minute != 1) ? \"minutes\" : \"minute\");\r\n\t\t\tSystem.out.print(\" past\");\r\n\t\t}\r\n\t\t// Mostrar la hora\r\n\t\tSystem.out.print(\" \");\r\n\t\tSystem.out.print((hour > 12) ? (hour - 12) : hour);\r\n\t\tSystem.out.print(\" o'clock on \\n\");\r\n\r\n\t\t// Mostrar el mes\r\n\r\n\t\tSystem.out.print(\"Estamos en el mes de: \");\r\n\t\tswitch (month) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"Enero\");\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Febrero\");\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Marzo\");\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"Abril\");\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tSystem.out.println(\"Mayo\");\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tSystem.out.println(\"Junio\");\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tSystem.out.println(\"Julio\");\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tSystem.out.println(\"Agosto\");\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tSystem.out.println(\"Septiembre\");\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tSystem.out.println(\"Octubre\");\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tSystem.out.println(\"Noviembre\");\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tSystem.out.println(\"Diciembre\");\r\n\r\n\t\t}\r\n\t}", "public void fechahoy(){\n Date fecha = new Date();\n \n Calendar c1 = Calendar.getInstance();\n Calendar c2 = new GregorianCalendar();\n \n String dia = Integer.toString(c1.get(Calendar.DATE));\n String mes = Integer.toString(c2.get(Calendar.MONTH));\n int mm = Integer.parseInt(mes);\n int nmes = mm +1;\n String memes = String.valueOf(nmes);\n if (nmes < 10) {\n memes = \"0\"+memes;\n }\n String anio = Integer.toString(c1.get(Calendar.YEAR));\n \n String fechoy = anio+\"-\"+memes+\"-\"+dia;\n \n txtFecha.setText(fechoy);\n \n }", "private void zeitGeber() {\n GregorianCalendar datum = new GregorianCalendar();\n stunden = datum.get(Calendar.HOUR_OF_DAY);\n minuten = datum.get(Calendar.MINUTE);\n sekunden = datum.get(Calendar.SECOND);\n inform();\n }", "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "public static void main(String[] args) {\n\t\tCalendar cl = Calendar.getInstance();\r\n\t\tSystem.out.println(\"lich hien tai :\"+cl.getTime());\r\n\t\tSystem.out.println(\"min cua year \"+cl.getActualMinimum(Calendar.YEAR));\r\n\t\tSystem.out.println(\"min cua month \"+cl.getActualMinimum(Calendar.MONTH));\r\n\t\tSystem.out.println(\"min cua cac tuan trong thang \"+cl.getActualMinimum(Calendar.WEEK_OF_MONTH));\r\n\t\tSystem.out.println(\"min cac tuan trong nam \"+cl.getActualMinimum(Calendar.WEEK_OF_YEAR));\r\n\t\tSystem.out.println(\"min cac ngay trong tuan \"+cl.getActualMinimum(Calendar.DAY_OF_WEEK));\r\n\t\tSystem.out.println(\"min date \"+cl.getActualMinimum(Calendar.DATE));\r\n\t\tSystem.out.println(\"min cua cac day trong Month \"+cl.getActualMinimum(Calendar.DAY_OF_MONTH));\r\n\t\tSystem.out.println(\"min cua cac day trong year \"+cl.getActualMinimum(Calendar.DAY_OF_YEAR));\r\n\t\tSystem.out.println(\"min cua minute \"+cl.getActualMinimum(Calendar.MINUTE));\r\n\t\tSystem.out.println(\"min cua hour \"+cl.getActualMinimum(Calendar.HOUR));\r\n\t\tSystem.out.println(\"min cua hour trong day \"+cl.getActualMinimum(Calendar.HOUR_OF_DAY));\r\n\t\tSystem.out.println(\"min cua second \"+cl.getActualMinimum(Calendar.SECOND));\r\n\t}", "private String leerFecha() {\n\t\ttry {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYY/MM/dd\");\n\t\t\treturn sdf.format(txtFecha.getDate());\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Seleccione una fecha válida\", \"Aviso\", 2);\n\t\t\treturn null;\n\t\t}\n\t}", "public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}", "public Date getCreacion() {\r\n return creacion;\r\n }", "public void setGioBatDau(Date gioBatDau);", "public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }", "public void actualiser(){\n try{\n \t\n /* Memo des variables : horaireDepart tableau de string contenant l'heure de depart entree par l'user\n * heure = heure saisie castee en int, minutes = minutes saisie castee en Integer\n * tpsRest = tableau de string contenant la duree du cours en heure entree par l'user\n * minutage = format minutes horaire = format heure, ils servent a formater les deux variables currentTime qui recuperent l'heure en ms\n * tempsrestant = variable calculant le temps restant en minutes, heurerestante = variable calculant le nombre d'heure restantes\n * heureDuree = duree du cours totale en int minutesDuree = duree totale du cours en minute\n * tempsfinal = temps restant reel en prenant en compte la duree du cours\n * angle = temps radian engleu = temps en toDegrees\n */\n String[] horaireDepart = Reader.read(saisie.getText(), this.p, \"\\\\ \");\n \n //on check si le pattern est bon et si l'utilisateur n'est pas un tard\n if(Reader.isHour(horaireDepart)){\n \t\n int heure = Integer.parseInt(horaireDepart[0]);\n int minutes = Integer.parseInt(horaireDepart[2]);\n minutes += (heure*60);\n String[] tpsrest = Reader.read(format.getText(), this.p, \"\\\\ \");\n \n //conversion de la saisie en SimpleDateFormat pour les calculs\n SimpleDateFormat minutage = new SimpleDateFormat (\"mm\");\n SimpleDateFormat Horaire = new SimpleDateFormat (\"HH\");\n \n //recupere l'heure en ms\n Date currentTime_1 = new Date(System.currentTimeMillis());\n Date currentTime_2 = new Date(System.currentTimeMillis());\n \n //cast en int pour les calculs\n int tempsrestant = Integer.parseInt(minutage.format(currentTime_1));\n int heurerestante = Integer.parseInt(Horaire.format(currentTime_2))*60;\n tempsrestant += heurerestante;\n \n //pareil mais pour la duree\n if(Reader.isHour(tpsrest)){\n int heureDuree = Integer.parseInt(tpsrest[0]);\n int minutesDuree = Integer.parseInt(tpsrest[2]);\n minutesDuree += (heureDuree*60);\n tempsrestant -= minutes;\n int tempsfinal = minutesDuree - tempsrestant;\n \n //conversion du temps en angle pour l'afficher \n double angle = ((double)tempsfinal*2/(double)minutesDuree)*Math.PI;\n int engleu = 360 - (int)Math.toDegrees(angle);\n for(int i = 0; i < engleu; i++){\n this.panne.dessineLine(getGraphics(), i);\n }\n \n //conversion du temps en pi radiant pour l'affichage\n if(tempsfinal < minutesDuree){\n tempsfinal *= 2;\n for(int i = minutesDuree; i > 1; i--){\n if(tempsfinal % i == 0 && minutesDuree % i == 0){\n tempsfinal /= i;\n minutesDuree /= i;\n }\n }\n }\n \n //update l'affichage\n this.resultat.setText(tempsfinal + \"/\" + minutesDuree + \"π radiant\");\n this.resultat.update(this.resultat.getGraphics());\n }\n }\n }catch(FormatSaisieException fse){\n this.resultat.setText(fse.errMsg(this.p.toString()));\n }\n }", "public void setFechaCompra() {\n LocalDate fecha=LocalDate.now();\n this.fechaCompra = fecha;\n }", "public Date getFechaNacimiento()\r\n/* 133: */ {\r\n/* 134:242 */ return this.fechaNacimiento;\r\n/* 135: */ }", "public void setFechaExpedicion(String p) { this.fechaExpedicion = p; }", "@Test\t\t\n\t public void testSystem() {\n\t Date expected = new SystemTimeSource().getTimeMoment();\n\t\t Date actual = new Date();\n\t assertEquals(actual, expected);\n\t }", "@Test\n\tpublic void getTheCurrentDateSystem() {\n\t\tAssert.assertNotNull(\"The actual date is returned in the expected format \",\n\t\t\t\tTimeMilisecondHelper.fromMilisecondsToDate());\n\t}", "@Test\n\tpublic void testSetFecha8(){\n\t\tPlataforma.closePlataforma();\n\t\t\n\t\tfile = new File(\"./data/plataforma\");\n\t\tfile.delete();\n\t\tPlataforma.openPlataforma();\n\t\tPlataforma.login(\"1\", \"contraseniaprofe\");\n\t\t\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(5));\n\t\tej1.enPlazo();\n\t\t\n\t\tassertEquals(ej1.getEstado(), EstadoEjercicio.TERMINADO);\n\t\t\t\t\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(6);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(10);\n\t\tassertFalse(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "@Test\n\tpublic void deveAlugarFilme() throws Exception {\n\t\tUsuario usuario = umUsuario().agora();\n\t\tList<Filme> filmes = Arrays.asList(umFilme().comValor(5.0).agora());\n\n //PowerMockito.whenNew(Date.class).withNoArguments().thenReturn(DataUtils.obterData(28, 4, 2017));\n /*Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.DAY_OF_MONTH, 28);\n calendar.set(Calendar.MONTH, Calendar.APRIL);\n calendar.set(Calendar.YEAR, 2017);\n PowerMockito.mockStatic(Calendar.class);\n PowerMockito.when(Calendar.getInstance()).thenReturn(calendar);*/\n\n Mockito.doReturn(DataUtils.obterData(28,4,2017)).when(service).obterData();\n\n\t\t//acao\n\t\tLocacao locacao = service.alugarFilme(usuario, filmes);\n\n\t\t//verificação\n\t\terror.checkThat(locacao.getValor(), is(equalTo(5.0)));\n\n\t\t//error.checkThat(isMesmaData(locacao.getDataLocacao(), new Date()), is(true));\n\t\t//error.checkThat(locacao.getDataLocacao(), ehHoje());\n\n //error.checkThat(isMesmaData(locacao.getDataRetorno(), obterDataComDiferencaDias(1)), is(true));\n\t\t//error.checkThat(locacao.getDataRetorno(), ehHojeComDiferenciaDias(1));\n\n\t\terror.checkThat(isMesmaData(locacao.getDataLocacao(), DataUtils.obterData(28,4,2017)), is(true));\n\t\terror.checkThat(isMesmaData(locacao.getDataRetorno(), DataUtils.obterData(29,4,2017)), is(true));\n\n\n\t}", "public void setDia_especifico(java.sql.Timestamp newDia_especifico);", "public ActividadTest()\n {\n prueba = new Actividad(\"Rumbear\",\"Salir a tomar y bailar con unos amigos\",2018,5,5,6,\n 15,8,30,30,new GregorianCalendar(2018,5,2,3,0),new GregorianCalendar(2018,5,7,8,0));\n }", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "private DateTimeAdjusters() {\n\n }", "void actualizarRondaCancion( Cancion cancion, Date fecha) throws ExceptionDao;", "public String date(int lmao) {\r\n switch (lmao) {\r\n case 1:\r\n return time.showDay();\r\n\r\n case 2:\r\n return time.showMonth();\r\n\r\n case 3:\r\n return time.showYear();\r\n\r\n case 4:\r\n return time.showDay() + \"/\" + time.showMonth() + \"/\" + time.showYear();\r\n\r\n default:\r\n return \"error\";\r\n }\r\n }", "public Date getFechaExclusion()\r\n/* 160: */ {\r\n/* 161:178 */ return this.fechaExclusion;\r\n/* 162: */ }", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "private CreateDateUtils()\r\n\t{\r\n\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "@Test\n public void testCalculerMoyenne() {\n\n System.out.println(\"calculerMoyenne\");\n Date date1 = new DateTime(2013, 1, 1, 0, 0).toDate();\n Date date2 = new DateTime(2013, 1, 6, 0, 0).toDate();\n\n POJOCompteItem instance = genererInstanceTest();\n try {\n instance.compte();\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n Integer expResult = null;\n Float result = instance.calculerMoyenne(date1, date2);\n\n if (!result.equals(new Float(2.6))) {\n fail(\"le résultat est 2.6\");\n }\n// assertEquals(expResult, result);\n System.out.println(\"MOY : \" + result);\n\n try {\n instance.calculerMoyenne(null, null);\n fail(\"devait lever une exeception\");\n } catch (Exception e) {\n }\n }", "public void mo1970m() throws cf {\r\n }", "public final boolean isCompatibleWith (Unit unit) {\n\t\tif (((unit.mksa|this.mksa)&_abs) != 0) \t\t// Special dates\n\t\t\treturn((this.mksa^_abs) == unit.mksa) ;\n\t\treturn((mksa&(~(_log|_mag))) == (unit.mksa&(~(_log|_mag)))) ;\n\t}", "private BusinessDateUtility() {\n\t}", "public static void main(String[] args) {\n LocalDateTime termino = LocalDateTime.now();\n if (termino.getHour() >= 17) {\n if(termino.getMinute() >= 31){\n System.out.println(\"Ar-Condicionado Ligado + produto.getSala()\");\n }\n }\n if(termino.getDayOfWeek().getValue() != 7){\n //depois de consultar no banco e dar o alerta, mudar o atributo leituraAlerta no banco para true\n \n }\n \n }", "public Geotemporal() {\n }", "private DateUtil() {\n\t}", "private DateUtil() {\n\t}", "private void xuLyThemSD(){\n if (checkNgay(txtNgaySD.getText())==false){\n JOptionPane.showMessageDialog(null, \"Ngày sử dụng phải thuộc dạng [YYYY-MM-DD].\\n Vui lòng kiểm tra lại!\");\n txtNgaySD.requestFocus();\n return;\n }//kiem tra ngay su dung\n \n if (checkGia(txtGiaDV.getText())==false){\n JOptionPane.showMessageDialog(null, \"Ngày sử dụng phải là ký tự số.\\n Vui lòng kiểm tra lại!\");\n txtGiaDV.requestFocus();\n return;\n }//kiem tra gia dich vu\n \n \n SuDungService suDungService = new SuDungService();\n int x = suDungService.themSuDung(cbbMaDV.getSelectedItem().toString(),\n cbbMaKH.getSelectedItem().toString(),\n txtNgaySD.getText(), Float.valueOf(txtGiaDV.getText()));\n \n if (x>0){\n hienThiSuDung();\n JOptionPane.showMessageDialog(null, \"Đã thêm!\");\n }else{\n JOptionPane.showMessageDialog(null, \"Thêm thất bại!\");\n cbbMaDV.requestFocus();\n return;\n }\n }", "@Test\n public void testDetecterCompteSousMoyenne() {\n// System.out.println(\"detecterAnomalieParrapportAuSeuil\");\n Integer seuil = 30;\n POJOCompteItem instance = genererInstanceTest();\n\n try {\n instance.compte();\n instance.calculerMoyenne(new DateTime(2013, 1, 1, 0, 0).toDate(), new DateTime(2013, 1, 6, 0, 0).toDate());\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n// List expResult = null;\n Map<Date, Integer> result = instance.detecterAnomalieParrapportAuSeuil(seuil);\n\n if (result.size() != 3) {\n fail(\"on attend 3 résultats\");\n }\n\n\n try { // On tente de faire le calcul avec une valeur null doit lever une NullPointerException\n instance.detecterAnomalieParrapportAuSeuil(null);\n fail(\"devait lancer une exception\");\n } catch (Exception e) {\n if (!e.getClass().equals(NullPointerException.class)) {\n fail(\"devait lever une NullPointerException\");\n }\n }\n }", "@Test(timeout = 4000)\n public void test318() throws Throwable {\n Form form0 = new Form(\"w\");\n // Undeclared exception!\n try { \n form0.dateFormat(\"? fOYd~2\", form0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Failed to initialize SimpleDateFormat with pattern '? fOYd~2'.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Test\n\tpublic void testDate1() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(0);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1900);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public void setDateTrx (Timestamp DateTrx)\n{\nif (DateTrx == null) throw new IllegalArgumentException (\"DateTrx is mandatory\");\nset_Value (\"DateTrx\", DateTrx);\n}", "void getCurrentPeriodo();", "@Test\n\tpublic void testRespondible3(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "private Pannello creaPanDate() {\n /* variabili e costanti locali di lavoro */\n Pannello panDate = null;\n Campo campoDataInizio;\n Campo campoDataFine;\n JButton bottone;\n ProgressBar pb;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(DialogoStatistiche.nomeDataIni);\n campoDataInizio.decora().eliminaEtichetta();\n campoDataInizio.decora().etichettaSinistra(\"dal\");\n campoDataInizio.decora().obbligatorio();\n campoDataFine = CampoFactory.data(DialogoStatistiche.nomeDataFine);\n campoDataFine.decora().eliminaEtichetta();\n campoDataFine.decora().etichettaSinistra(\"al\");\n campoDataFine.decora().obbligatorio();\n\n /* bottone esegui */\n bottone = new JButton(\"Esegui\");\n bottone.setOpaque(false);\n this.setBottoneEsegui(bottone);\n bottone.addActionListener(new DialogoStatistiche.AzioneEsegui());\n bottone.setFocusPainted(false);\n\n /* progress bar */\n pb = new ProgressBar();\n this.setProgressBar(pb);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.setAllineamento(Layout.ALLINEA_CENTRO);\n panDate.creaBordo(\"Periodo di analisi\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(bottone);\n panDate.add(Box.createHorizontalGlue());\n panDate.add(pb);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return panDate;\n }", "private String tilStandardDatostreng(Calendar c)\n {\n return c.get(Calendar.DATE) + \"/\" + (c.get(Calendar.MONTH) + 1) + \"/\" + c.get(Calendar.YEAR);\n }", "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "@Test\n public void testGetFecha() {\n System.out.println(\"getFecha\");\n Reserva instance = new Reserva();\n Date expResult = null;\n Date result = instance.getFecha();\n assertEquals(expResult, result);\n \n }", "public static void main(String[] args) {\n\t\tSystem.out.println(System.currentTimeMillis()); // Quantos Milisegundos desde data 01/01/1970\n\t\t\n\t\t// Data Atual\n\t\tDate agora = new Date();\n\t\tSystem.out.println(\"Data Atual: \"+agora);\n\t\t\n\t\tDate data = new Date(1_000_000_000_000L);\n\t\tSystem.out.println(\"Data com 1.000.000.000.000ms: \"+data);\n\t\t\n\t\t// METODOS\n\t\tdata.getTime();\n\t\tdata.setTime(1_000_000_000_000L);\n\t\tSystem.out.println(data.compareTo(agora)); // -1 para anterior, 0 para igual, +1 para posterior\n\t\t\n\t\t// GregorianCalendar\n\t\tCalendar c = Calendar.getInstance();\n\t\tc.set(1980, Calendar.FEBRUARY, 12);\n\t\tSystem.out.println(c.getTime());\n\t\tSystem.out.println(c.get(Calendar.YEAR)); // Ano\n\t\tSystem.out.println(c.get(Calendar.MONTH)); // Mes 0 - 11\n\t\tSystem.out.println(c.get(Calendar.DAY_OF_MONTH)); // Dia do mes\n\t\t\n\t\tc.set(Calendar.YEAR,2016); // Altera o Ano\n\t\tc.set(Calendar.MONTH, 10); // Altera o Mes 0 - 11\n\t\tc.set(Calendar.DAY_OF_MONTH, 24); // Altera o Dia do mes\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.clear(Calendar.MINUTE); // limpa minutos\n\t\tc.clear(Calendar.SECOND); // limpa segundos\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.add(Calendar.DAY_OF_MONTH,1); // adiciona dias (avança o mes e ano)\n\t\tc.add(Calendar.YEAR,1); // adiciona o ano \n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\tc.roll(Calendar.DAY_OF_MONTH,20); // adiciona dias (não avança o mes e ano)\n\t\tSystem.out.println(c.getTime());\n\t\t\n\t\t// Saudação com Bom dia, Boa arde ou Boa noite\n\t\tCalendar c1 = Calendar.getInstance();\n\t\tint hora = c1.get(Calendar.HOUR_OF_DAY);\n\t\tSystem.out.println(hora);\n\t\tif(hora <= 12){\n\t\t\tSystem.out.println(\"Bom Dia\");\n\t\t} else if(hora > 12 && hora < 18){\n\t\t\tSystem.out.println(\"Boa Tarde\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Boa Noite\");\n\t\t}\n\t\t\n\n\t}", "@Override\n\tpublic java.util.Date getNgayTao() {\n\t\treturn _keHoachKiemDemNuoc.getNgayTao();\n\t}", "@Test\n\tpublic void testdeveAtualizarUmDocumentoDoBanco() {\n\t\tdouble d = documentoDao.updateDocumento(deveAlterarDocumentoExistente());\n\t\tAssert.assertEquals(1, d, 0.0001);\t\n\t}", "private TimestampUtils(){}", "void mo1970b();", "public void asetaTeksti(){\n }", "public static Fecha IngresarFecha(){\n int diaIngreso, mesIngreso,anioIngreso;\r\n Fecha fechaIngreso = null;\r\n boolean condicion=false;\r\n \r\n do {\r\n System.out.println(\"Ingrese una fecha.\\n\"\r\n + \"Ingrese Dia: \");\r\n diaIngreso = TecladoIn.readInt();\r\n System.out.println(\"Ingrese el Mes: \");\r\n mesIngreso = TecladoIn.readLineInt();\r\n System.out.println(\"Ingrese el año: \");\r\n anioIngreso = TecladoIn.readInt();\r\n if (Validaciones.esValidoDatosFecha(diaIngreso, mesIngreso, anioIngreso)) {\r\n fechaIngreso = new Fecha(diaIngreso, mesIngreso, anioIngreso);\r\n \r\n condicion = true;\r\n } else {\r\n System.out.println(\"...........................................\");\r\n System.out.println(\"Ingrese Una Fecha Correcta: Dia/Mes/Año\");\r\n System.out.println(\"...........................................\");\r\n }\r\n } while (condicion != true);\r\n \r\n return fechaIngreso;}", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "@Test\n\tpublic void testRespondible4(){\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(20));\n\t\tassertFalse(ej1.sePuedeResponder());\n\t}", "@Test\r\n\tpublic void testYOBValid() {\r\n\t\tassertTrue(Activity5Query.isYOBCorrect(1880));\r\n\t\tassertTrue(Activity5Query.isYOBCorrect(2019));\r\n\t\tassertTrue(Activity5Query.isYOBCorrect(2018));\r\n\t\tassertTrue(Activity5Query.isYOBCorrect(1881));\r\n\t\tassertTrue(Activity5Query.isYOBCorrect(1960));\r\n\t\t\r\n\t}" ]
[ "0.60442895", "0.6017701", "0.5912334", "0.5893074", "0.5869857", "0.5836617", "0.5793094", "0.57927316", "0.5758951", "0.57240796", "0.570901", "0.5693149", "0.56907797", "0.56895506", "0.5677274", "0.5675334", "0.56746095", "0.5656964", "0.5642803", "0.5642803", "0.56407386", "0.562921", "0.56235915", "0.5619642", "0.56053746", "0.55995184", "0.5540737", "0.5537477", "0.5533852", "0.55235535", "0.5523188", "0.552308", "0.5518282", "0.5516716", "0.55045795", "0.54973704", "0.54806405", "0.5478087", "0.54757094", "0.54618603", "0.5450791", "0.5449544", "0.5434072", "0.5428796", "0.5427664", "0.5427252", "0.5411652", "0.5411545", "0.5408761", "0.5404355", "0.5403793", "0.53959864", "0.5389595", "0.53889054", "0.53683203", "0.5366521", "0.53638554", "0.53526807", "0.53459716", "0.5345365", "0.5343622", "0.53320384", "0.53243524", "0.5315081", "0.53129905", "0.53099823", "0.53084743", "0.5305416", "0.53016096", "0.53005713", "0.5296332", "0.5295952", "0.52955145", "0.5294257", "0.528969", "0.52888227", "0.528657", "0.5286046", "0.5282844", "0.5282844", "0.52826977", "0.52815974", "0.5280877", "0.5279242", "0.5275445", "0.52745545", "0.5273225", "0.5270774", "0.5269335", "0.5268891", "0.52626896", "0.52402633", "0.523629", "0.52353096", "0.5233201", "0.52327734", "0.5228829", "0.52277493", "0.52275324", "0.52235913", "0.52196884" ]
0.0
-1
metoda liczaca moment bezwladnosci wzgledem osi z
public double Iz() { double iz = 0; for(int i = 0;i < liczbaPunktow;i++) { iz = iz + A[i].getMasa() * (Math.pow((XYZC[0] - A[i].getPozX()),2) + Math.pow((XYZC[1] - A[i].getPozY()),2)); } return iz; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void aktualisiereZeitpunk(int momentanZeitpunkt);", "private Moment() {}", "@Override\n\tpublic void initDate() {\n\n\t}", "public Date getGioBatDau();", "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}", "private CreateDateUtils()\r\n\t{\r\n\t}", "public Mencacao()\r\n {\r\n texto = \"\";\r\n deUtilizador = \"\";\r\n data = new GregorianCalendar();\r\n }", "private GuessDate(){\n }", "@Override\n public void date_()\n {\n }", "public java.util.Calendar getFechaSolicitud(){\n return localFechaSolicitud;\n }", "public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}", "public Date getFechaHasta()\r\n/* 174: */ {\r\n/* 175:302 */ return this.fechaHasta;\r\n/* 176: */ }", "private BusinessDateUtility() {\n\t}", "@Override\n public void date()\n {\n }", "private DateUtil() {\n\t}", "private DateUtil() {\n\t}", "public abstract java.lang.String getFecha_inicio();", "private UsineJoueur() {}", "public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }", "public abstract java.sql.Timestamp getFecha_ingreso();", "public TelaInicial() {\n\n boolean expirou = false;\n if(new Date().after(new Date(2020 - 1900, Calendar.JULY, 31))){\n JOptionPane.showMessageDialog(this, \"Periodo de teste acabou.\");\n expirou = true;\n }\n initComponents(expirou);\n }", "public void mo1972o() throws cf {\r\n }", "public Date getFechaDesde()\r\n/* 164: */ {\r\n/* 165:283 */ return this.fechaDesde;\r\n/* 166: */ }", "public Date generarFechaSolicitudGarantia() {\r\n return new Date();\r\n }", "@Override\n\tpublic boolean ate() {\n\t\treturn false;\n\t}", "public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private DateTimeAdjusters() {\n\n }", "public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}", "private stendhal() {\n\t}", "private static String fechaMod(File imagen) {\n\t\tlong tiempo = imagen.lastModified();\n\t\tDate d = new Date(tiempo);\n\t\tCalendar c = new GregorianCalendar();\n\t\tc.setTime(d);\n\t\tString dia = Integer.toString(c.get(Calendar.DATE));\n\t\tString mes = Integer.toString(c.get(Calendar.MONTH));\n\t\tString anyo = Integer.toString(c.get(Calendar.YEAR));\n\t\tString hora = Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\tString minuto = Integer.toString(c.get(Calendar.MINUTE));\n\t\tString segundo = Integer.toString(c.get(Calendar.SECOND));\n\t\treturn hora+\":\"+minuto+\":\"+segundo+\" - \"+ dia+\"/\"+mes+\"/\"+\n\t\tanyo;\n\t}", "private TimestampUtils(){}", "public void trenneVerbindung();", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Test\t\t\n\t public void testSystem() {\n\t Date expected = new SystemTimeSource().getTimeMoment();\n\t\t Date actual = new Date();\n\t assertEquals(actual, expected);\n\t }", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "private DateUtil(){\n\n }", "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}", "public java.sql.Timestamp getDia_especifico();", "public void mo1970m() throws cf {\r\n }", "public abstract java.lang.String getFecha_termino();", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = new DisplayDosDigitos(100);\n }", "public ExceptionDate(){\n\t\tsuper();\n\t}", "public Relogio()\n\t{\n \n\t\thora = 0;\n\t\tminuto = 0;\n\t\tsegundo = 0;\n //forma.format(hora);\n if((hora<0 || hora>23) || (minuto<0 || minuto>59) || (segundo<0 || segundo>59)){\n System.out.println(\"Valor de tempo invalido!\");\n }\n\t}", "private void zeitGeber() {\n GregorianCalendar datum = new GregorianCalendar();\n stunden = datum.get(Calendar.HOUR_OF_DAY);\n minuten = datum.get(Calendar.MINUTE);\n sekunden = datum.get(Calendar.SECOND);\n inform();\n }", "public Date getCreacion() {\r\n return creacion;\r\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "@Test\n public void testGetFecha() {\n System.out.println(\"getFecha\");\n Reserva instance = new Reserva();\n Date expResult = null;\n Date result = instance.getFecha();\n assertEquals(expResult, result);\n \n }", "public final boolean isCompatibleWith (Unit unit) {\n\t\tif (((unit.mksa|this.mksa)&_abs) != 0) \t\t// Special dates\n\t\t\treturn((this.mksa^_abs) == unit.mksa) ;\n\t\treturn((mksa&(~(_log|_mag))) == (unit.mksa&(~(_log|_mag)))) ;\n\t}", "protected Asignatura()\r\n\t{}", "@Test\n public void deveDevolverNaSegundaAoAlugarNoSabado() throws Exception {\n\t Usuario usuario = umUsuario().agora();\n\t List<Filme> filmes = Arrays.asList(umFilme().agora());\n\n //PowerMockito.whenNew(Date.class).withNoArguments().thenReturn(DataUtils.obterData(29, 4, 2017));\n /*Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.DAY_OF_MONTH, 29);\n calendar.set(Calendar.MONTH, Calendar.APRIL);\n calendar.set(Calendar.YEAR, 2017);\n PowerMockito.mockStatic(Calendar.class);\n PowerMockito.when(Calendar.getInstance()).thenReturn(calendar);*/\n\n Mockito.doReturn(DataUtils.obterData(29,4,2017)).when(service).obterData();\n\n\t //acao\n Locacao retorno = service.alugarFilme(usuario, filmes);\n\n //verificacao\n //boolean ehSegunda = DataUtils.verificarDiaSemana(retorno.getDataRetorno(), Calendar.MONDAY);\n //assertTrue(ehSegunda);\n assertThat(retorno.getDataRetorno(), caiNumaSegunda());\n //PowerMockito.verifyNew(Date.class, Mockito.times(2)).withNoArguments();\n\n //PowerMockito.verifyStatic(Mockito.times(2));\n //Calendar.getInstance();\n\n\n }", "@Test\n\tpublic void getTheCurrentDateSystem() {\n\t\tAssert.assertNotNull(\"The actual date is returned in the expected format \",\n\t\t\t\tTimeMilisecondHelper.fromMilisecondsToDate());\n\t}", "public Date getFechaExclusion()\r\n/* 160: */ {\r\n/* 161:178 */ return this.fechaExclusion;\r\n/* 162: */ }", "public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }", "public Timestamp getCreationDate()\n throws OculusException;", "public Date getFechaNacimiento()\r\n/* 133: */ {\r\n/* 134:242 */ return this.fechaNacimiento;\r\n/* 135: */ }", "@Test(timeout = 4000)\n public void test318() throws Throwable {\n Form form0 = new Form(\"w\");\n // Undeclared exception!\n try { \n form0.dateFormat(\"? fOYd~2\", form0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Failed to initialize SimpleDateFormat with pattern '? fOYd~2'.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "public int jogadorAtual() {\n return vez;\n }", "public Geotemporal() {\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n private String obtenerSegundos(){\n try{\n this.minutos = java.time.LocalDateTime.now().toString().substring(17,19);\n }catch (StringIndexOutOfBoundsException sioobe){\n this.segundos = \"00\";\n }\n return this.minutos;\n }", "void zmniejszBieg();", "void mo1970b();", "@Test\n\tpublic void testDate1() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(0);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1900);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public final zzbel mo1959b(zzbbu zzbbu) {\n throw new GeneralSecurityException(\"Not implemented.\");\n }", "public SIPDate(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: gov.nist.javax.sip.header.SIPDate.<init>(long):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.<init>(long):void\");\n }", "public SIPDate() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e6 in method: gov.nist.javax.sip.header.SIPDate.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.<init>():void\");\n }", "public Date obterHrEnt1Turno(){\n \ttxtHrEnt1Turno.setEditable(true);\n txtHrSai1Turno.setEditable(false);\n txtHrEnt2Turno.setEditable(false);\n txtHrSai2Turno.setEditable(false);\n \ttxtHrEnt1TurnoExt.setEditable(false);\n txtHrSai1TurnoExt.setEditable(false);\n txtHrEnt2TurnoExt.setEditable(false);\n txtHrSai2TurnoExt.setEditable(false);\n\n return new Date();\n }", "private long now() {\n\treturn System.currentTimeMillis();\n }", "public void asetaTeksti(){\n }", "private TimeUtil() {}", "@Test(expected = DateTimeException.class)\n\tpublic void setGeburtsdatumInKundeVOMitException() throws KundeKeinGeburtsdatumException, KundeZuJungException {\n\t\t// Setzt ein Schaltjahr\n\n\t\t\t\tkundeIni.setGeburtsdatum(LocalDate.of(1964, 2, 29));\n\t\t\t\tassertNotNull(\n\t\t\t\t\t\tkundeIni.getClass()\n\t\t\t\t\t\t\t\t+ \" hat ein Geburtsdatum 29. Februar 1964, ist daher eein Objekt\",\n\t\t\t\t\t\tkundeIni.getGeburtsdatum());\n\t\tkundeIni.setGeburtsdatum(LocalDate.of(1967, 2, 30));\n\t}", "private boolean validaFechasPrimerDiaLaboral(int indice,boolean isSol, int CodEmp, int CodLoc){\n boolean blnRes=false;\n try{\n if(objTblMod.getValueAt(indice, INT_TBL_DAT_EST_FAC_PRI_DIA_LAB).toString().equals(\"S\")){\n if(isSol){\n if(getFechaLab(CodEmp,CodLoc).equals(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString())){\n blnRes=true;\n }\n //strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n else{\n if(getFechaLab(CodEmp,CodLoc).equals(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString())){\n blnRes=true;\n }\n //strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n }\n else{\n blnRes=true;\n }\n \n } \n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "public java.util.Date getNotBefore() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getNotBefore():java.util.Date, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getNotBefore():java.util.Date\");\n }", "private void affichageDateFin() {\r\n\t\tif (dateFinComptage!=null){\r\n\t\t\tSystem.out.println(\"Le comptage est clos depuis le \"+ DateUtils.format(dateFinComptage));\r\n\t\t\tif (nbElements==0){\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos mais n'a pas d'éléments. Le comptage est en anomalie.\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Le comptage est clos et est OK.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Le compte est actif.\");\r\n\t\t}\r\n\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "public TelaEntradaProduto() {\n initComponents();\n data = new Date(System.currentTimeMillis());\n SimpleDateFormat formatador = new SimpleDateFormat(\"dd/MM/yyyy\");\n JTFdata.setText(formatador.format(data));\n }", "public mbvBoletinPeriodo() {\r\n }", "public int liczbaelnastosie() {\n\t\treturn 0;\n\t}", "public final zzayv mo1961c(zzbbu zzbbu) {\n throw new GeneralSecurityException(\"Not implemented.\");\n }", "@Test\n public void testDetecterCompteSousMoyenne() {\n// System.out.println(\"detecterAnomalieParrapportAuSeuil\");\n Integer seuil = 30;\n POJOCompteItem instance = genererInstanceTest();\n\n try {\n instance.compte();\n instance.calculerMoyenne(new DateTime(2013, 1, 1, 0, 0).toDate(), new DateTime(2013, 1, 6, 0, 0).toDate());\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n// List expResult = null;\n Map<Date, Integer> result = instance.detecterAnomalieParrapportAuSeuil(seuil);\n\n if (result.size() != 3) {\n fail(\"on attend 3 résultats\");\n }\n\n\n try { // On tente de faire le calcul avec une valeur null doit lever une NullPointerException\n instance.detecterAnomalieParrapportAuSeuil(null);\n fail(\"devait lancer une exception\");\n } catch (Exception e) {\n if (!e.getClass().equals(NullPointerException.class)) {\n fail(\"devait lever une NullPointerException\");\n }\n }\n }", "private DittaAutonoleggio(){\n \n }", "public AntrianPasien() {\r\n\r\n }", "public java.util.Date getNotAfter() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getNotAfter():java.util.Date, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getNotAfter():java.util.Date\");\n }", "private static void cajas() {\n\t\t\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic void inicializaBD() {\n\t\t\n\t\t/*Registros de Orden*/\n\t\tint n1=1;\n\t\tString p1=\"Taco Azteca\", p2=\"Sopa\";\n\t\tjava.util.Date utilDate = new java.util.Date();\n\t\tjava.util.Date utilDate1 = new java.util.Date();\n\t\tutilDate.setMonth(1);\n\t\tutilDate.setYear(119);\n\t\tutilDate.setMinutes(1);\n\t\tutilDate1.setMonth(1);\n\t\tutilDate1.setYear(119);\n\t\tutilDate1.setMinutes(59);\n\t\tlong lnMilisegundos = utilDate.getTime();\n\t\tlong lnMilisegundos1 = utilDate1.getTime()+10;\n\t\tTimestamp fecha1= new Timestamp(lnMilisegundos);\n\t\tTimestamp fecha2 = new Timestamp(lnMilisegundos+9999999);\n\t\tTimestamp fecha3= new Timestamp(lnMilisegundos1);\n\t\tTimestamp fecha4 = new Timestamp(lnMilisegundos1+999999);\n\t\tOrden orden1 = new Orden(n1,p1, fecha1, fecha2, 60, 3);\n\t\tOrden orden2 = new Orden(n1,p2, fecha3, fecha4, 30, 3);\n\t\torden1.setEstado(3);\n\t\torden2.setEstado(3);\n\t\tordenRepository.save(orden1);\n\t\tordenRepository.save(orden2);\n\t\t\n\t\t/*Registros de producto*/\n\t\tProducto producto1 = new Producto();\n\t\tproducto1.setFecha(\"2020-05-10\");\n\t\tproducto1.setNombreProducto(\"Chiles Verdes\");\n\t\tproducto1.setDescripcion(\"Bolsas de 1 kg de Chiles\");\n\t\tproducto1.setCantidad(15);\n\t\tproducto1.setMinimo(20);\n\t\tproductoRepository.save(producto1);\n\t\t\n\t\tProducto producto2 = new Producto();\n\t\tproducto2.setFecha(\"2020-10-05\");\n\t\tproducto2.setNombreProducto(\"Papas\");\n\t\tproducto2.setDescripcion(\"Costal de 32 Kg de papas\");\n\t\tproducto2.setCantidad(58);\n\t\tproducto2.setMinimo(10);\n\t\tproductoRepository.save(producto2);\n\t\t\n\t\tProducto producto3 = new Producto();\n\t\tproducto3.setFecha(\"2020-10-20\");\n\t\tproducto3.setNombreProducto(\"Frijoles\");\n\t\tproducto3.setDescripcion(\"Costales de 13 kg de Frijoles\");\n\t\tproducto3.setCantidad(2);\n\t\tproducto3.setMinimo(20);\n\t\tproductoRepository.save(producto3);\n\t\t\n\t\tProducto producto4 = new Producto();\n\t\tproducto4.setFecha(\"2020-08-16\");\n\t\tproducto4.setNombreProducto(\"Sopa de fideo\");\n\t\tproducto4.setDescripcion(\"Bolsas de 500g de sopa de fideo\");\n\t\tproducto4.setCantidad(8);\n\t\tproducto4.setMinimo(10);\n\t\tproductoRepository.save(producto4);\n\t\t\n\t\t//Registro de recordatorio\n\t\tRecordatorio recordatorio = new Recordatorio();\n\t\trecordatorio.setId(1);\n\t\trecordatorio.setInfo(\"1. A partir de mañana se empezará a ofrecer los \\n\"\n\t\t\t\t+ \"beneficios para los clientes preferenciales\\n\"\n\t\t\t\t+ \"2. Los empleados que no se han registrado para \\n\"\n\t\t\t\t+ \"algo algotienen hasta el 25 de Julio para \\n\"\n\t\t\t\t+ \"registrarse.\");\n\t\trecordatorioRepository.save(recordatorio);\n\t\t\n\t\t//Registro empleados\n\t\tEmpleado empleado1 = new Empleado();\n\t\templeado1.setNombre(\"Paola\");\n\t\templeado1.setApellidos(\"Aguillón\");\n\t\templeado1.setEdad(24);\n\t\templeado1.setSueldo(2120.50);\n\t\templeado1.setOcupacion(\"Mesera\");\n\t\templeadoRepository.save(empleado1);\n\t\t\n\t\tEmpleado empleado2 = new Empleado();\n\t\templeado2.setNombre(\"Jorge\");\n\t\templeado2.setApellidos(\"Luna\");\n\t\templeado2.setEdad(20);\n\t\templeado2.setSueldo(2599.50);\n\t\templeado2.setOcupacion(\"Cocinero\");\n\t\templeadoRepository.save(empleado2);\n\t\t\n\t\tEmpleado empleado3 = new Empleado();\n\t\templeado3.setNombre(\"Mariana\");\n\t\templeado3.setApellidos(\"Mendoza\");\n\t\templeado3.setEdad(32);\n\t\templeado3.setSueldo(1810.80);\n\t\templeado3.setOcupacion(\"Ayudante general\");\n\t\templeadoRepository.save(empleado3);\n\t\t\n\t\tEmpleado empleado4 = new Empleado();\n\t\templeado4.setNombre(\"Diego\");\n\t\templeado4.setApellidos(\"Ayala\");\n\t\templeado4.setEdad(28);\n\t\templeado4.setSueldo(3560.60);\n\t\templeado4.setOcupacion(\"Chef\");\n\t\templeadoRepository.save(empleado4);\n\t\t\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setNombre(\"Mario\");\n\t\tcliente1.setCorreo(\"mario46@hotmail.com\");\n\t\tcliente1.setPromocion(\"Sopa 2x1\");\n\t\tclienteRepository.save(cliente1);\n\n\t\t//Registro Ventas de menú\n\t\tVentasMenu dia1 = new VentasMenu();\n\t\tdia1.setFecha(LocalDate.of(2021,02,01));\n\t\tdia1.setMenu(\"Tacos,Sopa de papa, Agua de limón\");\n\t\tdia1.setVentas(20);\n\t\tventasMenuRepository.save(dia1);\n\t\t\n\t\tVentasMenu dia2 = new VentasMenu();\n\t\tdia2.setFecha(LocalDate.of(2021,02,02));\n\t\tdia2.setMenu(\"Tortas de papa,Sopa de verdura, Agua de piña\");\n\t\tdia2.setVentas(22);\n\t\tventasMenuRepository.save(dia2);\n\t\t\n\t\tVentasMenu dia21 = new VentasMenu();\n\t\tdia21.setFecha(LocalDate.of(2021,02,03));\n\t\tdia21.setMenu(\"Tortas de papa,Sopa de tortilla, Agua de mango\");\n\t\tdia21.setVentas(25);\n\t\tventasMenuRepository.save(dia21);\n\t\t\n\t\tVentasMenu dia211 = new VentasMenu();\n\t\tdia211.setFecha(LocalDate.of(2021,02,04));\n\t\tdia211.setMenu(\"Papas a la francesa,sopa de arroz, Agua de jamaica \");\n\t\tdia211.setVentas(30);\n\t\tventasMenuRepository.save(dia211);\n\t\t\n\t\t\n\t\t\n\t\t//Registro de menú\n\t\tMenu menu = new Menu();\n\t\tmenu.setId(1);\n\t\tmenu.setMen(\"Sopa \\n\"\n\t\t\t\t+ \"Consome\\n\"\n\t\t\t\t+ \"Arroz\\n\"\n\t\t\t\t+ \"Pasta\\n\"\n\t\t\t\t+ \"Chile relleno \\n\"\n\t\t\t\t+ \"Taco Azteca \\n\"\n\t\t\t\t+ \"Filete de Pescado empanizado\"\n\t\t + \"Enchiladas\\n\"\n\t\t + \"Gelatina\\n\"\n\t\t + \"Flan\\n\");\n\t\tmenuRepository.save(menu);\n\t\t\n\t\t//Registro de algunos proveedores\n\t\t\n\t\tProveedor proveedor1 = new Proveedor();\n\t\tproveedor1.setNomProveedor(\"Aaron\");\n\t\tproveedor1.setMarca(\"Alpura\");\n\t\tproveedor1.setTipo(\"Embutidos y lacteos\");\n\t\tproveedor1.setCosto(4600);\n\t\tproveedorRepository.save(proveedor1);\n\t\t\n\t\tProveedor proveedor2 = new Proveedor();\n\t\tproveedor2.setNomProveedor(\"Angelica\");\n\t\tproveedor2.setMarca(\"Coca-Cola\");\n\t\tproveedor2.setTipo(\"Bebidas\");\n\t\tproveedor2.setCosto(1810.11);\n\t\tproveedorRepository.save(proveedor2);\n\t\t\n\t\tProveedor proveedor3 = new Proveedor();\n\t\tproveedor3.setNomProveedor(\"Ernesto\");\n\t\tproveedor3.setMarca(\"Patito\");\n\t\tproveedor3.setTipo(\"Productos de limpieza\");\n\t\tproveedor3.setCosto(2455.80);\n\t\tproveedorRepository.save(proveedor3);\n\t\t\n\t\t// Registro Sugerencias \n\t\t\n\t\t \n\t\tSugerencia sugerencia= new Sugerencia();\n\t\tsugerencia.setIdSugeregncia(1);\n\t\tsugerencia.setNombre(\"Pedro\");\n\t\tsugerencia.setSugerencia(\"Pollo Frito\");\n\t\tsugerenciaRepository.save(sugerencia);\n\t\t\n\t\tSugerencia sugerencia1= new Sugerencia();\n\t\tsugerencia1.setIdSugeregncia(2);\n\t\tsugerencia1.setNombre(\"Miriam\");\n\t\tsugerencia1.setSugerencia(\"Sopes\");\n\t\tsugerenciaRepository.save(sugerencia1);\n\t\t\n\t\tSugerencia sugerencia2= new Sugerencia();\n\t\tsugerencia2.setIdSugeregncia(3);\n\t\tsugerencia2.setNombre(\"Rebeca\");\n\t\tsugerencia2.setSugerencia(\"Tamales Oaxaqueños\");\n\t\tsugerenciaRepository.save(sugerencia2);\n\t\t\n\t}", "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "@Test\n\tpublic void deveAlugarFilme() throws Exception {\n\t\tUsuario usuario = umUsuario().agora();\n\t\tList<Filme> filmes = Arrays.asList(umFilme().comValor(5.0).agora());\n\n //PowerMockito.whenNew(Date.class).withNoArguments().thenReturn(DataUtils.obterData(28, 4, 2017));\n /*Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.DAY_OF_MONTH, 28);\n calendar.set(Calendar.MONTH, Calendar.APRIL);\n calendar.set(Calendar.YEAR, 2017);\n PowerMockito.mockStatic(Calendar.class);\n PowerMockito.when(Calendar.getInstance()).thenReturn(calendar);*/\n\n Mockito.doReturn(DataUtils.obterData(28,4,2017)).when(service).obterData();\n\n\t\t//acao\n\t\tLocacao locacao = service.alugarFilme(usuario, filmes);\n\n\t\t//verificação\n\t\terror.checkThat(locacao.getValor(), is(equalTo(5.0)));\n\n\t\t//error.checkThat(isMesmaData(locacao.getDataLocacao(), new Date()), is(true));\n\t\t//error.checkThat(locacao.getDataLocacao(), ehHoje());\n\n //error.checkThat(isMesmaData(locacao.getDataRetorno(), obterDataComDiferencaDias(1)), is(true));\n\t\t//error.checkThat(locacao.getDataRetorno(), ehHojeComDiferenciaDias(1));\n\n\t\terror.checkThat(isMesmaData(locacao.getDataLocacao(), DataUtils.obterData(28,4,2017)), is(true));\n\t\terror.checkThat(isMesmaData(locacao.getDataRetorno(), DataUtils.obterData(29,4,2017)), is(true));\n\n\n\t}", "public void setFechaExpedicion(String p) { this.fechaExpedicion = p; }", "public static void main(String[] args) {\n\t\tCalendar cl = Calendar.getInstance();\r\n\t\tSystem.out.println(\"lich hien tai :\"+cl.getTime());\r\n\t\tSystem.out.println(\"min cua year \"+cl.getActualMinimum(Calendar.YEAR));\r\n\t\tSystem.out.println(\"min cua month \"+cl.getActualMinimum(Calendar.MONTH));\r\n\t\tSystem.out.println(\"min cua cac tuan trong thang \"+cl.getActualMinimum(Calendar.WEEK_OF_MONTH));\r\n\t\tSystem.out.println(\"min cac tuan trong nam \"+cl.getActualMinimum(Calendar.WEEK_OF_YEAR));\r\n\t\tSystem.out.println(\"min cac ngay trong tuan \"+cl.getActualMinimum(Calendar.DAY_OF_WEEK));\r\n\t\tSystem.out.println(\"min date \"+cl.getActualMinimum(Calendar.DATE));\r\n\t\tSystem.out.println(\"min cua cac day trong Month \"+cl.getActualMinimum(Calendar.DAY_OF_MONTH));\r\n\t\tSystem.out.println(\"min cua cac day trong year \"+cl.getActualMinimum(Calendar.DAY_OF_YEAR));\r\n\t\tSystem.out.println(\"min cua minute \"+cl.getActualMinimum(Calendar.MINUTE));\r\n\t\tSystem.out.println(\"min cua hour \"+cl.getActualMinimum(Calendar.HOUR));\r\n\t\tSystem.out.println(\"min cua hour trong day \"+cl.getActualMinimum(Calendar.HOUR_OF_DAY));\r\n\t\tSystem.out.println(\"min cua second \"+cl.getActualMinimum(Calendar.SECOND));\r\n\t}", "@Test\n\tpublic void testSetFecha2(){\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(2);\n\t\tassertFalse(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public abstract long now();", "public Sad(){\n\t\tthis.date = new Date(System.currentTimeMillis());\n\t}", "private TodoData() {\n //nastavenie formatovania\n formatter = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n }", "@Test\n public void testCalculerMoyenne() {\n\n System.out.println(\"calculerMoyenne\");\n Date date1 = new DateTime(2013, 1, 1, 0, 0).toDate();\n Date date2 = new DateTime(2013, 1, 6, 0, 0).toDate();\n\n POJOCompteItem instance = genererInstanceTest();\n try {\n instance.compte();\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n Integer expResult = null;\n Float result = instance.calculerMoyenne(date1, date2);\n\n if (!result.equals(new Float(2.6))) {\n fail(\"le résultat est 2.6\");\n }\n// assertEquals(expResult, result);\n System.out.println(\"MOY : \" + result);\n\n try {\n instance.calculerMoyenne(null, null);\n fail(\"devait lever une exeception\");\n } catch (Exception e) {\n }\n }", "public Tura() {\n\t\tLicznikTur = 0;\n\t}", "Date getTimestamp()\n{\n return time_stamp;\n}", "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public ActividadTest()\n {\n prueba = new Actividad(\"Rumbear\",\"Salir a tomar y bailar con unos amigos\",2018,5,5,6,\n 15,8,30,30,new GregorianCalendar(2018,5,2,3,0),new GregorianCalendar(2018,5,7,8,0));\n }", "private String getDateTime() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\", Locale.GERMANY);\n Date date = new Date();\n return dateFormat.format(date);\n }" ]
[ "0.59496874", "0.59304917", "0.57957876", "0.57531494", "0.57303685", "0.569971", "0.5689943", "0.5684645", "0.56824785", "0.5667038", "0.5666216", "0.5664059", "0.56480557", "0.5646435", "0.5640217", "0.5640217", "0.5629036", "0.5618432", "0.5613024", "0.55942374", "0.5590193", "0.558989", "0.5576745", "0.5574391", "0.55501497", "0.5529003", "0.5516533", "0.5513727", "0.5492824", "0.54919255", "0.5482871", "0.5469497", "0.54688644", "0.546262", "0.5460007", "0.5453208", "0.5453208", "0.54522073", "0.5448649", "0.54266584", "0.537797", "0.5371454", "0.5370008", "0.53673476", "0.5365742", "0.53547484", "0.5353312", "0.53480685", "0.5345961", "0.53431934", "0.5329447", "0.5325686", "0.53204006", "0.531323", "0.53107667", "0.529704", "0.52966696", "0.5294968", "0.5291966", "0.52894443", "0.5283415", "0.5271589", "0.5261476", "0.5252331", "0.525079", "0.52448225", "0.52423924", "0.5242302", "0.5236642", "0.5235489", "0.52244216", "0.5221849", "0.5218392", "0.5217279", "0.52158433", "0.52156466", "0.5210334", "0.52090055", "0.5208608", "0.5206348", "0.5204569", "0.5201616", "0.51992744", "0.5198134", "0.5197848", "0.51909983", "0.5189858", "0.51891744", "0.51801735", "0.51796997", "0.51770663", "0.51760113", "0.5175439", "0.5174005", "0.51732594", "0.51664907", "0.51630026", "0.516278", "0.51615727", "0.5158251", "0.51564777" ]
0.0
-1
Verify the data convension function between C++ and Java
public void testDispatchTypes() { startActivity(); Log.v(TAG,"testDispatchTypes"); SystemDispatcher.Listener listener = new SystemDispatcher.Listener() { public void onDispatched(String type , Map message) { Log.v(TAG,"testDispatchTypes - received: " + type); if (!type.equals("Automater::response")) { return; } Payload payload = new Payload(); payload.name = type; payload.message = message; lastPayload = payload; } }; SystemDispatcher.addListener(listener); Map message = new HashMap(); message.put("field1","value1"); message.put("field2",10); message.put("field3",true); message.put("field4",false); List field5 = new ArrayList(3); field5.add(23); field5.add(true); field5.add("stringValue"); message.put("field5",field5); field5 = new ArrayList(10); Map field6 = new HashMap(); field6.put("sfield1", "value1"); field6.put("sfield2", 10); field6.put("sfield3", true); field6.put("sfield4", false); message.put("field6", field6); assertTrue(lastPayload == null); SystemDispatcher.dispatch("Automater::echo",message); sleep(500); assertTrue(lastPayload != null); assertTrue(lastPayload.message.containsKey("field1")); assertTrue(lastPayload.message.containsKey("field2")); assertTrue(lastPayload.message.containsKey("field3")); assertTrue(lastPayload.message.containsKey("field4")); assertTrue(lastPayload.message.containsKey("field5")); assertTrue(lastPayload.message.containsKey("field6")); String field1 = (String) lastPayload.message.get("field1"); assertTrue(field1.equals("value1")); int field2 = (int) (Integer) lastPayload.message.get("field2"); assertEquals(field2,10); boolean field3 = (boolean)(Boolean) lastPayload.message.get("field3"); assertEquals(field3,true); boolean field4 = (boolean)(Boolean) lastPayload.message.get("field4"); assertEquals(field4,false); List list = (List) lastPayload.message.get("field5"); assertEquals(list.size(),3); assertEquals(list.get(0), 23); assertEquals(list.get(1), true); assertTrue((((String) list.get(2)).equals("stringValue"))); Map map = (Map) lastPayload.message.get("field6"); assertTrue(map.containsKey("sfield1")); assertTrue(((String) map.get("sfield1")).equals("value1")); assertTrue(map.containsKey("sfield2")); assertEquals(map.get("sfield2"), 10); assertTrue(map.containsKey("sfield3")); assertTrue(map.containsKey("sfield4")); SystemDispatcher.removeListener(listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "@Test\n public void testProblemFoundInTheWild() {\n\n Primitive64Store matrix = Primitive64Store.FACTORY.rows(new double[][] { { 1, 0, 0 }, { 0.01, 0, -1 }, { 0.01, 1, 0 } });\n\n CaseEigenvalue.doVerifyGeneral(matrix);\n }", "@Test\n public void serialDecomposition_test1()\n {\n // The function:\n // i2 i4 i7 Q | o0 o2 o3\n // 1 1 0 G0 | 1 - -\n // 1 1 - G6 | - - 1\n // 0 0 0 G7 | - 1 -\n // 1 0 1 G0 | - 1 1\n // 1 1 1 G2 | - 1 1\n // 1 1 1 G5 | - 1 1\n // 0 1 0 G0 | - 1 1\n // 1 1 0 G2 | - 1 -\n // 1 - - G1 | - - 1\n // 1 0 0 G5 | 1 1 -\n // 0 1 1 G5 | - - 1\n // 0 - - G1 | - 1 -\n // 0 0 1 G0 | - - 1\n // 0 0 1 G2 | - - 1\n // 1 1 1 G7 | - 1 -\n // 0 0 0 G0 | - - 1\n // 1 1 0 G7 | - 1 1\n // 1 0 1 G2 | - 1 1\n // 0 1 0 G5 | - - 1\n // 1 1 0 G5 | - 1 1\n // 1 0 0 G2 | - 1 1\n // 1 0 0 G0 | - 1 1\n // 1 0 0 G7 | - 1 1\n // 1 0 1 G7 | - 1 -\n // 0 0 1 G5 | - - 1\n // 1 0 1 G5 | - 1 1\n // 0 0 1 G7 | 1 1 1\n // 1 1 - G0 | - 1 1\n // 0 0 0 G2 | 1 1 1\n // 1 - - G3 | - 1 -\n // 0 - - G3 | - - 1\n // 0 - - G5 | 0 - -\n // 0 - 0 G7 | 0 - -\n // 0 - - G0 | 0 - -\n // - - 1 G0 | 0 - -\n // - - 1 G2 | 0 - -\n // 1 0 - G0 | 0 - -\n // 1 0 - G2 | 0 - -\n // 1 0 - G7 | 0 - -\n // - 1 - G7 | 0 - -\n // - 1 - G5 | 0 - -\n // - 1 - G2 | 0 - -\n // 1 - 1 G5 | 0 - -\n // - - - G1 | 0 - -\n // - - - G3 | 0 - -\n // - - - G4 | 0 - -\n // - - - G0 | - - -\n // - - - G2 | - - -\n // - - - G6 | - - -\n // - - - G7 | - - -\n // - - - G5 | - - -\n // - - - G4 | - - -\n // - - - G6 | 0 - -\n // 0 0 0 G5 | 0 0 0\n // 0 - 1 G2 | - 0 -\n // 0 - 1 G5 | - 0 -\n // 0 1 - G2 | 0 0 0\n // 0 1 - G4 | 0 0 0\n // 0 1 - G2 | 0 0 -\n // 0 1 - G5 | 0 0 -\n // 0 1 - G4 | 0 0 -\n // 0 - 0 G7 | 0 - 0\n // 0 1 - G7 | 0 0 0\n // 0 0 - G0 | 0 0 -\n // 0 0 - G4 | 0 0 -\n // 0 1 1 G0 | 0 0 0\n // 0 - - G4 | 0 0 0\n // 0 - - G3 | - 0 -\n // 0 - - G4 | - 0 -\n // 0 - - G1 | 0 - 0\n // 0 - - G4 | 0 - 0\n // - 0 0 G6 | - - 0\n // - 0 0 G5 | - - 0\n // - 0 0 G4 | - - 0\n // 1 0 1 G6 | - - 0\n // - 0 - G6 | 0 0 0\n // 1 - 1 G7 | - - 0\n // 1 - - G1 | 0 0 -\n // 1 - - G6 | 0 0 -\n // 1 - - G4 | 0 0 -\n // - 1 0 G2 | - - 0\n // - 1 0 G4 | - - 0\n // - - - G4 | 0 0 0\n // 1 - - G3 | - - 0\n // 1 - - G4 | - - 0\n // - - - G3 | - - -\n // - - - G1 | - - -\n\n // Y = {o0o2o3}, U = {i7}, V = {i2i4}\n // Iv = i2i4\n Blanket βIv = Blanket.create(\"1,2,5,6,8,9,15,17,20,28,30,35,36,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,78,79,80,81,82,83,84,85,86,87; 3,12,13,14,16,25,27,29,31,32,33,34,35,36,44,45,46,47,48,49,50,51,52,53,54,55,56,62,64,65,67,68,69,70,71,72,73,74,76,83,86,87; 4,9,10,18,21,22,23,24,26,30,35,36,37,38,39,43,44,45,46,47,48,49,50,51,52,53,72,73,74,75,76,77,78,79,80,83,84,85,86,87; 7,11,12,19,31,32,33,34,35,36,40,41,42,44,45,46,47,48,49,50,51,52,53,55,56,57,58,59,60,61,62,63,66,67,68,69,70,71,81,82,83,86,87;\");\n // Iu = i7\n Blanket βIu = Blanket.create(\"1,2,3,7,8,9,10,12,16,17,19,20,21,22,23,28,29,30,31,32,33,34,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,76,78,79,80,81,82,83,84,85,86,87; 2,4,5,6,9,11,12,13,14,15,18,24,25,26,27,28,30,31,32,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,55,56,57,58,59,60,61,63,64,65,66,67,68,69,70,71,75,76,77,78,79,80,83,84,85,86,87;\");\n Blanket βQ = Blanket.create(\"G0:1,4,7,13,16,22,28,34,35,37,47,64,66; G1:9,12,44,70,78,87; G2:5,8,14,18,21,29,36,38,42,48,55,57,59,81; G3:30,31,45,68,84,86; G4:46,52,58,61,65,67,69,71,74,80,82,83,85; G5:6,10,11,19,20,25,26,32,41,43,51,54,56,60,73; G6:2,49,53,72,75,76,79; G7:3,15,17,23,24,27,33,39,40,50,62,63,77;\");\n Blanket βY = Blanket.create(\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,47,48,49,50,51,52,86,87; 1,2,9,11,13,14,16,19,25,31,47,48,49,50,51,52,55,56,68,69,86,87; 1,3,8,10,12,15,24,30,47,48,49,50,51,52,72,73,74,75,77,81,82,84,85,86,87; 1,47,48,49,50,51,52,55,56,68,69,72,73,74,75,77,81,82,84,85,86,87; 2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,86,87; 2,9,11,13,14,16,19,25,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,55,56,59,60,61,64,65,68,69,78,79,80,86,87; 3,8,12,15,24,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,62,70,71,72,73,74,75,77,81,82,84,85,86,87; 32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87;\");\n DecompositionBlankets decomposition = Decompositions.serialDecomposition(βIv, βIu, βQ, βY, 0, false);\n Assertions.assertThat(decomposition).isNotNull();\n\n Blanket βQv = decomposition.QvJoinedWithQu ? decomposition.Qu.BxB(decomposition.QvPartial) : decomposition.Qv;\n Blanket βQu = decomposition.QuJoinedWithQv ? decomposition.Qv.BxB(decomposition.QuPartial) : decomposition.Qu;\n\n Assertions.assertThat(decomposition.Iv.BxB(βQv).BleB(decomposition.G)).isTrue(); // βIv x βQv <= βG - true\n Assertions.assertThat(decomposition.G.BxB(decomposition.Iu != null ? decomposition.Qu.BxB(decomposition.Iu) : βQu).BleB(decomposition.H)).isTrue(); // βIu x βG x βQu <= βY - true\n Assertions.assertThat(decomposition.Qv.BxB(decomposition.Qu).BeqB(decomposition.Q)).isTrue(); // βQv x βQu = βQ - true\n Assertions.assertThat(decomposition.Qv.BxB(decomposition.Qu).BeqB(βQ)).isTrue(); // βQv x βQu = βQ - true\n }", "@Test\n public void testFingerprintCorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable1 = null;\n IDoubleArray observable2 = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.fingerprintCorrelation(M, observable1, observable2);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "private native double SumaC(double operador_1, double operador_2);", "@Test\n public void test() {\n Assert.assertEquals(0.83648556F, Problem232.solve(/* change signature to provide required inputs */));\n }", "@Test\n public void testJamaProblem() throws IOException {\n\n Primitive64Store problematic = Primitive64Store.FACTORY\n .rows(new double[][] { { 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 1 }, { 0, 0, 0, 1, 0 }, { 1, 1, 0, 0, 1 }, { 1, 0, 1, 0, 1 } });\n\n CaseEigenvalue.doVerifyGeneral(problematic);\n }", "private static boolean isJamoVTNorm32JamoV(long paramLong)\n/* */ {\n/* 350 */ return paramLong < 4294115328L;\n/* */ }", "Datatype[] internalize(Datatype[] args) throws CCAException;", "private static native void PeiLinNormalization_0(long I_nativeObj, long T_nativeObj);", "private static native long CvSVM_1(long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "@Test \n\tpublic void CheckConvertionsTest1() throws Exception {\n\t\t\n\t\t/** these are non-defined conversions **/\n\t\tassertEquals((double)-1, PortionSearchEngine.CheckConvertions(\"kilocalories\", 1.0),0.01);\n\t\tassertEquals((double)-1, PortionSearchEngine.CheckConvertions(\"bamba\", 1.0),0.01);\n\n\t\t/** these are defined conversions **/\n\t\tassertEquals((double)28.3495, PortionSearchEngine.CheckConvertions(\"ounce\", 1.0),0.01);\n\t\tassertEquals((double)28.3495, PortionSearchEngine.CheckConvertions(\"ounces\", 1.0),0.01);\n\t\tassertEquals((double)3.7854, PortionSearchEngine.CheckConvertions(\"gallon\", 1.0),0.01);\n\t\t\n\t\t/** these suppose to return -1 as these are trivial conversions **/\n\t\tassertEquals((double)-1, PortionSearchEngine.CheckConvertions(\"grams\", 1.0),0.01);\n\t\tassertEquals((double)-1, PortionSearchEngine.CheckConvertions(\"kilograms\", 1.0),0.01);\n\t\tassertEquals((double)-1, PortionSearchEngine.CheckConvertions(\"milligrams\", 1.0),0.01);\n\t\t\n\t\t\n\t}", "protected abstract boolean mo1601a(C2175k c2175k, long j, C2232a c2232a);", "boolean mo25265c();", "@Test\n public void decompositionShape() {\n checkDecomposition(5, 5 ,false);\n checkDecomposition(10, 5,false);\n checkDecomposition(5, 10,false);\n checkDecomposition(5, 5 ,true);\n checkDecomposition(10, 5,true);\n checkDecomposition(5, 10,true);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "@Test\n public void testPropEdgeCaseBinaryData() throws Exception {\n /* Test with value greater than p = 1.0 */\n int[] result = NoiseGenerator.randomBinaryData(10,1.10);\n Assert.assertTrue(result == null);\n }", "@LargeTest\n public void testIntrinsicsConvolve3x3() {\n TestAction ta = new TestAction(TestName.INTRINSICS_CONVOLVE_3X3);\n runTest(ta, TestName.INTRINSICS_CONVOLVE_3X3.name());\n }", "private void testWithBacktrackingInput(LcssAlgorithm algorithm) {\n\t}", "@Test\n public void testExampleInputs() {\n CheckSum checkSum = new CheckSum();\n Integer[][] testData = new Integer[][]{\n { 5, 9, 2, 8 },\n { 9, 4, 7,3 },\n { 3, 8, 6, 5},\n };\n\n Integer result = checkSum.checksum(testData);\n System.out.printf(\"Result \" + result);\n assertEquals(new Integer(9), result);\n }", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "@Test\n @Tag(\"bm1000\")\n public void testAFIRO() {\n\n // CPLEX MIN OPTIMAL -464.7531428571429 @ { 8E+1, 25.5, 54.5, 84.80, 18.21428571428572, 0, 0, 0, 0, 0, 0, 0, 18.21428571428572, 0, 19.30714285714286, 5E+2, 475.92, 24.08, 0, 215, 0, 0, 0, 0, 0, 0, 0, 0, 339.9428571428572, 383.9428571428572, 0, 0 }\n\n // Before shift\n // [80.0, 25.499999999999993, 54.5, 0.0, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 0.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0, 0.0, 0.0, 512.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 556.1746428571429, 0.0, 280.6928571428572, 0.0, 61.78571428571429, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]\n\n // After shift\n // [80.0, 25.499999999999993, 54.5, 84.8, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 500.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0, 0.0, 0.0, 512.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 556.1746428571429, 0.0, 280.6928571428572, 0.0, 61.78571428571429, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]\n // OPTIMAL -819.096 @ { 80.0, 25.499999999999993, 54.5, 84.8, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 500.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0, 0.0, 0.0, 512.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 556.1746428571429, 0.0, 280.6928571428572, 0.0, 61.78571428571429, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }\n\n // Mapped\n // OPTIMAL NaN @ { 80.0, 25.499999999999993, 54.5, 84.8, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 500.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0 }\n\n // Result\n // OPTIMAL -630.6960000000001 @ { 8E+1, 25.49999999999999, 54.5, 84.8, 18.21428571428571, 0, 0, 0, 0, 0, 0, 0, 18.21428571428571, 0, 19.30714285714285, 5E+2, 651.9200000000001, 24.07999999999999, 0, 215, 0, 0, 0, 0, 0, 0, 0, 0, 465.657142857143, 561.6571428571428, 0, 0 }\n\n // CPLEX MAX OPTIMAL 3438.2920999999997 @ { 54.5, 0, 54.5, 57.77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5E+2, 483.5955, 16.4045, 0, 215, 0, 0, 0, 0, 0, 0, 0, 0, 345.4253571428571, 0, 0, 389.4253571428571 }\n\n CuteNetlibCase.doTest(\"AFIRO.SIF\", \"-464.7531428571429\", \"3438.2920999999997\", NumberContext.of(7, 4));\n }", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "@Test\n public void testCheckTriType() {\n System.out.println(\"checkTriType\");\n double[] a = {1 , 5 , 4 , 100};\n double[] b = {1 , 5 , 3 , 5 };\n double[] c = {1 , 8 , 2 , 6 };\n SVV01 instance = new SVV01();\n String[] expResult = {\"Equilateral Triangle\",\"Isosceles Triangle\",\"Scalene\",\"Invalid\"};\n \n for ( int i = 0 ; i < 4 ; i++ ){\n String result = instance.checkTriType(a[i], b[i], c[i]);\n assertEquals(expResult[i], result);\n }\n }", "@Test\n public void testFingerprintAutocorrelation()\n {\n IDoubleArray M = null;\n IDoubleArray observable = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.fingerprintAutocorrelation(M, observable);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "boolean mo6498O(C41531v c41531v);", "public static native boolean Valid(long lpjFbxDataType);", "boolean mo44966c();", "@Test\r\n public void testConvertResults1() {\r\n System.out.println(\"convertResults1\");\r\n int[] results = new int[]{1,2,3,4,5};\r\n boolean[] prime = new boolean[]{true, true, true, false, true};\r\n int[] expResult = {1,2,3,5};\r\n int[] result = Sieve.convertResults(results, prime);\r\n assertArrayEquals(expResult, result);\r\n }", "@Test\n\tpublic void CheckConvertionsTest2() throws Exception{\n\t\t\n\t\t/** an example for a pre-defined trivial conversion in the converter,\n\t\t * grams conversion to grams is defined in our converter **/\n\t\tJSONObject res = PortionRequestGen.readJsonFromUrl(\"https://api.nal.usda.gov/ndb/reports/?ndbno=45094075&type=b&format=json&api_key=Unjc2Z4luZu0sKFBGflwS7cnxEiU83YygiIU37Ul\");\n\t\tassertEquals((double)2/8,PortionSearchEngine.ComputeRate(\"bacon\",\"grams\",res.getJSONObject(\"report\").getJSONObject(\"food\").getString(\"name\"),\n\t\t\t\t\t\tPortionSearchEngine.CheckConvertions(\"grams\",2)>=0),0.01);\n\t\t\n\t\t/** an example for a pre-defined non-trivial conversion in the converter,\n\t\t * for SOLID foods,\n\t\t * ounces conversion to grams is defined in our converter **/\n\t\tres = PortionRequestGen.readJsonFromUrl(\"https://api.nal.usda.gov/ndb/reports/?ndbno=45094075&type=b&format=json&api_key=Unjc2Z4luZu0sKFBGflwS7cnxEiU83YygiIU37Ul\");\n\t\tassertEquals(1+(double)2/8,PortionSearchEngine.ComputeRate(\"bacon\",\"ounce\",res.getJSONObject(\"report\").getJSONObject(\"food\").getString(\"name\"),\n\t\t\t\t\t\tPortionSearchEngine.CheckConvertions(\"ounce\",2)>=0),0.01);\n\t\t\n\t\t/** an example for a pre-defined non-trivial conversion in the converter,\n\t\t * for Liquid foods,\n\t\t * cup conversion to Liters is defined in our converter **/\n\t\tres = PortionRequestGen.readJsonFromUrl(\"https://api.nal.usda.gov/ndb/reports/?ndbno=45240964&type=b&format=json&api_key=Unjc2Z4luZu0sKFBGflwS7cnxEiU83YygiIU37Ul\");\n\t\tassertEquals(1+(double)3/7,PortionSearchEngine.ComputeRate(\"tea\",\"cup\",res.getJSONObject(\"report\").getJSONObject(\"food\").getString(\"name\"),\n\t\t\t\t\t\tPortionSearchEngine.CheckConvertions(\"cups\",2)>=0),0.01);\n\t\t\n\t\t/** an example for non-defined conversion in the converter:\n\t\t * a soda \"can\" is not defined in converter, neither towards liters nor grams **/\n\t\tres = PortionRequestGen.readJsonFromUrl(\"https://api.nal.usda.gov/ndb/reports/?ndbno=14145&type=b&format=json&api_key=Unjc2Z4luZu0sKFBGflwS7cnxEiU83YygiIU37Ul\");\n\t\tassertEquals((double)1/7,PortionSearchEngine.ComputeRate(\"sprite\",\"can\",res.getJSONObject(\"report\").getJSONObject(\"food\").getString(\"name\"),\n\t\t\t\t\t\tPortionSearchEngine.CheckConvertions(\"can\",2)>=0),0.01);\n\t}", "public native boolean Verify(byte[] bArr, byte[] bArr2, byte[] bArr3, int i);", "private static native void anisotropicDiffusion_0(long src_nativeObj, long dst_nativeObj, float alpha, float K, int niters);", "@Test\n public void test() {\n Assert.assertEquals(3L, Problem162.solve(/* change signature to provide required inputs */));\n }", "private static native float predict_0(long nativeObj, long sample_nativeObj, boolean returnDFVal);", "boolean mo6499P(C41531v c41531v);", "private float testMethod() {\n {\n int lI0 = (-1456058746 << mI);\n mD = ((double)(int)(double) mD);\n for (int i0 = 56 - 1; i0 >= 0; i0--) {\n mArray[i0] &= (Boolean.logicalOr(((true ? ((boolean) new Boolean((mZ))) : mZ) || mArray[i0]), (mZ)));\n mF *= (mF * mF);\n if ((mZ ^ true)) {\n mF *= ((float)(int)(float) 267827331.0f);\n mZ ^= ((false & ((boolean) new Boolean(false))) | mZ);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n mZ &= ((mArray[279]) | ((boolean) new Boolean(true)));\n mD -= (--mD);\n for (int i2 = 56 - 1; i2 >= 0; i2--) {\n mF /= (mF - mF);\n mI = (Math.min(((int) new Integer(mI)), (766538816 * (++mI))));\n mF += (mZ ? (mB.a()) : ((! mZ) ? -752042357.0f : (++mF)));\n mJ |= ((long) new Long((-2084191070L + (mJ | mJ))));\n lI0 |= ((int) new Integer(((int) new Integer(mI))));\n if (((boolean) new Boolean(false))) {\n mZ &= (mZ);\n mF *= (mF--);\n mD = (Double.POSITIVE_INFINITY);\n mF += ((float)(int)(float) (-2026938813.0f * 638401585.0f));\n mJ = (--mJ);\n for (int i3 = 56 - 1; i3 >= 0; i3--) {\n mI &= (- mI);\n mD = (--mD);\n mArray[426] = (mZ || false);\n mF -= (((this instanceof Main) ? mF : mF) + 976981405.0f);\n mZ &= ((mZ) & (this instanceof Main));\n }\n mZ ^= (Float.isFinite(-1975953895.0f));\n } else {\n mJ /= ((long) (Math.nextDown(-1519600008.0f)));\n mJ <<= (Math.round(1237681786.0));\n }\n }\n mArray[i0] &= (false || ((1256071300.0f != -353296391.0f) ? false : (mZ ^ mArray[i0])));\n mF *= (+ ((float) mD));\n for (int i2 = 0; i2 < 576; i2++) {\n mD *= ((double) lI0);\n lI0 = (lI0 & (Integer.MIN_VALUE));\n mF -= (--mF);\n }\n if ((this instanceof Main)) {\n mZ ^= ((boolean) new Boolean(true));\n } else {\n {\n int lI1 = (mZ ? (--lI0) : 1099574344);\n mJ >>= (Math.incrementExact(mJ));\n mJ = (~ -2103354070L);\n }\n }\n }\n } else {\n mJ *= (- ((long) new Long(479832084L)));\n mJ %= (Long.MAX_VALUE);\n mD /= (--mD);\n if ((mI > ((mBX.x()) << mI))) {\n {\n long lJ0 = (mJ--);\n mI >>>= (mBX.x());\n }\n mF = (+ 505094603.0f);\n mD *= (((boolean) new Boolean((! false))) ? mD : 1808773781.0);\n mI *= (Integer.MIN_VALUE);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n if (((boolean) new Boolean(false))) {\n mD += ((double)(float)(double) -1051436901.0);\n } else {\n mF -= ((float)(int)(float) (Float.min(mF, (mF--))));\n }\n for (int i2 = 0; i2 < 576; i2++) {\n mJ -= ((long) new Long(-1968644857L));\n mJ ^= (+ (mC.s()));\n }\n }\n } else {\n mF -= ((- mF) + -2145489966.0f);\n }\n mD -= (mD++);\n mD = (949112777.0 * 1209996119.0);\n }\n mZ &= (Boolean.logicalAnd(true, ((mZ) & (((boolean) new Boolean(true)) && true))));\n }\n }\n return ((float) 964977619L);\n }", "@Test\n public void testProbInputBinaryData() throws Exception {\n /* Test with valid value */\n int[] result = NoiseGenerator.randomBinaryData(5,0.5);\n Assert.assertFalse(result == null);\n\n /* Test with invalid value */\n result = NoiseGenerator.randomBinaryData(5,-0.1);\n Assert.assertTrue(result == null);\n\n }", "@Test\n @Tag(\"slow\")\n public void testPDS_02() {\n CuteNetlibCase.doTest(\"PDS-02.SIF\", \"2.885786201E10\", \"2.931365171E10\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "private static native void covarianceEstimation_0(long src_nativeObj, long dst_nativeObj, int windowRows, int windowCols);", "@Test\n public void testFingerprintPerturbation()\n {\n IDoubleArray M = null;\n IDoubleArray p0 = null;\n IDoubleArray observable = null;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.fingerprintPerturbation(M, p0, observable);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "boolean verify(byte[] expected);", "public void checkData2019() {\n\n }", "@Test\n public void testGitHUbIssue366() throws IOException {\n\n String path = \"src/test/resources/org/ojalgo/matrix/decomposition/GitHubIssue366_Mat.txt\";\n List<String> lines = Files.lines(Paths.get(path)).collect(Collectors.toList());\n\n Primitive64Store problematic = Primitive64Store.FACTORY.make(lines.size(), lines.size());\n\n for (int r = 0; r < lines.size(); r++) {\n String[] line_vec = lines.get(r).split(\" \");\n for (int c = 0; c < line_vec.length; c++) {\n double v = Double.parseDouble(line_vec[c]);\n problematic.set(r, c, v);\n }\n }\n\n CaseEigenvalue.doVerifyGeneral(problematic);\n }", "public native String passingDataToJni(float[] audio_data, int array_length);", "abstract public boolean alphaConversion();", "@Test\n public void testToBinary() {\n Object[][] datas = new Object[][]{\n {0, \"0\"},\n {5, \"101\"},\n {10, \"1010\"},\n {11, \"1011\"}\n };\n for (Object[] data : datas) {\n String result = Tools.toBinary((int) data[0]); //Actual\n String expResult = (String) data[1]; //Expected\n assertEquals(result, expResult);\n System.out.println(\"testToBinary()\");\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testFIT2P() {\n CuteNetlibCase.doTest(\"FIT2P.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "@Test\n public void testPulkovo19953DegreeGKCM111E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM111E());\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_NumBins = (-3104);\n discretize0.m_MakeBinary = true;\n try { \n discretize0.setInputFormat((Instances) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "Datatype internalize(Datatype arg) throws CCAException;", "boolean mo4831a(C0153fp fpVar);", "@Test\n public void testPulkovo19953DegreeGKCM168E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM168E());\n }", "public abstract double test(ClassifierData<U> testData);", "public static void Main()\n\t{\n\t\tvoid shuru(int * p,int len);\n\t\tvoid paixu(int * p,int len);\n\t\tvoid hebing(int * p1,int * p2);\n\t\tvoid shuchu(int * p,int,int);\n\t\tint m;\n\t\tint n;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tm = Integer.parseInt(tempVar);\n\t\t}\n\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\tif (tempVar2 != null)\n\t\t{\n\t\t\tn = Integer.parseInt(tempVar2);\n\t\t}\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p1,*p2;\n\t\tint p1;\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p2;\n\t\tint p2;\n\t\tint[] a = {'\\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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tint[] b = {'\\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, 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, 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\tp1 = a;\n\t\tp2 = b;\n\ttangible.RefObject<Integer> tempRef_p1 = new tangible.RefObject<Integer>(p1);\n\t\tshuru(tempRef_p1, m);\n\t\tp1 = tempRef_p1.argValue;\n\ttangible.RefObject<Integer> tempRef_p2 = new tangible.RefObject<Integer>(p2);\n\t\tshuru(tempRef_p2, n);\n\t\tp2 = tempRef_p2.argValue;\n\ttangible.RefObject<Integer> tempRef_p12 = new tangible.RefObject<Integer>(p1);\n\t\tpaixu(tempRef_p12, m);\n\t\tp1 = tempRef_p12.argValue;\n\ttangible.RefObject<Integer> tempRef_p22 = new tangible.RefObject<Integer>(p2);\n\t\tpaixu(tempRef_p22, n);\n\t\tp2 = tempRef_p22.argValue;\n\ttangible.RefObject<Integer> tempRef_p13 = new tangible.RefObject<Integer>(p1);\n\ttangible.RefObject<Integer> tempRef_p23 = new tangible.RefObject<Integer>(p2);\n\t\thebing(tempRef_p13, tempRef_p23);\n\t\tp2 = tempRef_p23.argValue;\n\t\tp1 = tempRef_p13.argValue;\n\ttangible.RefObject<Integer> tempRef_p14 = new tangible.RefObject<Integer>(p1);\n\t\tshuchu(tempRef_p14, m, n);\n\t\tp1 = tempRef_p14.argValue;\n\t}", "@Test\n public void testPulkovo19953DegreeGKCM81E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM81E());\n }", "public native double testyolo(String imgfile);", "@Test\n public void testPulkovo19953DegreeGKCM168W() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM168W());\n }", "@Test\n public final void testGetLong() {\n String msg2 = \"get(long) illegal arguments check failed.\";\n\n boolean[] a1_a = new boolean[1023];\n boolean[] a1_1_a = new boolean[320];\n boolean[] a1_2_a = new boolean[621];\n boolean[] a1_3_a = new boolean[82];\n boolean[] a2_a = new boolean[2048];\n boolean[] a2_1_a = new boolean[641];\n boolean[] a2_2_a = new boolean[490];\n boolean[] a2_3_a = new boolean[690];\n boolean[] a2_4_a = new boolean[317];\n for (int i = 0; i < a1_a.length; i++) {\n a1_a[i] = (i % 17 == 0);\n }\n {\n int c = 17, i = 0, s;\n for (s = i; (i - s) < a1_1_a.length; i++) {\n a1_1_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a1_2_a.length; i++) {\n a1_2_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a1_3_a.length; i++) {\n a1_3_a[i - s] = (i % c == 0);\n }\n }\n for (int i = 0; i < a2_a.length; i++) {\n a2_a[i] = (i % 19 == 0);\n }\n {\n int c = 19, i = 0, s;\n for (s = i; (i - s) < a2_1_a.length; i++) {\n a2_1_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a2_2_a.length; i++) {\n a2_2_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a2_3_a.length; i++) {\n a2_3_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a2_4_a.length; i++) {\n a2_4_a[i - s] = (i % c == 0);\n }\n }\n\n MemoryBitList a1_1 = new MemoryBitList(a1_1_a);\n MemoryBitList a1_2 = new MemoryBitList(a1_2_a);\n MemoryBitList a1_3 = new MemoryBitList(a1_3_a);\n SequenceBitList a1 = new SequenceBitList();\n a1.add(new SimpleRange(a1_1, 0, a1_1.length()));\n a1.add(new SimpleRange(a1_2, 0, a1_2.length()));\n a1.add(new SimpleRange(a1_3, 0, a1_3.length()));\n\n MemoryBitList a2_1 = new MemoryBitList(a2_1_a);\n MemoryBitList a2_2 = new MemoryBitList(a2_2_a);\n MemoryBitList a2_3 = new MemoryBitList(a2_3_a);\n MemoryBitList a2_4 = new MemoryBitList(a2_4_a);\n SequenceBitList a2 = new SequenceBitList();\n a2.add(new SimpleRange(a2_1, 0, a2_1.length()));\n a2.add(new SimpleRange(a2_2, 0, a2_2.length()));\n a2.add(new SimpleRange(a2_3, 0, a2_3.length()));\n a2.add(new SimpleRange(a2_4, 0, a2_4.length()));\n\n LargeBitListTest.testGetLongInner(a1, 0, a1_a);\n LargeBitListTest.testGetLongInner(a2, 0, a2_a);\n\n try {\n a1.get(a1_a.length);\n fail(msg2);\n } catch (IndexOutOfBoundsException ex) {\n //OK\n }\n\n try {\n a1.get(-1);\n fail(msg2);\n } catch (IndexOutOfBoundsException ex) {\n //OK\n }\n }", "@Test\n public void integral_isCorrect() {\n }", "@Test\n public void testPulkovo19953DegreeGKCM120E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM120E());\n }", "@Test\n public void test02() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(4956.642689288169, 1711.029259737);\n Log1p log1p0 = new Log1p();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = regulaFalsiSolver0.solve(2044, (UnivariateRealFunction) log1p0, (-517.825700479), (double) 0, 1711.029259737, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\n }", "@Test\n public void testInvalidScalingPerturbDataSet() throws Exception {\n int[] result = NoiseGenerator.perturbDataSet(dataSet, -1);\n Assert.assertTrue(result == null);\n }", "public abstract boolean mo2163j();", "public native void nativeDataIsRecorded(int i, long j);", "@org.junit.Test(expected = IllegalArgumentException.class)\n public void testNumeroCaracteresDiferenteDeOnze() {\n System.out.println(\"verificaCPF\");\n int[] cpf = {5, 1, 7, 1, 8};\n CPF.verificaCPF(cpf);\n }", "boolean mo202j();", "private static native long createDisparityWLSFilterGeneric_0(boolean use_confidence);", "@Test\n public void testPulkovo19953DegreeGKCM144E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM144E());\n }", "@Test\n public void testPulkovo19953DegreeGKCM171E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM171E());\n }", "@Test\n public void testPulkovo19953DegreeGKCM141E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM141E());\n }", "private void createFPdataConvPrec(Code32 code, int opCode, int cond, int Vd, int Vm, boolean toSingle) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode | (7 << 16);\r\n\t\tif (toSingle) code.instructions[code.iCount] |= (1 << 8) | (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\telse code.instructions[code.iCount] |= ((Vd&0xf) << 12) | ((Vd>>4) << 22) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\tcode.incInstructionNum();\r\n\t}", "@Test\n public void testPulkovo19953DegreeGKCM171W() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM171W());\n }", "@Test\n public void testPulkovo19953DegreeGKCM33E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM33E());\n }", "@Test\n public void testPulkovo19953DegreeGKCM132E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM132E());\n }", "protected void testVoodoo()\n\t{\n\t\tArrayTemperature at = new ArrayTemperature();\n\t\tint adu;\n\t\tdouble calc_temperature;\n\n//diddly\t\tArrayTemperature.set_algorithm(\"nonlinear\");\n\t\tadu = at.calculate_adu(temperature);\n\t\tSystem.out.println(this.getClass().getName()+\":Voodoo adu = \"+adu);\n//\t\tadu = 0xc60;// 0xc60 is what ccd_text returns.\n//\t\tcalc_temperature = at.calculate_temperature(adu); \n//\t\tSystem.out.println(this.getClass().getName()+\":Voodoo:adu = \"+adu+\", calculated temperature = \"+\n//\t\t\tcalc_temperature);\n\n\t}", "private static native void transformFD_0(long src_nativeObj, long t_nativeObj, long dst_nativeObj, boolean fdContour);", "public static NormalizerBase.QuickCheckResult quickCheck(char[] paramArrayOfChar, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, boolean paramBoolean, UnicodeSet paramUnicodeSet)\n/* */ {\n/* 819 */ ComposePartArgs localComposePartArgs = new ComposePartArgs(null);\n/* */ \n/* 821 */ int m = paramInt1;\n/* */ \n/* 823 */ if (!isDataLoaded) {\n/* 824 */ return NormalizerBase.MAYBE;\n/* */ }\n/* */ \n/* 827 */ int i = 0xFF00 | paramInt4;\n/* 828 */ NormalizerBase.QuickCheckResult localQuickCheckResult = NormalizerBase.YES;\n/* 829 */ int k = 0;\n/* */ \n/* */ for (;;)\n/* */ {\n/* 833 */ if (paramInt1 == paramInt2)\n/* 834 */ return localQuickCheckResult;\n/* 835 */ char c1; long l1; if (((c1 = paramArrayOfChar[(paramInt1++)]) < paramInt3) || \n/* 836 */ (((l1 = getNorm32(c1)) & i) == 0L))\n/* */ {\n/* */ \n/* 839 */ k = 0;\n/* */ }\n/* */ else\n/* */ {\n/* */ char c2;\n/* 844 */ if (isNorm32LeadSurrogate(l1))\n/* */ {\n/* 846 */ if ((paramInt1 != paramInt2) && (UTF16.isTrailSurrogate(c2 = paramArrayOfChar[paramInt1]))) {\n/* 847 */ paramInt1++;\n/* 848 */ l1 = getNorm32FromSurrogatePair(l1, c2);\n/* */ } else {\n/* 850 */ l1 = 0L;\n/* 851 */ c2 = '\\000';\n/* */ }\n/* */ } else {\n/* 854 */ c2 = '\\000';\n/* */ }\n/* 856 */ if (nx_contains(paramUnicodeSet, c1, c2))\n/* */ {\n/* 858 */ l1 = 0L;\n/* */ }\n/* */ \n/* */ \n/* 862 */ int j = (char)(int)(l1 >> 8 & 0xFF);\n/* 863 */ if ((j != 0) && (j < k)) {\n/* 864 */ return NormalizerBase.NO;\n/* */ }\n/* 866 */ k = j;\n/* */ \n/* */ \n/* 869 */ long l2 = l1 & paramInt4;\n/* 870 */ if ((l2 & 0xF) >= 1L) {\n/* 871 */ localQuickCheckResult = NormalizerBase.NO;\n/* 872 */ break; }\n/* 873 */ if (l2 != 0L)\n/* */ {\n/* 875 */ if (paramBoolean) {\n/* 876 */ localQuickCheckResult = NormalizerBase.MAYBE;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* 883 */ int i1 = paramInt4 << 2 & 0xF;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 888 */ int n = paramInt1 - 1;\n/* 889 */ if (UTF16.isTrailSurrogate(paramArrayOfChar[n]))\n/* */ {\n/* */ \n/* 892 */ n--;\n/* */ }\n/* 894 */ n = findPreviousStarter(paramArrayOfChar, m, n, i, i1, (char)paramInt3);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 900 */ paramInt1 = findNextStarter(paramArrayOfChar, paramInt1, paramInt2, paramInt4, i1, (char)paramInt3);\n/* */ \n/* */ \n/* */ \n/* 904 */ localComposePartArgs.prevCC = k;\n/* */ \n/* */ \n/* 907 */ char[] arrayOfChar = composePart(localComposePartArgs, n, paramArrayOfChar, paramInt1, paramInt2, paramInt5, paramUnicodeSet);\n/* */ \n/* */ \n/* 910 */ if (0 != strCompare(arrayOfChar, 0, localComposePartArgs.length, paramArrayOfChar, n, paramInt1, false)) {\n/* 911 */ localQuickCheckResult = NormalizerBase.NO;\n/* 912 */ break;\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 919 */ return localQuickCheckResult;\n/* */ }", "@Test @Ignore public void testBinaryWithNA() {\n String[] data = new String[] {\n \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\",\n \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\",\n \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\",\n \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\",\n \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\",\n \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"T\", \"F\", \"0\",\n };\n\n double[][] exp = new double[][] {\n ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN),\n ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN),\n ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN),\n ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN),\n ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN),\n ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(Double.NaN), ard(1), ard(0), ard(Double.NaN),\n };\n\n for (char separator : SEPARATORS) {\n String[] dataset = getDataForSeparator(separator, data);\n\n StringBuilder sb1 = new StringBuilder();\n for( String ds : dataset ) sb1.append(ds).append(\"\\n\");\n Key k1 = FVecFactory.makeByteVec(sb1.toString());\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k1);\n testParsed(r1,exp);\n\n StringBuilder sb2 = new StringBuilder();\n for( String ds : dataset ) sb2.append(ds).append(\"\\r\\n\");\n Key k2 = FVecFactory.makeByteVec(sb2.toString());\n Key r2 = Key.make(\"r2\");\n ParseDataset.parse(r2, k2);\n testParsed(r2,exp);\n }\n }", "private static native long createContourFitting_0(int ctr, int fd);", "@Test\n public void testPulkovo19953DegreeGKCM153E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM153E());\n }", "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "@Test\n public void testPulkovo19953DegreeGKCM165E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM165E());\n }", "boolean mo54431c();", "@Test\n public void testPulkovo19953DegreeGKCM147E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM147E());\n }", "private void createFPdataConv(Code32 code, int opCode, int cond, int Vd, int Vm, int opc, int op, boolean single) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif ((opc & 4) != 0) {\t// to integer\r\n\t\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t\telse code.instructions[code.iCount] |= (1 << 8) | (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\t} else {\t// to floating point\r\n\t\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t\telse code.instructions[code.iCount] |= (1 << 8) | ((Vd&0xf) << 12) | ((Vd>>4) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t}\r\n\t\tcode.incInstructionNum();\r\n\t}", "@Test\n public void testPulkovo19953DegreeGKCM21E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM21E());\n }", "@Test\n public void testPulkovo19953DegreeGKCM24E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM24E());\n }", "@Test\r\n public void testConvertResults2() {\r\n System.out.println(\"convertResults2\");\r\n int[] results = new int[]{1,2,3,4,5,6,7,8,9,10};\r\n boolean[] prime = new boolean[]{true, true, true, false, true, false, true, false, false, false};\r\n int[] expResult = {1,2,3,5,7};\r\n int[] result = Sieve.convertResults(results, prime);\r\n assertArrayEquals(expResult, result);\r\n }", "@Test\n public void testPulkovo19953DegreeGKCM108E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM108E());\n }", "@Test\n public void testPulkovo19953DegreeGKCM51E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM51E());\n }", "double[] decode(T solution);", "@Test\n public void testPulkovo19953DegreeGKCM102E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM102E());\n }", "@Test\n public void testPulkovo19953DegreeGKCM66E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM66E());\n }", "@Test\n public void testPulkovo19953DegreeGKCM162E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM162E());\n }", "@Test void test1() {\n\t\tAztecCode marker = new AztecEncoder().addUpper(\"C\").addPunctuation(\"!!!\").addDigit(\"0\").addPunctuation(\"!!\").fixate();\n\t\tclearMarker(marker);\n\n\t\tassertTrue(new AztecDecoder().process(marker));\n\n\t\tassertEquals(\"C!!!0!!\", marker.message);\n\t\tassertEquals(0, marker.totalBitErrors);\n\t}" ]
[ "0.5516", "0.55037755", "0.54590434", "0.53641146", "0.5316266", "0.53103113", "0.5292421", "0.525552", "0.5246886", "0.51851946", "0.5174252", "0.5143999", "0.5135984", "0.51224816", "0.5120413", "0.51140326", "0.51000625", "0.5092088", "0.50794834", "0.5075834", "0.5073415", "0.5069921", "0.50657195", "0.50597066", "0.5053056", "0.50469935", "0.50440145", "0.50419337", "0.503692", "0.5023102", "0.5022912", "0.50062895", "0.5003744", "0.4998221", "0.49953273", "0.49822694", "0.49732977", "0.49623767", "0.49547738", "0.49435914", "0.49370337", "0.49312413", "0.49241346", "0.4913331", "0.491309", "0.49130595", "0.49111745", "0.49099267", "0.49047816", "0.49043363", "0.48948073", "0.4885772", "0.4881228", "0.4875286", "0.4865438", "0.48616642", "0.4859051", "0.48574516", "0.48567176", "0.48547557", "0.48542055", "0.48461685", "0.48425084", "0.48422706", "0.48378405", "0.48245487", "0.48201284", "0.48179564", "0.48173174", "0.481027", "0.48080742", "0.48041856", "0.48011085", "0.4796229", "0.47943258", "0.47942203", "0.47937137", "0.47917426", "0.47878835", "0.4787831", "0.4787746", "0.4787689", "0.47869596", "0.47850373", "0.4777213", "0.47766283", "0.4771935", "0.47709626", "0.47683644", "0.4766836", "0.47659636", "0.47623742", "0.4759154", "0.47569242", "0.4756779", "0.47529644", "0.47519588", "0.47512698", "0.47491324", "0.47450486", "0.47444838" ]
0.0
-1
Insert the method's description here. Creation date: (22.01.2003 17:16:07)
public java.lang.String getChargecurrency() { return chargecurrency; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo21877s() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21785J() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "public void mo97908d() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo4359a() {\n }", "public void mo21880v() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void date()\n {\n }", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "public void mo44053a() {\n }", "public void mo115190b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21780E() {\n }", "public void mo56167c() {\n }", "public final void mo51373a() {\n }", "public void mo2471e() {\n }", "public void mo1405e() {\n }", "public void mo21792Q() {\n }", "public void method_115() {}", "public void mo9848a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo12930a() {\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}", "public void mo21787L() {\n }", "public void method(){}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21784I() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo6944a() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo9233aH() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo1531a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1403c() {\n }", "public void mo21781F() {\n }", "public void mo21786K() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void m23075a() {\n }", "public void mo5382o() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo5248a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void getStatus() {\n\t\t\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo23813b() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "private stendhal() {\n\t}", "public void mo21800a() {\n }", "public void mo1406f() {\n }", "public void mo97906c() {\n }", "public void method_202() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void mo2470d() {\n }", "public void mo12628c() {\n }", "public void method_199() {}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public void mo9241ay() {\n }" ]
[ "0.68432975", "0.664987", "0.6602013", "0.6587023", "0.6579778", "0.65627337", "0.6538055", "0.6516662", "0.6508371", "0.64834434", "0.6467098", "0.6456584", "0.6442884", "0.6442884", "0.6430357", "0.64110154", "0.6403695", "0.6395434", "0.639327", "0.6386246", "0.6372931", "0.63705355", "0.6370059", "0.6370059", "0.6370059", "0.6370059", "0.6370059", "0.6370059", "0.6370059", "0.63452095", "0.6335747", "0.6331644", "0.63255984", "0.63207483", "0.63124853", "0.63101107", "0.6302356", "0.63014525", "0.6293288", "0.62905955", "0.62776375", "0.6275026", "0.6252691", "0.62341857", "0.62245935", "0.62129796", "0.62102365", "0.62053883", "0.6194944", "0.6194461", "0.61891514", "0.61861825", "0.6182419", "0.61778283", "0.61778283", "0.61686516", "0.6167722", "0.61592585", "0.6158193", "0.6149686", "0.61472946", "0.6145151", "0.6142205", "0.6119632", "0.61093175", "0.6107857", "0.61003464", "0.60987556", "0.6091487", "0.6082112", "0.607814", "0.6078008", "0.606988", "0.60623497", "0.60591507", "0.6051456", "0.6036363", "0.60342294", "0.60308576", "0.6023904", "0.6022422", "0.6009301", "0.6008245", "0.6007969", "0.60039616", "0.60028356", "0.6000956", "0.5995243", "0.5988292", "0.59859496", "0.59821004", "0.5981773", "0.59759605", "0.5964529", "0.5955117", "0.5949435", "0.59467256", "0.5946718", "0.59456056", "0.5935811", "0.593226" ]
0.0
-1
Insert the method's description here. Creation date: (22.01.2003 17:16:07)
public java.sql.Date getChargedate() { return chargedate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo21877s() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21785J() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "public void mo97908d() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo4359a() {\n }", "public void mo21880v() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void date()\n {\n }", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "public void mo44053a() {\n }", "public void mo115190b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21780E() {\n }", "public void mo56167c() {\n }", "public final void mo51373a() {\n }", "public void mo2471e() {\n }", "public void mo1405e() {\n }", "public void method_115() {}", "public void mo21792Q() {\n }", "public void mo9848a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo12930a() {\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}", "public void mo21787L() {\n }", "public void method(){}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21784I() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo6944a() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo9233aH() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo1531a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1403c() {\n }", "public void mo21781F() {\n }", "public void mo21786K() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void m23075a() {\n }", "public void mo5382o() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo5248a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n public void memoria() {\n \n }", "public void mo23813b() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "private stendhal() {\n\t}", "public void mo21800a() {\n }", "public void mo1406f() {\n }", "public void mo97906c() {\n }", "public void method_202() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void mo2470d() {\n }", "public void mo12628c() {\n }", "public void method_199() {}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public void mo9241ay() {\n }" ]
[ "0.68424094", "0.6649184", "0.6602773", "0.6587632", "0.65799856", "0.65626943", "0.6538207", "0.65172935", "0.65085304", "0.64834446", "0.64671665", "0.6456464", "0.64417917", "0.64417917", "0.6430361", "0.6410702", "0.6403384", "0.63956785", "0.63931715", "0.6386745", "0.6372913", "0.63712966", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.6344135", "0.63362175", "0.6331689", "0.6325496", "0.63199705", "0.6312611", "0.6310157", "0.63024014", "0.6301138", "0.629332", "0.62910014", "0.62782156", "0.62750167", "0.62517834", "0.6234158", "0.6225195", "0.6212622", "0.62105906", "0.6206143", "0.6195225", "0.6194828", "0.61893266", "0.6185668", "0.61821705", "0.61774075", "0.61774075", "0.61689806", "0.61676145", "0.61598825", "0.61575484", "0.6149852", "0.6146838", "0.61437726", "0.61428434", "0.6120132", "0.61093867", "0.6107991", "0.61004716", "0.6099099", "0.6091945", "0.6082167", "0.6078591", "0.60779744", "0.60688823", "0.606186", "0.60586923", "0.60513484", "0.60366976", "0.6033155", "0.6031469", "0.60238427", "0.60225666", "0.6008452", "0.60084164", "0.60059404", "0.6004039", "0.6002598", "0.6001173", "0.5994813", "0.5988273", "0.5985932", "0.59830016", "0.5982533", "0.5976977", "0.59650475", "0.59551567", "0.59496653", "0.59469527", "0.59462225", "0.5946125", "0.5935084", "0.59331423" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public java.lang.String getCurr1() { return curr1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void method(){}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21786K() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void method_199() {}", "public void mo97906c() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6907132", "0.6772146", "0.6572158", "0.65519744", "0.65359044", "0.65359044", "0.65359026", "0.65203273", "0.6519876", "0.6511243", "0.65096396", "0.6503358", "0.64885217", "0.64524376", "0.6439856", "0.64261055", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.6411659", "0.6397709", "0.63835007", "0.63832754", "0.63826084", "0.6379005", "0.63781524", "0.63775826", "0.63676447", "0.63511294", "0.63279057", "0.6322195", "0.6322195", "0.6319324", "0.6305343", "0.63018733", "0.62997556", "0.62923384", "0.6286641", "0.62857866", "0.6279629", "0.6273536", "0.62542224", "0.625224", "0.62380564", "0.62120074", "0.6211425", "0.62113523", "0.62047553", "0.61989427", "0.6194766", "0.6189088", "0.6175073", "0.6174578", "0.61663765", "0.61611897", "0.6155196", "0.61480224", "0.61473846", "0.6145583", "0.61414", "0.6140901", "0.6129384", "0.612186", "0.6121324", "0.61196923", "0.611815", "0.61138165", "0.6112505", "0.60915434", "0.6091342", "0.607892", "0.6071329", "0.606952", "0.60670674", "0.6066822", "0.6061774", "0.60492057", "0.60476786", "0.6032339", "0.602411", "0.60220814", "0.60130966", "0.6011009", "0.601044", "0.600481", "0.5994324", "0.59907377", "0.5987108", "0.5979956", "0.5970062", "0.596236", "0.5960736", "0.59575063", "0.59569234", "0.5956681", "0.59536886", "0.5951624" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public java.lang.String getCurr2() { return curr2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21878t() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo115188a() {\n }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "public void method(){}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "public void mo2471e() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo9137b() {\n }", "public void mo1405e() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21786K() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void mo97906c() {\n }", "public void method_199() {}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6906343", "0.67726165", "0.6573514", "0.6553356", "0.65377474", "0.6534764", "0.6534764", "0.65212333", "0.65208334", "0.65128636", "0.65107834", "0.65044796", "0.6489722", "0.64542454", "0.64414793", "0.6427734", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.6411286", "0.6399572", "0.63852805", "0.6384604", "0.63844895", "0.6380861", "0.63790584", "0.63779104", "0.636934", "0.63527215", "0.6329572", "0.63230014", "0.63230014", "0.6320124", "0.63060147", "0.63034326", "0.63011193", "0.62942594", "0.62886673", "0.6287377", "0.628029", "0.62740713", "0.62559074", "0.6254079", "0.6238444", "0.6213367", "0.62130535", "0.6211601", "0.6203478", "0.62007964", "0.6193621", "0.61892223", "0.61762357", "0.61748445", "0.6166767", "0.61618054", "0.61572206", "0.6149305", "0.6148976", "0.6147272", "0.6142671", "0.6142481", "0.6131224", "0.6122485", "0.6122484", "0.61193144", "0.61178774", "0.61143625", "0.61134267", "0.6093353", "0.6090953", "0.60804415", "0.60710347", "0.60696924", "0.60686743", "0.6068091", "0.60639864", "0.6050454", "0.60482585", "0.6034144", "0.6025727", "0.60217893", "0.6012873", "0.60127556", "0.60103786", "0.60064346", "0.5994422", "0.599047", "0.59868544", "0.59795237", "0.5970137", "0.59627646", "0.59604996", "0.5958594", "0.59578156", "0.59572726", "0.59552395", "0.59515303" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public BigDecimal getCurrency1() { return currency1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "public void method(){}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void mo6944a() {\n }", "public void method_115() {}", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo5382o() {\n }", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo97906c() {\n }", "public void method_199() {}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6905348", "0.6772734", "0.65721023", "0.655192", "0.653642", "0.65358925", "0.65358925", "0.6520979", "0.6519772", "0.6511269", "0.65086603", "0.6503619", "0.64897674", "0.6452818", "0.6440322", "0.64263093", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.6409864", "0.63980335", "0.63839436", "0.6383238", "0.6382867", "0.63789594", "0.6378958", "0.63780856", "0.6367915", "0.63513243", "0.6328617", "0.63231367", "0.63231367", "0.6321168", "0.63064307", "0.6301332", "0.63004756", "0.62928444", "0.6286982", "0.6285931", "0.62810326", "0.6274102", "0.6254041", "0.6252297", "0.62392145", "0.62118727", "0.6211288", "0.6209258", "0.62027335", "0.61992496", "0.6193231", "0.6188811", "0.61758715", "0.61727005", "0.61671555", "0.61623025", "0.6155288", "0.6147672", "0.61464435", "0.6145647", "0.6142493", "0.6141256", "0.6129807", "0.6122736", "0.61208653", "0.6120711", "0.6119287", "0.6114373", "0.6112959", "0.6091729", "0.6091678", "0.6079032", "0.60722303", "0.60697454", "0.60678893", "0.6067222", "0.6062528", "0.60495824", "0.60494924", "0.60329455", "0.60251266", "0.6021675", "0.60132635", "0.6012163", "0.60109633", "0.6005491", "0.59956896", "0.5990497", "0.59851724", "0.59785897", "0.5968459", "0.59625614", "0.5961464", "0.59572047", "0.5956912", "0.5956365", "0.5954933", "0.59493726" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public BigDecimal getCurrency2() { return currency2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo115188a() {\n }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void method(){}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo9233aH() {\n }", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void method_199() {}", "public void mo97906c() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6907308", "0.67723054", "0.65728635", "0.6551688", "0.65366143", "0.65366143", "0.65361696", "0.65205264", "0.6520153", "0.6511162", "0.65095305", "0.65037286", "0.6488789", "0.64527947", "0.6440294", "0.6426218", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6412305", "0.6397984", "0.6383695", "0.6383116", "0.63829577", "0.63793993", "0.6378833", "0.63779753", "0.63682604", "0.63515764", "0.63281417", "0.63236284", "0.63236284", "0.6320362", "0.6305733", "0.6302296", "0.63000554", "0.62934124", "0.6287046", "0.62862897", "0.6280214", "0.62740177", "0.62542367", "0.6252364", "0.6238338", "0.62125534", "0.6212159", "0.62117547", "0.6203853", "0.61995393", "0.61946905", "0.6188578", "0.6175215", "0.6174995", "0.6167494", "0.6162273", "0.61556154", "0.61484015", "0.6147664", "0.61458695", "0.61425734", "0.6141421", "0.6130057", "0.6122489", "0.6121326", "0.61201334", "0.6117943", "0.61140317", "0.61122346", "0.609159", "0.6091561", "0.60789937", "0.6072293", "0.6070322", "0.60678434", "0.6067255", "0.6062766", "0.60490805", "0.6047285", "0.6032983", "0.60250074", "0.60226214", "0.6012905", "0.6011209", "0.60110205", "0.6005007", "0.5995247", "0.59903485", "0.59872514", "0.59800255", "0.5970582", "0.59626466", "0.5961614", "0.59587187", "0.59574246", "0.59570855", "0.59543", "0.5951845" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:28:57)
public int getDocpositioncode() { return docpositioncode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo21878t() {\n }", "public void mo21877s() {\n }", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21795T() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void method_201() {}", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\n }", "@Override\r\n\tpublic void method() {\n\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 }", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "public void mo21782G() {\n }", "public void mo115188a() {\n }", "public void mo21783H() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo4359a() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21880v() {\n }", "public void mo115190b() {\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}", "public void mo3749d() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21789N() {\n }", "public void mo21788M() {\n }", "public void mo44053a() {\n }", "public final void mo51373a() {\n }", "public void mo9848a() {\n }", "public void mo21780E() {\n }", "public void mo56167c() {\n }", "@Override\n public void date()\n {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21792Q() {\n }", "public void mo12930a() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo2471e() {\n }", "public void method_115() {}", "public void method(){}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void mo21787L() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1405e() {\n }", "public void mo6944a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void mo9137b() {\n }", "public void mo1531a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo21786K() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo21781F() {\n }", "public void mo1403c() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void m23075a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void mo5382o() {\n }", "private void getStatus() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void method_199() {}", "public Methods() {\n // what is this doing? -PMC\n }", "public void mo97906c() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo21800a() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}" ]
[ "0.69101983", "0.6791895", "0.6611212", "0.65598315", "0.65532875", "0.65507895", "0.65471965", "0.6544774", "0.65442294", "0.6543266", "0.6543266", "0.653407", "0.65053725", "0.647791", "0.64684284", "0.6454775", "0.6418882", "0.6416046", "0.6416046", "0.6416046", "0.6416046", "0.6416046", "0.6416046", "0.6416046", "0.6412711", "0.64087117", "0.6407536", "0.6406735", "0.64029247", "0.640061", "0.6396494", "0.6376927", "0.63737816", "0.6352439", "0.6348559", "0.6347213", "0.6340484", "0.6322651", "0.6321137", "0.6321137", "0.6309141", "0.6292621", "0.62883955", "0.62858766", "0.62842715", "0.62767863", "0.62659687", "0.62442535", "0.6236953", "0.62321335", "0.6227619", "0.6221877", "0.6220472", "0.62121946", "0.6210411", "0.6199521", "0.6194971", "0.61942387", "0.6189562", "0.6185285", "0.61793274", "0.61771727", "0.61743194", "0.61656034", "0.61603737", "0.6157447", "0.61560816", "0.615115", "0.61463517", "0.6136471", "0.6128949", "0.61244774", "0.61240923", "0.61058086", "0.61043775", "0.61042815", "0.6100859", "0.61003196", "0.60881746", "0.60798496", "0.6079326", "0.6077909", "0.60761994", "0.60752076", "0.60477513", "0.6042869", "0.6037658", "0.60252726", "0.602118", "0.601637", "0.6015119", "0.60114837", "0.6010718", "0.6004245", "0.60002834", "0.59970045", "0.59901077", "0.5988688", "0.5981581", "0.5981274", "0.59786916" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public java.lang.String getDocumentNumber() { return documentNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21878t() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo115188a() {\n }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "public void method(){}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "public void mo2471e() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo9137b() {\n }", "public void mo1405e() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21786K() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void mo97906c() {\n }", "public void method_199() {}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6906343", "0.67726165", "0.6573514", "0.6553356", "0.65377474", "0.6534764", "0.6534764", "0.65212333", "0.65208334", "0.65128636", "0.65107834", "0.65044796", "0.6489722", "0.64542454", "0.64414793", "0.6427734", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.6411286", "0.6399572", "0.63852805", "0.6384604", "0.63844895", "0.6380861", "0.63790584", "0.63779104", "0.636934", "0.63527215", "0.6329572", "0.63230014", "0.63230014", "0.6320124", "0.63060147", "0.63034326", "0.63011193", "0.62942594", "0.62886673", "0.6287377", "0.628029", "0.62740713", "0.62559074", "0.6254079", "0.6238444", "0.6213367", "0.62130535", "0.6211601", "0.6203478", "0.62007964", "0.6193621", "0.61892223", "0.61762357", "0.61748445", "0.6166767", "0.61618054", "0.61572206", "0.6149305", "0.6148976", "0.6147272", "0.6142671", "0.6142481", "0.6131224", "0.6122485", "0.6122484", "0.61193144", "0.61178774", "0.61143625", "0.61134267", "0.6093353", "0.6090953", "0.60804415", "0.60710347", "0.60696924", "0.60686743", "0.6068091", "0.60639864", "0.6050454", "0.60482585", "0.6034144", "0.6025727", "0.60217893", "0.6012873", "0.60127556", "0.60103786", "0.60064346", "0.5994422", "0.599047", "0.59868544", "0.59795237", "0.5970137", "0.59627646", "0.59604996", "0.5958594", "0.59578156", "0.59572726", "0.59552395", "0.59515303" ]
0.0
-1
Insert the method's description here. Creation date: (27.06.2002 16:47:06)
public java.util.ArrayList getEditRoles() { java.util.ArrayList roles = new java.util.ArrayList(); roles.add("ArendaMainEconomist"); roles.add("ArendaEconomist"); roles.add("administrator"); return roles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void method_201() {}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\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 }", "public void mo21791P() {\n }", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21825b() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo4359a() {\n }", "public void mo21783H() {\n }", "public void mo97908d() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\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}", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo44053a() {\n }", "public void mo21880v() {\n }", "public void mo21789N() {\n }", "public void mo115190b() {\n }", "public final void mo51373a() {\n }", "public void mo9848a() {\n }", "public void mo21788M() {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\n public void date()\n {\n }", "public void mo21787L() {\n }", "public void mo6944a() {\n }", "public void mo2471e() {\n }", "public void method(){}", "public void method_115() {}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo21784I() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo1405e() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "public void mo9233aH() {\n }", "public void mo9137b() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo1531a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void mo21786K() {\n }", "public void mo1403c() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void method_202() {}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "public void method_199() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo97906c() {\n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n public void salir() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void method_206() {}", "public Methods() {\n // what is this doing? -PMC\n }", "public void mo21800a() {\n }" ]
[ "0.6895961", "0.6798283", "0.66706276", "0.6566597", "0.65554655", "0.6551577", "0.65411264", "0.65276843", "0.65184754", "0.6512862", "0.6506726", "0.6501307", "0.6501307", "0.64865774", "0.64683247", "0.6457474", "0.64460397", "0.64321166", "0.6421181", "0.64138365", "0.64127487", "0.64127487", "0.64127487", "0.64127487", "0.64127487", "0.64127487", "0.64127487", "0.6408808", "0.6406935", "0.6406631", "0.6397522", "0.6393267", "0.63882375", "0.63781804", "0.6371203", "0.6358151", "0.63463724", "0.6322055", "0.63067365", "0.63067365", "0.6302675", "0.6301173", "0.63007927", "0.629891", "0.62915194", "0.6283803", "0.62709475", "0.62683904", "0.62506735", "0.62504613", "0.62305695", "0.6226483", "0.6223193", "0.6212095", "0.6211841", "0.62010807", "0.61984074", "0.61954886", "0.6194208", "0.6186178", "0.6181539", "0.61806643", "0.61785984", "0.6178469", "0.6177914", "0.6173034", "0.61687255", "0.6167534", "0.6156527", "0.615357", "0.61519754", "0.61498785", "0.6148691", "0.613613", "0.6125322", "0.6115341", "0.61088914", "0.61065245", "0.6106475", "0.61059135", "0.6092061", "0.60881484", "0.6070717", "0.60654765", "0.6048171", "0.60426116", "0.60379875", "0.60351074", "0.6030578", "0.6026398", "0.6017104", "0.60142994", "0.6011388", "0.6007171", "0.60022104", "0.5995356", "0.5990011", "0.59872955", "0.5985892", "0.5985539", "0.5980639" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public java.sql.Date getEndDate() { return endDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo115188a() {\n }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void method(){}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo9233aH() {\n }", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void method_199() {}", "public void mo97906c() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6907308", "0.67723054", "0.65728635", "0.6551688", "0.65366143", "0.65366143", "0.65361696", "0.65205264", "0.6520153", "0.6511162", "0.65095305", "0.65037286", "0.6488789", "0.64527947", "0.6440294", "0.6426218", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6412305", "0.6397984", "0.6383695", "0.6383116", "0.63829577", "0.63793993", "0.6378833", "0.63779753", "0.63682604", "0.63515764", "0.63281417", "0.63236284", "0.63236284", "0.6320362", "0.6305733", "0.6302296", "0.63000554", "0.62934124", "0.6287046", "0.62862897", "0.6280214", "0.62740177", "0.62542367", "0.6252364", "0.6238338", "0.62125534", "0.6212159", "0.62117547", "0.6203853", "0.61995393", "0.61946905", "0.6188578", "0.6175215", "0.6174995", "0.6167494", "0.6162273", "0.61556154", "0.61484015", "0.6147664", "0.61458695", "0.61425734", "0.6141421", "0.6130057", "0.6122489", "0.6121326", "0.61201334", "0.6117943", "0.61140317", "0.61122346", "0.609159", "0.6091561", "0.60789937", "0.6072293", "0.6070322", "0.60678434", "0.6067255", "0.6062766", "0.60490805", "0.6047285", "0.6032983", "0.60250074", "0.60226214", "0.6012905", "0.6011209", "0.60110205", "0.6005007", "0.5995247", "0.59903485", "0.59872514", "0.59800255", "0.5970582", "0.59626466", "0.5961614", "0.59587187", "0.59574246", "0.59570855", "0.59543", "0.5951845" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:07:25)
public java.lang.Object[] getFilterParams() { return new Object[] { new LeaseDocPositionKey(getDocpositioncode()) }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_201() {}", "public void method_4270() {}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void mo21877s() {\n }", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo38117a() {\n }", "public void mo21785J() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21783H() {\n }", "public void mo115188a() {\n }", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "public void mo21782G() {\n }", "@Override\r\n\tpublic void method() {\n\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 comer() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "public void mo4359a() {\n }", "public void mo21880v() {\n }", "public void mo21788M() {\n }", "public void mo3749d() {\n }", "public void mo44053a() {\n }", "@Override\n public void date()\n {\n }", "public void mo21789N() {\n }", "public void mo115190b() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21780E() {\n }", "public void mo56167c() {\n }", "public void mo2471e() {\n }", "public void mo9848a() {\n }", "public void method_115() {}", "public void mo21792Q() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "public void mo1405e() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void method(){}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21787L() {\n }", "public void mo12930a() {\n }", "public void mo21784I() {\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}", "public void mo6944a() {\n }", "public void mo9137b() {\n }", "public void mo9233aH() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo1531a() {\n }", "public void mo1403c() {\n }", "public void mo21781F() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo21786K() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void m23075a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo5248a() {\n }", "public void mo5382o() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void mo23813b() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo21800a() {\n }", "public void mo97906c() {\n }", "public void method_202() {}", "public void method_199() {}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void mo6081a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo1406f() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo9241ay() {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public void mo2470d() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "public void method_206() {}", "private stendhal() {\n\t}", "public void gored() {\n\t\t\n\t}" ]
[ "0.69146067", "0.66784525", "0.6628793", "0.66213936", "0.6618172", "0.65989316", "0.6595196", "0.65773326", "0.65684056", "0.6514247", "0.6506832", "0.64799696", "0.6478837", "0.6472365", "0.6472365", "0.647149", "0.6448012", "0.6440284", "0.64383847", "0.6427592", "0.64269614", "0.6426651", "0.6426651", "0.6426651", "0.6426651", "0.6426651", "0.6426651", "0.6426651", "0.6424487", "0.64200175", "0.6374669", "0.6364029", "0.6358546", "0.6346438", "0.63401246", "0.6339694", "0.6337326", "0.633365", "0.63331", "0.6312739", "0.63120073", "0.62935114", "0.6282039", "0.6272056", "0.62617385", "0.6259101", "0.6258861", "0.6250936", "0.62498444", "0.6243707", "0.6243273", "0.6240629", "0.6236867", "0.6234996", "0.6221144", "0.62115556", "0.6206761", "0.6195855", "0.6191779", "0.6191779", "0.6189452", "0.6188949", "0.6165933", "0.6148548", "0.6147752", "0.6140997", "0.6134683", "0.61235064", "0.61200815", "0.61195016", "0.6109579", "0.6103212", "0.6094258", "0.6073632", "0.60658103", "0.60658014", "0.6056977", "0.60559964", "0.6051065", "0.6045955", "0.60437495", "0.6043126", "0.6038256", "0.60332114", "0.60298204", "0.6028126", "0.6027794", "0.6023492", "0.601539", "0.6008419", "0.60078037", "0.60045147", "0.6004514", "0.6002964", "0.60025096", "0.5980343", "0.59781957", "0.5978192", "0.5973383", "0.59695226", "0.5969041" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public java.lang.String getOrgCustomer() { return orgCustomer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21878t() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo115188a() {\n }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "public void method(){}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "public void mo2471e() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo9137b() {\n }", "public void mo1405e() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21786K() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void mo97906c() {\n }", "public void method_199() {}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6906343", "0.67726165", "0.6573514", "0.6553356", "0.65377474", "0.6534764", "0.6534764", "0.65212333", "0.65208334", "0.65128636", "0.65107834", "0.65044796", "0.6489722", "0.64542454", "0.64414793", "0.6427734", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.6411286", "0.6399572", "0.63852805", "0.6384604", "0.63844895", "0.6380861", "0.63790584", "0.63779104", "0.636934", "0.63527215", "0.6329572", "0.63230014", "0.63230014", "0.6320124", "0.63060147", "0.63034326", "0.63011193", "0.62942594", "0.62886673", "0.6287377", "0.628029", "0.62740713", "0.62559074", "0.6254079", "0.6238444", "0.6213367", "0.62130535", "0.6211601", "0.6203478", "0.62007964", "0.6193621", "0.61892223", "0.61762357", "0.61748445", "0.6166767", "0.61618054", "0.61572206", "0.6149305", "0.6148976", "0.6147272", "0.6142671", "0.6142481", "0.6131224", "0.6122485", "0.6122484", "0.61193144", "0.61178774", "0.61143625", "0.61134267", "0.6093353", "0.6090953", "0.60804415", "0.60710347", "0.60696924", "0.60686743", "0.6068091", "0.60639864", "0.6050454", "0.60482585", "0.6034144", "0.6025727", "0.60217893", "0.6012873", "0.60127556", "0.60103786", "0.60064346", "0.5994422", "0.599047", "0.59868544", "0.59795237", "0.5970137", "0.59627646", "0.59604996", "0.5958594", "0.59578156", "0.59572726", "0.59552395", "0.59515303" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public java.lang.String getOrgExecutor() { return orgExecutor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "public void method(){}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void mo6944a() {\n }", "public void method_115() {}", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo5382o() {\n }", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo97906c() {\n }", "public void method_199() {}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6905348", "0.6772734", "0.65721023", "0.655192", "0.653642", "0.65358925", "0.65358925", "0.6520979", "0.6519772", "0.6511269", "0.65086603", "0.6503619", "0.64897674", "0.6452818", "0.6440322", "0.64263093", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.6409864", "0.63980335", "0.63839436", "0.6383238", "0.6382867", "0.63789594", "0.6378958", "0.63780856", "0.6367915", "0.63513243", "0.6328617", "0.63231367", "0.63231367", "0.6321168", "0.63064307", "0.6301332", "0.63004756", "0.62928444", "0.6286982", "0.6285931", "0.62810326", "0.6274102", "0.6254041", "0.6252297", "0.62392145", "0.62118727", "0.6211288", "0.6209258", "0.62027335", "0.61992496", "0.6193231", "0.6188811", "0.61758715", "0.61727005", "0.61671555", "0.61623025", "0.6155288", "0.6147672", "0.61464435", "0.6145647", "0.6142493", "0.6141256", "0.6129807", "0.6122736", "0.61208653", "0.6120711", "0.6119287", "0.6114373", "0.6112959", "0.6091729", "0.6091678", "0.6079032", "0.60722303", "0.60697454", "0.60678893", "0.6067222", "0.6062528", "0.60495824", "0.60494924", "0.60329455", "0.60251266", "0.6021675", "0.60132635", "0.6012163", "0.60109633", "0.6005491", "0.59956896", "0.5990497", "0.59851724", "0.59785897", "0.5968459", "0.59625614", "0.5961464", "0.59572047", "0.5956912", "0.5956365", "0.5954933", "0.59493726" ]
0.0
-1
Insert the method's description here. Creation date: (22.01.2003 17:16:07)
public java.lang.String getResourcename() { return resourcename; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo21877s() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21785J() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "public void mo97908d() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo4359a() {\n }", "public void mo21880v() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void date()\n {\n }", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "public void mo44053a() {\n }", "public void mo115190b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21780E() {\n }", "public void mo56167c() {\n }", "public final void mo51373a() {\n }", "public void mo2471e() {\n }", "public void mo1405e() {\n }", "public void method_115() {}", "public void mo21792Q() {\n }", "public void mo9848a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo12930a() {\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}", "public void mo21787L() {\n }", "public void method(){}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21784I() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo6944a() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo9233aH() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo1531a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1403c() {\n }", "public void mo21781F() {\n }", "public void mo21786K() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void m23075a() {\n }", "public void mo5382o() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo5248a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n public void memoria() {\n \n }", "public void mo23813b() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "private stendhal() {\n\t}", "public void mo21800a() {\n }", "public void mo1406f() {\n }", "public void mo97906c() {\n }", "public void method_202() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void mo2470d() {\n }", "public void mo12628c() {\n }", "public void method_199() {}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public void mo9241ay() {\n }" ]
[ "0.68424094", "0.6649184", "0.6602773", "0.6587632", "0.65799856", "0.65626943", "0.6538207", "0.65172935", "0.65085304", "0.64834446", "0.64671665", "0.6456464", "0.64417917", "0.64417917", "0.6430361", "0.6410702", "0.6403384", "0.63956785", "0.63931715", "0.6386745", "0.6372913", "0.63712966", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.6344135", "0.63362175", "0.6331689", "0.6325496", "0.63199705", "0.6312611", "0.6310157", "0.63024014", "0.6301138", "0.629332", "0.62910014", "0.62782156", "0.62750167", "0.62517834", "0.6234158", "0.6225195", "0.6212622", "0.62105906", "0.6206143", "0.6195225", "0.6194828", "0.61893266", "0.6185668", "0.61821705", "0.61774075", "0.61774075", "0.61689806", "0.61676145", "0.61598825", "0.61575484", "0.6149852", "0.6146838", "0.61437726", "0.61428434", "0.6120132", "0.61093867", "0.6107991", "0.61004716", "0.6099099", "0.6091945", "0.6082167", "0.6078591", "0.60779744", "0.60688823", "0.606186", "0.60586923", "0.60513484", "0.60366976", "0.6033155", "0.6031469", "0.60238427", "0.60225666", "0.6008452", "0.60084164", "0.60059404", "0.6004039", "0.6002598", "0.6001173", "0.5994813", "0.5988273", "0.5985932", "0.59830016", "0.5982533", "0.5976977", "0.59650475", "0.59551567", "0.59496653", "0.59469527", "0.59462225", "0.5946125", "0.5935084", "0.59331423" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public java.sql.Date getStartDate() { return startDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void method(){}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21786K() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void method_199() {}", "public void mo97906c() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6907132", "0.6772146", "0.6572158", "0.65519744", "0.65359044", "0.65359044", "0.65359026", "0.65203273", "0.6519876", "0.6511243", "0.65096396", "0.6503358", "0.64885217", "0.64524376", "0.6439856", "0.64261055", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.6411659", "0.6397709", "0.63835007", "0.63832754", "0.63826084", "0.6379005", "0.63781524", "0.63775826", "0.63676447", "0.63511294", "0.63279057", "0.6322195", "0.6322195", "0.6319324", "0.6305343", "0.63018733", "0.62997556", "0.62923384", "0.6286641", "0.62857866", "0.6279629", "0.6273536", "0.62542224", "0.625224", "0.62380564", "0.62120074", "0.6211425", "0.62113523", "0.62047553", "0.61989427", "0.6194766", "0.6189088", "0.6175073", "0.6174578", "0.61663765", "0.61611897", "0.6155196", "0.61480224", "0.61473846", "0.6145583", "0.61414", "0.6140901", "0.6129384", "0.612186", "0.6121324", "0.61196923", "0.611815", "0.61138165", "0.6112505", "0.60915434", "0.6091342", "0.607892", "0.6071329", "0.606952", "0.60670674", "0.6066822", "0.6061774", "0.60492057", "0.60476786", "0.6032339", "0.602411", "0.60220814", "0.60130966", "0.6011009", "0.601044", "0.600481", "0.5994324", "0.59907377", "0.5987108", "0.5979956", "0.5970062", "0.596236", "0.5960736", "0.59575063", "0.59569234", "0.5956681", "0.59536886", "0.5951624" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 18:09:55)
public java.math.BigDecimal getSum() { return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void method_201() {}", "public void mo21795T() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo21878t() {\n }", "public void mo21877s() {\n }", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21794S() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\n }", "public void mo115188a() {\n }", "public void mo38117a() {\n }", "public void mo21825b() {\n }", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21783H() {\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 }", "public void mo97908d() {\n }", "public void mo21791P() {\n }", "public void mo21782G() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo3376r() {\n }", "@Override\n public void date()\n {\n }", "public void mo21880v() {\n }", "public void mo21788M() {\n }", "public void mo4359a() {\n }", "public void mo21789N() {\n }", "public void mo44053a() {\n }", "public void mo3749d() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo115190b() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void method_115() {}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void method(){}", "public void mo56167c() {\n }", "public void mo1405e() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo9848a() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "public void mo2471e() {\n }", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo9137b() {\n }", "public void mo21784I() {\n }", "public final void mo51373a() {\n }", "public void mo12930a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo9233aH() {\n }", "public void mo1403c() {\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}", "public void mo1531a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo5382o() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void method_199() {}", "public void method_202() {}", "public void m23075a() {\n }", "public void mo21781F() {\n }", "private void getStatus() {\n\t\t\n\t}", "public void mo97906c() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void mo21800a() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo23813b() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo9241ay() {\n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo5099c() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public void mo1406f() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void method_206() {}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void method_193() {}" ]
[ "0.6859581", "0.6641181", "0.6574499", "0.6574323", "0.6569321", "0.6550789", "0.65500623", "0.6530104", "0.6522931", "0.64446294", "0.6435934", "0.6435934", "0.64185596", "0.6406735", "0.63965636", "0.63858783", "0.6370422", "0.63654375", "0.6363604", "0.63626415", "0.63626415", "0.63626415", "0.63626415", "0.63626415", "0.63626415", "0.63626415", "0.6357843", "0.63573694", "0.6351412", "0.6327024", "0.6309106", "0.6293827", "0.6292083", "0.6291168", "0.6286428", "0.628523", "0.6282745", "0.6280998", "0.627436", "0.6266092", "0.62554073", "0.6246729", "0.6242728", "0.62295526", "0.6225383", "0.6199969", "0.6189221", "0.6186815", "0.6186787", "0.61712754", "0.616983", "0.6155991", "0.6145393", "0.6134868", "0.6133029", "0.6131766", "0.61305946", "0.6122301", "0.61208296", "0.6116637", "0.61079425", "0.60976356", "0.6096268", "0.6096268", "0.60691553", "0.6054614", "0.6052915", "0.6048742", "0.604698", "0.60439587", "0.6035368", "0.6026065", "0.6023276", "0.6020444", "0.6016405", "0.5998324", "0.5997656", "0.59940404", "0.599226", "0.59909046", "0.59843326", "0.5972086", "0.59691286", "0.5967185", "0.596671", "0.5966054", "0.59597427", "0.59567535", "0.5949942", "0.59470314", "0.5946487", "0.5937223", "0.5934245", "0.5927833", "0.5926223", "0.5921575", "0.5921466", "0.5914925", "0.59081805", "0.5907295", "0.59070724" ]
0.0
-1
Insert the method's description here. Creation date: (22.01.2003 17:16:07)
public void setChargecurrency(java.lang.String newChargecurrency) { chargecurrency = newChargecurrency; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo21877s() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21785J() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "public void mo97908d() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo4359a() {\n }", "public void mo21880v() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void date()\n {\n }", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "public void mo44053a() {\n }", "public void mo115190b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21780E() {\n }", "public void mo56167c() {\n }", "public final void mo51373a() {\n }", "public void mo2471e() {\n }", "public void mo1405e() {\n }", "public void mo21792Q() {\n }", "public void method_115() {}", "public void mo9848a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo12930a() {\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}", "public void mo21787L() {\n }", "public void method(){}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21784I() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo6944a() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo9233aH() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo1531a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1403c() {\n }", "public void mo21781F() {\n }", "public void mo21786K() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void m23075a() {\n }", "public void mo5382o() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo5248a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void getStatus() {\n\t\t\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo23813b() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "private stendhal() {\n\t}", "public void mo21800a() {\n }", "public void mo1406f() {\n }", "public void mo97906c() {\n }", "public void method_202() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void mo2470d() {\n }", "public void mo12628c() {\n }", "public void method_199() {}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public void mo9241ay() {\n }" ]
[ "0.68432975", "0.664987", "0.6602013", "0.6587023", "0.6579778", "0.65627337", "0.6538055", "0.6516662", "0.6508371", "0.64834434", "0.6467098", "0.6456584", "0.6442884", "0.6442884", "0.6430357", "0.64110154", "0.6403695", "0.6395434", "0.639327", "0.6386246", "0.6372931", "0.63705355", "0.6370059", "0.6370059", "0.6370059", "0.6370059", "0.6370059", "0.6370059", "0.6370059", "0.63452095", "0.6335747", "0.6331644", "0.63255984", "0.63207483", "0.63124853", "0.63101107", "0.6302356", "0.63014525", "0.6293288", "0.62905955", "0.62776375", "0.6275026", "0.6252691", "0.62341857", "0.62245935", "0.62129796", "0.62102365", "0.62053883", "0.6194944", "0.6194461", "0.61891514", "0.61861825", "0.6182419", "0.61778283", "0.61778283", "0.61686516", "0.6167722", "0.61592585", "0.6158193", "0.6149686", "0.61472946", "0.6145151", "0.6142205", "0.6119632", "0.61093175", "0.6107857", "0.61003464", "0.60987556", "0.6091487", "0.6082112", "0.607814", "0.6078008", "0.606988", "0.60623497", "0.60591507", "0.6051456", "0.6036363", "0.60342294", "0.60308576", "0.6023904", "0.6022422", "0.6009301", "0.6008245", "0.6007969", "0.60039616", "0.60028356", "0.6000956", "0.5995243", "0.5988292", "0.59859496", "0.59821004", "0.5981773", "0.59759605", "0.5964529", "0.5955117", "0.5949435", "0.59467256", "0.5946718", "0.59456056", "0.5935811", "0.593226" ]
0.0
-1
Insert the method's description here. Creation date: (22.01.2003 17:16:07)
public void setChargedate(java.sql.Date newChargedate) { chargedate = newChargedate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo21877s() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21785J() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "public void mo97908d() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo4359a() {\n }", "public void mo21880v() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void date()\n {\n }", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "public void mo44053a() {\n }", "public void mo115190b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21780E() {\n }", "public void mo56167c() {\n }", "public final void mo51373a() {\n }", "public void mo2471e() {\n }", "public void mo1405e() {\n }", "public void method_115() {}", "public void mo21792Q() {\n }", "public void mo9848a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo12930a() {\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}", "public void mo21787L() {\n }", "public void method(){}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21784I() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo6944a() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo9233aH() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo1531a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1403c() {\n }", "public void mo21781F() {\n }", "public void mo21786K() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void m23075a() {\n }", "public void mo5382o() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo5248a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n public void memoria() {\n \n }", "public void mo23813b() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "private stendhal() {\n\t}", "public void mo21800a() {\n }", "public void mo1406f() {\n }", "public void mo97906c() {\n }", "public void method_202() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void mo2470d() {\n }", "public void mo12628c() {\n }", "public void method_199() {}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public void mo9241ay() {\n }" ]
[ "0.68424094", "0.6649184", "0.6602773", "0.6587632", "0.65799856", "0.65626943", "0.6538207", "0.65172935", "0.65085304", "0.64834446", "0.64671665", "0.6456464", "0.64417917", "0.64417917", "0.6430361", "0.6410702", "0.6403384", "0.63956785", "0.63931715", "0.6386745", "0.6372913", "0.63712966", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.63707477", "0.6344135", "0.63362175", "0.6331689", "0.6325496", "0.63199705", "0.6312611", "0.6310157", "0.63024014", "0.6301138", "0.629332", "0.62910014", "0.62782156", "0.62750167", "0.62517834", "0.6234158", "0.6225195", "0.6212622", "0.62105906", "0.6206143", "0.6195225", "0.6194828", "0.61893266", "0.6185668", "0.61821705", "0.61774075", "0.61774075", "0.61689806", "0.61676145", "0.61598825", "0.61575484", "0.6149852", "0.6146838", "0.61437726", "0.61428434", "0.6120132", "0.61093867", "0.6107991", "0.61004716", "0.6099099", "0.6091945", "0.6082167", "0.6078591", "0.60779744", "0.60688823", "0.606186", "0.60586923", "0.60513484", "0.60366976", "0.6033155", "0.6031469", "0.60238427", "0.60225666", "0.6008452", "0.60084164", "0.60059404", "0.6004039", "0.6002598", "0.6001173", "0.5994813", "0.5988273", "0.5985932", "0.59830016", "0.5982533", "0.5976977", "0.59650475", "0.59551567", "0.59496653", "0.59469527", "0.59462225", "0.5946125", "0.5935084", "0.59331423" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public void setCurr1(java.lang.String newCurr1) { curr1 = newCurr1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void method(){}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21786K() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void method_199() {}", "public void mo97906c() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6907132", "0.6772146", "0.6572158", "0.65519744", "0.65359044", "0.65359044", "0.65359026", "0.65203273", "0.6519876", "0.6511243", "0.65096396", "0.6503358", "0.64885217", "0.64524376", "0.6439856", "0.64261055", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.6411659", "0.6397709", "0.63835007", "0.63832754", "0.63826084", "0.6379005", "0.63781524", "0.63775826", "0.63676447", "0.63511294", "0.63279057", "0.6322195", "0.6322195", "0.6319324", "0.6305343", "0.63018733", "0.62997556", "0.62923384", "0.6286641", "0.62857866", "0.6279629", "0.6273536", "0.62542224", "0.625224", "0.62380564", "0.62120074", "0.6211425", "0.62113523", "0.62047553", "0.61989427", "0.6194766", "0.6189088", "0.6175073", "0.6174578", "0.61663765", "0.61611897", "0.6155196", "0.61480224", "0.61473846", "0.6145583", "0.61414", "0.6140901", "0.6129384", "0.612186", "0.6121324", "0.61196923", "0.611815", "0.61138165", "0.6112505", "0.60915434", "0.6091342", "0.607892", "0.6071329", "0.606952", "0.60670674", "0.6066822", "0.6061774", "0.60492057", "0.60476786", "0.6032339", "0.602411", "0.60220814", "0.60130966", "0.6011009", "0.601044", "0.600481", "0.5994324", "0.59907377", "0.5987108", "0.5979956", "0.5970062", "0.596236", "0.5960736", "0.59575063", "0.59569234", "0.5956681", "0.59536886", "0.5951624" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public void setCurr2(java.lang.String newCurr2) { curr2 = newCurr2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21878t() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo115188a() {\n }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "public void method(){}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "public void mo2471e() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo9137b() {\n }", "public void mo1405e() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21786K() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void mo97906c() {\n }", "public void method_199() {}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6906343", "0.67726165", "0.6573514", "0.6553356", "0.65377474", "0.6534764", "0.6534764", "0.65212333", "0.65208334", "0.65128636", "0.65107834", "0.65044796", "0.6489722", "0.64542454", "0.64414793", "0.6427734", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.6411286", "0.6399572", "0.63852805", "0.6384604", "0.63844895", "0.6380861", "0.63790584", "0.63779104", "0.636934", "0.63527215", "0.6329572", "0.63230014", "0.63230014", "0.6320124", "0.63060147", "0.63034326", "0.63011193", "0.62942594", "0.62886673", "0.6287377", "0.628029", "0.62740713", "0.62559074", "0.6254079", "0.6238444", "0.6213367", "0.62130535", "0.6211601", "0.6203478", "0.62007964", "0.6193621", "0.61892223", "0.61762357", "0.61748445", "0.6166767", "0.61618054", "0.61572206", "0.6149305", "0.6148976", "0.6147272", "0.6142671", "0.6142481", "0.6131224", "0.6122485", "0.6122484", "0.61193144", "0.61178774", "0.61143625", "0.61134267", "0.6093353", "0.6090953", "0.60804415", "0.60710347", "0.60696924", "0.60686743", "0.6068091", "0.60639864", "0.6050454", "0.60482585", "0.6034144", "0.6025727", "0.60217893", "0.6012873", "0.60127556", "0.60103786", "0.60064346", "0.5994422", "0.599047", "0.59868544", "0.59795237", "0.5970137", "0.59627646", "0.59604996", "0.5958594", "0.59578156", "0.59572726", "0.59552395", "0.59515303" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public void setCurrency1(BigDecimal newCurrency1) { currency1 = newCurrency1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "public void method(){}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void mo6944a() {\n }", "public void method_115() {}", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo5382o() {\n }", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo97906c() {\n }", "public void method_199() {}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6905348", "0.6772734", "0.65721023", "0.655192", "0.653642", "0.65358925", "0.65358925", "0.6520979", "0.6519772", "0.6511269", "0.65086603", "0.6503619", "0.64897674", "0.6452818", "0.6440322", "0.64263093", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.6409864", "0.63980335", "0.63839436", "0.6383238", "0.6382867", "0.63789594", "0.6378958", "0.63780856", "0.6367915", "0.63513243", "0.6328617", "0.63231367", "0.63231367", "0.6321168", "0.63064307", "0.6301332", "0.63004756", "0.62928444", "0.6286982", "0.6285931", "0.62810326", "0.6274102", "0.6254041", "0.6252297", "0.62392145", "0.62118727", "0.6211288", "0.6209258", "0.62027335", "0.61992496", "0.6193231", "0.6188811", "0.61758715", "0.61727005", "0.61671555", "0.61623025", "0.6155288", "0.6147672", "0.61464435", "0.6145647", "0.6142493", "0.6141256", "0.6129807", "0.6122736", "0.61208653", "0.6120711", "0.6119287", "0.6114373", "0.6112959", "0.6091729", "0.6091678", "0.6079032", "0.60722303", "0.60697454", "0.60678893", "0.6067222", "0.6062528", "0.60495824", "0.60494924", "0.60329455", "0.60251266", "0.6021675", "0.60132635", "0.6012163", "0.60109633", "0.6005491", "0.59956896", "0.5990497", "0.59851724", "0.59785897", "0.5968459", "0.59625614", "0.5961464", "0.59572047", "0.5956912", "0.5956365", "0.5954933", "0.59493726" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public void setCurrency2(BigDecimal newCurrency2) { currency2 = newCurrency2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo115188a() {\n }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void method(){}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo9233aH() {\n }", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void method_199() {}", "public void mo97906c() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6907308", "0.67723054", "0.65728635", "0.6551688", "0.65366143", "0.65366143", "0.65361696", "0.65205264", "0.6520153", "0.6511162", "0.65095305", "0.65037286", "0.6488789", "0.64527947", "0.6440294", "0.6426218", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6412305", "0.6397984", "0.6383695", "0.6383116", "0.63829577", "0.63793993", "0.6378833", "0.63779753", "0.63682604", "0.63515764", "0.63281417", "0.63236284", "0.63236284", "0.6320362", "0.6305733", "0.6302296", "0.63000554", "0.62934124", "0.6287046", "0.62862897", "0.6280214", "0.62740177", "0.62542367", "0.6252364", "0.6238338", "0.62125534", "0.6212159", "0.62117547", "0.6203853", "0.61995393", "0.61946905", "0.6188578", "0.6175215", "0.6174995", "0.6167494", "0.6162273", "0.61556154", "0.61484015", "0.6147664", "0.61458695", "0.61425734", "0.6141421", "0.6130057", "0.6122489", "0.6121326", "0.61201334", "0.6117943", "0.61140317", "0.61122346", "0.609159", "0.6091561", "0.60789937", "0.6072293", "0.6070322", "0.60678434", "0.6067255", "0.6062766", "0.60490805", "0.6047285", "0.6032983", "0.60250074", "0.60226214", "0.6012905", "0.6011209", "0.60110205", "0.6005007", "0.5995247", "0.59903485", "0.59872514", "0.59800255", "0.5970582", "0.59626466", "0.5961614", "0.59587187", "0.59574246", "0.59570855", "0.59543", "0.5951845" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:28:57)
public void setDocpositioncode(int newDocpositioncode) { docpositioncode = newDocpositioncode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo21878t() {\n }", "public void mo21877s() {\n }", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21795T() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void method_201() {}", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\n }", "@Override\r\n\tpublic void method() {\n\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 }", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "public void mo21782G() {\n }", "public void mo115188a() {\n }", "public void mo21783H() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo4359a() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21880v() {\n }", "public void mo115190b() {\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}", "public void mo3749d() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21789N() {\n }", "public void mo21788M() {\n }", "public void mo44053a() {\n }", "public final void mo51373a() {\n }", "public void mo9848a() {\n }", "public void mo21780E() {\n }", "public void mo56167c() {\n }", "@Override\n public void date()\n {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21792Q() {\n }", "public void mo12930a() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo2471e() {\n }", "public void method_115() {}", "public void method(){}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void mo21787L() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1405e() {\n }", "public void mo6944a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void mo9137b() {\n }", "public void mo1531a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo21786K() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo21781F() {\n }", "public void mo1403c() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void m23075a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void mo5382o() {\n }", "private void getStatus() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void method_199() {}", "public Methods() {\n // what is this doing? -PMC\n }", "public void mo97906c() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo21800a() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}" ]
[ "0.69101983", "0.6791895", "0.6611212", "0.65598315", "0.65532875", "0.65507895", "0.65471965", "0.6544774", "0.65442294", "0.6543266", "0.6543266", "0.653407", "0.65053725", "0.647791", "0.64684284", "0.6454775", "0.6418882", "0.6416046", "0.6416046", "0.6416046", "0.6416046", "0.6416046", "0.6416046", "0.6416046", "0.6412711", "0.64087117", "0.6407536", "0.6406735", "0.64029247", "0.640061", "0.6396494", "0.6376927", "0.63737816", "0.6352439", "0.6348559", "0.6347213", "0.6340484", "0.6322651", "0.6321137", "0.6321137", "0.6309141", "0.6292621", "0.62883955", "0.62858766", "0.62842715", "0.62767863", "0.62659687", "0.62442535", "0.6236953", "0.62321335", "0.6227619", "0.6221877", "0.6220472", "0.62121946", "0.6210411", "0.6199521", "0.6194971", "0.61942387", "0.6189562", "0.6185285", "0.61793274", "0.61771727", "0.61743194", "0.61656034", "0.61603737", "0.6157447", "0.61560816", "0.615115", "0.61463517", "0.6136471", "0.6128949", "0.61244774", "0.61240923", "0.61058086", "0.61043775", "0.61042815", "0.6100859", "0.61003196", "0.60881746", "0.60798496", "0.6079326", "0.6077909", "0.60761994", "0.60752076", "0.60477513", "0.6042869", "0.6037658", "0.60252726", "0.602118", "0.601637", "0.6015119", "0.60114837", "0.6010718", "0.6004245", "0.60002834", "0.59970045", "0.59901077", "0.5988688", "0.5981581", "0.5981274", "0.59786916" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public void setDocumentNumber(java.lang.String newDocumentNumber) { documentNumber = newDocumentNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21878t() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo115188a() {\n }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "public void method(){}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "public void mo2471e() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo9137b() {\n }", "public void mo1405e() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21786K() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void mo97906c() {\n }", "public void method_199() {}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6906343", "0.67726165", "0.6573514", "0.6553356", "0.65377474", "0.6534764", "0.6534764", "0.65212333", "0.65208334", "0.65128636", "0.65107834", "0.65044796", "0.6489722", "0.64542454", "0.64414793", "0.6427734", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.64223176", "0.6411286", "0.6399572", "0.63852805", "0.6384604", "0.63844895", "0.6380861", "0.63790584", "0.63779104", "0.636934", "0.63527215", "0.6329572", "0.63230014", "0.63230014", "0.6320124", "0.63060147", "0.63034326", "0.63011193", "0.62942594", "0.62886673", "0.6287377", "0.628029", "0.62740713", "0.62559074", "0.6254079", "0.6238444", "0.6213367", "0.62130535", "0.6211601", "0.6203478", "0.62007964", "0.6193621", "0.61892223", "0.61762357", "0.61748445", "0.6166767", "0.61618054", "0.61572206", "0.6149305", "0.6148976", "0.6147272", "0.6142671", "0.6142481", "0.6131224", "0.6122485", "0.6122484", "0.61193144", "0.61178774", "0.61143625", "0.61134267", "0.6093353", "0.6090953", "0.60804415", "0.60710347", "0.60696924", "0.60686743", "0.6068091", "0.60639864", "0.6050454", "0.60482585", "0.6034144", "0.6025727", "0.60217893", "0.6012873", "0.60127556", "0.60103786", "0.60064346", "0.5994422", "0.599047", "0.59868544", "0.59795237", "0.5970137", "0.59627646", "0.59604996", "0.5958594", "0.59578156", "0.59572726", "0.59552395", "0.59515303" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public void setEndDate(java.sql.Date newEndDate) { endDate = newEndDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "public void method(){}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void mo6944a() {\n }", "public void method_115() {}", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo5382o() {\n }", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo97906c() {\n }", "public void method_199() {}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6905348", "0.6772734", "0.65721023", "0.655192", "0.653642", "0.65358925", "0.65358925", "0.6520979", "0.6519772", "0.6511269", "0.65086603", "0.6503619", "0.64897674", "0.6452818", "0.6440322", "0.64263093", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.6409864", "0.63980335", "0.63839436", "0.6383238", "0.6382867", "0.63789594", "0.6378958", "0.63780856", "0.6367915", "0.63513243", "0.6328617", "0.63231367", "0.63231367", "0.6321168", "0.63064307", "0.6301332", "0.63004756", "0.62928444", "0.6286982", "0.6285931", "0.62810326", "0.6274102", "0.6254041", "0.6252297", "0.62392145", "0.62118727", "0.6211288", "0.6209258", "0.62027335", "0.61992496", "0.6193231", "0.6188811", "0.61758715", "0.61727005", "0.61671555", "0.61623025", "0.6155288", "0.6147672", "0.61464435", "0.6145647", "0.6142493", "0.6141256", "0.6129807", "0.6122736", "0.61208653", "0.6120711", "0.6119287", "0.6114373", "0.6112959", "0.6091729", "0.6091678", "0.6079032", "0.60722303", "0.60697454", "0.60678893", "0.6067222", "0.6062528", "0.60495824", "0.60494924", "0.60329455", "0.60251266", "0.6021675", "0.60132635", "0.6012163", "0.60109633", "0.6005491", "0.59956896", "0.5990497", "0.59851724", "0.59785897", "0.5968459", "0.59625614", "0.5961464", "0.59572047", "0.5956912", "0.5956365", "0.5954933", "0.59493726" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public void setOrgCustomer(java.lang.String newOrgCustomer) { orgCustomer = newOrgCustomer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo115188a() {\n }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void method(){}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo9233aH() {\n }", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void method_199() {}", "public void mo97906c() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6907308", "0.67723054", "0.65728635", "0.6551688", "0.65366143", "0.65366143", "0.65361696", "0.65205264", "0.6520153", "0.6511162", "0.65095305", "0.65037286", "0.6488789", "0.64527947", "0.6440294", "0.6426218", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6420972", "0.6412305", "0.6397984", "0.6383695", "0.6383116", "0.63829577", "0.63793993", "0.6378833", "0.63779753", "0.63682604", "0.63515764", "0.63281417", "0.63236284", "0.63236284", "0.6320362", "0.6305733", "0.6302296", "0.63000554", "0.62934124", "0.6287046", "0.62862897", "0.6280214", "0.62740177", "0.62542367", "0.6252364", "0.6238338", "0.62125534", "0.6212159", "0.62117547", "0.6203853", "0.61995393", "0.61946905", "0.6188578", "0.6175215", "0.6174995", "0.6167494", "0.6162273", "0.61556154", "0.61484015", "0.6147664", "0.61458695", "0.61425734", "0.6141421", "0.6130057", "0.6122489", "0.6121326", "0.61201334", "0.6117943", "0.61140317", "0.61122346", "0.609159", "0.6091561", "0.60789937", "0.6072293", "0.6070322", "0.60678434", "0.6067255", "0.6062766", "0.60490805", "0.6047285", "0.6032983", "0.60250074", "0.60226214", "0.6012905", "0.6011209", "0.60110205", "0.6005007", "0.5995247", "0.59903485", "0.59872514", "0.59800255", "0.5970582", "0.59626466", "0.5961614", "0.59587187", "0.59574246", "0.59570855", "0.59543", "0.5951845" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public void setOrgExecutor(java.lang.String newOrgExecutor) { orgExecutor = newOrgExecutor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void method(){}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void method_115() {}", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21786K() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21781F() {\n }", "public void mo5382o() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public void mo5248a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void method_199() {}", "public void mo97906c() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6907132", "0.6772146", "0.6572158", "0.65519744", "0.65359044", "0.65359044", "0.65359026", "0.65203273", "0.6519876", "0.6511243", "0.65096396", "0.6503358", "0.64885217", "0.64524376", "0.6439856", "0.64261055", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.64211196", "0.6411659", "0.6397709", "0.63835007", "0.63832754", "0.63826084", "0.6379005", "0.63781524", "0.63775826", "0.63676447", "0.63511294", "0.63279057", "0.6322195", "0.6322195", "0.6319324", "0.6305343", "0.63018733", "0.62997556", "0.62923384", "0.6286641", "0.62857866", "0.6279629", "0.6273536", "0.62542224", "0.625224", "0.62380564", "0.62120074", "0.6211425", "0.62113523", "0.62047553", "0.61989427", "0.6194766", "0.6189088", "0.6175073", "0.6174578", "0.61663765", "0.61611897", "0.6155196", "0.61480224", "0.61473846", "0.6145583", "0.61414", "0.6140901", "0.6129384", "0.612186", "0.6121324", "0.61196923", "0.611815", "0.61138165", "0.6112505", "0.60915434", "0.6091342", "0.607892", "0.6071329", "0.606952", "0.60670674", "0.6066822", "0.6061774", "0.60492057", "0.60476786", "0.6032339", "0.602411", "0.60220814", "0.60130966", "0.6011009", "0.601044", "0.600481", "0.5994324", "0.59907377", "0.5987108", "0.5979956", "0.5970062", "0.596236", "0.5960736", "0.59575063", "0.59569234", "0.5956681", "0.59536886", "0.5951624" ]
0.0
-1
Insert the method's description here. Creation date: (22.01.2003 17:16:07)
public void setResourcename(java.lang.String newResourcename) { resourcename = newResourcename; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo21877s() {\n }", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21785J() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21825b() {\n }", "public void mo21791P() {\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 }", "public void mo97908d() {\n }", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo4359a() {\n }", "public void mo21880v() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void date()\n {\n }", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "public void mo44053a() {\n }", "public void mo115190b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21780E() {\n }", "public void mo56167c() {\n }", "public final void mo51373a() {\n }", "public void mo2471e() {\n }", "public void mo1405e() {\n }", "public void method_115() {}", "public void mo21792Q() {\n }", "public void mo9848a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo12930a() {\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}", "public void mo21787L() {\n }", "public void method(){}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21784I() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo6944a() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo9233aH() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo1531a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1403c() {\n }", "public void mo21781F() {\n }", "public void mo21786K() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void m23075a() {\n }", "public void mo5382o() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo5248a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void getStatus() {\n\t\t\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo23813b() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "private stendhal() {\n\t}", "public void mo21800a() {\n }", "public void mo1406f() {\n }", "public void mo97906c() {\n }", "public void method_202() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void mo2470d() {\n }", "public void method_199() {}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public void mo9241ay() {\n }" ]
[ "0.6842823", "0.6648187", "0.66019887", "0.65868676", "0.65791744", "0.6562114", "0.65380967", "0.65174973", "0.65081465", "0.64828706", "0.6466539", "0.6456272", "0.6442621", "0.6442621", "0.6429578", "0.641031", "0.6401738", "0.6395104", "0.63926804", "0.6386255", "0.6372668", "0.6370811", "0.6370811", "0.6370811", "0.6370811", "0.6370811", "0.6370811", "0.6370811", "0.6370549", "0.6344509", "0.6335456", "0.6331519", "0.63250995", "0.6319269", "0.63120186", "0.63095176", "0.63016194", "0.6299192", "0.6293291", "0.62904704", "0.62773675", "0.62744796", "0.62503916", "0.6233843", "0.62244", "0.62118614", "0.6209836", "0.62052", "0.6194509", "0.6194237", "0.61891675", "0.61852354", "0.6182038", "0.61765033", "0.61765033", "0.6167933", "0.6167606", "0.6159484", "0.6158033", "0.61492217", "0.6146068", "0.6143258", "0.6142033", "0.61194694", "0.61083263", "0.6107403", "0.609958", "0.6099205", "0.60924655", "0.60810816", "0.6077857", "0.60777503", "0.6068652", "0.6061234", "0.6057746", "0.6050914", "0.60366446", "0.60323817", "0.6031023", "0.60228723", "0.6022125", "0.60074914", "0.60066617", "0.60065854", "0.6003295", "0.60012", "0.6001046", "0.5993687", "0.59879386", "0.59840864", "0.5982664", "0.5980876", "0.59760344", "0.5964628", "0.595368", "0.59491086", "0.59460664", "0.59459484", "0.5945722", "0.5935586", "0.5932396" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 16:48:54)
public void setStartDate(java.sql.Date newStartDate) { startDate = newStartDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21878t() {\n }", "public void mo21795T() {\n }", "public void method_201() {}", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21794S() {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\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\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "public void mo115188a() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21825b() {\n }", "public void mo97908d() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21880v() {\n }", "public void mo3749d() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "@Override\n public void date()\n {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "public void method(){}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "public void mo6944a() {\n }", "public void method_115() {}", "public void mo21787L() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo9137b() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo1405e() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo1403c() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo21781F() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo5382o() {\n }", "public void mo6081a() {\n }", "public void m23075a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo5248a() {\n }", "public void mo23813b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void mo97906c() {\n }", "public void method_199() {}", "public void mo12628c() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}" ]
[ "0.6905348", "0.6772734", "0.65721023", "0.655192", "0.653642", "0.65358925", "0.65358925", "0.6520979", "0.6519772", "0.6511269", "0.65086603", "0.6503619", "0.64897674", "0.6452818", "0.6440322", "0.64263093", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.64213794", "0.6409864", "0.63980335", "0.63839436", "0.6383238", "0.6382867", "0.63789594", "0.6378958", "0.63780856", "0.6367915", "0.63513243", "0.6328617", "0.63231367", "0.63231367", "0.6321168", "0.63064307", "0.6301332", "0.63004756", "0.62928444", "0.6286982", "0.6285931", "0.62810326", "0.6274102", "0.6254041", "0.6252297", "0.62392145", "0.62118727", "0.6211288", "0.6209258", "0.62027335", "0.61992496", "0.6193231", "0.6188811", "0.61758715", "0.61727005", "0.61671555", "0.61623025", "0.6155288", "0.6147672", "0.61464435", "0.6145647", "0.6142493", "0.6141256", "0.6129807", "0.6122736", "0.61208653", "0.6120711", "0.6119287", "0.6114373", "0.6112959", "0.6091729", "0.6091678", "0.6079032", "0.60722303", "0.60697454", "0.60678893", "0.6067222", "0.6062528", "0.60495824", "0.60494924", "0.60329455", "0.60251266", "0.6021675", "0.60132635", "0.6012163", "0.60109633", "0.6005491", "0.59956896", "0.5990497", "0.59851724", "0.59785897", "0.5968459", "0.59625614", "0.5961464", "0.59572047", "0.5956912", "0.5956365", "0.5954933", "0.59493726" ]
0.0
-1
Insert the method's description here. Creation date: (09.01.2003 18:09:55)
public void setSum(java.math.BigDecimal newSum) { sum = newSum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void method_201() {}", "public void mo21795T() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo21878t() {\n }", "public void mo21877s() {\n }", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21794S() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo21779D() {\n }", "public void mo21785J() {\n }", "public void mo115188a() {\n }", "public void mo38117a() {\n }", "public void mo21825b() {\n }", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public void mo21783H() {\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 }", "public void mo97908d() {\n }", "public void mo21791P() {\n }", "public void mo21782G() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo3376r() {\n }", "@Override\n public void date()\n {\n }", "public void mo21880v() {\n }", "public void mo21788M() {\n }", "public void mo4359a() {\n }", "public void mo21789N() {\n }", "public void mo44053a() {\n }", "public void mo3749d() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo115190b() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void method_115() {}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void method(){}", "public void mo56167c() {\n }", "public void mo1405e() {\n }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo9848a() {\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "public void mo2471e() {\n }", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo9137b() {\n }", "public void mo21784I() {\n }", "public final void mo51373a() {\n }", "public void mo12930a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo9233aH() {\n }", "public void mo1403c() {\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}", "public void mo1531a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo5382o() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void method_199() {}", "public void method_202() {}", "public void m23075a() {\n }", "public void mo21781F() {\n }", "private void getStatus() {\n\t\t\n\t}", "public void mo97906c() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void mo21800a() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo23813b() {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo9241ay() {\n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo5099c() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "public void mo1406f() {\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void method_206() {}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "public void method_193() {}" ]
[ "0.6859629", "0.66414016", "0.6574708", "0.65744245", "0.6569349", "0.6550779", "0.65502435", "0.65304387", "0.6523081", "0.6444756", "0.64359874", "0.64359874", "0.6418803", "0.64071655", "0.6396679", "0.6386107", "0.6370529", "0.6365488", "0.6363932", "0.6363097", "0.6363097", "0.6363097", "0.6363097", "0.6363097", "0.6363097", "0.6363097", "0.63579977", "0.6357479", "0.63515085", "0.63270664", "0.6309328", "0.62944067", "0.62921935", "0.62911564", "0.6286969", "0.62854946", "0.6283008", "0.62812114", "0.6274381", "0.6266481", "0.62555295", "0.6246947", "0.6243005", "0.62294614", "0.62254226", "0.6200211", "0.6189358", "0.61871266", "0.6186994", "0.6171348", "0.6169851", "0.61561257", "0.6145577", "0.61348367", "0.6133451", "0.6131977", "0.61308885", "0.61230236", "0.61212915", "0.6116958", "0.61080956", "0.6097795", "0.6096689", "0.6096689", "0.6069675", "0.6054761", "0.605344", "0.60488635", "0.6047045", "0.6044177", "0.6035738", "0.6026265", "0.60232073", "0.602046", "0.6016653", "0.5998507", "0.5998217", "0.5994335", "0.59923077", "0.5991327", "0.5984174", "0.5972345", "0.59693956", "0.5967666", "0.5967169", "0.59660184", "0.5959539", "0.5956742", "0.595021", "0.59477776", "0.5946406", "0.59374887", "0.59344476", "0.5928398", "0.5926252", "0.5921809", "0.5921757", "0.5914968", "0.5908277", "0.59075445", "0.5907249" ]
0.0
-1
register new user with firebase
private void userRegister(String email, String password) { mAuth.createUserWithEmailAndPassword(email, password) .addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { // if successful, send email verification String TAG = "LoginActivity.userRegister"; if (task.isSuccessful()) { Log.d(TAG, "createUserWithEmailAndPassword:success"); FirebaseUser user = mAuth.getCurrentUser(); user.sendEmailVerification() .addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { String TAG = "LoginActivity.userRegister.EmailVerify"; if (task.isSuccessful()) { Log.d(TAG, "sendEmailVerification:success"); Toast.makeText(getActivity(), "Please check Email for Verification",Toast.LENGTH_SHORT).show(); } else { Log.w(TAG, "sendEmailVerification:failure", task.getException()); Toast.makeText(getActivity(),"Unable to Verify: " + task.getException().getMessage(),Toast.LENGTH_SHORT).show(); } } }); } else { Log.w(TAG, "createUserWithEmailAndPassword:failure", task.getException()); Toast.makeText(getActivity(), "Unable to Register: " + task.getException().getMessage(), Toast.LENGTH_SHORT).show(); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void registerUser(){\n mAuth.createUserWithEmailAndPassword(correo, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //mapa de valores\n Map<String, Object> map = new HashMap<>();\n map.put(\"name\",name);\n map.put(\"email\",correo);\n map.put(\"password\",password);\n map.put(\"birthday\",cumple);\n map.put(\"genre\",genre);\n map.put(\"size\",size);\n //obtenemos el id asignado por la firebase\n String id= mAuth.getCurrentUser().getUid();\n //pasamos el mapa de valores\n mDatabase.child(\"Users\").child(id).setValue(map).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task2) {\n //validams que la tarea sea exitosa\n if(task2.isSuccessful()){\n startActivity(new Intent(DatosIniciales.this, MainActivity.class));\n //evitamos que vuelva a la pantalla con finsh cuando ya se ha registrado\n finish();\n }else{\n Toast.makeText(DatosIniciales.this, \"Algo fallo ups!!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }else{\n Toast.makeText(DatosIniciales.this, \"No pudimos completar su registro\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "@Override\n public void performRegister(final String name, final String email, final String gender, final String password){\n\n mAuth.createUserWithEmailAndPassword(email.toLowerCase(),password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n User user = new User();\n user.setName(name);\n user.setEmail(email.toLowerCase());\n user.setGender(gender);\n user.setPassword(password);\n FirebaseDatabase.getInstance().getReference(\"Users\")\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(context, \"Authentication Success.\",\n Toast.LENGTH_LONG).show();\n view.redirectToLogin();\n } else {\n Toast.makeText(context, \"Authentication Failed.\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n } else {\n Log.w(TAG, \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(context, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n }", "private void registerUserToFirebaseAuth() {\n Utils.showProgressDialog(this);\n Task<AuthResult> task = mAuth.createUserWithEmailAndPassword(etEmail.getText().toString().trim(), etPassword.getText().toString().trim());\n task.addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Utils.dismissProgressDialog();\n if (task.isSuccessful()) {\n String firebaseId = task.getResult().getUser().getUid();\n\n // Storage Image to Firebase Storage.\n addProfileImageToFirebaseStorage(firebaseId);\n\n } else {\n Utils.toast(context, \"Some Error Occurs\");\n }\n }\n });\n }", "private void signUpNewUserToDB(){\n dbAuthentication.createUserWithEmailAndPassword(this.newUser.getEmail(), this.newUser.getPassword())\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n /**signUp success, will update realTime DB ant firebase Authentication*/\n FirebaseUser currentUser = dbAuthentication.getCurrentUser();\n addToRealDB(currentUser.getUid());\n /**will send verification email to the user from Firebase Authentication*/\n currentUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n }\n });\n }else{isBadEmail = true;}\n }\n });\n }", "private void callRegisterByEmailToGoogleFirebase(){\n mFirebaseAuth = FirebaseAuth.getInstance();\n\n String userEmail = mEmailAddress.getText().toString();\n String userPassword = mPassword.getText().toString();\n\n // create the user with email and password\n mFirebaseAuth.createUserWithEmailAndPassword(userEmail,userPassword).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n showBottomSnackBar(\"Corresponding Firebase User Created\");\n }else{\n showBottomSnackBar(\"Firebase User Creation Fails\");\n }\n\n replaceActivity(MainActivity.class, null);\n }\n });\n\n }", "private void signup(final String email, String password) {\n firebaseAuth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()) {\n databaseRef.child(firebaseAuth.getCurrentUser().getUid()).child(\"email\").setValue(email);\n startActivity(new Intent(getBaseContext(), ShoppingActivity.class));\n setResult(1);\n finish();\n } else {\n alert(task.getException().getMessage());\n }\n }\n });\n }", "private void registerUser(final String email, final String password) {\n\n progressDialog.show();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, dismiss dialog and start register activity\n progressDialog.dismiss();\n FirebaseUser user = mAuth.getCurrentUser();\n\n String email = user.getEmail();\n String uid = user.getUid();\n String username = mUserNameEdt.getText().toString().trim();\n int selectedId = radioGroup.getCheckedRadioButtonId();\n RadioButton radioSexButton = findViewById(selectedId);\n String gender = radioSexButton.getText().toString();\n\n //store the registered user info into firebase using Hashmap\n HashMap<Object, String> hashMap = new HashMap<>();\n\n hashMap.put(\"email\",email);\n hashMap.put(\"uid\",uid);\n hashMap.put(\"username\", username);\n hashMap.put(\"gender\", gender);\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference reference = database.getReference();\n\n reference.child(uid).setValue(hashMap);\n\n Toast.makeText(SignUpActivity.this, \"Registered...\\n\"+user.getEmail(), Toast.LENGTH_SHORT).show();\n startActivity(new Intent(SignUpActivity.this,UserProfileActivity.class));\n finish();\n\n } else {\n // If sign in fails, display a message to the user.\n progressDialog.dismiss();\n Toast.makeText(SignUpActivity.this, \"Authentication failed.\", Toast.LENGTH_SHORT).show();\n }\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //error, dismiss progress error, get and show the error message\n progressDialog.dismiss();\n Toast.makeText(SignUpActivity.this,\"\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void onSuccess(AuthResult authResult) {\n User user = new User();\n user.setEmail(edtMail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n user.setName(edtName.getText().toString());\n user.setPhone(edtPhone.getText().toString());\n Log.d(\"RRR\", \"OKET\" + user);\n\n users.child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void unused) {\n Snackbar.make(rootLayout, \"Register success\", Snackbar.LENGTH_SHORT)\n .show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Snackbar.make(rootLayout, \"Failed\" + e.getMessage(), Snackbar.LENGTH_SHORT)\n .show();\n }\n });\n }", "private void registerUser(){\n final String email = editTextEmail.getText().toString().trim();\n final String password = editTextPassword.getText().toString().trim();\n final String name=editTextName.getText().toString().trim();\n final String joiningdate=editTextJoiningDate.getText().toString().trim();\n //final String uid=firebaseAuth.getCurrentUser().getUid();\n //checking if email and passwords are empty\n if(TextUtils.isEmpty(email)){\n Toast.makeText(this,\"Please enter email\",Toast.LENGTH_LONG).show();\n return;\n }\n\n if(TextUtils.isEmpty(password)){\n Toast.makeText(this,\"Please enter password\",Toast.LENGTH_LONG).show();\n return;\n }\n if(TextUtils.isEmpty(name)){\n Toast.makeText(this,\"Please enter Name\",Toast.LENGTH_LONG).show();\n return;\n }\n\n if(TextUtils.isEmpty(joiningdate)){\n Toast.makeText(this,\"Please enter Joining Date\",Toast.LENGTH_LONG).show();\n return;\n }\n //if the email and password are not empty\n //displaying a progress dialog\n\n progressDialog.setMessage(\"Registering Please Wait...\");\n progressDialog.show();\n\n getLocation();\n\n //creating a new user\n firebaseAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n\n\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.i(\"Hey Entered OnComplete\",\"\");\n //checking if success\n if(task.isSuccessful()){\n Log.i(\"Hey Entered issuccess\",\"\");\n User user= new User(name,joiningdate,email,loc);\n// Map map=new HashMap();\n// map.put(\"name\",name);\n// map.put(\"joining date\",joiningdate);\n// map.put(\"email\",email);\n// map.put(\"uid\",uid);\n database=FirebaseDatabase.getInstance();\n\n myRef=database.getReference(\"Users\");\n\n myRef.child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n Toast.makeText(MainActivity.this,\"Registration Successful\",Toast.LENGTH_LONG).show();\n startActivity(new Intent(getApplicationContext(),MenuActivity.class));\n }\n else{\n Toast.makeText(MainActivity.this,\"Registration Error\",Toast.LENGTH_LONG).show();\n }\n }\n });\n\n// String id=myRef.push().getKey();\n// myRef.child(id).setValue(user);\n\n\n }\n else{\n //display some message here\n Toast.makeText(MainActivity.this,\"Registration Error\",Toast.LENGTH_LONG).show();\n }\n progressDialog.dismiss();\n }\n });\n\n }", "public static void signUp(final String email, String password, final String fullName, final String pictureUrl, final Activity activity) {\n Statics.auth.createUserWithEmailAndPassword(email, password)\n .addOnSuccessListener(new OnSuccessListener<AuthResult>() {\n @Override\n public void onSuccess(AuthResult authResult) {\n // add user to database\n Log.d(\"Test\",\"Facebook to firebase success\");\n User userToAdd = new User();\n userToAdd.setEmailAddress(email);\n String[] splited = fullName.split(\"\\\\s+\");\n userToAdd.setFirstName(splited[0]);\n userToAdd.setLastName(splited[1]);\n userToAdd.setPictureUrl(pictureUrl);\n usersTable.child(FirebaseAuth.getInstance().getCurrentUser().getUid()).setValue(userToAdd).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"Failure\",e.getMessage());\n }\n });\n Toast.makeText(activity, \"added to database \", Toast.LENGTH_LONG).show();\n }\n }).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(\"Test\",\"Facebook ato firebase success\");\n\n }\n });\n }", "private void registerUser(String email, String passwd){\n\n mAuth.createUserWithEmailAndPassword(email, passwd)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n String key = \"\";\n //checking if success\n if(task.isSuccessful()){\n key = task.getResult().getUser().getUid();\n toastMessage(\"seccuss here \"+key);\n String name = \"\";\n String phone = \"\";\n String c = String.valueOf(spinner.getSelectedItem());\n Classe classe = new Classe(c);\n name = nom.getText().toString();\n phone = tel.getText().toString();\n UserInformation U = new UserInformation(name,phone,classe);\n // toastMessage(\"hello uid \"+Useruid);\n myRef.child(\"users\").child(key).setValue(U);\n /* sharedPref = getApplicationContext().getSharedPreferences(Name, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(Key, key);\n editor.apply();*/\n\n }else{\n toastMessage(\"Failed\"); }\n\n\n }\n });\n /*sharedPref = getApplicationContext().getSharedPreferences(Name, MODE_PRIVATE);\n uid = sharedPref.getString(Key, null);\n // toastMessage(\"hello thoast \"+uid);\n return uid ;*/\n }", "public void uploadUserDetailsToDatabase(String email, String password){\n User user = new User(email, password);\n FirebaseDatabase.getInstance().getReference(\"Users\").push()\n .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Log.i(\"details\", \"uploaded\");\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.i(\"details\", \"upload failed\");\n }\n });\n }", "public void registerNewEmail(final String userID, String password){\n\n showDialog();\n\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(userID, password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(\"파베 아이디 등록\", \"유저 이메일 등록:onComplete:\" + task.isSuccessful());\n\n if (task.isSuccessful()){\n Log.d(\"파베 아이디 등록\", \"onComplete: Auth상태: \" + FirebaseAuth.getInstance().getCurrentUser().getUid());\n\n //insert some default data\n User user = new User();\n user.setEmail(userID);\n user.setUsername(userID.substring(0, userID.indexOf(\"@\")));\n user.setUser_id(FirebaseAuth.getInstance().getUid());\n\n FirebaseFirestoreSettings settings = new FirebaseFirestoreSettings.Builder()\n .setTimestampsInSnapshotsEnabled(true)\n .build();\n mDb.setFirestoreSettings(settings);\n\n DocumentReference newUserRef = mDb\n .collection(getString(R.string.collection_users))\n .document(FirebaseAuth.getInstance().getUid());\n\n newUserRef.set(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n hideDialog();\n\n if(task.isSuccessful()){\n redirectLoginScreen();\n }else{\n View parentLayout = findViewById(android.R.id.content);\n Snackbar.make(parentLayout, \"파베 가입 오류1\", Snackbar.LENGTH_SHORT).show();\n }\n }\n });\n\n }\n else {\n View parentLayout = findViewById(android.R.id.content);\n Snackbar.make(parentLayout, \"파베 가입 오류2\", Snackbar.LENGTH_SHORT).show();\n hideDialog();\n }\n\n // ...\n }\n });\n }", "public void registerUser(String email, String password){\n fbAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n Log.d(TAG, \"createUserWithEmail:success\");\n FirebaseUser user = fbAuth.getCurrentUser();\n updateUI(user);\n Toast.makeText(Signup.this, \"Registration success.\",\n Toast.LENGTH_SHORT).show();\n } else {\n // If sign in fails, display a message to the user.\n Log.w(TAG, \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(Signup.this, \"Registration failed.\",\n Toast.LENGTH_SHORT).show();\n }\n\n // ...\n }\n });\n }", "private void SaveUserToFirebase(FirebaseUser user)\n {\n\n }", "private void registerUser(){\r\n String E = Email.getText().toString().trim();\r\n String P = Password.getText().toString().trim();\r\n\r\n //if email is empty then give error\r\n if(E.isEmpty()){\r\n Email.setError(\"Email is required\");\r\n Email.requestFocus();\r\n return;\r\n }\r\n\r\n //if email is not an email format give error\r\n if(!Patterns.EMAIL_ADDRESS.matcher(E).matches()){\r\n Email.setError(\"Please enter a valid email\");\r\n Email.requestFocus();\r\n return;\r\n }\r\n //if password is empty then give error\r\n if(P.isEmpty()){\r\n Password.setError(\"Password is required\");\r\n Password.requestFocus();\r\n return;\r\n }\r\n //if password is less then 6 characters, give error.\r\n if(P.length()< 6){\r\n Password.setError(\"Minimum Password length has to be 6 or more characters\");\r\n Password.requestFocus();\r\n return;\r\n }\r\n //Calls the firebase method to create a new user.\r\n mAuth.createUserWithEmailAndPassword(E, P).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if(task.isSuccessful()){\r\n Toast.makeText(getApplicationContext(),\"User register Sucessfully\",Toast.LENGTH_SHORT).show();\r\n }\r\n }\r\n });\r\n }", "@Override\n public void onSuccess(AuthResult authResult) {\n Demo_User demo_user = new Demo_User();\n demo_user.setEmail(editEmail.getText().toString());\n demo_user.setPassword(editPassword.getText().toString());\n demo_user.setName(editName.getText().toString());\n demo_user.setPhone(editPhone.getText().toString());\n\n //user email to key\n users.child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(demo_user)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Snackbar.make(rootLayout,\"Register success fully\",Snackbar.LENGTH_LONG).show();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Snackbar.make(rootLayout,\"Failed\" + e.getMessage(),Snackbar.LENGTH_LONG).show();\n }\n });\n }", "public void SignUp2(View view){\n\n mFirebaseAuth.createUserWithEmailAndPassword(EditEmail.getText().toString(),EditPass.getText().toString())\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n saveUser(EditFirstName.getText().toString(),EditLastName.getText().toString(),EditEmail.getText().toString(),SelectSpinner.getSelectedItem().toString());\n mUserDatabaseReference.push().setValue(mClassUser);\n EditFirstName.setText(\"\");\n EditLastName.setText(\"\");\n EditEmail.setText(\"\");\n EditPass.setText(\"\");\n\n if (!task.isSuccessful()) {\n// Toast.makeText(ActivitySignup.this, \"failed to sign up\",\n// Toast.LENGTH_SHORT).show();\n }\n\n // ...\n }\n });\n\n }", "public void registerNewUser(final FirebaseFirestore db, final User user) {\n FirebaseUser FbUser = FirebaseAuth.getInstance().getCurrentUser();\n if (FbUser != null) {\n UserProfileChangeRequest request = new UserProfileChangeRequest.Builder()\n .setDisplayName(user.getName())\n .build();\n FbUser.updateProfile(request);\n }\n\n final DatabaseHelper localDB = new DatabaseHelper(getApplicationContext());\n db.collection(collection)\n .document(user.getEmail())\n .set(user)\n .addOnSuccessListener(avoid -> {\n Toast.makeText(getApplicationContext(), \"Registered\", Toast.LENGTH_SHORT).show();\n\n // Send to cache (local db)\n addToCache(user, localDB);\n\n // Send intent to dashboard\n Intent goToDashboard = new Intent(SignupActivity.this, Dashboard.class);\n Bundle myBundle = new Bundle();\n myBundle.putString(\"email\", user.getEmail());\n// myBundle.putString(\"name\", user.getName());\n// myBundle.putString(\"maxIncome\", String.valueOf(user.getMaxIncome()));\n myBundle.putBoolean(\"coming_from_login_signup\", true);\n goToDashboard.putExtras(myBundle);\n startActivity(goToDashboard);\n })\n .addOnFailureListener(e -> snackbar.showStatus(\"Not Registered\"));\n }", "private void registerUser() {\n String finalFullName = fullName.getText().toString().trim();\n String finalAge = age.getText().toString().trim();\n String finalEmail = email.getText().toString().trim();\n String finalPassword = password.getText().toString().trim();\n\n if(finalFullName.isEmpty()){\n fullName.setError(\"Full name is required.\");\n fullName.requestFocus();\n return;\n }\n\n if(finalAge.isEmpty()){\n age.setError(\"Age is required.\");\n age.requestFocus();\n return;\n }\n\n if(finalEmail.isEmpty()){\n email.setError(\"Email is required.\");\n email.requestFocus();\n return;\n }\n\n if(!Patterns.EMAIL_ADDRESS.matcher(finalEmail).matches()){\n email.setError(\"Please provide valid email!.\");\n email.requestFocus();\n return;\n }\n\n if(finalPassword.length() < 6){\n password.setError(\"Min. password length is 6 characters.\");\n password.requestFocus();\n return;\n }\n\n if(finalPassword.isEmpty()){\n password.setError(\"Password is required.\");\n password.requestFocus();\n return;\n }\n\n progressBar.setVisibility(View.VISIBLE);\n\n setEmail(finalEmail);\n setAge(finalAge);\n setFullName(finalFullName);\n\n //Using Firebase libraries, create the user data and send the info to Firebase\n mAuth.createUserWithEmailAndPassword(finalEmail, finalPassword)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //Create the User object\n User user = new User(getFullName(),getEmail(),getAge());\n\n //Now send that object to the Realtime Database\n FirebaseDatabase.getInstance().getReference(\"Users\")\n //Get registered user's ID and set it the the User object\n //so that they're connected\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n //pass the user object. OnCompleteListener is used to Check if\n //the data was added to the database.\n .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n //Inside OnCompleteListener you must complete that\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if(task.isSuccessful()){\n Toast.makeText(RegistrationActivity.this, \"User has been registered successfully!\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n\n //Then redirect to login layout\n } else {\n Toast.makeText(RegistrationActivity.this,\"Failed to register. Try again.\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n }\n\n }\n });\n } else {\n Toast.makeText(RegistrationActivity.this,\"Failed to register. Try again.\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n }\n }\n });\n\n\n\n }", "public void registerClicked(View view) {\n mDatabase = FirebaseDatabase.getInstance().getReference();\n\n\n //Creates local variable for user input on each field\n String name = ((EditText) findViewById(R.id.first_name)).getText().toString().trim();\n String lName = ((EditText) findViewById(R.id.last_name)).getText().toString().trim();\n String mail = ((EditText) findViewById(R.id.email_address)).getText().toString().trim();\n String pass = ((EditText) findViewById(R.id.confirm_password)).getText().toString().trim();\n\n HashMap<String, String> dataMap = new HashMap<String, String>();\n dataMap.put(\"Name\", name);\n dataMap.put(\"Last Name\", lName);\n dataMap.put(\"Email\", mail);\n dataMap.put(\"Password\", pass);\n\n //Push Hash Object to root of Database\n //The on-complete listener makes sure the information was pushed\n //successfully to the database.\n mDatabase.push().setValue(dataMap).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n Toast.makeText(LogIn.this, \"Registered!\", Toast.LENGTH_LONG).show();\n }else {\n Toast.makeText(LogIn.this, \"Try Again\", Toast.LENGTH_LONG).show();\n }\n }\n });\n setContentView(R.layout.activity_log_in);\n setTypeFace();\n }", "@Override\n public void onSuccess(AuthResult authResult) {\n Users user = new Users();\n user.setEmail(inputEmail.getText().toString());\n user.setName(inputName.getText().toString());\n user.setPhone(inputPhoneNumber.getText().toString());\n user.setPassword(inputPassword.getText().toString());\n\n users.child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Snackbar.make(relativeLayoutsignup,\"SignUp Successfully\",Snackbar.LENGTH_SHORT)\n .show();\n\n startActivity(new Intent(SignUpActivity.this,SignInActivity.class));\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Snackbar.make(relativeLayoutsignup,\"Failed\"+e.getMessage(),Snackbar.LENGTH_SHORT)\n .show();\n }\n });\n }", "private void userRegister(){\n String Email = email.getText().toString().trim();\n String Username = username.getText().toString().trim();\n String Password = password.getText().toString().trim();\n\n if(TextUtils.isEmpty(Email)){\n Toast.makeText(this,\"Please Enter Email ID\",Toast.LENGTH_SHORT).show();\n return;\n }\n if(TextUtils.isEmpty(Username)){\n Toast.makeText(this,\"Please Enter Username\",Toast.LENGTH_SHORT).show();\n return;\n }\n if(TextUtils.isEmpty(Password)){\n Toast.makeText(this,\"Please Enter Password\",Toast.LENGTH_SHORT).show();\n return;\n }\n\n progressDialog.setMessage(\"Registering User....\");\n progressDialog.show();\n\n mAuth.createUserWithEmailAndPassword(Email,Password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful())\n {\n Toast.makeText(SignUp.this,\"Registered Successfully\",Toast.LENGTH_SHORT).show();\n// startActivity(new Intent(getApplicationContext(),LogIn.class));\n// finish();\n } else{\n return;\n }\n }\n });\n\n User user = new User(mAuth.getCurrentUser().getUid(), 1, Email, Username);\n dbRef.child(\"users\")\n .child(mAuth.getCurrentUser().getUid())\n .setValue(user);\n\n UserAccountSetting settings = new UserAccountSetting(\n \"\",\n \"\",\n 0,\n 0,\n 0,\n \"\",\n Username);\n dbRef.child(\"user_account_setting\").child(mAuth.getCurrentUser().getUid()).setValue(settings);\n\n\n }", "private void registerUser() {\n\n // Store values at the time of the login attempt.\n String username = mUsernameView.getText().toString();\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n String firstName = mFirstNameView.getText().toString();\n String lastName = mLastNameView.getText().toString();\n String dob = mDoBView.getText().toString();\n double height = Double.parseDouble(mHeightView.getText().toString());\n double weight = Double.parseDouble(mWeightView.getText().toString());\n String gender = mGenderView.getSelectedItem().toString();\n String role;\n\n //if role switch is in \"on\" position\n if (mRoleView.isChecked())\n {\n role = mRoleView.getTextOn().toString();\n }\n\n //if role switch is in \"off\" position\n else\n {\n role = mRoleView.getTextOff().toString();\n }\n\n\n\n //check if insertion is successful or not\n DatabaseReference.CompletionListener insertListener = new DatabaseReference.CompletionListener()\n {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference usersRef)\n {\n\n\n if (databaseError != null)\n {\n Log.d(\"test\", \"failed insertion\");\n\n //Failed insertion\n }\n\n else\n {\n //Successful insertion, return to main activity\n finish();\n }\n\n }\n };\n\n //create user object, push into database\n\n\n\n if (role.equals(\"Coach\"))\n {\n Coach newUser = new Coach(username, email, password, firstName, lastName, dob, height, weight, gender, role);\n appState.userRef.child(\"coaches\").child(username).setValue(newUser, insertListener);\n\n }\n\n else if (role.equals(\"Athlete\"))\n {\n Athlete newUser = new Athlete(username, email, password, firstName, lastName, dob, height, weight, gender, role);\n appState.userRef.child(\"athletes\").child(username).setValue(newUser, insertListener);\n\n }\n\n\n }", "public void registerUser(View view) {\n TextView emailAddressField = (TextView) findViewById(R.id.registerEmailAddress);\n final String emailAddress = emailAddressField.getText().toString();\n\n TextView passwordField = (TextView) findViewById(R.id.registerPassword);\n final String password = passwordField.getText().toString();\n\n TextView nameField = (TextView) findViewById(R.id.registerName);\n final String name = nameField.getText().toString();\n\n final String company = \"Purple Store\";\n\n if(emailAddress.isEmpty() || password.isEmpty() || name.isEmpty()) {\n Toast.makeText(this, \"Email Address, password or name cannot be blank\",Toast.LENGTH_SHORT).show();\n return;\n }\n\n mAuth.createUserWithEmailAndPassword(emailAddress, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n Log.d(TAG, \"createUserWithEmail:success\");\n FirebaseUser currentUser = mAuth.getCurrentUser();\n String uid = currentUser.getUid();\n\n // Write credentials in Fire Store\n User newUser = new User();\n newUser.createUser(uid, emailAddress, name, company);\n newUser.writeData();\n\n // Save the details on shared preferences for future calls\n SharedPreferences sharedPreferences = getSharedPreferences(\"USER_DETAILS\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"userId\", uid);\n editor.putString(\"emailAddress\", emailAddress);\n editor.putString(\"name\", name);\n editor.putString(\"companyId\", company);\n editor.apply();\n\n // Redirect to Dashboard\n Intent intent = new Intent(RegisterActivity.this, MainActivity.class);\n startActivity(intent);\n } else {\n // If sign in fails, display a message to the user.\n Log.w(TAG, \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(RegisterActivity.this, task.getException().getMessage(),Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public String registerUser(ChatRoomUser newUser) throws Exception{\n Firebase roomsNodeRef = fire_db.child(\"Users\");\n Firebase newNodeRef = roomsNodeRef.push();\n if (newUser != null)\n try {\n newNodeRef.setValue(newUser,new Firebase.CompletionListener() {\n @Override\n public void onComplete(FirebaseError firebaseError, Firebase firebase) {\n if (firebaseError != null) {\n System.out.println(\"Data could not be saved. \" + firebaseError.getMessage());\n } else {\n System.out.println(\"Data saved successfully.\");\n }\n }\n });\n String postId = newNodeRef.getKey();\n return postId;\n }catch (Exception exc){\n throw new Exception(\"Something failed.\", new Throwable(String.valueOf(Exception.class)));\n }\n return null;\n }", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "@Override\n public void onSuccess(Map<String, Object> result) {\n Firebase newUserRef = ref.child(\"users\").child(\"username\");\n User newUser = new User();\n\n newUser.email = signUpEmail;\n newUser.fullName = fullName;\n newUser.password = password;\n\n newUserRef.setValue(newUser);\n\n Toast.makeText(SignupActivity.this, \"Successfully created new account\", Toast.LENGTH_LONG).show();\n finish();\n }", "public void register(View view) {\n if(radioGroup.getCheckedRadioButtonId() == -1){\n Snackbar.make(getCurrentFocus(),\"Please select one of the Options: Student or Professor\",Snackbar.LENGTH_LONG).show();\n return;\n }\n if (usn.getText().toString().trim().equals(\"\")){\n usn.setError(\"This field cannot be empty\");\n return;\n } else if (password.getText().toString().trim().equals(\"\")){\n password.setError(\"This field cannot be empty\");\n return;\n } else if(password.getText().toString().trim().length() < 8){\n password.setError(\"Password too short.\");\n return;\n } else if(confirmPassword.getText().toString().trim().equals(\"\")){\n confirmPassword.setError(\"This field cannot be empty\");\n return;\n } else if(!(password.getText().toString().trim()\n .equals(confirmPassword.getText().toString().trim()))){\n password.setError(\"Passwords do not match\");\n confirmPassword.setError(\"Passwords do not match\");\n return;\n }\n progressBar.setVisibility(View.VISIBLE);\n mAuth.signInAnonymously().addOnSuccessListener(authResult -> myRef.child(usn.getText().toString().trim()).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n try {\n String username = dataSnapshot.child(\"emailId\").getValue().toString();\n String password = confirmPassword.getText().toString().trim();\n System.out.println(username);\n mAuth.createUserWithEmailAndPassword(username,password)\n .addOnCompleteListener(RegisterActivity.this,task -> {\n Log.d(\"TAG\",\"Created User:\"+task.isSuccessful());\n if(!task.isSuccessful()){\n Toast.makeText(RegisterActivity.this, \"Error occurred.\" +\n \" Could not create user. Please \" +\n \"check your internet connection\", Toast.LENGTH_LONG).show();\n return;\n }\n else {\n startActivity(new Intent(RegisterActivity.this,LoginActivity.class));\n finish();\n }\n });\n\n }catch (NullPointerException e){\n usn.setError(\"Invalid USN. Please check your input or contact\" +\n \" your department for help\");\n progressBar.setVisibility(View.INVISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n }))\n .addOnFailureListener(e -> {\n progressBar.setVisibility(View.INVISIBLE);\n Snackbar.make(view,\"Something went wrong.Please check if you have an internet connection or that the details\" +\n \"entered are valid\",Snackbar.LENGTH_LONG).show();\n });\n }", "private void addUserToFireBase() {\n Storage storage = new Storage(activity);\n RetrofitInterface retrofitInterface = RetrofitClient.getRetrofit().create(RetrofitInterface.class);\n Call<String> tokenCall = retrofitInterface.addUserToFreebase(RetrofitClient.FIREBASE_ENDPOINT + \"/\" + storage.getUserId() + \"/\" + storage.getFirebaseToken(), storage.getAccessToken());\n tokenCall.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n if (response.isSuccessful()) {\n\n Toast.makeText(activity, \"Firebase success!\", Toast.LENGTH_SHORT).show();\n\n } else {\n Toast.makeText(activity, \"Failed to add you in Firebase!\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n\n /*handle network error and notify the user*/\n if (t instanceof SocketTimeoutException) {\n Toast.makeText(activity, R.string.connection_timeout, Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n\n saveUser save = new saveUser(registerEmailString, registerPassword);\n FirebaseDatabase.getInstance().getReference(\"Register\").child(FirebaseAuth.\n getInstance().getCurrentUser().getUid()).setValue(save).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n progressDialog.dismiss();\n Toast.makeText(Sign_Up.this, \"Sign up successful\", Toast.LENGTH_SHORT).show();\n\n pleaseWait.setVisibility(View.GONE);//\n Intent bac = new Intent(Sign_Up.this, Sign_In.class);\n startActivity(bac);\n\n } else {\n progressDialog.dismiss();\n Toast.makeText(Sign_Up.this, \"Email already exist error\", Toast.LENGTH_SHORT).show();\n pleaseWait.setVisibility(View.GONE);\n\n }\n }\n });\n } else {\n progressDialog.dismiss();\n Toast.makeText(Sign_Up.this, \"Error try again\", Toast.LENGTH_SHORT).show();\n pleaseWait.setVisibility(View.GONE);\n }\n }", "public void Register() {\n Url url = new Url();\n User user = new User(fname.getText().toString(), lname.getText().toString(), username.getText().toString(), password.getText().toString());\n Call<Void> registerUser = url.createInstanceofRetrofit().addNewUser(user);\n registerUser.enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n Toast.makeText(getActivity(), \"User Registered successfully\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n Toast.makeText(getActivity(), \"Error\" + t, Toast.LENGTH_SHORT).show();\n }\n });\n }", "void registerUser(User newUser);", "public void registerNewEmail(String email, String password){\n\n showProgressDialog();\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if (task.isSuccessful()){\n Log.d(TAG, \"onComplete: AuthState: \" + FirebaseAuth.getInstance().getCurrentUser().getUid());\n\n // TODO(\"send verification email\")\n // sendVerificationEmail();\n\n //insert some default user data\n String selectedLanguage = mUserRegBinding.spinnerLanguage.getSelectedItem().toString();\n String selectedCountry = mUserRegBinding.spinnerCountry.getSelectedItem().toString();\n String userId = FirebaseAuth.getInstance().getCurrentUser().getUid();\n PrivateUser user = new PrivateUser();\n user.setFirstName(mUserRegBinding.editTextFirstName.getText().toString());\n user.setLastName(mUserRegBinding.editTextLastName.getText().toString());\n user.setTelephone(mUserRegBinding.editTextPrivTelephone.getText().toString());\n user.setCountry(selectedCountry);\n user.setLanguage(selectedLanguage);\n user.setUser_id(userId);\n\n\n // get the document reference for private users\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n DocumentReference privateUserRef = db\n .collection(getString(R.string.private_user))\n .document(userId);\n\n privateUserRef.set(user).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n hideProgressDialog();\n Snackbar.make(getCurrentFocus().getRootView(), \"Registration Successful :)\", Snackbar.LENGTH_SHORT).show();\n\n // sign current user out\n FirebaseAuth.getInstance().signOut();\n\n // send user to login screen on successful registration\n Bundle bundle = new Bundle();\n bundle.putString(\"TYPE_OF_USER\", getString(R.string.private_user));\n redirectLoginScreen(bundle);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n hideProgressDialog();\n Log.e( \"Db Creation Failed\", \"Failed\", e );\n Snackbar.make(getCurrentFocus().getRootView(), e.getMessage(), Snackbar.LENGTH_SHORT).show();\n }\n });\n\n }\n if (!task.isSuccessful()) {\n FirebaseAuthException e = (FirebaseAuthException) task.getException();\n Snackbar.make(getCurrentFocus().getRootView(), e.getMessage(), Snackbar.LENGTH_LONG).show();\n Log.e( \"User Registration: \" , \"Failed\", e );\n }\n hideProgressDialog();\n }\n });\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "void onUserCreated(FirebaseUser firebaseUser);", "@Override\n public void onSuccess(AuthResult authResult) {\n userWAPFirebase.create(newUser, firebaseAuth.getCurrentUser().getUid()).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(TAG, \"User \" + newUser.getUsername() + \" has been successfully created\");\n Toast.makeText(SignUpActivity.this, \"Sign up successful!\", Toast.LENGTH_SHORT).show();\n\n //Go back to Login Activity\n Intent loginIntent = new Intent(SignUpActivity.this, LoginActivity.class);\n loginIntent.putExtra(PASSWORD_KEY, etPasswordSignup.getText().toString());\n loginIntent.putExtra(EMAIL_KEY, newUser.getEmail());\n startActivity(loginIntent);\n }\n });\n }", "Boolean registerNewUser(User user);", "public void createUserInFirebase(String name, String email, String Uid) {\n User user = new User();\n user.setName(name);\n user.setEmail(email);\n mDatabase.child(\"users\").child(Uid).setValue(user);\n }", "private void registerUser(){\n final String email = editTextEmail.getText().toString().trim();\n final String password = editTextPassword.getText().toString().trim();\n final String name = editTextName.getText().toString().trim();\n int selectedId = radioGroup.getCheckedRadioButtonId();\n genderradioButton = (RadioButton) findViewById(selectedId);\n final String cat=genderradioButton.getText().toString();\n //checking if email and passwords are empty\n if(TextUtils.isEmpty(email)){\n Toast.makeText(this,\"Please enter email\",Toast.LENGTH_LONG).show();\n return;\n }\n\n if(TextUtils.isEmpty(password)){\n Toast.makeText(this,\"Please enter password\",Toast.LENGTH_LONG).show();\n return;\n }\n\n\n progressDialog.setMessage(\"Registering Please Wait...\");\n progressDialog.show();\n\n\n //creating a new user\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n //checking if success\n if(task.isSuccessful()){\n mAuth.getCurrentUser().sendEmailVerification()\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()){\n\n\n\n no = mobile.getText().toString();\n validNo(no);\n String user_id = mAuth.getCurrentUser().getEmail();\n DatabaseReference current_user_db = mDatabase.child(user_id);\n current_user_db.child(\"Category\").setValue(cat);\n current_user_db.child(\"Email\").setValue(email);\n current_user_db.child(\"Password\").setValue(password);\n current_user_db.child(\"mobileno\").setValue(no);\n current_user_db.child(\"Name\").setValue(name);\n\n Toast.makeText(SignupActivity.this,\"Successfully registered.please check your email\",Toast.LENGTH_LONG).show();\n editTextEmail.setText(\" \");\n editTextPassword.setText(\" \");\n }else {\n Toast.makeText(SignupActivity.this,task.getException().getMessage(),Toast.LENGTH_LONG).show();\n }\n\n\n }\n });\n\n }else{\n\n Toast.makeText(SignupActivity.this,\"Registration Error\",Toast.LENGTH_LONG).show();\n }\n progressDialog.dismiss();\n }\n });\n\n\n\n\n }", "public void addNewUser(String email) {\n String userName = email.split(\"@\")[0];\n mUsersRef.child(userName).setValue(userName);\n userRef = db.getReference(\"users/\" + getUsername());\n userRef.child(\"email\").setValue(email);\n userSigns = new HashMap<String, UserSign>();\n }", "public void createUserAccount(String email, String password, final String userId, final SignUpInterface listner) {\n collectionReference = db.collection(\"Users\");\n firebaseAuth = FirebaseAuth.getInstance();\n firebaseAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n currentUser = FirebaseAuth.getInstance().getCurrentUser();\n assert currentUser!= null;\n final String currentUserId = currentUser.getUid();\n\n Map<String, String> userMap = new HashMap<>();\n userMap.put(\"UserIdInDB\", currentUserId);\n userMap.put(\"UserName\", userId);\n\n collectionReference.add(userMap)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n documentReference.get()\n .addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n if(task.getResult().exists()) {\n\n String name = task.getResult().getString(\"UserName\");\n\n EntityClass entityObj = EntityClass.getInstance();\n entityObj.setUserName(name);\n entityObj.setUserIdInDb(currentUserId);\n listner.signUpStatus(true);\n }\n }\n });\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(TAG, \"onFailure: \" + e.getMessage());\n listner.signUpStatus(false);\n listner.onFailure(e.getMessage());\n }\n });\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(TAG, \"onFailure: \" + e.getMessage());\n listner.signUpStatus(false);\n listner.onFailure(e.getMessage());\n }\n });\n }", "private void registerNewUser() {\n progressBar.setVisibility(View.VISIBLE);\n\n final String email, password, displayName;\n email = emailTV.getText().toString();\n password = passwordTV.getText().toString();\n displayName = nameTV.getText().toString();\n\n //Make sure user has entered details for all fields.\n if(TextUtils.isEmpty(displayName)){\n Toast.makeText(getApplicationContext(), \"Please enter username.\", Toast.LENGTH_LONG).show();\n return;\n }\n if (TextUtils.isEmpty(email)) {\n Toast.makeText(getApplicationContext(), \"Please enter email.\", Toast.LENGTH_LONG).show();\n return;\n }\n if (TextUtils.isEmpty(password)) {\n Toast.makeText(getApplicationContext(), \"Please enter password.\", Toast.LENGTH_LONG).show();\n return;\n }\n if(filePath == null){\n Toast.makeText(getApplicationContext(), \"Please select an image and try again.\", Toast.LENGTH_LONG).show();\n return;\n }\n //Updates Firebase to register a new user with email and password\n //also uploads image to Firebase for user account.\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n Uri userUri;\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n Toast.makeText(getApplicationContext(), \"Registration successful!\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n //Create a new user with name and email address.\n User newUser = new User(displayName, email , getLocationAddress(), loc.getLatitude(), loc.getLongitude());\n newUser.writeUser(FirebaseAuth.getInstance().getCurrentUser().getUid());\n //Update user profile on Firebase to add a display name.\n UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder().setDisplayName(displayName).build();\n mAuth.getCurrentUser().updateProfile(profileUpdates);\n\n if (filePath != null) {\n //displaying progress dialog while image is uploading\n Log.e(\"FilePath: \", filePath.toString());\n Log.e(\"Current User: \", mAuth.getCurrentUser().getEmail());\n final StorageReference sRef = mStorageReference.child(\"users/\" + mAuth.getCurrentUser().getUid());\n //Get image from users phone media.\n Bitmap bmpImage = null;\n try {\n bmpImage = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n //Compress image size.\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bmpImage.compress(Bitmap.CompressFormat.JPEG, 25, baos);\n byte[] data = baos.toByteArray();\n //adding the file to firebase reference\n sRef.putBytes(data)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n sRef.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n final Uri downloadUri = uri;\n userUri = downloadUri;\n //Upload image file to Firebase database.\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference dbRef = database.getReference().child(\"users\").child(mAuth.getCurrentUser().getUid()).child(\"photoUri\");\n Log.e(\"user download url: \", userUri.toString());\n dbRef.setValue(userUri.toString());\n //displaying success toast\n Toast.makeText(getApplicationContext(), \"File Uploaded \", Toast.LENGTH_LONG).show();\n //Add user dp url to user class in Firebase.\n UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder().setPhotoUri(downloadUri).build();\n mAuth.getCurrentUser().updateProfile(profileUpdates);\n }\n });\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n } else {\n Toast.makeText(getApplicationContext(), \"Select a picture and try again.\", Toast.LENGTH_SHORT).show();\n }\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n startActivity(intent);\n }\n else {\n Toast.makeText(getApplicationContext(), \"Registration failed! Please try again later\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n }\n }\n });\n }", "@Override\n public void onSuccess(AuthResult authResult) {\n Log.d(\"Test\",\"Facebook to firebase success\");\n User userToAdd = new User();\n userToAdd.setEmailAddress(email);\n String[] splited = fullName.split(\"\\\\s+\");\n userToAdd.setFirstName(splited[0]);\n userToAdd.setLastName(splited[1]);\n userToAdd.setPictureUrl(pictureUrl);\n usersTable.child(FirebaseAuth.getInstance().getCurrentUser().getUid()).setValue(userToAdd).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"Failure\",e.getMessage());\n }\n });\n Toast.makeText(activity, \"added to database \", Toast.LENGTH_LONG).show();\n }", "User registration(User user);", "@Override\n public void onError(FirebaseError firebaseError) {\n Log.d(TAG, \"New user creation Firebase error\");\n }", "public static void createUser(Context context, String email, String password, String name, String bio) {\n if (name.isEmpty() || name.contains(\".\") || name.contains(\"$\") || name.contains(\"#\") || name.contains(\"[\") || name.contains(\"]\") || name.contains(\"/\")) { // No characters that would conflict with firebase path name restrictions\n Log.d(\"RecipeFinderAuth\", \"Sign up Failed!\");\n Toast.makeText(context, \"Sign Up Failed!\", Toast.LENGTH_SHORT).show();\n return;\n }\n FirebaseDatabase.getInstance().getReference().child(\"displayNames\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if (snapshot.hasChild(name)) { // Display name taken\n Log.d(\"RecipeFinderAuth\", \"Sign up Failed!\");\n Toast.makeText(context, \"Sign Up Failed!\", Toast.LENGTH_SHORT).show();\n } else {\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(new OnCompleteListener<AuthResult> () {\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) { // Account was successfully created\n Log.d(\"RecipeFinderAuth\", \"Account Created!\");\n Toast.makeText(context, \"Account Created!\", Toast.LENGTH_SHORT).show();\n addNewToDataBase(name, bio); // Add the user to the database of users\n ((AppCompatActivity)(context)).finish();\n\n // Logged in, show home\n Intent intent = new Intent(context, HomeActivity.class);\n context.startActivity(intent);\n } else { // Account was not successfully created\n Log.d(\"RecipeFinderAuth\", \"Sign up Failed!\");\n Toast.makeText(context, \"Sign Up Failed!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "public void goClicked(View view){\n final String email=emailEditText.getText().toString();\n final String password=passwordEditText.getText().toString();\n\n\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n //Sign in the user\n Log.i(\"Infograph\", \"Sign in was successful\");\n loginUser();\n Toast.makeText(MainActivity.this, \"Signed in successfully !\", Toast.LENGTH_SHORT).show();\n } else {\n //Sign up the user\n Log.i(\"Infograph\", \"Sign in was not successful, Attempting SignUp\");\n mAuth.createUserWithEmailAndPassword(email,password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //Add to database\n DatabaseReference reference=database.getReference().child(\"users\").child(mAuth.getCurrentUser().getUid()).child(\"email\");\n\n reference.setValue(email);\n\n Log.i(\"Infograph\",\"Sign up was successful\");\n loginUser();\n Toast.makeText(MainActivity.this, \"Signed up successfully !\", Toast.LENGTH_SHORT).show();\n\n\n }else{\n Log.i(\"Infograph\",\"Sign up was not successful\");\n Toast.makeText(MainActivity.this, task.getException().getMessage(), Toast.LENGTH_SHORT).show();\n\n }\n }\n });\n }\n\n\n }\n });\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n binding = ActivitySignupBinding.inflate(getLayoutInflater());\n setContentView(binding.getRoot());\n mRegisterBtn= findViewById(R.id.signup);\n mEmail = findViewById(R.id.username);\n mPassword = findViewById(R.id.password);\n\n getSupportActionBar().hide();\n mAuth = FirebaseAuth.getInstance();\n database = FirebaseDatabase.getInstance();\n\n progressDialog = new ProgressDialog(SignupActivity.this);\n progressDialog.setTitle(\"creating your account\");\n progressDialog.setMessage(\"We're creating your account\");\n\n mRegisterBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final String email = binding.username.getText().toString().trim();\n String password = binding.password.getText().toString().trim();\n String confirm_password = binding.confirmPassword.getText().toString().trim();\n\n if (TextUtils.isEmpty(email)) {\n mEmail.setError(\"Email is Required.\");\n return;\n }\n\n if (TextUtils.isEmpty(password)) {\n mPassword.setError(\"Password is Required.\");\n return;\n }\n\n if (password.length() < 6) {\n mPassword.setError(\"Password Must be greater than 6 Characters\");\n return;\n }\n\n if (TextUtils.isEmpty(confirm_password)) {\n mPassword.setError(\"Confirm Password\");\n return;\n }\n\n if(password.equals(confirm_password))\n {\n progressDialog.show();\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(task -> {\n progressDialog.dismiss();\n if (task.isSuccessful()) {\n Users user = new Users(email, password);\n\n String id = task.getResult().getUser().getUid();\n database.getReference(\"Users\").child(id).setValue(user);\n\n Toast.makeText(SignupActivity.this, \"user created\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(SignupActivity.this, task.getException().getMessage(), Toast.LENGTH_LONG).show();\n\n }\n });\n }\n }\n });\n binding.login.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent i = new Intent(SignupActivity.this,LoginActivity.class);\n startActivity(i);\n finish();\n }\n });\n\n\n\n }", "private void CreateNewAccount(final String phone, final String password, final String name) {\n if (TextUtils.isEmpty(phone)){\n Toast.makeText(this,\"Please enter your phone number ...\",Toast.LENGTH_SHORT).show();\n }\n else if(TextUtils.isEmpty(password)){\n Toast.makeText(this,\"Please enter your phone password ...\",Toast.LENGTH_SHORT).show();\n }\n else if(TextUtils.isEmpty(name)){\n Toast.makeText(this,\"Please enter your phone name ...\",Toast.LENGTH_SHORT).show();\n }\n else{\n //start creating account\n LoadingBar.show();\n\n final DatabaseReference mRef;\n mRef = FirebaseDatabase.getInstance().getReference();\n mRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if (!(snapshot.child(\"Users\").child(phone).exists())){\n //if user not exist then we create account in database\n HashMap<String,Object> userdata = new HashMap<>();\n userdata.put(\"phone\",phone);\n userdata.put(\"password\",password);\n userdata.put(\"name\",name);\n mRef.child(\"Users\").child(phone).updateChildren(userdata)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()){\n LoadingBar.dismiss();\n Toast.makeText(RegisterActivity.this,\"Registration Successful\",Toast.LENGTH_SHORT).show();\n }\n else{\n LoadingBar.dismiss();\n Toast.makeText(RegisterActivity.this,\"Please try again after sometime ....\",Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n else{\n LoadingBar.dismiss();\n Toast.makeText(RegisterActivity.this,\"User with this number already exist ....\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n\n }\n }", "private void Register(String mailSTR, String passwordSTR, String fNameSTR, String lNameSTR, String citySTR, String phoneNumberSTR) throws Exception {\n mAuth.createUserWithEmailAndPassword(mailSTR, passwordSTR)\n .addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n final Map<String, Object>[] dataToSave = new Map[]{new HashMap<String, Object>()};\n dataToSave[0].put(constants.FIRST_NAME, fNameSTR);\n dataToSave[0].put(constants.SEC_NAME, lNameSTR);\n dataToSave[0].put(constants.CITY, citySTR);\n dataToSave[0].put(constants.EMAIL, mailSTR);\n dataToSave[0].put(constants.PHONE, phoneNumberSTR);\n dataToSave[0].put(constants.VOLUNTEER, \"false\");\n\n\n FirebaseDatabase.getInstance().getReference(constants.DOC_REF_USERS)\n //here we creating users folder in real time data baes , getting uid from user and storing the data in folder named by id\n .child(Objects.requireNonNull(FirebaseAuth.getInstance().getCurrentUser()).getUid())\n .setValue(dataToSave[0]).addOnCompleteListener(task1 -> {\n if (task1.isSuccessful()) {\n Toast.makeText(register2.this,\n R.string.register_toast_success, Toast.LENGTH_LONG).show();\n {//adds all new data for newely registered clients\n dayTime dtDEF = new dayTime(0, 0, 23, 59);//default for first time\n Gson gson = new Gson();\n SharedPreferences sp = getSharedPreferences(constants.SHARED_PREFS,\n Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n String dayDEF = gson.toJson(dtDEF);\n Map<String, String> docData = new HashMap<>();\n for (String day : constants.daysNames) {\n docData.put(day, dayDEF);\n editor.putString(day, dayDEF);\n }\n docData.put(constants.rangeChoice, \"\" + 10.0);\n editor.putFloat(constants.rangeChoice, (float) 10.0);\n\n docData.put(constants.SHARED_PREFS_LOCATION, constants.SET_CITY);\n editor.putString(constants.SHARED_PREFS_LOCATION, constants.SET_CITY);\n\n FirebaseAuth userIdentifier = FirebaseAuth.getInstance();\n String UID = userIdentifier.getCurrentUser().getUid();\n DocumentReference DRF = FirebaseFirestore.getInstance()\n .document(constants.DOC_REF_USERS+\"/\" + UID);\n final boolean[] success = {true};\n final Exception[] failToRet = new Exception[1];\n DRF.set(docData).addOnFailureListener(e -> {\n success[0] = false;\n failToRet[0] = e;\n });\n if (!success[0]) {\n // show/make log for case of failure\n }\n editor.apply();\n\n }\n }\n });\n\n\n }\n\n }).addOnFailureListener(e -> {\n try {\n throw new Exception(constants.FAILED_REGISTER);\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n });\n\n\n }", "@Override\n public void onClick(View view) {\n if (validate()) {\n String user_email = create_email.getText().toString().trim();\n String user_password = create_password.getText().toString().trim();\n firebaseAuth.createUserWithEmailAndPassword(user_email, user_password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if (task.isSuccessful()) {\n //sendEmailVerification();\n //sendUserData();\n firebaseAuth.signOut();\n Toast.makeText(CreateNewSurvey.this, \"Successfully Registered, Upload complete!\", Toast.LENGTH_SHORT).show();\n finish();\n startActivity(new Intent(CreateNewSurvey.this, Main2Activity.class));\n } else {\n Toast.makeText(CreateNewSurvey.this, \"Registration Failed\", Toast.LENGTH_SHORT).show();\n }\n\n }\n\n });\n }\n }", "@Override\n public void onClick(View v) {\n\n String Id = FCMdatabase.push().getKey();\n residentUser user = new residentUser(Id.toString(), txtusername.getText().toString(), txtpassword.getText().toString(), \"\");\n FCMdatabase.child(Id).setValue(user);\n Toast.makeText(getContext(), \"user added successfully\", Toast.LENGTH_SHORT).show();\n }", "private void Register(String mailSTR, String passwordSTR, String fNameSTR, String lNameSTR, String citySTR, String phoneNumberSTR) throws Exception {\n mAuth.createUserWithEmailAndPassword(mailSTR, passwordSTR)\n .addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n final Map<String, Object>[] dataToSave = new Map[]{new HashMap<String, Object>()};\n dataToSave[0].put(constants.FIRST_NAME, fNameSTR);\n dataToSave[0].put(constants.SEC_NAME, lNameSTR);\n dataToSave[0].put(constants.CITY, citySTR);\n dataToSave[0].put(constants.EMAIL, mailSTR);\n dataToSave[0].put(constants.PHONE, phoneNumberSTR);\n\n\n\n FirebaseDatabase.getInstance().getReference(constants.DOC_REF_USERS)\n //here we creating users folder in real time data baes , getting uid from user and storing the data in folder named by id\n .child(Objects.requireNonNull(FirebaseAuth.getInstance().getCurrentUser()).getUid())\n .setValue(dataToSave[0]).addOnCompleteListener(task1 -> {\n if (task1.isSuccessful()) {\n Toast.makeText(register3.this,\n R.string.register_toast_success, Toast.LENGTH_LONG).show();\n {//adds all new data for newely registered clients\n dayTime dtDEF = new dayTime(0, 0, 23, 59);//default for first time\n Gson gson = new Gson();\n SharedPreferences sp = getSharedPreferences(constants.SHARED_PREFS,\n Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n String dayDEF = gson.toJson(dtDEF);\n Map<String, String> docData = new HashMap<>();\n for (String day : constants.daysNames) {\n docData.put(day, dayDEF);\n editor.putString(day, dayDEF);\n }\n docData.put(constants.rangeChoice, \"\" + 10.0);\n editor.putFloat(constants.rangeChoice, (float) 10.0);\n\n docData.put(constants.SHARED_PREFS_LOCATION, constants.CITY);\n editor.putString(constants.SHARED_PREFS_LOCATION, constants.CITY);\n editor.putBoolean(\"sync\",true);\n FirebaseAuth userIdentifier = FirebaseAuth.getInstance();\n String UID = userIdentifier.getCurrentUser().getUid();\n DocumentReference DRF = FirebaseFirestore.getInstance()\n .document(constants.DOC_REF_USERS+\"/\" + UID);\n final boolean[] success = {true};\n final Exception[] failToRet = new Exception[1];\n DRF.set(docData).addOnFailureListener(e -> {\n success[0] = false;\n failToRet[0] = e;\n });\n if (!success[0]) {\n // show/make log for case of failure\n }\n editor.apply();\n\n }\n }\n });\n\n\n }\n\n }).addOnFailureListener(e -> {\n try {\n throw new Exception(constants.FAILED_REGISTER);\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n });\n\n\n }", "public void onCreateAccountPressed(final View view) throws FirebaseAuthUserCollisionException{\n username=mEditTextUsernameCreate.getText().toString();\n email=mEditTextEmailCreate.getText().toString();\n password=mEditTextPasswordCreate.getText().toString();\n\n if(!isEmailValid(email) || !isUserNameValid(username) || !isPasswordValid(password)){\n return;\n }\n mAuthProgressDialog.show();\n final FirebaseAuth auth=FirebaseAuth.getInstance();\n final DatabaseReference ref=mReference.child(Constants.FIREBASE_LOCATION_USER_ACCOUNTS).child(Utils.encodeEmail(email));\n auth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if (task.isSuccessful()){\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n mAuthProgressDialog.dismiss();\n ref.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.getValue()==null){\n User user=new User(username, email);\n ref.setValue(user);\n }\n else {\n showErrorToast(getResources().getString(R.string.error_email_taken));\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.e(LOG_TAG, databaseError.getMessage());\n }\n });\n onSignInPressed(view);\n\n }\n else {\n mAuthProgressDialog.dismiss();\n Log.d(TAG, \"createUserWithEmail:onFailure:\" + task.getException());\n showErrorToast(task.getException().getMessage());\n\n }\n }\n\n\n });\n }", "private void addUserToDatabase( DatabaseReference postRef) {\n\n // check username, password cannot be null and may not have spaces\n final String usernameChecked = checkNullString(usernameText.getText().toString());\n final String password = checkNullString(passwordText.getText().toString());\n final String confirmPassword = checkNullString(confirmPasswordText.getText().toString());\n\n if (usernameChecked == null || password == null) {\n Toast.makeText(this, \"Entries may not be null, and may not have spaces!\", Toast.LENGTH_LONG).show();\n return;\n }\n\n if (!password.equals(confirmPassword)){\n Toast.makeText(this, \"Passwords do not match!\", Toast.LENGTH_LONG).show();\n return;\n }\n\n if (users.contains(usernameChecked)){\n Toast.makeText(this, \"Username is already taken\", Toast.LENGTH_LONG).show();\n return;\n }\n\n // initialize data for SentCount\n postRef\n .child(\"Users\")\n .child(usernameChecked)\n .runTransaction(new Transaction.Handler() {\n\n @NonNull\n @Override\n public Transaction.Result doTransaction(@NonNull MutableData currentData) {\n User newUser = new User(usernameChecked, password);\n currentData.setValue(newUser);\n return Transaction.success(currentData);\n }\n\n @Override\n public void onComplete(@Nullable DatabaseError error, boolean committed,\n @Nullable DataSnapshot currentData) {\n Log.d(TAG, \"postTransaction:onComplete:\" + currentData);\n Toast.makeText(getApplicationContext(), \"Sign up successful!\", Toast.LENGTH_LONG);\n finish();\n }\n });\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n database = new DatabaseProcessor(this.getContext());\n view = inflater.inflate(R.layout.fragment_user_registration, container, false);\n txtusername = view.findViewById(R.id.txtusername);\n txtpassword = view.findViewById(R.id.txtpassword);\n btnregister = view.findViewById(R.id.btnRegister);\n FCMdatabase = FirebaseDatabase.getInstance().getReference(\"ResidentsLogin\");\n\n btnregister.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n// SharedPreferences preferences = getActivity().getSharedPreferences(\"userdata\", getActivity().MODE_PRIVATE);\n// SharedPreferences.Editor editor = preferences.edit();\n//\n// editor.putString(\"username\", txtusername.getText().toString());\n// editor.putString(\"password\", txtpassword.getText().toString());\n// editor.commit();\n// database.registerUser(txtusername.getText().toString(), txtpassword.getText().toString());\n\n String Id = FCMdatabase.push().getKey();\n residentUser user = new residentUser(Id.toString(), txtusername.getText().toString(), txtpassword.getText().toString(), \"\");\n FCMdatabase.child(Id).setValue(user);\n Toast.makeText(getContext(), \"user added successfully\", Toast.LENGTH_SHORT).show();\n }\n });\n return view;\n }", "private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void onCreateAccountPressed(View view) {\n\n\n mUserName = mEditTextUsernameCreate.getText().toString();\n mUserEmail = mEditTextEmailCreate.getText().toString().toLowerCase();\n mPassword = mEditTextPasswordCreate.getText().toString();\n\n /**\n * Check that email and user name are okay\n */\n boolean validEmail = isEmailValid(mUserEmail);\n boolean validUserName = isUserNameValid(mUserName);\n boolean validPassword = isPasswordValid(mPassword);\n if (!validEmail || !validUserName || !validPassword) return;\n /**\n * If everything was valid show the progress dialog to indicate that\n * account creation has started\n */\n mAuthProgressDialog.show();\n\n\n // [START create_user_with_email]\n mAuth.createUserWithEmailAndPassword(mUserEmail, mPassword)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(LOG_TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(CreateAccountActivity.this, R.string.auth_failed,\n Toast.LENGTH_SHORT).show();//error message\n //showErrorToast(\"createUserWithEmail : \"+task.isSuccessful());\n }\n\n // [START_EXCLUDE]\n mAuthProgressDialog.dismiss();\n Intent intent = new Intent(CreateAccountActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n // [END_EXCLUDE]\n //end\n }\n });\n // [END create_user_with_email]\n\n\n\n /**\n * Create new user with specified email and password\n */\n /*mFirebaseRef.createUser(mUserEmail, mPassword, new Firebase.ValueResultHandler<Map<String, Object>>() {\n @Override\n public void onSuccess(Map<String, Object> result) {\n Dismiss the progress dialog\n mAuthProgressDialog.dismiss();\n Log.i(LOG_TAG, getString(R.string.log_message_auth_successful));\n }\n\n @Override\n public void onError(FirebaseError firebaseError) {\n *//* Error occurred, log the error and dismiss the progress dialog *//*\n Log.d(LOG_TAG, getString(R.string.log_error_occurred) +\n firebaseError);\n mAuthProgressDialog.dismiss();\n *//* Display the appropriate error message *//*\n if (firebaseError.getCode() == FirebaseError.EMAIL_TAKEN) {\n mEditTextEmailCreate.setError(getString(R.string.error_email_taken));\n } else {\n showErrorToast(firebaseError.getMessage());\n }\n\n }\n });*/\n }", "public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view = inflater.inflate(R.layout.fragment_add_user, container, false);\n child = FirebaseDatabase.getInstance().getReference(\"Usuarios\");\n username = view.findViewById(R.id.username);\n password = view.findViewById(R.id.user_password);\n nombre = view.findViewById(R.id.name);\n apellido = view.findViewById(R.id.apellido_user);\n register = view.findViewById(R.id.user_register);\n confirm_password = view.findViewById(R.id.user_confirm_password);\n\n register.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n if(username.getText().toString().isEmpty()){\n username.setError(\"Vacio\");\n }\n if(password.getText().toString().isEmpty()){\n password.setError(\"Vacio\");\n }\n if(nombre.getText().toString().isEmpty()){\n nombre.setError(\"Vacio\");\n }\n if(apellido.getText().toString().isEmpty()){\n apellido.setError(\"Vacio\");\n }\n if(confirm_password.getText().toString().isEmpty()){\n confirm_password.setError(\"Vacio\");\n }\n if(!username.getText().toString().isEmpty() && !password.getText().toString().isEmpty() && !nombre.getText().toString().isEmpty() && !apellido.getText().toString().isEmpty() && !confirm_password.getText().toString().isEmpty()){\n //password.getText().toString().equals(confirm_password.getText().toString())\n if(password.getText().toString().equals(confirm_password.getText().toString())){\n try {\n String key = child.push().getKey();\n String pass = null;\n pass = general.encriptar(password.getText().toString());\n Usuario user = new Usuario(username.getText().toString(), pass, nombre.getText().toString(), apellido.getText().toString(), 1, false,key, general.fecha.toString(), general.hour_ws.toString());\n //child(key).\n child.child(key).setValue(user);\n\n String bit_key = general.bitacora.push().getKey();\n Bitacora_Obj obj_bit = new Bitacora_Obj(\"Usuarios\",general.fecha, general.hour, \"Agregó Usuario\", \"A\", general.usario,bit_key,general.local);\n general.bitacora.child(bit_key).setValue(obj_bit);\n\n username.setText(\"\");\n password.setText(\"\");\n nombre.setText(\"\");\n apellido.setText(\"\");\n username.requestFocus();\n confirm_password.setText(\"\");\n nombre.setFocusable(true);\n Toast.makeText(v.getContext(), \"Usuario registrado correctamente\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n else{\n confirm_password.setText(\"\");\n Toast.makeText(getContext(), \"Contraseñas no son guales, verifique por favor!!!\", Toast.LENGTH_LONG).show();\n }\n }\n else{\n username.setText(\"\");\n password.setText(\"\");\n nombre.setText(\"\");\n apellido.setText(\"\");\n username.requestFocus();\n confirm_password.setText(\"\");\n nombre.setFocusable(true);\n Toast.makeText(view.getContext(), \"Usuario no registrado, campos incorrectos\", Toast.LENGTH_LONG).show();\n }\n }\n });\n\n\n\n return view;\n }", "public void createUser(String email, String password) {\n\n if (!validateForm()) {\n return;\n }\n\n signupBtn.setEnabled(false);\n startLoadAnim(getString(R.string.registering_user));\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(LoginActivity.this, R.string.registration_failed, Toast.LENGTH_SHORT).show();\n signupBtn.setEnabled(true);\n stopLoadAnim();\n }\n }\n });\n }", "private void createUserInFirebaseHelper(final String encodedEmail) {\n }", "public void signup() {\n Log.d(TAG, \"Signup\");\n\n if (!validate()) {\n onSignupFailed();\n return;\n }\n\n createProgressDialog(R.string.creating_account);\n\n final String name = _nameText.getText().toString();\n final String email = _emailText.getText().toString();\n final String password = _passwordText.getText().toString();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n createToast(R.string.authentication_failed, Toast.LENGTH_SHORT);\n } else {\n progressDialog.dismiss();\n final FirebaseUser user = mAuth.getCurrentUser();\n mDatabase.child(\"users\").child(user.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.getValue() == null) {\n createUserInFirebase(name, email, user.getUid());\n }\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n sendToTrivia();\n }\n\n }\n });\n\n\n new android.os.Handler().postDelayed(\n new Runnable() {\n public void run() {\n // On complete call either onSignupSuccess or onSignupFailed\n // depending on success\n progressDialog.dismiss();\n }\n }, 3000);\n }", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "public void signup(View view){\r\n if(editText1.getText().toString().isEmpty()||editText2.getText().toString().isEmpty()||editText3.getText().toString().isEmpty()\r\n ||editText4.getText().toString().isEmpty()||editText5.getText().toString().isEmpty()){\r\n Toast.makeText(this, \"Παρακαλώ εισάγετε όλα τα απαραίτητα πεδία προκειμένου να εγγραφείτε.\", Toast.LENGTH_SHORT).show();\r\n }\r\n else{\r\n mAuth.createUserWithEmailAndPassword(editText1.getText().toString(), editText2.getText().toString())\r\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n\r\n if (task.isSuccessful()) {\r\n new_user = mAuth.getCurrentUser();\r\n create_users_list(new_user.getUid());\r\n String userid=new_user.getUid();\r\n String firstname=editText3.getText().toString();\r\n String lastname=editText4.getText().toString();\r\n String address=editText5.getText().toString();\r\n SharedPreferences.Editor editor=pref.edit();\r\n editor.putString(userid+\"firstname\",firstname);\r\n editor.putString(userid+\"lastname\",lastname);\r\n editor.putString(userid+\"address\",address);\r\n editor.apply();\r\n Intent intent = new Intent(getApplicationContext(), MainActivity3.class);\r\n intent.putExtra(\"userid\", new_user.getUid());\r\n\r\n startActivity(intent);\r\n\r\n\r\n } else {\r\n Toast.makeText(getApplicationContext(), task.getException().getMessage(),\r\n Toast.LENGTH_SHORT).show();\r\n\r\n }\r\n }\r\n }\r\n );}}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(firebaseMethods.checkIfUsernameExists(username, dataSnapshot)){\n append = myRef.push().getKey().substring(0,7);\n }\n username = username + append;\n\n //add new user to the database\n firebaseMethods.addNewUser(\"notdone\",username,\"emp\",userID);\n Toast.makeText(mContext, \"Signup successful. Admin Verification \" +\n \"Left.\", Toast.LENGTH_SHORT).show();\n Intent i = new Intent(Register.this, Login.class);\n startActivity(i);\n finish();\n }", "String registerUser(User user);", "private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }", "public void register(String form /* should be a Form from GUI */){\n String email = \"email\";\n String nome_completo = \"full_name\";\n Date data_nascimento = new Date(1996-10-21);\n String password = getMd5(\"password\");\n String nif = \"nif\";\n String morada = \"morada\";\n String telemovel = \"telemovel\";\n User user = new User(email);\n if (!user.exists()){\n user.setNome_completo(nome_completo);\n user.setData_nascimento(data_nascimento);\n user.setPassword(password);\n user.setNif(nif);\n user.setMorada(morada);\n user.setTelemovel(telemovel);\n user.setAdmin(FALSE);\n //System registers person\n //db.register(user)\n }\n }", "private void signUp() {\n final String email = ((EditText) findViewById(R.id.etSignUpEmail))\n .getText().toString();\n final String password = ((EditText) findViewById(R.id.etSignUpPassword))\n .getText().toString();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:success\");\n sendVerificationEmail(mAuth.getCurrentUser());\n updateUI();\n } else {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:failure\");\n Toast.makeText(LoginActivity.this,\n \"Failed to create a new user.\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n }", "@Override\n public void onError(FirebaseError firebaseError) {\n EventBus.getDefault().post(new CreateUserResultEvent(firebaseError.getCode()));\n }", "public static void writeNewUser(User user) {\n DatabaseReference usersRef = FirebaseDatabase.getInstance().getReference();\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n usersRef.child(\"users\").child(mAuth.getUid()).setValue(user);\n }", "private void createAccount(String email, String password) {\n if (!validateForm()) {\n return;\n }\n\n // showProgressDialog();\n\n // [START create_user_with_email]\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n //Log.d(TAG, \"createUserWithEmail:success\");\n //Toast.makeText(RegistrarActivity.this, \"Usuario creado correctamente, acepte su email de verificación para continuar\", Toast.LENGTH_SHORT).show();\n FirebaseUser user=FirebaseAuth.getInstance().getCurrentUser();\n user.sendEmailVerification();\n ConstraintLayout constraintLayout=(ConstraintLayout)findViewById(R.id.layoutRegistrar);\n Snackbar snackbar=Snackbar.make(constraintLayout,\"Usuario creado correctamente, acepte su email de verificación\",Snackbar.LENGTH_LONG);\n snackbar.setAction(\"Ir a Login\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent=new Intent(getApplicationContext(),LoginActivity.class);\n startActivity(intent);\n }\n });\n snackbar.show();\n //updateUI(user);\n } else {\n // If sign in fails, display a message to the user.\n //Log.w(TAG, \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(RegistrarActivity.this, \"Autenticación fallida.\",\n Toast.LENGTH_SHORT).show();\n //updateUI(null);\n }\n\n // [START_EXCLUDE]\n //hideProgressDialog();\n // [END_EXCLUDE]\n }\n });\n // [END create_user_with_email]\n }", "@Override\n\tpublic void regist(User user) {\n\t\tdao.addUser(user);\n\t}", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser firebaseUser = firebaseOps.getCurrentFirebaseUser();\n if (firebaseUser.isEmailVerified()) {\n createUserObjectInDatabase(firebaseUser.getUid());\n\n } else {\n Toast.makeText(MainActivity.this, \"Please verify your email first\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "public abstract User register(User data);", "private void addemail() {\n //get email address entered by user.\n String emailaddress = email.getText().toString().trim();\n //get password entered by user.\n String pass = password.getText().toString().trim();\n //Create new child of user in db if both email and password is not empty.\n if (!(emailaddress.isEmpty() || pass.isEmpty())) {\n String id = emailaddress.split(\"@\")[0];\n User useremail = new User(id, emailaddress, pass, \"\",\"\");\n dblogin.child(id).setValue(useremail);\n Toast.makeText(this, \"User Registered\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Please enter a valid email address to sign up\", Toast.LENGTH_SHORT).show();\n }\n }", "private void metodoSalvarUsuarioFirebase(final Usuarios variavelClasseUsuarios) {\n\n refAutenticacaofb = ConfiguracaoFirebase.metodoAutenticacaoFirebase();\n refAutenticacaofb.createUserWithEmailAndPassword(variavelClasseUsuarios.getEmail(),\n variavelClasseUsuarios.getSenha()).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n\n idUsuario = task.getResult().getUser().getUid();\n variavelClasseUsuarios.setId(idUsuario);\n variavelClasseUsuarios.salvarUsuario();\n\n if(pegarTipoUsuarioSwitch() == \"Cliente\"){\n\n startActivity(new Intent(CadastroUsuario.this, Home.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Usuário salvo com sucesso\", Toast.LENGTH_LONG).show();\n }else{\n\n startActivity(new Intent(CadastroUsuario.this, PainelEmpresa.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Empresa inserida com sucesso!\", Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n\n\n }\n });\n\n }", "public void createAccount(final String userName , final String email , String password){\n //checking if user input is not empty\n\n\n if(userName!=null && email!=null && password!=null){\n\n\n progressBar.setVisibility(View.VISIBLE);\n\n //setting up new user ----- see assistant\n firebaseAuth.createUserWithEmailAndPassword(email , password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n\n //onCopletion of user sign in\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n // safe check if was sussesfull\n if(task.isSuccessful()) {\n //Maping a user on database\n currentUser = firebaseAuth.getCurrentUser() ;\n assert currentUser != null;\n final String userId = currentUser.getUid();\n // creating a hashmap to map\n\n Map<String,String> userObj = new HashMap<>() ;\n\n userObj.put(\"userId\", userId) ;\n userObj.put(\"userName\" , userName) ;\n\n collectionReference.add(userObj)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n //Toast.makeText(CreateAccActivity.this,\"onSucess\",Toast.LENGTH_LONG).show();\n\n Log.d(\"hello\",\"sussess\") ;\n documentReference.get()\n .addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n\n //if(!Objects.requireNonNull(task.getResult()).exists()){\n\n //Log.d(\"hello\",\"sussess\") ;\n progressBar.setVisibility(View.INVISIBLE);\n\n //Toast.makeText(CreateAccActivity.this,userName,Toast.LENGTH_LONG).show();\n\n\n String name = Objects.requireNonNull(task.getResult()).getString(\"userName\") ;\n\n journalApi journalApi = new journalApi() ;\n util.journalApi.getInstance().setUserID(userId);\n util.journalApi.getInstance().setUserName(userName);\n\n //Toast.makeText(CreateAccActivity.this,name,Toast.LENGTH_LONG).show();\n\n Log.d(\"hello\",userName) ;\n Intent intent = new Intent(CreateAccActivity.this\n ,PostJournalActivity.class) ;\n\n intent.putExtra(\"username\",name);\n intent.putExtra(\"userid\",userId) ;\n\n startActivity(intent);\n\n\n }\n /*else{\n progressBar.setVisibility(View.INVISIBLE);\n }*/\n\n\n });\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(CreateAccActivity.this\n ,\"error\" , Toast.LENGTH_LONG).show();\n }\n });\n\n }\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n Toast.makeText(CreateAccActivity.this,\"Something Went wrong\"+e\n ,Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.INVISIBLE);\n\n }\n });\n\n }\n else{\n\n Toast.makeText(CreateAccActivity.this,\"All the Fields are Requoired\",Toast.LENGTH_LONG).show();\n }\n\n }", "public void signUpUser(final AuthActivity fromAuthActivity, String email, String password, final String displayName) {\n try {\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(fromAuthActivity, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n // sign in user\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n User user = new User(firebaseUser);\n loggedInUser = user;\n setUserDisplayName(displayName);\n GameManager.statisticsManager.initUserInDatabase();\n fromAuthActivity.onSignUpSuccess();\n\n } else {\n // If sign in fails, call \"callback\"\n fromAuthActivity.onSignUpError(task.getException());\n }\n }\n });\n } catch (Exception e) {\n fromAuthActivity.onSignUpError(new Exception(\"Something didn't work here :/\"));\n e.printStackTrace();\n }\n }", "private void createAccountActivity() {\n // everything is converted to string\n String userName = createUserName.getText().toString().trim();\n String phoneNumber = createPhoneNumber.getText().toString().trim();\n String email = createEmail.getText().toString().trim();\n String password = createPassword.getText().toString().trim();\n\n\n // Validate that the entry should not be empty\n if (userName.isEmpty()) {\n createUserName.setError(\"It should not be empty. \");\n createUserName.requestFocus();\n return;\n }\n if (phoneNumber.isEmpty()) {\n createPhoneNumber.setError(\"It should not be empty. \");\n createPhoneNumber.requestFocus();\n return;\n }\n if (email.isEmpty()) {\n createEmail.setError(\"It should not be empty. \");\n createEmail.requestFocus();\n return;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n createEmail.setError(\"Invalid email\");\n createEmail.requestFocus();\n return;\n }\n\n if (password.isEmpty()) {\n createPassword.setError(\"It should not be empty. \");\n createPassword.requestFocus();\n return;\n }\n\n // connect to the firebase\n auth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n String userID = FirebaseAuth.getInstance().getCurrentUser().getUid();\n User user = new User(userName, phoneNumber, email, password, userID);\n // We will send everything in user to the firebase database\n FirebaseDatabase.getInstance()\n .getReference(\"User\")\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user).addOnCompleteListener(task1 -> {\n if (task1.isSuccessful()) {\n Toast.makeText(RegisterUser.this, \"The account has been created successfully. \", Toast.LENGTH_LONG).show();\n finish(); //basically same as clicking back button\n } else {\n Toast.makeText(RegisterUser.this, \"The account creation failed!\", Toast.LENGTH_LONG).show();\n }\n });\n } else {\n Toast.makeText(RegisterUser.this, \"The account creation failed!\", Toast.LENGTH_LONG).show();\n }\n });\n }", "private void writeNewUser(String name,String email,String password) {\n mDatabase.child(\"User\").child(name).child(\"Email\").setValue(email);\n mDatabase.child(\"User\").child(name).child(\"Password\").setValue(password);\n }", "public void registerUser(View view) {\n this.closeKeyboard();\n this.validator.validate();\n if (this.validator.hasNoErrors()) {\n User user = createUser();\n RealmUser registeredUser = registerUserDetails(user);\n //TODO register on server.\n if (registeredUser != null) {\n new MockUserRegistrationService().registerUser(user.getFirstName(), user.getLastName(), user.getEmail(), user.getInsuranceProvider(), user.getInsurancePlan());\n doOnRegistrationSuccess();\n }\n }\n }", "private void createAccount(String email, String password) {\n if (!validateForm()) {\n return;\n }\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n Toast.makeText(MainActivity.this, \"Unable to creat Account\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "private void writeNewUser(String userId, String name, String email) {\n User user = new User(name, email);\n\n mDatabase.child(\"users\")\n .child(userId)\n .child(\"Name\").setValue(name);\n\n mDatabase.child(\"users\")\n .child(userId)\n .child(\"Email\").setValue(email);\n\n\n }", "void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);", "public long registerUserProfile(User user);", "public void createAccount (String email, String password) {\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if (!task.isSuccessful()) {\n Toast.makeText(Login.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(Login.this, \"Registration Successful\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n //Sign in existing users\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n //Log.d(TAG, \"signInWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n //Log.w(TAG, \"signInWithEmail\", task.getException());\n Toast.makeText(Login.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n\n // ...\n }\n });\n }", "@Override\n public User register(UserRegisterModel model) {\n User newUser = User.builder()\n .password(model.getPassword())\n .username(model.getUsername())\n .dateOfBirth(model.getDateOfBirth())\n .build();\n return userRepository.save(newUser);\n }", "@Override\n public void registerUser(User user) {\n userDAO.createUser(user);\n }", "public void register()\n {\n String n = nameProperty.getValue();\n if (n == null || n.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String p = passwordProperty.getValue();\n if (p == null || p.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String e = emailProperty.getValue();\n if (e == null || e.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String ph = phoneProperty.getValue();\n if (ph == null || ph.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (ph.length() != 8)\n {\n throw new IllegalArgumentException(\"Invalid phone number\");\n }\n try\n {\n Integer.parseInt(ph);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid phone number\", ex);\n }\n String t = titleProperty.getValue();\n if (t == null || t.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String a = authorProperty.getValue();\n if (a == null || a.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String y = yearProperty.getValue();\n if (y == null || y.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (y.length() != 4)\n {\n throw new IllegalArgumentException(\"Invalid year\");\n }\n try\n {\n Integer.parseInt(y);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid year\", ex);\n }\n\n try\n {\n\n model.registerUser(n, p, e, ph, t, a, y);\n\n }\n catch (Exception e1)\n {\n\n e1.printStackTrace();\n }\n\n }", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n dbHelper.addNewUser( user );\n\n // Get new FirebaseUser\n dbHelper.fetchCurrentUser();\n\n // Add the new user to a new chat containing only the new user\n String chatID = dbHelper.getNewChildKey( dbHelper.getChatUserPath() );\n String userID = dbHelper.getAuth().getUid();\n String displayName = dbHelper.getAuthUserDisplayName();\n\n dbHelper.addToChatUser( chatID, userID, displayName );\n dbHelper.addToUserChat( userID, chatID );\n\n String messageOneID = dbHelper.getNewChildKey(dbHelper.getMessagePath());\n String timestampOne = dbHelper.getNewTimestamp();\n String messageOne = \"COUCH POTATOES:\\nWelcome to Couch Potatoes!\"\n + \"\\nEnjoy meeting new people with similar interests!\";\n\n dbHelper.addToMessage( messageOneID, userID, \"COUCH POTATOES\", chatID, timestampOne, messageOne );\n\n String messageTwoID = dbHelper.getNewChildKey(dbHelper.getMessagePath());\n String timestampTwo = dbHelper.getNewTimestamp();\n String messageTwo = \"COUCH POTATOES:\\nThis chat is your space. Feel free to experiment with the chat here.\";\n\n dbHelper.addToMessage( messageTwoID, userID, \"COUCH POTATOES\", chatID, timestampTwo, messageTwo );\n\n // Registration complete. Redirect the new user the the main activity.\n startActivity( new Intent( getApplicationContext(), MainActivity.class ) );\n finish();\n }", "private void CreateUserAccount(final String lname, String lemail, String lpassword, final String lphone, final String laddress, final String groupid, final String grouppass ){\n mAuth.createUserWithEmailAndPassword(lemail,lpassword).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //account creation successful\n showMessage(\"Account Created\");\n //after user account created we need to update profile other information\n updateUserInfo(lname, pickedImgUri,lphone, laddress, groupid, grouppass, mAuth.getCurrentUser());\n }\n else{\n //account creation failed\n showMessage(\"Account creation failed\" + task.getException().getMessage());\n regBtn.setVisibility(View.VISIBLE);\n loadingProgress.setVisibility(View.INVISIBLE);\n\n }\n }\n });\n }", "private void createEmailAndPasswordAccount(String email, String password){\n\n if(!checkForInvalidInput()) return;\n\n // Copied from Firebase documentation\n Log.d(\"CreateAccount\", \"In create method\");\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser user = mAuth.getCurrentUser();\n\n if(user == null){\n Log.d(TAG, \"User is null?\");\n }\n\n else if(isStudent){\n createLocalStudentUserData(user);\n onCreateSuccessStudent();\n }\n\n else if(isTeacher){\n createLocalTeacherUserData(user);\n onCreateSuccessTeacher();\n }\n\n else{\n Log.d(TAG, \"A problem has occurred in choosing between creating a teacher or student\");\n }\n\n\n } else {\n Log.d(TAG, \"Creating the user account was not successful\");\n Toast.makeText(getApplicationContext(),\n \"Account creation unsuccessful. Perhaps one already exists with this email\",\n Toast.LENGTH_LONG).show();\n }\n\n }\n });\n\n }", "@Override\n public RegisterBO register(UserRequest userRequest) {\n User user = new User().with(u -> u.email = userRequest.getEmail())\n .with(u -> u.username = userRequest.getEmail())\n .with(u -> u.preferredLanguages.add(new Locale(\"es\", \"CL\")))//TODO: revisar mas adelante\n .with(u -> u.password = userRequest.getPassword())\n .with(u -> u.fullName = userRequest.getFullName());\n if (userRequest.getPhone() != null)\n user.with(u -> u.mobilePhone = userRequest.getPhone().trim());\n\n // Se inicia el registro de usuario y objecto request\n UserRegistration registration = new UserRegistration();\n registration.applicationId = UUID.fromString(aplicationId);\n registration.verified = false;\n\n RegistrationRequest request = new RegistrationRequest(user, registration);\n\n // Uso el objeto ClientResponse para capturar respuesta\n ClientResponse<RegistrationResponse, Errors> response = getFusionAuthClient.register(null, request);\n\n // Traducto respuesta segun exito o error\n return registerTranslate.translate(response);\n }", "private void register(UserAuthenticationMessage uaMessage) {\n\t\tinitialize();\n\t\tUser newUser = uaMessage.getUser();\n\t\tHashMap<String, Boolean> dbInfo = DatabaseRequests.registerNewUser(newUser);\n\t\tcreateRegistrationAnswer(dbInfo.get(MIDs.EMAIL_EXISTS), dbInfo.get(MIDs.USER_EXISTS), dbInfo.get(MIDs.AUTHENTICATE));\n\t}" ]
[ "0.81548285", "0.8150989", "0.7945561", "0.7876248", "0.78099006", "0.77878827", "0.77694607", "0.77300155", "0.77103025", "0.7665942", "0.76456285", "0.7588917", "0.7579039", "0.75624907", "0.7553845", "0.7533376", "0.75185597", "0.75042623", "0.74943703", "0.7473681", "0.7466308", "0.7441801", "0.7419425", "0.7413291", "0.7385089", "0.7369836", "0.7336265", "0.729287", "0.7253823", "0.7244348", "0.7231507", "0.7221965", "0.7211399", "0.72049147", "0.7203436", "0.7201825", "0.7187531", "0.7172438", "0.71241856", "0.7119494", "0.7103782", "0.70644027", "0.70508343", "0.70480984", "0.7045261", "0.70449513", "0.7029931", "0.7025061", "0.69749993", "0.6970537", "0.6969186", "0.6943172", "0.6934685", "0.6916453", "0.69132084", "0.69100755", "0.6837874", "0.68310314", "0.6809217", "0.6785422", "0.67514354", "0.67383164", "0.6701965", "0.67018604", "0.6699374", "0.66982955", "0.66841984", "0.6676499", "0.66725093", "0.66629803", "0.6657742", "0.66570634", "0.66489875", "0.6639817", "0.662946", "0.66233516", "0.66203934", "0.6606986", "0.6597128", "0.658936", "0.65873086", "0.65848583", "0.65709835", "0.6567422", "0.65435827", "0.6532156", "0.6531848", "0.6530172", "0.65300906", "0.6493779", "0.6488453", "0.64764225", "0.64726245", "0.6471482", "0.6465792", "0.64637136", "0.64632964", "0.6460741", "0.6453805", "0.64523447" ]
0.69990796
48
if successful, send email verification
@Override public void onComplete(@NonNull Task<AuthResult> task) { String TAG = "LoginActivity.userRegister"; if (task.isSuccessful()) { Log.d(TAG, "createUserWithEmailAndPassword:success"); FirebaseUser user = mAuth.getCurrentUser(); user.sendEmailVerification() .addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { String TAG = "LoginActivity.userRegister.EmailVerify"; if (task.isSuccessful()) { Log.d(TAG, "sendEmailVerification:success"); Toast.makeText(getActivity(), "Please check Email for Verification",Toast.LENGTH_SHORT).show(); } else { Log.w(TAG, "sendEmailVerification:failure", task.getException()); Toast.makeText(getActivity(),"Unable to Verify: " + task.getException().getMessage(),Toast.LENGTH_SHORT).show(); } } }); } else { Log.w(TAG, "createUserWithEmailAndPassword:failure", task.getException()); Toast.makeText(getActivity(), "Unable to Register: " + task.getException().getMessage(), Toast.LENGTH_SHORT).show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendEmailVerification() {\n showProgressDialog();\n\n // [START send_email_verification]\n final FirebaseUser user = mAuth.getCurrentUser();\n assert user != null;\n user.sendEmailVerification()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n // [START_EXCLUDE]\n // Re-enable button\n if (task.isSuccessful()) {\n Toast.makeText(getApplicationContext(),\n \"Verification email sent to \" + user.getEmail(),\n Toast.LENGTH_SHORT).show();\n } else {\n Log.e(TAG, \"sendEmailVerification\", task.getException());\n Toast.makeText(getApplicationContext(),\n \"Failed to send verification email.\",\n Toast.LENGTH_SHORT).show();\n }\n hideProgressDialog();\n // [END_EXCLUDE]\n }\n });\n // [END send_email_verification]\n }", "private void sendEmailVerification() {\n final FirebaseUser user = mAuth.getCurrentUser();\n user.sendEmailVerification()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n // [START_EXCLUDE]\n // Re-enable button\n\n if (task.isSuccessful()) {\n Toast.makeText(LoginCombActivity.this,\n \"Verification email sent to \" + user.getEmail(),\n Toast.LENGTH_SHORT).show();\n } else {\n Log.e(TAG, \"sendEmailVerification\", task.getException());\n Toast.makeText(LoginCombActivity.this,\n \"Failed to send verification email.\",\n Toast.LENGTH_SHORT).show();\n }\n // [END_EXCLUDE]\n }\n });\n // [END send_email_verification]\n }", "private void sendEmailVerification(){\n FirebaseUser firebaseUser = mfirebaseAuth.getCurrentUser();\n if(firebaseUser!=null){\n firebaseUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n Toast.makeText(SignUpActivity.this, \"Successfully Registered, Verification E-mail sent!\", Toast.LENGTH_SHORT).show();\n mfirebaseAuth.signOut();\n finish();\n startActivity(new Intent(SignUpActivity.this, LoginActivity.class));\n }else {\n Toast.makeText(SignUpActivity.this, \"Verification email could not be sent, please try again later\", Toast.LENGTH_SHORT).show();\n\n }\n }\n });\n }\n\n }", "public void resendVerificationEmail(){\n progressDialog.setMessage(\"Please wait...\");\n progressDialog.show();\n mAuth.getCurrentUser().sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()){\n alertDialogBuilderSentSuccessMessage(SignInActivity.this);\n Toast.makeText(SignInActivity.this,\"Sent email successfully.\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(SignInActivity.this,task.getException().getLocalizedMessage(),Toast.LENGTH_LONG).show();\n }\n\n progressDialog.dismiss();\n }\n });\n }", "private void sendVerificationEmail(FirebaseUser user) {\n if (user == null) {\n Toast.makeText(LoginActivity.this,\n \"Error occurred. Please try again later.\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n user.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(LoginActivity.this,\n \"Verification email sent!\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(LoginActivity.this,\n \"Email couldn't be sent at this time. Please try again later.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void verifyEmail(java.lang.String unregisteredUserEmail, java.lang.String userID, java.lang.String password, java.lang.String email, int timeout, com.strikeiron.www.holders.SIWsOutputOfVerifyEmailRecordHolder verifyEmailResult, com.strikeiron.www.holders.SISubscriptionInfoHolder SISubscriptionInfo) throws java.rmi.RemoteException;", "private void sendVerificationCode() {\n\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n \"+91\" + phoneNumber, // Phone number to verify\n 60, // Timeout and unit\n TimeUnit.SECONDS,\n this,\n mCallbacks\n );\n }", "@Test\n\tpublic void verifySuccessMessageUponSubmittingValidEmailInForgetPasswordPage() throws Exception{\n\t\tLoginOtomotoProfiLMSPage loginPage = new LoginOtomotoProfiLMSPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,loginPage.languageDropdown);\n\t\tactionClick(driver,loginPage.languageDropdown);\n\t\twaitTill(1000);\n\t\tactionClick(driver,loginPage.englishOptioninLangDropdown);\n\t\tFogrotPasswordOTMPLMSPage forgotPasswordPageObj = new FogrotPasswordOTMPLMSPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,loginPage.forgotPasswordLink);\n\t\tjsClick(driver,loginPage.forgotPasswordLink);\n\t\texplicitWaitFortheElementTobeVisible(driver,forgotPasswordPageObj.forgotPasswordPageHeading);\n\t\tsendKeys(forgotPasswordPageObj.forgotPasswordEmailInputField, testUserPL);\n\t\tjsClick(driver,forgotPasswordPageObj.forgotPasswordRecoveryButton);\n\t\twaitTill(2000);\n\t Assert.assertEquals(getText(forgotPasswordPageObj.forgotPasswordSuccessMessage), \"We've sent you an email with a link to reset your password. You may close this tab and check your email.\", \"Success message is not displaying upon submitting the forget password page with valid ceredentials\");\n\t}", "SendEmail() {\t\n\t}", "public void resendVerificationEmail(View view) {\n current_user.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast toast = Toast.makeText(getApplicationContext(), \"Verification email has been resent to \" +\n current_user.getEmail() + \". Please check your inbox/spam folder.\",\n Toast.LENGTH_LONG);\n\n // Centering the text\n LinearLayout toastLayout = (LinearLayout) toast.getView();\n if (toastLayout.getChildCount() > 0) {\n TextView textView = (TextView) toastLayout.getChildAt(0);\n textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL);\n }\n\n toast.show();\n }\n }\n });\n }", "@Override\n\tpublic boolean sendEmail() {\n\t\treturn true;\n\t}", "public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "public void sendEmail(String recipient,String password);", "@Test\n public void emailVerifiedTest() {\n // TODO: test emailVerified\n }", "void send(Email email);", "@Override\n public void onClick(View v) {\n\n mAuth.sendPasswordResetEmail(email)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Log.d(TAG, \"Email sent.\");\n messageDisplay.setText(\"Reset Email Sent Successfully!\");\n Toast.makeText(ForgotPasswordActivity.this, \"Reset Email Sent Successfully!\", Toast.LENGTH_SHORT).show();\n }\n\n else {\n //display some message here\n messageDisplay.setText(\"User Does Not Exist\");\n Toast.makeText(ForgotPasswordActivity.this, \"User Does Not Exist\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void verificationFor2fa() throws MessagingException, IOException {\n\t\tverifyMailPage engine2fa = new verifyMailPage(driver);\n\t\tengine2fa.clickSendBackupCodeToMail();\n\t\tString recoveryCode =engine2fa.goToRecoveryCodeMail();\n\t\tengine2fa.enterRecoveryCode(recoveryCode);\n\t\tengine2fa.clickSubmit();\n\t}", "public void verifyEmail(String mail) {\n databaseURL = \"http://ec2-18-216-46-195.us-east-2.compute.amazonaws.com:6868/verify_email_id\";\n headers = new HashMap<>();\n headers.put(\"mail\", mail);\n headers.put(\"Content-Type\", \"application/json\");\n try {\n jsonObject = new JSONObject();\n jsonObject.put(\"mail\", mail);\n reqBody = jsonObject.toString();\n sendRequest(databaseURL);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test(dependsOnMethods = {\"register\"})\n void confirmEmailAddressByCaptcha() {\n common.findWebElementByXpath(\"//*[@id=\\\"content\\\"]/fieldset/label/div\").click();\n\n //Click on Send captcha button\n common.timeoutSeconds(2);\n common.findWebElementById(\"send-captcha-button\").click();\n\n //No magic code is set\n common.verifyStatusMessage(\"Det uppstod ett problem med verifieringen av att du är en människa. \" +\n \"Var god försök igen.\");\n }", "public void sendVerificationCode(int code,String mail,String password) {\n\n headers = new HashMap<>();\n headers.put(\"code\", String.valueOf(code));\n headers.put(\"mail\",mail);\n headers.put(\"password\",password);\n headers.put(\"Content-Type\", \"application/json\");\n try {\n databaseURL = \"http://ec2-18-216-46-195.us-east-2.compute.amazonaws.com:6868/verifiication_complete\";\n sendRequest(databaseURL);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n\t\tvoid givenEmail_CheckForValidationForEmail_RetrunTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateEmails(\"abc.xyz@bl.com\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}", "private void sendEmail(String result){\n \t\n \tIntent emailIntent = new Intent(android.content.Intent.ACTION_SEND);\n \temailIntent.setType(\"plain/text\");\n \t\n \t//emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n \t/* Fill it with Data */\n \temailIntent.setType(\"plain/text\");\n \t//emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{\"to@email.com\"});\n \temailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Here's the code from FlipSHA\");\n \temailIntent.putExtra(android.content.Intent.EXTRA_TEXT, \"After the coin is flipped and\" +\n \t\t\t\" you don't believe in your friend, check this hash \"+ result);\n\n \t/* Send it off to the Activity-Chooser */\n \tstartActivity(emailIntent); \n }", "public boolean isEmailVerified() {\n return emailVerified;\n }", "public void testSendEmail2()\n throws Exception\n {\n Gitana gitana = new Gitana();\n\n // authenticate\n Platform platform = gitana.authenticate(\"admin\", \"admin\");\n\n // create a domain and a principal\n Domain domain = platform.createDomain();\n DomainUser user = domain.createUser(\"test-\" + System.currentTimeMillis(), TestConstants.TEST_PASSWORD);\n user.setEmail(\"buildtest@gitanasoftware.com\");\n user.update();\n\n // create an application\n Application application = platform.createApplication();\n\n // create an email provider\n EmailProvider emailProvider = application.createEmailProvider(\n JSONBuilder.start(EmailProvider.FIELD_HOST).is(\"smtp.gmail.com\")\n .and(EmailProvider.FIELD_USERNAME).is(\"buildtest@gitanasoftware.com\")\n .and(EmailProvider.FIELD_PASSWORD).is(\"buildt@st11\")\n .and(EmailProvider.FIELD_SMTP_ENABLED).is(true)\n .and(EmailProvider.FIELD_SMTP_IS_SECURE).is(true)\n .and(EmailProvider.FIELD_SMTP_REQUIRES_AUTH).is(true)\n .and(EmailProvider.FIELD_SMTP_STARTTLS_ENABLED).is(true)\n .get()\n );\n\n // create an email\n Email email = application.createEmail(\n JSONBuilder.start(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"buildtest@gitanasoftware.com\")\n .get()\n );\n email.setToDomainUser(user);\n email.update();\n\n // send the email\n emailProvider.send(email);\n\n // check to ensure was marked as sent, along with some data\n email.reload();\n assertTrue(email.getSent());\n assertNotNull(email.dateSent());\n assertNotNull(email.getSentBy()); \n }", "public void sendMail(RegistrationData d) {}", "public void verifyCodePressed(View view) {\r\n emailTo = String.valueOf(etEmail.getText());\r\n //Generate the random verify code\r\n verifyCode = (int)((Math.random() * 9 + 1) * 100000);\r\n Toast.makeText(ForgetPswActivity.this,\"Sending..... the verify code\", Toast.LENGTH_LONG).show();\r\n Thread thread = new Thread(){\r\n @Override\r\n public void run() {\r\n EmailUtil.getInstance().sendEmail(emailTo,\"Verify Code from Digital Learner Logbook\",\r\n \"DLL send a verify code: \" + verifyCode +\r\n \", This code is for reset the password only!\" );\r\n\r\n Looper.prepare();\r\n Toast.makeText(ForgetPswActivity.this,\"Sent the verify code\", Toast.LENGTH_LONG).show();\r\n Looper.loop();\r\n }\r\n };\r\n thread.start();\r\n\r\n }", "private String sendConfirmationEmail(UserEntity user) {\n try {\n Properties emailAccountProperties = new Properties();\n try {\n emailAccountProperties.load(getClass().getResourceAsStream(\"/registration.properties\"));\n } catch (IOException e) {\n logger.warn(\"Cannot open registration properties file to send email:\", e);\n return null;\n }\n\n final String username = emailAccountProperties.getProperty(\"username\");\n final String password = emailAccountProperties.getProperty(\"password\");\n\n Properties prop = new Properties();\n prop.put(\"mail.smtp.auth\", \"true\");\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(prop, new javax.mail.Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"cityconteam@gmail.com\"));\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(user.getEmail()));\n message.setSubject(\"Welcome to CityCon!\");\n String reglink = RandomStringUtils.random(30, true, true);\n message.setContent(\"You received this email because you tried to register at <a href=http://citycon.ml>citycon.ml</a>.\" +\n \" Go <a href=http://citycon.ml/registration?reglink=\" + reglink + \">here</a>\" +\n //\" or <a href=http://localhost:8080/registration?reglink=\" + reglink + \"> here </a>\" +\n \" to complete your registration.\" +\n \"<br><br>If you didn't ask for registration, just ignore this message.\" +\n \"<br><br><hr>With love,<br>your CityCon team.\",\n \"text/html; charest=utf-8\");\n Transport.send(message);\n logger.trace(\"Sent reglink {}\", reglink);\n return reglink;\n } catch (MessagingException e) {\n logger.warn(\"Exception during sending email\", e);\n return null;\n }\n } catch (Exception e) {\n logger.warn(\"Unexpected exception\", e);\n return null;\n }\n }", "public Boolean sendEmail(String sender, String receiver, String subject, String body) throws Exception;", "@Override\n public VerifyEmailAddressResponse requestVerifyEmailAddress(VerifyEmailAddressRequest verifyEmailADdressRequest) {\n\n sendSMSAndEmail(\"\", \"\", null, verifyEmailADdressRequest.getEmailAddress());\n\n return null;\n }", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser firebaseUser = firebaseOps.getCurrentFirebaseUser();\n if (firebaseUser.isEmailVerified()) {\n createUserObjectInDatabase(firebaseUser.getUid());\n\n } else {\n Toast.makeText(MainActivity.this, \"Please verify your email first\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Test\r\n\tpublic void TC_08_verify_Existing_Email_Address() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details with valid email address already taken\r\n\t\t\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", email);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding already registered\r\n\t\t//email address is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Username already taken.\");\r\n\r\n\t}", "private void checkIfEmailVerified() {\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n\n if (user.isEmailVerified())\n {\n // user is verified, so you can finish this activity or send user to activity which you want.\n Toast.makeText(Login.this, \"Successfully logged in\", Toast.LENGTH_SHORT).show();\n updateDB();\n startActivity(new Intent(Login.this, Home.class));\n finish();\n }\n else\n {\n // email is not verified, so just prompt the message to the user and restart this activity.\n // NOTE: don't forget to log out the user.\n Toast.makeText(Login.this, \"Email Not Verified yet, check your email for verification or sign up\", Toast.LENGTH_SHORT).show();\n progressBar.setVisibility(View.GONE);\n FirebaseAuth.getInstance().signOut();\n }\n }", "private void verifyAuthWithServer() {\n mResetModel.connect(\n myBinding.editResetEmail.getText().toString());\n //This is an Asynchronous call. No statements after should rely on the\n //result of connect().\n }", "boolean additionalPayerInfoVerification(final String email) {\n return Log.altVerify(email, lblEMail().getText(), true, \"E-mail address\");\n }", "@Test(priority=1)\n\tpublic void testEmailValidity() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"123@abc\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Please enter a valid email address in the format someone@example.com.\"));\n\t}", "@Test\n\tpublic void sendMailOK() throws MessagingException {\n\t\t//GreenMailUser user = greenMail.getGreenMail().setUser(to, \"username\", \"secret\");\n\t\tClassLoader classLoader = getClass().getClassLoader();\n\t\tattachment = new File(Objects.requireNonNull(classLoader.getResource(attachmentName)).getFile());\n\t\tassertEquals(0, emailService.sendEmailWithAttachment(to, subject, text, attachment).intValue());\n\t\tassertTrue(GreenMailUtil.getBody(greenMail.getReceivedMessages()[0]).contains(text));\n\t\tassertEquals(subject, greenMail.getReceivedMessages()[0].getSubject());\n\t}", "public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }", "public void sendDiscrepancyEmail() throws Exception;", "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n firebaseUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n // make the progressBar invisible\n pd.cancel();\n\n // store the user name\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(\"isNotVerified\",true);\n editor.putString(\"userName\",name_of_user);\n editor.putString(\"userEmail\",emailId);\n editor.putString(\"password\",userPin);\n editor.apply();\n\n // call an intent to the user verification activity\n startActivity(new Intent(LoginActivity.this,\n UserVerificationActivity.class));\n // finish this activity, so that user can't return\n LoginActivity.this.finish();\n }\n });\n\n }", "protected void validateEmail(){\n\n //Creating Boolean Value And checking More Accurate Email Validator Added\n\n Boolean email = Pattern.matches(\"^[A-Za-z]+([.+-]?[a-z A-z0-9]+)?@[a-zA-z0-9]{1,6}\\\\.[a-zA-Z]{2,6},?([.][a-zA-z+,]{2,6})?$\",getEmail());\n System.out.println(emailResult(email));\n }", "void send(String emailName);", "public void enviarAlertaDeQueEstaOnline(){\n //mandaria un mail a los usuarios avisando que ya esta disponible para ver.\n System.out.println(\"Enviando mail con url \" + this.url);\n }", "private boolean sendEmail(final Event event2send) {\n final Customer customer = event2send.getCustomer();\n final Unit unit = event2send.getCustomer().getUnit();\n final String text2send = format(event2send);\n\n if (null == customer.getEmail() || 0 == customer.getEmail().trim().length()) {\n LOG.warning(\"email cannot be sent, wrong customer email address, eventId=\" + event2send.getId());\n return false;\n }\n\n final SimpleMailMessage message = new SimpleMailMessage();\n message.setFrom(unit.getEmail());\n message.setTo(customer.getEmail());\n message.setSubject(unit.getName());\n message.setText(text2send);\n\n boolean rslt;\n try {\n // do NOT send the email physically if email address is \"-=NO_MAIL=-\"\n if (\"-=NO_MAIL=-\".equals(customer.getEmail())) {\n LOG.fine(\"fake mail (not sent), id=\" + event2send.getId() + \", customer=\" + customer.getAsciiFullname());\n } else {\n mailSender.send(message);\n LOG.info(\"event sent via email, id=\" + event2send.getId() + \", address=\" + customer.getEmail());\n }\n rslt = true;\n } catch (Throwable t) {\n LOG.log(Level.SEVERE, \"failed to send email, id=\" + event2send.getId(), t);\n rslt = false;\n }\n return rslt;\n }", "@Override\n\tpublic void setSendMailSuccess() {\n\t\t\n\t}", "@Then(\"^User is successfully navigated to the G-mail Mail Box$\")\n\tpublic void verifyGmailinbox() throws Throwable {\n\t\tSystem.out.println(\"user is able to see Gmail mail box\");\n\t}", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(Resetpasswordpage.this, \"Email Sent\", Toast.LENGTH_SHORT).show();\n Intent resetpasswordintent = new Intent(Resetpasswordpage.this, Loginpage.class);\n startActivity(resetpasswordintent);\n //close activity when done\n finish();\n } else {\n //otherwise create new toast (error)\n Toast.makeText(Resetpasswordpage.this, \"Please enter correct details\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\tprotected Boolean doInBackground(Void... params) {\n\t\t\tString handleInserUrl = getResources().getString(\n\t\t\t\t\tR.string.users_json_url)\n\t\t\t\t\t+ \"resend_verified_code\";\n\t\t\ttry {\n\t\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\t\tHttpPost post = new HttpPost(handleInserUrl);\n\t\t\t\tMultipartEntity reqEntity = new MultipartEntity();\n\t\t\t\treqEntity.addPart(\"email\", new StringBody(email));\n\t\t\t\tpost.setEntity(reqEntity);\n\t\t\t\tHttpResponse response = client.execute(post);\n\t\t\t\tHttpEntity resEntity = response.getEntity();\n\t\t\t\tfinal String response_str = EntityUtils.toString(resEntity);\n\t\t\t\tif (resEntity != null) {\n\t\t\t\t\tLog.i(\"RESPONSE\", response_str);\n\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLog.e(\"Debug\", \"error: \" + ex.getMessage(), ex);\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "void sendEmail(Otp otp) throws Exception {\n String text = \"Otp: \" + otp.getOtpValue();\n String from = \"\"; // Add From Email Address\n String to = \"\"; // Add To Email Address\n\n SimpleMailMessage message = new SimpleMailMessage();\n message.setFrom(from);\n message.setTo(to);\n message.setSubject(\"Otp Verification\");\n message.setText(text);\n emailSender.send(message);\n }", "private void validateEmail() {\n myEmailValidator.processResult(\n myEmailValidator.apply(myBinding.editResetEmail.getText().toString().trim()),\n this::verifyAuthWithServer,\n result -> myBinding.editResetEmail.setError(\"Please enter a valid Email address.\"));\n }", "private void sendBookingConfirmMailWithMailtrapProvider(String userEmail, String token) throws MessagingException {\n String to = userEmail;//change accordingly \n// Gmail’s SMTP account,\n\n String userName = \"91c28c9b77f112\";//from mailtrap\n String password = \"9d4d7fbf411267\";\n\n //Get the session object \n //1. sets SMTP server properties\n Properties properties = new Properties();\n properties.put(\"mail.smtp.auth\", true);\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.host\", \"smtp.mailtrap.io\");\n properties.put(\"mail.smtp.port\", \"25\");\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.mailtrap.io\");\n //2. creates a new session with an authenticator\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(userName, password);\n }\n };\n\n Session session = Session.getInstance(properties, auth);\n\n //3. Creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(\"hungbsse130615@fpt.edu.vn\"));\n InternetAddress[] toAddresses = {new InternetAddress(to)};\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(\"Test send mail\");\n msg.setSentDate(new Date());\n msg.setText(\"Hello, this is example of sending email. ?token=\" + token);\n\n// MimeMessage message = new MimeMessage(session);\n// message.setFrom(new InternetAddress(from));\n// message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n //4. Send the message\n Transport.send(msg);\n System.out.println(\"message sent successfully....\");\n\n }", "public static void sendResetPassword(Context context, String email) {\n FirebaseAuth.getInstance().sendPasswordResetEmail(email).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) { // Reset email password successfully sent\n Log.d(\"RecipeFinderAuth\", \"Email Sent!\");\n Toast.makeText(context, \"Email Sent!\", Toast.LENGTH_SHORT).show();\n ((AppCompatActivity)(context)).finish();\n } else { // Failed to send reset email password\n Toast.makeText(context, \"Failed to Send Email!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "@Override\n public void sendEmail() {\n return;\n }", "public static void sendEmail(String randPass) {\n\t\t// Recipient's email ID needs to be mentioned.\n\t String to = \"kingstead1@gmail.com\";\n\n\t // Sender's email ID needs to be mentioned\n\t String from = \"kingstead1@gmail.com\";\n\n\t // Get system properties\n\t Properties properties = System.getProperties();\n\t \tproperties = System.getProperties();\n\t properties.put(\"mail.smtp.auth\", \"true\");\n\t properties.put(\"mail.smtp.starttls.enable\", \"true\");\n\t properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t properties.put(\"mail.smtp.port\", \"587\");\n\n\t // Get the default Session object.\n\t Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n\t protected PasswordAuthentication getPasswordAuthentication() {\n\t return new PasswordAuthentication(\"user\", \"pass\");\n\t }\n\t });\n\n\t try {\n\t // Create a default MimeMessage object.\n\t MimeMessage message = new MimeMessage(session);\n\n\t // Set From: header field of the header.\n\t message.setFrom(new InternetAddress(from));\n\n\t // Set To: header field of the header.\n\t message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n\t // Set Subject: header field\n\t message.setSubject(\"Dart Password Reset\");\n\t // Now set the actual message\n\t message.setText(\"You're getting this message because you've requested to reset your password! Your new password is: \" + randPass + \" ! Don't forget it.\");\n\n\t // Send message\n\t Transport.send(message);\n\t System.out.println(\"Sent message successfully....\");\n\t } catch (MessagingException mex) {\n\t mex.printStackTrace();\n\t }\n\n\t}", "@Override\r\n\tpublic int inviteEmailCheck(String useremail, int projectno) {\n\t\treturn pDao.inviteEmailCheck(useremail, projectno);\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String mail = resetMail.getText().toString();\n fAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Login.this, \"Reset Link Sent To Your Email.\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Login.this, \"Error ! Reset Link is Not Sent\" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void onRegistrationSuccess(RegistrationResponse response) {\n if (response.isStatus()) {\n\n startActivityForResult(new Intent(this,VerifyEmailActivity.class)\n .putExtra(getString(R.string.from_sign_up_key),true)\n .putExtra(getString(R.string.email_id_key),model.getEmail().getValue()),VERIFY_EMAIL_REQUEST_CODE);\n\n\n } else {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors()) {\n for (Error e : response.getErrors()) {\n if (e.getCode().equalsIgnoreCase(\"REG005\")) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n }\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }", "private void sendPwResetEmail(String email)\n {\n FirebaseAuth auth = FirebaseAuth.getInstance();\n String emailAddress = email;\n\n auth.sendPasswordResetEmail(emailAddress)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Log.d(TAG, \"Email sent.\");\n }\n }\n });\n }", "boolean isEmailRequired();", "public static void sendConfirmationMail(String toMail){\n String confirmationText = \"Welcome as a new user of Household Manager.\" +\n \"\\n You can log in with \"+toMail+ \" and the password you chose.\" +\n \"If you've forgotten your password you can get a new one sent from our Login page.\";\n sendMail(toMail,confirmationText);\n }", "public void setVerificationToSuccessful() {\n verificationSuccessful = true;\n }", "@Override\n\tpublic void send(String email, String code) {\n\t\tSystem.out.println(email + \"\" +code);\n\t\t/*emailSend.sendSimpleMail(email, \"验证码\", code);*/\n\t}", "private void sendEmail(String emailAddress, String subject, String body) {\n\t\t\n\t}", "public void forgotPasswordValidate()\r\n\t{\n\t\tString expectedMessage = \"An email with a confirmation link has been sent your email address.\";\r\n\t\tString actualMessage=this.forgotPasswordSuccessMessage.getText();\r\n\t\tAssert.assertEquals(expectedMessage,actualMessage);\r\n\t}", "java.util.concurrent.Future<Void> resendValidationEmailAsync(\n ResendValidationEmailRequest resendValidationEmailRequest);", "boolean hasEmail();", "boolean hasEmail();", "boolean hasEmail();", "boolean hasEmail();", "boolean hasEmail();", "public void sendRegistrationEmail(User user, HttpServletRequest request) {\r\n try {\r\n VerificationToken token = new VerificationToken(user);\r\n verificationTokenRepo.save(token);\r\n\r\n String appUrl = request.getScheme() + Constants.SERVER_URL + \"register/confirm/\" + token.getToken();\r\n\r\n UserDTO userDTO = new UserDTO();\r\n userDTO.setFirstName(user.getFirstName());\r\n userDTO.setUsername(user.getUsername());\r\n\r\n // Build message body\r\n String subject = \"\";\r\n String template = \"\";\r\n Map<String, Object> modelObject = null;\r\n\r\n subject = Constants.REGISTRATIONSUBJECT;\r\n template = Constants.REGISTRATIONTEMPLATE;\r\n modelObject = ImmutableMap.of(\r\n \"name\", userDTO.getFirstName(),\r\n \"appUrl\", appUrl\r\n );\r\n\r\n // Send email with required info\r\n sendMimeEmailWithFreemarker(subject, template, userDTO, modelObject);\r\n } catch (UnsupportedEncodingException | CannotSendEmailException | URISyntaxException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void haveVerified(View view) {\n // Reload the current user's account information\n current_user.reload();\n\n // Check if the user's email is verified once they reopen the app\n if (current_user.isEmailVerified()) {\n Intent selectGenrePage = new Intent(getApplicationContext(), PickGenre.class);\n selectGenrePage.putExtra(\"TYPE\", getIntent().getExtras().getString(\"TYPE\"));\n startActivity(selectGenrePage);\n } else {\n Toast toast = Toast.makeText(getApplicationContext(),\n \"Oops! Our system shows that your email has not been verified.\", Toast.LENGTH_LONG);\n\n // Centering the text\n LinearLayout toastLayout = (LinearLayout) toast.getView();\n if (toastLayout.getChildCount() > 0) {\n TextView textView = (TextView) toastLayout.getChildAt(0);\n textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL);\n }\n\n toast.show();\n }\n }", "public static void SendEmailConfirmation(String toEmail, String content)\r\n {\r\n try\r\n {\r\n System.out.println(\"Se pregateste email-ul.\");\r\n\r\n Properties properties = new Properties();\r\n properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n properties.put(\"mail.smtp.port\", \"587\");\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\r\n Authenticator auth = new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(fromEmail, password);\r\n }\r\n };\r\n\r\n Session session = Session.getInstance(properties, auth);\r\n\r\n sendEmail(session, toEmail, \"[INFORMATII PERSONALE] Credentiale pentru aplicatia UVT StudentApp\", content);\r\n }\r\n catch ( Exception e)\r\n {\r\n System.out.println(\"Nu s-a putut trimite mail-ul.\");\r\n return;\r\n }\r\n }", "private void sendProofEmail(String proof){\n \t\n \tIntent emailIntent = new Intent(android.content.Intent.ACTION_SEND);\n \temailIntent.setType(\"plain/text\");\n \t\n \t//emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n \t/* Fill it with Data */\n \temailIntent.setType(\"plain/text\");\n \t//emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{\"to@email.com\"});\n \temailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Here's the code from FlipSHA\");\n \temailIntent.putExtra(android.content.Intent.EXTRA_TEXT, \"Looks like you don't believe your friend,\" +\n \t\t\t\" do a SHA1 of this string to see the proof \"+proof);\n \tstartActivity(emailIntent); \n }", "private void sendmailuserregister(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, ClassNotFoundException {\n String email = request.getParameter(\"email\");\n\n String to = \"yevhen@yevhen-Lenovo-ideapad-320-15ISK\";\n String from = \"wwwwnewbob@localhost\";\n String host = \"localhost\";\n\n Properties properties = System.getProperties();\n properties.setProperty(\"yevhen-Lenovo-ideapad-320-15ISK\", host);\n\n Session session = Session.getDefaultInstance(properties);\n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipients(Message.RecipientType.TO, String.valueOf(new InternetAddress(to)));\n message.setSubject(\"This is the Subject Line!\");\n message.setText(\"This is actual message from \" + email);\n\n logger.info(\" user.getEmail() \" + email);\n\n Transport.send(message);\n String title = \"Send Email\";\n String res = \"Sent message successfully....<a href='/bookstore/shop'>Back</a>\";\n String docType = \"<!doctype html public \\\"-//w3c//dtd html 4.0 \" + \"transitional//en\\\">\\n\";\n\n out.println(docType +\n \"<html>\\n\" +\n \"<head><title>\" + title + \"</title><head>\\n\" +\n \"<body bgcolor = \\\"#f0f0f0\\\">\\n\" +\n \"<h1 align = \\\"center\\\">\" + title + \"</h1>\\n\" +\n \"<p align = \\\"center\\\">\" + res + \"</p>\\n\" +\n \"</body>\\n\" +\n \"</html>\"\n );\n\n } catch (MessagingException mex){\n mex.printStackTrace();\n }\n\n\n }", "private void sendTrialExpiredEmail(String email) throws MessagingException{\r\n\t\temailService.send(email, trialExpiredSubject, null, trialExpiredEmailBody);\r\n\t}", "public void verifyUser() {\n\t\toutMessage.setAction(1);\n\t\toutMessage.setObject(this.getUser());\n\t\tmodelCtrl.sendServerMessage(outMessage);\n\t\tinMessage = modelCtrl.getServerResponse();\n\t\t//user is verified\n\t\tif (inMessage.getAction() == 1) {\n\t\t\taccept();\n\t\t}\n\t\t//user is not verified, return to start\n\t\telse {\n\t\t\tSystem.out.println(\"User is not verified\");\n\t\t\tdeny();\n\t\t\t\n\t\t}\n\t}", "private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n // auto verification of user.\n\n\n\n Toast.makeText(this, \"Verification Code sent!\", Toast.LENGTH_SHORT).show();\n }", "public void setEmailVerified(boolean emailVerified) {\n this.emailVerified = emailVerified;\n }", "public void verifyEmailSended(PushRecord pushRecord) throws Exception {\n Plan plan = (Plan) pushRecord.getPayLoad().get(\"plan\");\n Person person = pushRecord.getPerson();\n person = personService.findById(person);\n String email = person.getEmail();\n PushRecordType pushType = pushRecord.getType();\n String templateId = null;\n if (pushType == PushRecordType.PLAN_THREE_DAYS) {\n templateId = SendGridEmailTemplate.INSPECTION_THREE_DAYS();\n } else {\n templateId = SendGridEmailTemplate.INSPECTION_TODAY();\n }\n Address address = addressDao.findById(plan.getAddress());\n Map<String, Object> data = new HashMap<>();\n data.put(\"inspectionLocation\", address.getContent());\n int day = plan.getDay();\n LocalDateTime now = LocalDateTime.now(ZoneId.of(\"UTC\"));\n int nowDay = now.getDayOfMonth();\n Month month = now.getMonth();\n int year = now.getYear();\n if (nowDay > day) {\n LocalDateTime nextMonth = now.plusMonths(1);\n month = nextMonth.getMonth();\n year = nextMonth.getYear();\n }\n String dateInfo = month.toString() + \" \" + day + \"st,\" + year;\n data.put(\"inspectionDate\", dateInfo);\n String subject = \"Scheduled inspection reminder\";\n Mockito.verify(mockSendEmailUitl).sendByTemplate(email, subject, templateId, data);\n }", "private boolean verificaEmail(String cadena) {\n if (validate.esVacio(cadena)) {\n setErrorEmail(getMsjVacio());\n return false;\n }\n if (!validate.esEmailValido(cadena)) {\n setErrorEmail(getMsjEmailInvalido());\n return false;\n }\n setErrorEmail(null);\n return true;\n }", "private boolean sendEmailMessage() {\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\tSession session = Session.getInstance(props, new javax.mail.Authenticator() {\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(USER_NAME, PASSSWORD);\n\t\t\t}\n\t\t});\n\n\t\ttry {\n\n\t\t\tMessage message = new MimeMessage(session);\n\t\t\tmessage.setFrom(new InternetAddress(FROM_ADDRESS)); // Set from address of the email\n\t\t\tmessage.setContent(msgText, \"text/html\"); // set content type of the email\n\t\t\tmessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(emailAddressTo)); // Set email\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recipient\n\t\t\tmessage.setSubject(msgSubject); // Set email message subject\n\t\t\tTransport.send(message); // Send email message\n\n\t\t\tSystem.out.println(\"sent email successfully!\");\n\t\t\treturn true;\n\n\t\t} catch (MessagingException e) {\n//\t\t\tthrow new RuntimeException(e);\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmailCorrect() {\n return (CustomerModel.emailTest(emailTextField.getText()));\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String mail = resetMail.getText().toString();\n mAuth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(LoginActivity.this,\"Reset Link sent to your Email.\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(LoginActivity.this,\"Error ! Reset Link is Not Sent.\" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(LogInActivity.this, \"Email is send\", Toast.LENGTH_SHORT).show();\n }", "public void testProcessReturnedMail() throws Exception {\n \n logln(\"\\n==== Process Returned Mail ====\\n\");\n \n //login\n loginAFSCME();\n \n //go to the 'Process Returned Mail' page.\n selectLink(\"Process Returned Mail\");\n \n //fill in the parameters\n setParameter(\"addressIds\", \"120\\n221\" );\n \n submit(\"submit\");\n //logout\n selectLink(\"LOGOUT\");\n }", "public static void sendMail(UserInformation userInformation, JavaMailSenderImpl mailSenderImplementation, String jwtToken) {\n\t\ttry {\n\t\t\tSimpleMailMessage simpleMsg = new SimpleMailMessage();\n\t\t\tsimpleMsg.setTo(userInformation.getEmail());\n\t\t\tsimpleMsg.setSubject(\"Verify mail\");\n\t\t\tsimpleMsg.setText(\"Hii..!\"+userInformation.getName()+\"verify the user:\\n\"+\"http://8080/verify/\"+jwtToken);\n\t\t\tmailSenderImplementation.send(simpleMsg);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String mail = resetMail.getText().toString();\n auth.sendPasswordResetEmail(mail).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Login.this, R.string.reset_sent, Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Login.this, getString(R.string.reset_not_sent) + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n }", "public boolean enviarMailConfirmacion(Agente agente, Usuario usuario){\n\n try {\n\n //seteamos el asunto\n// message.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n//\n// //seteamos el mensaje que vamos a enviar\n// message.setContent(\"<html>\\n\" +\n// \"<body>\\n\" +\n// \"\\n Hola, para poder activar la cuenta haga click en el siguiente link ----> \" +\n// \"<a href=\\\"\"+new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n// \"&hash=\"+usuario.getUsuarioclave()+\n// \"\\\">\\n\" +\n// \"Activar cuenta</a>\\n\" +\n// \"\\n\" +\n// \"En caso de no poder pegue en el browser lo siguiente\\n \"+\n// new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n// \"&hash=\"+usuario.getUsuarioclave()+\"\\n\"+\n// \"Muchas Gracias\"+\n// \"</body>\\n\" +\n// \"</html>\", \"text/html\");\n// //colocamos la direccion de donde enviamos el correo\n// Address address = new InternetAddress(agente.getEmail());\n// message.setFrom(address);\n// //Colocamos la direccion de la persona a enviar\n// Address send = new InternetAddress(agente.getOtroemail(),false);\n// message.addRecipient(Message.RecipientType.TO,send);\n// message.addRecipient(Message.RecipientType.BCC, new InternetAddress( agente.getOtroemail()));\n// //la persona que envia con la validacion de su cuenta.\n// Transport trans = session.getTransport(\"smtp\");\n// //Aca se autentifica que la direccion de la persona que envia sea válida\n// //trans.connect();\n// trans.connect(\"sisgap@undec.edu.ar\",\"sgap*9812\");\n// trans.sendMessage(message,message.getAllRecipients());\n// trans.close();\n Email email = new Email();\n email.setFromAddress(\"Nortia UNDEC\", \"sisgap@undec.edu.ar\");\n email.addRecipient(agente.getApellido(), agente.getEmail(), RecipientType.TO);\n email.addRecipient(agente.getApellido(), agente.getOtroemail(), RecipientType.BCC);\n email.setTextHTML(\"Hola \"+usuario.getUsuarionombre()+\", <br /> para poder activar la cuenta haga click en el siguiente link ----> \" +\n\"<a href=\\\"\"+new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n \"&hash=\"+usuario.getUsuarioclave() +\n\"\\\"> Activar cuenta </a> <br />\"+\n \n\"En caso de no poder pegue en el browser lo siguiente \" +\n new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n\"&hash=\"+usuario.getUsuarioclave()+\"<br />\" +\n\"Muchas Gracias\");\n email.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n \n // or:\n new Mailer(\"localhost\", 25, \"sisgap@undec.edu.ar\", \"sgap*9812\").sendMail(email);\n } catch (Exception ex) {\n\n ex.printStackTrace();\n //Si el correo tiene algun error lo retornaremos aca\n JsfUtil.addErrorMessage(ex,\"No se pudo crear el Usuario\");\n\n return false;\n\n// } catch (MalformedURLException ex) {\n// Logger.getLogger(EnviarMail.class.getName()).log(Level.SEVERE, null, ex);\n// return false;\n }\n //Correo tuvo exito dara una salida en este punto indicando que si se envio\n return true;\n \n }", "private void sendEmail() {\n\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n Log.i(TAG, \"sendEmail: \"+currentEmail);\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n String email = currentEmail.trim();\n String subject = \"Garbage Report Handeled\";\n\n String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" +\" \"+textViewDescription.getText().toString();\n\n// String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" + \" \" +time+\" \"+textViewDescription.getText().toString();\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "public void sendMail(View view) {\n\n contentManager = new ContentManager(this);\n contentManager.sendEmail(helpBinding.mail.getText().toString(), new EmailListener() {\n @Override\n public void onSuccess(EmailResponse emailResponse) {\n showToast(emailResponse.getMessage());\n }\n\n @Override\n public void onFailed(String message, int responseCode) {\n showToast(message);\n }\n\n @Override\n public void startLoading(String requestId) {\n showToast(getString(R.string.sendEmail));\n }\n\n @Override\n public void endLoading(String requestId) {\n\n }\n });\n }", "public void sendEmail(){\r\n EmailService emailSvc = new EmailService(email, username, password, firstName, lastName);\r\n Thread th = new Thread(emailSvc);\r\n LOG.info(\"Starting a new thread to send the email..\");\r\n th.start();\r\n LOG.info(\"The email was sent successfully\");\r\n }", "private void sendVerificationCode(String phone_number){\n Log.d(TAG, \"sendVerificationCode: SENDING OTP\");\n progressBar.setVisibility(View.VISIBLE);\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n phone_number,\n 60,\n TimeUnit.SECONDS,\n TaskExecutors.MAIN_THREAD,\n mCallBack\n );\n }", "private static void testMail() throws Exception {\n\t\tUser user=new User();\n\t\tuser.setUsername(\"若水\");\n\t\tuser.setEmail(\"723413782@qq.com\");\n\t\tMail mail=new Mail();\n\t\tboolean b=mail.sendMail(user, \"http://www.baidu.com\", \"http://www.zzuli.edu.cn\", 2);\n\t\tSystem.out.println(b);\n\t}", "public boolean sendEmail(String recipient, String msg) {\n final String SENDGRID_API_KEY = \"SG.xxxxxx_xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxx_xxxxxxx\";\n\n if (SENDGRID_API_KEY.equals(\"SG.xxxxxx_xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxx_xxxxxxx\")) {\n System.out.println(\"You haven't added your sendgrid api key!\");\n return true;\n }\n\n // you'll need to specify your sendgrid verified sender identity for this to mail out.\n Email from = new Email(\"test@example.com\");\n String subject = \"Secret Assignment from the Elves\";\n Email to = new Email(recipient);\n Content content = new Content(\"text/plain\", msg);\n Mail mail = new Mail(from, subject, to, content);\n\n SendGrid sg = new SendGrid(SENDGRID_API_KEY);\n Request request = new Request();\n\n try {\n request.setMethod(Method.POST);\n request.setEndpoint(\"mail/send\");\n request.setBody(mail.build());\n Response response = sg.api(request);\n System.out.println(response.getStatusCode());\n System.out.println(response.getBody());\n System.out.println(response.getHeaders());\n return true;\n } catch (IOException ex) {\n System.out.println(ex.toString());\n return false;\n }\n }", "private void sendApplicationApprovedMail(Application application, Applicant applicant, String message) throws MessagingException {\r\n\t\tMailSender ms = new MailSender(\"smtp.gmail.com\", 465, \"lucasurrytest@gmail.com\", \"fairsailtest\");\r\n\t\t\r\n\t\tms.sendMessage(\"lucasurrytest@gmail.com\", \"Application was approved\", \"Your application \" + application.getApplicationId() + \" has been successfully approved \\n\\n\" + message, applicant.getEmailAddress());\r\n\t}", "public static boolean sendMail(Map alertMap) throws AddressException, MessagingException {\n\t\tString username = \"contact@pool4u.in\";\r\n\t\tString password = \"password4u\";\r\n\t\tPasswordAuthentication authentication = new PasswordAuthentication(username, password);\r\n\t\tAuthenticator authenticator = new Authenticator();\r\n\t\tproperties.setProperty(\"mail.smtp.submitter\", authenticator.getPasswordAuthentication().getUserName());\r\n Session session = Session.getDefaultInstance(properties);\r\n // Create a default MimeMessage object.\r\n MimeMessage message = new MimeMessage(session);\r\n // Set the RFC 822 \"From\" header field using the\r\n // value of the InternetAddress.getLocalAddress method.\r\n \r\n message.setFrom(new InternetAddress(from));\r\n // Add the given addresses to the specified recipient type.\r\n message.addRecipient(Message.RecipientType.TO,\r\n \t\t new InternetAddress((String)alertMap.get(CarPoolConstants.TO)));\r\n // Set the \"Subject\" header field.\r\n message.setSubject((String)alertMap.get(CarPoolConstants.SUBJECT));\r\n // Sets the given String as this part's content,\r\n // with a MIME type of \"text/plain\".\r\n message.setText((String)alertMap.get(CarPoolConstants.ALERT));\r\n // Send message\r\n //Transport.send(message);\r\n System.out.println(\"Message Sent.....\"+message);\r\n System.out.println(\"Mail has not been sent.. code is commented\");\r\n\t\treturn true;\r\n\t}", "private static boolean emailSSL(String fromEmail, String password, String fromName, String smtpHostServer, String toEmail, String subject, String body) {\n System.out.println(\"SSLEmail Start\");\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", smtpHostServer); //SMTP Host\n props.put(\"mail.smtp.socketFactory.port\", \"465\"); //SSL Port\n props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\"); //SSL Factory Class\n props.put(\"mail.smtp.auth\", \"true\"); //Enabling SMTP Authentication\n props.put(\"mail.smtp.starttls.enable\", \"true\"); //enable STARTTLS\n props.put(\"mail.smtp.port\", \"465\"); //SMTP Port\n props.put(\"mail.debug\", \"true\");\n Authenticator auth = new Authenticator() {\n //override the getPasswordAuthentication method\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(fromEmail, password);\n }\n };\n System.out.println(\"fromEmail:\" + fromEmail);\n System.out.println(\"password:\" + password);\n Session session = Session.getDefaultInstance(props, auth);\n System.out.println(\"Session created\");\n return EmailUtil.sendEmail(fromEmail, fromName, session, toEmail, subject, body);\n// EmailUtil.sendAttachmentEmail(session, toEmail, \"SSLEmail Testing Subject with Attachment\", \"SSLEmail Testing Body with Attachment\");\n// EmailUtil.sendImageEmail(session, toEmail, \"SSLEmail Testing Subject with Image\", \"SSLEmail Testing Body with Image\");\n\n }", "@RequestMapping(value = \"/resendverification\", method = RequestMethod.GET)\n\tpublic String unlockAccount2(@RequestParam String email, ModelMap model) {\n\t\tboolean userExists = loginService.userExists(email);\n\t\tif (userExists) {\n\t\t\tString email2 = loginService.returnEmailFromUsername(email);\n\t\t\tString username = loginService.returnUsernameFromEmail(email);\n\t\t\tvtService.regenerateVerificationCode(username, email2);\n\t\t\treturn \"unlocksuccessful\";\n\t\t} else {\n\t\t\t// FRONT END TO PRINT NO SUCH EMAIL EXIST\n\t\t\treturn \"resendverification\";\n\t\t}\n\t}", "@Category({Major.class})\n @Test\n public void gmailSendAndReceive(){\n SignInPage signInPage = WebUtil.goToSignInPage(driver);\n\n //2.Enter Username\n signInPage.enterUsername(driver, \"kbjoshitest@gmail.com\");\n\n //3. Go to next page\n SignInPage2 signInPage2 = signInPage.clickNextButton(driver);\n\n //4. Enter Password\n signInPage2.enterPassword(driver, \"testingrocks\");\n\n //5. Uncheck \"Stay signed in\" -- dont save cookies\n signInPage2.uncheckRemeberMe(driver);\n\n //6. Click Sign In Button\n EmailHomePage emailHomePage = signInPage2.clickSignIn(driver);\n\n //7. Verify login was successful\n Assert.assertTrue(\"Inbox should be present!!\",emailHomePage.inboxIsPresent(driver));\n\n //Click Compose\n emailHomePage.clickOnCompose(driver);\n\n //Fill in Recipient\n emailHomePage.enterRecipient(driver, \"kbjoshi85@gmail.com\");\n\n //Fill in Subject\n final String subjectMatter = \"Test email to self\";\n emailHomePage.enterSubject(driver, subjectMatter);\n\n //Fill in email body\n final String emailMatter = \"Hello, \"+ \"\\n\" + \"This is a test email to self\";\n emailHomePage.enterEmailBody(driver, emailMatter);\n\n //Click send\n emailHomePage.clickOnSendButton(driver);\n\n //Click inbox again\n emailHomePage.clickOnInbox(driver);\n\n //Click email\n EmailViewPage emailViewPage = emailHomePage.goToEmailViewPage(driver);\n\n //Verify the email subject and email body is correct\n String actualSubject = emailViewPage.getEmailSubjectText(driver);\n Assert.assertEquals(\"Title should match\", subjectMatter, actualSubject);\n\n String actualEmailContent = emailViewPage.getEmailContent(driver);\n Assert.assertEquals(\"Email body content should match\", emailMatter, actualEmailContent);\n\n //Sign out\n signInPage = emailHomePage.signOut(driver);\n\n //Verify user signed out successfully\n Assert.assertTrue(\"Sign In button should exist\", signInPage.signInButtonIsPresent(driver));\n\n }" ]
[ "0.7836217", "0.77047074", "0.72331667", "0.7179972", "0.70502275", "0.6797271", "0.6682656", "0.66413647", "0.6570576", "0.651554", "0.6485096", "0.6442956", "0.6434955", "0.6422877", "0.64042735", "0.6402848", "0.6364865", "0.6350606", "0.6325689", "0.63190377", "0.62912285", "0.61960614", "0.6194539", "0.6171924", "0.6159375", "0.61566085", "0.6141702", "0.6134814", "0.6134567", "0.61203", "0.61127985", "0.6112796", "0.6108587", "0.6098295", "0.60979307", "0.60967684", "0.6088054", "0.6082208", "0.6080684", "0.60793895", "0.6059131", "0.60578007", "0.60463786", "0.6042668", "0.603806", "0.603306", "0.6030863", "0.6019374", "0.6016357", "0.60126793", "0.60064775", "0.6001954", "0.59993505", "0.5975972", "0.597399", "0.5956691", "0.59415364", "0.5937022", "0.59281033", "0.5925474", "0.5921168", "0.5919457", "0.591945", "0.59186435", "0.59173816", "0.5893083", "0.5893083", "0.5893083", "0.5893083", "0.5893083", "0.5887298", "0.5883453", "0.58778274", "0.58704656", "0.5867297", "0.5867269", "0.5851402", "0.5838815", "0.5838325", "0.5835648", "0.5829123", "0.58218294", "0.5813712", "0.58066803", "0.5806639", "0.57985985", "0.5796073", "0.5795898", "0.5787786", "0.57860106", "0.578539", "0.5778883", "0.57723683", "0.5772094", "0.57696664", "0.5768831", "0.5766194", "0.57653934", "0.5751347", "0.57507527" ]
0.63283664
18
TODO Autogenerated method stub
public static void main(String[] args) { WebDriver driver=new FirefoxDriver(); driver.get("https://www.redbus.in/"); driver.manage().window().maximize(); System.out.println(driver.getTitle()); //System.out.println(driver.getCurrentUrl()); WebDriverWait wait=new WebDriverWait (driver,15); wait.until(ExpectedConditions.elementToBeClickable((By.xpath("//label[@class='db text-trans-uc']")))).click(); //driver.findElement(By.xpath("//label[@class='db text-trans-uc']")).click(); List<WebElement> ele=driver.findElements(By.xpath("//table[@class='rb-monthTable first last']//tr/td")); System.out.println("total number:"+ele.size()); for(int i=0;i<ele.size();i++){ System.out.println("total data:"+ele.size()); System.out.println(ele.get(i).getText()); if(ele.get(i).getText().equals("30")) { ele.get(i).click(); break; } } }
{ "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
Initializes TwitterFeed item based on user data
private @NotNull TwitterFeedResponse initializeFeed(final User u) { TwitterFeedResponse feed = new TwitterFeedResponse(); feed.favouritesCount = u.getFavouritesCount(); feed.followersCount = u.getFollowersCount(); feed.friendsCount = u.getFriendsCount(); feed.location = u.getLocation(); feed.profileImageUrl = u.getProfileImageURL(); feed.screenName = u.getScreenName(); feed.userName = u.getName(); feed.userId = u.getId(); return feed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Twitter() {\n\t\t\tuserMap = new HashMap<>();\n\t\t\tmaxFeed = 10;\n\t\t}", "public Twitter() {\n followees = new HashMap<>();\n tweetList = new ArrayList<>();\n }", "private void init() {\r\n\r\n analyticsManager = new xxxxAnalytics(getApplicationContext());\r\n\r\n analyticsSender = new AnalyticsSender(this);\r\n\r\n provider = FeedProviderImpl.getInstance(this);\r\n\r\n feedId = getIntent().getExtras().getInt(Constants.FEED_ID);\r\n if (provider != null) {\r\n friendFeed = provider.getFeed(feedId);\r\n }\r\n\r\n unifiedSocialWindowView = findViewById(R.id.linearLayoutForUnifiedSocialWindow);\r\n\r\n\r\n // Get member contacts.\r\n memberContacts = provider.getContacts(feedId);\r\n\r\n lastDiffs = new LinkedBlockingDeque<Integer>();\r\n }", "public Twitter() {\n size = 0;\n users = new ArrayList<>();\n }", "public void init(UserData userData) {\n this.userData = userData;\n }", "public void init() {\n BufferedReader in = null;\n try {\n //URL feed = new URL(\"http://twitter.com/statuses/user_timeline/48274520.rss\");\n URL feed = new URL(\"http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=g_damian\");\n in = new BufferedReader(new InputStreamReader(feed.openStream()));\n String inputLine;\n String data = null;\n while ((inputLine = in.readLine()) != null) {\n inputLine = inputLine.trim();\n if (inputLine.startsWith(\"<created_at>\") && inputLine.endsWith(\"</created_at>\")) {\n inputLine = inputLine.substring(12, inputLine.length() - 13);\n data = inputLine.replaceAll(\"\\\\+\\\\d* \", \"\");\n }\n if (inputLine.startsWith(\"<text>\") && inputLine.endsWith(\"</text>\")) {\n inputLine = inputLine.substring(6, inputLine.length() - 7);\n buffer.append(escapeMessage(inputLine));\n buffer.append(\"<br/>[\" + data + \"]\");\n buffer.append(\"\\n\");\n }\n }\n in.close();\n } catch (MalformedURLException ex) {\n Logger.getLogger(ShowTweetsApplet.class.getName()).log(Level.SEVERE, null, ex);\n appendException(buffer, ex);\n } catch (IOException ex) {\n Logger.getLogger(ShowTweetsApplet.class.getName()).log(Level.SEVERE, null, ex);\n appendException(buffer, ex);\n } finally {\n try {\n if (in != null) {\n in.close();\n }\n } catch (IOException ex) {\n Logger.getLogger(ShowTweetsApplet.class.getName()).log(Level.SEVERE, null, ex);\n appendException(buffer, ex);\n }\n }\n }", "public Twitter() {\n usersMap = new HashMap<>();\n }", "private void initTwitterConfigs() {\n consumerKey = getString(com.socialscoutt.R.string.twitter_consumer_key);\n consumerSecret = getString(com.socialscoutt.R.string.twitter_consumer_secret);\n }", "public Twitter() {\n userToTwitter = new HashMap<>();\n friends = new HashMap<>();\n tweets = new HashMap<>();\n }", "protected void init() {\n setUUIDString();\n setNoteCreatedAt();\n setNoteUpdatedAt();\n setCreator(ParseUser.getCurrentUser());\n addAuthor(ParseUser.getCurrentUser());\n setACL(new ParseACL(ParseUser.getCurrentUser()));\n }", "private void initObjects() {\n listUsers = new ArrayList<>();\n usersRecyclerAdapter = new UsersRecyclerAdapter(listUsers,UsersListActivity.this);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerViewUsers.setLayoutManager(mLayoutManager);\n recyclerViewUsers.setItemAnimator(new DefaultItemAnimator());\n recyclerViewUsers.setHasFixedSize(true);\n recyclerViewUsers.setAdapter(usersRecyclerAdapter);\n\n databaseHelper = new HomeDatabaseHelper(activity);\n Intent extras = getIntent();\n emailFromIntent = extras.getStringExtra(\"EMAIL\");\n textViewRole = this.findViewById(R.id.textViewName);\n textViewRole.setText(emailFromIntent);\n getDataFromSQLite();\n }", "public Twitter() {\n u_map = new HashMap<>();\n }", "private void initData() {\n\t\tcommentAdapter = new AvCommentAdapter(AvCommentActivity.this);\n\t\tcommentListView.setAdapter(commentAdapter);\n\t\taid = getIntent().getIntExtra(\"comment_aid\", 0);\n\t}", "public Q355_Twitter() {\n userId2Followees = new HashMap<>();\n userId2Followers = new HashMap<>();\n userId2AllTweets = new HashMap<>();\n userId2TopTenTweets = new HashMap<>();\n }", "@Override\n public void run() {\n ArrayList<Tweet> tweets = getTweets();\n int numTweets = tweets.size();\n long id = tweets.get(numTweets - 1).mUid - 1;\n Log.d(TAG, \"Requested items id starting at id = \" + id);\n populateHomeTimelineFromId(id);\n }", "public static void initializeTwitterAccount()\n\t{\n\t\tString cK = \"\";\n\t\tString cS = \"\";\n\t\tString aT = \"\";\n\t\tString aTS = \"\";\n\t\ttA = new TwitterAccount(cK, cS, aT, aTS);\n\t}", "public TweeterAdapter (List<Tweet> tweets){\n mTweets=tweets;\n }", "@Override\n\tprotected void initData() {\n\t\trequestUserInfo();\n\t}", "public void init(String userID);", "public Twitter() {\r\n\t\t\ttweet = new HashMap<Integer, List<twi>>(100);\r\n\t\t\tfollower = new HashMap<Integer, List<Integer>>(100);\r\n\t\t\ttimeStamp = 0;\r\n\t\t}", "private void init() {\n //getting the item info from the previous activity.\n Intent intent = getIntent();\n Theatre theatreItem = intent.getParcelableExtra(\"Chosen_Theatre\");\n\n if(theatreItem == null){\n throw new Error(\"no chosen theatre\");\n }else {\n AccessTheatreMovies accessMovies = new AccessTheatreMovies();\n movieLists = accessMovies.getMoviesFromTheatre(theatreItem.getName());\n if(movieLists == null){\n throw new Error(\"no available movies for chosen theatre: \" + theatreItem.getName());\n\n }else{\n buildRecyclerView();\n\n }\n }\n\n }", "public void initialize() {\n\t\tBmoUser bmoUser = new BmoUser();\n\n\t\t// Responsable\n\t\tBmFilter filterLeaderUserActive = new BmFilter();\n\t\tfilterLeaderUserActive.setValueFilter(bmoUser.getKind(), bmoUser.getStatus(), \"\" + BmoUser.STATUS_ACTIVE);\n\t\tleaderUserIdSuggestBox.addFilter(filterLeaderUserActive);\n\t\t\n\t\t// Consultor\n\t\tBmFilter filterAssignedUserActive = new BmFilter();\n\t\tfilterAssignedUserActive.setValueFilter(bmoUser.getKind(), bmoUser.getStatus(), \"\" + BmoUser.STATUS_ACTIVE);\n\t\tassignedUserIdSuggestBox.addFilter(filterAssignedUserActive);\n\t}", "public Twitter() {\n\t\t\ttweets = new ArrayList<>();\n\t\t\tuserTweets = new HashMap<>();\n\t\t\ttweetOwner = new HashMap<>();\n\t\t\tuserRelation = new HashMap<>();\n\t\t}", "@Override\n\tprotected void initData() {\n\t\tSharedPreferences sharedPref=PreferenceManager.getDefaultSharedPreferences(this);\n\t\ttoken=sharedPref.getString(\"token\", null);\t\n\t\tmAdapter=new MessageListViewAdapter(this);\n\t\tdatas=new ArrayList<String>();\n\t\tfor(int i=0;i<5;i++)\n\t\t\tdatas.add(\"消息标题 \"+i);\n\t\tmAdapter.setDatas(datas);\n\t\tlvMsg.setAdapter(mAdapter);\n\t}", "public void init(UserInfo user, String alias);", "public void initialize() {\n\n list.add(user1);\n list.add(user2);\n list.add(user3);\n }", "public void initData(UserManager userManager) {\n this.userManager = userManager;\n }", "public TweetsAdapter(Context context, List<Tweet> tweets) {\n this.context = context;\n this.tweets = tweets;\n }", "@Override\n\tprotected void initVariable() {\n\t\tapp = (MApplication) this.getApplication();\n\t\tapp.addAllActivity(this);\n\t\tfundcode = this.getIntent().getStringExtra(\"fundcode\");\n\t\tlist = new ArrayList<MoneyChangeBean>();\n\t\tadapter = new RecordDetailsAdapter(getApplicationContext(), list);\n\t\tuserShare = UserSharedData.getInstance(getApplicationContext());\n\t}", "public Twitter() {\n twitterTweetMap = new HashMap<>();\n reverseTwitterFollowMap = new HashMap<>();\n }", "public TweetAdapter(List<Tweet> tweets, Activity timeLineActivity) {\n mTweets = tweets;\n this.timeLineActivity = timeLineActivity;\n }", "private void initializeData() {\n posts = new ArrayList<>();\n posts.add(new Posts(\"Emma Wilson\", \"23 years old\", R.drawable.logo));\n posts.add(new Posts(\"Lavery Maiss\", \"25 years old\", R.drawable.star));\n posts.add(new Posts(\"Lillie Watts\", \"35 years old\", R.drawable.profile));\n }", "@Override\r\n\tpublic void initialize(URL location, ResourceBundle resources) {\r\n\t\t\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tfullNameLabel.setText(controller.getCurrentUser().getName());\r\n\t\tcount();\r\n\t\t\r\n\t\tdeleteItemButton.setOnAction(e -> deleteItem());\r\n\t\t\r\n\t}", "@Override\n public void populateTimeline() {\n long fetchMoreStart = tweets.size() > 0 ? tweets.get(tweets.size() - 1).getUid() : -1;\n client.getHomeTimeline(new JsonHttpResponseHandler() {\n // on success\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONArray json) {\n addAll(Tweet.fromJSONArray(json));\n }\n\n // on failure\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n Log.d(\"DEBUG\", errorResponse.toString());\n }\n }, fetchMoreStart);\n }", "private TwitterStore(){\n\t\tTwittUser tu = new TwittUser(\"1\", \"Admin\", \"Admin\", \"AAU\", \"The Admin\");\n\t\ttuProvider.put(tu.getId(), tu);\n\t\tTwittStatus st = new TwittStatus(\"1\", \"1\", \"Test status\", \"2014-01-01T00:00:00Z\");\n\t\tstProvider.put(st.getId(), st);\n\t}", "private void initObjects() {\n //listUsers = new ArrayList<>();\n //databaseHelper = new DatabaseHelper(activity);\n setUserData();\n\n usersRecyclerAdapter = new UsersRecyclerAdapter(currentUser);\n\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerViewUsers.setLayoutManager(mLayoutManager);\n recyclerViewUsers.setItemAnimator(new DefaultItemAnimator());\n recyclerViewUsers.setHasFixedSize(true);\n recyclerViewUsers.setAdapter(usersRecyclerAdapter);\n\n\n\n\n // String emailFromIntent = getIntent().getStringExtra(\"EMAIL\");\n\n // getDataFromSQLite();\n }", "public TweetsAdapter(Context context, List<Tweet> tweets) {\n mTweets = tweets;\n mContext = context;\n }", "private void loadTwitterData(){\n showLoadingDialog();\n TwitterController.getInstance().loadTwitters(getTwitterCallback);\n }", "private void init() {\n UsersListAdapter usersListAdapter = new UsersListAdapter(getSupportFragmentManager());\n mViewPagerUserListing.setAdapter(usersListAdapter);\n\n // attach tab layout with view pager\n mTabLayoutUserListing.setupWithViewPager(mViewPagerUserListing);\n\n }", "private void populateUserProfile() {\n setProfilePic();\n mDisplayNameTextView.setText(user.getName());\n mUsernameTextView.setText(String.format(\"@%s\", user.getUsername()));\n mBioTextView.setText(user.getBio());\n setAdapterForUserStories();\n\n new Thread(new Runnable() {\n public void run(){\n setFollowingCount();\n setFollowersCount();\n setStoriesCount();\n queryStoriesFromUser();\n }\n }).start();\n }", "protected void init() {\n\n List<ApplicationEntry> result;\n //we want to exclude duplicate apps by using ApplicationEntry#hashCode() and we don't care about sorting\n Set<ApplicationEntry> setOfItems = new HashSet<>();\n\n //we have a hacky hashcode implementation for ApplicationEntry\n //so that ApplicationEntry for the same app is only added ONCE.\n // some ApplicationEntries have the same app, but different action, so we want to avoid duplicates.\n // that is implementation specific - you may solve the problem of duplicate apps the other way.\n //so just notice this: mail sharing actions are added first.\n setOfItems.addAll(mailSharingActions.getMailActions());\n setOfItems.addAll(messengerSharingActions.getMessengerActions());\n\n\n result = new ArrayList<>(setOfItems);\n adapter.setItems(result);\n }", "public void init() {\n if (mRealm.isClosed()) {\n mRealm = Realm.getDefaultInstance();\n }\n RealmResults<TranslationInfo> translationInfos;\n\n if (isOnlyFavorite) {\n translationInfos = mRealm.where(TranslationInfo.class)\n .equalTo(\"isFavourite\", isOnlyFavorite)\n .findAll();\n } else {\n translationInfos = mRealm.where(TranslationInfo.class)\n .findAll();\n }\n mRvHistoryAdapter.updateData(translationInfos);\n\n }", "@Override\n\tpublic void initIterator() {\n\t\tcurrentUser = 0;\n\t}", "private void init() {\n if (getSupportActionBar() != null &&\n (presenter.getRepositoryName() != null && !presenter.getRepositoryName().isEmpty())) {\n getSupportActionBar().setTitle(presenter.getRepositoryName());\n }\n\n rcvItems.setLayoutManager(new LinearLayoutManager(this));\n\n if (presenter.getPullRequests() != null && presenter.getPullRequests().size() != 0) {\n setupList();\n }\n pgbLoading.setVisibility(View.GONE);\n tvwNoData.setVisibility(presenter.getPullRequests() != null && presenter.getPullRequests().size() != 0 ? View.GONE : View.VISIBLE);\n }", "private void initShare() {\n // Create ShareHelper\n mShareHelper = new ShareHelper(mContext);\n }", "@PostConstruct\n public void init() {\n users = userService.findAll().stream()\n .map(UserModel::convertFromEntity)\n .sorted(Comparator.comparing(UserModel::getId))\n .collect(Collectors.toList());\n articles = articleService.findAll().stream()\n .map(ArticleModel::convertFromEntity)\n .sorted(Comparator.comparing(ArticleModel::getId))\n .collect(Collectors.toList());\n comment = CommentModel.builder().build();\n conversation.begin();\n }", "public Twitter() {\n map = new HashMap<>();\n }", "public MetodosTwit() {\r\n\r\n twitter = new TwitterFactory().getInstance();\r\n }", "public Twitter355() {\n followerMap = new HashMap<>();\n followeeMap = new HashMap<>();\n tweetMap = new HashMap<>();\n selfTweetMap = new HashMap<>();\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n setInfoUser();\n }", "@Override\r\n\tpublic void init() {\n\t\tint numOfItems = loader.getNumOfItems();\r\n\t\tsetStoreSize(numOfItems);\r\n\r\n\t\tfor (int i = 0; i < numOfItems; i++) {\r\n DrinksStoreItem item = (DrinksStoreItem) loader.getItem(i);\r\n\t\t\tStoreObject brand = item.getContent();\r\n\t\t\tStoreObject existingBrand = findObject(brand.getName());\r\n\t\t\tif (existingBrand != null) {\r\n\t\t\t item.setContent(existingBrand);\r\n\t\t\t}\r\n\t\t\taddItem(i, item);\t\r\n\t\t}\r\n\t}", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n File userDataFolder = new File(\"SaveData\\\\UserData\\\\\");\n String[] children = userDataFolder.list();\n playerIcon.setImage(icon0);\n if (playerList.getSelectionModel().getSelectedItem() == null) {\n if (children != null) {\n for (String filename : children) {\n playerList.getItems().addAll(filename.substring(0, filename.length() - 4));\n }\n playerList.getSelectionModel().selectFirst();\n String user = playerList.getSelectionModel().getSelectedItem();\n displayUserInfo(user);\n }\n }\n }", "public TravlerAdapter(ArrayList<UserProfileVO> myDataset, Context context) {\n\n mArrayList = myDataset;\n mContext = context;\n\n }", "@Override\n\tprotected void initData() {\n\t\tisSearch = (boolean) getIntent().getExtras().getBoolean(Constant.IntentKey.isSearch,false);\n\t\t\n\t\tif (isSearch) {//非来自直播列表\n\t\t\tarticleID = getIntent().getExtras().getLong(Constant.IntentKey.articleID);\n//\t\t\tprogressActivity.showLoading();\n\t\t\t\n\t\t\t// 查询发现详情\n\t\t\tobtainDetailRequest();\n\t\t} else {\n\t\t\tsquareLiveModel = (SquareLiveModel) getIntent().getExtras().getSerializable(Constant.IntentKey.squareLiveModel);\n\t\t\t\n\t\t\tinitLoadView();\n\t\t}\n\t\t\n\t\t//启动定时器\n//\t\tinitTimerTask();\n\t}", "private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n dbHelper = new DBHelper(activity);\n inputValidation = new InputValidation(activity);\n progress = new ProgressDialog(activity);\n user=new User();\n }", "@Override\n\tpublic void initialize(URL url, ResourceBundle rb) {\n\t\tuserName.setText(userID);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //get the preferences for the app\n emyPrefs = getSharedPreferences(\"myTwitterClientPrefs\", 0);\n\n //find out if the user preferences are set\n if (emyPrefs.getString(\"user_token\", null) == null) {\n new RetrieveFeedTask().execute();\n //no user preferences so prompt to sign in\n setContentView(R.layout.activity_login);\n //setup button for click listener\n Button signIn = (Button) findViewById(R.id.signin);\n signIn.setOnClickListener(LoginActivity.this);\n\n\n } else {\n //user preferences are set - get timeline\n //status load\n\n //setupTimeline();\n startFollowersActivity();\n }\n }", "private void populateUserView()\n\t{\n\t\t/* create dummy user properties, throw away later */\n\t\tPlayerViewModel userViewModel = new PlayerViewModel(currentUser.getString(\"facebookId\"), \n\t\t\t\t\t\t\t\t\t\tcurrentUser.getString(\"profilePicUrl\")+\"?type=large\", \n\t\t\t\t\t\t\t\t\t\tlocalCountMap.get(currentUser.getString(\"facebookId\")), \n\t\t\t\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\t\t\t\tfalse);\n\t\t\n\t\t/* create adapter for user view */\n\t\tuserCheeseTextView = (TextView) findViewById(R.id.cheeseCountTextView);\n\t\t//userProfileImageView = (ImageView) findViewById(R.id.userProfileImageView);\n\t\tuserProfileImageView = (CircularImageView) findViewById(R.id.userProfileImageView);\n\t\tuserViewAdapter = new UserViewAdapter(this, userCheeseTextView, userProfileImageView);\n\t\t\n\t\t/* set display values via adapter */\n\t\tuserViewAdapter.setUser(userViewModel);\t\t\n\t}", "public void init(String userName){\r\n\r\n this.userName = userName;\r\n udb_FriendsListView.setStyle(\"-fx-font: 18pt 'Arial'\");\r\n udb_PostsTableView.setStyle(\"-fx-font-size: 18pt\");\r\n try{\r\n\r\n ObservableList<Profiles> prof = ProfilesDao.searchProfiles(userName);\r\n System.out.println(\"Running\");\r\n System.out.println(prof.get(0).getAge());\r\n System.out.println(prof.get(0).getFirstName());\r\n setFirstNameLabel(prof.get(0).getFirstName().toUpperCase());\r\n setLastNameLabel(prof.get(0).getLastName().toUpperCase());\r\n setAge(calculateAge(prof.get(0).getAge()));\r\n setEmail(prof.get(0).getEmail().toUpperCase());\r\n loadFriends();\r\n loadStatus();\r\n initTable();\r\n loadPosts();\r\n\r\n } catch(Exception e) {\r\n\r\n }\r\n }", "private void initObjects() {\n inputValidation = new InputValidation(activity);\n databaseHelper = new DatabaseHelper(activity);\n user = new User();\n }", "@Override\n public void update(String tweet, Long tweetTime) {\n\tuserFeed.add(tweet);\n\tlastUpdateTime = tweetTime;\n }", "@Override\n protected void initData() {\n this.classes = new ArrayList<>();\n this.classes.add(SmartRouterSampleActivity.class);\n this.classes.add(CustomRouterActivity.class);\n this.classes.add(RouterCenterActivity.class);\n this.adapter = new MenuRecyclerViewAdapter();\n this.adapter.setList(classes);\n this.recyclerView.setAdapter(adapter);\n }", "@Override\r\n\tprotected void init() {\r\n\t\tList<Configuracao> configs = servico.listarTodos();\r\n\t\tif (!configs.isEmpty()) {\r\n\t\t\tentidade = configs.get(0);\t// deve haver apenas um registro\r\n\t\t} else {\r\n\t\t\tcreateConfiguracao();\r\n\t\t}\r\n\t\t\r\n carregarTemas();\r\n\t}", "public UsersAdapter(List<User> myDataset, Activity activity) {\n mDataset = myDataset;\n act = activity;\n }", "@Override\n\tprotected void setupData() {\n\t\tisFirst = getIntent().getExtras().getBoolean(\"IS_FIRST\");\n\t\tcid = getIntent().getExtras().getString(FirstCategoryAct.class.getName());\n\t\tString title;\n\t\tif(isFirst){\n\t\t\ttitle = getIntent().getExtras().getString(\"TITLE_BAR\") + getResources().getString(R.string.tv_article_all);\n\t\t}else{\n\t\t\ttitle = getResources().getString(R.string.tv_article_all2);\n\t\t}\n\t\t\n\t\tsetGCenter(true, title);\n\t\tsetGLeft(true, R.drawable.back_selector);\n\n\t\tgetData(NET_ARTICLE, false);\n\t}", "public SocialScreenAdapter(Context context, List<UserSocial> list) {\n this.users = list;\n this.context = context;\n }", "protected Feed(String url, List<String> userTitle, Settings settings) {\n\t\tthis.url = url;\n\t\tthis.items = Collections.synchronizedSet(new HashSet<FeedItem>());\n\t\tthis.userTitle = new ArrayList<>(userTitle);\n\t\tthis.settings = settings;\n\t}", "private void initUI(ActivityUserListBinding binding) {\n\n userHolder = (UserParameterHolder) getIntent().getSerializableExtra(Constants.USER_PARAM_HOLDER_KEY);\n\n // Toolbar\n if(userHolder.return_types.equals(\"follower\")) {\n initToolbar(binding.toolbar, getString(R.string.user_follower_list_toolbar_name));\n }else {\n initToolbar(binding.toolbar, getString(R.string.user_following_list_toolbar_name));\n }\n\n // setup Fragment\n setupFragment(new UserListFragment());\n\n }", "private void initializeCurrentUser() {\n if (enableLoginActivity && mAuth.getCurrentUser() != null) {\n try {\n initializeUser();\n refreshGoogleCalendarToken();\n } catch (PetRepeatException e) {\n Toast toast = Toast.makeText(this, getString(R.string.error_pet_already_existing),\n Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (mAuth.getCurrentUser() != null) {\n mAuth.getCurrentUser().getIdToken(false).addOnCompleteListener(task -> {\n user.setToken(Objects.requireNonNull(task.getResult()).getToken());\n });\n }\n }\n }", "@Override\r\n\tpublic void initData() {\n\t\tThreadUtils.getSinglePool().execute(new Runnable() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t\tIntent intent =null;\r\n\t\t\t\t\tChainApplication application = (ChainApplication) getApplicationContext();\r\n\t\t\t\t\tUser user = application.getUserInfo();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(StringUtils.isEmpty(user.getUser_Name()) && StringUtils.isEmpty(HttpManager.getInstance().getToken(HttpManager.KEY_TOKEN))){\r\n\t\t\t\t\t\tintent = new Intent(getActivity(),LoginActivity.class);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tintent = new Intent(getActivity(), MainActivity.class);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void initUser() {\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\n user_brand.getItems().addAll(\"clinique\",\"innisfree\",\"neogen\",\"eucerin\");\r\n handler = new DBHandler();\r\n }", "@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\n\t\t//get profile data from database\n\t\tProfile profile = ProfileDAO.searchProfile(String.valueOf(friendsID));\n\t\t//get privacy reference data from database\n\t\tProfilePrivacy profilePrivacy = ProfileDAO.searchProfilePrivacy(String.valueOf(friendsID));\n\t\t//display username\n\t\tusername.setText(profile.getUsername());\n\t\t\n\t\t//other data from friend's profile\n\t\tif(profilePrivacy.getFirstName()) firstName.setText(profile.getFirstName());\n\t\telse firstName.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getLastName()) lastName.setText(profile.getLastName());\n\t\telse lastName.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getEmail()) email.setText(profile.getEmail());\n\t\telse email.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getBirthday()) birthday.setText(profile.getBirthday());\n\t\telse birthday.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getPhoneNumber()) phone.setText(profile.getPhoneNumber());\n\t\telse phone.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getOccupation()) occupation.setText(profile.getOccupation());\n\t\telse occupation.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getSchool()) school.setText(profile.getSchool());\n\t\telse school.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getStatus()) status.setText(profile.getStatus());\n\t\telse status.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getPosts()) showPosts();\n\t\telse postsList.getItems().add(new Text(\"User chose not to display posts.\"));\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n setAllUsersInComboBox();\n viewUsers();\n setAllRolesInComboBox();\n }", "private void initFBTwitterLogIn() {\n TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET);\n Fabric.with(AuthenticationFragment.this.getContext(), new Twitter(authConfig));\n }", "protected void populateFeed() {\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n query.include(Post.KEY_USER);\n query.addDescendingOrder(Post.CREATED_AT);\n query.setLimit(20);\n query.findInBackground(new FindCallback<Post>() {\n // Result of the call to Parse\n @Override\n public void done(List<Post> queryPosts, ParseException e) {\n // There is an error\n if(e != null) {\n Log.e(TAG, \"Error in getting posts\");\n return;\n }\n for(Post post : queryPosts) {\n // post.getUser() gets the Id... post.getUser().getUsername() gets the Username associated to the id of getUser in User's table\n Log.i(TAG, \"Post \" + post.getDescription() + \" username: \" + post.getUser().getUsername());\n }\n posts.addAll(queryPosts);\n adapter.notifyDataSetChanged();\n }\n });\n }", "private void init() {\n if (mHeadline != null) {\n mHeadlingString = StringEscapeUtils.unescapeHtml4(mHeadline.getMain());\n }\n\n for (ArticleMultimedia multimedia : mMultimedia) {\n if (multimedia.getSubtype().equals(\"thumbnail\")) {\n mThumbnail = getMultimediaUrl(multimedia);\n }\n }\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 }", "public Twitter() {\n \n }", "@Override\n public void onLoadMore(long max_id, int totalItemsCount, RecyclerView view) {\n if (currentUser == null) {\n populateTimeline(index, null);\n //getLocalTweets();\n }\n else{\n populateTimeline(index, currentUser.getScreenName());\n //getLocalTweets();\n }\n }", "public void initData(UserManager userManager) {\n this.userManager = userManager;\n PayBillAccountBox.setItems(FXCollections.observableArrayList(\n userManager.getCurrentUser().getAllAccount()));\n continueButton.setDisable(true);\n }", "@PostConstruct\n public void init() {\n this.facts.addAll(checkExtractor.obtainFactList());\n this.facts.addAll(facebookExtractor.obtainFactList());\n this.facts.addAll(googleExtractor.obtainFactList());\n this.facts.addAll(linkedinExtractor.obtainFactList());\n this.facts.addAll(twitterExtractor.obtainFactList());\n\n this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList());\n this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList());\n this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList());\n this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList());\n this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList());\n }", "@Override\n public void init() {\n logger.info(\"Initializing Sample TAL adapter\");\n\n // In order to get ticket updates from Symphony adapter must subscribe to this explicitly here\n // After subscription is done, all updates will come to this adapter instance via calls to syncTalTicket method\n talProxy.subscribeUpdates(accountId, this);\n\n try {\n // obtain adapter configuration\n setConfig(talConfigService.retrieveTicketSystemConfig(accountId));\n } catch (Exception e) {\n throw new RuntimeException(\"SampleTalAdapterImpl was unable to retrieve \" +\n \"configuration from TalConfigService: \" + e.getMessage(), e);\n }\n\n // subscribe for getting adapter configuration updates\n talConfigService.subscribeForTicketSystemConfigUpdate(accountId,\n (ticketSystemConfig) -> setConfig(ticketSystemConfig));\n }", "@Override\n protected RSSItem doInBackground(RSSItem... params) {\n \tDatabaseUtil databaseUtil = DatabaseUtil.initDatabase(context);\n \t\tif (databaseUtil == null) {\n \t\t\tLog.w(TAG, \"database init failed\");\n \t\t\treturn item;\n \t\t}\n \titem = params[0];\n \t\titem.setFav(databaseUtil.changeFav(item));\n return item;\n }", "public Twitter() {\n }", "public void initUser(ActiveSession user) {\n this.user = user;\n }", "protected FollowersItem() {\n hashDupA = hashDupB = \"\";\n aw = null;\n }", "public static void initPlayer() {\n\t\tuser = game.getUsers().get(game.getUserTurn());\n\t\tlblBudgetText.setText(user.getBudget()+\"\");\n\t\tdisplayUserTeam();\n\t}", "@Override\n\tpublic List<UserTweet> getFeed() throws Exception {\n\t\tList<UserTweet> usertweets = new ArrayList<UserTweet>();\n\t\t\n\t\tUserTweet userTweet1 = new UserTweet();\n\t\tuserTweet1.setUsername(\"aren from dao\");\n\t\tuserTweet1.setTweetMessage(\"hey was up\");\n\t\t\n\t\tUserTweet userTweet2 = new UserTweet();\n\t\tuserTweet2.setUsername(\"aren2 new\");\n\t\tuserTweet2.setTweetMessage(\"hey was up 2\");\n\t\t\n\t\tusertweets.add(userTweet1);\n\t\tusertweets.add(userTweet2);\n\t\t\n\t\treturn usertweets;\n\t}", "@PostConstruct\r\n public void init() {\n HttpSession session = SessionUtil.getSession();\r\n String email = (String) session.getAttribute(\"email\");\r\n user = userFacade.users(email);\r\n }", "public void initMarket() {\n marketInfo = Constant.marketInfo.get(market.toLowerCase());\n try {\n getData();\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void initialize() {\n\t\thideAdditionElements();\n\t//\tinitializeUserList();\n\t\t// TODO fill list with saved users\n\t\t\n//\t\tif(userList.size() > 0) {\n//\t\t\tuserListView.getSelectionModel().select(0);\n//\t\t}\n\t\t\n\t\tuserListView.getSelectionModel().selectedIndexProperty().addListener((obs, oldVal, newVal) -> selectUser());\n\t\tuserListView.setItems(userList);\n\t}", "public void initialize() {\n this.loadNewsList();\n }", "public MyRankListAdapter(Context context, ArrayList<User> itemList) {\n super(context, 0, itemList);\n }", "private void initData() {\n mListWifi = new ArrayList<Map<String, Object>>();\n mWifiAdmin = new WifiAdmin(mContext);\n\t\tmWifiAdmin.openWifi();\n\t\t\n mboolWifiTest = false;\n \n // Used to save the current state of mobile test item\n SharedPreferences sp = mContext.getSharedPreferences(\n SHAREPREFERCES_NAME, Context.MODE_PRIVATE);\n Editor editor = sp.edit();\n editor.putBoolean(\"wifistate\", mWifiAdmin.mWifiManager.isWifiEnabled());\n editor.commit();\n }", "private void init() {\n mCacheUtil = ExoPlayerCacheUtil.getInstance(this);\n\n //Lets put our array of URLs into a simple array adapter to display to the user\n ListView choicesListView = findViewById(R.id.lv_choices);\n mChoicesAdapter = new MediaListAdapter(this,\n R.layout.media_list_item, Arrays.asList(TestStreams.getHlsArray()));\n choicesListView.setAdapter(mChoicesAdapter);\n choicesListView.setOnItemClickListener(this);\n\n //The below code are just dummy fillers to provide a header and footer divider\n LayoutInflater inflater = getLayoutInflater();\n TextView tvEmptyHeader = (TextView) inflater.inflate(R.layout.choice_list_item, null);\n TextView tvEmptyFooter = (TextView) inflater.inflate(R.layout.choice_list_item, null);\n choicesListView.addHeaderView(tvEmptyHeader);\n choicesListView.addFooterView(tvEmptyFooter);\n\n LogTrace.d(TAG, \"Initialization complete.\");\n }", "private void initLsitData() {\n\t\tlist = new ArrayList<View>();\n\n\t\tlist.add(new NewsMenupagerItem(Mactivity,TY).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,YL).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,QW).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,MV).initView());\n\n\n\t}", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n //get the data according to mposition\n Tweet tweet=mTweets.get(position);\n\n //populate the views according to this data\n holder.tvUsername.setText(tweet.user.name);\n holder.tvBody.setText(tweet.body);\n\n }", "private void init() {\n\n if (shortListUserList.size()==0){\n fragmentShortlistuserListLayoutBinding.noDataAvailableTv.setVisibility(View.VISIBLE);\n fragmentShortlistuserListLayoutBinding.recyclerView.setVisibility(View.GONE);\n }else {\n fragmentShortlistuserListLayoutBinding.recyclerView.setVisibility(View.VISIBLE);\n fragmentShortlistuserListLayoutBinding.noDataAvailableTv.setVisibility(View.VISIBLE);\n ShortListedUserAdapter mAdapter = new ShortListedUserAdapter(getContext(), shortListUserList);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getContext());\n fragmentShortlistuserListLayoutBinding.recyclerView.setLayoutManager(mLayoutManager);\n fragmentShortlistuserListLayoutBinding.recyclerView.setItemAnimator(new DefaultItemAnimator());\n fragmentShortlistuserListLayoutBinding.recyclerView.setAdapter(mAdapter);\n }\n }", "private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}" ]
[ "0.6676721", "0.62683165", "0.6156201", "0.6010927", "0.59947735", "0.59473705", "0.59278625", "0.5908156", "0.59068274", "0.59017015", "0.58789164", "0.57869786", "0.5747415", "0.57445824", "0.57365537", "0.57321554", "0.57248014", "0.56780094", "0.564128", "0.5640015", "0.56348604", "0.56276876", "0.5614143", "0.5598101", "0.559767", "0.55844164", "0.5573214", "0.55683297", "0.55639654", "0.5538469", "0.5524272", "0.55230504", "0.5505853", "0.5496181", "0.5491602", "0.54672873", "0.5464605", "0.5452798", "0.54527813", "0.54394835", "0.5429413", "0.5417859", "0.5410406", "0.54103935", "0.5405878", "0.5355873", "0.5342746", "0.5316074", "0.531489", "0.53138214", "0.5311238", "0.5308811", "0.53046566", "0.52973807", "0.5293336", "0.52871144", "0.52801114", "0.5271628", "0.52691215", "0.52686954", "0.5268278", "0.5266077", "0.5262591", "0.52571", "0.52529234", "0.52316064", "0.52246517", "0.5224525", "0.5224203", "0.52170676", "0.521467", "0.520458", "0.51905125", "0.51830804", "0.51803535", "0.51777935", "0.5164295", "0.51633793", "0.5145542", "0.5140598", "0.5132048", "0.5127456", "0.5119769", "0.5106636", "0.51045555", "0.5103087", "0.5102052", "0.50953346", "0.508895", "0.50803775", "0.5077238", "0.50769", "0.5074306", "0.50568825", "0.5049818", "0.50463897", "0.50427806", "0.5038317", "0.50332767", "0.5032345" ]
0.686839
0
Returns latest maxNumOfTweets amount of tweets and that have been sent since sinceMessageId's tweet was sent (or 1)
public @NotNull TwitterFeedResponse getTwitterFeed(@NotNull final String userName, final int maxNumOfTweets, final long sinceMessageId) throws TwitterException { User u = twitter.showUser(userName); TwitterFeedResponse feed = initializeFeed(u); ResponseList<Status> tweets; if (sinceMessageId <= 0) { tweets = twitter.getUserTimeline(feed.userId, new Paging(1, maxNumOfTweets)); } else { tweets = twitter.getUserTimeline(feed.userId, new Paging(1, maxNumOfTweets, sinceMessageId)); } feed.limit = u.getRateLimitStatus().getLimit(); feed.remaining = u.getRateLimitStatus().getRemaining(); for (Status s : tweets) { TwitterFeedResponse.Tweet t = initializeTweet(s, feed); feed.tweets.add(t); } return feed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer maxMessages();", "public int getCount() {\n return tweets.size();\n }", "public long getLastTweetId() {\n return tweetAdapter.getItem(tweetAdapter.getCount()-1).getTweetId();\n }", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "public int getUnreadChatMessageCountFromActiveLocals();", "public int getUnreadChatMessageCount();", "@Override\n\tpublic Integer findMaxCount() {\n\t\tString maxCountSql = \"select count(noticeid) from notice where status=1\";\n\t\treturn (Integer) this.jdbcTemplate.queryForObject(maxCountSql, Integer.class);\n\t}", "private static void printMostRetweetedTweets() throws Exception{\n\t\t\n\t\tString max_retweeted_tweet[] = new String[3];\t//string containing tweets\n\t\tint max_counts[] = new int[3];\t//string containing their retweet count\n\t\t\n\t\tfor(Status status : statusList){\n\t\t\tif(!status.isRetweet() && status.getURLEntities().length != 0){\n\t\t\t\tint count = status.getRetweetCount();\n\t\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\tif(count>max_counts[index]){\n\t\t\t\t\tmax_counts[index] = count;\n\t\t\t\t\tmax_retweeted_tweet[index] = status.getText();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most retweeted tweets with links in them */\n\t\tSystem.out.println(\"the top 3 most retweeted tweets with links in them : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Tweet : \" + max_retweeted_tweet[i] + \" retweeted \"+ max_counts[i] + \" times\" );\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "public int getTotalMessageCount(){\n Query query = new Query(\"Message\");\n Query query2 = new Query(\"Question\");\n PreparedQuery results = datastore.prepare(query);\n PreparedQuery results2 = datastore.prepare(query2);\n return results.countEntities(FetchOptions.Builder.withLimit(1000)) + results2.countEntities(FetchOptions.Builder.withLimit(1000));\n}", "public int getMaxCount() {\n return maxCount_;\n }", "int getMaxCount();", "int getMaxCount();", "public int getMaxCount() {\n return maxCount_;\n }", "public Integer getMessageCount() {\r\n return messageCount;\r\n }", "int getDeliveredCount();", "private int gather(QueryTargetInfo info) {\n ArrayList<TweetData> res;\n int count = 0;\n int tempCount;\n int ndx;\n boolean flag = true;\n\n info.smallestId = null;\n\n do {\n flag = true;\n res = query(info);\n\n //If there was an error getting the tweets, then don't continue.\n if (res == null) {\n flag = false;\n } else {\n //If we did not get the maximum tweets, then don't continue\n if (res.size() < (MAX_PAGES * RPP)) {\n flag = false;\n }\n\n //Save the results in the db.\n tempCount = store.insertTweets(info, res);\n\n count += tempCount;\n }\n } while (flag);\n\n return count;\n }", "private int getMessageCount() {\r\n return mMessages.length;\r\n }", "private synchronized boolean webhookMaxed(String clientId) {\n return webhookCount(clientId) > this.maxJobsPerClient ? true : false;\n }", "protected void obtainLiveMaxChatId() {\n\t\tfor (int i = 0; i < liveModels.size();i++) {\n\t\t\tSquareLiveChatModel squareLiveChatModel = liveModels.get(i);\n\t\t\tif (squareLiveChatModel.getIsTop() == 0) {//置顶\n\t\t\t\tlong tempLiveMaxChatId = squareLiveChatModel.getChatId();\n\t\t\t\tif (tempLiveMaxChatId>liveMaxChatId) {\n\t\t\t\t\tliveMaxChatId = tempLiveMaxChatId;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t}", "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 getNumberOfOlderOnActivityFeed(Identity ownerIdentity, Long sinceTime);", "public int getMessagesCount() {\n return messages_.size();\n }", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageIdCount();", "public int getCountOfMostUpcomingUserEvents(long userId);", "public int getCount() {\n\t\tint count = 0;\r\n\t\tif (newTwitts != null)\r\n\t\t\tcount += newTwitts.size();\r\n\t\tif (oldTwitts.moveToFirst())\r\n\t\t\tcount += oldTwitts.getCount();\r\n\t\treturn count;\r\n\t}", "public int getMessagesSent() {\n return this.messagesSent;\n }", "public int getNumberOfNewerOnActivityFeed(Identity ownerIdentity, Long sinceTime);", "public void userWithMostLikes() {\n Map<Integer, Integer> userLikesCount = new HashMap<>();\n Map<Integer, User> users = DataStore.getInstance().getUsers();\n \n for (User user : users.values()) {\n for (Comment c : user.getComments()) {\n int likes = 0;\n if (userLikesCount.containsKey(user.getId())) {\n likes = userLikesCount.get(user.getId());\n }\n likes += c.getLikes();\n userLikesCount.put(user.getId(), likes);\n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : userLikesCount.keySet()) {\n if (userLikesCount.get(id) > max) {\n max = userLikesCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"User with most likes: \" + max + \"\\n\" \n + users.get(maxId));\n }", "public void userWithMostLikes() {\n Map<Integer, Integer> userLikesCount = new HashMap<>();\n Map<Integer, User> users = DataStore.getInstance().getUsers();\n \n for (User user : users.values()) {\n for (Comment c : user.getComments()) {\n int likes = 0;\n if (userLikesCount.containsKey(user.getId())) {\n likes = userLikesCount.get(user.getId());\n }\n likes += c.getLikes();\n userLikesCount.put(user.getId(), likes);\n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : userLikesCount.keySet()) {\n if (userLikesCount.get(id) > max) {\n max = userLikesCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"User with most likes: \" + max + \"\\n\" \n + users.get(maxId));\n }", "public int getMessagesCount() {\n return messages_.size();\n }", "public int getSinceTimeMsCount() {\n return sinceTimeMs_.size();\n }", "public int getSinceTimeMsCount() {\n return sinceTimeMs_.size();\n }", "public int getMaxCalls();", "public void userWithMostLikes(){\n Map<Integer,Integer> userLikesCount = new HashMap<>();\n Map<Integer,User> users = DataStore.getInstance().getUsers();\n \n for(User user : users.values()){\n for(Comment c : user.getComments()){\n int likes=0;\n if(userLikesCount.containsKey(user.getId())){\n\n likes = userLikesCount.get(user.getId());\n }\n likes += c.getLikes();\n userLikesCount.put(user.getId(), likes);\n }\n }\n System.out.println(userLikesCount);\n int max=0;\n int maxId=0;\n for(int id: userLikesCount.keySet()){\n if(userLikesCount.get(id)>max){\n max= userLikesCount.get(id);\n maxId=id;\n }\n }\n System.out.println(\"\\nUser with most likes : \"+ max+ \"\\n\"+ users.get(maxId));\n }", "public int getNumberOfOlderComments(ExoSocialActivity existingActivity, Long sinceTime);", "public static String getUsernameWithHighestCommentCount() {\n\t\t\n\t\t// get all data from service\n\t\tList<Data> data = getAllDataFromService();\t\t\n\t\t\n\t\t// sort the array\n\t\tfor (int i = 0; i < data.size(); i++) \n {\n for (int j = i + 1; j < data.size(); j++) { \n if (data.get(i).getComment_count() < data.get(j).getComment_count()) \n {\n Data temp1 = data.get(i); \n data.set(i, data.get(j));\n data.set(j, temp1);\n }\n }\n }\n\t\t\n\t\t// return the user with highest comment\n\t\treturn data.get(0).getUsername();\n\t}", "public static int countReceivedMessages() {\n\tint sum = 0;\n\n\tfor (Class<? extends TrackedMessage> messageClassType : TrackedMessage.messagesSent\n\t\t.keySet())\n\t sum += TrackedMessage.countReceivedMessages(messageClassType);\n\n\treturn sum;\n }", "public synchronized int messageCount() {\n \tfinal Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this).identity();\n return q.execute().size();\n }", "public static int getMaxThreadCount(){\n return Integer.parseInt(properties.getProperty(\"maxThreadCount\"));\n }", "public int getNumberOfPostOnBlog(){\n List<BlogPost>blogs = blogPostFacade.findAll();\n int k=0;\n for(BlogPost temp: blogs){\n if(temp.getBlog().getId().equals(blogPost.getBlog().getId())){\n k++;\n System.out.println(\"Mes \"+temp.getMessage());\n }\n \n }\n return k ;\n }", "public int getDataMessagesReceived() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMessages().size() - c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}", "public int getLastProgressivo() {\r\n\t\treturn messageNumber.get();\r\n\t}", "private synchronized int webhookCount(String clientId) {\n if (!clientWebhooks.containsKey(clientId))\n clientWebhooks.put(clientId, 0);\n return clientWebhooks.get(clientId);\n }", "public long getMessageReceivedCount() {\n return messageMetrics.received.get();\n }", "long getReceivedEventsCount();", "int getMsgCount();", "int getMsgCount();", "private int getMaxReconsumeTimes() {\n if (this.defaultMQPushConsumer.getMaxReconsumeTimes() == -1) {\n return Integer.MAX_VALUE;\n } else {\n return this.defaultMQPushConsumer.getMaxReconsumeTimes();\n }\n }", "public static int getMaxSessionCount() {\n\t\treturn (maxSessionCount);\n\t}", "public synchronized int threadUnreadReplyCount(String threadID) {\n \tfinal Query q = mDB.query();\n q.constrain(BoardReplyLink.class);\n q.descend(\"mBoard\").constrain(this).identity();\n q.descend(\"mThreadID\").constrain(threadID);\n q.descend(\"mWasRead\").constrain(false);\n \n return q.execute().size();\n }", "public int getNewMessageCount() {\n return messages.size() + droppedMessages.size();\n }", "@Override\n\tpublic List<Message> findMessages(long max, int count) {\n\t\treturn null;\n\t}", "public void getPostWithMostComments(){\n Map<Integer, Integer> postCommentCount = new HashMap<>();\n Map<Integer, Post> posts = DataStore.getInstance().getPosts();\n \n for(Post p: posts.values()){\n for(Comment c : p.getComments()){\n int commentCount = 0;\n if(postCommentCount.containsKey(p.getPostId())){\n commentCount = postCommentCount.get(p.getPostId());\n \n }\n commentCount += 1;\n postCommentCount.put(p.getPostId(), commentCount);\n \n }\n }\n int max = 0;\n int maxId = 0;\n for (int id : postCommentCount.keySet()) {\n if (postCommentCount.get(id) > max) {\n max = postCommentCount.get(id);\n maxId = id;\n }\n }\n System.out.println(\"\\nPost with most Comments \");\n System.out.println(posts.get(maxId));\n \n }", "boolean hasMaxCount();", "public int getMessageIdCount() {\n return messageId_.size();\n }", "public final int getLatestPostNumber() {\n\t\treturn this.latestPostNumber;\n\t}", "public int getTotalMessageCount() {\n Query query = new Query(\"Message\");\n PreparedQuery results = datastore.prepare(query);\n return results.countEntities(FetchOptions.Builder.withLimit(1000));\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public Listener(int max) {\r\n count = 0;\r\n maxCount = max;\r\n tweets = new LinkedList<Status>();\r\n }", "public int getMaxWeekNumber(ObservableList<Task> taskList) {\n int weekNumber = -1;\n for (Task task: taskList) {\n if (task.getWeekNumber().getWeekValueInt() > weekNumber) {\n weekNumber = task.getWeekNumber().getWeekValueInt();\n }\n }\n assert weekNumber != -1;\n return weekNumber;\n }", "private int getArtisteDownloadedMostByAllUsers(){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query query = session.createQuery(\"SELECT mvd, mvd.musicVideo.artiste.id, count(*) FROM MusicVideoDownload mvd JOIN FETCH mvd.musicVideo GROUP BY mvd.musicVideo.artiste.id ORDER BY count(*) DESC\") ;\n query.setMaxResults(1) ;\n List resultSet = query.list() ;\n session.close() ;\n //if there is no result set, it means there are no downloads so return -1\n if(resultSet.isEmpty())\n return -1 ;\n //else return the artiste id field of the first tuple since the result set has been sorted in desc order\n Object[] tupleFields = (Object[])resultSet.get(0) ;\n return (int)tupleFields[1] ;\n }", "public int getChatCount()\n {\n return chatCount;\n }", "private void getTweetsMostCommonHashTag() {\r\n final List<Entry<String, Integer>> list = \r\n getCommonList(countHashtags, countHashtags.size());\r\n list.stream()\r\n .filter(entry -> !searched.contains(entry.getKey().toLowerCase()))\r\n .limit(1)\r\n .forEach(entry -> getTweets(entry.getKey(), geocode, getAuth()));\r\n }", "public int getMessagesCount() {\n if (messagesBuilder_ == null) {\n return messages_.size();\n } else {\n return messagesBuilder_.getCount();\n }\n }", "int maxReturnEventsForQuery();", "public String getCampaignLikesCounts() {\n return pollLikesCounts;\n }", "public int getNumberOfNewerComments(ExoSocialActivity existingActivity, Long sinceTime);", "public int getMessagesCount() {\n if (messagesBuilder_ == null) {\n return messages_.size();\n } else {\n return messagesBuilder_.getCount();\n }\n }", "public Long getMaximumPlayerSessionCount() {\n return this.MaximumPlayerSessionCount;\n }", "public int getCountForum();", "Long getCountFollowupYouth(Long transmissionId);", "List<Integer> getIdUsersToSendOtherAlert( Timestamp alertMaxDate, Timestamp timeBetweenAlerts, int maxNumberAlerts );", "int getMessageCounterHistoryDayLimit();", "public int getSystemMessageCount(){\n\t\treturn iMessageCount;\n\t}", "private int getLatestWickets() {\n // return 2 for simplicity\n return 2;\n }", "public int getTotalNumOfMsg(){ return allmessage.size();}", "@Override\r\n\tpublic int selectMessageCount() {\n\t\treturn messageMapper.selectMessageCount();\r\n\t}", "public int getCount() {\n return this.chatMessageList.size();\n }", "public int getNumOfMaxActions() {\n return numOfMaxActions;\n }", "public int getMessageCount() {\n if (messageBuilder_ == null) {\n return message_.size();\n } else {\n return messageBuilder_.getCount();\n }\n }", "public int getMessageCount() {\n if (messageBuilder_ == null) {\n return message_.size();\n } else {\n return messageBuilder_.getCount();\n }\n }", "public int getMessageCount() {\n if (messageBuilder_ == null) {\n return message_.size();\n } else {\n return messageBuilder_.getCount();\n }\n }", "public int getMessageCount() {\n if (messageBuilder_ == null) {\n return message_.size();\n } else {\n return messageBuilder_.getCount();\n }\n }", "public int getMessageCount() {\n if (messageBuilder_ == null) {\n return message_.size();\n } else {\n return messageBuilder_.getCount();\n }\n }", "public int getNumberOfMultiUpdated(Identity owner, Map<String, Long> sinceTimes);", "public void getSentMessages(Long since, Long max, AsyncHttpResponseHandler handler) {\n\n String apiUrl = getApiUrl(\"direct_messages/sent.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"count\", 25);\n if (since != null) {\n params.put(\"since_id\", since);\n } else if (max != null) {\n params.put(\"max_id\", max);\n }\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }", "public double getLastPhotonCount() {\r\n return photoncount;\r\n }", "public int getNumberOfOlderOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity);", "@Override\n public void onTweetsFetched(List<Tweet> tweets) {\n finalTweetID = tweets.get(tweets.size() - 1).getId();\n twitterCallback.onTweetsFetched(tweets); //Return tweets\n }" ]
[ "0.6119961", "0.58345664", "0.5820957", "0.58095235", "0.58095235", "0.58095235", "0.57511467", "0.57278025", "0.57147485", "0.5658719", "0.5639868", "0.5593251", "0.5552075", "0.5552075", "0.5474179", "0.54721117", "0.5464403", "0.5464139", "0.54196775", "0.539252", "0.5375235", "0.53707314", "0.5354724", "0.5354598", "0.5313371", "0.5313371", "0.5313371", "0.5313371", "0.5313371", "0.53087986", "0.53035325", "0.52992654", "0.52808833", "0.5276054", "0.5275868", "0.5275868", "0.52707845", "0.52610296", "0.52605104", "0.5256331", "0.5255122", "0.52322143", "0.52234906", "0.5222843", "0.5216594", "0.52149564", "0.5209726", "0.518828", "0.5180143", "0.5168095", "0.5166845", "0.5165193", "0.5157798", "0.5157798", "0.5156181", "0.51472676", "0.5131764", "0.512144", "0.5118394", "0.51175", "0.5112952", "0.51038736", "0.50898707", "0.5084765", "0.5081781", "0.5081781", "0.5081781", "0.5081781", "0.5081781", "0.50800776", "0.5078281", "0.50770533", "0.5076632", "0.50593233", "0.5050952", "0.50497764", "0.50435096", "0.50407064", "0.5040083", "0.5025396", "0.5021068", "0.5019868", "0.50183535", "0.50173616", "0.50061905", "0.50013", "0.49993274", "0.49964938", "0.49916488", "0.49841517", "0.49809662", "0.49809662", "0.49809662", "0.49809662", "0.49809662", "0.49806502", "0.49746293", "0.4974318", "0.49704313", "0.4969365" ]
0.596983
1
Gets all links from the text
private @NotNull List<String> getAllLinks(final String text, final String urlStart) { List<String> links = new ArrayList<>(); int i = 0; while (text.indexOf(urlStart, i) != -1) { int linkStart = text.indexOf(urlStart, i); int linkEnd = text.indexOf(" ", linkStart); if (linkEnd != -1) { String link = text.substring(linkStart, linkEnd); links.add(link); } else { String link = text.substring(linkStart); links.add(link); } i = text.indexOf(urlStart, i) + urlStart.length(); } return links; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> linkTexts()\n\t{\n\t\t\n\t\tList<String> links=new ArrayList<String>();\n\t\tlinks.add(linkString);\n\t\tlinks.add(\"Facebook.com\");\n\t\tlinks.add(\"google.com;\");\n\t\tlinks.add(\"gmail.com\");\n\t\tlinks.add(\"shine.com\");\n\t\tlinks.add(\"nukari.com\");\n\t\t\n\t\t// Like the above we have to add number of link text are passed to achieve the DataDriven approach through BBD \n\t\t\t\n\t\treturn links;\n\t\t\n\t}", "public static ArrayList<URL> listLinks(URL baseURL, String htmlText) {\n // list to store links\n ArrayList<URL> links = new ArrayList<URL>();\n\n // compile string into regular expression\n Pattern p = Pattern.compile(REGEX);\n\n // match provided text against regular expression\n Matcher m = p.matcher(htmlText);\n\n // loop through every match found in text\n while ( m.find() ) \n {\n // add the appropriate group from regular expression to list\n try {\n\t\t\t\tlinks.add(new URL(baseURL, m.group(GROUP)));\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.err.println(\"Invalid URL\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n return links;\n }", "public List<String> getLinks();", "public ArrayList<String> findLinks(Text value) throws CharacterCodingException{\n\t\tint start = value.find(\"<text\");\n\t\tstart = value.find(\">\", start);\n\t\tint end = value.find(\"</text>\", start);\n\t\t//start+=1;\n\t\tString textBlock=new String();\n\t\ttry{\n\t\tif(end < value.getLength())\n\t\t\ttextBlock = Text.decode(value.getBytes(), start, end-start);\n\t\telse\n\t\t\ttextBlock = Text.decode(value.getBytes(), start, value.getLength()-start);\n\t\t} catch(Exception e){\n\t\t\treturn null;\n\t\t}\n\t\tArrayList<String> List = new ArrayList<String>();\n\t\t\n\t\tPattern wikiLinkRegEx = Pattern.compile(\"\\\\[\\\\[(?:[^|\\\\]]*\\\\|)?([^\\\\]]+)\\\\]\\\\]\");\n\t\tMatcher patternMatcher = wikiLinkRegEx.matcher(textBlock);\n\t\twhile(patternMatcher.find()) {\n\t\t\tint flag=0;\n\t\t\tint startIndex = patternMatcher.start();\n\t\t\tint endIndex = patternMatcher.end();\n\t\t\tString wikiLink = textBlock.substring(startIndex+2, endIndex-2);\n\t\t\twikiLink = wikiLink.replace(\" \", \"_\");\n\n\t\t\t//Checking for the occurrence of '|'\n\t\t\tif(wikiLink.contains(\"|\")){\n\t\t\t\tint pipeIndex = wikiLink.indexOf(\"|\");\n\t\t\t\twikiLink = wikiLink.substring(0, pipeIndex);\n\t\t\t}\n\t\t\t\n\t\t\t//Flagging all the invalid WikiLinks \n\t\t\t//if(wikiLink.contains(\":\") || wikiLink.contains(\"#\") || wikiLink.contains(\"/\") ){\n\t\t\t//\tflag=1;\n\t\t\t//}\n\t\t\t\n\t\t\t// Add the valid WikiLinks in the List\n\t\t\tif(flag==0){\n\t\t\t\twikiLink = wikiLink.replace(\"&amp;\", \"&\");\n\t\t\t\tList.add(wikiLink);\n\t\t\t}\n\t }\n\t\treturn List;\n\t}", "List<Link> getLinks();", "Set<Link> extractLinks(CrawlDoc doc, ParseState parseState)\n throws IOException;", "@Test\n\tpublic void testGetLinksMultipleLinks() {\n\t\tList<String> results = helper.getLinks(\n\t\t\t\t\"drop tables; <A HREF=\\\"test.com\\\"> <a href=\\\"nexttest.org\\\". junk junk\", null);\n\t\tassertEquals(2, results.size());\n\t\tassertEquals(\"test.com\", results.get(0));\n\t\tassertEquals(\"nexttest.org\", results.get(1));\n\t}", "public void getLinks() {\n\n var client = HttpClient.newBuilder()\n .followRedirects(HttpClient.Redirect.ALWAYS)\n .build();\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(URL_PREFIX))\n .build();\n client.sendAsync(request, HttpResponse.BodyHandlers.ofLines())\n .thenApply(HttpResponse::body)\n .thenApply(this::processLines)\n .thenApply(versions -> tasks(versions))\n .join();\n }", "@Test\n public void getAllLinksTest() {\n driver.get(\"http://practice.cybertekschool.com\");\n\n // get all the links in a page\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\n System.out.println(links.size());\n // get the text of each link and print\n\n for (WebElement link : links) {\n System.out.println(link.getText());\n }\n }", "private Set<String> extracLinks(String url, LinkFilter filter) {\n\n\t\tSet<String> links = new HashSet<String>();\n\t\ttry {\n\t\t\tParser parser = new Parser(url);\n\t\t\tparser.setEncoding(\"UTF-8\");\n\t\t\t// linkFilter filter <a> tag\n\t\t\tNodeClassFilter linkFilter = new NodeClassFilter(LinkTag.class);\n\t\t\t// get all filtered links\n\t\t\tNodeList list = parser.extractAllNodesThatMatch(linkFilter);\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tNode tag = list.elementAt(i);\n\t\t\t\tif (tag instanceof LinkTag)// <a> tag\n\t\t\t\t{\n\t\t\t\t\tLinkTag link = (LinkTag) tag;\n\t\t\t\t\tString linkUrl = link.getLink();// url\n\t\t\t\t\tif (filter.accept(linkUrl)) {\n\t\t\t\t\t\t// change bbsdoc to bbstdoc\n\t\t\t\t\t\tString stlink = linkUrl.replace(\"bbsdoc\", \"bbstdoc\");\n\t\t\t\t\t\tlinks.add(stlink);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ParserException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn links;\n\t}", "public Set<String> getLinks() throws SearchResultException;", "public List<TparselinksEntity> getAllLinks();", "public static List<String> getAllLinkLinks(final String page)\n {\n return getAllMatches(page, LINK_PATTERN, 1);\n }", "private void pullLinks(String htmlPage) {\n\n Document doc = Jsoup.parse(htmlPage);\n Elements links = doc.select(\"a[href]\");\n\n for (Element link : links) {\n\n String possibleUrl = link.attr(\"abs:href\");\n\n if (!possibleUrl.equals(\"\")) {\n// Log.v(\"pullLinks\", \" will try to make URL from\" + possibleUrl);\n //if the link attr isn't empty, make a URL\n URL theUrl = NetworkUtils.makeURL(possibleUrl);\n\n if (RegexUtils.urlDomainNameMatch(firstLinkAsString, theUrl.toString())) {\n //if the string version of url is within the same domain as original query\n if (!visitedLinks.contains(theUrl.toString())) {\n// Log.v(\"DLAsyncTask.pullLinks\", \" thinks that \" + theUrl.toString() + \" wasn't visited, add into collected...\");\n collectedLinks.add(theUrl.toString());\n }\n }\n }\n\n }\n }", "@NotNull\n private static String addHyperlinksToText(@NotNull String text, @NotNull NotificationHyperlink... hyperlinks) {\n if (hyperlinks.length == 0) {\n return text;\n }\n StringBuilder b = new StringBuilder();\n b.append(text);\n\n for (NotificationHyperlink hyperlink : hyperlinks) {\n b.append(\"<br>\\n\").append(hyperlink.toHtml());\n }\n\n return b.toString();\n }", "public Set<String> getLinks() {\n return links;\n }", "public void printAllSearchResultLinks(){\n\n System.out.println(\"resultLinks.size() = \" + resultLinks.size() );\n\n for (WebElement eachLinkElm : resultLinks) {\n // remove empty text with if statement\n System.out.println(\"eachLinkElm.getText() = \" + eachLinkElm.getText() );\n\n }\n\n }", "public static List<String> getLinks(String url, NodeFilter filter) throws ParserException\n\t{\n\t\tParser parser = getParser(url);\n\t\tNodeList list = new NodeList();\n\t\tfor (NodeIterator e = parser.elements(); e.hasMoreNodes();)\n\t\t{\n\t\t\tlist.add(getNodes(e.nextNode(), filter));\n\t\t}\n\t\tList<String> strings = new ArrayList<String>();\n\t\tfor (NodeIterator i = list.elements(); i.hasMoreNodes();)\n\t\t{\n\t\t\tNode n = i.nextNode();\n\t\t\tif (n instanceof LinkTag)\n\t\t\t{ // text\n\t\t\t\tString link = ((LinkTag) n).extractLink();\n\t\t\t\tif (!strings.contains(link))\n\t\t\t\t{\n\t\t\t\t\tstrings.add(((LinkTag) n).extractLink());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn strings;\n\t}", "@Override\n\tpublic ArrayList<String> getLinks() {\n\t\treturn this.description.getLinks();\n\t}", "public static List<String> extract(Document document) {\n Elements links = document.select(\"a[href]\");\n Elements media = document.select(\"[src]\");\n Elements imports = document.select(\"link[href]\");\n\n List<String> allLinks = new ArrayList<>();\n populateLinks(allLinks, media, \"abs:src\");\n populateLinks(allLinks, imports, \"abs:href\");\n populateLinks(allLinks, links, \"abs:href\");\n return allLinks;\n }", "public String getTextUrl(String text) {\n return StrUtils.createUrlFromString(text);\n }", "public static URL[] HTMLLinks(String url) throws Exception\n\t{\n\t\t// Get the links\n\n\t\tURLConnection conn = (new java.net.URL(url)).openConnection();\n\t\tconn.setRequestProperty(\"User-Agent\",\"Mozilla/5.0 ( compatible ) \");\n\t\tconn.setRequestProperty(\"Accept\",\"*/*\");\n\n\t\tLinkBean sb = new LinkBean();\n\t\tsb.setURL(url);\n\t\tsb.setConnection(conn);\n\t\tURL[] outlinks = sb.getLinks();\n\n\t\t// make links fully qualified\n\t\tURI baseURI = null;\n\t\ttry\n\t\t{\n\t\t\tbaseURI = new URI(url);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t\treturn new URL[0];\n\t\t}\n\n\t\t// ----\n\t\tList<URL> fqurls = new ArrayList<URL>();\n\t\tfor (int i = 0; i < outlinks.length; i++)\n\t\t{\n\t\t\tURL fqurl = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfqurl = baseURI.resolve(outlinks[i].toURI()).toURL();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tlogger.error(e.getMessage(), e);\n\t\t\t}\n\t\t\tif (fqurl != null)\n\t\t\t{\n\t\t\t\tfqurls.add(fqurl);\n\t\t\t}\n\t\t}\n\t\treturn fqurls.toArray(new URL[fqurls.size()]);\n\t}", "public List getLinks() {\r\n List links = getElements(\"a\");\r\n ArrayList result = new ArrayList();\r\n for (int i = 0; i < links.size(); i++) {\r\n try {\r\n StandAloneElement keep = ((StandAloneElement)links.get(i));\r\n result.add(parseUrl(keep.getAttribute(\"href\")));\r\n } catch (Exception e) {\r\n }\r\n }\r\n links = getElements(\"FRAME\");\r\n for (int i = 0; i < links.size(); i++) {\r\n try {\r\n StandAloneElement keep = ((StandAloneElement)links.get(i));\r\n result.add(parseUrl(keep.getAttribute(\"src\")));\r\n } catch (Exception e) {\r\n }\r\n }\r\n\r\n return result;\r\n }", "public abstract String linkText();", "public WebElement searchResultsLinks(String linkContaingText) {\r\n\t\treturn driver.findElement(By.xpath(\"//h2[contains(text(),'\"+linkContaingText+\"')]\"));\r\n\t}", "public Collection<Map<String, String>> getLinks();", "private void getLinks(Page page, Element content, boolean withConnection) throws JSONException, SQLException {\n\t\tString pageTitle = page.getTitle();\n\t\tString pageId = String.valueOf(page.getPageId());\n\t\tElements links = content.select(\"a[href]\");\n\t\tPageApi pa = new PageApi();\n\t\tfor (Iterator<Element> iterator = links.iterator(); iterator.hasNext();) {\n\t\t\tElement element = iterator.next();\n\t\t\tString link = element.attr(\"href\");\n\t\t\t/**\n\t\t\t * It has to be an internal wikipedia link\n\t\t\t */\n\t\t\tif (link.startsWith(\"/wiki/\")) {\n\t\t\t\t/**\n\t\t\t\t * Ignore unrelevant links\n\t\t\t\t */\n\t\t\t\tif (link.startsWith(\"/wiki/Category:\") || link.startsWith(\"/wiki/Special:\")\n\t\t\t\t\t\t|| link.startsWith(\"/wiki/Wikipedia:\") || link.startsWith(\"/wiki/Help:\")\n\t\t\t\t\t\t|| link.startsWith(\"/wiki/Template:\") || link.startsWith(\"/wiki/Portal:\")\n\t\t\t\t\t\t|| link.startsWith(\"/wiki/Talk:\") || link.startsWith(\"/wiki/\" + pageTitle + \":\")\n\t\t\t\t\t\t|| link.startsWith(\"/wiki/File:\") || link.startsWith(\"/wiki/Template_talk:\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tlink = link.replace(\"/wiki/\", \"\");\n\t\t\t\tPage character = pa.getPageInfoForTitle(link);\n\t\t\t\tif (withConnection) {\n\t\t\t\t\tif (tempList.contains(character.getPageId())) {\n\t\t\t\t\t\tpersistConnection(pageId, character);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tpersistCharacter(pageId, character);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "List<ProductLink> links();", "public List<String> getLinks() {\r\n\t\treturn this.links;\r\n\t}", "public static Set<String> parser(String html){\r\n\r\n\t\tSet<String> urls = new HashSet<String>();\r\n\t\tString regex = \"<a.*?/a>\";\r\n\t\tPattern pt = Pattern.compile(regex);\r\n\t\tMatcher matcher = pt.matcher(html);\r\n\t\twhile(matcher.find()){\r\n\t\t\t//获取网址\r\n//\t\t\tSystem.out.println(\"Group:\"+matcher.group());\r\n\t\t\tMatcher myurl = Pattern.compile(\"href=\\\".*?\\\">\").matcher(matcher.group());\r\n\t\t\tif(myurl.find()){\r\n\t\t\t\tdo{\r\n\t\t\t\t\tString temp = myurl.group();\r\n\t\t\t\t\tif(!temp.startsWith(\"javascript\") && !temp.startsWith(\"/\") && ! temp.startsWith(\"#\")){\r\n\t\t\t\t\t\tString url = myurl.group().replaceAll(\"href=\\\"|\\\">\",\"\");\r\n\t\t\t\t\t\tif(url.contains(\"http\")){\r\n\t\t\t\t\t\t\tif(url.contains(\"\\\"\")){\r\n\t\t\t\t\t\t\t\turl = url.substring(0, url.indexOf(\"\\\"\"));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(!url.contains(\"$\") && !url.contains(\" \")){\r\n\t\t\t\t\t\t\t\turls.add(url);\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}while(myurl.find());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn urls;\r\n\t}", "public ArrayList<Link> getLinks() {\n\t\treturn getPageObjects(Link.class);\n\t}", "@Test\n\tpublic void testGetLinksUpperCaseLink() {\n\t\tList<String> results = helper.getLinks(\"drop tables; <A HREF=\\\"test.com\\\"> junk junk\", null);\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"test.com\", results.get(0));\n\t}", "@Test\n public void hrefPatternTest() {\n Pattern aTeg = Pattern.compile(\"(?i)<a([^>]+)>(.+?)</a>\");\n Pattern href = Pattern.compile(\"\\\\s*(?i)href\\\\s*=\\\\s*(\\\\\\\"([^\\\"]+\\\\\\\")|'[^']+'|([^'\\\">\\\\s]+))\");\n String[] validLinkTegs = {\"<li><a href=\\\"/toolbar-creator\\\">Create a Custom Toolbar</a></li>\",\n \"<a href=\\\"http://stlpublicradio.org/programs/slota/archivedetail.php?date='2012-02-29'\\\" title=\\\"\\\" class=\\\"menu_icon menu-17197 \\\" >Грузовые перевозки</a></li>\",\n \"<li><a href='http://www.tipsntracks.com/date/2012/03' title='March 2012'>March 2012</a></li>\"};\n String[] invalidLinkTags = {\"<a href=\\\"\\\"style=\\\"\\\"><img width=\\\"148\\\" height=\\\"32\\\" src=\\\"/images/buttons/btn-www-survey.gif\\\" /></a>\"};\n String[] validLinks = new String[validLinkTegs.length];\n String[] invalidLinks = new String[invalidLinkTags.length];\n for (int i = 0; i < validLinkTegs.length; i++) {\n Matcher matcher = aTeg.matcher(validLinkTegs[i]);\n Assert.assertTrue(matcher.find());\n validLinks[i] = matcher.group(1);\n }\n for (int i = 0; i < invalidLinkTags.length; i++) {\n Matcher matcher = aTeg.matcher(invalidLinkTags[i]);\n Assert.assertTrue(matcher.find());\n invalidLinks[i] = matcher.group(1);\n }\n for (int i = 0; i < validLinkTegs.length; i++) {\n Matcher matcher = href.matcher(validLinks[i]);\n Assert.assertTrue(matcher.find());\n String s = matcher.group(1);\n System.out.println(s.substring(1, s.length() - 1));\n }\n for (int i = 0; i < invalidLinkTags.length; i++) {\n Matcher matcher = href.matcher(invalidLinks[i]);\n Assert.assertFalse(matcher.find());\n }\n }", "public static List<ExtractedEntity> extractEntities(String text){\n\t\tList<ExtractedEntity> extractedConcepts = new ArrayList<ExtractedEntity>();\n\t\tZemanta zem = new Zemanta(ZEMAMTA_API_KEY);\t\n\t\tZemantaResult zemResult = zem.suggest(text);\n\t\tString cid = zemResult.rid;\n\t\tfor(Link link : zemResult.markup.links){\n\t\t\tString term = link.anchor;\n\t\t\tfor(Target target : link.targets){\n\t\t\t\tif(target.url != null && target.url.startsWith(\"http://en.wikipedia.org/wiki/\")){\n\t\t\t\t\tExtractedEntity entity = new AlchemyAnnotator().new ExtractedEntity();\n\t\t\t\t\tentity.name = target.title;\n\t\t\t\t\tentity.type = target.type.name();\n\t\t\t\t\tentity.uri = target.url.replace(\"http://en.wikipedia.org/wiki/\", \"http://dbpedia.org/resource/\");\n\t\t\t\t\tentity.score = new Float(link.confidence).doubleValue();\n\t\t\t\t\tentity.text = link.anchor;\n\t\t\t\t\textractedConcepts.add(entity);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn extractedConcepts;\n\t}", "public Set<L> getLinks() {\n return links;\n }", "private ArrayList<Anchor> getDescendantAnchors(HtmlPage appPage, String xPath) {\n\t\tArrayList<Anchor> anchors = new ArrayList<>();\n\t\tfor (DomNode element : ((HtmlElement) appPage.getByXPath(xPath).get(0)).getDescendants()) {\n\n\t\t\tNamedNodeMap namedNodes = element.getAttributes();\n\t\t\tfor (int i = 0; i < namedNodes.getLength(); i++) {\n\n\t\t\t\tif (namedNodes.item(i).getNodeName().equals(\"href\")) {\n\n\t\t\t\t\tAnchor a = new Anchor();\n\t\t\t\t\ta.href = namedNodes.item(i).getNodeValue();\n\t\t\t\t\ta.text = element.getTextContent();\n\t\t\t\t\tanchors.add(a);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn anchors;\n\t}", "public static List<String> getAllAnchorLinks(final String page)\n {\n return getAllMatches(page, ANCHOR_PATTERN, 1);\n }", "public List<Link> getLinks()\n {\n return links;\n }", "public List<Link> links() {\n\t\t\treturn new NonNullList<>(_links);\n\t\t}", "public static String transformPlainText(String text) {\r\n\t\t// url auto-linking\r\n\t\ttext = text.replaceAll(\"((http|https)://[0-9A-Za-z-_=\\\\?\\\\.\\\\$#&/]*)\", \"<a href=\\\"$1\\\">$1</a>\");\r\n\t\tString html = \"<pre>\" + text + \"</pre>\";\r\n\t\treturn html;\r\n\t}", "List<? extends Link> getLinks();", "public static String HTMLLinkString(String url) throws Exception\n\t{\n\t\tURL[] links = HTMLLinks(url);\n\t\tString urls = \"\";\n\t\tfor (URL link : links)\n\t\t{\n\t\t\turls = urls + link.toString() + \" \";\n\t\t}\n\t\treturn urls.trim();\n\t}", "public static List<String> getURLs(List<WebElement> links) {\n\t\t List<String> ListHref = new ArrayList<String>();\n\t\t \n\t\t //loops through all links\n\t\t for(WebElement Webhref:links) {\n\t\t\t \n\t\t\t //if element isn't null\n\t\t\t if (Webhref.getAttribute(\"href\") != null) {\n\t\t\t\t String StringHref = (Webhref.getAttribute(\"href\")).toString();\n\n\t\t\t\t //if page isn't part of domain, ignore\n\t\t\t\t if (StringHref.startsWith(variables.domain)) {\n\t\t\t\t\t //System.out.println(StringHref);\n\t\t\t\t\t \n\t\t\t\t\t //if page doesn't have an octothorpe\n\t\t\t\t\t if (!StringHref.contains(\"#\")) {\n\t\t\t\t\t\t \n\t\t\t\t\t\t//if page doesn't ends with one of the file extensions to not use\n\t\t\t\t\t\t String extension = getExtension(StringHref);//gets TLD from URL\n\t\t\t\t\t\t if(!variables.list.stream().anyMatch(extension::contains)) {\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t//if value isn't already part of this array or the already crawled array\n\t\t\t\t\t\t\t if(!ListHref.contains(StringHref) && !variables.crawled.contains(StringHref)) {\n\t\t\t\t\t\t\t\t ListHref.add(StringHref);\n\t\t\t\t\t\t\t\t //System.out.println(StringHref);\n\t\t\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\treturn ListHref;\n\t}", "java.util.List<org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto> \n getLinksList();", "protected java.util.Vector _getLinks() {\n\tjava.util.Vector links = new java.util.Vector();\n\tlinks.addElement(getPeopleLink());\n\tlinks.addElement(getChangeLogDetailsesLink());\n\treturn links;\n}", "public final List<String> getText() {\n ArrayList<String> al = new ArrayList<String>();\n for (Iterator<Element> i = texts.iterator(); i.hasNext();) {\n al.add(i.next().getTextContent());\n }\n return al;\n }", "org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto getLinks(int index);", "@Test\n\tpublic void testGetLinksRelativeLink() {\n\t\tList<String> results = helper\n\t\t\t\t.getLinks(\"drop tables; <A HREF=\\\"/test\\\"> junk junk\", \"http://www.bobbylough.com\");\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"http://www.bobbylough.com/test\", results.get(0));\n\t}", "private String cleanupText(String text){\n return text.replaceAll(\"http[s]*[:](//)[^ ]+\", \"URL\");\n }", "public static Set<String> parsePage(Document doc){\n\t\ttry{\n\t\t\tElements links = doc.select(\"a[href]\");\n\t\t\tSet<String> pageLinks = new HashSet<String>();\n\t\t\tfor(Element link : links){\n\t\t\t\tpageLinks.add(link.attr(\"abs:href\"));\n\t\t\t}\n\t\t\treturn pageLinks;\n\t\t}catch(Exception err){\n\t\t\terr.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@NonNull List<SaldoLink> getLinks() {\n return links;\n }", "public Set<Link> links() {\n return links;\n }", "public List<Link> links() {\n return this.links;\n }", "public static String HTMLLinkString(String url, String filter) throws Exception\n\t{\n\t\tURL[] links = HTMLLinks(url);\n\t\tString urls = \"\";\n\t\tfor (URL link : links)\n\t\t{\n\t\t\tString slink = link.toString();\n\t\t\tif (slink.contains(filter))\n\t\t\t{\n\t\t\t\turls = urls + slink + \" \";\n\t\t\t}\n\t\t}\n\t\treturn urls.trim();\n\t}", "public Set<String> getFullTextUrls(final Record record)\n {\n \treturn MarcUtils.getFullTextUrls(record);\n }", "public StringBuilder getLinks(Elements imgs) {\n\t\tStringBuilder links = new StringBuilder();\n\t\tString prefix = \"\";\n\t\tfor (Element item : imgs) {\n\t\t\tlinks.append(prefix);\n\t\t\tprefix = \"|\";\n\t\t\tlinks.append(item.attr(\"href\"));\n }\n\t\treturn links;\n\t}", "@Test\n\tpublic void testGetLinksOtherProperties() {\n\t\tList<String> results = helper.getLinks(\"drop tables; <A target=\\\"self\\\" href=\\\"test.com\\\"> junk junk\",\n\t\t\t\t\"http://www.bobbylough.com\");\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"test.com\", results.get(0));\n\t}", "public static Set<String> findWikiLinks(String link) {\n\t\t// implementation of memoization\n\t\tif(memo.containsKey(link)) {\n\t\t\treturn memo.get(link);\n\t\t}\n\t\t// calls the function which returns the HTML on \n\t\t// the current page\n\t\tString html = fetchHTML(link);\n\t\t// scrapes the HTML stored in html and\n\t\t// calls scrapeHTML on it which returns\n\t\t// the links on the current page\n\t\tSet<String> links = scrapeHTML(html);\n\t\tmemo.put(link, links);\n\t\treturn links;\n\t}", "public List<Link> getLinks()\t{return Collections.unmodifiableList(allLinks);}", "private List<String> getOfferPagesLinks(Document document) {\n return document.select(\"div[class=product-image loaded] > a[href]\").eachAttr(\"abs:href\");\n }", "protected java.util.Vector _getLinks() {\n\t\tjava.util.Vector links = new java.util.Vector();\n\t\tlinks.add(getLeaseTaskStartsLink());\n\t\tlinks.add(getLeaseRulesLink());\n\t\treturn links;\n\t}", "@java.lang.Override\n public org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto getLinks(int index) {\n return instance.getLinks(index);\n }", "public String getUrl(){\n return urlsText;\n }", "public List<Link> getLinks() {\n\t\treturn _links;\n\t}", "String getLink();", "public DocumentListFeed fullTextQuery(String text) throws MalformedURLException, IOException, ServiceException;", "private Stream<String> processLines(Stream<String> lines) {\n System.out.println(\"processlines\" + Thread.currentThread().getName());\n Pattern pattern = Pattern.compile(\"<a href=\\\"([^\\\\/]*\\\\/)\\\".*\");\n\n return lines\n .map(s -> pattern.matcher(s))\n .filter(m -> m.matches())\n .map(m -> m.group(1))\n .filter(s -> !\"../\".equals(s));\n }", "public List<String> getAnchorText(){\n\t\treturn AnchorText;\n\t\t\n\t}", "public List<Link> getLinks() {\n\t return Collections.unmodifiableList(links);\n\t}", "TextWithReferences getTextWithReferences();", "public ArrayList<String> getWebLink(){\r\n\t\treturn webLinks;\t\t\r\n\t}", "public List<Topic> getLinks() {\n\t\tList<Topic> topics = new ArrayList<Topic>();\n\t\tTopic tp = null;\n\t\tString sqlSearch = \"select lid,label,url from \" + Constant.schema\n\t\t\t\t+ \".link\";\n\n\t\t// Define Connection, statement and resultSet\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet result = null;\n\t\ttry {\n\t\t\tconn = DBConUtil.getConn();\n\t\t\tpstmt = conn.prepareStatement(sqlSearch);\n\t\t\tconn.setAutoCommit(true);\n\t\t\tresult = DBConUtil.query(conn, pstmt);\n\n\t\t\tif (result != null) {\n\t\t\t\twhile (result.next()) {\n\t\t\t\t\ttp = new Topic();\n\t\t\t\t\ttp.setTopicID(result.getInt(\"lid\"));\n\t\t\t\t\ttp.setLabel(result.getString(\"label\"));\n\t\t\t\t\ttp.setUrl(result.getString(\"url\"));\n\t\t\t\t\ttopics.add(tp);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tDBConUtil.close(conn, pstmt, result);\n\t\t}\n\t\treturn topics;\n\t}", "public static String HTMLLinkString(String root, int level) throws Exception\n\t{\n\t\tString urls = \"\";\n\t\tif (0 == level)\n\t\t{\n\t\t\treturn urls;\n\t\t}\n\t\turls = HTMLLinkString(root);\n\t\tfor (String u : urls.split(\"\\\\s+\"))\n\t\t{\n\t\t\turls = urls + \" \" + HTMLLinkString(u, level - 1);\n\t\t}\n\t\treturn urls.trim();\n\t}", "public static String getArticleHref(Element content) {\n Elements texts = content.select(\".text a\");\n return BBC_URL + texts.attr(\"href\");\n }", "public SafeHtml linkify() {\n final String part = \"(?:\" +\n \"[a-zA-Z0-9$_+!*'%;:@=?#/~-]\" +\n \"|&(?!lt;|gt;)\" +\n \"|[.,](?!(?:\\\\s|$))\" +\n \")\";\n return replaceAll(\n \"(https?://\" +\n part + \"{2,}\" +\n \"(?:[(]\" + part + \"*\" + \"[)])*\" +\n part + \"*\" +\n \")\",\n \"<a href=\\\"$1\\\" target=\\\"_blank\\\">$1</a>\");\n }", "@java.lang.Override\n public org.chromium.components.paint_preview.common.proto.PaintPreview.LinkDataProto getLinks(int index) {\n return links_.get(index);\n }", "public List<URI> getLinks() {\n return links; // this is already unmodifiable\n }", "public static List<String> getAllScriptLinks(final String page)\n {\n return getAllMatches(page, SCRIPT_PATTERN, 1);\n }", "public static LinkedHashSet<String> searchLinks(String searchUrl) {\n LinkedHashSet<String> uniqueLinks = new LinkedHashSet();\n Document doc;\n try {\n doc = Jsoup.connect(searchUrl).get();\n Elements links = doc.select(\"a\");\n for(Element url : links){\n if (validUrl(url.attr(\"href\"))) {\n uniqueLinks.add(url.attr(\"href\"));\n }\n }\n } catch (IOException e) {\n }\n return uniqueLinks;\n }", "public Set<Anchor> parse(Reader reader, String url) {\n\n Set<Anchor> elements = new HashSet<>();\n String urtContent = null;\n try {\n urtContent = readFully(reader);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (urtContent == null){\n return elements;\n }\n\n mTag = pTag.matcher(urtContent);\n\n while (mTag.find()) {\n\n String href = mTag.group(1); // get the values of href\n String linkElem = mTag.group(2); // get the text of link Html Element\n\n mLink = pLink.matcher(href);\n\n while (mLink.find()) {\n\n String link = mLink.group(1);\n Anchor anchor = new Anchor();\n anchor.setUrl(link);\n anchor.setText(linkElem);\n\n elements.add(anchor);\n\n }\n }\n return elements;\n }", "public static List<WebElement> explictWaitForElementListByLinkText(final String object) {\n Wait<WebDriver> wait = new FluentWait<WebDriver>(driver).withTimeout(explicitwaitTime, TimeUnit.SECONDS).pollingEvery(pollingTime, TimeUnit.MILLISECONDS).ignoring(NoSuchElementException.class);\n uiBlockerTest(\"\", \"\");\n \ttry{\n \t\tList<WebElement> elements = wait.until(new Function<WebDriver, List<WebElement>>() {\n\n \t\t\t@Override\n \t\t\tpublic List<WebElement> apply(WebDriver driver) {\n\n \t\t\t\tList<WebElement> listElements=driver.findElements(By.linkText(OR.getProperty(object)));\n \t\t\t\treturn listElements.size()>0?listElements:null; // Modified By Karan \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t});\n \n \t\t\t\treturn elements;\n \t}\n catch(TimeoutException e)\n { \n \treturn Collections.emptyList();\n }\n \n }", "static CharSequence linkifyUrls(FormattedTweetText tweetText,\n final LinkClickListener listener, boolean stripLastPhotoEntity, final int linkColor) {\n if (tweetText == null) return null;\n\n if (TextUtils.isEmpty(tweetText.text)) {\n return tweetText.text;\n }\n\n final SpannableStringBuilder spannable\n = new SpannableStringBuilder(tweetText.text);\n\n final List<FormattedUrlEntity> urls = tweetText.urlEntities;\n\n final List<FormattedMediaEntity> media\n = tweetText.mediaEntities;\n final FormattedMediaEntity lastPhoto;\n if (stripLastPhotoEntity) {\n lastPhoto = getLastPhotoEntity(tweetText);\n } else {\n lastPhoto = null;\n }\n\n /*\n * We combine and sort the entities here so that we can correctly calculate the offsets\n * into the text.\n */\n final List<FormattedUrlEntity> combined = mergeAndSortEntities(urls, media);\n\n addUrlEntities(spannable, combined, lastPhoto, listener, linkColor);\n return spannable;\n }", "private Text href() {\n\t\tText href = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn href;\r\n\t}", "public List<ResourceLink> links() {\n return links;\n }", "String getHref();", "public String getLink();", "List<ButtonLink> getBtnActionLinks();", "public List<NaturalLanguage> getTexts() {\n\t\treturn texts;\n\t}", "@SuppressWarnings(\"static-method\")\n\tprotected ReferenceContext extractReferencableElements(String text) {\n\t\tfinal ReferenceContext context = new ReferenceContext();\n\n\t\t// Visit the links and record the transformations\n\t\tfinal MutableDataSet options = new MutableDataSet();\n\t\tfinal Parser parser = Parser.builder(options).build();\n\t\tfinal Node document = parser.parse(text);\n\t\tfinal Pattern pattern = Pattern.compile(SECTION_PATTERN_AUTONUMBERING);\n\t\tNodeVisitor visitor = new NodeVisitor(\n\t\t\t\tnew VisitHandler<>(Paragraph.class, it -> {\n\t\t\t\t\tfinal CharSequence paragraphText = it.getContentChars();\n\t\t\t\t\tfinal Matcher matcher = pattern.matcher(paragraphText);\n\t\t\t\t\tif (matcher.find()) {\n\t\t\t\t\t\tfinal String number = matcher.group(2);\n\t\t\t\t\t\tfinal String title = matcher.group(3);\n\t\t\t\t\t\tfinal String key1 = computeHeaderId(number, title);\n\t\t\t\t\t\tfinal String key2 = computeHeaderId(null, title);\n\t\t\t\t\t\tcontext.registerSection(key1, key2, title);\n\t\t\t\t\t}\n\t\t\t\t}));\n\t\tvisitor.visitChildren(document);\n\n\t\tfinal Pattern pattern1 = Pattern.compile(SECTION_PATTERN_TITLE_EXTRACTOR_WITHOUT_MD_PREFIX);\n\t\tvisitor = new NodeVisitor(\n\t\t\t\tnew VisitHandler<>(Heading.class, it -> {\n\t\t\t\t\tString key = it.getAnchorRefId();\n\t\t\t\t\tString title = it.getText().toString();\n\t\t\t\t\t// Sometimes, the title already contains the section number.\n\t\t\t\t\t// It should be removed.\n\t\t\t\t\tfinal Matcher matcher = pattern1.matcher(title);\n\t\t\t\t\tif (matcher.find()) {\n\t\t\t\t\t\tfinal String number = matcher.group(1);\n\t\t\t\t\t\ttitle = matcher.group(2);\n\t\t\t\t\t\tif (Strings.isEmpty(key)) {\n\t\t\t\t\t\t\tkey = computeHeaderId(number, title);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfinal String key2 = computeHeaderId(null, title);\n\t\t\t\t\tif (Strings.isEmpty(key)) {\n\t\t\t\t\t\tkey = key2;\n\t\t\t\t\t}\n\t\t\t\t\tcontext.registerSection(key, key2, title);\n\t\t\t\t}));\n\t\tvisitor.visitChildren(document);\n\n\t\treturn context;\n\t}", "ObservableList<Link> getFilteredLinkList();", "public TextList getTexts()\n {\n return texts;\n }", "public AstNode[] links() {\n\t\treturn new AstNode[]{loopLink};\n\t}", "public ArrayList<Link> getLinksFromConf(Configuration configuration) {\n\n ArrayList<Link> links = new ArrayList<>();\n ArrayList<Screen> screens = this.getScreensFromConf(configuration);\n\n for(Screen s : screens)\n links.addAll(s.getLinks());\n\n return links;\n\n }", "public List<LinkDetails> scrapeRSSPageForLinks(String rssUrl) {\n\t\tString description = \"\";\n\t\tString title = \"\";\n\t\tString link = \"\";\n\t\tString pubdate = \"\";\n\t\tURL url;\n\t\tInputStream in;\n\n\t\tList<LinkDetails> rssProcessedData = new ArrayList<LinkDetails>();\n\n\t\ttry {\n\t\t\turl = new URL(rssUrl);\n\t\t} catch (MalformedURLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\ttry {\n\t\t\tin = url.openStream();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\t// create XML input factory\n\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\n\t\t// read the XML document\n\t\ttry {\n\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\n\t\t\tboolean isFeedHeader = true;\n\t\t\twhile (eventReader.hasNext()) {\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\tif (event.isStartElement()) {\n\t\t\t\t\tString localPart = event.asStartElement().getName().getLocalPart();\n\n\t\t\t\t\t// System.out.println(localPart);\n\n\t\t\t\t\tswitch (localPart) {\n\n\t\t\t\t\tcase \"item\":\n\t\t\t\t\t\t// if (isFeedHeader) {\n\t\t\t\t\t\t// isFeedHeader = false;\n\t\t\t\t\t\t// System.out.println(\" title: \"+title+ \" description: \"+ description + \" link:\n\t\t\t\t\t\t// \"+link+\" pubDate: \"+pubdate);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"title\":\n\t\t\t\t\t\ttitle = getCharacterData(event, eventReader);\n\t\t\t\t\t\t// System.out.println(\"title: \"+title);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"description\":\n\t\t\t\t\t\tdescription = getCharacterData(event, eventReader);\n\t\t\t\t\t\t// System.out.println(\"description: \"+description);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"link\":\n\t\t\t\t\t\tlink = getCharacterData(event, eventReader);\n\t\t\t\t\t\tSystem.out.println(\"link: \" + link);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"pubDate\":\n\t\t\t\t\t\tpubdate = getCharacterData(event, eventReader);\n\t\t\t\t\t\t// System.out.println(\"pubDate: \"+pubdate);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t} else if (event.isEndElement()) {\n\t\t\t\t\tif (event.asEndElement().getName().getLocalPart() == (\"item\")) {\n\n\t\t\t\t\t\tLinkDetails linkDetails = new LinkDetails(link, title, description, pubdate);\n\t\t\t\t\t\trssProcessedData.add(linkDetails);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (XMLStreamException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\treturn rssProcessedData;\n\t}", "private void textilize () {\n\n textIndex = 0;\n int textEnd = line.length() - 1;\n listChars = new StringBuffer();\n linkAlias = false;\n while (textIndex < line.length()\n && (Character.isWhitespace(textChar()))) {\n textIndex++;\n }\n while (textEnd >= 0\n && textEnd >= textIndex\n && Character.isWhitespace (line.charAt (textEnd))) {\n textEnd--;\n }\n boolean blankLine = (textIndex >= line.length());\n if (blankLine) {\n textilizeBlankLine();\n }\n else\n if ((textIndex > 0)\n || ((line.length() > 0 )\n && (line.charAt(0) == '<'))) {\n // First character is white space of the beginning of an html tag:\n // Doesn't look like textile... process it without modification.\n }\n else\n if (((textEnd - textIndex) == 3)\n && line.substring(textIndex,textEnd + 1).equals (\"----\")) {\n // && (line.substring(textIndex, (textEnd + 1)).equals (\"----\")) {\n textilizeHorizontalRule(textIndex, textEnd);\n } else {\n textilizeNonBlankLine();\n };\n }", "public static void main(String[] args) throws IOException, InterruptedException {\n\t\t\n\t\tWebDriver driver= new ChromeDriver();\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\rahul-shar\\\\chromedriver_win32 (17)\\\\chromedriver.exe\");\n\t\t\n\t\tdriver.get(\"https://demoqa.com/links\");\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\tList<WebElement> links= driver.findElements(By.tagName(\"a\"));\n\t\t\n\t\tfor(int i=0;i<links.size();i++) {\n\t\t\t\n\t\t\tString urlLinks=links.get(i).getAttribute(\"href\");\n\t\t\tSystem.out.println(urlLinks);\n\t\t\tString text=links.get(i).getText();\n\t\t\t//System.out.println(text);\n\t\t\t\n\t\t\t//verifyLinks(urlLinks);\n\t\t\t\n\t\t}\n\t\tdriver.close();\n\t\t\n\n\t}", "@Override\r\n public void visit(Page page) {\r\n String url = page.getWebURL().getURL();\r\n System.out.println(\"URL: \" + url);\r\n\r\n if (page.getParseData() instanceof HtmlParseData) {\r\n HtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\r\n String text = htmlParseData.getText();\r\n String html = htmlParseData.getHtml();\r\n List<WebURL> links = htmlParseData.getOutgoingUrls();\r\n\r\n System.out.println(\"Text length: \" + text.length());\r\n System.out.println(\"Html length: \" + html.length());\r\n System.out.println(\"Number of outgoing links: \" + links.size());\r\n\r\n try {\r\n Configuration config = new Configuration();\r\n System.setProperty(\"HADOOP_USER_NAME\", \"admin\");\r\n FileSystem fileSystem = FileSystem.get(new URI(\"hdfs://192.168.51.116:8022/\"), config);\r\n FSDataOutputStream outStream = fileSystem.append(new Path(\"/user/admin/crawler-results.txt\"));\r\n\r\n IOUtils.write(text.replace('\\n', ' '), outStream);\r\n outStream.flush();\r\n IOUtils.closeQuietly(outStream);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n throw new RuntimeException(ex);\r\n }\r\n }\r\n }", "public List<String> obtenerHiperenlaces() throws IOException {\r\n // Los hiperenlaces debemos guardarlos en un arrayList\r\n ArrayList<String> hipenlaces = new ArrayList<>();\r\n File doc = new File(\"Jsoup_Link.txt\");\r\n doc.delete();\r\n File newdoc = new File(\"Jsoup_Link.txt\");\r\n //nuevo documento donde se escribiran los enlaces\r\n FileWriter fw = new FileWriter(newdoc, false);\r\n Elements links;\r\n links = doc.select(\"a[href]\");\r\n //Con este bucle for conseguimos introducir los links \r\n //en el array y escribirlos en el doc.\r\n for (Element link : links) {\r\n\r\n hipenlaces.add(link.attr(\"href\"));\r\n fw.write(link.attr(\"href\") + nextline);\r\n }\r\n \r\n //Borra los elementos nulos del ArrayList\r\n hipenlaces.removeAll(Arrays.asList(null, \"\"));\r\n\r\n fw.close();\r\n \r\n //devuelve el arraylist\r\n return hipenlaces;\r\n }", "private static Set<String> extractHosts(String rawContent) { \r\n\t\tString hostRegex = \"https:\\\\/\\\\/[a-zA-Z]([\\\\w\\\\.\\\\-])*\\\\.gov.br\";\r\n\t\tMatcher matcher = Pattern.compile(hostRegex).matcher(rawContent);\r\n\t\t\r\n\t\tSet<String> results = new HashSet<String>();\r\n\t\twhile(matcher.find()) {\r\n\t\t\tresults.add(matcher.group().replace(\"http://\", \"\").replace(\"https://\", \"\"));\r\n\t\t}\r\n\t\treturn results;\r\n\t\t\r\n\t}", "private void montaListaDeItensDeLinks(org.jsoup.nodes.Document doc, JSONArray description) {\n Elements links = doc.select(\"div\").select(\"ul\").select(\"li\").select(\"a\");\n JSONArray listalinks = new JSONArray();\n for (Element link : links) {\n\n listalinks.put(link.attr(\"abs:href\"));\n }\n\n // Após a lista de links montada ela é incluída dentro de um nó links do json de\n // saída\n JSONObject ljson = new JSONObject();\n ljson.put(\"type\", \"links\");\n ljson.put(\"content\", listalinks);\n\n // O novo item (ljson) está pronto e é incluindo como um item da lista\n // description\n description.put(ljson);\n }" ]
[ "0.7705775", "0.673584", "0.6709741", "0.66415113", "0.6478486", "0.64169383", "0.6385173", "0.63262933", "0.629774", "0.62855995", "0.6276572", "0.62492174", "0.61728424", "0.6102264", "0.6065655", "0.60377234", "0.6032372", "0.6019793", "0.5991863", "0.5953456", "0.5949518", "0.58796823", "0.58563334", "0.5842767", "0.57767004", "0.5736055", "0.5730556", "0.5718941", "0.56854415", "0.5642036", "0.5634788", "0.56267107", "0.5615513", "0.5613746", "0.5607877", "0.56035054", "0.5601222", "0.5600224", "0.55901647", "0.5577494", "0.55734783", "0.5559448", "0.55413544", "0.55244684", "0.551595", "0.55071545", "0.5505543", "0.5504746", "0.5497172", "0.54853547", "0.5477714", "0.54461807", "0.54143804", "0.5391586", "0.5390297", "0.538745", "0.53829116", "0.5382173", "0.5368147", "0.5346272", "0.533165", "0.5316034", "0.5311724", "0.53112715", "0.529374", "0.5268228", "0.52677536", "0.52554095", "0.5250013", "0.52460265", "0.5243717", "0.5242467", "0.5237847", "0.5236565", "0.52294713", "0.5229134", "0.52145755", "0.5213398", "0.5194097", "0.5192495", "0.51869655", "0.51820177", "0.5178748", "0.5167267", "0.5163493", "0.5143226", "0.5135646", "0.51226854", "0.51149255", "0.51146066", "0.5107757", "0.5107007", "0.50991166", "0.5095469", "0.508575", "0.50771385", "0.5072661", "0.50679487", "0.5066003", "0.5063818" ]
0.8058048
0
Parses only links that can be found from Twitter feed
public @NotNull TwitterFeedLinkResponse getTwitterFeedLinks( final String userName, final int maxNumOfTweets, final long sinceMessageId) throws TwitterException, IOException { TwitterFeedResponse feed = getTwitterFeed(userName, maxNumOfTweets, sinceMessageId); TwitterFeedLinkResponse links = new TwitterFeedLinkResponse(); CloseableHttpClient httpclient = HttpClients.custom() .setUserAgent("CFTA-Twitter-Link-Expander") .addInterceptorFirst(new NewResponseContentEncoding()) .build(); HttpClientContext context = HttpClientContext.create(); RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(5000).setConnectTimeout(5000).build(); for (TwitterFeedResponse.Tweet t : feed.tweets) { List<String> urls = getAllLinks(t.text, "http://"); urls.addAll(getAllLinks(t.text, "https://")); for (String s : urls) { TwitterFeedLinkResponse.TweetLink l = links.newLink(); String url = s; // Try to figure the expaneded link url HttpGet httpget = new HttpGet(url); httpget.setConfig(requestConfig); try { try (CloseableHttpResponse response = httpclient.execute(httpget, context)) { HttpHost target = context.getTargetHost(); List<URI> redirectLocations = context.getRedirectLocations(); URI location = URIUtils.resolve(httpget.getURI(), target, redirectLocations); url = location.toASCIIString(); } } catch (Exception ex) { if (CFTASettings.getDebug()) { ex.printStackTrace(); } } l.linkUrl = url; l.favouriteCount = t.favouriteCount; l.retweetCount = t.retweetCount; l.creationTime = t.creationTime; links.links.add(l); } } httpclient.close(); return links; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String filterOutURLFromTweet(final Status status) {\n\t\tfinal String tweet = status.getText();\n\t\tfinal URLEntity[] urlEntities = status.getURLEntities();\n\t\tint startOfURL;\n\t\tint endOfURL;\n\t\tString truncatedTweet = \"\";\n\t\tif(urlEntities.length > 0)\n\t\t{\n\t\t\tfor(final URLEntity urlEntity: urlEntities){\n\t\t\t\tstartOfURL = urlEntity.getStart();\n\t\t\t\tendOfURL = urlEntity.getEnd();\n\t\t\t\ttruncatedTweet += tweet.substring(0, startOfURL) + tweet.substring(endOfURL);\n\t\t\t}\n\t\t\treturn truncatedTweet;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn tweet;\n\t\t}\n\n\t}", "private void processUrls(){\n // Strip quoted tweet URL\n if(quotedTweetId > 0){\n if(entities.urls.size() > 0 &&\n entities.urls.get(entities.urls.size() - 1)\n .expandedUrl.endsWith(\"/status/\" + String.valueOf(quotedTweetId))){\n // Match! Remove that bastard.\n entities.urls.remove(entities.urls.size() - 1);\n }\n }\n\n // Replace minified URLs\n for(Entities.UrlEntity entity : entities.urls){\n // Find the starting index for this URL\n entity.indexStart = text.indexOf(entity.minifiedUrl);\n // Replace text\n text = text.replace(entity.minifiedUrl, entity.displayUrl);\n // Find the last index for this URL\n entity.indexEnd = entity.indexStart + entity.displayUrl.length();\n }\n }", "private void pullLinks(String htmlPage) {\n\n Document doc = Jsoup.parse(htmlPage);\n Elements links = doc.select(\"a[href]\");\n\n for (Element link : links) {\n\n String possibleUrl = link.attr(\"abs:href\");\n\n if (!possibleUrl.equals(\"\")) {\n// Log.v(\"pullLinks\", \" will try to make URL from\" + possibleUrl);\n //if the link attr isn't empty, make a URL\n URL theUrl = NetworkUtils.makeURL(possibleUrl);\n\n if (RegexUtils.urlDomainNameMatch(firstLinkAsString, theUrl.toString())) {\n //if the string version of url is within the same domain as original query\n if (!visitedLinks.contains(theUrl.toString())) {\n// Log.v(\"DLAsyncTask.pullLinks\", \" thinks that \" + theUrl.toString() + \" wasn't visited, add into collected...\");\n collectedLinks.add(theUrl.toString());\n }\n }\n }\n\n }\n }", "private Set<String> extracLinks(String url, LinkFilter filter) {\n\n\t\tSet<String> links = new HashSet<String>();\n\t\ttry {\n\t\t\tParser parser = new Parser(url);\n\t\t\tparser.setEncoding(\"UTF-8\");\n\t\t\t// linkFilter filter <a> tag\n\t\t\tNodeClassFilter linkFilter = new NodeClassFilter(LinkTag.class);\n\t\t\t// get all filtered links\n\t\t\tNodeList list = parser.extractAllNodesThatMatch(linkFilter);\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tNode tag = list.elementAt(i);\n\t\t\t\tif (tag instanceof LinkTag)// <a> tag\n\t\t\t\t{\n\t\t\t\t\tLinkTag link = (LinkTag) tag;\n\t\t\t\t\tString linkUrl = link.getLink();// url\n\t\t\t\t\tif (filter.accept(linkUrl)) {\n\t\t\t\t\t\t// change bbsdoc to bbstdoc\n\t\t\t\t\t\tString stlink = linkUrl.replace(\"bbsdoc\", \"bbstdoc\");\n\t\t\t\t\t\tlinks.add(stlink);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ParserException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn links;\n\t}", "public void validateSocialMediaLinks(WebDriver driver)\n\t{\n\t\tBoolean actTwitter1 = driver.findElement(By.cssSelector(\"a.twitter\")).isDisplayed();\n System.out.println(\"Twitter is displayed or not: \"+actTwitter1);\n\t}", "Set<Link> extractLinks(CrawlDoc doc, ParseState parseState)\n throws IOException;", "public Set<Anchor> parse(Reader reader, String url) {\n\n Set<Anchor> elements = new HashSet<>();\n String urtContent = null;\n try {\n urtContent = readFully(reader);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (urtContent == null){\n return elements;\n }\n\n mTag = pTag.matcher(urtContent);\n\n while (mTag.find()) {\n\n String href = mTag.group(1); // get the values of href\n String linkElem = mTag.group(2); // get the text of link Html Element\n\n mLink = pLink.matcher(href);\n\n while (mLink.find()) {\n\n String link = mLink.group(1);\n Anchor anchor = new Anchor();\n anchor.setUrl(link);\n anchor.setText(linkElem);\n\n elements.add(anchor);\n\n }\n }\n return elements;\n }", "public static List<String> extract(Document document) {\n Elements links = document.select(\"a[href]\");\n Elements media = document.select(\"[src]\");\n Elements imports = document.select(\"link[href]\");\n\n List<String> allLinks = new ArrayList<>();\n populateLinks(allLinks, media, \"abs:src\");\n populateLinks(allLinks, imports, \"abs:href\");\n populateLinks(allLinks, links, \"abs:href\");\n return allLinks;\n }", "public List<LinkDetails> scrapeRSSPageForLinks(String rssUrl) {\n\t\tString description = \"\";\n\t\tString title = \"\";\n\t\tString link = \"\";\n\t\tString pubdate = \"\";\n\t\tURL url;\n\t\tInputStream in;\n\n\t\tList<LinkDetails> rssProcessedData = new ArrayList<LinkDetails>();\n\n\t\ttry {\n\t\t\turl = new URL(rssUrl);\n\t\t} catch (MalformedURLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\ttry {\n\t\t\tin = url.openStream();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\t// create XML input factory\n\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\n\t\t// read the XML document\n\t\ttry {\n\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\n\t\t\tboolean isFeedHeader = true;\n\t\t\twhile (eventReader.hasNext()) {\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\tif (event.isStartElement()) {\n\t\t\t\t\tString localPart = event.asStartElement().getName().getLocalPart();\n\n\t\t\t\t\t// System.out.println(localPart);\n\n\t\t\t\t\tswitch (localPart) {\n\n\t\t\t\t\tcase \"item\":\n\t\t\t\t\t\t// if (isFeedHeader) {\n\t\t\t\t\t\t// isFeedHeader = false;\n\t\t\t\t\t\t// System.out.println(\" title: \"+title+ \" description: \"+ description + \" link:\n\t\t\t\t\t\t// \"+link+\" pubDate: \"+pubdate);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"title\":\n\t\t\t\t\t\ttitle = getCharacterData(event, eventReader);\n\t\t\t\t\t\t// System.out.println(\"title: \"+title);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"description\":\n\t\t\t\t\t\tdescription = getCharacterData(event, eventReader);\n\t\t\t\t\t\t// System.out.println(\"description: \"+description);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"link\":\n\t\t\t\t\t\tlink = getCharacterData(event, eventReader);\n\t\t\t\t\t\tSystem.out.println(\"link: \" + link);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"pubDate\":\n\t\t\t\t\t\tpubdate = getCharacterData(event, eventReader);\n\t\t\t\t\t\t// System.out.println(\"pubDate: \"+pubdate);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t} else if (event.isEndElement()) {\n\t\t\t\t\tif (event.asEndElement().getName().getLocalPart() == (\"item\")) {\n\n\t\t\t\t\t\tLinkDetails linkDetails = new LinkDetails(link, title, description, pubdate);\n\t\t\t\t\t\trssProcessedData.add(linkDetails);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (XMLStreamException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\treturn rssProcessedData;\n\t}", "@Test\n public void hrefPatternTest() {\n Pattern aTeg = Pattern.compile(\"(?i)<a([^>]+)>(.+?)</a>\");\n Pattern href = Pattern.compile(\"\\\\s*(?i)href\\\\s*=\\\\s*(\\\\\\\"([^\\\"]+\\\\\\\")|'[^']+'|([^'\\\">\\\\s]+))\");\n String[] validLinkTegs = {\"<li><a href=\\\"/toolbar-creator\\\">Create a Custom Toolbar</a></li>\",\n \"<a href=\\\"http://stlpublicradio.org/programs/slota/archivedetail.php?date='2012-02-29'\\\" title=\\\"\\\" class=\\\"menu_icon menu-17197 \\\" >Грузовые перевозки</a></li>\",\n \"<li><a href='http://www.tipsntracks.com/date/2012/03' title='March 2012'>March 2012</a></li>\"};\n String[] invalidLinkTags = {\"<a href=\\\"\\\"style=\\\"\\\"><img width=\\\"148\\\" height=\\\"32\\\" src=\\\"/images/buttons/btn-www-survey.gif\\\" /></a>\"};\n String[] validLinks = new String[validLinkTegs.length];\n String[] invalidLinks = new String[invalidLinkTags.length];\n for (int i = 0; i < validLinkTegs.length; i++) {\n Matcher matcher = aTeg.matcher(validLinkTegs[i]);\n Assert.assertTrue(matcher.find());\n validLinks[i] = matcher.group(1);\n }\n for (int i = 0; i < invalidLinkTags.length; i++) {\n Matcher matcher = aTeg.matcher(invalidLinkTags[i]);\n Assert.assertTrue(matcher.find());\n invalidLinks[i] = matcher.group(1);\n }\n for (int i = 0; i < validLinkTegs.length; i++) {\n Matcher matcher = href.matcher(validLinks[i]);\n Assert.assertTrue(matcher.find());\n String s = matcher.group(1);\n System.out.println(s.substring(1, s.length() - 1));\n }\n for (int i = 0; i < invalidLinkTags.length; i++) {\n Matcher matcher = href.matcher(invalidLinks[i]);\n Assert.assertFalse(matcher.find());\n }\n }", "public static TwitterStream links(TwitterStreamConfiguration tws, TwitterStreamHandler handler)\n throws IOException, OAuthException {\n\n //build get params\n HttpParams getParams = new BasicHttpParams();\n if (tws.getCount() != null) getParams.setIntParameter(\"count\", tws.getCount());\n if (tws.isDelimited()) getParams.setParameter(\"delimited\", tws.getDelimited());\n //send request\n HttpRequestBase conn = buildConnection(LINKS_URL, getParams, tws);\n return new TwitterStream(conn, handler);\n }", "@Test\n\tpublic void testGetLinksMultipleLinks() {\n\t\tList<String> results = helper.getLinks(\n\t\t\t\t\"drop tables; <A HREF=\\\"test.com\\\"> <a href=\\\"nexttest.org\\\". junk junk\", null);\n\t\tassertEquals(2, results.size());\n\t\tassertEquals(\"test.com\", results.get(0));\n\t\tassertEquals(\"nexttest.org\", results.get(1));\n\t}", "private ArrayList<TweetData> getTweets(JSONObject json, QueryTargetInfo info) {\n ArrayList<TweetData> tweets = new ArrayList<TweetData>();\n\n JSONArray jsonArray = json.optJSONArray(\"statuses\");\n\n\n if (jsonArray == null) {\n return tweets;\n }\n\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n TweetData tweet = new TweetData();\n JSONObject tweetJson = jsonArray.getJSONObject(i);\n\n SimpleDateFormat df = new SimpleDateFormat(TIME_FORMAT);\n\n tweet.twitterId = tweetJson.getString(\"id_str\");\n tweet.published = (int)(df.parse(tweetJson.getString(\"created_at\")).getTime() / 1000);\n tweet.content = tweetJson.getString(\"text\");\n tweet.source = tweetJson.optString(\"source\", \"<No Source>\");\n tweet.lang = tweetJson.optString(\"lang\", \"en\");\n\n tweet.author = \"Jon Doe\";\n JSONObject user = tweetJson.optJSONObject(\"user\");\n if (user != null) {\n tweet.author = user.optString(\"screen_name\", \"Jon Doe\");\n }\n\n tweet.place = tweetJson.optString(\"place\", \"\");\n tweet.geo = tweetJson.optString(\"geo\", \"\");\n\n // Keep track of the smallest id.\n if (info.smallestId == null ||\n Long.valueOf(tweet.twitterId) < Long.valueOf(info.smallestId)) {\n info.smallestId = tweet.twitterId;\n }\n\n // Keep track of the last seen (max) id.\n if (info.lastSeenId == null ||\n Long.valueOf(tweet.twitterId) > Long.valueOf(info.lastSeenId)) {\n info.lastSeenId = tweet.twitterId;\n }\n\n tweets.add(tweet);\n } catch (Exception ex) {\n Logger.logError(\"Unable to parse tweet.\", ex);\n }\n }\n\n return tweets;\n }", "private ArrayList<TweetData> query(QueryTargetInfo info) {\n String url;\n ArrayList<TweetData> tweets = new ArrayList<TweetData>();\n InputStream is = null;\n\n // lastSeenId should have been set earlier.\n // However, if it is still null, just use \"0\".\n if (info.lastSeenId == null) {\n url = String.format(\"%s?q=%s&count=%d&result_type=recent&since_id=0\",\n URL_BASE, info.query, RPP);\n } else if (info.smallestId == null) {\n url = String.format(\"%s?q=%s&count=%d&result_type=recent&since_id=%s\",\n URL_BASE, info.query, RPP, info.lastSeenId);\n } else {\n url = String.format(\"%s?q=%s&count=%d&result_type=recent&since_id=%s&max_id=%s\",\n URL_BASE, info.query, RPP, info.lastSeenId, info.smallestId);\n }\n\n try {\n do {\n URL searchURL = new URL(url);\n HttpsURLConnection searchConnection = (HttpsURLConnection)searchURL.openConnection();\n\n searchConnection.setRequestProperty(\"Host\", \"api.twitter.com\");\n searchConnection.setRequestProperty(\"User-Agent\", \"BirdCatcher\");\n searchConnection.setRequestProperty(\"Authorization\", \"Bearer \" + kBearerToken);\n\n is = searchConnection.getInputStream();\n\n JSONTokener jsonTokener = new JSONTokener(is);\n\n JSONObject json = new JSONObject(jsonTokener);\n\n is.close();\n\n url = getNextLink(json, url, info);\n\n tweets.addAll(getTweets(json, info));\n\n Thread.sleep(1000);\n\n is = null;\n } while (url != null);\n } catch (Exception e) {\n Logger.logError(\"Error performing query\", e);\n\n if (is != null) {\n try {\n java.io.BufferedReader in =\n new java.io.BufferedReader(new java.io.InputStreamReader(is));\n\n String response = \"Response from Twitter:\\n\";\n String temp;\n\n while ((temp = in.readLine()) != null) {\n response += (temp + \"\\n\");\n }\n\n Logger.logDebug(response);\n\n response = null;\n temp = null;\n } catch (Exception ex) {\n }\n }\n\n return tweets;\n }\n\n return tweets;\n }", "public void searchUserAccount( )\r\n throws TwitterException, URISyntaxException, IOException{\r\n\r\n // looks at all tweets since this page\r\n // the count is the limit\r\n\r\n int count = 0;\r\n String text = \"\";\r\n Paging paging = new Paging(pageInt, 10);\r\n List<Status> statuses = twitter.getUserTimeline(user, paging);\r\n\r\n for (Status s : statuses) {\r\n String url = \"https://twitter.com/\" + s.getUser().getScreenName() + \"/status/\" + s.getId();\r\n if (s.getRetweetedStatus() == null) {\r\n content = url;\r\n //send the links to text\r\n HandleFile(override, active);\r\n\r\n //regular expressions\r\n String regex = \"https://t.co/.*\";\r\n text = s.getText().replaceAll(regex,\"\");\r\n\r\n System.out.println(s.getUser().getName() + \": \" + text);\r\n System.out.println(url); //prints the url of the tweet\r\n System.out.println(s.getCreatedAt()+\"\\n\");\r\n\r\n //sets the tweets to variables to be exported\r\n tweets = tweets + \" \" +text + \"\\n\"+ url + \"\\n\" + s.getCreatedAt() + \"\\n\\n\";\r\n\r\n\r\n active = false;\r\n\r\n //search for nudes\r\n getTwitterImage(s);\r\n }\r\n count++;\r\n\r\n if(count == 5 && limitInt > 0){\r\n limitInt--;\r\n pageInt++;\r\n searchUserAccount();\r\n }\r\n }\r\n }", "private Set<String> findNewUrls(Document doc) {\n Set<String> newUrlSet = new HashSet<>();\n\n for (Element ah : doc.select(\"a[href]\")) {\n String href = ah.attr(\"abs:href\");\n\n if (!urlSet.contains(href) // Check if this is a new URL\n && href.contains(domain) // Check if the URL is from the same domain\n && isValidExtension(href) // Check that the file extension is not in the list of excluded extensions\n && !href.contains(\"mailto:\") // Check that the href is not an email address\n ) {\n newUrlSet.add(href);\n }\n\n }\n\n processNewUrls(newUrlSet);\n return newUrlSet;\n }", "static CharSequence linkifyUrls(FormattedTweetText tweetText,\n final LinkClickListener listener, boolean stripLastPhotoEntity, final int linkColor) {\n if (tweetText == null) return null;\n\n if (TextUtils.isEmpty(tweetText.text)) {\n return tweetText.text;\n }\n\n final SpannableStringBuilder spannable\n = new SpannableStringBuilder(tweetText.text);\n\n final List<FormattedUrlEntity> urls = tweetText.urlEntities;\n\n final List<FormattedMediaEntity> media\n = tweetText.mediaEntities;\n final FormattedMediaEntity lastPhoto;\n if (stripLastPhotoEntity) {\n lastPhoto = getLastPhotoEntity(tweetText);\n } else {\n lastPhoto = null;\n }\n\n /*\n * We combine and sort the entities here so that we can correctly calculate the offsets\n * into the text.\n */\n final List<FormattedUrlEntity> combined = mergeAndSortEntities(urls, media);\n\n addUrlEntities(spannable, combined, lastPhoto, listener, linkColor);\n return spannable;\n }", "private Long getTweetPollSocialNetworkLinksbyTag(final String tagName,\n final Integer initResults, final Integer maxResults,\n final TypeSearchResult filter) {\n Long linksbyItem = 0L;\n Long totalLinksByTweetPoll = 0L;\n final List<TweetPoll> tp = this.getTweetPollsByHashTag(tagName,\n initResults, maxResults, filter);\n for (TweetPoll tweetPoll : tp) {\n // Get total value by links\n linksbyItem = getTweetPollDao().getSocialLinksByType(tweetPoll,\n null, null, TypeSearchResult.TWEETPOLL);\n totalLinksByTweetPoll = totalLinksByTweetPoll + linksbyItem;\n }\n return totalLinksByTweetPoll;\n }", "private boolean isNotValidRss(final String url) throws FeedException, IOException {\n final SyndFeed feed = FeedHandler.getFeed(url);\n final List<SyndEntry> items = feed.getEntries();\n if (items.isEmpty()) {\n return true;\n }\n for (SyndEntry item : items) {\n if (item.getPublishedDate() == null) {\n return true;\n }\n }\n return false;\n }", "private @NotNull List<String> getAllLinks(final String text, final String urlStart) {\n List<String> links = new ArrayList<>();\n\n int i = 0;\n while (text.indexOf(urlStart, i) != -1) {\n int linkStart = text.indexOf(urlStart, i);\n int linkEnd = text.indexOf(\" \", linkStart);\n if (linkEnd != -1) {\n String link = text.substring(linkStart, linkEnd);\n links.add(link);\n } else {\n String link = text.substring(linkStart);\n links.add(link);\n }\n i = text.indexOf(urlStart, i) + urlStart.length();\n }\n\n return links;\n }", "public void init() {\n BufferedReader in = null;\n try {\n //URL feed = new URL(\"http://twitter.com/statuses/user_timeline/48274520.rss\");\n URL feed = new URL(\"http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=g_damian\");\n in = new BufferedReader(new InputStreamReader(feed.openStream()));\n String inputLine;\n String data = null;\n while ((inputLine = in.readLine()) != null) {\n inputLine = inputLine.trim();\n if (inputLine.startsWith(\"<created_at>\") && inputLine.endsWith(\"</created_at>\")) {\n inputLine = inputLine.substring(12, inputLine.length() - 13);\n data = inputLine.replaceAll(\"\\\\+\\\\d* \", \"\");\n }\n if (inputLine.startsWith(\"<text>\") && inputLine.endsWith(\"</text>\")) {\n inputLine = inputLine.substring(6, inputLine.length() - 7);\n buffer.append(escapeMessage(inputLine));\n buffer.append(\"<br/>[\" + data + \"]\");\n buffer.append(\"\\n\");\n }\n }\n in.close();\n } catch (MalformedURLException ex) {\n Logger.getLogger(ShowTweetsApplet.class.getName()).log(Level.SEVERE, null, ex);\n appendException(buffer, ex);\n } catch (IOException ex) {\n Logger.getLogger(ShowTweetsApplet.class.getName()).log(Level.SEVERE, null, ex);\n appendException(buffer, ex);\n } finally {\n try {\n if (in != null) {\n in.close();\n }\n } catch (IOException ex) {\n Logger.getLogger(ShowTweetsApplet.class.getName()).log(Level.SEVERE, null, ex);\n appendException(buffer, ex);\n }\n }\n }", "private String getURL(String feedUrl) {\n\tStringBuilder sb = null;\n\ttry {\n for(int i = 3; i>0; i--) {\n\t sb = new StringBuilder();\n URL url = new URL(feedUrl);\n//User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 GTB7.1 ( .NET CLR 3.5.30729)\n//Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\n//Accept-Language: en-us,en;q=0.5\n//Accept-Encoding: gzip,deflate\n//Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\n//Keep-Alive: 115\n//Connection: keep-alive\n//\tHttpsURLConnection uc = (HttpsURLConnection) url.openConnection();\n\tHttpURLConnection uc = (HttpURLConnection) url.openConnection();\n\tuc.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 GTB7.1 ( .NET CLR 3.5.30729)\");\n//Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\n\tuc.setRequestProperty(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\");\n\tuc.setRequestProperty(\"Accept-Language\", \"en-us,en;q=0.5\");\n\tuc.setRequestProperty(\"Accept-Encoding\", \"gzip,deflate\");\n\tuc.setRequestProperty(\"Accept-Charset\", \"ISO-8859-1,utf-8;q=0.7,*;q=0.7\");\n\tuc.setRequestProperty(\"Keep-Alive\", \"115\");\n\tuc.setRequestProperty(\"Connection\", \"keep-alive\");\n//Keep-Alive: 115\n//Connection: keep-alive\n//\tif (userName != null && password != null) {\n//\t\tuc.setRequestProperty(\"Authorization\", \"Basic \" + encodedAuthenticationString);\n//\t}\n\t// ori setting??\n//\tuc.setReadTimeout(TIME_OUT);\n//\tuc.setFollowRedirects(true);\n//\tuc.setInstanceFollowRedirects(true);\n//\tuc.setAllowUserInteraction(true);\n\tuc.setDoOutput(true);\n\tuc.setDoInput(true);\n\tuc.setUseCaches(false);\n\tuc.setRequestMethod(\"POST\");\n\tuc.setRequestProperty(\"Content-Type\", \"text/xml\");\n\t\n\tBufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));//uc.getInputStream()\n\tString inputLine;\n//\t'aa7c.com')\" onmouseout=\"menuLayers.hide()\">Available</a>\n\tboolean refreshAgain = false;\n\twhile ((inputLine = in.readLine()) != null) {\n//\t\tSystem.out.println(inputLine);\n\t\tsb.append(inputLine);\n\t\tif( inputLine.contains(\"Refresh\") ) {\n\t\t\trefreshAgain = true;\n\t\t\tSystem.out.println(\"Refresh\");\n\t\t}\n\t}\n\tin.close();\n\tuc.disconnect();\t\t\n//\tRefresh\n\tif( refreshAgain ) {\n\t Thread.sleep(1000);\n\t}\n\telse break;\n }\n }catch(Exception ee){}\nreturn sb.toString();\n}", "public List<String> linkTexts()\n\t{\n\t\t\n\t\tList<String> links=new ArrayList<String>();\n\t\tlinks.add(linkString);\n\t\tlinks.add(\"Facebook.com\");\n\t\tlinks.add(\"google.com;\");\n\t\tlinks.add(\"gmail.com\");\n\t\tlinks.add(\"shine.com\");\n\t\tlinks.add(\"nukari.com\");\n\t\t\n\t\t// Like the above we have to add number of link text are passed to achieve the DataDriven approach through BBD \n\t\t\t\n\t\treturn links;\n\t\t\n\t}", "List<SyndFeed> getRssFeeds(Set<String> feedUrls) throws FeedException, IOException,\n FetcherException;", "@Test\n\tpublic void testGetLinksOtherProperties() {\n\t\tList<String> results = helper.getLinks(\"drop tables; <A target=\\\"self\\\" href=\\\"test.com\\\"> junk junk\",\n\t\t\t\t\"http://www.bobbylough.com\");\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"test.com\", results.get(0));\n\t}", "private String getTweetLink(Status status) {\n \t\treturn \"http://twitter.com/\" + status.getUser().getScreenName()\n \t\t\t\t+ \"/status/\" + status.getId();\n \t}", "public static ArrayList<Map<String,String>> getContFromRssNoHtml(String urlAdress) {\n\n URL url = null;\n Iterator itEntries = null;\n try {\n //thetume ton browser Agent se browser-like gia na apofigume 403 errors\n System.setProperty(\"http.agent\", \"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0\");\n url = new URL(urlAdress);\n HttpURLConnection httpcon = (HttpURLConnection) url.openConnection();\n httpcon.setRequestProperty(\"User-Agent\",\n \"Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0\");\n // Reading the feed\n SyndFeedInput input = new SyndFeedInput();\n SyndFeed feed = input.build(new XmlReader(httpcon));\n List entries = feed.getEntries();\n itEntries = entries.iterator();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (FeedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //contAr has all the entries\n ArrayList<Map<String,String>> contAr = new ArrayList<Map<String, String>>();\n\n //contMap has all the entries contents\n Map<String,String> contMap = new HashMap<String, String>();\n contMap.put(\"URI\",urlAdress);\n\n\n while (itEntries.hasNext()) {\n contMap = new HashMap<String, String>();\n SyndEntry entry = (SyndEntry) itEntries.next();\n System.out.println(entry.getUri());\n contMap.put(\"Title\",entry.getTitle());\n contMap.put(\"Link\",entry.getLink());\n contMap.put(\"Description\",entry.getDescription().getValue());\n\n contAr.add(contMap);\n System.out.println();\n }\n return contAr;\n }", "public ArrayList<String> soupThatSite(String url) throws IOException {\n\n ArrayList<String> parsedDoc = new ArrayList<>();\n Document doc = Jsoup.connect(url).get();\n\n if (url.contains(\"cnn.com\")) {\n\n doc.select(\"h1\").stream().filter(Element::hasText).forEach(element1 -> {\n String str = element1.text();\n String clean = Jsoup.clean(str, Whitelist.basic());\n parsedDoc.add(clean);\n });\n\n doc.select(\".zn-body__paragraph\").stream().filter(Element::hasText).forEach(element1 -> {\n String str = element1.text();\n String clean = Jsoup.clean(str, Whitelist.basic());\n parsedDoc.add(clean);\n });\n\n } else {\n\n doc.select(\"h1\").stream().filter(Element::hasText).forEach(element1 -> {\n String str = element1.text();\n String clean = Jsoup.clean(str, Whitelist.basic());\n parsedDoc.add(clean);\n });\n\n doc.select(\"p\").stream().filter(Element::hasText).forEach(element -> {\n String str = element.text();\n String clean = Jsoup.clean(str, Whitelist.basic());\n parsedDoc.add(clean);\n });\n }\n\n return parsedDoc;\n }", "public static Set<String> parsePage(Document doc){\n\t\ttry{\n\t\t\tElements links = doc.select(\"a[href]\");\n\t\t\tSet<String> pageLinks = new HashSet<String>();\n\t\t\tfor(Element link : links){\n\t\t\t\tpageLinks.add(link.attr(\"abs:href\"));\n\t\t\t}\n\t\t\treturn pageLinks;\n\t\t}catch(Exception err){\n\t\t\terr.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "static List<WebURL> ExtractUrl(Page page){\n // TODO: reference to parser to extractor urls from the web content\n return null;\n }", "public URL ParseRSSFromFeed() throws java.net.MalformedURLException\n {\n URL feedUrl = new URL(Src_URL);\n return feedUrl;\n }", "public static Set<String> parser(String html){\r\n\r\n\t\tSet<String> urls = new HashSet<String>();\r\n\t\tString regex = \"<a.*?/a>\";\r\n\t\tPattern pt = Pattern.compile(regex);\r\n\t\tMatcher matcher = pt.matcher(html);\r\n\t\twhile(matcher.find()){\r\n\t\t\t//获取网址\r\n//\t\t\tSystem.out.println(\"Group:\"+matcher.group());\r\n\t\t\tMatcher myurl = Pattern.compile(\"href=\\\".*?\\\">\").matcher(matcher.group());\r\n\t\t\tif(myurl.find()){\r\n\t\t\t\tdo{\r\n\t\t\t\t\tString temp = myurl.group();\r\n\t\t\t\t\tif(!temp.startsWith(\"javascript\") && !temp.startsWith(\"/\") && ! temp.startsWith(\"#\")){\r\n\t\t\t\t\t\tString url = myurl.group().replaceAll(\"href=\\\"|\\\">\",\"\");\r\n\t\t\t\t\t\tif(url.contains(\"http\")){\r\n\t\t\t\t\t\t\tif(url.contains(\"\\\"\")){\r\n\t\t\t\t\t\t\t\turl = url.substring(0, url.indexOf(\"\\\"\"));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(!url.contains(\"$\") && !url.contains(\" \")){\r\n\t\t\t\t\t\t\t\turls.add(url);\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}while(myurl.find());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn urls;\r\n\t}", "@Test\n\tpublic void TestTwoLinksAreHandledOkay() {\n\t\tJabberMessage msg = new JabberMessage();\n\t\tmsg.setMessage(\"Hello There! http://reddit.com http://google.com\");\n\t\tmsg.setId(1);\n\t\tmsg.setUsername(\"Test\");\n\t\tmsg.setTimestamp(\"NOW!\");\n\t\tLink link = null;\n\t\ttry {\n\t\t\tlink = lh.convertMessageToLink(msg);\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Couldnt convert message to link\");\n\t\t}\n\t\tif (link.getUrl().equals(\"http://reddit.com\") || link.getUrl().equals(\"http://google.com\")) {\n\t\t\t// pass\n\t\t}\n\t\telse {\n\t\t\tfail(\"Can't handle two URL's\");\n\t\t}\n\t}", "public ArrayList<String> findLinks(Text value) throws CharacterCodingException{\n\t\tint start = value.find(\"<text\");\n\t\tstart = value.find(\">\", start);\n\t\tint end = value.find(\"</text>\", start);\n\t\t//start+=1;\n\t\tString textBlock=new String();\n\t\ttry{\n\t\tif(end < value.getLength())\n\t\t\ttextBlock = Text.decode(value.getBytes(), start, end-start);\n\t\telse\n\t\t\ttextBlock = Text.decode(value.getBytes(), start, value.getLength()-start);\n\t\t} catch(Exception e){\n\t\t\treturn null;\n\t\t}\n\t\tArrayList<String> List = new ArrayList<String>();\n\t\t\n\t\tPattern wikiLinkRegEx = Pattern.compile(\"\\\\[\\\\[(?:[^|\\\\]]*\\\\|)?([^\\\\]]+)\\\\]\\\\]\");\n\t\tMatcher patternMatcher = wikiLinkRegEx.matcher(textBlock);\n\t\twhile(patternMatcher.find()) {\n\t\t\tint flag=0;\n\t\t\tint startIndex = patternMatcher.start();\n\t\t\tint endIndex = patternMatcher.end();\n\t\t\tString wikiLink = textBlock.substring(startIndex+2, endIndex-2);\n\t\t\twikiLink = wikiLink.replace(\" \", \"_\");\n\n\t\t\t//Checking for the occurrence of '|'\n\t\t\tif(wikiLink.contains(\"|\")){\n\t\t\t\tint pipeIndex = wikiLink.indexOf(\"|\");\n\t\t\t\twikiLink = wikiLink.substring(0, pipeIndex);\n\t\t\t}\n\t\t\t\n\t\t\t//Flagging all the invalid WikiLinks \n\t\t\t//if(wikiLink.contains(\":\") || wikiLink.contains(\"#\") || wikiLink.contains(\"/\") ){\n\t\t\t//\tflag=1;\n\t\t\t//}\n\t\t\t\n\t\t\t// Add the valid WikiLinks in the List\n\t\t\tif(flag==0){\n\t\t\t\twikiLink = wikiLink.replace(\"&amp;\", \"&\");\n\t\t\t\tList.add(wikiLink);\n\t\t\t}\n\t }\n\t\treturn List;\n\t}", "boolean hasFeed();", "boolean hasFeed();", "private ArrayList<String> permaLinkParser(String response, ArrayList<String> permaLinkUrls){\n\t\tJsonElement element = new JsonParser().parse(response);\n\t\tJsonArray array = element.getAsJsonArray();\n\t\t\n\t\tfor(int i = 0; i < array.size(); i++){\n\t\t\tJsonObject currentObject = array.get(i).getAsJsonObject().getAsJsonObject();\n\t\t\t\n\t\t\tString key = currentObject.get(\"permalink_url\").toString().replaceAll(\"\\\"\", \"\");\n\t\t\tpermaLinkUrls.add(key);\n\t\t}\n\t\t\n\t\treturn permaLinkUrls;\n\t\t\n\t}", "public static List<String> getLinks(String url, NodeFilter filter) throws ParserException\n\t{\n\t\tParser parser = getParser(url);\n\t\tNodeList list = new NodeList();\n\t\tfor (NodeIterator e = parser.elements(); e.hasMoreNodes();)\n\t\t{\n\t\t\tlist.add(getNodes(e.nextNode(), filter));\n\t\t}\n\t\tList<String> strings = new ArrayList<String>();\n\t\tfor (NodeIterator i = list.elements(); i.hasMoreNodes();)\n\t\t{\n\t\t\tNode n = i.nextNode();\n\t\t\tif (n instanceof LinkTag)\n\t\t\t{ // text\n\t\t\t\tString link = ((LinkTag) n).extractLink();\n\t\t\t\tif (!strings.contains(link))\n\t\t\t\t{\n\t\t\t\t\tstrings.add(((LinkTag) n).extractLink());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn strings;\n\t}", "public static LinkedHashSet<String> searchLinks(String searchUrl) {\n LinkedHashSet<String> uniqueLinks = new LinkedHashSet();\n Document doc;\n try {\n doc = Jsoup.connect(searchUrl).get();\n Elements links = doc.select(\"a\");\n for(Element url : links){\n if (validUrl(url.attr(\"href\"))) {\n uniqueLinks.add(url.attr(\"href\"));\n }\n }\n } catch (IOException e) {\n }\n return uniqueLinks;\n }", "private static List<Status> getStatuses(Twitter twitter){\n\t\tList<Status> mainList = new ArrayList<Status>(900);\n\t\tPaging page = new Paging();\n\t\twhile(true){\n\t\t\ttry{\n\t\t\t\tList<Status> list = twitter.getUserTimeline(USER,page);\n\t\t\t\t\n\t\t\t\tif(list.size() == 0) break;\n\t\t\t\t\n\t\t\t\tmainList.addAll(list);\n\t\t\t\tlong max_id = list.get(list.size()-1).getId();\n\t\t\t\t\n\t\t\t\tpage.setMaxId(max_id-1);\n\t\t\t}catch(TwitterException e){\n\t\t\t\tSystem.out.println(\"Exception caught :\" +\n\t\t\t\t\t\t\" some thing wrong, check internet connction or try after some time\");\n\t\t\t\tSystem.out.println(\"error message : \"+ e.toString());\n\t\t\t\tSystem.out.println(\"Program will quit now\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn mainList;\n\t}", "public List<String> getLinks();", "private boolean getLinks() {\n return false;\n }", "public void downloadTweetsForItem(String item, int numTweets) \n\t\t\tthrows IOException, TwitterException\n\t{\n\t\t/*if (numTweets <= 0) \n\t\t{ \n\t\t\tnumTweets = Integer.MAX_VALUE; \n\t\t}*/\n\t\tFile userDir = new File(String.format(\"%s/%s\", DATA_DIR, item));\n\t\tboolean success = false;\n\t try{\n\t \t //success = userDir.mkdir();\t\n\t \t Files.createDirectory(userDir.toPath());\n\t } \n\t catch(IOException se)\n\t {\n\t \tSystem.out.println(\"****mkdir failed!!!!!!!!\");\n\t }\n\t\t\n\t\tString multiLineFile = \n\t\t\tString.format(\"%s/%s/%s_tweets.txt\", DATA_DIR, item, item);\n\t\tString singleLineFile = \n\t\t\tString.format(\"%s/%s/%s_tweets_single.txt\", DATA_DIR, item, item);\n\t\tString multiLineFileRaw = \n\t\t\t\tString.format(\"%s/%s/%s_tweets_multiRaw.txt\", DATA_DIR, item, item);\n\t\t//item = \"@\" + item;\n\t\t\n\t\tList<String> allTweets = GetAllTweets(item, numTweets);//Query(item, numTweets);\n\t\t\n\t\t// Now do some pre-processing on allTweets.\n\t\t// Topic modelling prefers text with stop words removed etc.\n\t\t List<String> filteredTweets = new ArrayList<String>();\n\n\t\t BufferedReader f = new BufferedReader(new FileReader(\"stopwords.txt\"));\n\t\t String line = f.readLine();\n\t\t List<String> stopwords = new ArrayList<String>();\n\t\t while(line != null)\n\t\t {\n\t\t\t stopwords.add(line);\n\t\t\t line = f.readLine();\n\t\t }\n\t\t f.close();\n\t\t \n\t\titem = item.toLowerCase();\n\t\tint i = 0;\n\t\twhile(i < allTweets.size())\n\t\t{\n\t\t\tString text = allTweets.get(i);\n\t\t\t\n\t\t\t// First, remove all non alphabetic characters. This removes a lot of junk! hash tags, prices, etc.\n\t\t\ttext = text.replaceAll(\"[^a-zA-Z\\\\s]\", \"\").toLowerCase();\n\t\t\t\n\t\t\t// first, get rid of our actual search term. we do not want it to come up as a topic,\n\t\t\t// as we already know that we are searching for tweets of that item\n\t\t\ttext = text.replace(item, \"\"); \n\t\t\t\n\t\t\t// Now, remove all words less than a certain length\n\t\t\ttext = text.replaceAll(\"\\\\b\\\\w{1,3}\\\\b\\\\s?\", \"\");\n\t\t\t\n\t\t\t// The DMM package doesn't do stop word removal! So I have to do this manually.\n\t\t\tfor(String word : stopwords){\n\t\t\t text = text.replace(word+\"\\\\s*\", \"\");\n\t\t\t}\n\t\t\t\n\t\t\t// Again, remove strings that are too short!\n\t\t\tif(text.length() > 14)\n\t\t\t{\n\t\t\t\tfilteredTweets.add(text);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// This string is too short, so it must get removed.\n\t\t\t\tallTweets.remove(i);\n\t\t\t\t// don't increment i, since we just deleted this one.\n\t\t\t}\n\t\t}\n\t\t// Sentiment analysis doesn't need pre-processing.\n\t\tsaveTweetsToFile(allTweets, multiLineFileRaw, true);\n\t\t\n\t\t// But our topics needs some stuff removed.\n\t\tsaveTweetsToFile(filteredTweets, multiLineFile, true);\n\t\tsaveTweetsToFile(filteredTweets, singleLineFile, false);\n\n\t}", "private void ExtractURLs(String line)\n {\n String matchedURL = \"\";\n Matcher urlMatcher = urlPattern.matcher(line);\n\n while (urlMatcher.find())\n {\n matchedURL = urlMatcher.group();\n\n if (!distinctURLs.containsKey(matchedURL))\n {\n distinctURLs.put(matchedURL,matchedURL);\n }\n }\n }", "private static Set<String> scrapeHTML(String html) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tint skipLength = 0;\n\t\tint counter = 0;\n\t\t// the subtraction of 15 is because of the number of characters in \n\t\t// \"<a href=\\\"/wiki/\", to avoid a index out of bounds error\n\t\tfor(int i = 0; i < html.length()-15; i++) {\n\t\t\tif(html.substring(i, i+15).equals(\"<a href=\\\"/wiki/\")) {\n\t\t\t\t// if format matches starts to check the following characters\n\t\t\t\t// to check if it does not contain a : or a #\n\t\t\t\tchar ch = html.charAt(i+15);\n\t\t\t\tString str = \"\";\n\t\t\t\tint count = 0;\n\t\t\t\twhile(html.charAt(i+count+15) != '\"'){\n\t\t\t\t\tif(html.charAt(i+count+15) == ':' || html.charAt(i+count+15) == '#') {\n\t\t\t\t\t\tstr = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tch = html.charAt(count+i+15);\n\t\t\t\t\tstr += ch;\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\t// adds if the page name is not empty\n\t\t\t\tif(str != \"\")\n\t\t\t\tset.add(str);\n\t\t\t\tskipLength = str.length();\n\t\t\t\tcount = 0;\n\t\t}\n\t\t\ti += skipLength;\n\t\t\tskipLength = 0;\n\t\t\tcounter++;\n\t\n\t}\n\treturn set;\n}", "public static List<String> getURLs(List<WebElement> links) {\n\t\t List<String> ListHref = new ArrayList<String>();\n\t\t \n\t\t //loops through all links\n\t\t for(WebElement Webhref:links) {\n\t\t\t \n\t\t\t //if element isn't null\n\t\t\t if (Webhref.getAttribute(\"href\") != null) {\n\t\t\t\t String StringHref = (Webhref.getAttribute(\"href\")).toString();\n\n\t\t\t\t //if page isn't part of domain, ignore\n\t\t\t\t if (StringHref.startsWith(variables.domain)) {\n\t\t\t\t\t //System.out.println(StringHref);\n\t\t\t\t\t \n\t\t\t\t\t //if page doesn't have an octothorpe\n\t\t\t\t\t if (!StringHref.contains(\"#\")) {\n\t\t\t\t\t\t \n\t\t\t\t\t\t//if page doesn't ends with one of the file extensions to not use\n\t\t\t\t\t\t String extension = getExtension(StringHref);//gets TLD from URL\n\t\t\t\t\t\t if(!variables.list.stream().anyMatch(extension::contains)) {\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t//if value isn't already part of this array or the already crawled array\n\t\t\t\t\t\t\t if(!ListHref.contains(StringHref) && !variables.crawled.contains(StringHref)) {\n\t\t\t\t\t\t\t\t ListHref.add(StringHref);\n\t\t\t\t\t\t\t\t //System.out.println(StringHref);\n\t\t\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\n\t\treturn ListHref;\n\t}", "boolean hasHadithUrl();", "private void parseLastfm() {\t\t\r\n\t\tfor(String artist : library.getCopyArtists()) {\r\n\t\t\ttry {\r\n\t\t\t\tartist = URLEncoder.encode(artist, \"UTF-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.wq.execute(new Fetcher(artist, library));\r\n\t\t}\r\n\t}", "@Override\n public HashSet<String> findPostIds() throws IOException {\n HashSet<String> postId = new HashSet();\n Document document = Jsoup.connect(\"https://www.bd-pratidin.com/\").userAgent(\"Opera\").get();\n Element body = document.body();\n\n Elements posts = body.getElementsByClass(\"home-latest-news\").first().getElementsByTag(\"a\");\n for (int i=0;i<20;i++) {\n String link = posts.get(i).attr(\"href\");\n postId.add(link);\n }\n return postId;\n }", "private boolean userNotAlreadyFollowing(String url) {\n mStatusTextView.setText(\"\");\n\n if (WearFeedEntry.isFollowingUrl(url)) {\n mStatusTextView.setText(getActivity().getString(R.string.already_following_feed));\n return false;\n }\n\n return true;\n }", "public List<String> trendsAvailable() {\r\n\t\tList<String> twitterResponseList = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tProperties properties = getProperties();\r\n\t\t\tString apiUrl = properties.getProperty(\"twitter.api.trends.available\");\r\n\r\n\t\t\tHttpResponse apiResponse = executeHttpGet(apiUrl);\r\n\r\n\t\t\tif (200 == apiResponse.getStatusLine().getStatusCode()) {\r\n\t\t\t\tJSONArray jsonArray = new JSONArray(EntityUtils.toString(apiResponse.getEntity()));\r\n\t\t\t\tfor (int i = 1; i < jsonArray.length() && i <= 10; i++) {\r\n\t\t\t\t\tJSONObject object = (JSONObject) jsonArray.get(i);\r\n\t\t\t\t\tString displayText = (String) object.get(\"country\") + \" : \" + (String) object.get(\"url\");\r\n\t\t\t\t\ttwitterResponseList.add(displayText);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn twitterResponseList;\r\n\t}", "ObservableList<Link> getUnfilteredLinkList();", "List<Link> getLinks();", "public List<TparselinksEntity> getAllLinks();", "public static List<Status> getFeed() throws TwitterException {\n\t\tTwitter twitter = TwitterFactory.getSingleton();\n\t\tPaging paging = new Paging(1,100);\n\t\tList<Status> statuses = twitter.getHomeTimeline(paging);\n\t\treturn statuses;\n\t}", "public List<TwitterDataExtract> GetData();", "@Override\n\tpublic void visit(Page page) {\n\t\t\n\t\ttry{\n\t\t\tfin=\"\";\n\t\t\tif(flag == 0){\n\t\t\t\tfw = new FileWriter(wrtFile);\n\t\t\t\tfw1 = new FileWriter(wrtFile1);\n\t\t\t\tvisit_url = new HashSet<String>();\n\t\t\t\tall_txt = new HashSet<String>();\n\t\t\t\teng_sen = new ArrayList<String>();\n\t\t\t}\n\t\t\tflag++;\n\t\t\tsynchronized (this) {\n\t\t\t\tif(page.getParseData() instanceof HtmlParseData){\n\t\t\t\t\tHtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\n\t\t\t\t\tString html = htmlParseData.getHtml();\n\t\t\t\t\tString url = page.getWebURL().getURL().toLowerCase();\n\t\t\t\t\t//System.out.println(\"VISIT: \"+ url);\n\t\t\t\t\t//System.out.println(\"HTML: \"+ html);\n\t\t\t\t\tDocument doc = Jsoup.parse(html);\n\t\t\t\t\tdoc.removeClass(\"twitter-tweet\");\n\t\t\t\t\tElements links = doc.select(\"div\");\n\t\t\t\t\tIterator<Element> it = links.iterator();\n\t\t\t\t\t\n\t\t\t\t\tString text=\"\";\n\t\t\t\t\tElement link;\n\t\t\t\t\tElements children;\n\t\t\t\t\twhile(it.hasNext()){\n\t\t\t\t\t\tlink = it.next();\n\t\t\t\t\t\tif(link.attr(\"class\").equals(\"desc\")){\n\t\t\t\t\t\t\t//System.out.println(\"Division Class: \"+ link.attr(\"class\"));\n\t\t\t\t\t\t\t//text.replaceAll(\",\", \"(COMMA)\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchildren = link.children();\n\t\t\t\t\t\t\tif(!children.isEmpty()){\n\t\t\t\t\t\t\t\tIterator<Element> child_it = children.iterator();\n\t\t\t\t\t\t\t\tElement child;\n\t\t\t\t\t\t\t\twhile(child_it.hasNext()){\n\t\t\t\t\t\t\t\t\tchild = child_it.next(); \n\t\t\t\t\t\t\t\t\tif(child.attr(\"data-lang\").equals(\"en\") || child.attr(\"class\").equals(\"instagram-media\") || child.text().contains(\"Read Also\")){\n\t\t\t\t\t\t\t\t\t\tchild.text(\"\");\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\tif(!text.contains(link.text())){\t\t\n\t\t\t\t\t\t\t\tif(!link.text().matches(\".*Updated (Mon|Tue|Wed|Thu|Fri|Sat|Sun).*\")){\n\t\t\t\t\t\t\t\t\ttext += link.text();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"Text: \"+ text);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(link.attr(\"class\").equals(\"caption\")){\n\t\t\t\t\t\t\t//System.out.println(\"Division Class: \"+ link.attr(\"class\"));\n\t\t\t\t\t\t\t//text.replaceAll(\",\", \"(COMMA)\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchildren = link.children();\n\t\t\t\t\t\t\tif(!children.isEmpty()){\n\t\t\t\t\t\t\t\tIterator<Element> child_it = children.iterator();\n\t\t\t\t\t\t\t\tElement child;\n\t\t\t\t\t\t\t\twhile(child_it.hasNext()){\n\t\t\t\t\t\t\t\t\tchild = child_it.next(); \n\t\t\t\t\t\t\t\t\tif(child.attr(\"data-lang\").equals(\"en\") || child.attr(\"class\").equals(\"instagram-media\") || child.text().contains(\"Read Also\")){\n\t\t\t\t\t\t\t\t\t\tchild.text(\"\");\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\tif(!text.contains(link.text())){\t\t\n\t\t\t\t\t\t\t\tif(!link.text().matches(\".*Updated (Mon|Tue|Wed|Thu|Fri|Sat|Sun).*\")){\n\t\t\t\t\t\t\t\t\ttext += link.text();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"Text: \"+ text);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(text != \"\"){\n\t\t\t\t\t\tif(!visit_url.contains(url) && !all_txt.contains(text)){\n\t\t\t\t\t\t\tfin = text+\"\\n\";\n\t\t\t\t\t\t\tfin1 = url+\"\\n\";\n\t\t\t\t\t\t\t//System.out.println(\"Text: \"+ text);\n\t\t\t\t\t\t\t//System.out.println(\"URL: \"+ url);\n\t\t\t\t\t\t\tFiles.write(Paths.get(wrtFile), fin.getBytes(), StandardOpenOption.APPEND);\n\t\t\t\t\t\t\tFiles.write(Paths.get(wrtFile1), fin1.getBytes(), StandardOpenOption.APPEND);\n\t\t\t\t\t\t\tall_txt.add(text);\n\t\t\t\t\t\t\tvisit_url.add(url);\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}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "java.lang.String getFeed();", "private boolean urlInLinkedList(URL url, LinkedList<String> set){\n boolean returnBoolean = false;\n\n for (String setItem : set){\n if (NetworkUtils.urlHostPathMatch(NetworkUtils.makeURL(setItem), url)) {\n// Log.v(\"DLAsync.urlInHashSet\", \" just found \" + url.toString() + \" in \" + set.toString());\n returnBoolean = true;\n }\n }\n return returnBoolean;\n }", "void test_jsoup2(final Context context, final String url){\n Thread thread = new Thread(new Runnable(){\n @Override\n public void run() {\n try {\n Log.i(\"tag_\", url);\n\n String result = \"\";\n Document doc = Jsoup.connect(url).get();\n Elements nodeBlogStats = doc.select(\"a[href]\");\n for ( Element column : nodeBlogStats ) {\n //Log.i(\"tag_\", \"link:\" + column.text() );\n result += column.text();\n result +=\"\\n\";\n }\n Toast.makeText( context, result, Toast.LENGTH_LONG).show();//this will just show the result in Toast message\n }catch(Exception e){\n\n }\n }\n });\n thread.start();\n }", "private Long getPollsSocialNetworkLinksByTag(final String tagName,\n final Integer initResults, final Integer maxResults,\n final TypeSearchResult filter) {\n Long linksbyItem = 0L;\n Long totalLinksByPoll = 0L;\n \n final List<Poll> polls = this.getPollsByHashTag(tagName, initResults,\n maxResults, filter);\n for (Poll poll : polls) {\n linksbyItem = getTweetPollDao().getSocialLinksByType(null, null,\n poll, TypeSearchResult.POLL);\n totalLinksByPoll = totalLinksByPoll + linksbyItem;\n }\n return totalLinksByPoll;\n }", "void getTweets(long lastUid) {\n client.getMentionsTimeline(lastUid, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONArray response) {\n Log.d(\"DEBUG\", response.toString());\n addAll(Tweet.fromJsonArray(response));\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n Log.d(\"DEBUG\", errorResponse.toString());\n }\n });\n }", "public LinkedList<User> getUsers() throws TwitterException {\n System.out.println(\"##########Getting The Tweets##########\");\n LinkedList<User> users = new LinkedList<>();\n for (String keyword : this.wordsLookingFor) {\n //Search for tweets\n for (Status A : this.searchTweets(keyword)) {\n //System.out.println(A.getText());\n getUserFromStatus(users, A);\n }\n }\n\n System.out.println(\"Users Number is \".concat(Integer.toString(users.size())));\n return users;\n }", "public Set<String> getLinks() throws SearchResultException;", "public void getLinks() {\n\n var client = HttpClient.newBuilder()\n .followRedirects(HttpClient.Redirect.ALWAYS)\n .build();\n\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(URL_PREFIX))\n .build();\n client.sendAsync(request, HttpResponse.BodyHandlers.ofLines())\n .thenApply(HttpResponse::body)\n .thenApply(this::processLines)\n .thenApply(versions -> tasks(versions))\n .join();\n }", "public static Set<String> getMentionedUsers(List<Tweet> tweets) {\n\n// throw new RuntimeException(\"not implemented\");\n Set<String> anSet = new HashSet<>();\n Pattern pattern=Pattern.compile(\"@[a-zA-Z]{1,}\");\n Matcher matcher=pattern.matcher(tweets.get(0).getText());\n\n return anSet;\n }", "final void checkLink(String link)\r\n {\r\n URL doc; // URL link\r\n\tDataInputStream dis=null;\r\n\tint i;\r\n\tboolean qualifiedLink=false;\r\n\tif(link.startsWith(\"#\")) // Skip the link if it's just an offset in this document\r\n\t return;\r\n if((i=link.indexOf(\"#\"))!=-1)\r\n\t{\r\n\t String substr=link.substring(0,i);\r\n\t link=substr;\r\n\t}\r\n\tif(app.checkAlreadyFound(link))\r\n\t return;\r\n // Ignore not - HTML links and start page\r\n\tif( (link.startsWith(\"mailto:\")) || (link.startsWith(\"wais:\")) ||\r\n\t (link.startsWith(\"gopher:\")) || (link.startsWith(\"newsrc:\")) ||\r\n\t\t(link.startsWith(\"ftp:\")) || (link.startsWith(\"nntp:\")) ||\r\n\t\t(link.startsWith(\"telnet:\")) || (link.startsWith(\"news:\")) ||\r\n\t\t(link.equalsIgnoreCase(app.indexName)) || link.equalsIgnoreCase(\"index.html\") ||\r\n\t\t(link.equalsIgnoreCase(\"index.htm\")))\r\n return;\r\n // Check that it is not out side link. (Eg, www.RGP-Javaline.com)\r\n\tif(link.indexOf(\"http:\")!=-1)\r\n\t{\r\n\t String pageName;\r\n\t if(app.server==null)\r\n\t pageName=\"http://www.\"+hostName;\r\n else pageName=app.server;\r\n\t // Allow for local host being displayed as an IP Address rather than host name.\r\n if(proxyDetected && app.IPAddress!=null)\r\n\t pageName=\"http://\"+app.IPAddress;\r\n // This is a fully qualified link. Eg, \" http://www.allsoft-india.com/index.htm\"\r\n\t qualifiedLink=true;\r\n\t // If the link doesn't contain the local host name or IPAddress then\r\n\t // it's an external link. So, ignore it.\r\n\t if(link.indexOf(pageName)==-1)\r\n\t return;\r\n\t}\r\n\t// Check that it's a HTML Page.\r\n\tif( link.indexOf(\".htm\")==-1 && link.indexOf(\".HTM\")==-1 &&\r\n\t link.indexOf(\".txt\")==-1 && link.indexOf(\".TXT\")==-1 &&\r\n\t\tlink.indexOf(\".phtml\")==-1 && link.indexOf(\".PHTML\")==-1 )\r\n return ;\r\n app.incrementPages(link); // valid link - add it to the array of visited links. \r\n\t// Follow link and read it's contents.\r\n\ttry\r\n\t{\r\n\t if(app.server==null)\r\n\t doc=new URL(\"http://www.\"+hostName+\"/\"+link);\r\n else\r\n\t {\r\n\t if(link.startsWith(\"/\"))\r\n\t\t{\r\n \t\t // Remove the \"/\" from the link as the server name has a terminating \"/\" \r\n String temp=link.substring(1,link.length());\r\n\t\t link=temp;\r\n\t\t}\r\n\t\tdoc=new URL(app.server+link);\r\n\t }\r\n \t // Link may be absolute, Eg, www.allsoft-india.com/contus.html\r\n\t if(qualifiedLink)\r\n\t doc=new URL(link);\r\n // If a proxy server/firewall has been detected then use the IPAddress (if supplied)\r\n\t // of the originating server rather than the host name.\r\n\t if(proxyDetected && app.IPAddress!=null)\r\n\t doc=new URL(\"http://\"+app.IPAddress+\"/\"+link);\r\n dis=new DataInputStream(doc.openStream());\r\n\t searchPage(dis,link);\r\n\t}\r\n catch(IOException e){}\r\n }", "@Override\n public boolean shouldVisit(Page referringPage, WebURL url) {\n\t String href = url.getURL();\n\t allUrlsObject.visitAllUrls(referringPage,url);\n\t // to keep track of all the urls extracted\n\t urlsExtracted++;\n\t uniqueUrlsExtracted.add(href);\n\t return href.startsWith(\"http://www.nytimes.com/\");\n}", "@Override\n public HashSet<String> findPostIds(String catWiseUrl) throws IOException {\n HashSet<String> postId = new HashSet<String>();\n Document document = Jsoup.connect(catWiseUrl).userAgent(\"Opera\").get();\n Element body = document.body();\n\n Elements posts = body.getElementsByClass(\"lead-news\").first().getElementsByTag(\"a\");\n\n for (Element post:posts) {\n String link = post.attr(\"href\");\n postId.add(link);\n }\n\n posts = body.getElementsByClass(\"lead-news-2nd\").first().getElementsByTag(\"a\");\n\n for (Element post:posts) {\n String link = post.attr(\"href\");\n postId.add(link);\n }\n\n posts = body.getElementsByClass(\"lead-news-3nd\").first().getElementsByTag(\"a\");\n\n for (Element post:posts) {\n String link = post.attr(\"href\");\n postId.add(link);\n\n if(postId.size()==5)\n break;\n }\n\n return postId;\n }", "boolean hasFeedItemSetLink();", "@Test\n\tpublic void testGetLinksUpperCaseLink() {\n\t\tList<String> results = helper.getLinks(\"drop tables; <A HREF=\\\"test.com\\\"> junk junk\", null);\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"test.com\", results.get(0));\n\t}", "public void wapTinyurl() {\n String url = \"http://m.nuomi.com/mianyang/deal/l5kkhcqr\";\r\n Pattern p = Pattern.compile(\"^http://\\\\w+\\\\.nuomi\\\\.com/\\\\w+/deal/(\\\\w+$)\");\r\n Matcher m = p.matcher(url);\r\n if (m.find()) {\r\n p(m.group(1));\r\n }\r\n }", "private String getFullText(Status status, TweetPrinter printer) {\n \t\tString text = status.getText();\n \n \t\tHashtagEntity[] hashtags = status.getHashtagEntities();\n \t\tif (hashtags != null) {\n \t\t\tfor (HashtagEntity hashtag : hashtags) {\n \t\t\t\ttry {\n \t\t\t\t\tString url = \"http://twitter.com/#search?q=\"\n \t\t\t\t\t\t\t+ URLEncoder.encode(hashtag.getText(), \"UTF-8\");\n \t\t\t\t\tString tag = \"#\" + hashtag.getText();\n \n \t\t\t\t\ttext = text.replace(tag, printer.getLink(tag, url));\n \t\t\t\t} catch (UnsupportedEncodingException e) {\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\tUserMentionEntity[] users = status.getUserMentionEntities();\n \t\tif (users != null) {\n \t\t\tfor (UserMentionEntity user : users) {\n \t\t\t\tString url = \"http://twitter.com/\" + user.getScreenName();\n \t\t\t\tString tag = \"@\" + user.getScreenName();\n \n \t\t\t\ttext = text.replace(tag, printer.getLink(tag, url));\n \t\t\t}\n \t\t}\n \n \t\tString url = \"http://twitter.com/\" + status.getUser().getScreenName();\n \t\tString tag = \"@\" + status.getUser().getScreenName();\n \n \t\ttext = text.replace(tag, printer.getLink(tag, url));\n \n \t\treturn text;\n \t}", "@Test\n\tpublic void testGetLinksRelativeLink() {\n\t\tList<String> results = helper\n\t\t\t\t.getLinks(\"drop tables; <A HREF=\\\"/test\\\"> junk junk\", \"http://www.bobbylough.com\");\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"http://www.bobbylough.com/test\", results.get(0));\n\t}", "private String proceesTweetText(String tweetText) {\n // remove new lines\n tweetText = tweetText.replace(\"\\n\",\"\").replace(\"\\r\",\"\");\n // remove urls \"https://...\":\n tweetText = tweetText.replaceAll(\"https?://\\\\S+\\\\s?\", \"\");\n // remove users \"@...\":\n tweetText = tweetText.replaceAll(\"@\\\\S+\\\\s?\", \"\");\n return tweetText;\n }", "public List<String> homeTimeline() {\r\n\t\tList<String> twitterResponseList = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tProperties properties = getProperties();\r\n\t\t\tString apiUrl = properties.getProperty(\"twitter.api.home.timeline\") + \"?count=10\"; // append count to max of\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 10\r\n\r\n\t\t\tHttpResponse apiResponse = executeHttpGet(apiUrl);\r\n\r\n\t\t\tif (200 == apiResponse.getStatusLine().getStatusCode()) {\r\n\t\t\t\tJSONArray jsonArray = new JSONArray(EntityUtils.toString(apiResponse.getEntity()));\r\n\t\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\t\tJSONObject userObject = (JSONObject) jsonObject.get(\"user\");\r\n\t\t\t\t\tString displayText = (String) userObject.get(\"screen_name\") + \" : \"\r\n\t\t\t\t\t\t\t+ (String) jsonObject.get(\"text\"); // data to be displayed in screen_name : tweet format\r\n\t\t\t\t\ttwitterResponseList.add(displayText); // list of data in the format mentioned above\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\treturn twitterResponseList;\r\n\r\n\t}", "public static List<UrlInfo> searchAllUrl() {\n\n //getSynonyms(queryKeywords);\n\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n\n String email = Secured.getUser(ctx());\n List<UrlEntry> entryIdList = UrlEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .findList();\n for (UrlEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n System.out.println(\"finalIdList---\" + finalIdList);\n List<UrlInfo> urlList = UrlInfo.find().select(\"url\").where().in(\"urlEntryId\", finalIdList).findList();\n /*ArrayList<String> urls = new ArrayList<String>();\n for (UrlInfo urlInfo : urlList) {\n urls.add(urlInfo.getUrl());\n }\n System.out.println(\"urls in search----\" + urls);*/\n return urlList;\n }", "private Boolean hashttp(String s)// checks if url entered has http:// on it\n {\n return s.contains(\"http://\") || s.contains(\"https://\");\n }", "List<WebURL> Filter(List<WebURL> urls){\n return null;\n }", "public void printAllSearchResultLinks(){\n\n System.out.println(\"resultLinks.size() = \" + resultLinks.size() );\n\n for (WebElement eachLinkElm : resultLinks) {\n // remove empty text with if statement\n System.out.println(\"eachLinkElm.getText() = \" + eachLinkElm.getText() );\n\n }\n\n }", "public boolean isRetweet() {\n\t\treturn text.trim().startsWith(\"RT @\");\n\t}", "public LinkedList<Status> getTweets() {\r\n return tweets;\r\n }", "@HEAD\n Call<Void> headFeed(@Url String url);", "List<? extends Link> getLinks();", "private String getURL(String feedUrl) {\n\tStringBuilder sb = null;\n\ttry {\n for(int i = 3; i>0; i--) {\n\t sb = new StringBuilder();\n URL url = new URL(feedUrl);\n\tHttpURLConnection uc = (HttpURLConnection) url.openConnection();\n\tuc.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 GTB7.1 ( .NET CLR 3.5.30729)\");\n\tuc.setRequestProperty(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\");\n\tuc.setRequestProperty(\"Accept-Language\", \"en-us,en;q=0.5\");\n\tuc.setRequestProperty(\"Accept-Encoding\", \"gzip,deflate\");\n\tuc.setRequestProperty(\"Accept-Charset\", \"ISO-8859-1,utf-8;q=0.7,*;q=0.7\");\n\tuc.setRequestProperty(\"Keep-Alive\", \"115\");\n\tuc.setRequestProperty(\"Connection\", \"keep-alive\");\n\tuc.setDoOutput(true);\n\tuc.setDoInput(true);\n\tuc.setUseCaches(false);\n\tuc.setRequestMethod(\"POST\");\n\tuc.setRequestProperty(\"Content-Type\", \"text/xml\");\n\t\n\tBufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));//uc.getInputStream()\n\tString inputLine;\n\tboolean refreshAgain = false;\n\twhile ((inputLine = in.readLine()) != null) {\n\t\tsb.append(inputLine);\n\t\tif( inputLine.contains(\"Refresh\") ) {\n\t\t\trefreshAgain = true;\n\t\t\tSystem.out.println(\"Refresh\");\n\t\t}\n\t}\n\tin.close();\n\tuc.disconnect();\t\t\n//\tRefresh\n\tif( refreshAgain ) {\n\t Thread.sleep(1000);\n\t}\n\telse break;\n }\n }catch(Exception ee){}\nreturn sb.toString();\n}", "public static ArrayList<URL> listLinks(URL baseURL, String htmlText) {\n // list to store links\n ArrayList<URL> links = new ArrayList<URL>();\n\n // compile string into regular expression\n Pattern p = Pattern.compile(REGEX);\n\n // match provided text against regular expression\n Matcher m = p.matcher(htmlText);\n\n // loop through every match found in text\n while ( m.find() ) \n {\n // add the appropriate group from regular expression to list\n try {\n\t\t\t\tlinks.add(new URL(baseURL, m.group(GROUP)));\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.err.println(\"Invalid URL\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n return links;\n }", "public ArrayList<String> search(String url) {\n Pattern msnPattern = Pattern.compile(\".*msn.com.*\");\n Pattern foolPattern = Pattern.compile(\".*fool.com.*\");\n Matcher foolMatcher = foolPattern.matcher(url);\n Matcher msnMatcher = msnPattern.matcher(url);\n\n ArrayList<String> stockArticles = new ArrayList<String>();\n if (foolMatcher.matches()) {\n Connection connection = Jsoup.connect(\"https://www.fool.com/market-movers/\");\n try {\n Document htmlDocument = connection.get();\n Elements linksOnPage = htmlDocument.select(\"h4\");\n for (Element link : linksOnPage) {\n stockArticles.add(link.text());\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n } else if (msnMatcher.matches()) {\n Connection connection2 = Jsoup.connect(\"http://www.msn.com/en-us/money/investing\");\n try {\n Document htmlDocument2 = connection2.get();\n Elements linksOnPage2 = htmlDocument2.select(\"h3\");\n for (Element link : linksOnPage2) {\n stockArticles.add(link.text());\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n } else {\n Connection connection3 = Jsoup.connect(\"https://www.nytimes.com/topic/organization/new-york-stock-exchange\");\n try {\n Document htmlDocument3 = connection3.get();\n Elements linksOnPage3 = htmlDocument3.select(\"h2\");\n for (Element link : linksOnPage3) {\n stockArticles.add(link.text());\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }\n return stockArticles;\n }", "private static void printMostRetweetedTweets() throws Exception{\n\t\t\n\t\tString max_retweeted_tweet[] = new String[3];\t//string containing tweets\n\t\tint max_counts[] = new int[3];\t//string containing their retweet count\n\t\t\n\t\tfor(Status status : statusList){\n\t\t\tif(!status.isRetweet() && status.getURLEntities().length != 0){\n\t\t\t\tint count = status.getRetweetCount();\n\t\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\tif(count>max_counts[index]){\n\t\t\t\t\tmax_counts[index] = count;\n\t\t\t\t\tmax_retweeted_tweet[index] = status.getText();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most retweeted tweets with links in them */\n\t\tSystem.out.println(\"the top 3 most retweeted tweets with links in them : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Tweet : \" + max_retweeted_tweet[i] + \" retweeted \"+ max_counts[i] + \" times\" );\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "private static boolean readUrls() {\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(urlFileName))) {\r\n\t\t\tline = br.readLine();\r\n\t\t\twhile ((line != null) && !line.isEmpty()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\turlList.add(new URL(\"http\", serverName, serverPort, line));\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\tlogger.info(\"malforemd URL: \" + line);\r\n\t\t\t\t}\r\n\t\t\t\tline = br.readLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.info(\"error reading URL file: \" + e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public List<RssItem> getItems() throws Exception {\n if (rssUrl.equals(\"http://www.prothom-alo.com/\"))\n return ProthomAlo.GetLinks();\n if (rssUrl.equals(\"http://www.bhorerkagoj.net/online/\"))\n return Bhorerkagoj.GetLinks();\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n\n RssParseHandler handler = new RssParseHandler();\n\n saxParser.parse(rssUrl, handler);\n\n\n return handler.getItems();\n\n }", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "private static Set<String> extractHosts(String rawContent) { \r\n\t\tString hostRegex = \"https:\\\\/\\\\/[a-zA-Z]([\\\\w\\\\.\\\\-])*\\\\.gov.br\";\r\n\t\tMatcher matcher = Pattern.compile(hostRegex).matcher(rawContent);\r\n\t\t\r\n\t\tSet<String> results = new HashSet<String>();\r\n\t\twhile(matcher.find()) {\r\n\t\t\tresults.add(matcher.group().replace(\"http://\", \"\").replace(\"https://\", \"\"));\r\n\t\t}\r\n\t\treturn results;\r\n\t\t\r\n\t}", "List<String> searchTweets(String keywords) throws TwitterException;", "@Override\n\tpublic List<UserTweet> getFeed() throws Exception {\n\t\tList<UserTweet> usertweets = new ArrayList<UserTweet>();\n\t\t\n\t\tUserTweet userTweet1 = new UserTweet();\n\t\tuserTweet1.setUsername(\"aren from dao\");\n\t\tuserTweet1.setTweetMessage(\"hey was up\");\n\t\t\n\t\tUserTweet userTweet2 = new UserTweet();\n\t\tuserTweet2.setUsername(\"aren2 new\");\n\t\tuserTweet2.setTweetMessage(\"hey was up 2\");\n\t\t\n\t\tusertweets.add(userTweet1);\n\t\tusertweets.add(userTweet2);\n\t\t\n\t\treturn usertweets;\n\t}", "private ArrayList<ResultPair> InitializeManualUrls()\n {\n\t ArrayList<ResultPair> fileUrls = new ArrayList<ResultPair>();\n\t fileUrls.add(new ResultPair(\"https://www.google.com\", true));\n\t fileUrls.add(new ResultPair(\"https://///www.google.com\", false));\n\t fileUrls.add(new ResultPair(\"\", false));\n\t fileUrls.add(new ResultPair(\"http://74.125.224.72/\", true));\n\t fileUrls.add(new ResultPair(\"file:///C:/\", true));\n\t fileUrls.add(new ResultPair(\"http://WWW.GOOGLE.COM\", true));\n\t fileUrls.add(new ResultPair(\"http://www.google.com:80/test1\", true));\n\t fileUrls.add(new ResultPair(\"h3t://go.cc:65a/$23?action=edit&mode=up\", false));\n\t fileUrls.add(new ResultPair(\"12345\", false));\n\t fileUrls.add(new ResultPair(\"http://www.space in here.com\", false));\n\t fileUrls.add(new ResultPair(\"http://site.com/#citation\", true));\n\t fileUrls.add(new ResultPair(\"ftp://site.com\", true));\n\t fileUrls.add(new ResultPair(\"http://site.com/hyphen-here\", true));\n\t fileUrls.add(new ResultPair(\"http://www.example.com:8080\", true));\n\t fileUrls.add(new ResultPair(\"foo://example.com:80/over/there?name=ferret#nose\", true));\n\t fileUrls.add(new ResultPair(\"foo://example.com:80/over/there#nose\", true));\n\t fileUrls.add(new ResultPair(\"foo://example.com/there?name=ferret\", true));\n\t fileUrls.add(new ResultPair(\"foo://example.com:8042/over/there?name=ferret#nose\", true));\n\t fileUrls.add(new ResultPair(\"http://user@example.com\", true));\n\t fileUrls.add(new ResultPair(\"http://142.10.5.2:8080/\", true));\n\t return fileUrls;\n }", "public void pullResources(String domainURL){\n URLResource page = new URLResource(\"https://www.dukelearntoprogram.com//course2/data/manylinks.html\");\n \n int startIndex;\n int endIndex;\n // loop through pages\n for (String s : page.lines()){\n \n //System.out.println(s);\n int pose = s.indexOf(domainURL);\n \n // if the url is in the line\n if (-1 != pose) {\n \n startIndex = s.lastIndexOf(\"\\\"\",pose); // find actual start\n endIndex = s.indexOf(\"\\\"\",pose+1); // find end\n \n System.out.println( s.substring(startIndex, endIndex));\n \n \n \n }\n \n \n }\n}" ]
[ "0.61322767", "0.59749424", "0.59253573", "0.58920187", "0.5824028", "0.57772297", "0.57462716", "0.56896436", "0.5676499", "0.5617059", "0.5566081", "0.5490205", "0.54744637", "0.54189", "0.5398523", "0.5371625", "0.5355034", "0.5354852", "0.5334429", "0.53280866", "0.5316715", "0.5300218", "0.529889", "0.52966523", "0.52884424", "0.5266298", "0.5257958", "0.5244644", "0.5237427", "0.522599", "0.5225789", "0.52127784", "0.5197724", "0.519088", "0.5170574", "0.5170574", "0.51418257", "0.51362085", "0.5132861", "0.5115712", "0.50845677", "0.50654274", "0.503538", "0.5034625", "0.5007317", "0.5007065", "0.4999318", "0.49968165", "0.49861854", "0.49720168", "0.49665344", "0.4939898", "0.49372768", "0.4936675", "0.49320975", "0.49268275", "0.49261358", "0.49248898", "0.49190342", "0.4918077", "0.49156332", "0.49150884", "0.49136814", "0.49135208", "0.49041218", "0.4890092", "0.48893556", "0.48844323", "0.4877342", "0.48648766", "0.48570266", "0.4850853", "0.48481798", "0.48457044", "0.48327243", "0.48279864", "0.4827882", "0.48257253", "0.4822834", "0.48194346", "0.48185673", "0.48171657", "0.48079395", "0.48026934", "0.48018885", "0.47977236", "0.4789957", "0.47856653", "0.47848555", "0.47662503", "0.47617906", "0.47617906", "0.47617906", "0.47617906", "0.47617906", "0.47560233", "0.47539747", "0.47522187", "0.4743843", "0.47424442" ]
0.575402
6
Type independent worker for equivalent overloaded methods
private void scheduleJob(Priority priority, Schedulable job) { if (controller.isSuppressed(priority, job) && priority != Priority.INTERNAL_SUPPRESS) { scheduleJob(Priority.INTERNAL_SUPPRESS, job); return; } TaskInfo info = taskInfos.get(job); // Cancel job if already scheduled if (info != null) { // Optimisation: nothing's changed, just return. if (priority == info.priority) { return; } cancel(job); } info = createTask(priority, job); jobs.add(priority, job); maybeScheduleSlice(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void work();", "Value worker(String main, String address);", "public interface Worker {\n\n\tvoid activate(String filteredClassValue);\n\n\tvoid stop();\n\n}", "public void createWorker(Worker worker){\n }", "public interface UndecoratedWorker {\r\n\r\n /**\r\n * Checks if the worker can move to a specific <code>Tile</code>.\r\n * @param t Variable that indicates the <code>Tile</code> at issue.\r\n * @return A boolean: <code>true</code> if the \"move\" operation is available, otherwise <code>false</code>.\r\n */\r\n boolean canMove(Tile t);\r\n\r\n /**\r\n * Handles the \"move\" operation of the worker.\r\n * @param t Variable that indicates the <code>Tile</code> at issue.\r\n */\r\n void move(Tile t);\r\n\r\n /**\r\n * Checks if the worker can build a block on a specific <code>Tile</code>.\r\n * @param t Variable that indicates the <code>Tile</code> at issue.\r\n * @return A boolean: <code>true</code> if the \"build\" operation is available, otherwise <code>false</code>.\r\n */\r\n boolean canBuildBlock(Tile t);\r\n\r\n /**\r\n * Handles the \"build block\" operation of the worker.\r\n * @param t Variable that indicates the <code>Tile</code> at issue.\r\n */\r\n void buildBlock(Tile t);\r\n\r\n /**\r\n * Checks if the worker can build a dome on a specific <code>Tile</code>.\r\n * @param t Variable that indicates the <code>Tile</code> at issue.\r\n * @return A boolean: <code>true</code> if the \"build dome\" operation is available, otherwise <code>false</code>.\r\n */\r\n boolean canBuildDome(Tile t);\r\n\r\n /**\r\n * Handles the \"build dome\" operation of the worker.\r\n * @param t Variable that indicates the <code>Tile</code> at issue.\r\n */\r\n void buildDome(Tile t);\r\n\r\n /**\r\n * Gets the position of the worker at issue.\r\n * @return The <code>Tile</code> where the worker is positioned upon.\r\n */\r\n Tile getPosition();\r\n\r\n /**\r\n * Sets the position of a worker in a specified <code>Tile</code>.\r\n * @param t The destination <code>Tile</code> where the worker must be put on.\r\n */\r\n void setPosition(Tile t);\r\n\r\n /**\r\n * Checks the GodPower of the worker associated.\r\n * @return A boolean: <code>true</code> if GodPower at issue is active,\r\n * otherwise <code>false</code>.\r\n */\r\n boolean getGodPower();\r\n\r\n /**\r\n * Sets the GodPower of the worker associated.\r\n * @param b A boolean: <code>true</code> if the GodPower at issue is active,\r\n * otherwise <code>false</code>.\r\n */\r\n void setGodPower(boolean b);\r\n\r\n /**\r\n * Gets the particular conditions of specific Gods.\r\n * @return The conditions class is where the info about particular conditions of specific Gods\r\n * is stored.\r\n */\r\n Conditions getConditions();\r\n\r\n /**\r\n * Handles the use of the GodPower of specific Gods.\r\n * @param use A boolean: <code>true</code> if the worker activates a particular condition,\r\n * otherwise <code>false</code>.\r\n */\r\n void useGodPower(boolean use);\r\n\r\n /**\r\n * Checks which player the worker at issue is associated to.\r\n * @return An integer that represents the player ID which the worker is associated with.\r\n */\r\n int getBelongToPlayer();\r\n\r\n /**\r\n * Check if any winning condition is satisfied.\r\n * <p></p>\r\n * The main win condition is for the worker of the player to \"move\" from a level 2 block to a level 3 block.\r\n * <p></p>\r\n * @param initialTile Variable that represents the initial <code>Tile</code> of the \"move\" operation.\r\n * @return A boolean: <code>true</code> if any winning condition is satisfied,\r\n * otherwise <code>false</code>.\r\n */\r\n boolean checkWin(Tile initialTile);\r\n\r\n /**\r\n * Brings the worker to the next state in the turn.\r\n */\r\n void nextState();\r\n\r\n /**\r\n * Sets the worker to a particular state in the turn.\r\n * @param state Variable that represents the index of the state in the turn.\r\n * <p>\r\n * If index equals 0: waiting;\r\n * <p>\r\n * If index equals 1: moving;\r\n * <p>\r\n * If index equals 2: building;\r\n * <p>\r\n * If index equals 3: using another worker;\r\n * <p>\r\n */\r\n void setState(int state);\r\n\r\n /**\r\n * Gets the state in the specified turn.\r\n * @return An integer that represents the number of the state in the turn.\r\n * <p>\r\n * If index equals 0: waiting;\r\n * <p>\r\n * If index equals 1: moving;\r\n * <p>\r\n * If index equals 2: building;\r\n * <p>\r\n * If index equals 3: using another worker;\r\n * <p>\r\n */\r\n int getState();\r\n\r\n /**\r\n * Analyzes all the adjacent tiles near the position of the worker.\r\n * @return A list of all the adjacent tiles near the position of the worker.\r\n */\r\n List<Tile> getAdjacentTiles();\r\n\r\n}", "public Worker<Void> getLoadWorker();", "public interface Manager<W extends Worker> extends Runnable {\n\n /**\n * This method should be called whenever we expect this manager to shut itself and\n * all its spawned processes down\n */\n void shutdown();\n\n /**\n * This method is called by a worker within its bounds to signify that\n * the given worker has completed its work and can now be assigned new tasks\n * @param worker the worker\n */\n void done(W worker);\n\n /**\n * Works just like {@link #done(Worker)} but signals that the assigned task was not\n * successfully performed\n * @param worker the worker\n */\n void fail(W worker);\n\n /**\n * This will signal the manager that a worker was interrupted. It is up to the manager to\n * decide whether this was intentional or by mistake\n * @param worker the worker that was interrupted\n */\n void interrupted(W worker);\n\n}", "@Override\n\tpublic void myWork() {\n\t\t\n\t}", "public interface IWorker {\n void work() throws IOException;\n}", "void work();", "public abstract void doWork();", "public interface WorkerService {\n\n boolean statusWriteBack(@Nullable Worker worker, @Nullable String taskId);\n}", "void done(W worker);", "public abstract void submit(Callable callable);", "GetWorkerResult getWorker(GetWorkerRequest getWorkerRequest);", "public interface Executor<T> {\n\n void submit(T arg);\n\n}", "public interface Process<R> {\n R run();\n}", "public interface OperatorInterface {\n public Object call(Engine engine, List<?> args);\n}", "abstract void doJob();", "public void work() {\n\t}", "public void work() {\n\t}", "<T> void run(T data);", "public interface DuelCallable<T, E> {\n\n\tvoid run(T one, E two);\n\n}", "protected void internalRun() {\n work();\n }", "worker(long workOn) {\n this.workOn = workOn;\n }", "public abstract void run();", "public abstract void run();", "public abstract void run();", "public abstract void run() ;", "public interface Master extends Runnable{\n\n /**\n * bind port and begin to accept request\n */\n void bind(WorkerPool workerPool);\n\n /**\n * handle the income requests ,accept and register to worker thread\n */\n void handleRequest();\n}", "public interface Work {\n}", "public interface IExecutorBase {\n <T> T call(ICallable<T> callable) throws Exception;\n\n <T1, T2> IMVal2<T1, T2> call(ICallable<T1> callable1, ICallable<T2> callable2) throws Exception;\n\n <T1, T2, T3> IMVal3<T1, T2, T3> call(ICallable<T1> callable1, ICallable<T2> callable2, ICallable<T3> callable3) throws Exception;\n}", "public interface ExecutorService {\n\n\n /**\n * beat 心跳\n * @return\n */\n public ReturnT<String> beat();\n\n\n public ReturnT<String> idleBeat(int jobId);\n\n\n /**\n * kill 掉某个job\n * @param jobId\n * @return\n */\n public ReturnT<String> kill(int jobId);\n\n\n /**\n * 记录掉某个日志\n * @param logDateTim\n * @param logId\n * @param fromLineNum\n * @return\n */\n public ReturnT<LogResult> log(long logDateTim, int logId, int fromLineNum);\n\n\n /**\n * 执行某个任务\n * @param triggerParam\n * @return\n */\n public ReturnT<String> run(TriggerParam triggerParam);\n\n}", "public abstract String getWorkerName();", "protected abstract T self();", "protected abstract T self();", "protected abstract T self();", "abstract void run() throws Exception;", "public abstract void runOperation();", "public abstract void task();", "abstract public void run() throws Exception;", "public ServiceExampleWorker() {\n super(\"ServiceExampleWorker\");\n shouldExecute = true;\n messageBinder = new IMessageBinder.Stub() {\n private List<ISubscriber> subscriberList = new ArrayList<>();\n\n @Override\n public void addSubscriber(ISubscriber subscriber) throws RemoteException {\n subscriberList.add(subscriber);\n }\n\n @Override\n public void removeSubscriber(ISubscriber subscriber) throws RemoteException {\n subscriberList.remove(subscriber);\n }\n\n @Override\n public void sendUpdate(String data) throws RemoteException {\n for (ISubscriber subscriber : subscriberList) {\n subscriber.send(data);\n }\n }\n\n @Override\n public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString) throws RemoteException {\n\n }\n };\n }", "public abstract void submit(Runnable runnable);", "protected abstract long doWork();", "public interface Executor<Work extends Runnable> {\n void execute(Work work);\n\n void shutdown();\n\n void addWorks(Work work);\n\n void removeWorks(int num);\n\n int getWorkSize();\n}", "protected ObservableWork(String type) {\r\n\t\tsuper(type);\r\n\t}", "@WorkerThread\n public abstract void zzaso();", "JobResponse apply();", "public abstract String getWorkerString();", "public interface INetworkHandler<T> extends Runnable {\n\n /**\n * The main method which starts the protocol implementation.\n * <p>\n * {@inheritDoc}\n */\n void run();\n\n /**\n * Sends the request of the network handler to all online peers of the node.\n *\n * @throws ConnectionFailedException If the other online clients can not be determined\n */\n void sendRequest(IRequest request)\n throws ConnectionFailedException;\n\n /**\n * Blocks until all notified clients have responded\n *\n * @throws InterruptedException If the thread got interrupted while waiting\n */\n void await()\n throws InterruptedException;\n\n /**\n * Blocks for the given timeout.\n *\n * @param timeout The timeout to wait\n * @param timeUnit The time unit which qualifies the timeout\n *\n * @throws InterruptedException If the thread got interrupted while waiting\n */\n void await(long timeout, TimeUnit timeUnit)\n throws InterruptedException;\n\n /**\n * Returns true once all notified clients have responded.\n *\n * @return True, if all notified clients have responded, false otherwise.\n */\n boolean isCompleted();\n\n /**\n * Returns the progress until this handler's communication\n * is considered complete (See {@link INetworkHandler#isCompleted()}).\n *\n * Returns values between 100 and 0 (inclusive).\n *\n * @return The progress\n */\n int getProgress();\n\n\n /**\n * Returns the final result of the exchange.\n * Note, that the result may be null before all clients have responded.\n *\n * @return The result once the all necessary clients responded. May be null before all clients have responded\n */\n T getResult();\n}", "public interface ResultProcessor {\n void handleResults(Run results);\n}", "public abstract void compute();", "public interface ISimpleWorkExecManager extends IAsyncWorkExecManager<IAsyncWorker, IAsyncWorker>\n{\n\n\tpublic static final ISimpleWorkExecManager INSTANCE = new SimpleWorkExecManagerImpl();\n}", "public interface Requestor {\r\n \r\n /**\r\n * Marshal the given operation and its parameters into a request object, send\r\n * it to the remote component, and interpret the answer and convert it back\r\n * into the return type of generic type T\r\n * \r\n * @param <T>\r\n * generic type of the return value\r\n * @param objectId\r\n * the object that this request relates to; not that this may not\r\n * necessarily just be the object that the method is called upon\r\n * @param operationName\r\n * the operation (=method) to invoke\r\n * @param typeOfReturnValue\r\n * the java reflection type of the returned type\r\n * @param argument\r\n * the arguments to the method call\r\n * @return the return value of the type given by typeOfReturnValue\r\n */\r\n <T> T sendRequestAndAwaitReply(String objectId, String operationName, Type typeOfReturnValue, String accessToken, Object... argument);\r\n\r\n}", "void allocateWorker(Work work);", "public interface Executor<E>{\n\t\tvoid execute(E object);\n\t}", "@Override\r\n\tabstract public void run();", "public interface Performance {\n void perform();\n}", "public abstract void engineWork() throws Exception;", "public interface ICompilerWorker extends IWorker {\n}", "public interface ThreadHandlerWorker {\n Message obtainThreadMessage(int what);\n\n void sendEmptyThreadMessage(int what);\n\n void sendThreadMessage(Message msg);\n\n void sendThreadMessageDelay(Message msg, long timeMillis);\n\n void sendEmptyThreadMessageDelay(int what, long timeMillis);\n\n void postThread(Runnable runnable);\n\n void postThreadDelay(Runnable runnable, long delay);\n\n void removeThreadCallbacks(Runnable runnable);\n\n void removeThreadMessage(int what);\n\n Handler obtainThreadHandler();\n}", "interface Workshop{\n\tabstract public void work();\n}", "public abstract String run(String args);", "public interface WorkService {\n}", "@Override\r\n\tpublic abstract void run();", "public interface CompensatableWork {\n\n /**\n * A method implementing work which can be confirmed and/or compensated by ConfirmationHandler and CompensationHandler.\n */\n void execute();\n\n}", "public abstract Value<T> run() throws Exception;", "public abstract void run() throws Exception;", "abstract public T doSomething();", "@Override\r\n\tpublic void executer() {\n\t}", "@Override\n abstract public void run();", "public static void run(){}", "<T> T callMethod(Object obj, String name, Class<T> resultType, Object... args)\n throws ScriptRunnerException;", "public interface WorkerListener {\n /**\n * Notifies the listener about successful completion of the auction.\n * @param result result of the auction evaluation.\n * @param clientId id of the client, who won the auction.\n */\n public void onCompletion(Auction.AuctionResult result, int clientId);\n\n /**\n * Notifies the listener about an error, which occurred during the auction.\n * @param errorMessage error message.\n */\n public void onError(String errorMessage);\n}", "public DataCaseWorker() {\n super();\n }", "public interface Executor {\n\n void setAction(Action action);\n boolean execute( Map<String,String> values, MODE mode) throws IOException;\n}", "private Response execute_work(Request request){\n if (request.getFname().equals(\"tellmenow\")){\n int returnValue = tellMeNow();\n }\n else if(request.getFname().equals(\"countPrimes\")){\n int returnValue = countPrimes(request.getArgs()[0]);\n }\n else if(request.getFname().equals(\"418Oracle\")){\n int returnValue = oracle418();\n }\n else{\n System.out.println(\"[Worker\"+String.valueOf(this.id)+\"] WARNING function name not recognized, dropping request\");\n }\n\n return new Response(id,request.getId(),request.getFname(),0);//0 meaning ok!\n }", "Runnable mk();", "abstract protected Object invoke0 (Object obj, Object[] args);", "public interface Task {\n public void run(Object o);\n}", "@Override\n\tpublic void additionalWeightWork() {\n\t\t\n\t}", "@Override\r\n\tpublic void internalWorked(double work) {\n\r\n\t}", "public abstract T executor(@Nullable Executor executor);", "public void dispatch();", "public interface GearmanWorker extends GearmanJobServerPool {\n\n \n public void setMaximumConcurrency(int maxConcurrentJobs);\n public int getMaximumConcurrency();\n \n /**\n * Registers a particular {@link GearmanFunction} with the worker. Once a\n * function has been registered with a worker, the worker is capable of\n * executing any {@link org.gearman.JobTask.Job} that matches the\n * registered function. Upon registering a function, the Worker notifies all\n * Gearman Job Servers that is can accept any job that contains the\n * applicable function.\n *\n * @param function The function being registered with the Worker.\n */\n public GearmanFunction addFunction(String name, GearmanFunction function);\n public GearmanFunction addFunction(String name, GearmanFunction function, long timeout, TimeUnit unit);\n \n public GearmanFunction getFunction(String name);\n public long getFunctionTimeout(String name);\n \n /**\n * Retrieve the names of all functions that have been registered with this\n * worker. If no functions have been registered, any empty set should be\n * returned.\n *\n * @return The name of all registered functions.\n */\n public Set<String> getRegisteredFunctions();\n \n /**\n * Unregisters a particular {@link GearmanFunction} from the worker. Once\n * a function has been unregistered from the Worker, a Worker will no longer\n * accept jobs which require the execution of the unregistered function.\n *\n * @param functionName\n */\n public boolean removeFunction(String functionName);\n\n /**\n * Unregisters all{@link GearmanFunction} from the worker. The effect of\n * which is that the worker will not execute any new jobs.\n *\n */\n public void unregisterAll();\n}", "public interface Work {\n default void doWork() {\n }\n}", "public TaskReturnType Run();", "default void doProcessor(URLBuilder builder, APIResult result){}", "void run(AnswerType parameter);", "Shared shared();", "public Object invoke(String name, Object... args) throws Exception;", "Handler<Q, R> handler();", "public interface ThreadPool<Job extends Runnable> {\n\n void execute(Job job);\n\n void shutDown();\n\n void addWorkers(int num);\n\n void removeWorkers(int num);\n\n int getJobSize();\n\n}", "public interface UIHandlerWorker {\n Message obtainUIMessage(int what);\n\n void sendEmptyUIMessage(int what);\n\n void sendUIMessage(Message msg);\n\n void sendUIMessageDelay(Message msg, long timeMillis);\n\n void sendEmptyUIMessageDelay(int what, long timeMillis);\n\n void postUI(Runnable runnable);\n\n void postUIDelay(Runnable runnable, long delay);\n\n void removeUICallbacks(Runnable runnable);\n\n void removeUIMessage(int what);\n\n Handler obtainUIHandler();\n}", "public abstract void call();", "public interface ApiMixer {\n Object execute(Object[] parameters);\n}", "public interface BINHaystackWorkerParent extends BInterface\n{\n public static final Type TYPE = Sys.loadType(BINHaystackWorkerParent.class);\n\n /**\n * Handle a network exception that occured when running a chore.\n */\n public void handleNetworkException(WorkerChore chore, CallNetworkException e);\n\n public BStatus getStatus();\n}", "public interface BasicOperator {\n public double compute(double... args);\n}", "@Override\n\t\t\tpublic void internalWorked(double work) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void worked(int work) {\n\t}", "@Override\n public void canWorkerRun(Map<Class<?>, Object> ejbs) throws ServiceExecutionFailedException {\n }" ]
[ "0.6450048", "0.6436482", "0.61772656", "0.61098933", "0.60255563", "0.58853555", "0.58663386", "0.5858567", "0.58513284", "0.5838133", "0.58174896", "0.5739407", "0.5725264", "0.57101697", "0.56736815", "0.56664455", "0.5599449", "0.5597309", "0.55972105", "0.5590066", "0.5590066", "0.5580772", "0.55734205", "0.55683804", "0.5559759", "0.55590427", "0.55590427", "0.55590427", "0.5539441", "0.5531944", "0.55179244", "0.55076766", "0.5461229", "0.54570234", "0.5456333", "0.5456333", "0.5456333", "0.5426855", "0.5421263", "0.54152805", "0.54087806", "0.540695", "0.5402986", "0.5401572", "0.5393137", "0.5392477", "0.5381307", "0.5379278", "0.5378064", "0.5375474", "0.5360161", "0.5356358", "0.53559715", "0.5348554", "0.5348074", "0.5327384", "0.5317312", "0.53029203", "0.5298987", "0.52980536", "0.52920157", "0.52859104", "0.5280582", "0.5275552", "0.5267479", "0.5267371", "0.5254878", "0.52532434", "0.52522564", "0.5239329", "0.5229389", "0.52283895", "0.5210427", "0.5209538", "0.52090377", "0.5207968", "0.5202138", "0.5199733", "0.51985", "0.5191532", "0.51846874", "0.517846", "0.51784086", "0.5175486", "0.51581746", "0.51550305", "0.5153228", "0.5150315", "0.51500213", "0.5149894", "0.5144952", "0.5135714", "0.5134854", "0.51344275", "0.51334834", "0.5132375", "0.5126165", "0.5122839", "0.5122405", "0.51216704", "0.51160145" ]
0.0
-1
Worker for the delayed & repeating methods
private void scheduleDelayedJob(Priority priority, Schedulable job, int minimumTime, int interval) { if (controller.isSuppressed(priority, job) && priority != Priority.INTERNAL_SUPPRESS) { scheduleDelayedJob(Priority.INTERNAL_SUPPRESS, job, minimumTime, interval); return; } TaskInfo info = taskInfos.get(job); if (info != null) { cancel(job); } double now = timer.getTime(); double startTime = now + minimumTime; info = createDelayedTask(priority, job, startTime, interval); delayedJobs.addDelayedJob(info); maybeScheduleSlice(startTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\npublic void run() {\n perform();\t\n}", "private SleeperTask()\r\n\t{\r\n\t\ttimer = new Timer();\r\n\t\tprovider = null;\r\n\t\taction = \"\";\r\n\t\tverbose = false;\r\n\t\tsetRepeat(5);\r\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\tif(change_tempo){\r\n\t\t\t\t\t\t\t\t\t\t\tPatternMaker.changeSpeed(pattern, ratio);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tgotoPractice(pattern);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}", "private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n MeasurableScheduler.super.getQueue().add(this);\n }\n // This might have been the final executed delayed\n // task. Wake up threads to check.\n else if (down)\n interruptIdleWorkers();\n }", "private void workOnQueue() {\n }", "public void runPendingTasks() {\n/* */ try {\n/* 578 */ this.loop.runTasks();\n/* 579 */ } catch (Exception e) {\n/* 580 */ recordException(e);\n/* */ } \n/* */ \n/* */ try {\n/* 584 */ this.loop.runScheduledTasks();\n/* 585 */ } catch (Exception e) {\n/* 586 */ recordException(e);\n/* */ } \n/* */ }", "@Override\n protected void execute() {\n double timePassed = Timer.getFPGATimestamp() - timePoint;\n\n boolean rumbleOver = (state == RUMBLE && timePassed > timeOn);\n boolean breakOver = (state == BREAK && timePassed > timeOff);\n\n if (rumbleOver) {\n rumble(false);\n if (repeatCount >= 0)\n repeatCount--;\n } else if (breakOver)\n rumble(true);\n }", "protected void internalRun() {\n work();\n }", "@Override\n public void run()\n {\n storage.unblock(Storage.Type.PRIMARY);\n sensorsOn = true;\n\n h.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n //shade starts a few seconds later; frameWidth / 2\n storage.unblock(Storage.Type.SHADE);\n }\n }, shadeLatency);\n System.out.println(\"X\");\n //put 2 workers to obtain and send data and refresh connection\n h.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n System.out.println(\"X1\");\n if (!experiment) {//if it is experiment, do it only once - dont put next job\n storage.sendToQualify();\n h.postDelayed(this, frameWidth); //6 seconds of data obtanining\n }\n else {\n storage.block(Storage.Type.PRIMARY);\n storage.writeToFile(getApplicationContext(), filename.toLowerCase(), Storage.Type.PRIMARY);\n }\n }\n }, frameWidth); //a few seconds later\n h.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n System.out.println(\"X2\");\n if (!experiment) {\n storage.sendShadeToQualify();\n h.postDelayed(this, frameWidth); //6 seconds of data obtanining\n }\n else { //if it is experiment, do it only once - dont put next job\n storage.block(Storage.Type.SHADE);\n storage.writeToFile(getApplicationContext(), filename.concat(\"2\"), Storage.Type.SHADE);\n //after experiment change flag and stop drawing chart\n experiment = false;\n sensorsOn = false;\n }\n }\n }, frameWidth + shadeLatency); //a few seconds later, frame + latency seconds\n if (!experiment)\n h.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n System.out.println(\"X3\");\n requestSensor();\n h.postDelayed(this, sensorRefreshTime); //request sensor every 35 seconds\n }\n }, sensorRefreshTime);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tstartRecallJobTask();\n\t\t\t\tmHandler.postDelayed(mHandlerTask, INTERVAL);\n\t\t\t}", "void restartEventsWithDelay(final boolean longDelay, final boolean alsoRescan, final boolean unblockEventsRun,\n final int logType)\n {\n if (longDelay) {\n\n Data workData = new Data.Builder()\n .putBoolean(PhoneProfilesService.EXTRA_ALSO_RESCAN, alsoRescan)\n .putBoolean(PhoneProfilesService.EXTRA_UNBLOCK_EVENTS_RUN, unblockEventsRun)\n .putInt(PhoneProfilesService.EXTRA_LOG_TYPE, logType)\n .build();\n\n OneTimeWorkRequest restartEventsWithDelayWorker;\n restartEventsWithDelayWorker =\n new OneTimeWorkRequest.Builder(RestartEventsWithDelayWorker.class)\n .addTag(RestartEventsWithDelayWorker.WORK_TAG_2)\n .setInputData(workData)\n .setInitialDelay(15, TimeUnit.SECONDS)\n .build();\n try {\n if (PPApplicationStatic.getApplicationStarted(true, true)) {\n WorkManager workManager = PPApplication.getWorkManagerInstance();\n if (workManager != null) {\n\n// //if (PPApplicationStatic.logEnabled()) {\n// ListenableFuture<List<WorkInfo>> statuses;\n// statuses = workManager.getWorkInfosForUniqueWork(RestartEventsWithDelayWorker.WORK_TAG);\n// try {\n// List<WorkInfo> workInfoList = statuses.get();\n// } catch (Exception ignored) {\n// }\n// //}\n\n// PPApplicationStatic.logE(\"[WORKER_CALL] DataWrapper.restartEventsWithDelay\", \"xxx\");\n //workManager.enqueue(restartEventsWithDelayWorker);\n //if (replace)\n workManager.enqueueUniqueWork(RestartEventsWithDelayWorker.WORK_TAG_2, ExistingWorkPolicy.REPLACE, restartEventsWithDelayWorker);\n //else\n // workManager.enqueueUniqueWork(RestartEventsWithDelayWorker.WORK_TAG_APPEND, ExistingWorkPolicy.APPEND_OR_REPLACE, restartEventsWithDelayWorker);\n }\n }\n } catch (Exception e) {\n PPApplicationStatic.recordException(e);\n }\n } else {\n// PPApplicationStatic.logE(\"[EXECUTOR_CALL] ***** DataWrapper.restartEventsWithDelay\", \"schedule\");\n\n final Context appContext = context.getApplicationContext();\n //final ScheduledExecutorService worker = Executors.newSingleThreadScheduledExecutor();\n Runnable runnable = () -> {\n// long start = System.currentTimeMillis();\n// PPApplicationStatic.logE(\"[IN_EXECUTOR] ***** DataWrapper.restartEventsWithDelay\", \"--------------- START\");\n\n PowerManager powerManager = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE);\n PowerManager.WakeLock wakeLock = null;\n try {\n if (powerManager != null) {\n wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, PPApplication.PACKAGE_NAME + \":DataWrapper_restartEventsWithDelay\");\n wakeLock.acquire(10 * 60 * 1000);\n }\n\n //PPExecutors.doRestartEventsWithDelay(alsoRescan, unblockEventsRun, logType, context);\n\n DataWrapper dataWrapper = new DataWrapper(appContext, false, 0, false, 0, 0, 0f);\n if (logType != PPApplication.ALTYPE_UNDEFINED)\n PPApplicationStatic.addActivityLog(appContext, logType, null, null, \"\");\n //dataWrapper.restartEvents(unblockEventsRun, true, true, false);\n dataWrapper.restartEventsWithRescan(alsoRescan, unblockEventsRun, false, false, true, false);\n //dataWrapper.invalidateDataWrapper();\n\n\n// long finish = System.currentTimeMillis();\n// long timeElapsed = finish - start;\n// PPApplicationStatic.logE(\"[IN_EXECUTOR] ***** DataWrapper.restartEventsWithDelay\", \"--------------- END - timeElapsed=\"+timeElapsed);\n } catch (Exception e) {\n// PPApplicationStatic.logE(\"[IN_EXECUTOR] PPApplication.startHandlerThread\", Log.getStackTraceString(e));\n PPApplicationStatic.recordException(e);\n } finally {\n if ((wakeLock != null) && wakeLock.isHeld()) {\n try {\n wakeLock.release();\n } catch (Exception ignored) {\n }\n }\n //worker.shutdown();\n }\n };\n PPApplicationStatic.createDelayedEventsHandlerExecutor();\n PPApplication.delayedEventsHandlerExecutor.schedule(runnable, 5, TimeUnit.SECONDS);\n }\n }", "public void run(){\n\t\texcutedTime ++;\r\n\t\texcutedTimePreRound ++ ;\r\n\t}", "public void run() {\n long start = System.nanoTime();\n try {\n activeCount.inc();\n long delay = start - nextExecutionTime;//实践执行时间-理论应该执行的实际点\n taskExecutionDelay.record(delay, TimeUnit.NANOSECONDS);\n // real logic\n if (isPeriodic())\n runPeriodic();\n else\n ScheduledFutureTask.super.run();\n } finally {\n activeCount.dec();\n taskExecutionTime.record(System.currentTimeMillis() - start, TimeUnit.MILLISECONDS);\n }\n }", "public void run() {\n\n if (players.isEmpty()) {\n timer.cancel();\n }\n HeightMapUpdate m;\n peons.step(seconds);\n houses.step(seconds);\n m = heightMap.GetUpdate();\n if (m != null) {\n sendAllPlayers(m);\n }\n \n RockUpdate ru;\n ru= heightMap.updateRocks(seconds);\n if(ru!=null)\n sendAllPlayers(ru);\n \n for (Effect e : effects.values()) {\n e.execute(this);\n }\n synchronized (effects) {\n effects.putAll(newEffects);\n effects.keySet().removeAll(deletedEffects);\n if (newEffects.size() + deletedEffects.size() > 0) {\n EffectUpdate eu = new EffectUpdate(newEffects, deletedEffects);\n sendAllPlayers(eu);\n newEffects.clear();\n deletedEffects.clear();\n }\n }\n if (frame % 8 == 0) {\n sendAllPlayers(new PlayerUpdate(players));\n }\n frame++;\n }", "@Override\n\t\tpublic void run() {\n\t\t\tisRepeatFlag = true;\n\t\t}", "public void run() {\n\t\tcurrentTime = 0;\n\t\twhile (currentTime < timeLimit) {\n\t\t\t// add chosen task(s) to the scheduler\n\t\t\taddTaskToServer();\n\t\t\t// calculate the peak hour in every step and empty queue time\n\t\t\tcalculatePeakHour();\n\t\t\tcalculateEmptyQueueTime();\n\t\t\t// show the evolution of the queues\n\t\t\tframe.displayData(getTasks(), generatedTasks, currentTime);\n\t\t\tcurrentTime++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(simulationSpeed);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// the time is over, stop other threads from running\n\t\tframe.displayData(getTasks(), generatedTasks, currentTime);\n\t\tthis.scheduler.stopServers();\n\t\t// wait one more second before showing statistics\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tframe.dispayStatistics();\n\n\t\twriter.close();\n\t}", "public void run() {\n\t\t\t\t\t\tif (__delayCounter == _delayCounter[0]) {\r\n\t\t\t\t\t\t\t_pageBook.showPage(__page);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void run() {\n loadAlertAnimationDelay(aType);\n }", "private void dofakework() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract int delay();", "public void run() {\t\t\r\n\t\tif(this.stopped) {\r\n\t\t\tthis.animationFigure.showBusy(false);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(this.state==null || this.state.getState() == State.UNBLOCKED) {\r\n\t\t\tthis.finished=true;\r\n\t\t this.animationFigure.showBusy(false);\r\n\t\t\t//notify Listeners and tell them that animation finished. This listeners are user defined listeners which will be informed.\r\n\t\t\tanimationFigure.notifyAnimationListener(new AnimationFinishedEvent(animationFigure, AnimationFinishedEvent.BUSY_FINISHED));\r\n\t\t\t//notify observers, here the observer which listens if animation is finished. this Observer looks into the animationqueue \r\n\t\t\t//after each finished \r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers(this.animationFigure);\r\n\t\t\t\r\n\t\t\t// notify waiting threads\r\n\t\t\tsynchronized (this) {\r\n\t\t\t\tthis.notifyAll();\r\n\t\t\t}\r\n\t\t return;\r\n\t\t}\r\n\t\tif (counter >= 5) {\r\n\t\t\tcounter = 0;\r\n\t\t\tthis.animationFigure.showBusy(!this.animationFigure.isShowBusy());\r\n\t\t}\r\n\t\tcounter++;\r\n\t\tmap.getDisplay().timerExec(100, this);\t\t\t\r\n\t}", "public void run(){\n Timer time = new Timer(); // Instantiate Timer Object\n\n ScheduledClass st = new ScheduledClass(this.job,this.shm,time,this.stopp); // Instantiate SheduledTask class\n time.schedule(st, 0, this.periodicwait); // Create Repetitively task for every 1 secs\n }", "private void runWork()\r\n\t{\r\n\t\tRunnable transferPending = new Runnable()\r\n\t\t{\r\n\r\n\t\t\tpublic void run()\r\n\t\t\t{\r\n\t\t\t\ttransferPendingCellData();\r\n\t\t\t\tfireTableDataChanged(); // causes the table to be updated\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\twhile(noStopRequested)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// refresh the plans vector\r\n\t\t\t\tplans = new java.util.LinkedList(Control.getInstance().getPlanObjects());\r\n\t\t\t\tcreatePendingCellData();\r\n\t\t\t\tSwingUtilities.invokeAndWait(transferPending);\r\n\t\t\t\tThread.sleep(2000L); // the REFRESH rate is set at two seconds\r\n\t\t\t}catch(InvocationTargetException tx)\r\n\t\t\t{\r\n\t\t\t\tlogger.error(\"runWork - InvocationTargetException building cell data: \", tx);\r\n\t\t\t\tstopRequest();\r\n\t\t\t}catch(InterruptedException x)\r\n\t\t\t{\r\n\t\t\t\tThread.currentThread().interrupt();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tsleep(dauer);\n\t\t\tt.interrupt();\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}", "@Override\n\tpublic void run() \n\t{\n\n\t\ttry \n\t\t{\n\t\tif(isDriver) \n\t\t\t{\n\t\t\t\tSystem.out.println(\" waiting for the workers\");\n\t\t\t\tstopSignal.await();\n\t\t\t\tSystem.out.println(\" driver Shutting down.\");\n\t\t\t}\n\t\telse \n\t\t\t{\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tSystem.out.println(\" Caller waiting \");\n\t\t\t\tstartSignal.await();\n\t\t\t\tSystem.out.println(\" Caller counting down \");\n\t\t\t\tstopSignal.countDown();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) \n\t\t{\n\t\t\tSystem.err.println(\"e:\"+e.getMessage());\n\t\t}\n\n\t}", "protected void runEachSecond() {\n \n }", "@Override\n\tpublic void teleopPeriodic() //runs the teleOp part of the code, repeats every 20 ms\n\t{\n\t\tScheduler.getInstance().run(); //has to be here, I think that this is looping the method\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the SmartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n//\t\tSmartDashboard.putBoolean(\"allOK\", Robot.driveFar.ultrasonicOK);\n\t\tdriveExecutor.execute(); //running the execute method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}", "@Override public void run() {\r\n\t\t\ttry {\r\n\t\t\t\twhile (!stopped) {\r\n\t\t\t\t\tThread.sleep(delay);\r\n\t\t\t\t\tif (!stopped) {\r\n\t\t\t\t\t\tflush();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (final InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t}\r\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "protected void runAfterIterations() {}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}", "@NonNull\n @Override\n public Result doWork() {\n\n Log.d(TAG, \"doWork: \");\n savedata();\n createNotification();\n\n OneTimeWorkRequest oneTimeWorkRequest = new OneTimeWorkRequest.Builder(MyWorkManager.class)\n .setInitialDelay(5, TimeUnit.SECONDS).build();\n WorkManager.getInstance().enqueueUniqueWork(\"aaa\", ExistingWorkPolicy.APPEND, oneTimeWorkRequest);\n\n\n return Result.success();\n\n }", "public void run(){\n \t\t\tread read = new read();\n \t\t\tpostHTML post = new postHTML();\t\t\t\n \t\t\treadNXT.scheduleAtFixedRate(read, 0, 10, TimeUnit.MILLISECONDS);\n \t\t\tsendserver.scheduleAtFixedRate(new getHTML(), 0, 1, TimeUnit.SECONDS);\n \t\t\tgetserver.scheduleAtFixedRate(post, 0, 1, TimeUnit.SECONDS);\n \t\t\t//change_motor(new boolean[] {true, true, true}, new byte[] {0,0,0}, 1);\n \t\t}", "public void loopExecute(){\n\n }", "@SuppressWarnings(\"unchecked\")\n\t\tpublic void run() {\n long throughputMeasurementStartTime = System.currentTimeMillis();\n\n byte[] reply;\n int reqId;\n int req = 0;\n\n Storage st = new Storage(nTXs);\n\n System.out.println(\"Executing experiment for \" + nTXs + \" ops\");\n\n for (int i = 0; i < nTXs; i++, req++) {\n long last_send_instant = System.nanoTime();\n if (dos) {\n reqId = proxy.generateRequestId((readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n proxy.TOMulticast(request, reqId, (readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n\n } else {\n \tif(readOnly) {\n \t\treply = proxy.invokeUnordered(request);\n \t} else {\n \t\treply = proxy.invokeOrdered(request);\n \t}\n }\n st.store(System.nanoTime() - last_send_instant);\n\n if (timeout > 0) {\n //sleeps timeout ms before sending next request\n try {\n\t\t\t\t\t\tThread.sleep(timeout);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n } \n\n } \n writeReportJSON(throughputMeasurementStartTime, st); \n }", "public abstract void backoffQueue();", "@Override\n public void run() {\n int i = SCAN_NUM;\n\t\t\t\tMessage msg1 = new Message();\n\t\t\t\tmsg1.what = WIFI_REFRESH;\n\t\t\t\tmwifiHandler.sendMessage(msg1);\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n refreshWifi();\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = WIFI_REFRESH_FINISH;\n\t\t\t\tmwifiHandler.sendMessage(msg);\n }", "public void run() {\r\n\t\t\r\n\t\tlong lastTime = new Date().getTime();\r\n\t\t\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tlong ct = new Date().getTime();\r\n\t\t\tif (ct-lastTime < 50)\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//thread.slee(10-ct+lastTime);\r\n\t\t\t\t\tThread.sleep(50);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\tlastTime = new Date().getTime();\r\n\t\t\t\r\n\t\t\t//System.out.println(lastTime);\r\n\t\t\t\r\n\t\t\tif (working /*|| drawArea == null || drawArea.getGraphicsConfiguration() == null*/)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\tworker = new MySwingWorker(tempImage,this);\r\n\t\t \tworker.execute();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void run() {\r\n\t\tnotifyViews();\r\n\t\tfor (int i = 0; i < 100000; i++) {\r\n\t\t\ttick();\r\n\t\t}\r\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "private void calculate() throws InterruptedException {\n\tfor (int i = 1; i <= 100; i++) {\n\t Thread.sleep(100);\n\t update(i);\n\t}\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlong nowTime = System.currentTimeMillis();\n\t\t\t\t\t//Logger.debug(\"测试主动回答线程================================系统时间\" + nowTime);\n\t\t\t\t\tif (nowTime - mIStartTime <= timeNum + 1000 && nowTime - mIStartTime >= timeNum) {\n\t\t\t\t\t\tmICount++;\n\t\t\t\t\t\tcall.OnEnd();\n\t\t\t\t\t\tsetStartTime(nowTime);\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t}", "public void run() {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tThread.sleep(500L);\n\t\t\t\t\t// Thread.sleep(30);\n\t\t\t\t\trunOnUiThread(done);\n\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\r\n public void run() {\r\n CountDown.addItems(3);\r\n while(AH_AgentThread.running) {\r\n try {\r\n int i = 0;\r\n ArrayList<Item> auctionList = getAuctionList();\r\n int size = auctionList.size();\r\n int needed = 3 - auctionList.size();\r\n if(needed > 0){\r\n addItems(needed);\r\n }\r\n //change to while\r\n while(i < size) {\r\n Item listItem = auctionList.get(i);\r\n long currentTime = System.currentTimeMillis();\r\n listItem.remainingTime(currentTime);\r\n long timeLeft = listItem.getRemainingTime();\r\n if (timeLeft <= 0) {\r\n itemResult(listItem);\r\n }\r\n i++;\r\n size = auctionList.size();\r\n }\r\n Thread.sleep(500);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tdimensionclip3.start();\r\n\t\t\t\t\t\t\tTimer fourtheffect = new Timer();\r\n\t\t\t\t\t\t\tTimerTask fourtheffecttask = new TimerTask() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\tdimensionclip4.start();\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\tfourtheffect.schedule(fourtheffecttask, 1300);\r\n\t\t\t\t\t\t}", "public void runSynchronous() {\r\n\t\twhile (data.getPlayerNum() < data.getNumPlayers()) {\r\n\t\t\tPlayer player = data.getCurrentPlayer();\r\n\t\t\tString result = randomEventSimulator(player);\r\n\t\t\tMainGameWindow.setMessage(String.format(\"%s: %s\", player.getName(), result));\r\n\t\t\tMULETimer timer = new MULETimer(2000);\r\n\t\t\ttimer.startSynchronous();\r\n\t\t\tdata.nextPlayer();\r\n\t\t\tdata.savePoint();\r\n\t\t}\r\n\t\tdata.resetPlayerNum();\r\n\t\tdata.nextState();\r\n\t}", "@Override\n\tpublic WorkerThread call() throws Exception {\n\t\tsetMessage();\n\t\tclock.messageClock++;\n\t\twhile (clock.messageClock != 10) {\n\t\t\tThread.sleep(1000);\n\t\t}\n\t\tchangeState();\n\t\treturn this;\n\t}", "public void run() {\n Thread.currentThread().setPriority(Thread.NORM_PRIORITY);\n while( true ) {\n long currentTime = System.currentTimeMillis();\n for(H2ONode n: H2O.CLOUD._memary) {\n if (n == H2O.SELF) continue;\n for (RPC t : n.tasks()) {\n if (H2O.CLOUD.contains(t._target) ||\n // Also retry clients who do not appear to be shutdown\n (t._target._heartbeat._client && t._retry < HeartBeatThread.CLIENT_TIMEOUT)) {\n if (currentTime > (t._started + t._retry) && !t.isDone() && !t._nack) {\n if (++t._resendsCnt % 10 == 0)\n Log.warn(\"Got \" + t._resendsCnt + \" resends on task #\" + t._tasknum + \", class = \" + t._dt.getClass().getSimpleName());\n t.call();\n }\n } else { // Target is dead, nobody to retry to\n t.cancel(true);\n }\n }\n }\n long timeElapsed = System.currentTimeMillis() - currentTime;\n if(timeElapsed < 1000)\n try {Thread.sleep(1000-timeElapsed);} catch (InterruptedException e) {}\n }\n }", "@Override\n public void run() {\n handler.postDelayed(runnableCode, apiCallFrequency);\n\n //Initiates reload of forceLoad() in TickerLoader\n reload();\n }", "protected void onQueued() {}", "public void cycle() {\r\n processTask(); // tune relative frequency?\r\n processConcept(); // use this order to check the new result\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\tArrayBlockingQueue<ByteBuffer> cachedBuffers = null;\n\t\t\tScheduledFuture<?> futureP = null;\n\t\t\tScheduledFuture<?> futureA = null;\n\t\t\tScheduledFuture<?> futureB = null;\n\t\t\ttry {\n\t\t\t\tScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1, new ThreadFactory() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Thread newThread(@Nonnull Runnable r) {\n\t\t\t\t\t\tThread t = new Thread(THREAD_GROUP, r);\n\t\t\t\t\t\tt.setDaemon(true);\n\t\t\t\t\t\treturn t;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tByteBuffer b = ByteBuffer.wrap(genId);\n\t\t\t\tb.putInt(workerId);\n\t\t\t\tb.putLong(Long.reverse(System.nanoTime()) ^ System.currentTimeMillis());\n\t\t\t\tb.putInt(ThreadLocalFixedSeedRandom.current().nextInt());\n\t\t\t\tb.flip();\n\t\t\t\tb.get(genId);\n\n\t\t\t\t// tasks should be removed if the future is canceled\n\t\t\t\texecutor.setRemoveOnCancelPolicy(true);\n\n\t\t\t\t// make sure shutdown removes all pending tasks\n\t\t\t\texecutor.setContinueExistingPeriodicTasksAfterShutdownPolicy(false);\n\t\t\t\texecutor.setExecuteExistingDelayedTasksAfterShutdownPolicy(false);\n\n\t\t\t\tcachedBuffers = new ArrayBlockingQueue<>(CACHED_BUFFERS);\n\t\t\t\tfor (int i = 0; i < CACHED_BUFFERS; i++) {\n\t\t\t\t\tByteBuffer buff = ByteBuffer.allocate(BUFFER_SIZE);\n\t\t\t\t\tif (rustMode) {\n\t\t\t\t\t\tbuff.order(ByteOrder.LITTLE_ENDIAN);\n\t\t\t\t\t}\n\t\t\t\t\tcachedBuffers.add(buff);\n\t\t\t\t}\n\n\t\t\t\tint personSize = personsGenerator.itemSize();\n\t\t\t\tint auctionSize = auctionsGenerator.itemSize();\n\t\t\t\tint bidSize = bidGenerator.itemSize();\n\n\t\t\t\tlong ratio = targetPartitionSize / TOTAL_EVENT_RATIO;\n\t\t\t\tlong personsToGenerate = (PERSON_EVENT_RATIO * ratio) / personSize;\n\t\t\t\tlong auctionsToGenerate = (AUCTION_EVENT_RATIO * ratio) / auctionSize;\n\t\t\t\tlong bidsToGenerate = (BID_EVENT_RATIO * ratio) / auctionSize;\n\t\t\t\tlong recordsToGenerate = personsToGenerate + auctionsToGenerate + bidsToGenerate;\n\n\t\t\t\tint itemsPerBufferPerson = (BUFFER_SIZE - METADATA_SIZE) / personSize;\n\t\t\t\tint itemsPerBufferAuction = (BUFFER_SIZE - METADATA_SIZE) / auctionSize;\n\t\t\t\tint itemsPerBufferBid = (BUFFER_SIZE - METADATA_SIZE) / bidSize;\n\n\t\t\t\tAtomicLong sharedCounterPerson = new AtomicLong();\n\t\t\t\tAtomicLong sharedCounterAuction = new AtomicLong();\n\t\t\t\tAtomicLong sharedCounterBid = new AtomicLong();\n\n\t\t\t\tstarter.countDown();\n\t\t\t\tfairStarter.await();\n\n\t\t\t\tThroughtputLogger personLogger = new ThroughtputLogger(sharedCounterPerson, csvDirectory, name, topicNamePerson + \"-\" + workerId, 5, personSize);\n\t\t\t\tfutureP = executor.scheduleAtFixedRate(personLogger, 5, 5, TimeUnit.SECONDS);\n\n\t\t\t\tThroughtputLogger auctionLogger = new ThroughtputLogger(sharedCounterAuction, csvDirectory, name, topicNameAuction + \"-\" + workerId,5, auctionSize);\n\t\t\t\tfutureA = executor.scheduleAtFixedRate(auctionLogger, 6, 5, TimeUnit.SECONDS);\n\n\t\t\t\tThroughtputLogger bidsLogger = new ThroughtputLogger(sharedCounterBid, csvDirectory, name, topicNameBid + \"-\" + workerId,5, bidSize);\n\t\t\t\tfutureB = executor.scheduleAtFixedRate(bidsLogger, 6, 5, TimeUnit.SECONDS);\n\n\t\t\t\tdouble startMs = System.currentTimeMillis();\n\t\t\t\tlong sentBytes = 0;\n\t\t\t\tThreadLocalFixedSeedRandom randomness = ThreadLocalFixedSeedRandom.current();\n\n\n\t\t\t\tlong desiredThroughputBytesPerSecondMax = desiredThroughputBytesPerSecond;\n\t\t\t\tlong desiredThroughputBytesPerSecondMin = varyingWorkload ? 1024 * 1024 : desiredThroughputBytesPerSecond; // 1 MB/s\n\t\t\t\tlong throughputDelta = varyingWorkload ? 512 * 1024 : 0;\n\t\t\t\tlong currentThroughput = desiredThroughputBytesPerSecondMin;\n\t\t\t\tlong throughputChangeTimestamp = 0;\n\n\t\t\t\tRateLimiter throughputThrottler = RateLimiter.create(currentThroughput, 5, TimeUnit.SECONDS);\n\t\t\t\tLOG.debug(\"Create throughputThrottler for {} -> << {} MB/sec : {} MB/sec >>\",\n\t\t\t\t\t\tworkerId, desiredThroughputBytesPerSecondMin / ONE_MEGABYTE, desiredThroughputBytesPerSecondMax / ONE_MEGABYTE);\n\t\t\t\tint chkP = personsGenerator.genChecksum();\n\t\t\t\tint chkA = auctionsGenerator.genChecksum();\n\t\t\t\tint chkB = bidGenerator.genChecksum();\n\t\t\t\tlong pendingPerson = (recordsToGenerate / TOTAL_EVENT_RATIO) * PERSON_EVENT_RATIO;\n\t\t\t\tlong pendingAuctions = (recordsToGenerate / TOTAL_EVENT_RATIO) * AUCTION_EVENT_RATIO;\n\t\t\t\tlong pendingBids = (recordsToGenerate / TOTAL_EVENT_RATIO) * BID_EVENT_RATIO;\n\t\t\t\tlong sentBytesDelta = 0;\n\t\t\t\tByteBuffer bufP = cachedBuffers.take();\n\t\t\t\tByteBuffer bufA = cachedBuffers.take();\n\t\t\t\tByteBuffer bufB = cachedBuffers.take();\n\t\t\t\tbufA.putInt(chkA);\n\t\t\t\tbufP.putInt(chkP);\n\t\t\t\tbufB.putInt(chkB);\n\t\t\t\tint itemsInThisBufferA = (int) Math.min(itemsPerBufferAuction, pendingAuctions);\n\t\t\t\tint itemsInThisBufferP = (int) Math.min(itemsPerBufferPerson, pendingPerson);\n\t\t\t\tint itemsInThisBufferB = (int) Math.min(itemsPerBufferBid, pendingBids);\n\t\t\t\tlong backlogPerson = pendingPerson - itemsInThisBufferP;\n\t\t\t\tlong backlogAuction = pendingAuctions - itemsInThisBufferA;\n\t\t\t\tlong backlogBid = pendingBids - itemsInThisBufferA;\n\t\t\t\tbufP.putInt(itemsInThisBufferP);\n\t\t\t\tbufP.putLong(backlogPerson);\n\t\t\t\tbufA.putInt(itemsInThisBufferA);\n\t\t\t\tbufA.putLong(backlogAuction);\n\t\t\t\tbufB.putInt(itemsInThisBufferB);\n\t\t\t\tbufB.putLong(backlogBid);\n\n\t\t\t\tlong sentPersons = 0;\n\t\t\t\tlong sentAuctions = 0;\n\t\t\t\tlong sentBids = 0;\n\t\t\t\tlong eventId = 0;\n\n\t\t\t\tfor (; eventId < recordsToGenerate; eventId++) {\n\n\t\t\t\t\tfinal long timestamp = System.currentTimeMillis();\n\n\t\t\t\t\tlong rem = eventId % TOTAL_EVENT_RATIO;\n\t\t\t\t\tif (rem < PERSON_EVENT_RATIO) {\n\t\t\t\t\t\tpersonsGenerator.writeItem(eventId, timestamp, randomness, bufP);\n\t\t\t\t\t\tpendingPerson--;\n\t\t\t\t\t\tif (bufP.remaining() < personSize) {\n\t\t\t\t\t\t\tbufP.position(bufP.position() + bufP.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNamePerson, targetPartition, genId, bufP);\n\t\t\t\t\t\t\tkafkaProducerPersons.send(kafkaRecord, new InternalCallback(cachedBuffers, bufP, sharedCounterPerson, itemsInThisBufferP));\n\t\t\t\t\t\t\tsentPersons += itemsInThisBufferP;\n\t\t\t\t\t\t\tbufP = cachedBuffers.take();\n\t\t\t\t\t\t\tbufP.putInt(chkP);\n\t\t\t\t\t\t\titemsInThisBufferP = (int) Math.min(itemsPerBufferPerson, pendingPerson);\n\t\t\t\t\t\t\tbacklogPerson = pendingPerson - itemsInThisBufferP;\n\t\t\t\t\t\t\tbufP.putInt(itemsInThisBufferP);\n\t\t\t\t\t\t\tbufP.putLong(backlogPerson);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (rem < (PERSON_EVENT_RATIO + AUCTION_EVENT_RATIO)) {\n\t\t\t\t\t\tauctionsGenerator.writeItem(eventId, timestamp, randomness, bufA);\n\t\t\t\t\t\tpendingAuctions--;\n\t\t\t\t\t\tif (bufA.remaining() < auctionSize) {\n\t\t\t\t\t\t\tbufA.position(bufA.position() + bufA.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNameAuction, targetPartition, genId, bufA);\n\t\t\t\t\t\t\tkafkaProducerAuctions.send(kafkaRecord, new InternalCallback(cachedBuffers, bufA, sharedCounterAuction, itemsInThisBufferA));\n\t\t\t\t\t\t\tsentAuctions += itemsInThisBufferA;\n\t\t\t\t\t\t\tbufA = cachedBuffers.take();\n\t\t\t\t\t\t\tbufA.putInt(chkA);\n\t\t\t\t\t\t\titemsInThisBufferA = (int) Math.min(itemsPerBufferAuction, pendingAuctions);\n\t\t\t\t\t\t\tbacklogAuction = pendingAuctions - itemsInThisBufferA;\n\t\t\t\t\t\t\tbufA.putInt(itemsInThisBufferA);\n\t\t\t\t\t\t\tbufA.putLong(backlogAuction);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbidGenerator.writeItem(eventId, timestamp, randomness, bufB);\n\t\t\t\t\t\tpendingBids--;\n\t\t\t\t\t\tif (bufB.remaining() < bidSize) {\n\t\t\t\t\t\t\tbufB.position(bufB.position() + bufB.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNameBid, targetPartition, genId, bufB);\n\t\t\t\t\t\t\tkafkaProducerBids.send(kafkaRecord, new InternalCallback(cachedBuffers, bufB, sharedCounterBid, itemsInThisBufferB));\n\t\t\t\t\t\t\tsentBids += itemsInThisBufferB;\n\t\t\t\t\t\t\tbufB = cachedBuffers.take();\n\t\t\t\t\t\t\tbufB.putInt(chkB);\n\t\t\t\t\t\t\titemsInThisBufferB = (int) Math.min(itemsPerBufferBid, pendingBids);\n\t\t\t\t\t\t\tbacklogBid = pendingBids - itemsInThisBufferB;\n\t\t\t\t\t\t\tbufB.putInt(itemsInThisBufferB);\n\t\t\t\t\t\t\tbufB.putLong(backlogBid);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n//\n\n\t\t\t\t\tif (sentBytesDelta > LOGGING_THRESHOLD) {\n\t\t\t\t\t\tLOG.info(\"{} has just sent {} MB to kafka in {} sec - rate limiter {} bytes/sec\",\n\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\tsentBytes / ONE_MEGABYTE,\n\t\t\t\t\t\t\t\t(timestamp - startMs) / 1_000,\n\t\t\t\t\t\t\t\tthroughputThrottler.getRate());\n\t\t\t\t\t\tsentBytesDelta = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((timestamp - throughputChangeTimestamp) > 10_000) {\n\t\t\t\t\t\tcurrentThroughput += throughputDelta;\n\t\t\t\t\t\tif (currentThroughput > desiredThroughputBytesPerSecondMax) {\n\t\t\t\t\t\t\tthroughputDelta = -throughputDelta;\n\t\t\t\t\t\t} else if (currentThroughput < desiredThroughputBytesPerSecondMin) {\n\t\t\t\t\t\t\tcurrentThroughput = desiredThroughputBytesPerSecondMin;\n\t\t\t\t\t\t\tthroughputDelta = -throughputDelta;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthroughputThrottler.setRate(currentThroughput);\n\t\t\t\t\t\tthroughputChangeTimestamp = timestamp;\n\t\t\t\t\t\tLOG.debug(\"Throttler changed to {}\", currentThroughput);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterPerson.compareAndSet(sentPersons, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterAuction.compareAndSet(sentAuctions, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterAuction.compareAndSet(sentBids, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\tdouble end = System.currentTimeMillis();\n\t\t\t\tdouble diff = end - startMs;\n\t\t\t\tLOG.info(\"{} is finished after {} msec and {} GBs and {} items with an overall throughput of {}\",\n\t\t\t\t\t\tname,\n\t\t\t\t\t\tdiff,\n\t\t\t\t\t\tsentBytes / ONE_GIGABYTE,\n\t\t\t\t\t\trecordsToGenerate,\n\t\t\t\t\t\t(sentBytes * 1_000.0) / (diff * ONE_GIGABYTE));\n\t\t\t} catch (Throwable error) {\n\t\t\t\tLOG.error(\"Error: {}\", error);\n\t\t\t} finally {\n\t\t\t\tif (cachedBuffers != null) {\n\t\t\t\t\tcachedBuffers.clear();\n\t\t\t\t}\n\t\t\t\tkafkaProducerAuctions.close();\n\t\t\t\tkafkaProducerPersons.close();\n\t\t\t\tkafkaProducerBids.close();\n\t\t\t\tcontroller.countDown();\n\t\t\t\tif (futureA != null) {\n\t\t\t\t\tfutureA.cancel(false);\n\t\t\t\t}\n\t\t\t\tif (futureP != null) {\n\t\t\t\t\tfutureP.cancel(false);\n\t\t\t\t}\n\t\t\t\tif (futureB != null) {\n\t\t\t\t\tfutureB.cancel(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void schedulerSleep() {\n\n\t\ttry {\n\n\t\t\tThread.sleep(timeSlice);\n\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t;\n\n\t}", "protected abstract void scheduleSuspicions();", "public long runScheduledPendingTasks() {\n/* */ try {\n/* 597 */ return this.loop.runScheduledTasks();\n/* 598 */ } catch (Exception e) {\n/* 599 */ recordException(e);\n/* 600 */ return this.loop.nextScheduledTask();\n/* */ } \n/* */ }", "@Override\n\t public void run() {\n\t \t \n\t currentItem = (currentItem +1) % picList.size();\n\t //更新界面\n\t // handler.sendEmptyMessage(0);\n timeHandler.sendEmptyMessageDelayed(0x01, 5000);\n\t }", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tTask t = bq.take();\n\n\t\t\t\t\n\t\t\t\tThread.sleep(t.getProcessTime() * 1000);\n\t\t\t\twaitingTime.addAndGet((-1) * t.getProcessTime());\n\t\t\t\tSimulator.getFrame().displayData(\"Client \"+t.getNr()+\" left. \\n\");\n\t\t\t\tsize--;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void sleeps() {\n\t\t\n\t}", "@Override\n public void run() {\n for (int i = 1; i < 6; i++) {\n source.schedule(i); //schedule integer 1 to 5 to the callback source\n }\n }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tdimensionclip2.start(); // 두번째 효과음 재생\r\n\t\t\t\t\tTimer thirdeffect = new Timer();\r\n\t\t\t\t\tTimerTask thirdeffecttask = new TimerTask() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tdimensionclip3.start();\r\n\t\t\t\t\t\t\tTimer fourtheffect = new Timer();\r\n\t\t\t\t\t\t\tTimerTask fourtheffecttask = new TimerTask() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\tdimensionclip4.start();\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\tfourtheffect.schedule(fourtheffecttask, 1300);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t\tthirdeffect.schedule(thirdeffecttask, 1400);\r\n\t\t\t\t}", "void kickQueueProcessor() {\n\n long timeNow = this.tools.getTimestamp();\n this.lastKicked = timeNow;\n\n // ideally, we would run the queue at this time\n final long latestTimeToRun = timeNow + this.config.getProcessQueueIntervalShort();\n\n // only update the run time if we are bringing it forward not pushing it back\n this.runAgainAfterMs.getAndUpdate(previousTimeToRunNext ->\n (previousTimeToRunNext > latestTimeToRun) ? latestTimeToRun : previousTimeToRunNext);\n }", "@Override\n public void run() {\n try{\n for(int n = 0;n < 20; n++){\n //This simulates 1sec of busy activity\n Thread.sleep(1000);\n //now talk to the ain thread\n myHandler.post(foregroundTask);\n }\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "private void scheduleJob() {\n\n }", "@Override\n public void doTask() throws InterruptedException {\n Thread.sleep(5000);\n }", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tfor(int i=0;i<=4;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Hii ....\");\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void execute() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n \tshooterWheel.shooterWheelSpeedControllerFwd.Pause();\n \t\n }", "@Override\n\t\t\tpublic void internalWorked(double work) {\n\t\t\t\t\n\t\t\t}", "public void execute() {\r\n\r\n\t\t// Fetch the 10 records from DB\r\n\t\t// Iterate over them\r\n\t\t// Fetch the ImageActionObject\r\n\t\t// Get the first task to work on\r\n\t\t// Inastantiate the task by ImageActionTaskFactory.getImageActionTask\r\n\t\t// Set the ImageActionObject\r\n\t\t// Submit the task to the executor\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\r\n\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\r\n\t\tlog.info(\"*** Executing poller at : \" + dateFormat.format(new Date()));\r\n\t\tList<ImageActionObject> incompleteImageActionObjects = new ArrayList<ImageActionObject>();\r\n\t\t// Fetching the 10 records from DB\r\n\t\ttry {\r\n\t\t\tincompleteImageActionObjects = imageActionImpl\r\n\t\t\t\t\t.searchIncompleteImageAction(5);\r\n\t\t\tlog.debug(\"*** Got \" + incompleteImageActionObjects.size()\r\n\t\t\t\t\t+ \" to process\");\r\n\t\t} catch (DbException e) {\r\n\t\t\t// TODO Handle Error\r\n\t\t\tlog.error(\"searchIncompleteImageAction failed\", e);\r\n\t\t}\r\n\t\t// iterate over list of image action objects\r\n\t\tlog.debug(\"incompleteImageActionObjects::\"\r\n\t\t\t\t+ incompleteImageActionObjects);\r\n\r\n\t\tfor (ImageActionObject imageActionObj : incompleteImageActionObjects) {\r\n\t\t\tlog.info(\"ImageAction Object in poller (\" + imageActionObj.getId()\r\n\t\t\t\t\t+ \"): Number of tasks: \"\r\n\t\t\t\t\t+ imageActionObj.getActions().size());\r\n\t\t\tlog.info(\"Current status of image action object:\"\r\n\t\t\t\t\t+ imageActionObj.getCurrent_task_status());\r\n\t\t\t\r\n\t\t\tif(imageActionToRunCountMap.containsKey(imageActionObj.getId())){\r\n\t\t\t\tInteger currentCount = imageActionToRunCountMap.get(imageActionObj.getId());\r\n\t\t\t\tif(currentCount < 10){\r\n\t\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), ++currentCount);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//mark error\r\n\t\t\t\t\tlog.info(\"mark image action {} to error after 10 tries\", imageActionObj.getId());\r\n\t\t\t\t\timageIdsInProcess.remove(imageActionObj.getImage_id());\r\n\t\t\t\t\timageActionObj.setCurrent_task_status(Constants.ERROR);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpersistService.updateImageAction(imageActionObj);\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} catch (DbException e) {\r\n\t\t\t\t\t\tlog.error(\"Error in Poller\",e);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\tfinally{\r\n\t\t\t\t\t\tremoveEntryFromImageActionCountMap(imageActionObj.getId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\t\t\t\t\r\n\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (imageIdsInProcess.contains(imageActionObj.getImage_id())) {\r\n\t\t\t\tlog.info(\"Image already in process. Skipping\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\timageIdsInProcess.add(imageActionObj.getImage_id());\r\n\r\n\t\t\tif (imageActionObj.getCurrent_task_status() != null\r\n\t\t\t\t\t&& imageActionObj.getCurrent_task_status().equals(\r\n\t\t\t\t\t\t\tConstants.INCOMPLETE)) {\r\n\t\t\t\tExecuteActions task = new ExecuteActions(imageActionObj);\r\n\t\t\t\tImageActionExecutor.submitTask(task);\r\n\t\t\t\tlog.info(\"Submitted task for ExecuteActions for id: \"\r\n\t\t\t\t\t\t+ imageActionObj.getId());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "private void startLoop(){\n new BukkitRunnable(){\n\n int lastFirework = 0, loopsTillFirework = (10*10); //2 ticks per loop, 10 seconds\n\n @Override\n public void run() {\n if(shouldCancelRunnable){ //if we should cancel the runnable, cancel immediately!\n shouldCancelRunnable = false;\n this.cancel();\n return; //dont continue further, we're cancelled!\n }\n\n ArrayList<JuggernautPlayer> players = JuggernautGame.getInstance().getPlayers(); //get all ingame players\n if(chestProgressLevel==0) { //Logic if the chest is LOCKED\n lastFirework = loopsTillFirework; //set the count for last firework to max, so it shoots instantly when opened. //todo this should be somewhere else for optimisation\n boolean didProgressionUpdate = false; //dirty bit to see if we have updated any players\n for (JuggernautPlayer jp : players) { //do this for every player\n\n Player p = jp.getPlayer(); //get the actual player first\n\n //particle logic: Check if player is in the radius of the chest to see particles. Ignore Y levels if player is no longer alive.\n if (SkyMathHelper.isInRadius(location, p.getLocation(), (double) particleRadius, !jp.isAlive())) {\n if(jp.isSurvivor() || unlockedPercentage>0){ //if the player is a survivor, or if its the juggernaut who CAN re-lock the chest, show particles!\n displayParticles(p, chestRadius, ParticleColor.GREEN);\n }\n }\n\n //hologram logics: check if player is in radius of the chest to see holograms. Ignore Y levels if player is dead.\n if (SkyMathHelper.isInRadius(location, p.getLocation(), (double)nametagRadius, !jp.isAlive())) {\n\n //if progression changed since the last update, and they already have the progressbar loaded, update their progress bar!\n if (didProgressionChange && jp.getLoadedEntities().containsKey(armorstandProgressbarID)) {\n didProgressionUpdate = true; //set dirty bit to indicate we have done updates required\n jp.updateHologram(armorstandProgressbarID, getProgressBar()); //update the actual hologram\n }\n\n //if the player did not yet have the progressbar loaded, load it to them!\n else if (!jp.getLoadedEntities().containsKey(armorstandProgressbarID)) {\n //always give everyone the progressbar hologram\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), getProgressBar(), armorstandProgressbarID);\n\n //show info text depending on if the player is survivor or juggernaut.\n if(jp.isSurvivor()) {\n jp.displayHologram(location.getX(), location.getY() + armorstandInfoHeight, location.getZ(), infoString, armorstandInfoID);\n }else if(unlockedPercentage > 0){ //only show the info to the juggernaut if he can actually relock it!\n //its juggy and he can re-lock the chest!\n jp.displayHologram(location.getX(), location.getY() + armorstandInfoHeight, location.getZ(), juggyInfoLockString, armorstandInfoID);\n }\n }\n } else { //the player is NOT in radius of the chest to see holograms. Therefore, we delete their hologram!\n jp.removeEntities(armorstandProgressbarID, armorstandInfoID);\n }\n }\n if(didProgressionUpdate){ //we updated the players succesfully. We can turn off the progressionchange dirty bit again.\n didProgressionChange = false;\n }\n }else if(chestProgressLevel==1) {//its unlocked, we give people items now!\n boolean showFirework = lastFirework++ > loopsTillFirework; //check if we should show a firework\n if(showFirework){\n lastFirework = 0; //reset the lastfirework count\n }\n for (JuggernautPlayer jp : players) { //lets check each player for updates to holograms.\n Player p = jp.getPlayer();//get the player\n\n //check if they are in radius to show the armorstand tags (ignore Y levels)\n if(SkyMathHelper.isInRadius(location, p.getLocation(), (double) nametagRadius, false)){\n //load the floating item (if they dont have it loaded yet)\n if(!jp.getLoadedEntities().containsKey(armorstandItemID)){\n jp.displayFloatingItem(location.getX(), location.getY()+armorstandItemHeight, location.getZ(),new net.minecraft.server.v1_8_R3.ItemStack(Item.getById(getItemID(level))), armorstandItemID);\n }\n //same for the text\n if(!jp.getLoadedEntities().containsKey(armorstandClaimInfoID) && jp.isSurvivor()){\n jp.displayHologram(location.getX(), location.getY()+armorstandOpenedInfoHeight, location.getZ(), infoClaimString, armorstandClaimInfoID);\n }\n\n //todo there might be optimisation here. This function call seems unneccesary. Try to remove in future update.\n updatePlayerClaim();\n }else{\n //they're not in range, so we remove all armorstands related.\n jp.removeEntities(armorstandClaimProgressID, armorstandItemID, armorstandClaimInfoID);\n }\n\n if(jp.getChestBonus(chestID)>=level){\n //they already unlocked this bonus, so we dont really need to show them fireworks anymore.\n //todo still check if in range.\n continue;\n }\n\n //they havent claimed it yet, and we can show them a firework! PFFIIIEEEW!\n if(showFirework){\n PacketHelper.displayFirework(p, location.getX(), location.getY()+1, location.getZ(), CraftItemStack.asNMSCopy(firework));\n }\n\n if(!jp.isSurvivor()){\n //we dont want juggy's claiming stuff!\n continue;\n }\n\n //show them some nice lightblue particles to indicate where they have to sneak to claim it.\n if( SkyMathHelper.isInRadius(location, p.getLocation(), (double)particleRadius, false)) {\n displayParticles(p, chestRadius, ParticleColor.LIGHT_BLUE);\n }\n }\n }\n\n }\n }.runTaskTimer(Juggernaut.pluginInstance, 0L, 2L); //run every 2 ticks\n }", "public void run() {\n try {\n Thread.sleep(1000000);\n } catch (InterruptedException ie) {\n }\n }", "@Override\n public void run() {\n do{\n try {\n Thread.sleep(4000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n if(loopTimes>loopLimit){\n if(MainActivity.IsShowLogCat)\n Log.e(\"LoopTimes\", \"設定失敗超過\"+loopLimit+\"次\");\n return;\n }\n if(isSet==0){\n if(MainActivity.IsShowLogCat)\n Log.e(\"isSet\", isSet+\"\");\n MainActivity.hWorker.post(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n transmit_set();\n }\n });\n }\n\n }while(isSet!=-1 && MainActivity.isExist);\n }", "public void run() {\n \t\t\r\n\t\t\tarraylist_destination.clear();\r\n\t\t\tarraylist_driverid.clear();\r\n\t\t\tarraylist_riderid.clear();\r\n\t\t\tarraylist_drivername.clear();\r\n\t\t\tarraylist_pickuptime.clear();\r\n\t\t\tarraylist_tripid.clear();\r\n\t\t\tarraylist_driver_image.clear();\r\n\t\t\tarraylist_rider_image.clear();\r\n\t\t\tarraylist_distance.clear();\r\n\t\t\tarraylist_requesttype.clear();\r\n\t\t\tarraylist_start.clear();\r\n\t\t\tarraylist_actualfare.clear();\r\n\t\t\tarraylist_suggestion.clear();\r\n\t\t\tarraylist_eta.clear();\r\n\t\t\tarraylist_driverrating.clear();\r\n\t\t\tarraylist_status.clear();\r\n\t\t\tarraylist_vehicle_color.clear();\r\n\t\t\tarraylist_vehicle_type.clear();\r\n\t\t\tarraylist_vehicle_name.clear();\r\n\t\t\tarraylist_vehicle_img.clear();\r\n\t\t\tarraylist_vehicle_year.clear();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(Utility.isConnectingToInternet(RiderQueue_Activity.this))\r\n \t \t{\r\n \t\t\t\t/**call pending request for rider queue class**/\r\n\t\t\t\tnew httpPendingRequest_riderqueue().execute(); \r\n \t \t\t}\r\n \t \telse{\r\n \t \t\tUtility.alertMessage(RiderQueue_Activity.this,\"error in internet connection\");\r\n \t \t}\r\n\t\t \r\n }", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t}catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void startrun() {\n mHandler.postDelayed(mPollTask, POLL_INTERVAL);\n\t}", "protected abstract void process(WorkerThread current_, double now_);", "@Override\n public void run()\n {\n final long expectedTimeBetweenCalls = TimeUnit.SECONDS.toMillis(1) / MAX_EXPECTED_EXECUTIONS_PER_SECOND;\n\n // Calculate the next call time, the first time should be immediate\n long nextCallTime = System.currentTimeMillis();\n\n // Execute the operation the required number of times\n for(int i = 0; i < NUM_EXECUTIONS; i++)\n {\n // Wait until the next call must be sent\n while(System.currentTimeMillis() < nextCallTime);\n\n // TODO Compute latency for each operation in milliseconds\n\n // Execute the operation, it will sleep for 10 milliseconds\n syncOpSimulator.executeOp();\n\n // TODO Record latency into histogram\n\n // TODO Compute accumulated latency and record it\n\n // Calculate the next time to call execute op\n nextCallTime += expectedTimeBetweenCalls;\n }\n\n finished = true;\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}", "private void doSomeWork() throws ExoPlaybackException, IOException {\n boolean z;\n boolean z2;\n int i;\n long uptimeMillis = this.clock.uptimeMillis();\n updatePeriods();\n if (this.playbackInfo.playbackState == 1 || this.playbackInfo.playbackState == 4) {\n this.handler.removeMessages(2);\n return;\n }\n MediaPeriodHolder playingPeriod = this.queue.getPlayingPeriod();\n if (playingPeriod == null) {\n scheduleNextWork(uptimeMillis, 10);\n return;\n }\n TraceUtil.beginSection(\"doSomeWork\");\n updatePlaybackPositions();\n if (playingPeriod.prepared) {\n long elapsedRealtime = SystemClock.elapsedRealtime() * 1000;\n playingPeriod.mediaPeriod.discardBuffer(this.playbackInfo.positionUs - this.backBufferDurationUs, this.retainBackBufferFromKeyframe);\n int i2 = 0;\n boolean z3 = true;\n boolean z4 = true;\n while (true) {\n Renderer[] rendererArr = this.renderers;\n if (i2 >= rendererArr.length) {\n break;\n }\n Renderer renderer = rendererArr[i2];\n if (renderer.getState() != 0) {\n renderer.render(this.rendererPositionUs, elapsedRealtime);\n z3 = z3 && renderer.isEnded();\n boolean z5 = playingPeriod.sampleStreams[i2] != renderer.getStream();\n boolean z6 = z5 || (!z5 && playingPeriod.getNext() != null && renderer.hasReadStreamToEnd()) || renderer.isReady() || renderer.isEnded();\n z4 = z4 && z6;\n if (!z6) {\n renderer.maybeThrowStreamError();\n }\n }\n i2++;\n }\n z2 = z3;\n z = z4;\n } else {\n playingPeriod.mediaPeriod.maybeThrowPrepareError();\n z2 = true;\n z = true;\n }\n long j = playingPeriod.info.durationUs;\n if (z2 && playingPeriod.prepared && ((j == -9223372036854775807L || j <= this.playbackInfo.positionUs) && playingPeriod.info.isFinal)) {\n setState(4);\n stopRenderers();\n } else if (this.playbackInfo.playbackState == 2 && shouldTransitionToReadyState(z)) {\n setState(3);\n if (this.playWhenReady) {\n startRenderers();\n }\n } else if (this.playbackInfo.playbackState == 3 && (this.enabledRenderers.length != 0 ? !z : !isTimelineReady())) {\n this.rebuffering = this.playWhenReady;\n i = 2;\n setState(2);\n stopRenderers();\n if (this.playbackInfo.playbackState == i) {\n for (Renderer renderer2 : this.enabledRenderers) {\n renderer2.maybeThrowStreamError();\n }\n }\n if ((!this.playWhenReady && this.playbackInfo.playbackState == 3) || this.playbackInfo.playbackState == 2) {\n scheduleNextWork(uptimeMillis, 10);\n } else if (this.enabledRenderers.length != 0 || this.playbackInfo.playbackState == 4) {\n this.handler.removeMessages(2);\n } else {\n scheduleNextWork(uptimeMillis, 1000);\n }\n TraceUtil.endSection();\n }\n i = 2;\n if (this.playbackInfo.playbackState == i) {\n }\n if (!this.playWhenReady) {\n }\n if (this.enabledRenderers.length != 0) {\n }\n this.handler.removeMessages(2);\n TraceUtil.endSection();\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile (flag) {\n\t\t\t\t\n\t\t\t\tgetDoorbellData(App.address+\"CGetData.php?uid=\"+id+\"&getType=b1\");\n\t\t\t\tgetPIRData(App.address+\"CGetData.php?uid=\"+id+\"&getType=5\");\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(2*1000); //暂定延时2s\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tThread.interrupted();\n\t\t}", "@Override\n\t\tprotected String[] doInBackground(Void... params) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\ttimes++;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public void run() {\n\t\t\t\ttry {Thread.sleep(1000000000);} catch (InterruptedException ie) {}\n\t\t\t}", "@Override\n public void run() {\n schedule();\n }", "public void run() {\n mReaderHelper.runLoopInventroy();\n mLoopHandler.postDelayed(this, 100);\n }", "public void run() {\n // solve();\n faster();\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twhile(!(gst.done&&gpt.done));\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}", "public void run() {\n\t\t\n\t\t\n\t\t\tsaleMethod1();\n\t\t\t//saleMethod3();\n\t\t\t//saleMethod2();\n\t}", "public void run() {\n\t\tfor (int x = 0; x < taskNum-1; x++) {\n\t\t\ttasks[x] = taskManager.getTaskSize();\n\t\t}\n\t\tArrays.sort(tasks);\n\n\t\t// process each job\n\t\tfor (int i = taskNum-1; i > 0; i--) {\n\t\t\tcount = taskNum - i;\n\t\t\tint p = tasks[i];\n\t\t\tdelay += p;\n\t\t\ttaskDurations[i] = delay;\n\t\t\tSystem.out.println(\"Experiment: \"+count+\" Task Size: \"+tasks[i]+\" Duration: \"+taskDurations[i]);\n\t\t}\n\t\trunEndTime = System.currentTimeMillis();\n\t}", "public static void main(String[] args) throws Exception {\n ScheduledExecutorService exec = Executors.newScheduledThreadPool(3);// 3 threads\n\n System.out.println(\"TIME: \" + dateFormatter.format(new Date()));\n\n\n ScheduledFuture<?> sf1 = exec.schedule(new ScheduledTaskB(3000), 4,TimeUnit.SECONDS); // TASK-1\n ScheduledFuture<?> sf2 = exec.schedule(new CalculationTaskD(0,3,3000), 6, TimeUnit.SECONDS); // TASK-2\n\n exec.schedule(new ScheduledTaskB(0), 8, TimeUnit.SECONDS);\n ScheduledFuture<?> sf4 = exec.schedule(new CalculationTaskD(3,4,0), 10 , TimeUnit.SECONDS); // TASK-4\n\n exec.shutdown();\n sf1.cancel(true);\n sf2.cancel(true);\n\n // GET RESULTS ////////////////////////////////////////////////////////////\n\n System.out.println(\"\\n\\n\\nGetting results: \");\n\n /*\n .get() blocks until result is available\n */\n System.out.println(\"TASK-1: \" + sf1.get() + \"\\n\");\n System.out.println(\"TASK-2: \" + sf2.get() + \"\\n\");\n System.out.println(\"TASK-4: \" + sf4.get() + \"\\n\");\n\n\n\n\n\n }", "@Override\r\n\t\t\tpublic void run(ProgressCallback callback) throws Exception {\n\t\t\t\ttestClock.warpForward(timeoutMS / 4);\r\n\t\t\t\tcallback.progressMade();\r\n\t\t\t\ttestClock.warpForward(timeoutMS / 4 - 1);\r\n\t\t\t\tcallback.progressMade();\r\n\r\n\t\t\t\t// This should trigger a refresh\r\n\t\t\t\ttestClock.warpForward(2);\r\n\t\t\t\tcallback.progressMade();\r\n\r\n\t\t\t\ttestClock.warpForward(timeoutMS / 2);\r\n\t\t\t\tcallback.progressMade();\r\n\t\t\t\t// This should trigger a refresh\r\n\t\t\t\ttestClock.warpForward(timeoutMS / 2);\r\n\t\t\t\tcallback.progressMade();\r\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(mActivityPauseFlag != 1)\n\t\t\t\t{\n\n\t\t\t\t\tint mins = getSleepTimeValue();\n\t\t\t\t\tmSleepTimeHour = mins / 60;\n\t\t\t\t\tmSleepTimeMin = mins % 60;\n\t\t\t\t\t\n\t\t\t\t\tif(quickmenu.isShowing())\n\t\t\t\t\t{\n\t\t\t\t\t\thandler.sendEmptyMessage(MSG_REFRESH_TIMER);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}", "public void work() {\n\t}", "public void work() {\n\t}", "void threadDelay() {\n saveState();\n if (pauseSimulator) {\n halt();\n }\n try {\n Thread.sleep(Algorithm_Simulator.timeGap);\n\n } catch (InterruptedException ex) {\n Logger.getLogger(RunBFS.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (pauseSimulator) {\n halt();\n }\n }", "@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.get();\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "public void schedule(Runnable job, long delay, TimeUnit unit);", "@Override\r\n\tpublic boolean startWork(int delay) {\r\n\t\t\r\n\t\tif (!isInProcess() && haveWork() && !isDrawCalled) {\r\n\t\t\t\r\n\t\t\tif (EnginesManager.PARALLEL_WORK) {\r\n\t\t\t\ttaskTimer.schedule(new ScheduleTask(), delay);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\titerate();\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\n public void when_wmOnSingleQueueOnly_then_emittedAfterDelay_multipleWm() {\n for (int time = 0; time < 40; time++) {\n add(q1, wm(100 + time));\n Object[] expectedItems = time < 16 ? new Object[0] : new Object[]{wm(time + 100 - 16)};\n drainAndAssert(time, MADE_PROGRESS, expectedItems);\n }\n }", "@Override\n\tpublic void run() {\n\t\twhile (!isStoped) {\n\t\t\tdoPause();\n\t\t\tinnerAction();\n\t\t}\n\t}", "public void run()\n {\n //while (still executing jobs on grid)\n // attempt to sample data\n while (processingJobs)\n {\n //if (not paused)\n // sample data\n if (!paused)\n {\n //get the storage element object appropriate for this thread\n int ind = nodeChoice.indexOf('e');\n String siteno = nodeChoice.substring(ind+1);\n int siteID = Integer.parseInt(siteno);\n site = _gc.findGridSiteByID(siteID);\n StorageElement se = site.getSE();\n //sample time\n long timeMillis = time.getRunningTimeMillis();\n timeSecs = (int)(timeMillis/1000);\n //sample capacity\n capacity = se.getCapacity();\n float usage = (capacity - se.getAvailableSpace())/100;\n /* if (range values identical for last three readings)\n * remove intermediate statistic\n */\n if (usage==prevUsage&&usage==prevPrevUsage)\n { \n int itemCount = seriesSEUVTime.getItemCount();\n if (itemCount>2)\n seriesSEUVTime.remove(itemCount-1);\n } \n prevPrevUsage = prevUsage;\n prevUsage = usage;\n seriesSEUVTime.add(timeSecs, usage);\n pieDataset.setValue(\"Used Storage (GB)\", new Integer((int)((capacity - se.getAvailableSpace())/100)));\n pieDataset.setValue(\"Free Storage (GB)\", new Integer((int)((se.getAvailableSpace())/100)));\n //if (not saving all graphs)\n // try to refresh statistics\n if(!printingAll)\n this.sendDatatoGUI();\n }\n \n //delay next sample by short time\n try\n {\n if (paused)\n sleep(Integer.MAX_VALUE);\n else\n sleep(samplingDelay);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n } \n }\n \n //out here only when all jobs have finished.\n //thread shall sleep for long time but can be \n //re-awakened if user wants to see statistics \n //from this object when run is complete.\n while (true)\n {\n try\n {\n sleep(Integer.MAX_VALUE);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n }\n }\n }", "@Override\n public void work() {\n if (!lnd_.isRpcReady())\n return;\n\n if (!started_) {\n // NOTE: start protocol to recover in-flight payments' state:\n // - get all payments w/ 'sending' state from db\n // - get all payments from lnd\n // - find 'sending' payments within lnd payments\n // - update found payments, reset state for not-found\n // - delete all payments from lnd to clear it\n // - started_ = true, can process new payments now\n if (!starting_) {\n starting_ = true;\n List<Job> sendingJobs = dao_.getSendingJobs();\n checkPayments(sendingJobs);\n }\n return;\n }\n\n if (!notified_ && nextWorkTime_ > System.currentTimeMillis())\n return;\n\n // reset\n notified_ = false;\n\n List<Job> pending = dao_.getPendingJobs(System.currentTimeMillis());\n for (Job job: pending) {\n WalletData.SendPayment p = (WalletData.SendPayment)job.objects.get(0);\n if (p.paymentHashHex() != null || p.isKeysend()) {\n queryRoutes(job, p);\n } else if (p.paymentRequest() != null) {\n decodePayment(job, p);\n }\n }\n\n nextWorkTime_ = System.currentTimeMillis() + WORK_INTERVAL;\n }" ]
[ "0.6323497", "0.62947583", "0.61782765", "0.61218745", "0.6088434", "0.6087898", "0.6086429", "0.6065871", "0.6060732", "0.60207593", "0.60162663", "0.6010833", "0.60018724", "0.59984905", "0.5995514", "0.59719926", "0.597195", "0.59706306", "0.596746", "0.59631985", "0.5949571", "0.59380394", "0.59232754", "0.5910133", "0.5907593", "0.5900392", "0.58748716", "0.58681357", "0.58572876", "0.58481157", "0.5837199", "0.5837051", "0.58290565", "0.5827764", "0.5810088", "0.5798203", "0.57973015", "0.57962483", "0.57958484", "0.5790343", "0.5779874", "0.5778409", "0.57735926", "0.5763346", "0.57614845", "0.5757946", "0.5749566", "0.57466894", "0.5741414", "0.5734861", "0.5730868", "0.5723151", "0.5721727", "0.5716177", "0.5710094", "0.5709914", "0.5706289", "0.57045364", "0.5702681", "0.570253", "0.57018614", "0.5700998", "0.569637", "0.56942755", "0.5691436", "0.56870985", "0.5686973", "0.56835914", "0.5672503", "0.5666783", "0.5661535", "0.56585145", "0.5658509", "0.5656726", "0.5655696", "0.56551456", "0.5653372", "0.56519896", "0.5647913", "0.5645329", "0.56446046", "0.5644439", "0.56382406", "0.5633109", "0.5632027", "0.56316817", "0.56216043", "0.5617372", "0.5616522", "0.5610616", "0.5602211", "0.5602211", "0.5601747", "0.56013894", "0.5600997", "0.5599863", "0.5596261", "0.55947816", "0.5588207", "0.5588131", "0.55797476" ]
0.0
-1