query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
/ Setter for parent layout orientation. | public void setParentLayoutOrientation(int orientation)
{
parentOrientation = orientation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getParentLayoutOrientation()\n {\n return parentOrientation;\n }",
"public void setOrientation(Direction orientation);",
"public final void setOrientation(Orientation value) {\n\n this.getWrappedControl().setOrientation(value);\n }",
"void setOrientation(int orientation) {\n }",
"public final void setOrientation(Orientation value) {\n orientationProperty().set(value);\n }",
"@Override\n\tpublic void setOrientation(float orientation) {\n\t\t\n\t}",
"@Override\n public void setOrientation(Orientation orientation) {\n this.orientation = orientation;\n }",
"public final ObjectProperty<Orientation> orientationProperty() {\n\n return this.getWrappedControl().orientationProperty();\n }",
"public void setOrientation(Orientation orientation) {\n\t\tsuper.setOrientation(orientation);\n\t}",
"public IOrientation getOrientation();",
"protected void setOrientation(int n) {\n if (this.mStateMachine.isRecording()) {\n super.setOrientation(n, this.mRecordingOrientation);\n } else {\n super.setOrientation(n);\n }\n if (this.isHeadUpDesplayReady()) {\n if (this.mSettingDialogStack != null) {\n this.mSettingDialogStack.setUiOrientation(n);\n }\n this.mSceneIndicatorIcon.setRotation(RotationUtil.getAngle(this.getOrientationForUiNotRotateInRecording()));\n this.mConditionIndicatorIcon.setRotation(RotationUtil.getAngle(this.getOrientationForUiNotRotateInRecording()));\n this.mSceneIndicatorText.setAnimation(null);\n this.mSceneIndicatorText.setVisibility(4);\n if (this.mAutoReview != null) {\n this.mAutoReview.setOrientation(n);\n }\n if (this.mFocusRectangles != null) {\n this.mFocusRectangles.setOrientation(n);\n }\n if (this.mSelfTimerCountDownView != null) {\n this.mSelfTimerCountDownView.setSensorOrientation(n);\n }\n }\n }",
"public void setNewOrientation(int value) {\n this.newOrientation = value;\n }",
"public int getOrientation(){ return mOrientation; }",
"public void setOrientation(Orientation orientation)\n {\n this.orientation = orientation;\n }",
"public void setOrientation(String orientation) {\n this.setGraphAttribute(\"orientation\", orientation);\n }",
"@Override\n\tpublic void setOrientation(Quat4d orientation) {\n\t\t\n\t}",
"public int getOrientation()\n\t{\n\t\treturn orientation;\n\t}",
"public void onSetOrientation() {\n }",
"public int getOrientation()\n {\n return m_orientation;\n }",
"public final ObjectProperty<Orientation> orientationProperty() {\n return orientation;\n }",
"public void setOrientation(int orientation)\n\t{\n\t\tthis.orientation = orientation;\n\t}",
"public void onSetLayoutDirection() {\n }",
"public Orientation getOrientation(){return this.orientation;}",
"public void setOrientation(int orientation){\n //save orientation of phone\n mOrientation = orientation;\n }",
"public Orientation getOrientation() {\n return this.orientation;\n }",
"public final Orientation getOrientation() {\n\n return this.getWrappedControl().getOrientation();\n }",
"public void setOrientation(int orientation) {\n\t\tm_nOrientation = orientation;\n\t}",
"public java.lang.Integer getOrientation () {\n\t\treturn orientation;\n\t}",
"public int getNewOrientation() {\n return newOrientation;\n }",
"public int getOrientationOnly() {\n return (int) this.orientation;\n }",
"public final Orientation getOrientation() {\n return orientation == null ? Orientation.HORIZONTAL : orientation.get();\n }",
"public Orientation getOrientation() {\n\t\treturn mOrientation;\n\t}",
"public Orientation orientation() {\n return this.orientation;\n }",
"public void onLayoutOrientationChanged(boolean isLandscape);",
"public void setOrientation (java.lang.Integer orientation) {\n\t\tthis.orientation = orientation;\n\t}",
"public int getOrientation() {\n\t\treturn m_nOrientation;\n\t}",
"public @Override void setParent(View parent) {\n super.setParent(parent);\n \n /* Make sure that the children get loaded.\n * It is necessary to do because children preferences will\n * define the preferences of the parent.\n */\n if (parent != null) {\n if (parent instanceof ViewLayoutState.Parent) {\n setStatusBits(ACTIVE_LAYOUT_STATE);\n } else {\n clearStatusBits(ACTIVE_LAYOUT_STATE);\n }\n \n // Resolving whether active layout state must be resolved prior getChildren()\n getChildren();\n \n } else { // parent is being set to null\n releaseChildren();\n clearStatusBits(ACTIVE_LAYOUT_STATE);\n }\n }",
"public abstract double getOrientation();",
"@PersistField(contained = true)\n public Orientation getOrientation()\n {\n return orientation;\n }",
"public float getOrientation() {\n return this.orientation + this.baseRotation;\n }",
"private int getOrientation() {\n return getContext().getResources().getConfiguration().orientation;\n }",
"public abstract void setRequestedOrientation(int requestedOrientation);",
"@Override // com.android.server.wm.WindowContainer\n public int getOrientation() {\n int orientation;\n if (DisplayContent.this.isStackVisible(3) || ((!HwFreeFormUtils.isFreeFormEnable() && DisplayContent.this.isStackVisible(5)) || (this.mDisplayContent != null && this.mWmService.mAtmService.mHwATMSEx.isSplitStackVisible(this.mDisplayContent.mAcitvityDisplay, -1)))) {\n TaskStack taskStack = this.mHomeStack;\n if (taskStack == null || !taskStack.isVisible() || !DisplayContent.this.mDividerControllerLocked.isMinimizedDock() || ((DisplayContent.this.mDividerControllerLocked.isHomeStackResizable() && this.mHomeStack.matchParentBounds()) || (orientation = this.mHomeStack.getOrientation()) == -2)) {\n return -1;\n }\n return orientation;\n }\n int orientation2 = super.getOrientation();\n if (this.mWmService.mContext.getPackageManager().hasSystemFeature(\"android.hardware.type.automotive\")) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, \"Forcing UNSPECIFIED orientation in car for display id=\" + DisplayContent.this.mDisplayId + \". Ignoring \" + orientation2);\n }\n return -1;\n } else if (orientation2 == -2 || orientation2 == 3) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, \"No app is requesting an orientation, return \" + DisplayContent.this.mLastOrientation + \" for display id=\" + DisplayContent.this.mDisplayId);\n }\n return DisplayContent.this.mLastOrientation;\n } else {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, \"App is requesting an orientation, return \" + orientation2 + \" for display id=\" + DisplayContent.this.mDisplayId);\n }\n return orientation2;\n }\n }",
"public String getOrientation() {\n\n if(getResources().getDisplayMetrics().widthPixels > \n getResources().getDisplayMetrics().heightPixels) { \n return \"LANDSCAPE\";\n } else {\n return \"PORTRAIT\";\n } \n \n }",
"public final Vector2D getOrientation() {\n return orientation;\n }",
"@Override\n\tpublic void setOrientation(Vector3 orient) {\n\n\t}",
"public String orientation()\n {\n int height = cat.getWidth();\n int width = cat.getHeight();\n\n if (height >= width)\n {\n return \"landscape\";\n }\n else \n {\n return \"portrait\";\n\n }\n }",
"public String orientation() {\n\t\tif (orientation == null)\n\t\t\tarea();\n\t\treturn orientation;\n\t}",
"void setNoOrientation(boolean orientation);",
"void setLandscape(boolean ls);",
"public void setSensorOrientation(int n) {\n this.mSensorOrientation = n;\n if (this.mSensorOrientation == 2) {\n this.findViewById(2131689617).setVisibility(0);\n this.findViewById(2131689618).setVisibility(8);\n this.findViewById(2131689615).setRotation(0.0f);\n } else {\n this.findViewById(2131689617).setVisibility(8);\n this.findViewById(2131689618).setVisibility(0);\n this.findViewById(2131689615).setRotation(-90.0f);\n }\n this.invalidate();\n super.updateContentDescription();\n }",
"public ImageOrientation getOrientation()\n\t{\n\t\treturn ImageOrientation.None;\n\t}",
"public void setParent(View parent) {\n throw new Error(\"Can't set parent on root view\");\n }",
"private XYMultipleSeriesRenderer.Orientation getOrientation() {\n String orientation = mData.getConfiguration(\"bar-orientation\", \"\");\r\n if (orientation.equalsIgnoreCase(\"vertical\")) {\r\n return XYMultipleSeriesRenderer.Orientation.HORIZONTAL;\r\n } else {\r\n return XYMultipleSeriesRenderer.Orientation.VERTICAL;\r\n }\r\n }",
"@Override // com.android.server.wm.WindowContainer\n public int getOrientation() {\n WindowManagerPolicy policy = this.mWmService.mPolicy;\n WindowState win = getWindow(this.mGetOrientingWindow);\n if (win != null) {\n int req = win.mAttrs.screenOrientation;\n if (policy.isKeyguardHostWindow(win.mAttrs)) {\n DisplayContent.this.mLastKeyguardForcedOrientation = req;\n if (this.mWmService.mKeyguardGoingAway) {\n DisplayContent.this.mLastWindowForcedOrientation = -1;\n return -2;\n }\n }\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, win + \" forcing orientation to \" + req + \" for display id=\" + DisplayContent.this.mDisplayId);\n }\n return DisplayContent.this.mLastWindowForcedOrientation = req;\n }\n DisplayContent.this.mLastWindowForcedOrientation = -1;\n boolean isUnoccluding = DisplayContent.this.mAppTransition.getAppTransition() == 23 && DisplayContent.this.mUnknownAppVisibilityController.allResolved();\n if (policy.isKeyguardShowingAndNotOccluded() || isUnoccluding) {\n return DisplayContent.this.mLastKeyguardForcedOrientation;\n }\n return -2;\n }",
"public void onLayoutOrientationChanged(BaseActivity.LayoutOrientation layoutOrientation) {\n super.onLayoutOrientationChanged(layoutOrientation);\n int n = layoutOrientation == BaseActivity.LayoutOrientation.Portrait ? 1 : 2;\n StateMachine stateMachine = this.mStateMachine;\n StateMachine.StaticEvent staticEvent = StateMachine.StaticEvent.EVENT_ON_ORIENTATION_CHANGED;\n Object[] arrobject = new Object[]{n};\n stateMachine.sendStaticEvent(staticEvent, arrobject);\n }",
"public void setComponentOrientation(ComponentOrientation paramComponentOrientation) {\n/* 1288 */ super.setComponentOrientation(paramComponentOrientation);\n/* 1289 */ if (this.verticalScrollBar != null)\n/* 1290 */ this.verticalScrollBar.setComponentOrientation(paramComponentOrientation); \n/* 1291 */ if (this.horizontalScrollBar != null) {\n/* 1292 */ this.horizontalScrollBar.setComponentOrientation(paramComponentOrientation);\n/* */ }\n/* */ }",
"public void setPreferredVerticalOrientation(@VerticalOrientation int orientation) {\n mPreferredVerticalOrientation = orientation;\n }",
"@Override\r\n public Orientation getOrientation() {\r\n return this.route.getOrientation();\r\n }",
"private void setLayout() {\n int orientation = getResources().getConfiguration().orientation;\n // if the orientation is Portrait\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n if (!webViewFragment.isAdded()) {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 0f));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 3f));\n\n }\n }\n else { // if the orientation is Landscape\n if (!webViewFragment.isAdded()) {\n\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n // Make the LandmarkLayout take 1/3 of the layout's width\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n // Make the WebPageLayout take 2/3's of the layout's width\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n }\n }",
"private Orientation() {\n }",
"@Override\n public void setKeepsOrientation(boolean value) {\n this.keepsOrientation = value;\n }",
"public void invertOrientation() {\n\t\tPoint3D temp = getPoint(2);\n\t\tsetPoint(2, getPoint(1));\n\t\tsetPoint(1, temp);\n\n\t\tTriangleElt3D temp2 = getNeighbour(2);\n\t\tsetNeighbour(2, getNeighbour(1));\n\t\tsetNeighbour(1, temp2);\n\t\tif (this.getNetComponent() != null)\n\t\t\tthis.getNetComponent().setOriented(false);\n\t}",
"AxisOrientation getAxisOrientation();",
"public void onOrientationChanged(int orientation);",
"public char getOrientation() {\n return orientation;\n }",
"public void setOrientation(final Orientation orientation) {\n\t\tthis.orientation = orientation;\n\t\tif (scene != null) {\n\t\t\tscene.setOrientation(orientation);\n\t\t}\n\t\tsceneChanged();\n\t}",
"public void setPreferredHorizontalOrientation(@HorizontalOrientation int orientation) {\n mPreferredHorizontalOrientation = orientation;\n }",
"void setParent(IGLProperty parent);",
"protected void setParent(ILanguageElement parent) {\r\n this.parent = parent;\r\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n mOrientation = event.values[0];\n }",
"@Override // com.android.server.wm.WindowContainer\n public int getOrientation() {\n WindowManagerPolicy policy = this.mWmService.mPolicy;\n if (this.mIgnoreRotationForApps && !HwFoldScreenState.isFoldScreenDevice()) {\n return 2;\n }\n if (!this.mWmService.mDisplayFrozen) {\n int orientation = this.mAboveAppWindowsContainers.getOrientation();\n if (orientation != -2) {\n return orientation;\n }\n } else if (this.mLastWindowForcedOrientation != -1) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(TAG, \"Display id=\" + this.mDisplayId + \" is frozen, return \" + this.mLastWindowForcedOrientation);\n }\n return this.mLastWindowForcedOrientation;\n } else if (policy.isKeyguardLocked()) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(TAG, \"Display id=\" + this.mDisplayId + \" is frozen while keyguard locked, return \" + this.mLastOrientation);\n }\n return this.mLastOrientation;\n }\n return this.mTaskStackContainers.getOrientation();\n }",
"public String getAxisOrientation() {\n return axisOrientation;\n }",
"@NonNull\n public T setLockOrientation(boolean lockOrientation) {\n mLockOrientation = lockOrientation;\n return (T) this;\n }",
"public void updateOrientation(Location loc)\n {\n orientation = new Orientation(loc);\n }",
"public int[] getChildOrientations() {return childOrientations;}",
"void orientation(double xOrientation, double yOrientation, double zOrientation);",
"@Override\n public void setOrientation(int degree, boolean animation) {\n String t = getText().toString();\n if(t != null && !t.equals(\"\")){\n mContent = t;\n }\n\n mEnableAnimation = animation;\n // make sure in the range of [0, 359]\n degree = degree >= 0 ? degree % 360 : degree % 360 + 360;\n if (degree == mTargetDegree)\n return;\n\n mTargetDegree = degree;\n if (mEnableAnimation) {\n mStartDegree = mCurrentDegree;\n mAnimationStartTime = AnimationUtils.currentAnimationTimeMillis();\n\n int diff = mTargetDegree - mCurrentDegree;\n diff = diff >= 0 ? diff : 360 + diff; // make it in range [0, 359]\n\n // Make it in range [-179, 180]. That's the shorted distance between the\n // two angles\n diff = diff > 180 ? diff - 360 : diff;\n\n mClockwise = diff >= 0;\n mAnimationEndTime = mAnimationStartTime\n + Math.abs(diff) * 1000 / ANIMATION_SPEED;\n } else {\n mCurrentDegree = mTargetDegree;\n }\n\n invalidate();\n }",
"@Override\n\tpublic VLayout asLayout() {\n\t\treturn this;\n\t}",
"private void orientationChanged(int change) {\n orientation += change;\n if (orientation > 4) {\n orientation = orientation - 4;\n }\n }",
"@Override\n public void setOrientation(float x, float y, float z) {\n String degreeString = getString(R.string.motion_orientation_degree);\n /*orientationX.setText(String.format(degreeString, x));\n orientationY.setText(String.format(degreeString, y));\n orientationZ.setText(String.format(degreeString, z));\n*/\n if (gdxAdapter != null) {\n gdxAdapter.setOrientation(x, y, z);\n }\n }",
"@Override\n public boolean isKeepsOrientation() {\n return keepsOrientation;\n }",
"public void setTextOrientation(short field_2_textOrientation)\n {\n this.field_2_textOrientation = field_2_textOrientation;\n }",
"public void setOrient(int face) {\n if (abs(face) == BLUE && onSide(face)) {\n orient *= -1;\n }\n }",
"public void setOrientation(Opts.ScreenOrientations orient) {\r\n\t\trealOrientation = orient;\r\n\t}",
"@Override\r\n\tpublic int getOrientation(Robot robot)\r\n\t{\r\n\t\treturn robot.getOrientation().ordinal();\r\n\t}",
"public FinalEditLayout(ViewGroup parent){\n this.parent = parent;\n onCreate();\n }",
"@Override\n\tpublic float getOrientation() {\n\t\treturn body.getAngle();\n\t}",
"public float getLayoutAlignmentY(Container parent)\n\t{\n\t\treturn 0.5f;\n\t}",
"public TextController createOrientation(ControllerCore genCode) {\n\t\torientationTXT = new TextController(\"orientation\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(orientation$1LBL);\n\t\t\t\tsetProperty(\"orientation\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn orientationTXT;\n\t}",
"public float getOrientacion() { return orientacion; }",
"private void setLayout() {\n if (!mImageFragment.isAdded()) {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(\n MATCH_PARENT, MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n } else {\n if (getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE){\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n\n else {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT,\n MATCH_PARENT));\n }\n }\n }",
"protected void configureWest(LayoutOptions parent){\n LayoutOptions childOptions = new LayoutOptions(); \n parent.setChildOptions(childOptions); \n \n LayoutOptions north = createOptions(childOptions, CardinalPoint.NORTH); \n setAttribute(north, \"size\", \"150\");\n fixed(north);\n LayoutOptions center = createOptions(childOptions, CardinalPoint.CENTER); \n setAttribute(center, \"overflow\", \"scroll\");\n\t}",
"@Override\n public void setDisplayOrientation(int degrees) {\n if (MyDebug.LOG)\n Log.d(TAG, \"setDisplayOrientation not supported by this API\");\n throw new RuntimeException(); // throw as RuntimeException, as this is a programming error\n }",
"@Override\n\t\tpublic void onOrientationChanged(int orientation) {\n\t\t\tif (orientation == ORIENTATION_UNKNOWN)\n\t\t\t\treturn;\n\t\t\tmLastRawOrientation = orientation;\n\t\t\tmCurrentModule.onOrientationChanged(orientation);\n\t\t}",
"@Override\n public boolean canResolveLayoutDirection() {return false;}",
"void setParent(UIComponent parent);",
"@Override // com.android.server.wm.WindowContainer\n public boolean handlesOrientationChangeFromDescendant() {\n return getDisplayRotation().respectAppRequestedOrientation();\n }",
"public void setParent(ILexComponent parent);",
"public void setComponentOrientation(final ComponentOrientation direction) {\n componentOrientation = direction == ComponentOrientation.RIGHT_TO_LEFT;\n setDocumentDirection();\n super.setComponentOrientation(direction);\n }"
] | [
"0.79440486",
"0.6994023",
"0.68732834",
"0.6848461",
"0.6718557",
"0.6717545",
"0.6688311",
"0.66403085",
"0.65225834",
"0.6500898",
"0.649866",
"0.64678365",
"0.6448667",
"0.64359254",
"0.6415651",
"0.63813746",
"0.6377671",
"0.63592386",
"0.6318707",
"0.6304392",
"0.62843937",
"0.62650764",
"0.6264706",
"0.62309",
"0.6175853",
"0.6164476",
"0.61611503",
"0.6159788",
"0.6147278",
"0.612358",
"0.61142945",
"0.6110863",
"0.61107916",
"0.6104792",
"0.6086611",
"0.6080905",
"0.6047508",
"0.60420775",
"0.5981135",
"0.5973169",
"0.5957876",
"0.5908793",
"0.58955085",
"0.58914524",
"0.5852662",
"0.5795152",
"0.57382035",
"0.5733702",
"0.5729914",
"0.5698695",
"0.56823593",
"0.56715614",
"0.56630534",
"0.5648178",
"0.5648128",
"0.5647487",
"0.56467175",
"0.56362516",
"0.560588",
"0.5602958",
"0.5586129",
"0.55813986",
"0.5567123",
"0.55585426",
"0.55561113",
"0.555436",
"0.5542868",
"0.5542222",
"0.55019546",
"0.54986495",
"0.54961306",
"0.54817426",
"0.5476141",
"0.5475559",
"0.5429452",
"0.5427129",
"0.54159033",
"0.54015356",
"0.5390558",
"0.53822845",
"0.5382262",
"0.53660667",
"0.53471273",
"0.5336309",
"0.53352326",
"0.53269804",
"0.53206795",
"0.5318371",
"0.5314866",
"0.53114754",
"0.5302386",
"0.52988887",
"0.5280908",
"0.5273473",
"0.52721924",
"0.5267303",
"0.5257156",
"0.5253551",
"0.52485985",
"0.5248175"
] | 0.84494346 | 0 |
/ Getter for parent layout orientation | public int getParentLayoutOrientation()
{
return parentOrientation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IOrientation getOrientation();",
"public void setParentLayoutOrientation(int orientation)\n {\n parentOrientation = orientation;\n }",
"public final Orientation getOrientation() {\n return orientation == null ? Orientation.HORIZONTAL : orientation.get();\n }",
"public final Orientation getOrientation() {\n\n return this.getWrappedControl().getOrientation();\n }",
"public int getOrientation()\n\t{\n\t\treturn orientation;\n\t}",
"public int getOrientation()\n {\n return m_orientation;\n }",
"public abstract double getOrientation();",
"private int getOrientation() {\n return getContext().getResources().getConfiguration().orientation;\n }",
"@Override // com.android.server.wm.WindowContainer\n public int getOrientation() {\n int orientation;\n if (DisplayContent.this.isStackVisible(3) || ((!HwFreeFormUtils.isFreeFormEnable() && DisplayContent.this.isStackVisible(5)) || (this.mDisplayContent != null && this.mWmService.mAtmService.mHwATMSEx.isSplitStackVisible(this.mDisplayContent.mAcitvityDisplay, -1)))) {\n TaskStack taskStack = this.mHomeStack;\n if (taskStack == null || !taskStack.isVisible() || !DisplayContent.this.mDividerControllerLocked.isMinimizedDock() || ((DisplayContent.this.mDividerControllerLocked.isHomeStackResizable() && this.mHomeStack.matchParentBounds()) || (orientation = this.mHomeStack.getOrientation()) == -2)) {\n return -1;\n }\n return orientation;\n }\n int orientation2 = super.getOrientation();\n if (this.mWmService.mContext.getPackageManager().hasSystemFeature(\"android.hardware.type.automotive\")) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, \"Forcing UNSPECIFIED orientation in car for display id=\" + DisplayContent.this.mDisplayId + \". Ignoring \" + orientation2);\n }\n return -1;\n } else if (orientation2 == -2 || orientation2 == 3) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, \"No app is requesting an orientation, return \" + DisplayContent.this.mLastOrientation + \" for display id=\" + DisplayContent.this.mDisplayId);\n }\n return DisplayContent.this.mLastOrientation;\n } else {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, \"App is requesting an orientation, return \" + orientation2 + \" for display id=\" + DisplayContent.this.mDisplayId);\n }\n return orientation2;\n }\n }",
"public final ObjectProperty<Orientation> orientationProperty() {\n\n return this.getWrappedControl().orientationProperty();\n }",
"public java.lang.Integer getOrientation () {\n\t\treturn orientation;\n\t}",
"@Override // com.android.server.wm.WindowContainer\n public int getOrientation() {\n WindowManagerPolicy policy = this.mWmService.mPolicy;\n if (this.mIgnoreRotationForApps && !HwFoldScreenState.isFoldScreenDevice()) {\n return 2;\n }\n if (!this.mWmService.mDisplayFrozen) {\n int orientation = this.mAboveAppWindowsContainers.getOrientation();\n if (orientation != -2) {\n return orientation;\n }\n } else if (this.mLastWindowForcedOrientation != -1) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(TAG, \"Display id=\" + this.mDisplayId + \" is frozen, return \" + this.mLastWindowForcedOrientation);\n }\n return this.mLastWindowForcedOrientation;\n } else if (policy.isKeyguardLocked()) {\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(TAG, \"Display id=\" + this.mDisplayId + \" is frozen while keyguard locked, return \" + this.mLastOrientation);\n }\n return this.mLastOrientation;\n }\n return this.mTaskStackContainers.getOrientation();\n }",
"public int getOrientation(){ return mOrientation; }",
"public Orientation getOrientation() {\n return this.orientation;\n }",
"public Orientation orientation() {\n return this.orientation;\n }",
"public Orientation getOrientation() {\n\t\treturn mOrientation;\n\t}",
"public float getOrientation() {\n return this.orientation + this.baseRotation;\n }",
"public final Vector2D getOrientation() {\n return orientation;\n }",
"public int getOrientation() {\n\t\treturn m_nOrientation;\n\t}",
"public int getOrientationOnly() {\n return (int) this.orientation;\n }",
"@Override // com.android.server.wm.WindowContainer\n public int getOrientation() {\n WindowManagerPolicy policy = this.mWmService.mPolicy;\n WindowState win = getWindow(this.mGetOrientingWindow);\n if (win != null) {\n int req = win.mAttrs.screenOrientation;\n if (policy.isKeyguardHostWindow(win.mAttrs)) {\n DisplayContent.this.mLastKeyguardForcedOrientation = req;\n if (this.mWmService.mKeyguardGoingAway) {\n DisplayContent.this.mLastWindowForcedOrientation = -1;\n return -2;\n }\n }\n if (WindowManagerDebugConfig.DEBUG_ORIENTATION) {\n Slog.v(DisplayContent.TAG, win + \" forcing orientation to \" + req + \" for display id=\" + DisplayContent.this.mDisplayId);\n }\n return DisplayContent.this.mLastWindowForcedOrientation = req;\n }\n DisplayContent.this.mLastWindowForcedOrientation = -1;\n boolean isUnoccluding = DisplayContent.this.mAppTransition.getAppTransition() == 23 && DisplayContent.this.mUnknownAppVisibilityController.allResolved();\n if (policy.isKeyguardShowingAndNotOccluded() || isUnoccluding) {\n return DisplayContent.this.mLastKeyguardForcedOrientation;\n }\n return -2;\n }",
"public String orientation() {\n\t\tif (orientation == null)\n\t\t\tarea();\n\t\treturn orientation;\n\t}",
"public String getOrientation() {\n\n if(getResources().getDisplayMetrics().widthPixels > \n getResources().getDisplayMetrics().heightPixels) { \n return \"LANDSCAPE\";\n } else {\n return \"PORTRAIT\";\n } \n \n }",
"public final ObjectProperty<Orientation> orientationProperty() {\n return orientation;\n }",
"public String orientation()\n {\n int height = cat.getWidth();\n int width = cat.getHeight();\n\n if (height >= width)\n {\n return \"landscape\";\n }\n else \n {\n return \"portrait\";\n\n }\n }",
"@Override\r\n public Orientation getOrientation() {\r\n return this.route.getOrientation();\r\n }",
"public Orientation getOrientation(){return this.orientation;}",
"@PersistField(contained = true)\n public Orientation getOrientation()\n {\n return orientation;\n }",
"private XYMultipleSeriesRenderer.Orientation getOrientation() {\n String orientation = mData.getConfiguration(\"bar-orientation\", \"\");\r\n if (orientation.equalsIgnoreCase(\"vertical\")) {\r\n return XYMultipleSeriesRenderer.Orientation.HORIZONTAL;\r\n } else {\r\n return XYMultipleSeriesRenderer.Orientation.VERTICAL;\r\n }\r\n }",
"AxisOrientation getAxisOrientation();",
"public int getNewOrientation() {\n return newOrientation;\n }",
"public ImageOrientation getOrientation()\n\t{\n\t\treturn ImageOrientation.None;\n\t}",
"public int[] getChildOrientations() {return childOrientations;}",
"public String getOrientation(){\n\n if(robot.getRotation()%360 == 0){\n return \"NORTH\";\n } else if(robot.getRotation()%360 == 90\n ||robot.getRotation()%360 == -270){\n return \"EAST\";\n } else if(robot.getRotation()%360 == 180\n ||robot.getRotation()%360 == -180){\n return \"SOUTH\";\n } else if(robot.getRotation()%360 == 270\n ||robot.getRotation()%360 == -90){\n return \"WEST\";\n } else\n\n errorMessage(\"Id:10T error\");\n return null;\n }",
"public double getOrientation()\r\n\t{\r\n\t\treturn Math.atan2(-end.getY()+start.getY(), end.getX()-start.getX());\r\n\t}",
"public char getOrientation() {\n return orientation;\n }",
"boolean getLandscape();",
"public String getAxisOrientation() {\n return axisOrientation;\n }",
"public float getOrientedWidth() {\n return (this.orientation + this.baseRotation) % 180.0f != 0.0f ? this.height : this.width;\n }",
"public final double getPatternOrientation()\r\n\t{\r\n\t\treturn _orientation;\r\n\t}",
"public float getLayoutAlignmentY(Container parent)\n\t{\n\t\treturn 0.5f;\n\t}",
"@Nullable\n public LayoutType getLayout() {\n return mLayout;\n }",
"@Override\n\tpublic float getOrientation() {\n\t\treturn body.getAngle();\n\t}",
"public float getOrientedHeight() {\n return (this.orientation + this.baseRotation) % 180.0f != 0.0f ? this.width : this.height;\n }",
"public Layout getLayout() {\n return this.mLayout;\n }",
"@Override\n\tpublic java.lang.String getLayout() {\n\t\treturn _scienceApp.getLayout();\n\t}",
"public short getTextOrientation()\n {\n return field_2_textOrientation;\n }",
"@Override\r\n\tpublic int getOrientation(Robot robot)\r\n\t{\r\n\t\treturn robot.getOrientation().ordinal();\r\n\t}",
"public int getNaturalOrientation() {\n if ((!this.mIsLandScapeDefault || this.mBaseDisplayWidth >= this.mBaseDisplayHeight) && this.mBaseDisplayWidth < this.mBaseDisplayHeight) {\n return 1;\n }\n return 2;\n }",
"String getLockOrientationPref();",
"public int getLastOrientation() {\n return this.mLastOrientation;\n }",
"public float getLayoutAlignmentX(Container parent)\n\t{\n\t\treturn 0.5f;\n\t}",
"public float getOrientacion() { return orientacion; }",
"public void onLayoutOrientationChanged(boolean isLandscape);",
"String getLayout();",
"public int getScreenOrientation() {\n Display getOrient = getWindowManager().getDefaultDisplay();\n int orientation = Configuration.ORIENTATION_UNDEFINED;\n if (getOrient.getWidth() == getOrient.getHeight()) {\n orientation = Configuration.ORIENTATION_SQUARE;\n } else {\n if (getOrient.getWidth() < getOrient.getHeight()) {\n orientation = Configuration.ORIENTATION_PORTRAIT;\n } else {\n orientation = Configuration.ORIENTATION_LANDSCAPE;\n }\n }\n return orientation;\n }",
"boolean getNoOrientation();",
"public final int getLayout() {\n return 2130970726;\n }",
"@Generated\n @Selector(\"orientation\")\n @NInt\n public native long orientation();",
"public int Parent() { return this.Parent; }",
"public float getRotation() {\n return pm.pen.getLevelValue(PLevel.Type.ROTATION);\n }",
"public char parentSide() {\n\t\t\tif (this.getParent().getKey() == -1) {\n\t\t\t\treturn 'N';\n\t\t\t}\n\t\t\tif (this.key == this.parent.getRight().getKey()) {\n\t\t\t\treturn 'R';\n\t\t\t}\n\t\t\treturn 'L';\n\t\t}",
"protected abstract int getResLayout();",
"@Override\n\tpublic VLayout asLayout() {\n\t\treturn this;\n\t}",
"public java.beans.PropertyDescriptor componentOrientationPropertyDescriptor() {\n\tjava.beans.PropertyDescriptor aDescriptor = null;\n\ttry {\n\t\ttry {\n\t\t\t/* Using methods via getMethod is the faster way to create the componentOrientation property descriptor. */\n\t\t\tjava.lang.reflect.Method aGetMethod = null;\n\t\t\ttry {\n\t\t\t\t/* Attempt to find the method using getMethod with parameter types. */\n\t\t\t\tjava.lang.Class aGetMethodParameterTypes[] = {};\n\t\t\t\taGetMethod = getBeanClass().getMethod(\"getComponentOrientation\", aGetMethodParameterTypes);\n\t\t\t} catch (Throwable exception) {\n\t\t\t\t/* Since getMethod failed, call findMethod. */\n\t\t\t\thandleException(exception);\n\t\t\t\taGetMethod = findMethod(getBeanClass(), \"getComponentOrientation\", 0);\n\t\t\t};\n\t\t\tjava.lang.reflect.Method aSetMethod = null;\n\t\t\ttry {\n\t\t\t\t/* Attempt to find the method using getMethod with parameter types. */\n\t\t\t\tjava.lang.Class aSetMethodParameterTypes[] = {\n\t\t\t\t\tjava.awt.ComponentOrientation.class\n\t\t\t\t};\n\t\t\t\taSetMethod = getBeanClass().getMethod(\"setComponentOrientation\", aSetMethodParameterTypes);\n\t\t\t} catch (Throwable exception) {\n\t\t\t\t/* Since getMethod failed, call findMethod. */\n\t\t\t\thandleException(exception);\n\t\t\t\taSetMethod = findMethod(getBeanClass(), \"setComponentOrientation\", 1);\n\t\t\t};\n\t\t\taDescriptor = new java.beans.PropertyDescriptor(\"componentOrientation\"\n\t\t\t, aGetMethod, aSetMethod);\n\t\t} catch (Throwable exception) {\n\t\t\t/* Since we failed using methods, try creating a default property descriptor. */\n\t\t\thandleException(exception);\n\t\t\taDescriptor = new java.beans.PropertyDescriptor(\"componentOrientation\"\n\t\t\t, getBeanClass());\n\t\t};\n\t\t/* aDescriptor.setBound(false); */\n\t\t/* aDescriptor.setConstrained(false); */\n\t\t/* aDescriptor.setDisplayName(\"componentOrientation\"); */\n\t\t/* aDescriptor.setShortDescription(\"componentOrientation\"); */\n\t\t/* aDescriptor.setExpert(false); */\n\t\t/* aDescriptor.setHidden(false); */\n\t\t/* aDescriptor.setValue(\"preferred\", new Boolean(false)); */\n\t\t/* aDescriptor.setValue(\"ivjDesignTimeProperty\", new Boolean(true)); */\n\t\taDescriptor.setValue(\"enumerationValues\", new Object[] {\n\t\t\t\t\"UNKNOWN\",java.awt.ComponentOrientation.UNKNOWN,\"java.awt.ComponentOrientation.UNKNOWN\",\n\t\t\t\t\"LEFT_TO_RIGHT\",java.awt.ComponentOrientation.LEFT_TO_RIGHT,\"java.awt.ComponentOrientation.LEFT_TO_RIGHT\",\n\t\t\t\t\"RIGHT_TO_LEFT\",java.awt.ComponentOrientation.RIGHT_TO_LEFT,\"java.awt.ComponentOrientation.RIGHT_TO_LEFT\",\n\t\t});\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn aDescriptor;\n}",
"public interface Orientation {\n\n int LEFT = 0; //左\n int TOP = 1; //顶\n int RIGHT = 2; //右\n int BOTTOM = 4; //底\n int ALL = 8; //所有方向\n int NONE = 16; //无方向\n\n}",
"@Override\n public JQLayout getLayout()\n {\n return layout;\n }",
"public String getLayoutName() {\n return layoutName;\n }",
"protected int getExifOrientation(final File imageFile) {\n try {\n final ImageMetadata metadata = Imaging.getMetadata(imageFile);\n TiffImageMetadata tiffImageMetadata;\n\n if (metadata instanceof JpegImageMetadata) {\n tiffImageMetadata = ((JpegImageMetadata) metadata).getExif();\n } else if (metadata instanceof TiffImageMetadata) {\n tiffImageMetadata = (TiffImageMetadata) metadata;\n } else {\n return TiffTagConstants.ORIENTATION_VALUE_HORIZONTAL_NORMAL;\n }\n if(tiffImageMetadata==null){\n return TiffTagConstants.ORIENTATION_VALUE_HORIZONTAL_NORMAL;\n }\n TiffField field = tiffImageMetadata.findField(TiffTagConstants.TIFF_TAG_ORIENTATION);\n if (field != null) {\n return field.getIntValue();\n } else {\n TagInfo tagInfo = new TagInfoShort(\"Orientation\", 0x115, TiffDirectoryType.TIFF_DIRECTORY_IFD0); // MAGIC_NUMBER\n field = tiffImageMetadata.findField(tagInfo);\n if (field != null) {\n return field.getIntValue();\n } else {\n return TiffTagConstants.ORIENTATION_VALUE_HORIZONTAL_NORMAL;\n }\n }\n } catch (ImageReadException | IOException e) {\n return TiffTagConstants.ORIENTATION_VALUE_HORIZONTAL_NORMAL;\n }\n }",
"private boolean isLandscapeOrientation(){\n return getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; \n }",
"public int getAlignment()\n {\n return bouquet.getAlignment();\n }",
"public short get_parent() {\n return (short)getUIntElement(offsetBits_parent(), 8);\n }",
"@Override\n public Orientation getInitialValue(SegmentedBar node) {\n return node.getOrientation();\n }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"public ArrayList<Tile[]> getLayout() {\r\n\t\treturn layout;\r\n\t}",
"public GraphicalLattice getParentLattice() {\n\t\treturn parentLattice;\n\t}",
"public int getRotation() {\r\n\t\treturn rotation;\r\n\t}",
"public int getRotation() {\n\treturn rotation;\n\t//return rotation;\n}",
"public boolean getOrientationChanged(){ return mOrientationChange; }",
"public float getBaseRotation() {\n return this.baseRotation;\n }",
"public abstract int getLayoutId();",
"public abstract int getLayoutId();",
"public abstract int getLayoutId();",
"public Object getLayoutInfo() { return _layoutInfo; }",
"public int getSwtAlignment() {\r\n return f_swtAlignment;\r\n }",
"@Override // com.android.server.wm.WindowContainer\n public boolean handlesOrientationChangeFromDescendant() {\n return getDisplayRotation().respectAppRequestedOrientation();\n }",
"int orientation(Coord pos) {\n\t\tint val = (to.y - from.y) * (pos.x - to.x) - (to.x - from.x) * (pos.y - to.y);\n\t\treturn (val > 0) ? 1 : ((val < 0) ? -1 : 0);\n\t}",
"public interface Parent {\n \n /**\n * Get start offset of the child with the given index.\n * <br>\n * The child can be either flyweight or regular view.\n *\n * @param childViewIndex >=0 index of the child.\n * @return start offset of the requested child.\n */\n public int getStartOffset(int childViewIndex);\n \n /**\n * Get end offset of the child with the given index.\n * <br>\n * The child can be either flyweight or regular view.\n *\n * @param childViewIndex >=0 index of the child.\n * @return start offset of the requested child.\n */\n public int getEndOffset(int childViewIndex);\n \n }",
"public Short getLayoutType() {\n return layoutType;\n }",
"private String getParentDesc() {\n if (Objects.nonNull(parent)) {\n return String.valueOf(dataLayout.getLayout().getId());\n }\n\n // Level 0th.\n if (Objects.isNull(node.getParent())) {\n // From flat table.\n return \"flat table\";\n }\n // From data layout.\n return String.valueOf(node.getParent().getLayout().getId());\n }",
"public short getVertOrient() throws TextException {\r\n try {\r\n short verticalAlignment = ((Short) getXPropertySet().getPropertyValue(\"VertOrient\"))\r\n .shortValue();\r\n if (verticalAlignment == VertOrientation.CENTER) {\r\n return ALIGN_CENTER;\r\n } else if (verticalAlignment == VertOrientation.BOTTOM) {\r\n return ALIGN_BOTTOM;\r\n } else if (verticalAlignment == VertOrientation.TOP) {\r\n return ALIGN_TOP;\r\n } else {\r\n return ALIGN_UNDEFINED;\r\n }\r\n } catch (Exception exception) {\r\n TextException textException = new TextException(exception.getMessage());\r\n textException.initCause(exception);\r\n throw textException;\r\n }\r\n }",
"public short getHorizontalAlignment()\n {\n return halign;\n }",
"public static int getOrientation(@CheckForNull Context context) {\n /*\n * Display display = ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE\n * )).getDefaultDisplay(); int orientation = display.getOrientation(); if (orientation ==\n * ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) return Configuration.ORIENTATION_LANDSCAPE; else\n * if (orientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) return\n * Configuration.ORIENTATION_PORTRAIT; else if (orientation ==\n * ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED) return Configuration.ORIENTATION_UNDEFINED;\n * return orientation;\n */\n if (context == null)\n context = CardManager.getApplicationContext();\n return context.getResources().getConfiguration().orientation;\n\n }",
"public ZeroSides calculateShouldZeroSides() {\r\n if (!(getContext() instanceof Activity)) {\r\n return ZeroSides.NONE;\r\n }\r\n Activity activity = (Activity) getContext();\r\n int i = activity.getResources().getConfiguration().orientation;\r\n int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();\r\n if (i != 2) {\r\n return ZeroSides.NONE;\r\n }\r\n if (rotation == 1) {\r\n return ZeroSides.RIGHT;\r\n }\r\n if (rotation == 3) {\r\n return Build.VERSION.SDK_INT >= 23 ? ZeroSides.LEFT : ZeroSides.RIGHT;\r\n }\r\n if (rotation == 0 || rotation == 2) {\r\n return ZeroSides.BOTH;\r\n }\r\n return ZeroSides.NONE;\r\n }",
"@Override\n public boolean canResolveLayoutDirection() {return false;}",
"public int getLastWindowForcedOrientation() {\n return this.mLastWindowForcedOrientation;\n }",
"public int getPieRotation() {\n return mPieRotation;\n }",
"@Override\n public int getCameraOrientation() {\n return characteristics_sensor_orientation;\n }",
"public ColumnInfo[] getLayout()\n\t{\n\t\treturn m_layout;\n\t}",
"public static String getLayout() {\n layout = getProperty(\"layout\");\n if (layout == null) layout = \"dot\";\n return layout;\n }"
] | [
"0.7559663",
"0.73749596",
"0.73458135",
"0.734489",
"0.72873443",
"0.7276089",
"0.72620356",
"0.7220313",
"0.7216792",
"0.7178827",
"0.71491396",
"0.71349525",
"0.7111572",
"0.7080351",
"0.7077804",
"0.70755905",
"0.70707726",
"0.70232683",
"0.7012109",
"0.7002534",
"0.6936879",
"0.6911592",
"0.6884593",
"0.6857638",
"0.6803709",
"0.6788437",
"0.67682457",
"0.6678435",
"0.66039294",
"0.65640867",
"0.65562755",
"0.6536261",
"0.6441183",
"0.64040667",
"0.6401513",
"0.6391424",
"0.6367004",
"0.6331442",
"0.6225099",
"0.6201041",
"0.6196179",
"0.6195746",
"0.61814636",
"0.61783403",
"0.61734784",
"0.6165271",
"0.6124768",
"0.6108317",
"0.6108149",
"0.6087571",
"0.6082348",
"0.6050976",
"0.59854734",
"0.59812784",
"0.5978927",
"0.5924865",
"0.591767",
"0.5906583",
"0.5885619",
"0.58289003",
"0.58136183",
"0.58069",
"0.57863975",
"0.5762142",
"0.57564193",
"0.574978",
"0.574778",
"0.5744252",
"0.5734993",
"0.57199246",
"0.5718485",
"0.5717329",
"0.57152915",
"0.5689106",
"0.5675931",
"0.5665621",
"0.5665415",
"0.5656744",
"0.565565",
"0.5655395",
"0.56541383",
"0.56541383",
"0.56541383",
"0.5651758",
"0.5642992",
"0.5642558",
"0.5641103",
"0.56408304",
"0.56190765",
"0.5616935",
"0.55976844",
"0.5596877",
"0.55808246",
"0.55794734",
"0.55771905",
"0.55736625",
"0.55736345",
"0.5569445",
"0.5561182",
"0.55605125"
] | 0.90855813 | 0 |
/ Method that initializes the graph, sets the viewport, title, colors. | public void initGraph(GraphView graph) {
graph.getViewport().setXAxisBoundsManual(true);
graph.getViewport().setMinX(0);
graph.getViewport().setMaxX(graphWidth); //ici il faut setter maxWidth
graph.getGridLabelRenderer().setLabelVerticalWidth(100);
for(CustomPair<String, CustomPair<Integer, Integer>> can:cans)
{
graph.addSeries(series.get(can.getKey()));
series.get(can.getKey()).setTitle(can.getKey());
}
graph.getLegendRenderer().setVisible(true);
graph.getLegendRenderer().setBackgroundColor(Color.TRANSPARENT);
graph.setTitle(name);
graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.MIDDLE);
graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.BOTTOM);
graph.getGridLabelRenderer().setGridColor(themeColor);
graph.getGridLabelRenderer().setHorizontalLabelsColor(themeColor);
graph.getGridLabelRenderer().setVerticalLabelsColor(themeColor);
graph.getGridLabelRenderer().setVerticalAxisTitleColor(themeColor);
graph.getLegendRenderer().setTextColor(themeColor);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setUpGraph() {\n \tString title;\n\t\ttry {\n\t\t\ttitle = util.readTextFile(new File(UI.UITEXT_DIRECTORY)).get(GRAPHTITLE_DEX);\n\t\t\taCS = new AreaChartSample(cellStateNames,title);\n\t\t} catch (FileNotFoundException e) {\n\t\t\taCS = new AreaChartSample(cellStateNames, \"ERROR ON TITLE\");\n\t\t}\n\t\troot.getChildren().add(aCS.getAreaChart());\n \tplot();\n }",
"public GraphView() {\r\n graphModel = new GraphModel();\r\n graphModel.setNoOfChannels(0);\r\n graphModel.setXLength(1);\r\n initializeGraph();\r\n add(chartPanel);\r\n setVisible(true);\r\n }",
"@Override\n\tpublic void init() {\n\t\tGraph<Number,Number> ig = Graphs.<Number,Number>synchronizedDirectedGraph(new DirectedSparseMultigraph<Number,Number>());\n\t\tObservableGraph<Number,Number> og = new ObservableGraph<Number,Number>(ig);\n\t\tog.addGraphEventListener(new GraphEventListener<Number,Number>() {\n\n\t\t\tpublic void handleGraphEvent(GraphEvent<Number, Number> evt) {\n\t\t\t\tSystem.err.println(\"got \"+evt);\n\n\t\t\t}});\n\t\tthis.g = og;\n\n\t\tthis.timer = new Timer();\n\t\tthis.layout = new FRLayout2<Number,Number>(g);\n\t\t// ((FRLayout)layout).setMaxIterations(200);\n\t\t// create a simple pickable layout\n\t\tthis.vv = new VisualizationViewer<Number,Number>(layout, new Dimension(600,600));\n\n\n\n\t}",
"private void initialize() {\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(Color.white);\n\t\tthis.setBounds(new Rectangle(0, 0, 943, 615));\n this.setPreferredSize(new Dimension(890,570));\n this.setMinimumSize(new Dimension(890,570));\n\n\t\tm_GraphControlGradient = new GraphControl();\n\t\tm_GraphControlGradient.setBounds(new Rectangle(4, 16, 461, 285));\n\t\tm_GraphControlGradient.setControlsEnabled(false);\n\n\t\tm_GraphControlFlowRate = new GraphControl();\n\t\tm_GraphControlFlowRate.setBounds(new Rectangle(3, 16, 462, 241));\n\t\tm_GraphControlFlowRate.setControlsEnabled(false);\n\n\t\tthis.add(getJbtnPreviousStep(), null);\n\t\tthis.add(getJpanelGradientProfile(), null);\n\t\tthis.add(getJpanelFlowProfile(), null);\n\t\tthis.setVisible(true);\n\t\tthis.add(getJbtnHelp(), null);\n\t\tthis.add(getJpanelStep5(), null);\n\t\t\n\t\tthis.tmOutputModel.addTableModelListener(this);\n\t\tthis.addComponentListener(this);\n\t}",
"private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }",
"public Graph() {\r\n\t\tnodePos = new HashMap<Integer, Vec2D>();\r\n\t\tconnectionLists = new HashMap<Integer, List<Connection>>();\r\n\t\t//screenWidth = Config.SCREEN_WIDTH;\r\n\t}",
"public samJGraph()\n {\n super(new GraphPane( new GraphModel(), new samGraphController() ) );\n }",
"public static void createAndShowGUI(){\n\n //the main graph frame\n JFrame mainFrame = new JFrame(\"Graphit\");\n mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n mainFrame.setSize(CANVAS_WIDTH, CANVAS_HEIGHT);\n\n gc = new NGraphitController();\n\n p = new Point(0,0);\n\n // Viewport is to man through the graph.\n vp = new JViewport();\n vp.setSize(100, 100);\n vp.setView(gc);\n mainFrame.add(vp);\n\n mainFrame.pack();\n mainFrame.setLocationRelativeTo(null);\n mainFrame.setVisible(true);\n\n }",
"public Graph() {\n\t\tthis(new PApplet());\n\t}",
"public void init(List<PlotData> graphs, int currentGraphNum, List<Slot> allViews, TimeInterval timeRange, IMeanState meanState, int height);",
"public void init() {\n jgxAdapter = new JGraphXAdapter<DatabaseProcess, DefaultEdge>(this.graph);\n\n getContentPane().add(new mxGraphComponent(jgxAdapter));\n resize(DEFAULT_SIZE);\n\n // positioning via jgraphx layouts\n mxCircleLayout layout = new mxCircleLayout(jgxAdapter);\n layout.execute(jgxAdapter.getDefaultParent());\n }",
"public JXGraph() {\r\n this(0.0, 0.0, -1.0, 1.0, -1.0, 1.0, 0.2, 4, 0.2, 4);\r\n }",
"private void setGraphDataAndStyle() {\n graphView.addSeries(new LineGraphSeries(getSeriesData()));\n graphView.setTitle(\"配速\");\n graphView.getGridLabelRenderer().setLabelFormatter(new DateAxisLabelFormatter(getActivity()));\n graphView.getGridLabelRenderer().setNumVerticalLabels(locations.size());\n graphView.getViewport().setMinX(locations.get(0).getTime());\n graphView.getViewport().setMaxX(locations.get(locations.size()-1).getTime());\n graphView.getViewport().setXAxisBoundsManual(true);\n\n }",
"@Override\n\tpublic void initialise(Simulation sim)\n\t{\n\t\tthis.sim = sim;\n\t\tthis.en = (Environment)sim.environment;\n\t\tthis.add(new JScrollPane(new JList(data)));\n\t\tsetBackground(Color.LIGHT_GRAY);\n\t}",
"public void setGraph(){\r\n setDisplay(currentGraph);\r\n }",
"public Visualize() {\n initComponents();\n \n }",
"private void createGraph() {\r\n graph = new Graph(SHELL, SWT.NONE);\r\n\r\n final GridData gridData = new GridData();\r\n gridData.horizontalAlignment = GridData.FILL;\r\n gridData.verticalAlignment = GridData.FILL;\r\n gridData.grabExcessHorizontalSpace = true;\r\n gridData.grabExcessVerticalSpace = true;\r\n gridData.heightHint = DEFAULT_GRAPH_SIZE;\r\n gridData.widthHint = DEFAULT_GRAPH_SIZE;\r\n graph.setLayoutData(gridData);\r\n }",
"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 Graph() {\r\n\t\tinit();\r\n\t}",
"private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }",
"public Visualizador() {\n initComponents();\n inicializar();\n }",
"public void init() {\t\n\t\tcolorMap = loadXKCDColors();\n\t\t\n\t\t/* Ensure we get a \"Graph\" message from the text box. */\n\t\tcolorInput.addActionListener(this);\n\t\tcolorInput.setActionCommand(\"Graph\");\n\t\tadd(colorInput, SOUTH);\n\t\t\n\t\tJButton graphButton = new JButton(\"Graph\");\n\t\tadd(graphButton, SOUTH);\n\t\t\n\t\tJButton clearButton = new JButton(\"Clear\");\n\t\tadd(clearButton, SOUTH);\n\t\t\n\t\taddActionListeners();\n\t}",
"public Automata() {\n initComponents();\n getContentPane().setSize(600, 400);\n getContentPane().setMinimumSize(new Dimension(600, 400));\n \n graph.setPreferredSize(new Dimension(600, 400));\n graph.setMinimumSize(new Dimension(600, 400));\n getContentPane().add(graph, java.awt.BorderLayout.CENTER);\n pack();\n }",
"private void initialize(Graph G, List<double[]> V, double[] mapBounds) {\n\t\tmapContainer = new JLabel();\n\t\tthis.G = G;\n\t\tthis.V = V;\n\t\tthis.mapBounds = mapBounds;\n\t\t\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetBounds(0, 0, screenSize.width, screenSize.height);\n\t\t\n\t\tsetTitle(\"Street Map\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\taddImage();\n\t\tsetVisible(true);\n\t\taddMouseListener(new MouseInput());\n\t\t\n\t\ttitle = \"Title\";\n\t\ttitleFont = new Font(\"Monospace\", Font.BOLD, 13);\n\t\tsubtitle = \"Subtitle\";\n\t\tsubtitleFont = new Font(\"Monospace\", Font.BOLD, 10);\n\t\t\n\t\troadWidth = 1;\n\t\troadColor = Color.black;\n\t\tpathWidth = 3;\n\t\tpathColor = Color.red;\n\t\tzoom = 1.0;\n\t\txF = yF = 0.5;\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}",
"public void init() {\n\t\t// Read the data text file and load up the local database\n\t\tinitData();\n\n\t\t// Create the labels and the textbox\n\t\taddNameLabel();\n\t\taddNameBox();\n\t\taddGraphButton();\n\t\taddClearButton();\n\n\t\t// Set up the graph object\n\t\tgraph = new NameSurferGraph();\n\t\tadd(graph);\n\n\t}",
"private void configure() throws InvalidStateException {\r\n // Default options\r\n mRenderer.setBackgroundColor(mContext.getResources().getColor(R.color.white));\r\n mRenderer.setMarginsColor(mContext.getResources().getColor(R.color.white));\r\n mRenderer.setLabelsColor(mContext.getResources().getColor(R.color.grey_darker));\r\n mRenderer.setXLabelsColor(mContext.getResources().getColor(R.color.grey_darker));\r\n mRenderer.setYLabelsColor(0, mContext.getResources().getColor(R.color.grey_darker));\r\n mRenderer.setYLabelsColor(1, mContext.getResources().getColor(R.color.grey_darker));\r\n mRenderer.setXLabelsAlign(Align.CENTER);\r\n mRenderer.setYLabelsAlign(Align.RIGHT);\r\n mRenderer.setYLabelsAlign(Align.LEFT, 1);\r\n mRenderer.setYAxisAlign(Align.RIGHT, 1);\r\n mRenderer.setAxesColor(mContext.getResources().getColor(R.color.grey_lighter));\r\n mRenderer.setLabelsTextSize(mTextSize);\r\n mRenderer.setAxisTitleTextSize(mTextSize);\r\n mRenderer.setApplyBackgroundColor(true);\r\n mRenderer.setShowGrid(true);\r\n\r\n int padding = 10;\r\n mRenderer.setXLabelsPadding(padding);\r\n mRenderer.setYLabelsPadding(padding);\r\n mRenderer.setYLabelsVerticalPadding(padding);\r\n\r\n if (Graph.TYPE_BAR.equals(mData.getType())) {\r\n mRenderer.setBarSpacing(0.5);\r\n }\r\n\r\n // User-configurable options\r\n mRenderer.setXTitle(mData.getConfiguration(\"x-title\", \"\"));\r\n mRenderer.setYTitle(mData.getConfiguration(\"y-title\", \"\"));\r\n mRenderer.setYTitle(mData.getConfiguration(\"secondary-y-title\", \"\"), 1);\r\n\r\n if (Graph.TYPE_BAR.equals(mData.getType())) {\r\n XYMultipleSeriesRenderer.Orientation orientation = getOrientation();\r\n mRenderer.setOrientation(orientation);\r\n if (orientation.equals(XYMultipleSeriesRenderer.Orientation.VERTICAL)) {\r\n mRenderer.setXLabelsAlign(Align.LEFT);\r\n mRenderer.setXLabelsPadding(0);\r\n }\r\n }\r\n\r\n if (mData.getConfiguration(\"x-min\") != null) {\r\n mRenderer.setXAxisMin(parseXValue(mData.getConfiguration(\"x-min\"), \"x-min\"));\r\n }\r\n if (mData.getConfiguration(\"y-min\") != null) {\r\n mRenderer.setYAxisMin(parseYValue(mData.getConfiguration(\"y-min\"), \"y-min\"));\r\n }\r\n if (mData.getConfiguration(\"secondary-y-min\") != null) {\r\n mRenderer.setYAxisMin(parseYValue(mData.getConfiguration(\"secondary-y-min\"), \"secondary-y-min\"), 1);\r\n }\r\n\r\n if (mData.getConfiguration(\"x-max\") != null) {\r\n mRenderer.setXAxisMax(parseXValue(mData.getConfiguration(\"x-max\"), \"x-max\"));\r\n }\r\n if (mData.getConfiguration(\"y-max\") != null) {\r\n mRenderer.setYAxisMax(parseYValue(mData.getConfiguration(\"y-max\"), \"y-max\"));\r\n }\r\n if (mData.getConfiguration(\"secondary-y-max\") != null) {\r\n mRenderer.setYAxisMax(parseYValue(mData.getConfiguration(\"secondary-y-max\"), \"secondary-y-max\"), 1);\r\n }\r\n\r\n boolean showGrid = Boolean.valueOf(mData.getConfiguration(\"show-grid\", \"true\")).equals(Boolean.TRUE);\r\n mRenderer.setShowGridX(showGrid);\r\n mRenderer.setShowGridY(showGrid);\r\n mRenderer.setShowCustomTextGridX(showGrid);\r\n mRenderer.setShowCustomTextGridY(showGrid);\r\n\r\n String showAxes = mData.getConfiguration(\"show-axes\", \"true\");\r\n if (Boolean.valueOf(showAxes).equals(Boolean.FALSE)) {\r\n mRenderer.setShowAxes(false);\r\n }\r\n\r\n // Legend\r\n boolean showLegend = Boolean.valueOf(mData.getConfiguration(\"show-legend\", \"false\"));\r\n mRenderer.setShowLegend(showLegend);\r\n mRenderer.setFitLegend(showLegend);\r\n mRenderer.setLegendTextSize(mTextSize);\r\n\r\n // Labels\r\n boolean hasX = configureLabels(\"x-labels\");\r\n boolean hasY = configureLabels(\"y-labels\");\r\n configureLabels(\"secondary-y-labels\");\r\n boolean showLabels = hasX || hasY;\r\n mRenderer.setShowLabels(showLabels);\r\n // Tick marks are sometimes ugly, so let's be minimalist and always leave the off\r\n mRenderer.setShowTickMarks(false);\r\n }",
"public void initGraph(GraphData graphData) {\r\n \t\r\n \tGraph g = graphData.getGraph();\r\n \r\n // add visual data groups\r\n \tsetGraph(g, \"social graph\");\r\n \t\r\n \t/*\r\n \tint numEdges = g.getEdges().getTupleCount();\r\n\t\tint numEdgesToRemove = 0;\r\n\t\tif (numEdges < 6)\r\n\t\t\tnumEdgesToRemove = 0;\r\n\t\telse \r\n\t\t\tnumEdgesToRemove = 6;\r\n\t\t*/\r\n \tint numEdgesToRemove = 0;\r\n \t\r\n \t\tthis.clusterSize = clusterGraph(numEdgesToRemove, false);\r\n \t\r\n // set up the renderers \r\n // draw the nodes as basic shapes\r\n //Renderer nodeR = new ShapeRenderer(20); \r\n LabelRenderer nodeR = new LabelRenderer(\"label\", \"image\"); \r\n nodeR.setRoundedCorner(10, 10); \r\n nodeR.setImagePosition(Constants.TOP); \r\n \r\n // draw aggregates as polygons with curved edges\r\n Renderer polyR = new PolygonRenderer(Constants.POLY_TYPE_CURVE);\r\n ((PolygonRenderer)polyR).setCurveSlack(0.15f);\r\n \r\n DefaultRendererFactory drf = new DefaultRendererFactory();\r\n drf.setDefaultRenderer(nodeR);\r\n drf.add(\"ingroup('aggregates')\", polyR);\r\n m_vis.setRendererFactory(drf); \r\n \r\n // fix selected focus nodes\r\n TupleSet focusGroup = m_vis.getGroup(Visualization.FOCUS_ITEMS); \r\n focusGroup.addTupleSetListener(new TupleSetListener() {\r\n public void tupleSetChanged(TupleSet ts, Tuple[] add, Tuple[] rem) {\r\n for ( int i=0; i<rem.length; ++i )\r\n ((VisualItem)rem[i]).setFixed(false);\r\n for ( int i=0; i<add.length; ++i ) {\r\n ((VisualItem)add[i]).setFixed(false);\r\n ((VisualItem)add[i]).setFixed(true);\r\n }\r\n if ( ts.getTupleCount() == 0 ) {\r\n ts.addTuple(rem[0]);\r\n ((VisualItem)rem[0]).setFixed(false);\r\n }\r\n m_vis.run(\"draw\");\r\n }\r\n });\r\n \r\n // set up the visual operators\r\n // first set up all the color actions \r\n ColorAction nNodeStroke = new ColorAction(NODES, VisualItem.STROKECOLOR, 0); \r\n \r\n ColorAction nNodeFill = new ColorAction(NODES, VisualItem.FILLCOLOR, ColorLib.rgb(200,200,255));\r\n nNodeFill.add(VisualItem.FIXED, ColorLib.rgb(255,100,100));\r\n nNodeFill.add(VisualItem.HIGHLIGHT, ColorLib.rgb(255,200,125));\r\n \r\n ColorAction nNodeText = new ColorAction(NODES, VisualItem.TEXTCOLOR, ColorLib.rgb(0,0,0));\r\n \r\n ColorAction nEdgeFill = new ColorAction(EDGES, VisualItem.FILLCOLOR, ColorLib.gray(200)); \r\n \r\n ColorAction nEdgeStroke = new ColorAction(EDGES, VisualItem.STROKECOLOR, ColorLib.gray(200));\r\n \r\n ColorAction aStroke = new ColorAction(AGGR, VisualItem.STROKECOLOR);\r\n aStroke.setDefaultColor(ColorLib.gray(200));\r\n aStroke.add(\"_hover\", ColorLib.rgb(255,100,100));\r\n \r\n int[] palette = new int[] {\r\n ColorLib.rgba(255,200,200,150),\r\n ColorLib.rgba(200,255,200,150),\r\n ColorLib.rgba(200,200,255,150),\r\n ColorLib.rgba(216,134,134,150),\r\n ColorLib.rgba(135,137,211,150),\r\n ColorLib.rgba(134,206,189,150),\r\n ColorLib.rgba(206,176,134,150),\r\n ColorLib.rgba(194,204,134,150),\r\n ColorLib.rgba(145,214,134,150),\r\n ColorLib.rgba(133,178,209,150),\r\n ColorLib.rgba(103,148,255,150),\r\n ColorLib.rgba(60,220,220,150),\r\n ColorLib.rgba(30,250,100,150)\r\n };\r\n \r\n ColorAction aFill = new DataColorAction(AGGR, \"id\",\r\n Constants.NOMINAL, VisualItem.FILLCOLOR, palette);\r\n \r\n // bundle the color actions\r\n ActionList draw = new ActionList();\r\n draw.add(nNodeStroke);\r\n draw.add(nNodeFill);\r\n draw.add(nNodeText);\r\n draw.add(nEdgeFill);\r\n draw.add(nEdgeStroke);\r\n draw.add(aStroke);\r\n draw.add(aFill); \r\n \r\n ForceSimulator forceSimulator = new ForceSimulator();\r\n\t\tforceSimulator.addForce(new NBodyForce(-1.0f, -1.0f, 0.899f));\r\n\t\tforceSimulator.addForce(new DragForce(0.009f));\r\n\t\tforceSimulator.addForce(new SpringForce(9.99E-6f, 200.0f));\r\n \r\n // now create the main layout routine\r\n ActionList animate = new ActionList(Activity.INFINITY);\r\n ForceDirectedLayout layout = new ForceDirectedLayout(GRAPH, forceSimulator, true); \r\n animate.add(layout);\r\n animate.add(draw); \r\n animate.add(new AggregateLayout(AGGR));\r\n animate.add(new RepaintAction());\r\n \r\n // finally, we register our ActionList with the Visualization.\r\n // we can later execute our Actions by invoking a method on our\r\n // Visualization, using the name we've chosen below.\r\n m_vis.putAction(\"draw\", draw); \r\n m_vis.putAction(\"layout\", animate);\r\n m_vis.runAfter(\"draw\", \"layout\"); \r\n \r\n // set up the display\r\n setSize(700, 700);\r\n pan(350, 350);\r\n setHighQuality(true);\r\n setForeground(Color.GRAY);\r\n setBackground(Color.WHITE);\r\n addControlListener(new AggregateDragControl());\r\n addControlListener(new ZoomControl());\r\n addControlListener(new PanControl()); \r\n addControlListener(new FocusControl(1));\r\n addControlListener(new DragControl());\r\n addControlListener(new WheelZoomControl());\r\n addControlListener(new ZoomToFitControl());\r\n addControlListener(new NeighborHighlightControl());\r\n \r\n\t\taddControlListener(new ControlAdapter() {\r\n\r\n\t\t\tpublic void itemEntered(VisualItem item, MouseEvent e) {\r\n\t\t\t\t//System.out.println(\"itemEntered....................\");\r\n\t\t\t\tif (item.isInGroup(NODES)) {\r\n\t\t\t\t\titem.setFillColor(ColorLib.rgb(255,200,125));\r\n\t\t\t\t\titem.setStrokeColor(ColorLib.rgb(255,200,125));\r\n\t\t\t\t\titem.getVisualization().repaint();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tpublic void itemExited(VisualItem item, MouseEvent e) {\r\n\t\t\t\t//System.out.println(\"itemExited....................\");\r\n\t\t\t\tif (item.isInGroup(NODES)) {\r\n\t\t\t\t\tif (item.isInGroup(Visualization.FOCUS_ITEMS)) {\r\n\t\t\t\t\t\titem.setFillColor(ColorLib.rgb(255,200,125));\r\n\t\t\t\t\t\titem.setStrokeColor(ColorLib.rgb(255,200,125));\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\titem.getVisualization().repaint();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void itemPressed(VisualItem item, MouseEvent e) {\r\n\t\t\t\t//System.out.println(\"itemPressed....................\");\r\n\t\t\t\t\r\n\t\t\t\tif (e.getClickCount() == 2) {\r\n\t\t\t\t\tSystem.out.println(\"itemDoubleClicked....................\");\r\n\t\t\t\t\tString id = item.getString(\"id\");\r\n\t\t\t\t\tif (id != null) {\r\n\t\t\t\t\t\tSystem.out.println(\"ID[\" + id + \"] is selected.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (item.isInGroup(NODES)) {\r\n\t\t\t\t\t//System.out.println(\"Node Selected....\");\r\n\t\t\t\t\titem.setFillColor(ColorLib.rgb(255,200,125));\r\n\t\t\t\t\titem.setStrokeColor(ColorLib.rgb(255,200,125));\r\n\t\t\t\t\titem.getVisualization().repaint();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (e.isPopupTrigger()) {\r\n\t\t\t\t\tSystem.out.println(\"---------isPopupTrigger....................\");\r\n\t\t\t\t\tString id = item.getString(\"id\");\r\n\t\t\t\t\tif (id != null) {\r\n\t\t\t\t\t\tSystem.out.println(\"ID[\" + id + \"] popup menu selected.\");\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});\r\n \r\n // set things running\r\n m_vis.run(\"layout\"); \t\r\n }",
"protected void init() {\n/* 35 */ super.init();\n/* */ \n/* 37 */ this.mRenderer = new BubbleChartRenderer(this, this.mAnimator, this.mViewPortHandler);\n/* */ }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n chartModel = new ChartModel(headerController.getSettingsModel());\n headerController.setActionListener(() -> {\n generateGraph();\n });\n \n chart.dataProperty().bind(chartModel.getChartData());\n }",
"public Main() {\n grafo = new MultiGraph(\"Mapa\", false, true);\n initComponents();\n\n }",
"public GraphPanel()\n\t{\n\t\t// instantiates graphArray to hold list of names to graph \n\t\tgraphArray = new ArrayList<NameRecord>();\n\t\t\n\t\t// sets the size of the panel\n\t\tsetPreferredSize(new Dimension(600,600));\n\t}",
"private void initialize() {\r\n\t\tsetLabels();\r\n\t\tinitPoints();\r\n\t\tsetButtons();\r\n\t\tthis.setTitle(\"Digite os pesos dos pontos\");\r\n\t\tthis.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n\t}",
"public void init()\n {\n setBackground(Color.YELLOW);\n setForeground(Color.RED);\n }",
"public void init() {\n try {\n java.net.URL codeBase = getCodeBase();\n codeBaseString = codeBase.toString();\n } catch (Exception e) {\n // probably running as an application, try the application\n // code base\n codeBaseString = \"file:./\";\n }\n\n if (colorMode == USE_COLOR) {\n objColor = red;\n } else {\n objColor = white;\n }\n\n Container contentPane = getContentPane();\n\n contentPane.setLayout(new BorderLayout());\n\n GraphicsConfiguration config = SimpleUniverse\n .getPreferredConfiguration();\n\n canvas = new Canvas3D(config);\n\n u = new SimpleUniverse(canvas);\n\n if (isApplication) {\n offScreenCanvas = new OffScreenCanvas3D(config, true);\n // set the size of the off-screen canvas based on a scale\n // of the on-screen size\n Screen3D sOn = canvas.getScreen3D();\n Screen3D sOff = offScreenCanvas.getScreen3D();\n Dimension dim = sOn.getSize();\n dim.width *= OFF_SCREEN_SCALE;\n dim.height *= OFF_SCREEN_SCALE;\n sOff.setSize(dim);\n sOff.setPhysicalScreenWidth(sOn.getPhysicalScreenWidth()\n * OFF_SCREEN_SCALE);\n sOff.setPhysicalScreenHeight(sOn.getPhysicalScreenHeight()\n * OFF_SCREEN_SCALE);\n\n // attach the offscreen canvas to the view\n u.getViewer().getView().addCanvas3D(offScreenCanvas);\n\n }\n contentPane.add(\"Center\", canvas);\n\n // setup the env nodes and their GUI elements\n setupLights();\n setupBackgrounds();\n setupFogs();\n setupSounds();\n\n // Create a simple scene and attach it to the virtual universe\n BranchGroup scene = createSceneGraph();\n\n // set up sound\n u.getViewer().createAudioDevice();\n\n // get the view\n view = u.getViewer().getView();\n\n // Get the viewing platform\n ViewingPlatform viewingPlatform = u.getViewingPlatform();\n\n // Move the viewing platform back to enclose the -4 -> 4 range\n double viewRadius = 4.0; // want to be able to see circle\n // of viewRadius size around origin\n // get the field of view\n double fov = u.getViewer().getView().getFieldOfView();\n\n // calc view distance to make circle view in fov\n float viewDistance = (float) (viewRadius / Math.tan(fov / 2.0));\n tmpVector.set(0.0f, 0.0f, viewDistance);// setup offset\n tmpTrans.set(tmpVector); // set trans to translate\n // move the view platform\n viewingPlatform.getViewPlatformTransform().setTransform(tmpTrans);\n\n // add an orbit behavior to move the viewing platform\n OrbitBehavior orbit = new OrbitBehavior(canvas, OrbitBehavior.STOP_ZOOM);\n orbit.setSchedulingBounds(infiniteBounds);\n viewingPlatform.setViewPlatformBehavior(orbit);\n\n u.addBranchGraph(scene);\n\n contentPane.add(\"East\", guiPanel());\n }",
"@Override\n public void simpleInitApp() {\n configureCamera();\n configureMaterials();\n viewPort.setBackgroundColor(new ColorRGBA(0.5f, 0.2f, 0.2f, 1f));\n configurePhysics();\n initializeHeightData();\n addTerrain();\n showHints();\n }",
"private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setSize(300, 200);\n\t\tthis.add(getJScrollPane(), java.awt.BorderLayout.CENTER);\n\t}",
"public DRInitialPlotPanel() {\n initComponents();\n }",
"public GraphFrame(Graph graph) {\r\n super(deriveTitleFrom(graph));\r\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n\r\n URL iconURL = Thread.currentThread().getContextClassLoader().getResource(\"icon.png\");\r\n Image icon = Toolkit.getDefaultToolkit().getImage(iconURL);\r\n setIconImage(icon);\r\n\r\n GraphPanel panel = new GraphPanel(graph);\r\n add(panel);\r\n\r\n setJMenuBar(new MenuBar(graph, panel));\r\n new SelectionController(graph, panel);\r\n new KeyboardController(graph, panel, this);\r\n\r\n Properties lastSession = GraphIO.loadLastSession();\r\n int width, height;\r\n if (lastSession == null) {\r\n width = DEFAULT_WIDTH;\r\n height = DEFAULT_HEIGHT;\r\n } else {\r\n try {\r\n width = Integer.parseInt(lastSession.getProperty(\"windowWidth\", String.valueOf(DEFAULT_WIDTH)));\r\n height = Integer.parseInt(lastSession.getProperty(\"windowHeight\", String.valueOf(DEFAULT_HEIGHT)));\r\n String backgroundRGB = lastSession.getProperty(\"backgroundColor\", null);\r\n if (backgroundRGB != null)\r\n panel.setBackground(new Color((int)Long.parseLong(backgroundRGB, 16)));\r\n } catch (NumberFormatException e) {\r\n width = DEFAULT_WIDTH;\r\n height = DEFAULT_HEIGHT;\r\n }\r\n }\r\n\r\n setPreferredSize(new Dimension(width, height));\r\n pack();\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\r\n addWindowListener(new WindowAdapter() {\r\n @Override\r\n public void windowClosing(WindowEvent e) {\r\n GraphIO.saveSession(graph, GraphFrame.this, panel);\r\n if (graph.hasUnsavedChanges())\r\n promptToSaveBeforeClosing();\r\n else\r\n dispose();\r\n }\r\n });\r\n\r\n this.graph = graph;\r\n graph.addObserver(this);\r\n graph.clearChangedSinceLastSave();\r\n\r\n panel.centerViewOnGraph();\r\n\r\n Animation.Manager.startAnimating();\r\n }",
"private void initialize() {\r\n this.setSize(new Dimension(374, 288));\r\n this.setContentPane(getJPanel());\r\n this.setResizable(false);\r\n this.setModal(true);\r\n this.setTitle(\"颜色选择面板\");\r\n addJPanel();\r\n\t}",
"private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}",
"public void init() {\n setLayout(new BorderLayout());\n }",
"public PlotDrawer() {\n\n\t}",
"public void init() {\n\t\tsetSize(500,300);\n\t}",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"public void initialize() {\n // create pieChart\n chart = new PieChart(pieChartData);\n chart.setTranslateX(-80);\n chart.setTranslateY(20);\n chart.setLegendVisible(false);\n // adjust boxes\n vBoxDesc.setTranslateX(-80);\n vBoxNumbers.setTranslateX(-80);\n // reset labels\n resetLabels();\n // reset Drop Down Boxes\n resetComboBoxes();\n // init waitAlert\n waitAlert = new Alert(Alert.AlertType.NONE);\n waitAlert.initStyle(StageStyle.UNDECORATED);\n waitAlert.initModality(Modality.APPLICATION_MODAL);\n }",
"private void initialize() {\n\t\troot = new Group();\n\t\tgetProperties();\n\t\tsetScene();\n\t\tsetStage();\n\t\tsetGUIComponents();\n\t}",
"public void plotinit() {\r\n\r\n\t\tfloat dx;\r\n\t\tfloat dy;\r\n\t\tfloat d;\r\n\r\n\t\tdy = ymax - ymin;\r\n\t\tdx = xmax - xmin;\r\n\t\td = (dx > dy ? dx : dy) * 1.1f;\r\n\r\n\t\tpxmin = xmin - (d - dx) / 2.0f;\r\n\t\tpxmax = xmax + (d - dx) / 2.0f;\r\n\t\tpymin = ymin - (d - dy) / 2.0f;\r\n\t\tpymax = ymax + (d - dy) / 2.0f;\r\n\r\n\t\tcradius = (pxmax - pxmin) / 350.0f;\r\n\r\n\t}",
"private void setCustomGraph(){\n\n // Set Touch, Drag and Scale to enable\n chart.setTouchEnabled(false);\n chart.setDragEnabled(false);\n chart.setScaleEnabled(false);\n\n // Controlling right side of y axis\n YAxis yAxisRight = chart.getAxisRight();\n yAxisRight.setEnabled(false);\n\n // Controlling left side of y axis\n YAxis yAxisLeft = chart.getAxisLeft();\n yAxisLeft.setGranularity(1f);\n\n yAxisLeft.setAxisLineColor(Color.TRANSPARENT);\n yAxisLeft.setDrawLabels(false);\n\n chart.getDescription().setEnabled(false);\n\n chart.getAxisLeft().setDrawGridLines(false);\n chart.getXAxis().setDrawGridLines(false);\n\n\n //Controlling X axis\n xAxis = chart.getXAxis();\n //Set the xAxis position to bottom\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n\n IAxisValueFormatter formatter = new IAxisValueFormatter() {\n @Override\n public String getFormattedValue(float value, AxisBase axis) {\n return weeks[(int) value];\n }\n };\n\n // minimum axis-step interval is 1\n xAxis.setGranularity(1f);\n xAxis.setValueFormatter(formatter);\n\n }",
"protected void init() {\r\n\t\tsetBackground(Color.black);\r\n\t\tsetForeground(Color.white);\r\n\t\taddMouseListener(this);\r\n\t\taddMouseMotionListener(this);\r\n\t\tcreateSelection();\r\n\t\tsel.addListener(this);\r\n\t\tcreateSection();\r\n\t\tsection.addListener(this);\r\n\t\tsetOpaque(true);\r\n\t\tremoveAll();\r\n\t}",
"public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}",
"private void init() {\n\t\n\t\tthis.setSize(DEFAULT_W, DEFAULT_H);\n\t\tthis.setLocation(DEFAULT_X, DEFAULT_X);\n\t\tthis.setTitle(DEFAULT_TITLE);\n\n\t}",
"public Chart initializeChart();",
"private void configurePlot() {\n // Get background color from Theme\n TypedValue typedValue = new TypedValue();\n activity.getTheme().resolveAttribute(android.R.attr.windowBackground, typedValue, true);\n int backgroundColor = typedValue.data;\n // Set background colors\n heartRatePlot.setPlotMargins(0, 0, 0, 0);\n heartRatePlot.getBorderPaint().setColor(backgroundColor);\n heartRatePlot.getBackgroundPaint().setColor(backgroundColor);\n heartRatePlot.getGraph().getBackgroundPaint().setColor(backgroundColor);\n heartRatePlot.getGraph().getGridBackgroundPaint().setColor(backgroundColor);\n // Set the grid color\n heartRatePlot.getGraph().getRangeGridLinePaint().setColor(Color.DKGRAY);\n heartRatePlot.getGraph().getDomainGridLinePaint().setColor(Color.DKGRAY);\n // Set the origin axes colors\n heartRatePlot.getGraph().getRangeOriginLinePaint().setColor(Color.DKGRAY);\n heartRatePlot.getGraph().getDomainOriginLinePaint().setColor(Color.DKGRAY);\n // Set the XY axis boundaries and step values\n heartRatePlot.setRangeBoundaries(MIN_HR, MAX_HR, BoundaryMode.FIXED); heartRatePlot.setDomainBoundaries(0, NUMBER_OF_POINTS - 1, BoundaryMode.FIXED);\n heartRatePlot.setRangeStepValue(9); // 9 values 40 60 ... 200\n heartRatePlot.getGraph().getLineLabelStyle(XYGraphWidget.Edge.LEFT).setFormat(new DecimalFormat(\"#\"));\n heartRatePlot.getLegend().setVisible(false);\n // This line is to force the Axis to be integer\n heartRatePlot.setRangeLabel(\"Heart rate (bpm)\");\n }",
"public void setup() {\n space = null;\n rabbitList = new ArrayList<>();\n schedule = new Schedule(1);\n\n //recreate main window\n if (displaySurf != null) {\n displaySurf.dispose();\n }\n displaySurf = null;\n displaySurf = new DisplaySurface(this, \"Rabbits Grass Simulation 1\");\n registerDisplaySurface(\"Rabbits Grass Simulation 1\", displaySurf);\n\n //recreate population plot\n if (populationPlot != null) {\n populationPlot.dispose();\n }\n populationPlot = null;\n populationPlot = new OpenSequenceGraph(\"Population Plot\", this);\n populationPlot.setYAutoExpand(false);\n populationPlot.setYRange(0, 200);\n this.registerMediaProducer(\"Plot\", populationPlot);\n }",
"public testChart() {\n initComponents();\n }",
"public void initialize(){\n\t\tDrawingBotV3.logger.entering(\"FX Controller\", \"initialize\");\n\n initToolbar();\n initViewport();\n initPlottingControls();\n initProgressBar();\n initDrawingAreaPane();\n initPreProcessingPane();\n\t\tinitConnectionPortPane();\n initPFMControls();\n initPenSettingsPane();\n\n\n viewportStackPane.setOnMousePressed(DrawingBotV3.INSTANCE::mousePressedJavaFX);\n viewportStackPane.setOnMouseDragged(DrawingBotV3.INSTANCE::mouseDraggedJavaFX);\n\n viewportScrollPane.setHvalue(0.5);\n viewportScrollPane.setVvalue(0.5);\n\n initSeparateStages();\n\n DrawingBotV3.INSTANCE.currentFilters.addListener((ListChangeListener<ObservableImageFilter>) c -> DrawingBotV3.INSTANCE.onImageFiltersChanged());\n DrawingBotV3.logger.exiting(\"FX Controller\", \"initialize\");\n }",
"private void initilize()\n\t{\n\t\tdimXNet = project.getNoC().getNumRotX();\n\t\tdimYNet = project.getNoC().getNumRotY();\n\t\t\n\t\taddProperties();\n\t\taddComponents();\n\t\tsetVisible(true);\n\t}",
"public void initialize() {\n\t\ttoolBar.setDrawingPanel(this.drawingPanel);\r\n\t\t//component initialize\r\n\t\tmenuBar.initialize();\r\n\t\ttoolBar.initialize();\r\n\t\tdrawingPanel.initialize();\r\n\t\t\r\n\t}",
"public BufferVisualization() {\n initComponents();\n }",
"public void initialize() {\n \n super.initialize();\n \n PreferredSizeX = this.getPreferredSizeX();\n PreferredSizeY = this.getPreferredSizeY();\n this.setPreferredSize(new Dimension(PreferredSizeX, PreferredSizeY));\n \n this.createParameterPanel();\n \n }",
"void initGUI(){\n\t\t// use border layout for our main frame\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t// create a new TitlePage and add it to the GUI. This is initially the only instantiated item\n\t\ttitlePage = new TitlePage(this);\n\t\tadd(titlePage);\n\t\t\n\t\tsetBackground( new Color(30, 130, 76) );\t// set a green background\n\t\tsetResizable(false); \t\t\t\t\t\t// User can't change the window's size.\n\t\tsetDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\t// exit when we close\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\t\t\t\t\t// set size of JFrame\n\t\t// set it to visible\n\t\tsetVisible(true);\n\t}",
"public void init() {\n\t\t//initializing graphics area\n \tcanvas = new FacePamphletCanvas();\n \tadd(canvas);\n \t\n\t\taddInteractors();\n\t\taddActionListeners();\n }",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"protected Plot() {\r\n }",
"public void initGraph(StackPane stackPane, String lineChartTitle) {\n m_pLineChartTitle = lineChartTitle;\n m_pStackPane = stackPane;\n\n createChart(m_pLineChartTitle);\n if (m_pStackPane.getChildren().size() > 0) {\n m_pStackPane.getChildren().remove(0); // Remove the last line chart if there is\n }\n m_pStackPane.getChildren().add(m_pLineChart);\n addOrReplaceDataSeries();\n }",
"public void init() {\n fIconkit = new Iconkit(this);\n\n\t\tsetLayout(new BorderLayout());\n\n fView = createDrawingView();\n\n Panel attributes = createAttributesPanel();\n createAttributeChoices(attributes);\n add(\"North\", attributes);\n\n Panel toolPanel = createToolPalette();\n createTools(toolPanel);\n add(\"West\", toolPanel);\n\n add(\"Center\", fView);\n Panel buttonPalette = createButtonPanel();\n createButtons(buttonPalette);\n add(\"South\", buttonPalette);\n\n initDrawing();\n setBufferedDisplayUpdate();\n setupAttributes();\n }",
"public EDMGraphScene() {\n setKeyEventProcessingType(EventProcessingType.FOCUSED_WIDGET_AND_ITS_PARENTS);\n\n addChild(backgroundLayer);\n addChild(mainLayer);\n addChild(connectionLayer);\n addChild(upperLayer);\n\n router = RouterFactory.createOrthogonalSearchRouter(mainLayer, connectionLayer);\n\n getActions().addAction(ActionFactory.createZoomAction());\n getActions().addAction(ActionFactory.createPanAction());\n getActions().addAction(ActionFactory.createSelectAction(new SceneSelectProvider()));\n\n graphLayout.addGraphLayoutListener(new GridGraphListener());\n sceneLayout = LayoutFactory.createSceneGraphLayout(this, graphLayout);\n }",
"public ChartTest() {\n initComponents();\n }",
"public void initialize(){\n\t\ttoolBar.setDrawingPanel(drawingPanel);\n\t\t// component initialization\n\t\tmenuBar.initialize();\t\n\t\ttoolBar.initialize();\t\n\t\tdrawingPanel.initialize();\n\t\t\n\t\t\n\t}",
"public ReportPane() {\n initComponents();\n }",
"@Override\n protected void initScene() {\n setupCamera(0xff888888);\n\n /*\n * Create a Cube and display next to the cube\n * */\n setupCube();\n\n\n /*\n * Create a Sphere and place it initially 4 meters next to the cube\n * */\n setupSphere();\n\n\n /*\n * Create a Plane and place it initially 2 meters next to the cube\n * */\n setupPlane();\n setupImage();\n setupText();\n\n }",
"@Override\n public void initialize(RenderManager rm, ViewPort vp) {\n reshape(vp, vp.getCamera().getWidth(), vp.getCamera().getHeight());\n viewPort.setOutputFrameBuffer(fb);\n guiViewPort.setClearFlags(true, true, true);\n\n guiNode.attachChild(display1);\n guiNode.attachChild(display2);\n guiNode.attachChild(display3);\n guiNode.attachChild(display4);\n guiNode.updateGeometricState();\n }",
"private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}",
"private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }",
"@Override\n public void init() throws Exception {\n Mapper mapper = new Mapper() {\n public double f(double x, double y) {\n try {\n return i3d.evaluate(x, y);\n } catch (InterpolationException e) {\n e.printStackTrace();\n return 0;\n }\n }\n };\n \n // Define range and precision for the function to plot\n Range rangeX = new Range((float)i3d.lowerA(), (float)i3d.upperA());\n int stepsX = 100;\n Range rangeY = new Range((float)i3d.lowerB(), (float)i3d.upperB());\n int stepsY = 100;\n \n AbstractDrawable drawable;\n // Create the object to represent the surface\n final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(rangeX, stepsX, rangeY, stepsY), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(),\n surface.getBounds().getZmin(), surface.getBounds().getZmax(), COLOR_BASE));\n surface.setWireframeDisplayed(true);\n surface.setWireframeWidth(1);\n surface.setWireframeColor(COLOR_WIRE);\n surface.setFaceDisplayed(true);\n drawable = surface;\n \n // Create a chart\n chart = AWTChartComponentFactory.chart(Quality.Advanced);\n chart.getAxeLayout().setXTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setYTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setZTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setFaceDisplayed(false);\n chart.getAxeLayout().setMainColor(COLOR_MAIN);\n chart.getView().setBackgroundColor(COLOR_BG);\n chart.getScene().getGraph().add(drawable);\n \n chart.getAxeLayout().setXAxeLabel(\"Length\");\n chart.getAxeLayout().setYAxeLabel(\"Time\");\n chart.getAxeLayout().setZAxeLabel(\"Temperature\");\n }",
"private void createGUI() {\r\n\r\n cgRect modelSpace = new cgRect(0, 0, 11, 11);\r\n cgRect deviceSpace = new cgRect(0, 0, 600, 600);\r\n\r\n cgTransformation tr = new cgTransformation(modelSpace, deviceSpace, false, false);\r\n\r\n /**\r\n *\r\n */\r\n // The formatter of axis' labels will use default locale and pattern\r\n NumberFormat nf = NumberFormat.getInstance();\r\n\r\n // We will use \"fixed size\" axis renderer for all axes\r\n \r\n // 参数一:标签刻度长度大小 参数二:标签数字长度大小 参数三:数字和刻度之间的距离大小,长度为像素\r\n cgAxisRenderer ar = new cgFixedSizeAxisRenderer(5, 15, 50, nf);\r\n\r\n // ----------------------------------------------------\r\n // First axis - values match the model coordinates,\r\n // model origin is at 0.0\r\n // ----------------------------------------------------\r\n \r\n // 第三个参数为显示的数字数\r\n cgRect bbox1 = new cgRect(0, 0, 11, 1);\r\n TickGenerator tg1 = new NumericTickGenerator(1.0);\r\n cgAxisShape axis1 = new cgAxisShape(cgAxisShape.NORTH, bbox1, tg1, ar);\r\n\r\n cgShapeListLayer layer = new cgShapeListLayer();\r\n\r\n layer.addShape(axis1);\r\n\r\n /**\r\n *\r\n */\r\n // ----------------------------------------------------\r\n // Create grid using regular grid renderer\r\n // ----------------------------------------------------\r\n cgRect bbox = new cgRect(0, 0, 10, 10);\r\n TickGenerator htg = new NumericTickGenerator(1.0);\r\n TickGenerator vtg = new NumericTickGenerator(1.0);\r\n cgGridRenderer gr = new cgRegularGridRenderer();\r\n cgGridShape grid = new cgGridShape(bbox, htg, vtg, gr);\r\n\r\n // ----------------------------------------------------\r\n // Create view\r\n // ----------------------------------------------------\r\n// cgShapeListLayer layer = new cgShapeListLayer();\r\n// layer.addShape( grid );\r\n cgContainerModel model = new cgContainerModel();\r\n model.setBoundingBox(modelSpace);\r\n model.addLayer(layer);\r\n\r\n cgPlotView view = new cgPlotView(model, tr);\r\n\r\n // ----------------------------------------------------\r\n // Create plot\r\n // ----------------------------------------------------\r\n cgPlot plot = new cgPlot(view);\r\n\r\n plot.addScrollbar(cgGenericPlotLayout.SOUTH);\r\n plot.addScrollbar(cgGenericPlotLayout.EAST);\r\n\r\n getContentPane().add(plot);\r\n\r\n // ----------------------------------------------------\r\n // Set up listeners\r\n // ----------------------------------------------------\r\n // Set window listener\r\n addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent e) {\r\n System.exit(0);\r\n }\r\n });\r\n }",
"public TestPlotter() {\n\t\tplot = new Plot2D(title, xLabel, yLabel, true);\n\t\tplot.addChartMouseListener(new PlotListener());\n\t\tplot.addDismissListener(new AL());\n\t\tplot.setDefaultCloseOperation(plotter.EXIT_ON_CLOSE);\n\t\t\n\t}",
"public void init() {\n initComponents();\n initData();\n }",
"protected void initialize() {\n\t\tsetBodyColor(Color.BLACK);\r\n\t\tsetGunColor(Color.BLACK);\r\n\t\tsetRadarColor(Color.BLACK);\r\n\t\tsetScanColor(Color.BLUE);\r\n\t\tsetBulletColor(Color.RED);\r\n\t}",
"public void init(){\n\t\tsetSize (800,600);\n\t\t//el primer parametro del rectangulo en el ancho\n\t\t//y el alto\n\t\trectangulo = new GRect(120,80);\n\t\t\n\t}",
"private void initGUI(){\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tDefaultPieDataset dataset = new DefaultPieDataset();// use to set value of pie chart\n\t\tdataset.setValue(\"Bandwidth\",0);//set initial result of the Bandwidth\n\t\tdataset.setValue(\"Signal To Noise\",0);//set initial result of the Signal To Noise\n\t\tdataset.setValue(\"Max Data Rate\",0);//set initial result of the max data rate\n\t\tsetMaxDataRateLBL(dataset); //Set the content of initial result of max data rate \n\t\tJFreeChart pieChart = ChartFactory.createPieChart(\"Shannons Theorem\", dataset, true,true,false);\n\t\t//pie plot use to multiply the pattern and display of pie chart\n\t\tPiePlot plot = (PiePlot)pieChart.getPlot();\n\t\tplot.setLabelFont(new Font(\"SansSerif\", Font.PLAIN, 12));\n //show the message if there is no data available\n\t\tplot.setNoDataMessage(\"No data available\");\n \n // make the result show the numbers on the pie chart\n plot.setLabelGenerator(new StandardPieSectionLabelGenerator(\"{0}: {1} ({2})\", new DecimalFormat(\"0\"), new DecimalFormat(\"0%\")));\n plot.setCircular(false);\n plot.setLabelGap(0.02);\n\t\tChartPanel cp = new ChartPanel(pieChart); //use to put pie chart into JPanel \n\t\tadd(cp);\n\t\tadd(createResult());\n\t}",
"private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}",
"public VisualizarLlamada() {\n initComponents();\n }",
"public VoronoiVisualization()\n\t \t{\n\t\t super();\n\t \t}",
"private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }",
"@Override\n public void init() {\n head.setFill(getColor());\n body.setFill(getColor());\n update();\n }",
"private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}",
"public Plot() {\r\n }",
"private void drawWindowSetup(){\n\t\t//draw header\n\t\ttopBar.draw(graphics);\n\t\t//draw footer\n\t\tbottomBar.draw(graphics);\n\t\t//draw right bar\n\t\trightBar.draw(graphics);\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.fragment_graph_ten, container, false);\n graphView = rootView.findViewById(R.id.graphview10);\n LineGraphSeries<DataPoint> series = new LineGraphSeries<>(new DataPoint[]{\n new DataPoint(0,0.975),\n new DataPoint(70,0.98),\n new DataPoint(120,1),\n new DataPoint(160,1.02),\n new DataPoint(205,1.03),\n new DataPoint(265,1.05),\n new DataPoint(310,1.08),\n new DataPoint(355,1.10),\n new DataPoint(405,1.13),\n new DataPoint(455,1.15),\n new DataPoint(505,1.18)\n });\n graphView.addSeries(series);\n series.setColor(Color.RED);\n series.setDrawDataPoints(true);\n series.setTitle(\"pressure sensors vs capacitor\");\n series.setDataPointsRadius(8);\n graphView.setTitle(\"pressure sensors vs capacitance\");\n graphView.setTitleTextSize(90);\n graphView.getGridLabelRenderer().setVerticalAxisTitle(\"capacitance\");\n graphView.getGridLabelRenderer().setHorizontalAxisTitle(\"pressure sensors\");\n graphView.setTitleTextSize(80);\n graphView.setTitleColor(android.R.color.holo_blue_light);\n return rootView;\n }",
"private void updateGraph() {\n if (centerBox.getChildren().size() > 0) {\n graphPane = new Pane();\n graphPane.setPrefSize(500, 500);\n centerBox.getChildren().set(0, this.drawGraph());\n } else {\n graphPane = new Pane();\n graphPane.setPrefSize(500, 500);\n centerBox.getChildren().add(this.drawGraph());\n }\n }",
"private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}",
"public void setUpScene() {\r\n\r\n\t\tif (forecasts == null) {\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tDateFormatter.formatDates(forecasts);\r\n\r\n\t\tsetLabels(forecasts);\r\n \r\n\t\tWeatherDAO weatherDAO = new WeatherDAO();\r\n\r\n\t\tweatherDAO.saveForecasts(forecasts, getSceneNumber());\r\n\t\t\r\n\t\tsetGif(forecasts[0].getDayPhrase());\r\n\t}",
"private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}",
"public void init(VisualizationProperties properties) {\n edge = properties.getEdge();\n Coordinate[] coordinates = properties.getCoordinates();\n properties.setCoordinates(coordinates);\n calcLimits(properties);\n calcOrigin();\n }",
"public Graph() {\r\n\t\tthis.matrix = new Matrix();\r\n\t\tthis.listVertex = new ArrayList<Vertex>();\r\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n\n Timeline timeline = new Timeline();\n timeline.getKeyFrames().add(new KeyFrame(Duration.millis(100), actionEvent -> updateChart()));\n timeline.setCycleCount(Animation.INDEFINITE);\n timeline.setAutoReverse(true);\n timeline.play();\n\n chart.setTitle(\"Virus\");\n population.setName(\"Current population\");\n deaths.setName(\"Current deaths\");\n infections.setName(\"Current infections\");\n heals.setName(\"Current heals\");\n chart.getYAxis().setAnimated(true);\n chart.getXAxis().setAnimated(true);\n chart.setCreateSymbols(true);\n chart.setAnimated(true);\n chart.getYAxis().setAutoRanging(true);\n chart.getXAxis().setAutoRanging(true);\n\n chart.getData().add(this.population);\n chart.getData().add(this.infections);\n chart.getData().add(this.heals);\n chart.getData().add(this.deaths);\n\n }"
] | [
"0.71551156",
"0.69494796",
"0.6887101",
"0.6833825",
"0.6716289",
"0.67070174",
"0.6561569",
"0.6506319",
"0.6490439",
"0.6474857",
"0.64481515",
"0.64317006",
"0.64217657",
"0.6387373",
"0.6369684",
"0.6368207",
"0.6363787",
"0.6352345",
"0.6265182",
"0.6251104",
"0.6213132",
"0.61927414",
"0.61813265",
"0.6177255",
"0.617069",
"0.6163249",
"0.6152615",
"0.61452425",
"0.61318135",
"0.6103251",
"0.60832083",
"0.60805726",
"0.6058664",
"0.60481334",
"0.6046508",
"0.6033842",
"0.59511983",
"0.5941295",
"0.5930787",
"0.59255445",
"0.59232837",
"0.59158796",
"0.59144783",
"0.59127957",
"0.5896831",
"0.589532",
"0.5888138",
"0.58773047",
"0.5868771",
"0.5865589",
"0.585687",
"0.58498883",
"0.5848815",
"0.5845285",
"0.5834752",
"0.58346605",
"0.58308035",
"0.5829656",
"0.5828312",
"0.58267975",
"0.58196414",
"0.5808406",
"0.5807038",
"0.58048123",
"0.57983935",
"0.57970047",
"0.579243",
"0.57851857",
"0.5780521",
"0.5775108",
"0.57749754",
"0.57716584",
"0.57672113",
"0.57583153",
"0.5758214",
"0.5748579",
"0.574594",
"0.57455397",
"0.57437617",
"0.57430774",
"0.5741222",
"0.5734177",
"0.5732303",
"0.5730208",
"0.57282555",
"0.57126474",
"0.57116944",
"0.5706787",
"0.5702167",
"0.56979614",
"0.56922805",
"0.569147",
"0.56907064",
"0.56901884",
"0.5688832",
"0.5685825",
"0.5683226",
"0.56772476",
"0.5674495",
"0.5674193"
] | 0.68915075 | 2 |
/ Method that updates the graph. Called by the data activity upon reception of graph data from the server. | public void updateGraph(String seriesID, String y, String x)
{
try {
if(series.containsKey(seriesID))
{
if(firstXValue.get(seriesID).equals(0))
{
if(seriesCounters.get(seriesID) != null)
{
if(seriesCounters.get(seriesID).getKey().equals(seriesCounters.get(seriesID).getValue()))
{
series.get(seriesID).appendData(new DataPoint(0, Double.parseDouble(y)), true, graphWidth*30);
firstXValue.put(seriesID, Integer.parseInt(x));
seriesCounters.get(seriesID).setValue(0);
}
else
{
seriesCounters.get(seriesID).setValue(seriesCounters.get(seriesID).getValue() + 1);
}
}
else
{
series.get(seriesID).appendData(new DataPoint(0, Double.parseDouble(y)), true, graphWidth*30);
firstXValue.put(seriesID, Integer.parseInt(x));
}
}
else
{
if(seriesCounters.get(seriesID) != null)
{
if(seriesCounters.get(seriesID).getKey().equals(seriesCounters.get(seriesID).getValue()))
{
series.get(seriesID).appendData(new DataPoint((((float)((Integer.parseInt(x) - firstXValue.get(seriesID))))/1000.0f), Double.parseDouble(y)), true, graphWidth*20);
seriesCounters.get(seriesID).setValue(0);
}
else
{
seriesCounters.get(seriesID).setValue(seriesCounters.get(seriesID).getValue() + 1);
}
}
else
{
series.get(seriesID).appendData(new DataPoint((((float)((Integer.parseInt(x) - firstXValue.get(seriesID))))/1000.0f), Double.parseDouble(y)), true, graphWidth*20);
}
}
}
}catch(IllegalArgumentException e)
{
Log.d("X value error", e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateGraph(){\n\t\tgraph.update(updatePopulations(), iteration);\n\t\titeration++;\n\t}",
"public void update() {\n\t\tremoveAll();\n\t\tdrawGraph();\n\t\tplotEntries();\n\t}",
"public void graphRepaint() {\r\n \t\tgraph.repaint();\r\n \t}",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawBackGround();\r\n\t\tdrawGraph();\r\n\t}",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGraph();\r\n\t\t\r\n\t\tfor (int i = 0; i < entryGraph.size(); i++) {\r\n\t\t\tdrawEntry(entryGraph.get(i), i);\r\n\t\t}\r\n\t}",
"public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }",
"public void update()\n {\n tick++;\n if (this.part != null)\n {\n for (UpdatedLabel label : dataLabels)\n {\n label.update();\n }\n int c = 0;\n for (Entry<MechanicalNode, ForgeDirection> entry : part.node.getConnections().entrySet())\n {\n if (entry.getKey() != null)\n {\n this.connections[c].setText(\"Connection\" + c + \": \" + entry.getKey());\n c++;\n }\n }\n for (int i = c; i < connections.length; i++)\n {\n this.connections[i].setText(\"Connection\" + i + \": NONE\");\n }\n }\n }",
"void updateGraph(TimeSlot[] dataList) {\n \tXYChart.Series<String, Number> series = new XYChart.Series<String, Number>();\n \tfor(int i=0; i<dataList.length; i++) {\n \t\tTimeSlot t = dataList[i];\n \t\tseries.getData().add(new XYChart.Data<String, Number>(TimeSlot.getTime(i), t.getDifference()));\n \t}\n \tgraph.getData().add(series);\n }",
"@Override\r\n\tpublic void update(Graphics g) {\r\n\t\t// S*ystem.out.println(\"Graph.update\");\r\n\t\t// paint(g);\r\n\t\t// super.update(g);\r\n\t}",
"public void updateData() {}",
"@Override\n\tpublic void updateGraphicalContent(Engine en) {\n\t\t\n\t}",
"public void update(NetworkNode networkNode);",
"public void refreshGraph() {\n\n // Get all the times\n double[] times = dataSet.getTimes();\n\n int numPointsToDraw = (times.length > GRAPH_MAX_POINTS)? GRAPH_MAX_POINTS: times.length;\n\n // Store new points\n DataPoint[] freshPoints = new DataPoint[numPointsToDraw];\n // String for title of graph\n final int titleString;\n // String for the y-axis of graph\n final int axisLabel;\n\n // Calculate which points to draw\n int firstPointDrawn = (times.length-GRAPH_MAX_POINTS>0)?\n times.length-GRAPH_MAX_POINTS:\n 0;\n\n // if the switch is to the right\n if(velAccelSwitch.isChecked()) {\n // Get all the accelerations\n double[] accels = dataSet.getAccelerations();\n // Add the relevant accelerations to the \"to be drawn\" array\n for (int i = 0; i < numPointsToDraw; i++) {\n freshPoints[i] = new DataPoint(\n // / If the setting tells it to be in hours, divide by 3600\n (setting.isInHours())?\n times[i+firstPointDrawn]/3600:\n times[i+firstPointDrawn], accels[i+firstPointDrawn]);\n }\n // Set the graph title\n titleString = R.string.at_graph_label;\n axisLabel = R.string.acceleration_axis_label;\n } else {\n // Get all the velocities\n double[] velocities = dataSet.getSpeeds();\n // Add the relevant velocities to the \"to be drawn\" array\n for (int i = 0; i < numPointsToDraw; i++) {\n freshPoints[i] = new DataPoint(\n // If the setting tells it to be in hours, divide by 3600\n (setting.isInHours())?\n times[i+firstPointDrawn]/3600:\n times[i+firstPointDrawn],\n // If the setting tells it to be in km/h, multiply by 3.6\n (setting.isInKMPerH())?\n velocities[i+firstPointDrawn]*3.6:\n velocities[i+firstPointDrawn]);\n }\n // Set the graph title\n titleString = R.string.vt_graph_label;\n axisLabel = (setting.isInKMPerH())?\n R.string.velocity_axis_label_kmh:\n R.string.velocity_axis_label_ms;\n }\n\n // swap out the old DataPoints with the new ones\n points.resetData(freshPoints);\n // if there is data, stretch graph to fit it\n if (times.length-1>0) {\n // If the setting is on hours, stretch graph axises accordingly\n graphView.getViewport().setMinX((times[times.length-1] - GRAPH_TIME_RANGE)\n /((setting.isInHours())?3600:1));\n graphView.getViewport().setMaxX(times[times.length-1]\n /((setting.isInHours())?3600:1));\n }\n\n // Update elements of the UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n DecimalFormat df = new DecimalFormat(\"#.00\");\n\n // Set graph title\n graphTitle.setText(titleString);\n // Set max velocity\n maxVelocityView.setText(getString(R.string.max_velocity) + \":\\t\\t\\t\\t\\t\\t\\t\\t\" +\n df.format(dataSet.getMaxSpeed()) + \" m/s\");\n // Set max acceleration\n maxAccelerationView.setText(getString(R.string.max_acceleration) + \":\\t\\t\\t\" +\n df.format(dataSet.getMaxAcceleration()) + \" m/s\" + '\\u00B2');\n // Set time elapsed\n timeElapsedView.setText(getString(R.string.time_elapsed) + \":\\t\\t\\t\\t\\t\\t\\t\\t\" +\n df.format(dataSet.getTimeElapsedSeconds()) + \" s\");\n yAxisView.setText(axisLabel);\n xAxisView.setText((setting.isInHours())?\n R.string.time_axis_label_h:\n R.string.time_axis_label_s);\n }\n });\n\n }",
"void updateData();",
"public void setGraph(){\r\n setDisplay(currentGraph);\r\n }",
"public void refreshGraph()\n {\n graph.getViewport().setMinX(0);\n graph.removeAllSeries();\n for(CustomPair<String, CustomPair<Integer, Integer>> can:cans)\n {\n series.get(can.getKey()).resetData(new DataPoint[]{});\n }\n initGraph(graph);\n graphViewEditText.setText(\"\");\n }",
"public void updateChart(){\n for(Pair<Number,Number> p : sss.getPopulationQueue()){\n this.population.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getDeathsQueue()){\n this.deaths.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getInfectionsQueue()){\n this.infections.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getHealsQueue()){\n this.heals.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n sss.clearPopulationQueue();\n sss.clearDeathsQueue();\n sss.clearInfectionsQueue();\n sss.clearHealsQueue();\n }",
"public void updateGraphView(GraphModel graphModel) {\r\n this.graphModel = graphModel;\r\n remove(chartPanel);\r\n XYDataset dataSet = createDataSet();\r\n chart = createChart(dataSet);\r\n chartPanel = new ChartPanel(chart);\r\n add(chartPanel);\r\n setVisible(true);\r\n }",
"public static void update(){\n\t\t\n\t\tgraphFrame.setColor(color);\n\t}",
"public void drawGraph(){\n this.post(new Runnable(){\n @Override\n public void run(){\n removeAllSeries();\n addSeries(xySeries);\n addSeries(currentPoint);\n //addSeries(currentPoint);\n }\n });\n }",
"public void repaintGraph() {\r\n this.repaint();\r\n ((GraphBuilder) getFrameParent()).getMiniMap().repaint();\r\n }",
"public void updateChart(String graph, String x, double y) {\r\n\t\t// Platform.runLater() is used to prevent thread conflicts\r\n\t\tPlatform.runLater(new Runnable(){\r\n\t\t\tpublic void run() {\r\n\t\t\t\tXYChart.Series series;\r\n\t\t\t\t\r\n\t\t\t\t// Find the associated graph series\r\n\t\t\t\tswitch(graph) {\r\n\t\t\t\t\tcase \"queue-length\":\r\n\t\t\t\t\t\tseries = queueLengthSeries;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"queue-duration\":\r\n\t\t\t\t\t\tseries = queueTimeSeries;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"carpark-utilisation\":\r\n\t\t\t\t\t\tseries = carparkUtilisationSeries;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Update the chart\r\n\t\t series.getData().add(new XYChart.Data<>(x, y));\r\n\t\t \r\n\t\t // If there are more than 10 points, remove the first point to keep size manageable \r\n\t\t if (series.getData().size() > 15) {\r\n\t\t series.getData().remove(0);\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"@Override\n public void update(Observable o, Object arg) {\n printGraphModel();\n }",
"public void updateGraphEdges(ArrayList<Edge> edges) {\n graph.updateEdges(edges);\n }",
"private void updateGraph() {\n if (centerBox.getChildren().size() > 0) {\n graphPane = new Pane();\n graphPane.setPrefSize(500, 500);\n centerBox.getChildren().set(0, this.drawGraph());\n } else {\n graphPane = new Pane();\n graphPane.setPrefSize(500, 500);\n centerBox.getChildren().add(this.drawGraph());\n }\n }",
"public void updateGraphVertices(Vertex[] vertexList) {\n graph.updateVertices(vertexList);\n }",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n protected void update()\n {\n final double DENSITY = this.getResources().getDisplayMetrics().scaledDensity;\n final ArrayList<BarChart.SeriesInfo> SERIES = new ArrayList<>();\n\n final Thread LOAD_GRAPH = new Thread() {\n @Override\n public void run() {\n final StatsActivity SELF = StatsActivity.this;\n int idForLegendX = R.string.label_week;\n\n SELF.getSelections();\n\n if( SELF.graphType == GraphType.Yearly ) {\n idForLegendX = R.string.label_year;\n }\n else\n if( SELF.graphType == GraphType.Monthly ) {\n idForLegendX = R.string.label_month;\n }\n\n final String LEGEND_X = SELF.getString( idForLegendX );\n\n SELF.runOnUiThread( () -> {\n switch( SELF.graphType ) {\n case Yearly:\n SELF.calculateDataForYearsStats( SELF.selectedYear, SERIES );\n break;\n case Monthly:\n SELF.calculateDataForMonthsStats( SELF.selectedYear, SERIES );\n break;\n case Weekly:\n SELF.calculateDataForWeeksStats(\n SELF.selectedYear, SELF.selectedMonth, SERIES );\n break;\n default:\n Log.e( LOG_TAG, \"unsupported graph type\" );\n }\n\n final BarChart CHART = new BarChart( DENSITY, SERIES );\n\n CHART.setLegendX( LEGEND_X );\n CHART.setLegendY( settings.getDistanceUnits().toString() );\n CHART.setShowLabels( true );\n SELF.chartView.setScaleType( ImageView.ScaleType.MATRIX );\n SELF.chartView.setImageDrawable( CHART );\n });\n }\n };\n\n LOAD_GRAPH.start();\n }",
"public void draw()\r\n\t\t{\r\n\t\tfor(PanelStationMeteo graph: graphList)\r\n\t\t\t{\r\n\t\t\tgraph.repaint();\r\n\t\t\t}\r\n\t\t}",
"@Override\n public void setGraphData(Object o) {\n\n }",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGrid();\r\n\t\tplotDecades();\r\n\t\tgetEntries();\r\n\t}",
"public void receivedUpdateFromServer();",
"void refreshNode(ChartNode node);",
"public void update(){}",
"public void update(){}",
"public void refresh() {\n\t\tgetData();\n\t\trender();\n\t}",
"public void update()\n\t{\n\t\tsuper.update();\n\t}",
"public abstract void updateVertices();",
"public void displayGraph() {\r\n\t\tgraph.display();\r\n\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"protected void onUpdateGraphPressed(View view) {\n int count = 0;\n gHistoricalPPM.removeAllSeries();\n if (spGraphType.getSelectedItem() == \"Virus\") {\n DataPoint[] dpArray = new DataPoint[selectedReport.getPrList().size()];\n for (PurityReport pr : selectedReport.getPrList()) {\n DataPoint dp = new DataPoint(pr.getMonthSubmitted(), pr.getVirusPPM());\n dpArray[count++] = dp;\n }\n LineGraphSeries<DataPoint> series = new LineGraphSeries<>(dpArray);\n gHistoricalPPM.addSeries(series);\n } else {\n DataPoint[] dpArray = new DataPoint[selectedReport.getPrList().size()];\n for (PurityReport pr : selectedReport.getPrList()) {\n DataPoint dp = new DataPoint(pr.getMonthSubmitted(), pr.getContaminantPPM());\n dpArray[count++] = dp;\n }\n LineGraphSeries<DataPoint> series = new LineGraphSeries<>(dpArray);\n gHistoricalPPM.addSeries(series);\n }\n gHistoricalPPM.getViewport().setMinX(1);\n gHistoricalPPM.getViewport().setMaxX(12);\n gHistoricalPPM.getViewport().setXAxisBoundsManual(true);\n }",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void structureChanged(GraphEvent e);",
"public void update() {}",
"public void update() {\n\t\t\n\t}",
"void updateInformation();",
"void updateFromAnalysis(Map<Graph, GraphData> graphMap) {\n\t\tfor (GraphData graphData : graphMap.values()) {\n\t\t\taxisModels.add(new AxisModel(this, graphData, taskListener));\n\t\t}\n\t}",
"@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}",
"public void update() {\n }",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"public void buildGraph(){\n\t}",
"public void updateDataModel() {\n //this.dataModel = new TelemetryChartDataModel();\n this.dataModel.\n setModel(getStartDate(), getEndDate(), selectedProjects, telemetryName, parameters);\n Thread thread = new Thread() {\n @Override\n public void run() {\n dataModel.loadData();\n }\n };\n thread.start();\n }",
"public void updateOnlineOfflineBarChart() {\n UserOperations userOps = new UserOperations();\n ObservableList<String> columns = FXCollections.observableArrayList(\"Online\", \"Offline\");\n onlineOfflineBarChartXAxis.setCategories(columns);\n XYChart.Series<String, Integer> series = new XYChart.Series<>();\n series.getData().add(new XYChart.Data<>(columns.get(0), userOps.getNumberOfOnlineUsers()));\n series.getData().add(new XYChart.Data<>(columns.get(1), userOps.getNumberOfOfflineUsers()));\n\n //barChart.setBarGap(1.0);\n Platform.runLater(() -> {\n barChartOnlineOfflineUsers.setCategoryGap(1);\n barChartOnlineOfflineUsers.setMaxHeight(100);\n barChartOnlineOfflineUsers.setTitle(\"Online / Offline Users\");\n barChartOnlineOfflineUsers.getData().add(series);\n });\n\n }",
"@Override\n public void update() {\n }",
"public void update() {\n\t\t//Indicate that data is fetched\n\t\tactivity.showProgressBar();\n\t\n\t\tPlayer currentPlayer = dc.getCurrentPlayer();\n\t\tactivity.updatePlayerInformation(\n\t\t\t\tcurrentPlayer.getName(),\n\t\t\t\tgetGlobalRanking(),\n\t\t\t\tcurrentPlayer.getGlobalScore(),\n\t\t\t\tcurrentPlayer.getPlayedGames(),\n\t\t\t\tcurrentPlayer.getWonGames(),\n\t\t\t\tcurrentPlayer.getLostGames(),\n\t\t\t\tcurrentPlayer.getDrawGames());\n\n\t\tactivity.hideProgressBar();\n\t}",
"public void setNewGraph() {\n\tresetHints();\r\n Random random = new Random();\r\n if (graphMode == 1) {\r\n if (selectedSize == 1) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.smallGraph) + 1, -1);\r\n }\r\n if (selectedSize == 2) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.middleGraph - myInformation.smallGraph) + myInformation.smallGraph + 1, -1);\r\n }\r\n if (selectedSize == 3) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.bigGraph - myInformation.middleGraph) + myInformation.middleGraph + 1, -1);\r\n }\r\n }\r\n if (graphMode == 2) {\r\n currentGraph = chromaticManager.calculate(myGraph);\r\n }\r\n if (graphMode == 3) {\r\n try {\r\n stackPane.getChildren().removeAll(textFieldHBox, backPane);\r\n myVertices = Integer.parseInt(textFieldVertices.getText());\r\n myEdges = Integer.parseInt(textFieldEdges.getText());\r\n currentGraph = chromaticManager.calculate(myVertices, myEdges);\r\n setDisplay(currentGraph);\r\n } catch (NumberFormatException e) {\r\n\r\n }\r\n }\r\n threadPoolExecutor.execute(() -> {\r\n NewForce newForce = new NewForce();\r\n currentGraph.setCNumer(newForce.doNewForce(currentGraph,currentGraph.getUpperBound(),currentGraph.getLowerBound()));\r\n });\r\n }",
"public void refreshData() {\n\n if (!mUpdatingData) {\n new RefreshStateDataTask().execute((Void) null);\n }\n }",
"public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }",
"public void update() {\n manager.update();\n }",
"public void update() {\r\n\t\t\r\n\t}",
"private synchronized void update() {\n int numberOfPoints = buffer.get(0).size();\n if (numberOfPoints == 0) return;\n\n for (int i = 0; i < getNumberOfSeries(); i++) {\n final List<Double> bufferSeries = buffer.get(i);\n final List<Double> dataSeries = data.get(i);\n dataSeries.clear();\n dataSeries.addAll(bufferSeries);\n bufferSeries.clear();\n }\n\n //D.info(SineSignalGenerator.this, \"Update triggered, ready: \" + getNumberOfSeries() + \" series, each: \" + data[0].length + \" points\");\n bufferIdx = 0;\n\n // Don't want to create event, just \"ping\" listeners\n setDataReady(true);\n setDataReady(false);\n }",
"@Override\n\tpublic void update() { }",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"public void updateLineChart()\r\n {\r\n hoursLoggedSeries = new XYChart.Series<>();\r\n hoursLoggedSeries.setName(Integer.toString(LocalDate.now().getYear()));\r\n lineChart.getData().clear();\r\n \r\n try{\r\n populateSeriesFromDB();\r\n }\r\n catch(SQLException e)\r\n {\r\n System.err.println(e.getMessage());\r\n }\r\n lineChart.getData().addAll(hoursLoggedSeries);\r\n }",
"@Override\r\n\tpublic void update() {\r\n\t}",
"@Override\n\tpublic void updateNode(JsonObject jsonData) {\n\t\t\n\t}",
"public void update(){\r\n\t\t\r\n\t}",
"public void drawGraph(Graph graph);",
"protected abstract void update();",
"protected abstract void update();",
"public void dataChanged() {\n\t\tif (wijzigInfo)\n\t\t\twijzigInfo();\n\n\t\tsetChanged();\n\t\tnotifyObservers(\"dataChanged\");\n\t}",
"public void update() {\n\t\tfinal StarSystem oldLocation = getPlayer().getLocation();\n\t\tfinal StarSystem newLocation = getChart().getSelected();\n\t\tgetPlayer().setLocation(newLocation);\n\t\tgetPlayer().setFuel(-oldLocation.distanceToStarSystem(newLocation));\n\t\tgetChart().setSelected(null);\n\t\tgetChart().repaint();\n\t\tplanetLbl.setText(\"Current Location: \" + player.getLocation().getName()\n\t\t\t\t+ \"....Tech Level: \" + player.getLocation().getTechLevel());\n\n\t}",
"public void update() {\n\n\t\tdisplay();\n\t}",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void refresh() {\n\t\tsuper.refresh();\n\t\tapplyConnectionRouter(getConnectionFigure());\n\t}",
"@Override\n public void update() {\n \n }",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"public synchronized void updateData() {\n updateDataFields(this::defaultFetcher);\n }",
"public void refresh() {\n\n odp.refresh();\n\n\n }",
"private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }",
"void processGraphData(Graph aNodes);",
"protected void updated() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Updated);\n }\n }",
"public void updateStats(int n1, int n2, int n3, int n4){\n //update values\n this.n1 = n1;\n this.n2 = n2;\n this.n3 = n3;\n this.n4 = n4;\n //repaint graph\n repaint();\n }"
] | [
"0.7136551",
"0.6909312",
"0.66499484",
"0.66239226",
"0.66027683",
"0.65402675",
"0.6508371",
"0.6470509",
"0.64244646",
"0.6365633",
"0.63579553",
"0.6339576",
"0.633264",
"0.62505835",
"0.61708134",
"0.61679876",
"0.61652905",
"0.61485165",
"0.6108563",
"0.6104237",
"0.609281",
"0.6034043",
"0.6016447",
"0.60085243",
"0.60074",
"0.5980922",
"0.5934295",
"0.5896019",
"0.5896019",
"0.5896019",
"0.5866466",
"0.58358896",
"0.58356905",
"0.5821772",
"0.58166504",
"0.5798899",
"0.57790476",
"0.57790476",
"0.5722473",
"0.5714462",
"0.5703309",
"0.5684238",
"0.56753147",
"0.56753147",
"0.56681794",
"0.5664836",
"0.5664836",
"0.5664836",
"0.5664836",
"0.5653605",
"0.56495875",
"0.5634387",
"0.5630574",
"0.5604509",
"0.55960363",
"0.5587636",
"0.55814534",
"0.55814534",
"0.55814534",
"0.55814534",
"0.55814534",
"0.55674535",
"0.5567122",
"0.5555027",
"0.55501026",
"0.5546893",
"0.55390906",
"0.552959",
"0.55280936",
"0.5523823",
"0.5519077",
"0.5509408",
"0.5502485",
"0.54964644",
"0.5482399",
"0.5468009",
"0.5466753",
"0.5465186",
"0.5464058",
"0.54560375",
"0.54560375",
"0.5454167",
"0.54525846",
"0.5450298",
"0.544488",
"0.544488",
"0.54412717",
"0.5440838",
"0.5435674",
"0.5435674",
"0.5435674",
"0.5435674",
"0.5435674",
"0.5435674",
"0.54275286",
"0.5425658",
"0.54238224",
"0.5419987",
"0.5419487",
"0.54193246"
] | 0.5556675 | 63 |
/ Method called by Android when application goes in pause state. | @Override
public void onPause() {
super.onPause();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onPause();",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tApplicationStatus.activityPaused();\n\t}",
"public void onPause () {\n\t\t\n\t}",
"public void onPause() {\n }",
"public void onPause() {\n LOG.mo8825d(\"[onPause]\");\n super.onPause();\n }",
"protected abstract void onPause();",
"@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}",
"@Override\n protected void onPause() {\n super.onPause();\n Log.d(msg, \"The onPause() event\");\n }",
"@Override\n protected void onPause() {\n super.onPause();\n Log.d(msg, \"The onPause() event\");\n }",
"public void onPause()\n {\n\n }",
"@Override\r\n\tprotected void onPause() {\n\t\t\r\n\t}",
"@Override\r\n public void onPause() {\r\n NexLog.d(LOG_TAG, \"onPause called\");\r\n activityPaused = true;\r\n }",
"@Override\n\tpublic void onPause() {\n\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tmPaused=true;\n\t\tLog.d(\"onPause\", \"Paused\");\n\t\t\n\t}",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tonPause = true;\r\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLog.i(TAG, module + \" Entra por onPause\");\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t\tLog.e(TAG, \"onpause\");\r\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t\tLog.e(TAG, \"onpause\");\r\n\t}",
"@Override\n\tpublic void onPause() {\n\t\t\n\t\t// WHEN THE SCREEN IS ABOUT TO TURN OFF\n if (ScreenReceiver.wasScreenOn) {\n // THIS IS THE CASE WHEN ONPAUSE() IS CALLED BY THE SYSTEM DUE TO A SCREEN STATE CHANGE\n \tLog.e(TAG, \"Screen OFF\");\n \t\n \tscreenOffFlag = true;\n \t\n } else {\n // THIS IS WHEN ONPAUSE() IS CALLED WHEN THE SCREEN STATE HAS NOT CHANGED\n }\n\t\t\n if (D)\n\t\t\tLog.e(TAG, \"++ ON PAUSE ++\");\n\n\t\tsuper.onPause();\n\t}",
"@Override\n protected void onPause() {\n Log.i(\"G53MDP\", \"Main onPause\");\n super.onPause();\n }",
"@Override\n protected void onPause() {\n super.onPause();\n MobclickAgent.onPause(this);\n // JPushInterface.onPause(this);\n isForeground = false;\n\n }",
"protected void onPause ()\n\t{\n\t\tsuper.onPause ();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tisFlag = false;\n\t}",
"@Override\n public void onPause() {\n AppEventsLogger.deactivateApp(this);\n isResumed = false;\n\n super.onPause();\n uiHelper.onPause();\n }",
"@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t\tLog.d(TAG,\"onPause\");\n\t\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\t//startActivityAgain();\n\t\tLogUtils.d(\"onPause() is in\");\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLog.d(TAG, \"onPause() called\");\n\t}",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t}",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t}",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t}",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t}",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\t JPushInterface.onPause(this);\n\t\tMobclickAgent.onPause(this);\n\t\tif (servcie != null)\n\t\t\tservcie.isPause = true;\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\t\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\t\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLog.e(TAG, \"onPause\");\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLog.v(\"tag\",\"onPause\" );\n\t}",
"protected void onPause(Bundle savedInstanceState) {\r\n\t\t\r\n\t}",
"@Override\n\t\tprotected void onPause() {\n\t\t\tsuper.onPause();\n\t\t}",
"@Override\r\n protected void onPause() {\n super.onPause();\r\n Log.i(TAG, \"onPause\");\r\n }",
"@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n \tprotected void onPause() {\n \t\tsuper.onPause();\n \t\tLog.d(TAG, \"onPause\");\n \t}",
"public void onPause() {\n super.onPause();\n this.pushManager.e();\n if (this.isLiving) {\n this.isPushInBackground = true;\n this.isNoNetEvent = false;\n startPausedTimer();\n }\n if (this.mLivePusherInfoView != null) {\n this.mLivePusherInfoView.onPause();\n }\n }",
"public void onPause() {\n super.onPause();\r\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLogger.d(TAG, \"onStop.....\");\n\t}",
"@Override\n public void onPause() {\n super.onPause();\n Log.d(Constants.ERROR_TAG_ACTIVITY_ONE, Constants.ON_PAUSE);\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t}",
"@Override\n protected void onPause() {\n isRunning = false;\n super.onPause();\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tLog.e(\"Ganxiayong\", \"-----------onPause()---------\");\n\t\tfinish();\n\t}",
"@Override\n protected void onPause(){\n super.onPause();\n Log.d(TAG_INFO,\"application paused\");\n }",
"@Override\n protected void onPause(){\n super.onPause();\n Log.d(TAG_INFO,\"application paused\");\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n protected void onPause() {\n super.onPause();\n isPaused = true;\n }",
"@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\n\t}",
"@Override\r\n\tprotected void onPause() {\r\n\t\tsuper.onPause();\r\n\t\t\r\n\t\t\t\t\r\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\n\t}",
"@Override\n public void onPause(Activity activity) {\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tSalinlahiFour.getBgm().pause();\n\t}",
"@Override\r\n protected void onPause() {\r\n Log.i(TAG, \"onPause()\");\r\n \r\n super.onPause();\r\n }",
"@Override\n\tprotected void onPause()\n\t{\n\t\tsuper.onPause();\n\t}",
"public void onPause() {\n super.onPause();\n }",
"public void onPause() {\n super.onPause();\n }",
"public void onPause() {\n super.onPause();\n }",
"public void onPause() {\n super.onPause();\n }",
"public void onPause() {\n super.onPause();\n }",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tJPushInterface.onPause(this);\r\n\t\tMobclickAgent.onPause(this);\r\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tSystem.out.println(\"onPause\");\n\t}",
"protected void onPause() {\n super.onPause();\n }",
"@Override\n protected void onPause() {\n super.onPause();\n MobclickAgent.onPause(this);\n }",
"@Override\n protected void onPause() {\n super.onPause();\n MobclickAgent.onPause(this);\n }",
"@Override\n protected void onPause() {\n super.onPause();\n Log.d(TAG, \"onPause() called\");\n }"
] | [
"0.8450675",
"0.84180516",
"0.83395356",
"0.8274455",
"0.8245346",
"0.8244283",
"0.8242632",
"0.8242632",
"0.8242632",
"0.8242632",
"0.82286453",
"0.82286453",
"0.8223049",
"0.8204207",
"0.82002497",
"0.818466",
"0.8176862",
"0.81276876",
"0.8125304",
"0.8112196",
"0.8112196",
"0.80838513",
"0.8077843",
"0.80609035",
"0.8056828",
"0.80370927",
"0.80353194",
"0.8025961",
"0.8017153",
"0.8002687",
"0.8002687",
"0.8002687",
"0.8002004",
"0.79897225",
"0.79897225",
"0.79897225",
"0.79897225",
"0.79897225",
"0.7984633",
"0.7978845",
"0.7978845",
"0.79767555",
"0.7975846",
"0.79614615",
"0.79431355",
"0.7940113",
"0.7934268",
"0.7934268",
"0.7934268",
"0.7934268",
"0.7934268",
"0.7934268",
"0.7934268",
"0.79341215",
"0.792582",
"0.79255915",
"0.79216343",
"0.7921387",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7917343",
"0.7916266",
"0.7903654",
"0.79009986",
"0.79009986",
"0.790055",
"0.7897728",
"0.7883234",
"0.7879779",
"0.7876625",
"0.78730446",
"0.7863498",
"0.78544825",
"0.7850165",
"0.7850165",
"0.7850165",
"0.7850165",
"0.7850165",
"0.7845256",
"0.78397465",
"0.7838857",
"0.7834542",
"0.7834542",
"0.78342855"
] | 0.0 | -1 |
/ Method that initializes the data series in the graph. | public void initializeSeriesData(List<CustomPair<String, CustomPair<Integer, Integer>>> cans)
{
this.cans.addAll(cans);
for(CustomPair<String, CustomPair<Integer, Integer>> can: cans)
{
if(can.getValue() != null)
{
seriesCounters.put(can.getKey(), can.getValue());
}
seriesData.put(can.getKey(), new LinkedList<>());
firstXValue.put(can.getKey(), 0);
LineGraphSeries<DataPoint> lineGraphSeries = new LineGraphSeries<>();
lineGraphSeries.setDrawDataPoints(true);
lineGraphSeries.setColor(colorList.removeFirst());
series.put(can.getKey(), lineGraphSeries);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Series()\n {\n super();\n }",
"private void initializeChart(final List<DateCounter> data)\n {\n final XYSeries series = new XYSeries(TITLE_XY_SERIES);\n\n //Adding data to the chart\n addDataToXYSeries(data, series);\n\n //Finalizing the chart\n final XYSeriesCollection coll = new XYSeriesCollection(series);\n final JFreeChart chart = ChartFactory.createXYLineChart(TITLE_CHART, X_AXIS_TITLE,\n Y_AXIS_TITLE, coll, PlotOrientation.VERTICAL, true, true, false);\n final ChartPanel chartPanel = new ChartPanel(chart);\n chartPanel.setPreferredSize(new java.awt.Dimension(SIZE_CHART_PANEL, SIZE_CHART_PANEL));\n this.add(chartPanel, BorderLayout.CENTER);\n }",
"@FXML\n public void setGraph(){\n /*\n series.getData().clear();\n for(double x = -400; x <= 400; x += 1)\n series.getData().add(new XYChart.Data<Number,Number> (x, x));\n\n graph.getData().add(series);\n */\n System.out.println(\"vjksdl\");\n }",
"public Chart initializeChart();",
"private void initChart() {\r\n /*mCurrentSeries = new XYSeries(\"Sample Data\");\r\n mDataset.addSeries(mCurrentSeries);\r\n mCurrentRenderer = new XYSeriesRenderer();\r\n mRenderer.addSeriesRenderer(mCurrentRenderer);*/\r\n \t\r\n \tList<Integer> MyListValue = new ArrayList<Integer>();\r\n\t\t/*for (int i = 0; i < SpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(SpeakingTimeList.get(i));\r\n\t\t}*/\r\n\t\tfor (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(participantAndSpeakingTimeList.get(i).getValue());\r\n\t\t}\r\n\t\t\r\n\t\t/*MyList.add(25);\r\n\t\tMyList.add(10);\r\n\t\tMyList.add(15);\r\n\t\tMyList.add(20);*/\r\n\t\t\t\t\r\n\t\tint[] y = new int[MyListValue.size()];\r\n\t\tfor (int i = 0; i < MyListValue.size(); i++) \r\n\t\t\ty[i] = MyListValue.get(i);\r\n\t\t\r\n\t\t//int y[] = {25,10,15,20};\r\n\t \r\n CategorySeries series = new CategorySeries(\"Speaking time in secondes\");\r\n for(int i=0; i < y.length; i++){\r\n series.add(\"Bar\"+(i+1),y[i]);\r\n }\r\n \r\n dataSet = new XYMultipleSeriesDataset(); // collection of series under one object.,there could any\r\n dataSet.addSeries(series.toXYSeries()); // number of series\r\n \r\n //customization of the chart\r\n \r\n XYSeriesRenderer renderer = new XYSeriesRenderer(); // one renderer for one series\r\n renderer.setColor(Color.parseColor(\"#0099FF\"));\r\n renderer.setDisplayChartValues(true);\r\n renderer.setChartValuesSpacing((float) 5.5d);\r\n renderer.setLineWidth((float) 10.5d);\r\n \r\n \r\n mRenderer = new XYMultipleSeriesRenderer(); // collection multiple values for one renderer or series\r\n mRenderer.addSeriesRenderer(renderer);\r\n mRenderer.setChartTitle(\"Speaking time per participant\");\r\n// mRenderer.setXTitle(\"xValues\");\r\n mRenderer.setYTitle(\"Time in secondes\");\r\n mRenderer.setZoomButtonsVisible(true); mRenderer.setShowLegend(true);\r\n mRenderer.setShowGridX(true); // this will show the grid in graph\r\n mRenderer.setShowGridY(true); \r\n// mRenderer.setAntialiasing(true);\r\n mRenderer.setBarSpacing(.5); // adding spacing between the line or stacks\r\n mRenderer.setApplyBackgroundColor(true);\r\n mRenderer.setBackgroundColor(Color.BLACK);\r\n mRenderer.setXAxisMin(0);\r\n mRenderer.setYAxisMin(0);\r\n //mRenderer.setXAxisMax(5);\r\n /*mRenderer.setXAxisMax(ParticipantsList.size()+1);*/\r\n mRenderer.setXAxisMax(participantAndSpeakingTimeList.size()+1);\r\n //mRenderer.setYAxisMax(100);\r\n mRenderer.setYAxisMax(Math.round(getMaxValue()/10)*10+10);\r\n// \r\n \r\n mRenderer.setXLabels(0);\r\n \r\n mRenderer.setXLabelsAngle(90);\r\n mRenderer.setXLabelsAlign(Align.LEFT);\r\n \r\n /*for (int i = 0; i < ParticipantsList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, ParticipantsList.get(i));\r\n\t\t}*/\r\n for (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, participantAndSpeakingTimeList.get(i).getName());\r\n\t\t}\r\n \r\n /*mRenderer.addXTextLabel(1,\"Income\");\r\n mRenderer.addXTextLabel(2,\"Saving\");\r\n mRenderer.addXTextLabel(3,\"Expenditure\");\r\n mRenderer.addXTextLabel(4,\"NetIncome\");*/\r\n \r\n mRenderer.setPanEnabled(true, true); // will fix the chart position\r\n //Intent intent = ChartFactory.getBarChartIntent(context, dataSet, mRenderer,Type.DEFAULT);\r\n \r\n //return intent;\r\n\r\n\t\r\n\t}",
"public void addSeries(DataSeries aSeries) { _dataSet.addSeries(aSeries); }",
"private void setGraphDataAndStyle() {\n graphView.addSeries(new LineGraphSeries(getSeriesData()));\n graphView.setTitle(\"配速\");\n graphView.getGridLabelRenderer().setLabelFormatter(new DateAxisLabelFormatter(getActivity()));\n graphView.getGridLabelRenderer().setNumVerticalLabels(locations.size());\n graphView.getViewport().setMinX(locations.get(0).getTime());\n graphView.getViewport().setMaxX(locations.get(locations.size()-1).getTime());\n graphView.getViewport().setXAxisBoundsManual(true);\n\n }",
"@Override\r\n\tpublic void setDataSeries(List<Double> factValues) {\n\r\n\t}",
"private void initChart() {\n Cartesian cartesian = AnyChart.line();\n\n cartesian.animation(true);\n\n cartesian.padding(10d, 20d, 5d, 20d);\n\n cartesian.crosshair().enabled(true);\n cartesian.crosshair()\n .yLabel(true)\n // TODO ystroke\n .yStroke((Stroke) null, null, null, (String) null, (String) null);\n\n cartesian.tooltip().positionMode(TooltipPositionMode.POINT);\n\n cartesian.title(\"Steps taken in this week and last week\");\n\n cartesian.yAxis(0).title(\"Steps\");\n cartesian.xAxis(0).labels().padding(5d, 5d, 5d, 5d);\n\n List<DataEntry> seriesData = new ArrayList<>();\n Log.d(\"Size This Week\",stepsTakenModelsThisWeek.size()+\"\");\n for(int i = 0 ; i<7 ; i++){\n CustomDataEntry c = new CustomDataEntry(days[i],stepsTakenModelsLastWeek.get(i).getSteps());\n if(i<stepsTakenModelsThisWeek.size()){\n c.setValue(\"value2\",stepsTakenModelsThisWeek.get(i).getSteps());\n }else{\n if(DateUtilities.getDayInAbbBySelectedDate(stepsTakenModelsLastWeek.get(i).getDate()).equals(\n DateUtilities.getCurrentDayInAbb()))\n {\n c.setValue(\"value2\",stepsToday);\n }else{\n c.setValue(\"value2\",0);\n }\n }\n seriesData.add(c);\n }\n\n Set set = Set.instantiate();\n set.data(seriesData);\n Mapping series1Mapping = set.mapAs(\"{ x: 'x', value: 'value' }\");\n Mapping series2Mapping = set.mapAs(\"{ x: 'x', value: 'value2' }\");\n\n Line series1 = cartesian.line(series1Mapping);\n series1.name(\"Last Week\");\n series1.hovered().markers().enabled(true);\n series1.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series1.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n Line series2 = cartesian.line(series2Mapping);\n series2.name(\"This Week\");\n series2.hovered().markers().enabled(true);\n series2.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series2.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n\n cartesian.legend().enabled(true);\n cartesian.legend().fontSize(13d);\n cartesian.legend().padding(0d, 0d, 10d, 0d);\n\n chart.setChart(cartesian);\n }",
"private XYSeries createSeries() {\r\n return createSeries(0);\r\n }",
"public HumidityChart() {\n this(new XYSeriesCollection());\n }",
"private void setData() {\n LineDataSet set1 = new LineDataSet(valuesTemperature, \"Temperature\");\n\n set1.setColor(Color.RED);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n LineData data = new LineData(set1);\n\n // set data\n chartTemperature.setData(data);\n\n // get the legend (only possible after setting data)\n Legend l = chartTemperature.getLegend();\n l.setEnabled(true);\n\n\n // create a dataset and give it a type\n set1 = new LineDataSet(valuesPressure, \"Pressure\");\n\n set1.setColor(Color.GREEN);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n data = new LineData(set1);\n\n // set data\n chartPressure.setData(data);\n\n // get the legend (only possible after setting data)\n l = chartPressure.getLegend();\n l.setEnabled(true);\n\n\n\n // create a dataset and give it a type\n set1 = new LineDataSet(valuesAltitude, \"Altitude\");\n\n set1.setColor(Color.BLUE);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n data = new LineData(set1);\n\n // set data\n chartAltitude.setData(data);\n\n // get the legend (only possible after setting data)\n l = chartAltitude.getLegend();\n l.setEnabled(true);\n }",
"private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }",
"public Series () {\n super();\n this.price = RandomFill.generateNumber(5,15);\n this.listSeason = RandomFill.generateListSeason();\n }",
"public LineChart() {\n init();\n }",
"public void initGraphData(String dataSeriesName1, String dataSeriesName2, String dataSeriesName3) {\n m_pDataSeriesName1 = dataSeriesName1;\n m_pDataSeriesName2 = dataSeriesName2;\n m_pDataSeriesName3 = dataSeriesName3;\n\n initDataSeries(m_pDataSeriesName1, m_pDataSeriesName2, m_pDataSeriesName3);\n\n m_pAnimation = new Timeline();\n m_pAnimation.getKeyFrames().add(new KeyFrame(Duration.millis(2000), new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent actionEvent) {\n try {\n m_pLock.lock();\n if (mTimeInSecond != null) {\n\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_2_SECONDS);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_2_SECONDS);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_2_SECONDS);\n\n if (mChartModeCounter % 10 == 0) {\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_10_SECONDS);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_10_SECONDS);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_10_SECONDS);\n }\n\n if (mChartModeCounter % 30 == 0) {\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_30_SECONDS);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_30_SECONDS);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_30_SECONDS);\n }\n\n if (mChartModeCounter % 300 == 0) {\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_5_MINUTES);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_5_MINUTES);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_5_MINUTES);\n mChartModeCounter = 0;\n }\n\n mChartModeCounter += 2;\n\n // Set null after plotting\n mTimeInSecond = null;\n mPlotValue1 = null;\n mPlotValue2 = null;\n mPlotValue3 = null;\n\n // Update the X Axis if it has been initialized\n if (m_pXAxis != null) {\n int chartRange;\n ObservableList<XYChart.Data<Number, Number>> observableList1, observableList2, observableList3;\n switch (mChartMode) {\n case CHART_MODE_2_SECONDS:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n break;\n case CHART_MODE_10_SECONDS:\n observableList1 = m_pDataSerieObservableList1_10SEC;\n observableList2 = m_pDataSerieObservableList2_10SEC;\n observableList3 = m_pDataSerieObservableList3_10SEC;\n chartRange = X_AXIS_RANGE_10_SECOND_MODE;\n break;\n case CHART_MODE_30_SECONDS:\n observableList1 = m_pDataSerieObservableList1_30SEC;\n observableList2 = m_pDataSerieObservableList2_30SEC;\n observableList3 = m_pDataSerieObservableList3_30SEC;\n chartRange = X_AXIS_RANGE_30_SECOND_MODE;\n break;\n case CHART_MODE_5_MINUTES:\n observableList1 = m_pDataSerieObservableList1_5MIN;\n observableList2 = m_pDataSerieObservableList2_5MIN;\n observableList3 = m_pDataSerieObservableList3_5MIN;\n chartRange = X_AXIS_RANGE_5_MINUTE_MODE;\n break;\n default:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n break;\n }\n\n\n double maxValue = Math.max(Math.max(observableList1.get(observableList1.size() - 1).getXValue().doubleValue(),\n observableList2.get(observableList1.size() - 1).getXValue().doubleValue()),\n observableList3.get(observableList1.size() - 1).getXValue().doubleValue());\n double newLowerBound = maxValue - chartRange;\n double newUpperBound = maxValue;\n m_pXAxis.setLowerBound(newLowerBound);\n m_pXAxis.setUpperBound(newUpperBound);\n m_pXAxis.setDisable(false);\n }\n }\n } finally {\n m_pLock.unlock();\n }\n }\n }));\n m_pAnimation.setCycleCount(Timeline.INDEFINITE);\n m_pAnimation.play();\n }",
"public ChartData() {\n this.labels = new ArrayList<>();\n this.labelsDataMap = new HashMap<>();\n this.legend = new ArrayList<>();\n }",
"private void initialization(Stage primaryStage) throws Exception{\r\n\t\t\t//NumberAxis(lower limit, upper limit, interval)\r\n\t\t xAxis = new NumberAxis(0, MAX_DATA_POINTS, MAX_DATA_POINTS / 100);\r\n\t\t xAxis.setForceZeroInRange(false);\r\n\t\t xAxis.setAutoRanging(false);\r\n\t\t \r\n\t\t \r\n\t\t NumberAxis yAxis = new NumberAxis(0.3,0.5, 20);\r\n\t\t yAxis.setAutoRanging(false);\r\n\t\t\r\n\t\t final LineChart<Number, Number> sc = new LineChart<Number, Number>(xAxis, yAxis) {\r\n\t\t // Override to remove symbols on each data point \r\n\t\t @Override\r\n\t\t protected void dataItemAdded(Series<Number, Number> series, int itemIndex, Data<Number, Number> item) {\r\n\r\n\t\t }\r\n\t\t };\r\n\t\t sc.setAnimated(false);\r\n\t\t sc.setId(\"liveAreaChart\");\r\n\t\t sc.setTitle(\"RealTime Stock Chart\");\r\n\t\t series = new LineChart.Series<Number, Number>();\r\n\t\t series.setName(\"Area Chart Series\");\r\n\t\t sc.getData().add(series);\r\n\t\t primaryStage.setScene(new Scene(sc));\r\n\r\n\t}",
"private void initPieChart(){\n }",
"private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }",
"private void setDataLineChart() {\n\t\t\n\t\tchartLine.setTitle(\"Evolution du Solde\");\n\t\tchartLine.getData().clear();\n\t\t\n\t\tXYChart.Series series = new XYChart.Series();\n\t\tseries.getData().clear();\n\t\tseries.setName(\"Evolution du solde\");\n\t\t\n\t\tdouble solde = bal.getAmount();\n\t\tint currentYear = Calendar.getInstance().get(Calendar.YEAR);\n\t\tint currentMonth = Calendar.getInstance().get(Calendar.MONTH);\n\t\tint currentDay = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\t\n\t\t// Create a calendar object and set year and month\n\t\tCalendar mycal = new GregorianCalendar(currentYear, currentMonth,\n\t\t\t\tcurrentDay);\n\t\t\n\t\t// Get the number of days in that month\n\t\tint daysInMonth = mycal.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\t\n\t\tif (!bal.getTransactions().isEmpty()) {\n\t\t\tfor (IOTransactionLogic transaction : bal.getTransactions()\n\t\t\t\t\t.get(currentYear)[currentMonth]) {\n\t\t\t\tsolde -= transaction.getAmount();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < currentDay; ++i) {\n\t\t\tif (!bal.getTransactions().isEmpty()) {\n\t\t\t\tfor (IOTransactionLogic transaction : bal.getTransactions()\n\t\t\t\t\t\t.get(currentYear)[currentMonth]) {\n\t\t\t\t\tjava.sql.Date dat = transaction.getDate();\n\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\tcal.setTime(dat);\n\t\t\t\t\tif (cal.get(Calendar.DAY_OF_MONTH) - 1 == i) {\n\t\t\t\t\t\tsolde += transaction.getAmount();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tseries.getData()\n\t\t\t\t\t.add(new XYChart.Data(String.valueOf(i + 1), solde));\n\t\t}\n\t\t\n\t\tchartLine.getData().addAll(series);\n\t\tchartLine.setLegendVisible(false);\n\t}",
"private XYDataset createDataset() {\n\t \tXYSeriesCollection dataset = new XYSeriesCollection();\n\t \t\n\t \t//Definir cada Estacao\n\t\t XYSeries aes1 = new XYSeries(\"Estação1\");\n\t\t XYSeries aes2 = new XYSeries(\"Estação2\");\n\t\t XYSeries aes3 = new XYSeries(\"Estação3\");\n\t\t XYSeries aes4 = new XYSeries(\"Estação4\");\n\t\t XYSeries aes5 = new XYSeries(\"Estação5\");\n\t\t XYSeries aes6 = new XYSeries(\"Estação6\");\n\t\t XYSeries aes7 = new XYSeries(\"Estação7\");\n\t\t XYSeries aes8 = new XYSeries(\"Estação8\");\n\t\t XYSeries aes9 = new XYSeries(\"Estação9\");\n\t\t XYSeries aes10 = new XYSeries(\"Estação10\");\n\t\t XYSeries aes11 = new XYSeries(\"Estação11\");\n\t\t XYSeries aes12 = new XYSeries(\"Estação12\");\n\t\t XYSeries aes13 = new XYSeries(\"Estação13\");\n\t\t XYSeries aes14 = new XYSeries(\"Estação14\");\n\t\t XYSeries aes15 = new XYSeries(\"Estação15\");\n\t\t XYSeries aes16 = new XYSeries(\"Estação16\");\n\t\t \n\t\t //Definir numero de utilizadores em simultaneo para aparece na Interface\n\t\t XYSeries au1 = new XYSeries(\"AU1\");\n\t\t XYSeries au2 = new XYSeries(\"AU2\");\n\t\t XYSeries au3 = new XYSeries(\"AU3\");\n\t\t XYSeries au4 = new XYSeries(\"AU4\");\n\t\t XYSeries au5 = new XYSeries(\"AU5\");\n\t\t XYSeries au6 = new XYSeries(\"AU6\");\n\t\t XYSeries au7 = new XYSeries(\"AU7\");\n\t\t XYSeries au8 = new XYSeries(\"AU8\");\n\t\t XYSeries au9 = new XYSeries(\"AU9\");\n\t\t XYSeries au10 = new XYSeries(\"AU10\");\n\t\t \n\t\t //Colocar estacoes no gráfico\n\t\t aes1.add(12,12);\n\t\t aes2.add(12,37);\n\t\t aes3.add(12,62);\n\t\t aes4.add(12,87);\n\t\t \n\t\t aes5.add(37,12);\n\t\t aes6.add(37,37);\n\t\t aes7.add(37,62);\n\t\t aes8.add(37,87);\n\t\t \n\t\t aes9.add(62,12); \n\t\t aes10.add(62,37);\n\t\t aes11.add(62,62);\n\t\t aes12.add(62,87);\n\t\t \n\t\t aes13.add(87,12);\n\t\t aes14.add(87,37);\n\t\t aes15.add(87,62);\n\t\t aes16.add(87,87);\n\t\t \n\t\t//Para a bicicleta 1\n\t\t \t\n\t\t\t for(Entry<String, String> entry : position1.entrySet()) {\n\t\t\t\t String key = entry.getKey();\n\t\t\t\t \n\t\t\t\t String[] part= key.split(\",\");\n\t\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t\t \n\t\t\t\t au1.add(keyX,keyY);\n\t\t\t }\n\t\t \n\t\t\t //Para a bicicleta 2\n\t\t for(Entry<String, String> entry : position2.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au2.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Para a bicicleta 3\n\t\t for(Entry<String, String> entry : position3.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au3.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position4.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au4.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position5.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au5.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position6.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au6.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position7.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au7.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position8.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au8.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position9.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au9.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position10.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au10.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Add series to dataset\n\t\t dataset.addSeries(au1);\n\t\t dataset.addSeries(au2);\n\t\t dataset.addSeries(au3);\n\t\t dataset.addSeries(au4);\n\t\t dataset.addSeries(au5);\n\t\t dataset.addSeries(au6);\n\t\t dataset.addSeries(au7);\n\t\t dataset.addSeries(au8);\n\t\t dataset.addSeries(au9);\n\t\t dataset.addSeries(au10);\n\t\t \n\t\t \n\t\t dataset.addSeries(aes1);\n\t\t dataset.addSeries(aes2);\n\t\t dataset.addSeries(aes3);\n\t\t dataset.addSeries(aes4);\n\t\t dataset.addSeries(aes5);\n\t\t dataset.addSeries(aes6);\n\t\t dataset.addSeries(aes7);\n\t\t dataset.addSeries(aes8);\n\t\t dataset.addSeries(aes9);\n\t\t dataset.addSeries(aes10);\n\t\t dataset.addSeries(aes11);\n\t\t dataset.addSeries(aes12);\n\t\t dataset.addSeries(aes13);\n\t\t dataset.addSeries(aes14);\n\t\t dataset.addSeries(aes15);\n\t\t dataset.addSeries(aes16);\n\t\t \n\t\t return dataset;\n\t }",
"public void setSeriesStart(int aValue) { _dataSet.setSeriesStart(aValue); }",
"@Override\r\n\tpublic void initAditionalPanelElements() {\n\t\tchartDataset = new TimeSeriesCollection();\r\n\t\tfor(int i = 0; i < categoryVariableBuffers.size(); i++) \r\n\t\t\tchartDataset.addSeries(categoryVariableBuffers.get(i).getDataSerie());\r\n\t}",
"public void initializeChart(String subtitle) {\n JFreeChart jfreechart = ChartFactory.createXYLineChart(\n subtitle, \"X\", \"Y\", this.dataset.getXYDataset(),\n PlotOrientation.VERTICAL, true, true, false);\n XYPlot xyplot = (XYPlot) jfreechart.getPlot();\n XYLineAndShapeRenderer xylineandshaperenderer = new XYLineAndShapeRenderer();\n xylineandshaperenderer.setBaseLinesVisible(true);\n\n // System.out.println(\"date set series count: \" + xydataset.getSeriesCount());\n // set visible or not shapes of series\n// System.out.printf(\"sets in the dataset: \"); // TODO delete this \"print\" if necessary\n for (int i = 0; i < this.dataset.seriesCount(); i++) {\n// System.out.printf(this.dataset.getSeries(i).getKey() + \" \");\n xylineandshaperenderer.setSeriesLinesVisible(i, false);\n xylineandshaperenderer.setSeriesShapesVisible(i, this.dataset.shapeVisible(i));\n }\n xylineandshaperenderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator());\n xyplot.setRenderer(xylineandshaperenderer);\n NumberAxis numberaxis = (NumberAxis) xyplot.getRangeAxis();\n numberaxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n this.jPanel = new ChartPanel(jfreechart);\n }",
"protected void initSeries(Chart chart) {\n\n Series series = null;\n\n if (indoor) {\n // id 1 - bedroom\n series = chart.createSeries().setName(\"Bedroom\");\n chart.addSeries(setSeriesOpts(series));\n seriesMap.put(1, series);\n\n // id 2 - living room\n series = chart.createSeries().setName(\"Living Room\");\n chart.addSeries(setSeriesOpts(series));\n seriesMap.put(2, series);\n\n // id 3 - kitchen\n series = chart.createSeries().setName(\"Kitchen\");\n chart.addSeries(setSeriesOpts(series));\n seriesMap.put(3, series);\n } else {\n // id 4 - outside\n series = chart.createSeries().setName(\"Outside\");\n chart.addSeries(setSeriesOpts(series));\n seriesMap.put(4, series);\n }\n }",
"public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }",
"private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}",
"private Chart(){}",
"public void onModuleLoad() {\n\n Chart chart = new Chart()\n .setType(Series.Type.SPLINE)\n .setChartTitleText(\"Temperaturen\")\n .setMarginRight(10);\n\t\n\tSeries series = chart.createSeries()\n\t.setName(\"°C in Palma\")\n\t.setPoints(new Number[] { 22.4, 25.6, 20.5, 19.0, 17.0, 18.0, 19.0, 18.3 });\n\tchart.addSeries(series);\n\n\tSeries series2 = chart.createSeries()\n\t.setName(\"°C in Leipzig\")\n\t.setPoints(new Number[] { 13.5, 14.3, 16.4, 9.9, 12.5, 13.0, 15.9, 20.0} );\n\tchart.addSeries(series2);\n\t\n\tRootPanel.get().add(chart);\n\t\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle rb) { \n \n XYChart.Series series = new XYChart.Series<>();\n \n \n series.setName(\"Gagnant\");\n series.getData().add(new XYChart.Data(\"Jan\", 100));\n series.getData().add(new XYChart.Data(\"Fev\", 170));\n series.getData().add(new XYChart.Data(\"Mars\", 197));\n series.getData().add(new XYChart.Data(\"Avr\", 160));\n series.getData().add(new XYChart.Data(\"Mai\", 165));\n series.getData().add(new XYChart.Data(\"Juin\", 179));\n series.getData().add(new XYChart.Data(\"Juil\", 195));\n series.getData().add(new XYChart.Data(\"Aout\", 140));\n series.getData().add(new XYChart.Data(\"Sept\", 121));\n series.getData().add(new XYChart.Data(\"Oct\", 173));\n series.getData().add(new XYChart.Data(\"Nov\", 185));\n series.getData().add(new XYChart.Data(\"Dec\", 150));\n \n XYChart.Series perdant = new XYChart.Series<>();\n perdant.setName(\"Perdant\");\n \n perdant.getData().add(new XYChart.Data(\"Jan\", 80));\n perdant.getData().add(new XYChart.Data(\"Fev\", 60));\n perdant.getData().add(new XYChart.Data(\"Mars\", 80));\n perdant.getData().add(new XYChart.Data(\"Avr\", 70));\n perdant.getData().add(new XYChart.Data(\"Mai\", 70));\n perdant.getData().add(new XYChart.Data(\"Juin\", 60));\n perdant.getData().add(new XYChart.Data(\"Juil\", 100));\n perdant.getData().add(new XYChart.Data(\"Aout\", 80));\n perdant.getData().add(new XYChart.Data(\"Sept\", 50));\n perdant.getData().add(new XYChart.Data(\"Oct\", 79));\n perdant.getData().add(new XYChart.Data(\"Nov\", 70));\n perdant.getData().add(new XYChart.Data(\"Dec\", 12));\n \n\n Tooltip tooltip = new Tooltip(\"Le nombre de gagnants ou cours des mois augmentent souvent.\");\n areaChart.getStylesheets().add(\"-fx-color:green;\");\n areaChart.getData().addAll(series, perdant);\n BarChart.getStylesheets().add(\"chart-bar series<1> bar-legend-symbol default-color<red>\");\n BarChart.getData().addAll(perdant);\n\n\n }",
"@Override\n public void run() {\n XYChart.Data<Number, Number> data = new XYChart.Data<>(-x, y);\n data.setNode(new Circle(5, javafx.scene.paint.Color.GREY));\n series.getData().add(data);\n lineChart.getData().add(series);\n }",
"private void addDataToXYSeries(final List<DateCounter> data, final XYSeries series)\n {\n int counter = INITIALIZE_DATA_COUNTER;\n //Iterating data and adding it to X and Y axises\n for (final DateCounter tempData : data)\n {\n series.add(counter, tempData.getCounter());\n counter++;\n }\n }",
"public Series(Collection<Integer> series)\n {\n readCollection(series);\n }",
"private void initData2() {\n generateValues(); //设置四条线的值数据\n generateData(); //设置数据\n\n // Disable viewport recalculations, see toggleCubic() method for more info.\n chart2.setViewportCalculationEnabled(false);\n\n chart2.setZoomType(ZoomType.HORIZONTAL);//设置线条可以水平方向收缩\n resetViewport(); //设置折线图的显示大小\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"private void addDataSet() {\n Log.d(TAG, \"addDataSet started\");\n ArrayList<PieEntry> yEntrys = new ArrayList<>();\n ArrayList<String> xEntrys = new ArrayList<>();\n\n for(int i = 0; i < yData.length; i++){\n yEntrys.add(new PieEntry(yData[i] , i));\n }\n\n for(int i = 1; i < xData.length; i++){\n xEntrys.add(xData[i]);\n }\n\n //Create the data set\n PieDataSet pieDataSet = new PieDataSet(yEntrys, \"Popularity stat\");\n pieDataSet.setSliceSpace(2);\n pieDataSet.setValueTextSize(12);\n pieDataSet.setValueTextColor(Color.WHITE);\n\n\n\n //Add colors to dataset\n ArrayList<Integer> colors = new ArrayList<>();\n colors.add(Color.BLUE);\n colors.add(Color.RED);\n colors.add(Color.GREEN);\n colors.add(Color.CYAN);\n colors.add(Color.YELLOW);\n colors.add(Color.MAGENTA);\n\n pieDataSet.setColors(colors);\n\n //Add legend to chart\n Legend legend = pieChart.getLegend();\n legend.setForm(Legend.LegendForm.DEFAULT);\n legend.setPosition(Legend.LegendPosition.ABOVE_CHART_CENTER);\n\n //Create pie data object\n PieData pieData = new PieData(pieDataSet);\n pieChart.setData(pieData);\n pieChart.invalidate();\n }",
"private void setData() {\n BarDataSet set = new BarDataSet(getEntries(), \"Monthly Report\");\n set.setColors(new int[]{R.color.md_blue_700, R.color.md_deep_purple_300}, this);\n mData = new BarData(set);\n mChart.setData(mData);\n mData.setValueFormatter(new LargeValueFormatter());\n }",
"private void initData() {\n }",
"public DataSet() {\n this.bars = new ArrayList<Bar>();\n this.reviews = new ArrayList<Review>();\n }",
"public void initGraph(GraphView graph) {\n graph.getViewport().setXAxisBoundsManual(true);\n graph.getViewport().setMinX(0);\n graph.getViewport().setMaxX(graphWidth); //ici il faut setter maxWidth\n\n graph.getGridLabelRenderer().setLabelVerticalWidth(100);\n for(CustomPair<String, CustomPair<Integer, Integer>> can:cans)\n {\n graph.addSeries(series.get(can.getKey()));\n series.get(can.getKey()).setTitle(can.getKey());\n }\n graph.getLegendRenderer().setVisible(true);\n graph.getLegendRenderer().setBackgroundColor(Color.TRANSPARENT);\n graph.setTitle(name);\n graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.MIDDLE);\n graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.BOTTOM);\n\n graph.getGridLabelRenderer().setGridColor(themeColor);\n graph.getGridLabelRenderer().setHorizontalLabelsColor(themeColor);\n graph.getGridLabelRenderer().setVerticalLabelsColor(themeColor);\n graph.getGridLabelRenderer().setVerticalAxisTitleColor(themeColor);\n graph.getLegendRenderer().setTextColor(themeColor);\n }",
"private void initData() {\n\n }",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"private void initData() {\n\t}",
"private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}",
"public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n colLivro.setCellValueFactory((param) -> new SimpleStringProperty(param.getValue().getIDLivro().getTitulo()));\n colTempo.setCellValueFactory((param) -> {\n LocalDate dataEmprestimo = param.getValue().getDataEmprestimo().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n LocalDate dataAtual = LocalDate.now();\n int daysBetween = (int) Duration.between(dataEmprestimo.atStartOfDay(), dataAtual.atStartOfDay()).toDays();\n return new SimpleStringProperty(Integer.toString(daysBetween));\n });\n \n XYChart.Series serie1 = new XYChart.Series();\n //Date dateGrafico = Date.from(LocalDate.now().minusDays(10).atStartOfDay(ZoneId.systemDefault()).toInstant());\n LocalDate dateGrafico = LocalDate.now().minusDays(10);\n String s;\n EmprestimoDAO emprestimoDAO = new EmprestimoDAO(); \n for(int a=0; a<10; a++)\n {\n\n s = Integer.toString(dateGrafico.getDayOfMonth()) + \"/\" + Integer.toString(dateGrafico.getMonthValue());\n Date dataConvertida = Date.from(dateGrafico.atStartOfDay(ZoneId.systemDefault()).toInstant()); \n int valor = emprestimoDAO.getCountPerDate(dataConvertida);\n System.out.println(valor);\n serie1.getData().add(new XYChart.Data(s, valor));\n dateGrafico = dateGrafico.plusDays(1);\n \n }\n \n \n grafico.getData().clear();\n grafico.getData().add(serie1);\n \n \n Platform.runLater(() -> {\n EmprestimoDAO emprestimoDao = new EmprestimoDAO();\n ObservableList<Emprestimo> listaDeEmprestimos = FXCollections.observableArrayList();\n listaDeEmprestimos.addAll(emprestimoDao.getAllEmprestados());\n tabela.setItems(listaDeEmprestimos);\n });\n }",
"public void init(){\n List<Order> orders=DA.getAll();\n ordersList.setPageFactory((Integer pageIndex)->pageController.createPage(pageIndex));\n ordersList.setPageCount(orders.size()/10);\n pageController.setOrders(orders);\n //dataController=new DataController(DA);\n dataController.setDA(DA);\n dataController.setDataBox(data);\n dataController.setInfoList(DA.getData());\n dataController.initBarChart();\n\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n\n //----------------LineChart----------\n lineChart.setTitle(\"Number of participations by date\");\n XYChart.Series dataSeries = new XYChart.Series();\n dataSeries.setName(\"test\");\n for(int i=0;i<sut.getNbrParticipateByDate().size();i++)\n dataSeries.getData().add(new XYChart.Data(String.valueOf(sut.getNbrParticipateByDate().get(i).getCreatedAt()),sut.getNbrParticipateByDate().get(i).getNbr()));\n lineChart.getData().add(dataSeries);\n //------------------------------------------//\n l = se.AfficherEvent();\n System.out.println(l);\n titleCol.setCellValueFactory(new PropertyValueFactory<>(\"title\"));\n descriptionCol.setCellValueFactory(new PropertyValueFactory<>(\"description\"));\n startDayCol.setCellValueFactory(new PropertyValueFactory<>(\"startDate\"));\n endDateCol.setCellValueFactory(new PropertyValueFactory<>(\"endDate\"));\n priceCol.setCellValueFactory(new PropertyValueFactory<>(\"price\"));\n locationCol.setCellValueFactory(new PropertyValueFactory<>(\"location\"));\n categoryCol.setCellValueFactory(new PropertyValueFactory<>(\"cat\"));\n eventTable.setItems(l);\n }",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"private void setUpGraph() {\n \tString title;\n\t\ttry {\n\t\t\ttitle = util.readTextFile(new File(UI.UITEXT_DIRECTORY)).get(GRAPHTITLE_DEX);\n\t\t\taCS = new AreaChartSample(cellStateNames,title);\n\t\t} catch (FileNotFoundException e) {\n\t\t\taCS = new AreaChartSample(cellStateNames, \"ERROR ON TITLE\");\n\t\t}\n\t\troot.getChildren().add(aCS.getAreaChart());\n \tplot();\n }",
"@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}",
"private XYMultipleSeriesDataset getdemodataset() {\n\t\t\tdataset1 = new XYMultipleSeriesDataset();// xy轴数据源\n\t\t\tseries = new XYSeries(\"温度 \");// 这个事是显示多条用的,显不显示在上面render设置\n\t\t\t// 这里相当于初始化,初始化中无需添加数据,因为如果这里添加第一个数据的话,\n\t\t\t// 很容易使第一个数据和定时器中更新的第二个数据的时间间隔不为两秒,所以下面语句屏蔽\n\t\t\t// 这里可以一次更新五个数据,这样的话相当于开始的时候就把五个数据全部加进去了,但是数据的时间是不准确或者间隔不为二的\n\t\t\t// for(int i=0;i<5;i++)\n\t\t\t// series.add(1, Math.random()*10);//横坐标date数据类型,纵坐标随即数等待更新\n\n\t\t\tdataset1.addSeries(series);\n\t\t\treturn dataset1;\n\t\t}",
"@Override\n\tpublic void initData() {\n\t\t\n\t}",
"@Override\n\tpublic void initData() {\n\n\t\tsuper.initData();\n\t\tinitLsitData();\n\n\t\tviewpager.setAdapter(new MyPagerAdapter());\n\t\tindicator.setViewPager(viewpager);\n\n\t}",
"private void initialize() {\r\n\t\t//frame = new JFrame();\r\n\t\tframe.setSize(725, 482);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t//frame.getContentPane().setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\tDefaultCategoryDataset dataset= new DefaultCategoryDataset();\r\n\t\t//JOptionPane.showMessageDialog(null, \"BUTTON CLICKED!!!\");\r\n\t\t//LableMessage.setText(\"BUTTON CLICKED!!!\");\r\n\t\t\r\n\t\t//Pain, Drowsiness, Nausea, Anxiety, and Depression\r\n\t\tdataset.setValue(2, \"day1\",\"Pain\");\r\n\t\tdataset.setValue(5, \"day2\",\"Pain\");\r\n\t\tdataset.setValue(4, \"day3\",\"Pain\");\r\n\t\tdataset.setValue(6, \"day1\", \"Drowsiness\");\r\n\t\tdataset.setValue(10, \"day2\", \"Drowsiness\");\r\n\t\tdataset.setValue(8, \"day3\", \"Drowsiness\");\r\n\t\tdataset.setValue(1, \"day1\", \"Nausea\");\r\n\t\tdataset.setValue(7, \"day2\", \"Nausea\");\r\n\t\tdataset.setValue(5, \"day3\", \"Nausea\");\r\n\t\tdataset.setValue(3,\"day1\",\"Anxiety\");\t\r\n\t\tdataset.setValue(8,\"day2\",\"Anxiety\");\r\n\t\tdataset.setValue(9,\"day3\",\"Anxiety\");\r\n\t\tdataset.setValue(8, \"day1\", \"Depression\");\r\n\t\tdataset.setValue(7, \"day2\", \"Depression\");\r\n\t\tdataset.setValue(9, \"day3\", \"Depression\");\r\n\t\tint test[] = new int[7];\r\n\t\tfor (int i=0;i<7; i++)\r\n\t\t{\r\n\t\t\ttest[i]=5;\r\n\t\t}\r\n\t\tDefaultCategoryDataset dataset2= new DefaultCategoryDataset();\r\n\t\t//dataset2 = dataSetInit(P1.getEnterSymptomLevel(),P1.getPreviousSymptomLevel1(),P1.getPreviousSymptomLevel2());\r\n\t\tdataset2 = dataSetInit(test,test,test);\r\n\t\t//P1.getEnter\r\n\t\t//DefaultCategoryDataset dataset2= new DefaultCategoryDataset();\r\n\r\n\t\t//JFreeChart chart= ChartFactory.createBarChart(P1.firstName+\" \"+P1.lastName,\"Symptoms\", \"Levels\", dataset2, PlotOrientation.VERTICAL,false,true,false);\r\n\r\n\t\tJFreeChart chart= ChartFactory.createBarChart3D(\"Symptom Report\",\"Symptoms\", \"Levels\", dataset2, PlotOrientation.VERTICAL,true,true,true);\r\n\t\t//JFreeChart chart2= ChartFactory.createBarChart(\"Symptom Report\",\"Symptoms\", \"Levels\", dataset2, PlotOrientation.VERTICAL,false,true,false);\r\n\t\tchart.setBackgroundPaint(Color.lightGray);\r\n\t\t//JFreeChart chart2= ChartFactory.createBarChart(\"Grade Report\",\"Student Name\", \"Marks\", dataset2, PlotOrientation.VERTICAL,false,true,false);\r\n\t\t\r\n\t\tChartPanel chartPanel = new ChartPanel(chart);\r\n\t\tchartPanel.setPreferredSize(new Dimension(700,350));\r\n\t\tPan.add(chartPanel);\r\n\t\t\r\n\t\tframe.getContentPane().add(Pan);\r\n\t\tCategoryPlot p=chart.getCategoryPlot();\r\n\t\tp.setRangeGridlinePaint(Color.red);\r\n\t\tp.setBackgroundPaint(Color.WHITE);\r\n\t\tframe.setVisible(true);\r\n//\t\tChartFrame frame= new ChartFrame(\"Bar Graph Test\",chart,false);\r\n//\t\t\r\n//\t\tframe.setVisible(true);\r\n//\t\tframe.setSize(700,350);\r\n//\t\tframe.setResizable(false);\r\n\t\t//frame2 =new JFrame()\r\n\t}",
"@Override\r\n\tpublic void initData() {\n\t}",
"protected @Override\r\n abstract void initData();",
"public void initGraph(StackPane stackPane, String lineChartTitle) {\n m_pLineChartTitle = lineChartTitle;\n m_pStackPane = stackPane;\n\n createChart(m_pLineChartTitle);\n if (m_pStackPane.getChildren().size() > 0) {\n m_pStackPane.getChildren().remove(0); // Remove the last line chart if there is\n }\n m_pStackPane.getChildren().add(m_pLineChart);\n addOrReplaceDataSeries();\n }",
"@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}",
"public void init(List<PlotData> graphs, int currentGraphNum, List<Slot> allViews, TimeInterval timeRange, IMeanState meanState, int height);",
"@PostConstruct\n public void init() {\n\n areaChartByDate = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newAreaChartSettings()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).dynamic(80, DAY, true)\n .column(CREATION_DATE, \"Creation date\")\n .column(EXPECTED_AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_area_column1(), \"$ #,###\")\n .title(AppConstants.INSTANCE.sales_bydate_area_title())\n .titleVisible(true)\n .width(700).height(200)\n .margins(10, 100, 80, 100)\n .filterOn(true, true, true)\n .buildSettings());\n\n pieChartYears = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newPieChartSettings()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).dynamic(YEAR, true)\n .column(CREATION_DATE, \"Year\")\n .column(COUNT, \"#occs\").format(AppConstants.INSTANCE.sales_bydate_pie_years_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_pie_years_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 0, 0, 0)\n .filterOn(false, true, false)\n .buildSettings());\n\n pieChartQuarters = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newPieChartSettings()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).fixed(QUARTER, true)\n .column(CREATION_DATE, \"Creation date\")\n .column(COUNT, \"#occs\").format(AppConstants.INSTANCE.sales_bydate_pie_quarters_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_pie_quarters_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 0, 0, 0)\n .filterOn(false, true, false)\n .buildSettings());\n\n barChartDayOfWeek = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newBarChartSettings()\n .subType_Bar()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).fixed(DAY_OF_WEEK, true).firstDay(SUNDAY)\n .column(CREATION_DATE, \"Creation date\")\n .column(COUNT, \"#occs\").format(AppConstants.INSTANCE.sales_bydate_bar_weekday_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_bar_weekday_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 20, 80, 0)\n .filterOn(false, true, true)\n .buildSettings());\n\n\n pieChartByPipeline = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newPieChartSettings()\n .dataset(SALES_OPPS)\n .group(PIPELINE)\n .column(PIPELINE, \"Pipeline\")\n .column(COUNT, \"#opps\").format(AppConstants.INSTANCE.sales_bydate_pie_pipe_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_pie_pipe_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 0, 0, 0)\n .filterOn(false, true, true)\n .buildSettings());\n\n tableAll = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newTableSettings()\n .dataset(SALES_OPPS)\n .title(AppConstants.INSTANCE.sales_bydate_title())\n .titleVisible(false)\n .tablePageSize(5)\n .tableWidth(800)\n .tableOrderEnabled(true)\n .tableOrderDefault(AMOUNT, DESCENDING)\n .renderer(DefaultRenderer.UUID)\n .column(COUNTRY, AppConstants.INSTANCE.sales_bydate_table_column1())\n .column(CUSTOMER, AppConstants.INSTANCE.sales_bydate_table_column2())\n .column(PRODUCT, AppConstants.INSTANCE.sales_bydate_table_column3())\n .column(SALES_PERSON, AppConstants.INSTANCE.sales_bydate_table_column4())\n .column(STATUS, AppConstants.INSTANCE.sales_bydate_table_column5())\n .column(AMOUNT).format(AppConstants.INSTANCE.sales_bydate_table_column6(), \"$ #,###\")\n .column(EXPECTED_AMOUNT).format(AppConstants.INSTANCE.sales_bydate_table_column7(), \"$ #,###\")\n .column(CREATION_DATE).format(AppConstants.INSTANCE.sales_bydate_table_column8(), \"MMM dd, yyyy\")\n .column(CLOSING_DATE).format(AppConstants.INSTANCE.sales_bydate_table_column9(), \"MMM dd, yyyy\")\n .filterOn(false, true, true)\n .buildSettings());\n\n // Create the selectors\n\n countrySelector = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newSelectorSettings()\n .dataset(SALES_OPPS)\n .group(COUNTRY)\n .column(COUNTRY, \"Country\")\n .column(COUNT, \"#Opps\").format(\"#Opps\", \"#,###\")\n .column(AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_selector_total(), \"$ #,##0.00\")\n .sort(COUNTRY, ASCENDING)\n .filterOn(false, true, true)\n .buildSettings());\n\n salesmanSelector = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newSelectorSettings()\n .dataset(SALES_OPPS)\n .group(SALES_PERSON)\n .column(SALES_PERSON, \"Employee\")\n .column(COUNT, \"#Opps\").format(\"#Opps\", \"#,###\")\n .column(AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_selector_total(), \"$ #,##0.00\")\n .sort(SALES_PERSON, ASCENDING)\n .filterOn(false, true, true)\n .buildSettings());\n\n customerSelector = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newSelectorSettings()\n .dataset(SALES_OPPS)\n .group(CUSTOMER)\n .column(CUSTOMER, \"Customer\")\n .column(COUNT, \"#Opps\").format(\"#Opps\", \"#,###\")\n .column(AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_selector_total(), \"$ #,##0.00\")\n .sort(CUSTOMER, ASCENDING)\n .filterOn(false, true, true)\n .buildSettings());\n\n // Make the displayers interact among them\n displayerCoordinator.addDisplayer(areaChartByDate);\n displayerCoordinator.addDisplayer(pieChartYears);\n displayerCoordinator.addDisplayer(pieChartQuarters);\n displayerCoordinator.addDisplayer(barChartDayOfWeek);\n displayerCoordinator.addDisplayer(pieChartByPipeline);\n displayerCoordinator.addDisplayer(tableAll);\n displayerCoordinator.addDisplayer(countrySelector);\n displayerCoordinator.addDisplayer(salesmanSelector);\n displayerCoordinator.addDisplayer(customerSelector);\n\n // Init the dashboard from the UI Binder template\n initWidget(uiBinder.createAndBindUi(this));\n\n // Draw the charts\n displayerCoordinator.drawAll();\n }",
"void init(Dataset ds, Session sess);",
"public void createOscilloscopeData() {\n this.rmsSum = 0;\n int reactorFrequency = getReactorFrequency().intValue();\n int reactorAmplitude = getReactorAmplitude().intValue();\n double reactorPhase = getReactorPhase().doubleValue();\n int controlFrequency = getControlFrequency().intValue();\n int controlAmplitude = getControlAmplitude().intValue();\n double controlPhase = getControlPhase().doubleValue();\n XYChart.Series<Number, Number> dataSeriesOutput = new XYChart.Series<>();\n for (int i = 0; i < 40; i++) {\n createOscilloscopeDatapoint(dataSeriesOutput, reactorFrequency, reactorAmplitude, reactorPhase, \n controlFrequency, controlAmplitude, controlPhase, i);\n }\n dataSeriesOutput.setName(\"Reactor\" + number + \"OutputData\");\n this.outputData.addAll(dataSeriesOutput/*, dataSeriesReactor, dataSeriesControl */);\n \n \n if (this.online == true) {\n this.rms = Math.sqrt(this.rmsSum / 40);\n setOutputPower(100 - (this.rms));\n }\n }",
"private void initData(){\n\n }",
"private void initializeChartPanel() {\n\n Rectangle region = new Rectangle(0, 0, clip.getFrameCount(), clip.getFrameFreqSamples());\n\n //toClipCoords(region);\n region.y = clip.getFrameFreqSamples() - (region.y + region.height);\n\n final int endCol = region.x + region.width;\n final int endRow = region.y + region.height;\n\n //System.out.println(\"endCol = \" + endCol + \" endRow = \" + endRow);\n\n XYSeries xy = new XYSeries(\"data\");\n XYSeries xySpline = new XYSeries(\"spline\");\n\n // Displays the single MAX or STRONGEST Frequency for each column\n // captures every x'th element for fitting spline\n int maxItensity = 0;\n int[] rows = new int[endCol];\n int[] intensities = new int[endCol];\n\n// int SPLINEPRECISION = chartPrefJSlider2.getValue(); // 1 is highest precision; default = 40\n int SPLINEPRECISION = 40; // 1 is highest precision; default = 40\n int splineCounter = 0;\n\n for (int col = region.x; col < endCol; col++) {\n Frame fr = clip.getFrame(col);\n int strongestFreq = 0;\n int strongestFreqStrength = 0;\n for (int row = region.y; row < endRow; row++) {\n // the following is a MUCH faster equivalent to: img.setRGB(col, row, greyVal);\n //int greyVal = (int) (brightness + (contrast * Math.log1p(Math.abs(preMult * val))));\n int greyVal = (int) (0 + (625.0 * Math.log1p(Math.abs(11.2 * fr.getReal(row)))));\n greyVal = Math.min(255, Math.max(0, greyVal));\n int thisFreqStrength = (greyVal << 16) | (greyVal << 8) | (greyVal);\n\n if (thisFreqStrength > strongestFreqStrength) {\n strongestFreqStrength = thisFreqStrength;\n strongestFreq = row;\n }\n if (thisFreqStrength > maxItensity) {\n maxItensity = thisFreqStrength;\n }\n }\n rows[col] = strongestFreq;\n intensities[col] = strongestFreqStrength;\n }\n System.out.println(\"maxItensity = \" + maxItensity);\n\n // Average neighboring data values\n // Use minIntensity amoung neighbors for averaged row\n // Use threshold to exclude weak signals\n //int NUMPOINTSAVERAGED = 20;\n int NUMPOINTSAVERAGED = jSlider1.getValue(); // default = 20\n double INTENSITYTHRESHOLD = 0.95;\n int[] data = new int[endCol - NUMPOINTSAVERAGED];\n int[] dataAveraged = new int[endCol - NUMPOINTSAVERAGED];\n int[] minIntensities = new int[endCol - NUMPOINTSAVERAGED];\n for (int col = region.x; col < endCol - NUMPOINTSAVERAGED; col++) {\n int sumRows = 0;\n int minIntensity = maxItensity;\n for (int i = col; i < col + NUMPOINTSAVERAGED; i++) {\n sumRows += rows[i];\n minIntensity = java.lang.Math.min(minIntensity, intensities[i]);\n }\n data[col] = rows[col];\n dataAveraged[col] = java.lang.Math.round(sumRows / NUMPOINTSAVERAGED);\n minIntensities[col] = minIntensity;\n }\n\n for (int col = region.x; col < endCol - 2 * NUMPOINTSAVERAGED; col++) {\n splineCounter++;\n for (int row = region.y; row < endRow; row++) {\n if (row == data[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds actual data\n xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n }\n\n if (row == dataAveraged[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds averaged data\n //xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n if (splineCounter % SPLINEPRECISION == 0) {\n xySpline.add((double) (col + NUMPOINTSAVERAGED / 2), (double) convertYCoordToFreq(row));\n }\n }\n }\n }\n\n dataset.removeAllSeries();\n dataset.addSeries(xy);\n\n //XYSeriesCollection splineDataset = new XYSeriesCollection();\n dataset.addSeries(xySpline);\n\n JFreeChart chart = ChartFactory.createXYLineChart(\n //JFreeChart chart = ChartFactory.createScatterPlot(\n clip.getFileName(), \"Time (ms)\", \"Frequency (Hz)\", dataset, PlotOrientation.VERTICAL, true, true, false);\n XYPlot xyplot = (XYPlot) chart.getPlot();\n xyplot.setRenderer(new XYSplineRenderer());\n XYLineAndShapeRenderer xylineandshaperenderer = (XYLineAndShapeRenderer) xyplot.getRenderer();\n xylineandshaperenderer.setSeriesShape(0, new java.awt.Rectangle(1, 1, 1, 1));\n xylineandshaperenderer.setSeriesLinesVisible(0, false);\n xylineandshaperenderer.setSeriesShapesVisible(0, true);\n xylineandshaperenderer.setSeriesLinesVisible(1, false);\n xylineandshaperenderer.setSeriesShapesVisible(1, false);\n\n// ChartFrame frame = new ChartFrame(\"First\", chart);\n// frame.pack();\n// frame.setVisible(true);\n\n\n jCheckBox1.setEnabled(true);\n jCheckBox1.setSelected(true);\n\n jCheckBox2.setEnabled(true);\n jCheckBox2.setSelected(false);\n\n jSlider1.setEnabled(true);\n jSlider2.setEnabled(true);\n\n jTextField9.setText(clip.getFileName());\n\n chartPanel = new ChartPanel(chart);\n }",
"private CreateScanRetentionTimeQCPlotData(){}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"public DRInitialPlotPanel() {\n initComponents();\n }",
"public void init() {\n\t\t// Read the data text file and load up the local database\n\t\tinitData();\n\n\t\t// Create the labels and the textbox\n\t\taddNameLabel();\n\t\taddNameBox();\n\t\taddGraphButton();\n\t\taddClearButton();\n\n\t\t// Set up the graph object\n\t\tgraph = new NameSurferGraph();\n\t\tadd(graph);\n\n\t}",
"public CrlSeries()\n {\n super();\n }",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"public SimpleDataPointImpl(DataSet dataSet){\n\t\tvalues = new HashMap<String, Double>();\n\t\tmDataSet = dataSet;\n\t}",
"void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}",
"public void initGSR()\n {\n LineData gsrData;\n Legend legend;\n XAxis x;\n YAxis y1, y2;\n\n //Retrieve gsrChart from the XML layout\n gsrChart = (LineChart) findViewById(R.id.gsrChart);\n\n //Label the chart\n gsrChart.setDescription(\"\");\n gsrChart.setNoDataTextDescription(\"No data at the moment\");\n\n //Enable/disable custom features\n gsrChart.setHighlightPerTapEnabled(true);\n gsrChart.setTouchEnabled(true);\n gsrChart.setDragEnabled(true);\n gsrChart.setAutoScaleMinMaxEnabled(false);\n gsrChart.setDrawGridBackground(true);\n gsrChart.setPinchZoom(true);\n\n //Assign a data set to gsrChart\n gsrData = new LineData();\n gsrChart.setData(gsrData);\n\n //Remove legend\n gsrChart.getLegend().setEnabled(false);\n\n //Get and initialize the Axes\n x = gsrChart.getXAxis();\n x.setPosition(XAxis.XAxisPosition.BOTTOM);\n y1 = gsrChart.getAxisLeft();\n y2 = gsrChart.getAxisRight();\n\n x.setDrawGridLines(true);\n y1.setDrawGridLines(true);\n y1.setStartAtZero(false);\n y2.setEnabled(false);\n }",
"private void addOrReplaceDataSeries() {\n int chartMode;\n try {\n m_pLock.lock();\n chartMode = mChartMode;\n } finally {\n m_pLock.unlock();\n }\n\n if (m_pLineChart.getData().size() > 0) {\n m_pLineChart.getData().clear();\n }\n\n switch (chartMode) {\n case CHART_MODE_2_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_2SEC);\n m_pLineChart.getData().add(m_pDataSeries2_2SEC);\n m_pLineChart.getData().add(m_pDataSeries3_2SEC);\n break;\n case CHART_MODE_10_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_10SEC);\n m_pLineChart.getData().add(m_pDataSeries2_10SEC);\n m_pLineChart.getData().add(m_pDataSeries3_10SEC);\n break;\n case CHART_MODE_30_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_30SEC);\n m_pLineChart.getData().add(m_pDataSeries2_30SEC);\n m_pLineChart.getData().add(m_pDataSeries3_30SEC);\n break;\n case CHART_MODE_5_MINUTES:\n m_pLineChart.getData().add(m_pDataSeries1_5MIN);\n m_pLineChart.getData().add(m_pDataSeries2_5MIN);\n m_pLineChart.getData().add(m_pDataSeries3_5MIN);\n break;\n default:\n break;\n }\n\n m_pXAxis.setDisable(true);\n int chartRange;\n int tickUnit;\n ObservableList<XYChart.Data<Number, Number>> observableList1, observableList2, observableList3;\n switch (mChartMode) {\n case CHART_MODE_2_SECONDS:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n tickUnit = X_AXIS_TICK_2_SECOND_MODE;\n break;\n case CHART_MODE_10_SECONDS:\n observableList1 = m_pDataSerieObservableList1_10SEC;\n observableList2 = m_pDataSerieObservableList2_10SEC;\n observableList3 = m_pDataSerieObservableList3_10SEC;\n chartRange = X_AXIS_RANGE_10_SECOND_MODE;\n tickUnit = X_AXIS_TICK_10_SECOND_MODE;\n break;\n case CHART_MODE_30_SECONDS:\n observableList1 = m_pDataSerieObservableList1_30SEC;\n observableList2 = m_pDataSerieObservableList2_30SEC;\n observableList3 = m_pDataSerieObservableList3_30SEC;\n chartRange = X_AXIS_RANGE_30_SECOND_MODE;\n tickUnit = X_AXIS_TICK_30_SECOND_MODE;\n break;\n case CHART_MODE_5_MINUTES:\n observableList1 = m_pDataSerieObservableList1_5MIN;\n observableList2 = m_pDataSerieObservableList2_5MIN;\n observableList3 = m_pDataSerieObservableList3_5MIN;\n chartRange = X_AXIS_RANGE_5_MINUTE_MODE;\n tickUnit = X_AXIS_TICK_5_MINUTE_MODE;\n break;\n default:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n tickUnit = X_AXIS_TICK_2_SECOND_MODE;\n break;\n }\n\n if (observableList1.isEmpty() == false && observableList2.isEmpty() == false && observableList3.isEmpty() == false) {\n double maxValue = Math.max(Math.max(observableList1.get(observableList1.size() - 1).getXValue().doubleValue(),\n observableList2.get(observableList1.size() - 1).getXValue().doubleValue()),\n observableList3.get(observableList1.size() - 1).getXValue().doubleValue());\n double newLowerBound = maxValue - chartRange;\n double newUpperBound = maxValue;\n m_pXAxis.setLowerBound(newLowerBound);\n m_pXAxis.setUpperBound(newUpperBound);\n m_pXAxis.setTickUnit(tickUnit);\n m_pXAxis.setDisable(false);\n }\n \n // Update if there is some data series which is not to be plotted\n boolean toPlotDataSeries1 = mToPlotDataSeries1;\n boolean toPlotDataSeries2 = mToPlotDataSeries2;\n boolean toPlotDataSeries3 = mToPlotDataSeries3;\n mToPlotDataSeries1 = true;\n mToPlotDataSeries2 = true;\n mToPlotDataSeries3 = true; \n switchDataSeriesStatus(1, toPlotDataSeries1);\n switchDataSeriesStatus(2, toPlotDataSeries2);\n switchDataSeriesStatus(3, toPlotDataSeries3);\n \n\n }",
"public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n\t\tlogger.trace(\"JsonDataset() - end\");\r\n\t}",
"public static void graph(){\n\t\t double[][] valuepairs = new double[2][];\n\t\t valuepairs[0] = mutTotal; //x values\n\t\t valuepairs[1] = frequency; //y values\n\t\t DefaultXYDataset set = new DefaultXYDataset();\n\t\t set.addSeries(\"Occurances\",valuepairs); \n\t\t XYBarDataset barset = new XYBarDataset(set, .8);\n\t\t JFreeChart chart = ChartFactory.createXYBarChart(\n\t\t \"Mutation Analysis\",\"Number of Mutations\",false,\"Frequency\",\n\t\t barset,PlotOrientation.VERTICAL,true, true, false);\n\t\t JFrame frame = new JFrame(\"Mutation Analysis\");\n\t\t frame.setContentPane(new ChartPanel(chart));\n\t\t frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t frame.pack();\n\t\t frame.setVisible(true);\n\t\t }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public DateAxis() { this(null); }",
"private void createChart() {\n LineChart lineChart = (LineChart) findViewById(R.id.line_chart);\n\n // LineChart DataSet\n ArrayList<LineDataSet> dataSets = new ArrayList<>();\n\n // x-coordinate format value\n XAxis xAxis = lineChart.getXAxis();\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxis.setGranularity(1f); // only intervals of 1 day\n// xAxis.setValueFormatter(new DayAxisValueFormatter(lineChart));\n\n\n // x-coordinate value\n ArrayList<String> xValues = new ArrayList<>();\n xValues.add(\"No.1\");\n xValues.add(\"No.2\");\n xValues.add(\"No.3\");\n xValues.add(\"No.4\");\n xValues.add(\"No.5\");\n\n // value\n ArrayList<Entry> value = new ArrayList<>();\n String measureItemName = \"\";\n value.add(new Entry(100, 0));\n value.add(new Entry(120, 1));\n value.add(new Entry(150, 2));\n value.add(new Entry(250, 3));\n value.add(new Entry(500, 4));\n\n\n // add value to LineChart's DataSet\n LineDataSet valueDataSet = new LineDataSet(value, measureItemName);\n dataSets.add(valueDataSet);\n\n // set LineChart's DataSet to LineChart\n// lineChart.setData(new LineData(xValues, dataSets));\n lineChart.setData(new LineData(valueDataSet));\n }",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"protected void init() {\n /* 66 */\n super.init();\n /* */\n /* 68 */\n this.mChartTouchListener = new PieRadarChartTouchListener(this);\n /* */\n }",
"private DefaultPieDataset getChartDataset() {\n if (this.pieDataset == null) {\n pieDataset = new DefaultPieDataset();\n List<String> model = this.handler.getSchema();\n model.stream().forEach((key) -> {\n pieDataset.setValue(key, 0d);\n });\n }\n return pieDataset;\n }",
"void updateGraph(TimeSlot[] dataList) {\n \tXYChart.Series<String, Number> series = new XYChart.Series<String, Number>();\n \tfor(int i=0; i<dataList.length; i++) {\n \t\tTimeSlot t = dataList[i];\n \t\tseries.getData().add(new XYChart.Data<String, Number>(TimeSlot.getTime(i), t.getDifference()));\n \t}\n \tgraph.getData().add(series);\n }",
"private Object createDataset(final ChartConfiguration config) {\n final CategoryChart chart = (CategoryChart) config.chart;\n for (final Fields key: config.fields) {\n chart.addSeries(key.getLocalizedName(), new double[1], new double[1]);\n }\n populateDataset(config);\n return null;\n }",
"Series<double[]> makeSeries(int dimension);",
"@Override\n\tpublic void init() {\n\t\tGraph<Number,Number> ig = Graphs.<Number,Number>synchronizedDirectedGraph(new DirectedSparseMultigraph<Number,Number>());\n\t\tObservableGraph<Number,Number> og = new ObservableGraph<Number,Number>(ig);\n\t\tog.addGraphEventListener(new GraphEventListener<Number,Number>() {\n\n\t\t\tpublic void handleGraphEvent(GraphEvent<Number, Number> evt) {\n\t\t\t\tSystem.err.println(\"got \"+evt);\n\n\t\t\t}});\n\t\tthis.g = og;\n\n\t\tthis.timer = new Timer();\n\t\tthis.layout = new FRLayout2<Number,Number>(g);\n\t\t// ((FRLayout)layout).setMaxIterations(200);\n\t\t// create a simple pickable layout\n\t\tthis.vv = new VisualizationViewer<Number,Number>(layout, new Dimension(600,600));\n\n\n\n\t}",
"public BasicOrderedSeries()\n\t{\n\t\tsuper();\n\t}",
"public XYSeries(String name) {\n\t\tthis.name = name;\n\t\tpointList = new ArrayList<Point2D>(1024);\n\t}"
] | [
"0.72230464",
"0.7175999",
"0.7040797",
"0.6798261",
"0.679571",
"0.6709959",
"0.6668259",
"0.66665405",
"0.66435903",
"0.66374564",
"0.6589631",
"0.6575421",
"0.65593827",
"0.65100956",
"0.65099084",
"0.65065485",
"0.6505429",
"0.646925",
"0.6469246",
"0.64604294",
"0.6403209",
"0.63892955",
"0.6378444",
"0.6358396",
"0.63491714",
"0.62894136",
"0.6277214",
"0.62704843",
"0.62624824",
"0.626154",
"0.62606966",
"0.62536985",
"0.6241497",
"0.6227181",
"0.6194688",
"0.61625445",
"0.61625445",
"0.61554396",
"0.61525214",
"0.6145031",
"0.6137611",
"0.612684",
"0.61217326",
"0.6115403",
"0.610483",
"0.6091026",
"0.60607",
"0.60596204",
"0.6057316",
"0.60565066",
"0.6052915",
"0.6052915",
"0.6052915",
"0.60337466",
"0.6024985",
"0.60222447",
"0.60048467",
"0.5997373",
"0.59911823",
"0.5989345",
"0.59750295",
"0.5968517",
"0.5948901",
"0.5948901",
"0.5948901",
"0.5948901",
"0.5948901",
"0.5948901",
"0.59352005",
"0.59232813",
"0.5919666",
"0.591341",
"0.59099525",
"0.59096044",
"0.59002954",
"0.58985114",
"0.58985114",
"0.5897368",
"0.58959615",
"0.5880025",
"0.58724",
"0.58724",
"0.5867905",
"0.5864087",
"0.58632344",
"0.58481085",
"0.5847472",
"0.58465517",
"0.58375484",
"0.58362556",
"0.58292997",
"0.58242095",
"0.58218217",
"0.582109",
"0.5819525",
"0.5816534",
"0.5811287",
"0.5800311",
"0.5793356",
"0.5774468"
] | 0.6552683 | 13 |
/ Setter on name attribute | public void setName(String name)
{
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String n){ name=n; }",
"protected void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String value) {\n this.name = value;\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name){\n this.name = name;\n }",
"public final void setName(String name) {_name = name;}",
"public void setName(String inName)\n {\n name = inName;\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String inName)\n {\n\tname = inName;\n }",
"public void setName(String name){this.name = name;}",
"void setName(String name_);",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name){this.name=name;}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"public void setName(String name) {\n this.name = name;\n }",
"private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"protected void setName(String name) {\n this._name = name;\n }",
"public void setName(String name) {\n fName= name;\n }",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"protected void setName(String name) {\n this.name = name;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name)\r\n\t{\t\t\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}",
"public void changeAttrName() {\r\n }",
"public void setName (String n){\n\t\tname = n;\n\t}",
"public void setName(String name)\n {\n _name = name;\n }",
"public void setName(java.lang.String value) {\n this.name = value;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}",
"public void setName(String value) {\n\t\tname = value;\n\t}",
"public void setName(final String pName){this.aName = pName;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"void setName(String name) {\r\n this.name = name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name)\r\n {\r\n\tthis.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName(String newname){\n name = newname; \n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String val) {\n this.name = val;\n }",
"public void setName(java.lang.String value);",
"public void setName(java.lang.String value);",
"public void setName(String nameIn) {\n name = nameIn;\n }",
"public void setName(String name) {\r\n\t\tthis.name=name;\r\n\t}",
"public void setName(String new_name){\n this.name=new_name;\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}",
"public void setName(String n) {\r\n name = n;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }"
] | [
"0.80643994",
"0.7979264",
"0.79454523",
"0.7938236",
"0.7938236",
"0.7938236",
"0.7938236",
"0.79302317",
"0.7923957",
"0.7883234",
"0.7873888",
"0.7873888",
"0.7873888",
"0.78666925",
"0.7856051",
"0.7840672",
"0.78378856",
"0.78378856",
"0.78378856",
"0.7829627",
"0.7829627",
"0.7825377",
"0.7820977",
"0.7816433",
"0.78108716",
"0.7808719",
"0.7804217",
"0.7804217",
"0.7804217",
"0.7801981",
"0.77972955",
"0.77835524",
"0.77835524",
"0.77835524",
"0.77809525",
"0.77809525",
"0.77809525",
"0.77809525",
"0.77809525",
"0.77809525",
"0.77809525",
"0.77766967",
"0.7769838",
"0.7760558",
"0.7760558",
"0.7760558",
"0.7758505",
"0.7757807",
"0.7757304",
"0.77562684",
"0.77552664",
"0.7751985",
"0.77515626",
"0.77515626",
"0.77511674",
"0.77509165",
"0.7747776",
"0.77423465",
"0.77384037",
"0.7737681",
"0.7735973",
"0.7734561",
"0.7734561",
"0.7734561",
"0.7734561",
"0.77233684",
"0.7720262",
"0.77118856",
"0.77118856",
"0.77118856",
"0.7708577",
"0.77084816",
"0.77084816",
"0.7705981",
"0.77034587",
"0.77024555",
"0.770234",
"0.7702339",
"0.7702339",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.7694437",
"0.76937896",
"0.76918095",
"0.769017"
] | 0.0 | -1 |
/ Setter on unit attribute. | public void setUnit(String unit)
{
this.unit = unit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUnit(String unit);",
"public void setUnit (String value) {\n\tthis.unit = value;\n }",
"public void setUnit(Unit unit) {\r\n\t\tthis.unit = unit;\r\n\t}",
"public void setUnit(String unit) {\n this.unit = unit;\n }",
"public void setUnit(Length units) {\n unit = units;\n }",
"public void setUnit(String unit) {\n\t\tthis.unit = unit;\n\t}",
"@Accessor(qualifier = \"Unit\", type = Accessor.Type.SETTER)\n\tpublic void setUnit(final B2BUnitModel value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(UNIT, value);\n\t}",
"public void setUnit(String unit) {\n this.unit = unit == null ? null : unit.trim();\n }",
"public void setUnit(String unit) {\n this.unit = unit == null ? null : unit.trim();\n }",
"@Updatable\n public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public Builder setUnit(final Unit value) {\n _unit = value;\n return this;\n }",
"public String getUnit() {\n\t\treturn unit;\n\t}",
"public void setUnit(java.lang.String value) {\n\t\tsetValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT, value);\n\t}",
"public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}",
"public String getUnit () {\n\treturn this.unit;\n }",
"public void setUnit(gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum unit)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNIT$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UNIT$6);\n }\n target.setEnumValue(unit);\n }\n }",
"public Length getUnit() {\n return unit;\n }",
"public String unit() {\n return this.unit;\n }",
"public String getUnit()\n {\n return (this.unit);\n }",
"public void setGaugeUnit(String unit) {\r\n gauge.setUnitString(unit);\r\n }",
"public String getUnit();",
"public void setUnitTable(Units value);",
"public void setUnitOfMeasure(String unitOfMeasure) {\r\n this.unitOfMeasure = unitOfMeasure;\r\n }",
"public void setUnits(int value) {\r\n this.units = value;\r\n }",
"public void setUnits(byte units) { this.units = units; }",
"String getUnit();",
"@Override\n\tpublic LSystemBuilder setUnitLength(double unitLength) {\n\t\tthis.unitLength = unitLength;\n\t\treturn this;\n\t}",
"public void setUnitOfMeasurement(String unitOfMeasurement) {\r\n\t\tthis.unitOfMeasurement = unitOfMeasurement;\r\n\t}",
"public Unit getUnit() {\n\t\treturn unit;\n\t}",
"public void setUnits(String units) {\n this.units = units;\n }",
"public void setUnits(String units) {\n this.units = units;\n }",
"public Unit getUnit() {\n return unit;\n }",
"Unit(String unitIn, UnitType utIn) {\n\t\tthis(new Apfloat(unitIn, APFLOATPRECISION), utIn, 1);\n\t}",
"public void xsetUnit(gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType unit)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType)get_store().find_element_user(UNIT$6, 0);\n if (target == null)\n {\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType)get_store().add_element_user(UNIT$6);\n }\n target.set(unit);\n }\n }",
"Unit(Apfloat unitIn, UnitType utIn) {\n\t\tthis(unitIn, utIn, 1);\n\t}",
"public void changeUnitForUnitDurationTo(String u) {\n\t\tm_unitForUnitDuration = u;\n\t}",
"Unit(Apfloat unitIn, UnitType utIn, int expIn) {\n\t\tunitValue = unitIn;\n\t\tunitType = utIn;\n\t\texponent = expIn;\n\t}",
"Unit getUnit();",
"public String getUnits() {\n return units;\n }",
"public void setUnit(Unit u)\r\n {\r\n display.setUnit(u);\r\n selectedIndex = -1;\r\n }",
"public void setUnitsString(String units) {\n if (units != null) {\n units = units.trim();\n }\n this.units = units;\n forVar.addAttribute(new Attribute(CDM.UNITS, units));\n }",
"public void setUnitnm(String unitnm) {\r\n this.unitnm = unitnm;\r\n }",
"public String getUnits() {\n return units;\n }",
"public String getUnits() {\r\n\t\treturn units;\r\n\t}",
"@javax.persistence.Column(name = \"unit\", precision = 5)\n\tpublic java.lang.String getUnit() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);\n\t}",
"public byte getUnits() { return units; }",
"public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}",
"public void setUnitName (String unitName) {\n this.unitName = unitName;\n }",
"DefinedUnitType getDefinedUnit();",
"public abstract double toBasicUnit(double unit);",
"public void setUnit(Unit newUnit){\r\n tacUnit = newUnit;\r\n }",
"void setUnits(int units) {\n\t\tunitsList.clear();\n\t\tcreateUnit(units);\n\t\tthis.units = units;\n\t}",
"public void setUnitName(String unitName) {\n this.unitName = unitName;\n }",
"public void setUnitName(String unitName) {\n this.unitName = unitName;\n }",
"public void setUnitID(int num) {\n m_UnitID = num;\n // setChanged(true);\n }",
"ReadOnlyStringProperty unitsProperty();",
"public String getUnits() {\n\t\treturn units;\n\t}",
"public String getUnitnm() {\r\n return unitnm;\r\n }",
"public void setDurationUnit(String DurationUnit) {\n\t\tif (DurationUnit != null && DurationUnit.length() > 20) {\n\t\t\tlog.warning(\"Length > 20 - truncated\");\n\t\t\tDurationUnit = DurationUnit.substring(0, 19);\n\t\t}\n\t\tset_Value(\"DurationUnit\", DurationUnit);\n\t}",
"public Unit giveMeUnit(UnitDef unitDef, AIFloat3 pos);",
"public String getUnits() {\n return this.units;\n }",
"public String getToUnit() {\r\n return this.toUnit;\r\n }",
"protected String getUnits()\n {\n return units;\n }",
"TimeUnit getUnit();",
"public void setUnits(java.lang.String param) {\r\n localUnitsTracker = param != null;\r\n\r\n this.localUnits = param;\r\n }",
"public int getUnits() {\r\n return units;\r\n }",
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"public String getUnitOfMeasurement() {\r\n\t\treturn unitOfMeasurement;\r\n\t}",
"@Accessor(qualifier = \"Unit\", type = Accessor.Type.GETTER)\n\tpublic B2BUnitModel getUnit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(UNIT);\n\t}",
"public String getUnit() {\n\t\treturn(symbol);\n\t}",
"public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }",
"public abstract BaseQuantityDt setUnits(String theString);",
"ChronoUnit getUnit();",
"public void setUnit (String text) throws ParseException {\n\t\tthis.set(text);\n\t\tthis.setUnit();\n\t}",
"@Override\n\tpublic void setUnitsString(String units) {\n\t\t\n\t}",
"public void setUnit (jkt.hms.masters.business.MasStoreAirForceDepot unit) {\n\t\tthis.unit = unit;\n\t}",
"Unit(double baseUnitConversion) {\n this.baseUnitConversion = baseUnitConversion;\n }",
"public String getUnitName() {\r\n return unitName;\r\n }",
"DefiningUnitType getDefiningUnit();",
"public String getUnitName () {\n return unitName;\n }",
"public String getUnitName() {\n return unitName;\n }",
"public String getUnitName() {\n return unitName;\n }",
"public String getUnitsString() {\n return units;\n }",
"public void setUnit_id(int unit_id) {\r\n\t\tthis.unitId = unit_id;\r\n\t}",
"public int getUnits() {\n\t\treturn units;\n\t}",
"public String getDurationUnit() {\n\t\treturn (String) get_Value(\"DurationUnit\");\n\t}",
"Unit() {\n\t\tthis(new Apfloat(\"0.0\", APFLOATPRECISION), SCALAR, 1);\n\t}",
"public void setUnitcd(String unitcd) {\r\n this.unitcd = unitcd;\r\n }",
"public void setUnitId(Integer unitId) {\n this.unitId = unitId;\n }",
"public void setUnitId(Integer unitId) {\n this.unitId = unitId;\n }",
"public void setMass_unit(byte mass_unit) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeByte(__io__address + 9, mass_unit);\n\t\t} else {\n\t\t\t__io__block.writeByte(__io__address + 9, mass_unit);\n\t\t}\n\t}",
"public static void setDefaultUnit(Unit unit) {\r\n setDefaultUnit(AngularMeasurement.class, unit);\r\n }",
"public abstract String getUnit();",
"String getUnits();",
"String getUnits();",
"String getUnits();",
"public void setDataUnit(String dataUnit) {\n this.dataUnit = dataUnit == null ? null : dataUnit.trim();\n }"
] | [
"0.8585824",
"0.8284309",
"0.82424027",
"0.8109908",
"0.8102386",
"0.7883302",
"0.7655712",
"0.76496017",
"0.76496017",
"0.76037014",
"0.7540405",
"0.7540405",
"0.7540405",
"0.7497226",
"0.74919933",
"0.7440616",
"0.73975605",
"0.7385471",
"0.7348462",
"0.7327945",
"0.72800934",
"0.72671235",
"0.7147522",
"0.712731",
"0.7107996",
"0.7041197",
"0.69959354",
"0.6986201",
"0.697822",
"0.695869",
"0.69508666",
"0.6936889",
"0.6932844",
"0.6932844",
"0.6931741",
"0.688366",
"0.6874214",
"0.6857656",
"0.6852515",
"0.68478066",
"0.6740501",
"0.67360455",
"0.6732533",
"0.6729298",
"0.67241937",
"0.6723874",
"0.671731",
"0.6713332",
"0.67061746",
"0.66918224",
"0.6687701",
"0.66803455",
"0.66651374",
"0.666416",
"0.66521704",
"0.6649284",
"0.6649284",
"0.66489977",
"0.66425455",
"0.6631864",
"0.6623175",
"0.6623063",
"0.6618626",
"0.65976447",
"0.65969247",
"0.65916574",
"0.6586272",
"0.6583591",
"0.65792376",
"0.65782785",
"0.65744156",
"0.6570741",
"0.6553623",
"0.6542415",
"0.6531823",
"0.6485459",
"0.6484706",
"0.6483816",
"0.6483723",
"0.64804435",
"0.646591",
"0.6461348",
"0.64582974",
"0.6449124",
"0.6449124",
"0.64478445",
"0.6436984",
"0.643392",
"0.6406592",
"0.6399899",
"0.6378741",
"0.6378344",
"0.6378344",
"0.6375218",
"0.63536364",
"0.6349642",
"0.63417256",
"0.63417256",
"0.63417256",
"0.6337708"
] | 0.8177569 | 3 |
/ setter on axis attribute. | public void setAxis(String axis)
{
this.axis = axis;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DraggableBehavior setAxis(AxisEnum axis)\n\t{\n\t\tthis.options.putLiteral(\"axis\", axis.toString().toLowerCase());\n\t\treturn this;\n\t}",
"public void setValueFromAxis(AxisModel axis, Object value) {\n }",
"public void setAxisProperties(Axis axis) {\n/* 413 */ super.setAxisProperties(axis);\n/* 414 */ ValueAxis valueAxis = (ValueAxis)axis;\n/* 415 */ valueAxis.setAutoRange(this.autoRange);\n/* 416 */ if (!this.autoRange) {\n/* 417 */ valueAxis.setRange(this.minimumValue, this.maximumValue);\n/* */ }\n/* 419 */ valueAxis.setAutoTickUnitSelection(this.autoTickUnitSelection);\n/* */ }",
"default void set(Vector3DReadOnly axis, double angle)\n {\n getAxis().set(axis);\n setAngle(angle);\n }",
"default void setX(double x)\n {\n getAxis().setX(x);\n }",
"public abstract void setDataToElementXY();",
"public void setAxis(String name,String frame,float x,float y, float z){\r\n\t\tthis.addChild(new DirectionVector(name,frame,x,y,z));\r\n\t}",
"public void setAxisArray(int i, net.opengis.gml.x32.CoordinateSystemAxisPropertyType axis)\n {\n synchronized (monitor())\n {\n check_orphaned();\n net.opengis.gml.x32.CoordinateSystemAxisPropertyType target = null;\n target = (net.opengis.gml.x32.CoordinateSystemAxisPropertyType)get_store().find_element_user(AXIS$1, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(axis);\n }\n }",
"void setAxisLength(CalibratedAxis axis, long length);",
"void addAxis(final CalibratedAxis axis, final long value);",
"Neuron setAxon(double newValue);",
"@Override\n\tpublic void setAttribute(String name, Object value) {\n super.setAttribute(name, value);\n Enumeration<Figure> k = figures();\n while (k.hasMoreElements())\n k.nextElement().setAttribute(name, value);\n }",
"@Test\r\n public void testSetYAxis() {\r\n System.out.println(\"SetYAxis\");\r\n String yAxis = \"\";\r\n Graph instance = new Graph();\r\n instance.SetYAxis(yAxis);\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 setBB(AxisAlignedBB axis) {\n\t\tthis.minX = axis.minX;\n\t\tthis.minY = axis.minY;\n\t\tthis.minZ = axis.minZ;\n\t\tthis.maxX = axis.maxX;\n\t\tthis.maxY = axis.maxY;\n\t\tthis.maxZ = axis.maxZ;\n\t}",
"protected void setAx(double ax) {\n\t\tif (isValidAx(ax))\n\t\t\tthis.ax = ax;\t\t\n\t\telse \n\t\t\tthis.ax = 0;\t\t\n\t}",
"public void setAxisOperation(org.apache.axis2.description.xsd.AxisOperation param){\n localAxisOperationTracker = true;\n \n this.localAxisOperation=param;\n \n\n }",
"@Override\n protected void onPropertyChanged(RadPropertyEventArgs e) {\n if (e.getKey() == FIRST_AXIS_PROPERTY_KEY) {\n //this.firstAxis = (AxisModel) e.newValue();\n\n this.onFirstAxisChanged();\n } else if (e.getKey() == SECOND_AXIS_PROPERTY_KEY) {\n //this.secondAxis = (AxisModel) e.newValue();\n\n this.onSecondAxisChanged();\n }\n\n super.onPropertyChanged(e);\n }",
"public void setAxisBinding(String axisBinding) {\n this.axisBinding = axisBinding;\n }",
"public void setX(int x) { this.x=x; }",
"public void setX(Double x);",
"default void setY(double y)\n {\n getAxis().setY(y);\n }",
"public void setXY(double anX, double aY) { setX(anX); setY(aY); }",
"public void c(Axis<?, ?> axis) {\n ArrayList arrayList = new ArrayList();\n a(arrayList, axis);\n this.a = new Axis[0];\n this.a = (Axis[]) arrayList.toArray(this.a);\n }",
"public void setAutoRange() {\n this.customAxis=false;\n addGraphPanel();\n }",
"public void setY(Double y);",
"public void Mirror(String axis)\n\t{\n\t\tif (axis.equals(\"x\"))\n\t\t{\n\t\t\tthis.x = -this.x;\n\t\t}\n\t\telse if (axis.equals(\"y\"))\n\t\t{\n\t\t\tthis.y = -this.y;\n\t\t}\n\t\telse if (axis.equals(\"y=-x\"))\n\t\t{\n\t\t\tint tempx = y;\n\t\t\tthis.x = -this.y;\n\t\t\tthis.y = -tempx;\n\t\t}\n\n\t}",
"public void setAAxis(String frame,float x,float y, float z){\r\n\t\tsetAxis(\"axisA\",frame,x,y,z);\r\n\t}",
"public void setY(int y) { this.y=y; }",
"public Vector(float[] axis){ this.axis = axis;}",
"void setX(double x){\r\n\t\tthis.x=x;\r\n\t}",
"@Test\r\n public void testSetXAxis() {\r\n System.out.println(\"SetXAxis\");\r\n String xAxis = \"\";\r\n Graph instance = new Graph();\r\n instance.SetXAxis(xAxis);\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 }",
"@Override\n\tpublic void setX(int x) {\n\t\t\n\t}",
"public void setX(int x){ xPosition = x; }",
"public void setAxes(int xPos, int yPos, int axisLength, String xLabel, String yLabel)\n {\n this.xPos= xPos;\n this.yPos= yPos;\n this.xLabel= xLabel;\n this.yLabel= yLabel;\n this.axisLength=axisLength;\n }",
"public void enableAxis(int axis) {\n mXEnabled = mYEnabled = mZEnabled = false;\n\n switch(axis)\n {\n case SensorManager.AXIS_X:\n mXEnabled = true;\n break;\n case SensorManager.AXIS_Y:\n mYEnabled = true;\n break;\n case SensorManager.AXIS_Z:\n mZEnabled = true;\n break;\n case RVCVRecordActivity.AXIS_ALL:\n mXEnabled = mYEnabled = mZEnabled = true;\n }\n }",
"public void setX(double value) {\n origin.setX(value);\n }",
"public void a(Axis<?, ?> axis) {\n ArrayList arrayList = new ArrayList();\n arrayList.add(axis);\n a(arrayList, axis);\n this.a = new Axis[0];\n this.a = (Axis[]) arrayList.toArray(this.a);\n }",
"public void setDimX (int value)\n {\n m_dim_x = value;\n }",
"public void setFrameX(double anX) { double x = _x + anX - getFrameX(); setX(x); }",
"public void setX(int x);",
"@Override\n public void setX(int x) {\n this.x=x;\n }",
"void axisStateChanged() {\n\t\teventHub.notifyEvent(EventHub.EventType.AXIS);\n\t}",
"public int getX()\n {\n return xaxis;\n }",
"public void setAxisColor(Color axisColor) {\r\n if (axisColor == null) {\r\n throw new IllegalArgumentException(\"Color cannot be null.\");\r\n }\r\n \r\n Color old = getAxisColor();\r\n this.axisColor = axisColor;\r\n firePropertyChange(\"axisColor\", old, getAxisColor());\r\n }",
"@Override\n\tpublic void setX(int x) {\n\n\t}",
"public void setX(double value) {\n this.x = value;\n }",
"@Override\n UnitVector3DBasics getAxis();",
"public void setAxisValue(InputAxis axis, float value) {\n axisValues.put(axis, value);\n }",
"void setDimension(Dimension dim);",
"@Override\n public void setY(int y) {\n this.y=y;\n }",
"public void toggleAxes() {\r\n\t\tisAxes = !isAxes;\r\n\t}",
"public void setDimY (int value)\n {\n m_dim_y = value;\n }",
"void setSize(int axis, int origin, int size) {\n this.size = size;\n if (size == UNSET) {\n unset();\n }\n }",
"public Color getAxisColor() {\r\n return axisColor;\r\n }",
"@Override\r\n\tpublic void setX(float x) {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}",
"public void setX(double x){\n this.x = x;\n }",
"public void setX(double x){\n this.x = x;\n }",
"public void setAxisPainted(boolean axisPainted) {\r\n boolean old = isAxisPainted();\r\n this.axisPainted = axisPainted;\r\n firePropertyChange(\"axisPainted\", old, isAxisPainted());\r\n }",
"@Override\r\n\tpublic void setDimension() {\n\r\n\t}",
"@Override\r\n\tpublic void setDimension() {\n\r\n\t}",
"void setAxes(CalibratedAxis... axes);",
"public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;",
"public void setMajorAxis(OrientationAxis axis)\n {\n MajorAxis = axis;\n FirstCall = true;\n }",
"public void setScaleY(double aValue)\n{\n if(aValue==getScaleY()) return;\n repaint();\n firePropertyChange(\"ScaleY\", getRSS().scaleY, getRSS().scaleY = aValue, -1);\n}",
"public void setFirstAxis(AxisModel value) {\n this.setValue(FIRST_AXIS_PROPERTY_KEY, value);\n }",
"public void setFrameXY(double anX, double aY) { setFrameX(anX); setFrameY(aY); }",
"public void set(double x, double y) {\n \n _x = x;\n _y = y;\n \n }",
"@Override\n\tpublic void setX(float x) {\n\n\t}",
"public ChartXAxis getXAxis() { return _xaxis; }",
"public void setAxisArray(net.opengis.gml.x32.CoordinateSystemAxisPropertyType[] axisArray)\n {\n check_orphaned();\n arraySetterHelper(axisArray, AXIS$0, AXIS$1);\n }",
"void setY(double y){\r\n\t\tthis.y=y;\r\n\t}",
"T setValueAxes(List<ValueAxis> valueAxes);",
"public void setX(double x) {\n this.x = x;\r\n }",
"void setX(int newX) {\n this.xPos = newX;\n }",
"public void setXValue( int iTimeStep ){\r\n\t\tsuper.setXValue( new Integer(iTimeStep) );\r\n\t}",
"@Override\r\n\tpublic void setY(float y) {\n\t\t\r\n\t}",
"public void setCAxis(String frame,float x,float y, float z){\r\n\t\tsetAxis(\"axisC\",frame,x,y,z);\r\n\t}",
"public void setX(double value) {\n\t\tthis.x = value;\n\t}",
"public void setX(double newX) {\r\n x = newX;\r\n }",
"public void setX(double val) {\r\n\t\t this.xCoord = val;\r\n\t }",
"private void setXscale() {\n\t}",
"public void setScaleX(double aValue)\n{\n if(aValue==getScaleX()) return;\n repaint();\n firePropertyChange(\"ScaleX\", getRSS().scaleX, getRSS().scaleX = aValue, -1);\n}",
"public void b(Axis<?, ?> axis) {\n ArrayList arrayList = new ArrayList();\n a(arrayList, axis);\n arrayList.add(axis);\n this.a = new Axis[0];\n this.a = (Axis[]) arrayList.toArray(this.a);\n }",
"public void addAxisModel() {\n\t\taddAxisModel(analysisModel.getGraphModel().newGraphData());\n\t}",
"@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}",
"public void setAxProperty(int dispatchPointer,\n int memid, Variant newValue) \n throws ActiveXException\n { \n Vector v = new Vector();\n v.addElement(newValue);\n axInvoke(dispatchPointer,memid,ActiveXDispatchable.AX_PROPERTYSET,true,v);\n }",
"public void setX(double x)\n {\n this.x = x;\n }",
"public abstract AxisInfo getAxis( int dimension );",
"public void set(float newX, float newY) {\r\n\t\tx = newX;\r\n\t\ty = newY;\r\n\t}",
"public void setX1()\n\t{\n\t\tthis.x[1] = this.x[0] - (this.length)/2;\n\t}",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"void setX(float x) {\n _x = x;\n }",
"public void set(float x0) {\n\t\tgrow(1);\n\t\tdata[length++] = x0;\n\t}",
"void setCustomDimension1(String customDimension1);",
"public void setX(int x)\r\n {\r\n this.x = x;\r\n }",
"@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }"
] | [
"0.69665897",
"0.6784117",
"0.6719429",
"0.6286547",
"0.6242084",
"0.62272763",
"0.62155336",
"0.6111286",
"0.6106343",
"0.60841733",
"0.59669185",
"0.5929463",
"0.58845794",
"0.58567625",
"0.5855543",
"0.58023477",
"0.5774744",
"0.57243973",
"0.5721762",
"0.5720091",
"0.5695132",
"0.5693085",
"0.5688622",
"0.5688531",
"0.56830275",
"0.568092",
"0.5674469",
"0.56695706",
"0.56335914",
"0.56149787",
"0.5608046",
"0.558899",
"0.5570553",
"0.5565811",
"0.5559741",
"0.5557895",
"0.5556116",
"0.55559456",
"0.5555448",
"0.55432063",
"0.55421305",
"0.5539425",
"0.55301744",
"0.5529203",
"0.5523612",
"0.55075496",
"0.5505451",
"0.5499475",
"0.549509",
"0.5490385",
"0.54889345",
"0.54844147",
"0.5484008",
"0.548305",
"0.54726833",
"0.54660076",
"0.5462281",
"0.5462281",
"0.5452387",
"0.544304",
"0.544304",
"0.54329485",
"0.543156",
"0.542902",
"0.5425605",
"0.5421168",
"0.5420412",
"0.54173297",
"0.540144",
"0.54009813",
"0.53924865",
"0.5382019",
"0.53616947",
"0.5360163",
"0.53523964",
"0.5341714",
"0.53382796",
"0.5335045",
"0.5330158",
"0.53280526",
"0.53238004",
"0.53236455",
"0.53218466",
"0.532085",
"0.53176165",
"0.5315617",
"0.53147304",
"0.5312285",
"0.5306343",
"0.5303541",
"0.5293537",
"0.52749443",
"0.52749443",
"0.52749443",
"0.52749443",
"0.5272804",
"0.52698284",
"0.52639174",
"0.5263727",
"0.525522"
] | 0.7072493 | 0 |
/ method called to refresh the graph upon theme change. | public void refreshGraph()
{
graph.getViewport().setMinX(0);
graph.removeAllSeries();
for(CustomPair<String, CustomPair<Integer, Integer>> can:cans)
{
series.get(can.getKey()).resetData(new DataPoint[]{});
}
initGraph(graph);
graphViewEditText.setText("");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void refreshGraph() {\n\n // Get all the times\n double[] times = dataSet.getTimes();\n\n int numPointsToDraw = (times.length > GRAPH_MAX_POINTS)? GRAPH_MAX_POINTS: times.length;\n\n // Store new points\n DataPoint[] freshPoints = new DataPoint[numPointsToDraw];\n // String for title of graph\n final int titleString;\n // String for the y-axis of graph\n final int axisLabel;\n\n // Calculate which points to draw\n int firstPointDrawn = (times.length-GRAPH_MAX_POINTS>0)?\n times.length-GRAPH_MAX_POINTS:\n 0;\n\n // if the switch is to the right\n if(velAccelSwitch.isChecked()) {\n // Get all the accelerations\n double[] accels = dataSet.getAccelerations();\n // Add the relevant accelerations to the \"to be drawn\" array\n for (int i = 0; i < numPointsToDraw; i++) {\n freshPoints[i] = new DataPoint(\n // / If the setting tells it to be in hours, divide by 3600\n (setting.isInHours())?\n times[i+firstPointDrawn]/3600:\n times[i+firstPointDrawn], accels[i+firstPointDrawn]);\n }\n // Set the graph title\n titleString = R.string.at_graph_label;\n axisLabel = R.string.acceleration_axis_label;\n } else {\n // Get all the velocities\n double[] velocities = dataSet.getSpeeds();\n // Add the relevant velocities to the \"to be drawn\" array\n for (int i = 0; i < numPointsToDraw; i++) {\n freshPoints[i] = new DataPoint(\n // If the setting tells it to be in hours, divide by 3600\n (setting.isInHours())?\n times[i+firstPointDrawn]/3600:\n times[i+firstPointDrawn],\n // If the setting tells it to be in km/h, multiply by 3.6\n (setting.isInKMPerH())?\n velocities[i+firstPointDrawn]*3.6:\n velocities[i+firstPointDrawn]);\n }\n // Set the graph title\n titleString = R.string.vt_graph_label;\n axisLabel = (setting.isInKMPerH())?\n R.string.velocity_axis_label_kmh:\n R.string.velocity_axis_label_ms;\n }\n\n // swap out the old DataPoints with the new ones\n points.resetData(freshPoints);\n // if there is data, stretch graph to fit it\n if (times.length-1>0) {\n // If the setting is on hours, stretch graph axises accordingly\n graphView.getViewport().setMinX((times[times.length-1] - GRAPH_TIME_RANGE)\n /((setting.isInHours())?3600:1));\n graphView.getViewport().setMaxX(times[times.length-1]\n /((setting.isInHours())?3600:1));\n }\n\n // Update elements of the UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n DecimalFormat df = new DecimalFormat(\"#.00\");\n\n // Set graph title\n graphTitle.setText(titleString);\n // Set max velocity\n maxVelocityView.setText(getString(R.string.max_velocity) + \":\\t\\t\\t\\t\\t\\t\\t\\t\" +\n df.format(dataSet.getMaxSpeed()) + \" m/s\");\n // Set max acceleration\n maxAccelerationView.setText(getString(R.string.max_acceleration) + \":\\t\\t\\t\" +\n df.format(dataSet.getMaxAcceleration()) + \" m/s\" + '\\u00B2');\n // Set time elapsed\n timeElapsedView.setText(getString(R.string.time_elapsed) + \":\\t\\t\\t\\t\\t\\t\\t\\t\" +\n df.format(dataSet.getTimeElapsedSeconds()) + \" s\");\n yAxisView.setText(axisLabel);\n xAxisView.setText((setting.isInHours())?\n R.string.time_axis_label_h:\n R.string.time_axis_label_s);\n }\n });\n\n }",
"public void onThemeChanged()\n\t{\n\t}",
"public void setGraph(){\r\n setDisplay(currentGraph);\r\n }",
"@Override\n protected void update()\n {\n final double DENSITY = this.getResources().getDisplayMetrics().scaledDensity;\n final ArrayList<BarChart.SeriesInfo> SERIES = new ArrayList<>();\n\n final Thread LOAD_GRAPH = new Thread() {\n @Override\n public void run() {\n final StatsActivity SELF = StatsActivity.this;\n int idForLegendX = R.string.label_week;\n\n SELF.getSelections();\n\n if( SELF.graphType == GraphType.Yearly ) {\n idForLegendX = R.string.label_year;\n }\n else\n if( SELF.graphType == GraphType.Monthly ) {\n idForLegendX = R.string.label_month;\n }\n\n final String LEGEND_X = SELF.getString( idForLegendX );\n\n SELF.runOnUiThread( () -> {\n switch( SELF.graphType ) {\n case Yearly:\n SELF.calculateDataForYearsStats( SELF.selectedYear, SERIES );\n break;\n case Monthly:\n SELF.calculateDataForMonthsStats( SELF.selectedYear, SERIES );\n break;\n case Weekly:\n SELF.calculateDataForWeeksStats(\n SELF.selectedYear, SELF.selectedMonth, SERIES );\n break;\n default:\n Log.e( LOG_TAG, \"unsupported graph type\" );\n }\n\n final BarChart CHART = new BarChart( DENSITY, SERIES );\n\n CHART.setLegendX( LEGEND_X );\n CHART.setLegendY( settings.getDistanceUnits().toString() );\n CHART.setShowLabels( true );\n SELF.chartView.setScaleType( ImageView.ScaleType.MATRIX );\n SELF.chartView.setImageDrawable( CHART );\n });\n }\n };\n\n LOAD_GRAPH.start();\n }",
"@Override\n protected void refreshVisuals() {\n getFigure().updateLabels();\n }",
"public void onThemeChanged()\n\t{\n\t\tthemeChanged = true;\n\t}",
"public void update() {\n\t\tremoveAll();\n\t\tdrawGraph();\n\t\tplotEntries();\n\t}",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawBackGround();\r\n\t\tdrawGraph();\r\n\t}",
"public void refresh() {\r\n\r\n if (searchResultAdapter != null\r\n && preferencesManager.getProperty(\r\n PreferencesManager.IS_THEME_CHANGED, false)) {\r\n\r\n searchResultAdapter.notifyDataSetChanged();\r\n }\r\n\r\n }",
"protected void refreshVisuals() {\r\n\t\trefreshBendpoints();\r\n\t\tif (getEdge().getValue())\r\n\t\t\tgetEdgeFigure().setForegroundColor(alive);\r\n\t\telse\r\n\t\t\tgetEdgeFigure().setForegroundColor(dead);\r\n\t\t//throw new NullPointerException();\r\n\t}",
"public void RefreshOptions() {\n setContentView(mMainView);\n mSolitaireView.RefreshOptions();\n }",
"public void refresh() {\r\n\t\tinit();\r\n\t}",
"protected void refresh() {\n\t}",
"public void refresh() {\n\t\tgetData();\n\t\trender();\n\t}",
"protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }",
"public void refreshVista() {\n changeVistaIfChanged(currentModule);\n onWindowSizeChange();\n }",
"private void applyCurrentTheme() {\n TempestatibusApplicationSettings tempestatibusApplicationSettings = getTempestatibusApplicationSettings();\n tempestatibusApplicationSettings.createSharedPreferenceContext(this);\n String theme = tempestatibusApplicationSettings.getAppThemePreference();\n mRefreshImageView.setBackgroundResource(TempestatibusApplicationSettings.getRefreshId());\n mDegreeImageView.setBackgroundResource(TempestatibusApplicationSettings.getLargeDegreeId(theme));\n mDewValueSmallDegree.setBackgroundResource(TempestatibusApplicationSettings.getSmallDegreeId(theme));\n mApparentTemperatureValueSmallDegree.setBackgroundResource(TempestatibusApplicationSettings.getSmallDegreeId(theme));\n mSettingsImageView.setBackgroundResource(TempestatibusApplicationSettings.getSettingsIconId());\n mHourglassIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getHourglassId());\n mSaveIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getSaveIconId());\n mSearchIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getSearchIconId());\n }",
"@Override\n\tpublic void refresh() {\n\t\tsuper.refresh();\n\t\tapplyConnectionRouter(getConnectionFigure());\n\t}",
"public void refresh()\n {\n refresh( null );\n }",
"public void refreshAll(){\n\t\tNodeController.getNodeController().refreshHubVMintrfces();\n\t\tdraw(canvas, contextMenu);\n\t\tConfigFile.writeOutput(outputConfig);\n\t}",
"public void refresh() {\n }",
"private void refresh(final boolean forceRebuild) {\n Runnable refreshRunnable = new Runnable() {\r\n public void run() {\r\n boolean changesExist = refreshSnapshotsForChangedSeries(forceRebuild);\r\n // System.out.println(\"Changes \" + changesExist);\r\n if ( changesExist ) {\r\n //fire the jfreechart change\r\n seriesChanged(new SeriesChangeEvent(this));\r\n }\r\n }\r\n };\r\n \r\n if (! SwingUtilities.isEventDispatchThread() && useSwingThread) {\r\n SwingUtilities.invokeLater(refreshRunnable);\r\n } else {\r\n refreshRunnable.run();\r\n }\r\n \r\n \r\n }",
"@FXML\n\tprivate void setDarkStyle() {\n\t\tapplication.getScene().getStylesheets().remove(urlDefaultTheme);\n\n\t\t// Add the new theme\n\t\tapplication.getScene().getStylesheets().add(urlDarkTheme);\n\t}",
"public void loadTheme() {\n runOnUiThread(new Runnable() {\n public void run() {\n try {\n //inspired by:https://stackoverflow.com/questions/15025369/changing-the-theme-of-an-android-app-using-preferences\n SharedPreferences data = getSharedPreferences(\"Themes\", 0);\n dataReturned = data.getString(\"LightDark\", \"ThemeDark\");\n if (dataReturned.equals(\"ThemeDark\"))\n setTheme(R.style.ThemeDark);\n else\n setTheme(R.style.ThemeLight);\n } catch (final Exception ex) {\n // Log.i(\"sortViewEntries\", \"Exception in thread\");\n }\n }\n });\n }",
"@Override\n public void refresh() {\n }",
"@Override\r\n\tpublic void refreshChart2() {\n\t\tString[] s = new String[categoryStrings.size()];\r\n\t\ts= categoryStrings.toArray(s);\r\n\t\tif(getChartType().equals(\"StepLineChart\")) {\r\n\t\t\tDateAxis xAxis = new DateAxis(\"time\");\r\n\t\t\tValueAxis yAxis = new SymbolAxis(\"status\", s);\r\n\t\t\tXYStepRenderer renderer = new XYStepRenderer();\r\n\t\t\tXYPlot plot = new XYPlot(chartDataset, xAxis, yAxis, renderer);\r\n\t\t\tsetChart(new JFreeChart(null, new Font(\"Tahoma\", 0, 18), plot, true));\r\n\t\t}\r\n\t\t((GridBagLayout)getMonitoringPanel().getLayout()).rowHeights[2] = getMinimumHeight();\r\n\t\tgetMonitoringPanel().setPreferredSize(new Dimension(getMinimumWhidth(), (int) Math.round(getMonitoringPanel().getPreferredSize().getHeight())));\r\n\t\tsetVisible(isVisible());\r\n\t\tgetMonitoringPanel().setVisible(isVisible());\r\n\t\tif (chartPanel != null) \r\n\t\t\tgetMonitoringPanel().remove(chartPanel);\r\n\t\tsetChartPanel(new ChartPanel(chart));\r\n\t\tgetMonitoringPanel().add(chartPanel, new GridBagConstraints(0, 2, 6, 1, 0.0, 0.0,\r\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\r\n\t\t\t\tnew Insets(0, 0, 5, 5), 0, 0));\r\n\t}",
"public void plotGraphUsingPlotPreferences(){\n drawGraph();\n }",
"void refreshNode(ChartNode node);",
"protected void onUpdateGraphPressed(View view) {\n int count = 0;\n gHistoricalPPM.removeAllSeries();\n if (spGraphType.getSelectedItem() == \"Virus\") {\n DataPoint[] dpArray = new DataPoint[selectedReport.getPrList().size()];\n for (PurityReport pr : selectedReport.getPrList()) {\n DataPoint dp = new DataPoint(pr.getMonthSubmitted(), pr.getVirusPPM());\n dpArray[count++] = dp;\n }\n LineGraphSeries<DataPoint> series = new LineGraphSeries<>(dpArray);\n gHistoricalPPM.addSeries(series);\n } else {\n DataPoint[] dpArray = new DataPoint[selectedReport.getPrList().size()];\n for (PurityReport pr : selectedReport.getPrList()) {\n DataPoint dp = new DataPoint(pr.getMonthSubmitted(), pr.getContaminantPPM());\n dpArray[count++] = dp;\n }\n LineGraphSeries<DataPoint> series = new LineGraphSeries<>(dpArray);\n gHistoricalPPM.addSeries(series);\n }\n gHistoricalPPM.getViewport().setMinX(1);\n gHistoricalPPM.getViewport().setMaxX(12);\n gHistoricalPPM.getViewport().setXAxisBoundsManual(true);\n }",
"private void updateGraph() {\n if (centerBox.getChildren().size() > 0) {\n graphPane = new Pane();\n graphPane.setPrefSize(500, 500);\n centerBox.getChildren().set(0, this.drawGraph());\n } else {\n graphPane = new Pane();\n graphPane.setPrefSize(500, 500);\n centerBox.getChildren().add(this.drawGraph());\n }\n }",
"public void resetGraph(){\n removeAllSeries();\n removeSeries(xySeries);\n removeSeries(currentPoint);\n xySeries = new PointsGraphSeries<>();\n currentPoint = new PointsGraphSeries<>();\n initGraph();\n }",
"@Override\n public void onRefresh() {\n }",
"public void setTheme(BoardTheme theme)\n {\n this.theme = theme;\n repaint();\n }",
"@Override\n\tpublic void onRefresh() {\n\n\t}",
"public void updateGraphView(GraphModel graphModel) {\r\n this.graphModel = graphModel;\r\n remove(chartPanel);\r\n XYDataset dataSet = createDataSet();\r\n chart = createChart(dataSet);\r\n chartPanel = new ChartPanel(chart);\r\n add(chartPanel);\r\n setVisible(true);\r\n }",
"private void setCustomGraph(){\n\n // Set Touch, Drag and Scale to enable\n chart.setTouchEnabled(false);\n chart.setDragEnabled(false);\n chart.setScaleEnabled(false);\n\n // Controlling right side of y axis\n YAxis yAxisRight = chart.getAxisRight();\n yAxisRight.setEnabled(false);\n\n // Controlling left side of y axis\n YAxis yAxisLeft = chart.getAxisLeft();\n yAxisLeft.setGranularity(1f);\n\n yAxisLeft.setAxisLineColor(Color.TRANSPARENT);\n yAxisLeft.setDrawLabels(false);\n\n chart.getDescription().setEnabled(false);\n\n chart.getAxisLeft().setDrawGridLines(false);\n chart.getXAxis().setDrawGridLines(false);\n\n\n //Controlling X axis\n xAxis = chart.getXAxis();\n //Set the xAxis position to bottom\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n\n IAxisValueFormatter formatter = new IAxisValueFormatter() {\n @Override\n public String getFormattedValue(float value, AxisBase axis) {\n return weeks[(int) value];\n }\n };\n\n // minimum axis-step interval is 1\n xAxis.setGranularity(1f);\n xAxis.setValueFormatter(formatter);\n\n }",
"@Override\n public void onRefresh() {\n }",
"void refresh();",
"void refresh();",
"void refresh();",
"void refresh();",
"void refresh();",
"public abstract void refreshing();",
"public void graphRepaint() {\r\n \t\tgraph.repaint();\r\n \t}",
"private void refreshUI(){\r\n\t\t//update text fields\r\n\t\tConfiguration conf = m_Categorizer.Configuration();\r\n\t\tm_MCSTf.setText(String.valueOf(conf.getMCSScore()));\r\n\t\tm_RelScoreTf.setText(String.valueOf(conf.getRelevanceWeight()));\r\n\t\tm_CohScoreTf.setText(String.valueOf(conf.getCoherenceWeight()));\r\n\t\tm_KeyTf.setText(String.valueOf(conf.getKeywordsWeight()));\r\n\t\tm_CatConfTf.setText(String.valueOf(conf.getCategoryConfidenceWeight()));\r\n\t\tm_RepeatTf.setText(String.valueOf(conf.getRepeatedConceptWeight()));\r\n\t\tm_MinCatsTf.setText(String.valueOf(conf.getMinOutputCategories()));\r\n\t\tm_MaxCatsTf.setText(String.valueOf(conf.getMaxOutputCategories()));\r\n\t\tm_MinCatScoreTf.setText(String.valueOf(conf.getMinScore()));\r\n\t\t//refresh tables\r\n\t\tm_DatasetTable.refresh();\r\n\t\tm_ConceptTable.refresh();\r\n\t\t//refresh statistics window\r\n\t\tm_StatisticsWindow.refresh();\r\n\t\t//refresh filter choicebox\r\n\t\tupdateFilterChoiceBox();\r\n\t}",
"private void setGraphDataAndStyle() {\n graphView.addSeries(new LineGraphSeries(getSeriesData()));\n graphView.setTitle(\"配速\");\n graphView.getGridLabelRenderer().setLabelFormatter(new DateAxisLabelFormatter(getActivity()));\n graphView.getGridLabelRenderer().setNumVerticalLabels(locations.size());\n graphView.getViewport().setMinX(locations.get(0).getTime());\n graphView.getViewport().setMaxX(locations.get(locations.size()-1).getTime());\n graphView.getViewport().setXAxisBoundsManual(true);\n\n }",
"protected void updatePreferences() {\n boolean theme = PreferenceManager.getDefaultSharedPreferences(this).getBoolean(getString(R.string.prefTheme), false);\n\n if (theme) {\n\n // Set to light mode.\n AppCompatDelegate.setDefaultNightMode(\n AppCompatDelegate.MODE_NIGHT_NO);\n } else {\n\n // Set to dark mode.\n AppCompatDelegate.setDefaultNightMode(\n AppCompatDelegate.MODE_NIGHT_YES);\n }\n }",
"public static void update(){\n\t\t\n\t\tgraphFrame.setColor(color);\n\t}",
"@Override\n\tpublic void refresh() {\n\n\t}",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"public void reloadContents(boolean doAnim)\n{\n _legend.reloadContents();\n _chartArea.reactivate();\n if(doAnim) _chartArea.animate();\n _yaxis.repaint();\n _xaxis.repaint();\n}",
"public void loadSavedTheme() {\n if(savedThemeDark)\n {\n if(isDark()){\n //El tema ya es oscuro, no hace nada\n }\n else{\n loadDark();\n }\n }\n else\n {\n if(isDark())\n {\n loadLight();\n }\n }\n\n }",
"@Override\n public void onRefresh() {\n loadData();\n }",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGraph();\r\n\t\t\r\n\t\tfor (int i = 0; i < entryGraph.size(); i++) {\r\n\t\t\tdrawEntry(entryGraph.get(i), i);\r\n\t\t}\r\n\t}",
"protected void refreshShell() {\n shell.layout();\n }",
"private void firePlotDefinitionListChanged() {\n firePlotDefinitionListChanged(this, null);\n }",
"void onRefresh() {\n\t}",
"@Override\n public void onRefresh() {\n synchronizeContent();\n }",
"@Override\n public void onRefresh() {\n refreshData();\n }",
"public void refresh() {\n if (currentClient != null) {\n Page page = currentClient.getCurrentPage();\n if (page != null) {\n root.setCenter(page.getRoot());\n } else {\n root.setCenter(null);\n }\n }else{\n if (page != null) {\n root.setCenter(page.getRoot());\n } else {\n root.setCenter(null);\n }\n }\n root.setPrefWidth(1280);\n root.setPrefHeight(720);\n root.setTop(clientBar.getRoot());\n root.setRight(null); // remove any errors\n //this.mainStage.setScene(scene);\n mainStage.show();\n\n }",
"public void updateLineChart()\r\n {\r\n hoursLoggedSeries = new XYChart.Series<>();\r\n hoursLoggedSeries.setName(Integer.toString(LocalDate.now().getYear()));\r\n lineChart.getData().clear();\r\n \r\n try{\r\n populateSeriesFromDB();\r\n }\r\n catch(SQLException e)\r\n {\r\n System.err.println(e.getMessage());\r\n }\r\n lineChart.getData().addAll(hoursLoggedSeries);\r\n }",
"public void updateChart(){\n for(Pair<Number,Number> p : sss.getPopulationQueue()){\n this.population.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getDeathsQueue()){\n this.deaths.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getInfectionsQueue()){\n this.infections.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getHealsQueue()){\n this.heals.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n sss.clearPopulationQueue();\n sss.clearDeathsQueue();\n sss.clearInfectionsQueue();\n sss.clearHealsQueue();\n }",
"public void updateAllTrendGraphs()\n {\n List<TrendSetsGraphDlg> disposeList = new ArrayList<TrendSetsGraphDlg>();\n for (TrendSetsGraphDlg tsgDlg : trendSetsMap.keySet()) {\n boolean toDispose = tsgDlg.updateTrendSetsGraph();\n if (toDispose) {\n disposeList.add(tsgDlg);\n }\n }\n\n for (TrendSetsGraphDlg dlg : disposeList) {\n trendSetsMap.remove(dlg);\n dlg.close();\n }\n\n for (TrendSetsGraphDlg tsgDlg : trendSetsMap.keySet()) {\n tsgDlg.updateTrendSetsGraph();\n }\n\n List<TrendGraphDlg> graphDisposeList = new ArrayList<TrendGraphDlg>();\n for (TrendGraphDlg tgDlg : trendMap.keySet()) {\n boolean toDispose = tgDlg.updateTrendGraph();\n if (toDispose) {\n graphDisposeList.add(tgDlg);\n }\n }\n\n for (TrendGraphDlg dlg : graphDisposeList) {\n trendMap.remove(dlg);\n dlg.close();\n }\n\n for (TrendGraphDlg tgDlg : trendMap.keySet()) {\n tgDlg.updateTrendGraph();\n }\n }",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"private void updateChart() {\n //Declare needed variables\n final DateFormat dateFormat = new SimpleDateFormat(\"dd-MM\", Locale.getDefault());\n final LineChart chart = findViewById(R.id.chartWeight);\n List<Entry> weightEntries = new ArrayList<>();\n mUser.weight.sortListByDate();\n ArrayList<WeightValue> weightHistory = mUser.weight.getWeightHistory();\n\n //Set entries to entry list from weight history list\n for (int i = 0; i < weightHistory.size(); i++) {\n //Get the current weight weight value and intialize the current variables\n WeightValue weightValue = weightHistory.get(i);\n Date date = weightValue.getDate();\n float weight = (float) weightValue.getWeight();\n\n //Add the entries to the entries list\n weightEntries.add(new Entry(date.getTime(), weight));\n }\n\n //Setup XAxis\n XAxis xAxis = chart.getXAxis();\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxis.setDrawGridLines(false);\n xAxis.setGranularity(1f);\n xAxis.setGranularityEnabled(true);\n xAxis.setLabelCount(weightHistory.size(), false);\n xAxis.setValueFormatter(new IndexAxisValueFormatter() {\n @Override\n public String getFormattedValue(float value) {\n return dateFormat.format(value);\n }\n });\n\n //Setups YAxis\n YAxis rightYAxis = chart.getAxisRight();\n rightYAxis.setEnabled(false);\n\n //Create linedata from the entries list\n final LineDataSet weightDataSet = new LineDataSet(weightEntries, \"Paino\");\n\n //Customize chart\n Description desc = new Description();\n desc.setEnabled(false);\n chart.setDescription(desc);\n chart.setMaxHighlightDistance(20);\n\n weightDataSet.setValueTextSize(10);\n weightDataSet.setColor(Color.BLUE);\n weightDataSet.setFillAlpha(10);\n weightDataSet.setLineWidth(3f);\n weightDataSet.setCircleRadius(4);\n\n\n\n //Shows the values as integers rather than floats\n weightDataSet.setValueFormatter(new ValueFormatter() {\n @Override\n public String getFormattedValue(float value) {\n return String.format(Locale.getDefault(), \"%.1f\", value);\n }\n });\n\n chart.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {\n @Override\n public void onValueSelected(final Entry e, Highlight h) {\n AlertDialog.Builder builder = new AlertDialog.Builder(WeightActivity.this);\n builder.setTitle(\"Poista arvo\")\n .setMessage(\"Oletko varma?\")\n .setNegativeButton(\"Peruuta\", null)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n weightDataSet.removeEntry(e);\n chart.invalidate();\n\n mUser.weight.removeWeightByDate(e.getX());\n updateText();\n }\n });\n\n AlertDialog alert = builder.create();\n alert.show();\n }\n\n @Override\n public void onNothingSelected() {\n\n }\n });\n\n //Add the values to the chart and intialize it\n LineData weightLineData = new LineData(weightDataSet);\n chart.setData(weightLineData);\n chart.invalidate();\n }",
"public abstract void refresh();",
"public abstract void refresh();",
"public abstract void refresh();",
"public void switchTheme() {\n if (_theme.equals(\"light\")) {\n _theme = \"dark\";\n setCss(darkCss);\n _switchThemeImageView.setImage(darkImage);\n } else {\n _theme = \"light\";\n setCss(lightCss);\n _switchThemeImageView.setImage(lightImage);\n }\n }",
"private void setTheme() {\n\t\tLog.i(LOG_TAG, \"setTheme\");\n\n\t\tSharedPreferences preferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tthis.themeString = preferences.getString(\"theme_scheme\",\n\t\t\t\tMainMenuActivityThemeChanger.DARK_THEME);\n\n\t\tif (themeString\n\t\t\t\t.equalsIgnoreCase(MainMenuActivityThemeChanger.PINK_THEME)) {\n\n\t\t\tthis.setTheme(R.style.pinkTheme);\n\t\t\tsetContentView(R.layout.activity_time_trial);\n\n\t\t} else if (themeString\n\t\t\t\t.equalsIgnoreCase(MainMenuActivityThemeChanger.LIGHT_THEME)) {\n\n\t\t\tthis.setTheme(R.style.lightTheme);\n\t\t\tsetContentView(R.layout.activity_time_trial);\n\n\t\t} else {\n\n\t\t\tthis.setTheme(R.style.darkTheme);\n\t\t\tsetContentView(R.layout.activity_time_trial);\n\n\t\t}\n\t}",
"@Override protected void updateLegend() {\n legend.getItems().clear();\n if (getData() != null) {\n for (int seriesIndex=0; seriesIndex< getData().size(); seriesIndex++) {\n Series<X,Y> series = getData().get(seriesIndex);\n LegendItem legenditem = new LegendItem(series.getName());\n if (!series.getData().isEmpty() && series.getData().get(0).getNode() != null) {\n legenditem.getSymbol().getStyleClass().addAll(series.getData().get(0).getNode().getStyleClass());\n }\n legend.getItems().add(legenditem);\n }\n }\n if (legend.getItems().size() > 0) {\n if (getLegend() == null) {\n setLegend(legend);\n }\n } else {\n setLegend(null);\n }\n }",
"@Override\r\n\tpublic void onRefresh() {\n\r\n\t}",
"protected void refreshAdapter() {\n if (mAdapter == null) {\n mAdapter = createMonthAdapter(mController);\n } else {\n mAdapter.setSelectedDay(mSelectedDay);\n if (pageListener != null) pageListener.onPageChanged(getMostVisiblePosition());\n }\n // refresh the view with the new parameters\n setAdapter(mAdapter);\n }",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGrid();\r\n\t\tplotDecades();\r\n\t\tgetEntries();\r\n\t}",
"public void drawGraph(){\n this.post(new Runnable(){\n @Override\n public void run(){\n removeAllSeries();\n addSeries(xySeries);\n addSeries(currentPoint);\n //addSeries(currentPoint);\n }\n });\n }",
"protected abstract void setSpecificViewThemes();",
"public void Refresh()\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void onRefresh() {\n\r\n\t\t\t}",
"@Override\n public void onRefresh() {\n load_remote_data();\n }",
"void resetPlot();",
"abstract void refresh();",
"public void refresh() {\n\t\tthis.repaint();\n\t}",
"@Override\n\tpublic void updateStyleBars() {\n\t\tsuper.updateStyleBars();\n\t\tif (showView(App.VIEW_EUCLIDIAN3D) && getEuclidianView3D().hasStyleBar()) {\n\t\t\tgetEuclidianView3D().getStyleBar().updateStyleBar();\n\t\t}\n\t}",
"@Override\n\t\tpublic void onRefresh() {\n\t\t\tloadInfo(1, 0);\n\t\t}",
"private void changeTheme(Theme theme) {\n uiController.setTheme(theme);\n this.getStylesheets().clear();\n this.getStylesheets().add(getClass().getResource(\"styles/\" + theme + \".css\").toExternalForm());\n }",
"@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }",
"@Override\r\n public void onCreate(Bundle savedState) {\r\n super.onCreate(savedState);\r\n \r\n if (savedState != null) {\r\n dataController.setViewableDataTableRows(\r\n GraphActivityFunctions.restoreViewableDataTableRows(savedState));\r\n }\r\n \r\n SharedPreferences sp = getPreferences(MODE_PRIVATE);\r\n dataController.setViewableDataTableRows(\r\n GraphActivityFunctions.restoreViewableDataTableRows(sp));\r\n \r\n setContentView(R.layout.graph);\r\n\r\n Integer currentYearMaximum = Utility.getNumOfCompoundingPeriods();\r\n setupValueSpinner();\r\n setupTimeSlider(currentYearMaximum);\r\n setupValueSlider(currentYearMaximum);\r\n setupGraphs(currentYearMaximum);\r\n setupCurrentValueFields();\r\n valueToDataTableItemCorrespondence = GraphActivityFunctions.createDataTableItems(GraphActivity.this);\r\n setDataChangedToggle(true);\r\n }",
"public void setupGraphs(String selectedPeriod)\n {\n // Reset the view\n clearErrors();\n readingGraph.removeAllSeries();\n\n ReadingGrapher grapher = new ReadingGrapher(getContext());\n LineGraphSeries<DataPoint> series = null;\n\n // Get the correct series for the selected period\n switch (selectedPeriod)\n {\n case \"day\":\n series = grapher.getSeriesForDay();\n break;\n case \"week\":\n series = grapher.getSeriesForWeek();\n break;\n case \"month\":\n series = grapher.getSeriesForMonth();\n break;\n case \"year\":\n series = grapher.getSeriesForYear();\n break;\n }\n\n // Success!\n if (series != null)\n {\n readingGraph.addSeries(series);\n\n // set manual x bounds to have nice steps\n readingGraph.getViewport().setMinX(grapher.getEarliestTime());\n readingGraph.getViewport().setMaxX(grapher.getLatestTime());\n readingGraph.getViewport().setXAxisBoundsManual(true);\n }\n else\n {\n addError(getString(R.string.graph_no_data));\n }\n }",
"private void configurePlot() {\n // Get background color from Theme\n TypedValue typedValue = new TypedValue();\n activity.getTheme().resolveAttribute(android.R.attr.windowBackground, typedValue, true);\n int backgroundColor = typedValue.data;\n // Set background colors\n heartRatePlot.setPlotMargins(0, 0, 0, 0);\n heartRatePlot.getBorderPaint().setColor(backgroundColor);\n heartRatePlot.getBackgroundPaint().setColor(backgroundColor);\n heartRatePlot.getGraph().getBackgroundPaint().setColor(backgroundColor);\n heartRatePlot.getGraph().getGridBackgroundPaint().setColor(backgroundColor);\n // Set the grid color\n heartRatePlot.getGraph().getRangeGridLinePaint().setColor(Color.DKGRAY);\n heartRatePlot.getGraph().getDomainGridLinePaint().setColor(Color.DKGRAY);\n // Set the origin axes colors\n heartRatePlot.getGraph().getRangeOriginLinePaint().setColor(Color.DKGRAY);\n heartRatePlot.getGraph().getDomainOriginLinePaint().setColor(Color.DKGRAY);\n // Set the XY axis boundaries and step values\n heartRatePlot.setRangeBoundaries(MIN_HR, MAX_HR, BoundaryMode.FIXED); heartRatePlot.setDomainBoundaries(0, NUMBER_OF_POINTS - 1, BoundaryMode.FIXED);\n heartRatePlot.setRangeStepValue(9); // 9 values 40 60 ... 200\n heartRatePlot.getGraph().getLineLabelStyle(XYGraphWidget.Edge.LEFT).setFormat(new DecimalFormat(\"#\"));\n heartRatePlot.getLegend().setVisible(false);\n // This line is to force the Axis to be integer\n heartRatePlot.setRangeLabel(\"Heart rate (bpm)\");\n }",
"@Override\n public void refreshDataEntries() {\n }",
"public void refresh() {\n\n odp.refresh();\n\n\n }",
"public void refresh() {\n if (!postLoaderMethodList.interpretAsGlobalPosts()) {\n refreshWithHidePublicUpdate();\n } else {\n refreshNoHidePublicUpdate();\n }\n }",
"public void UI_Refresh ()\r\n\t{\r\n\t\tUI_RefreshSensorData ();\r\n\t\tUI_RefreshConnStatus ();\r\n\t}"
] | [
"0.6572791",
"0.65653497",
"0.6556697",
"0.65153617",
"0.65148646",
"0.650937",
"0.63270056",
"0.628273",
"0.62369585",
"0.6131025",
"0.6080505",
"0.60701686",
"0.60660374",
"0.60481864",
"0.5995511",
"0.59813327",
"0.59608346",
"0.5937045",
"0.5913914",
"0.5888959",
"0.5882573",
"0.5876682",
"0.5875859",
"0.5874002",
"0.5873381",
"0.5871675",
"0.58242923",
"0.5806401",
"0.5800657",
"0.57872236",
"0.5781928",
"0.5774887",
"0.5771834",
"0.576831",
"0.5766294",
"0.5760915",
"0.57599473",
"0.5748411",
"0.5748411",
"0.5748411",
"0.5748411",
"0.5748411",
"0.57413644",
"0.57381076",
"0.5735225",
"0.5735222",
"0.5726166",
"0.57258296",
"0.5723334",
"0.5715795",
"0.5715795",
"0.57134926",
"0.5712266",
"0.57115096",
"0.57085925",
"0.57037467",
"0.57026297",
"0.56978804",
"0.569646",
"0.56912756",
"0.56909966",
"0.569084",
"0.5688203",
"0.5688156",
"0.56878877",
"0.56878877",
"0.56878877",
"0.56878877",
"0.56878877",
"0.56878877",
"0.56878877",
"0.5674488",
"0.5669862",
"0.5669862",
"0.5669862",
"0.5668847",
"0.56642437",
"0.5660428",
"0.565404",
"0.56538695",
"0.5641629",
"0.5641141",
"0.5630931",
"0.5623323",
"0.56123984",
"0.5611099",
"0.56000656",
"0.559705",
"0.5587055",
"0.5558962",
"0.5556843",
"0.5556194",
"0.55486983",
"0.55468327",
"0.5544283",
"0.5542617",
"0.5542451",
"0.552993",
"0.55297565",
"0.5519378"
] | 0.68853587 | 0 |
/ setter on themecolor attribute. | public void setColorTheme(int colorTheme)
{
themeColor = colorTheme;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setColor(int value);",
"void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }",
"public void setColor(int color);",
"public void setColor(int color);",
"public void setColor(Color c);",
"public void setColor(String c);",
"public void setColor(Color c) { color.set(c); }",
"public void setColor(Color color);",
"public void setColor(Color newColor) ;",
"public abstract void setColor(Color color);",
"public abstract void setColor(Color color);",
"public void setColor(Color clr){\n color = clr;\n }",
"@NoProxy\n @NoWrap\n public void setColor(final String val) {\n color = val;\n }",
"public void set_color(String color){ color_ = GralColor.getColor(color.trim()); }",
"public void setColour(Colour colour);",
"public void setColor(Color color) {\n this.color = color;\n }",
"public void setColor(int color){\n this.color = color;\n }",
"public void setColor(int r, int g, int b);",
"void setColor(@ColorInt int color);",
"public void setColor(Color c) {\n color = c;\n }",
"public void setColor(Color color) {\n this.color = color;\r\n }",
"void setColor(int r, int g, int b);",
"public void setColor( GraphColor newVal ) {\n color = newVal;\n }",
"public void setColor(int color){\r\n\t\tthis.color=color;\r\n\t}",
"static void setPrefTheme(int theme){\n PREF_THEME = theme;\n }",
"@Override\r\n\tpublic String setColor() {\n\t\treturn null;\r\n\t}",
"public void setColor(String value) {\n setAttributeInternal(COLOR, value);\n }",
"public static void setViewBGcolor(Context context, int color){\n SharedPreferences.Editor edit = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE).edit();\n edit.putInt(\"bgColor\", color);\n edit.apply();\n }",
"public void setColor(Color color_rey){\r\n this.color_rey=color_rey;\r\n }",
"public void setColor(String color){\n this.color = color;\n }",
"void setRed(int red){\n \n this.red = red;\n }",
"public String getColor(){\r\n return color;\r\n }",
"protected void setColor(Color color) {\r\n\t\tthis.color = color;\r\n\t}",
"public void setRrColor(Color value) {\n rrColor = value;\n }",
"public int getColor(){\r\n\t\treturn color;\r\n\t}",
"public void setColor(String color) {\r\n this.color = color;\r\n }",
"public void setColor(int color) {\n this.color = color;\n }",
"public void setColor(int color){\n\t\tthis.color = color;\n\t}",
"public Color getColor(){\r\n return color_rey;\r\n }",
"public void setColor(float r, float g, float b, float a);",
"public void setColor(Color c) {\n this.color = c;\n }",
"@Override\r\n public void setColor(Llama.Color color) {\r\n this.color = color;\r\n }",
"public void setColor(RGBColor color){\r\n this._color = new RGBColor(color);\r\n }",
"public String getColor() { \n return color; \n }",
"public Color setColor(String color){\n\t\tColor oldColor = this.routeColor;\n\t\trouteColor = Color.web(color);\n\n\t\tnotifyObservers(\"color\");\n\n\t\treturn oldColor;\n\t}",
"public void setColor(IsColor color) {\n\t\tsetColor(IsColor.checkAndGetValue(color));\n\t}",
"public int getColor(){\n\t\treturn color;\n\t}",
"public int getColor(){\n\t\treturn color;\n\t}",
"void setColor(ChatColor color);",
"public static void setGlobalTextColor(Context context, int color){\n SharedPreferences.Editor edit = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE).edit();\n edit.putInt(\"textColor\", color);\n edit.apply();\n\n ArrayList<Outfit> list = getOutfitList(context);\n if(list.size()>0){\n for(int i = 0 ; i<list.size(); i++){\n list.get(i).setTextColor(color);\n }\n saveOutfitJSON(context, list);\n }\n }",
"public void setColor(int gnum, Color col);",
"public void setRgbColorBg(int newval) throws YAPI_Exception\n {\n _rgbColor = newval;\n _ycolorled.set_rgbColor(newval);\n }",
"public int getColor() {\n return color;\n }",
"public void setColor(String pColor){\n this._color=pColor;\n }",
"public void setColor(final Color theColor) {\n myColor = theColor;\n }",
"public void setColor(int color) {\r\n\t\tthis.color = color;\r\n\t}",
"public abstract void setCurForeground(Color colr);",
"public void setColor(Color color_) {\r\n\t\tcolor = color_;\r\n\t}",
"public void setColor(Color color) {\n this.color = color;\n }",
"public void setColor(String color) {\r\n this.color = color;\r\n }",
"@Override\n public void setColor(Color color) {\n this.color = color;\n }",
"private void setColorTheme(ViewHolder holder) {\n // Get the color theme string from SharedPreferences and check for the value associated with the key\n String colorTheme = sharedPrefs.getString(\n mContext.getString(R.string.settings_color_key),\n mContext.getString(R.string.settings_color_default));\n\n // Change the background color of titleTextView by using the user's stored preferences\n if (colorTheme.equals(mContext.getString(R.string.settings_color_white_value))) {\n holder.titleTextView.setBackgroundResource(R.color.white);\n holder.titleTextView.setTextColor(Color.BLACK);\n }else if (colorTheme.equals(mContext.getString(R.string.settings_color_sky_blue_value))) {\n holder.titleTextView.setBackgroundResource(R.color.nav_bar_start);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_dark_blue_value))) {\n holder.titleTextView.setBackgroundResource(R.color.color_app_bar_text);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_violet_value))) {\n holder.titleTextView.setBackgroundResource(R.color.violet);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_light_green_value))) {\n holder.titleTextView.setBackgroundResource(R.color.light_green);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_green_value))) {\n holder.titleTextView.setBackgroundResource(R.color.color_section);\n holder.titleTextView.setTextColor(Color.WHITE);\n }\n }",
"public String getColor() {\r\n return color;\r\n }",
"public String getColor()\n {\n return color;\n }",
"public String getColor()\n {\n return color;\n }",
"public String getColor(){\n\t\treturn color;\n\t}",
"public Color getColor() { return color; }",
"public void setTheme(String theme) {\n this.theme = theme;\n }",
"@Override\n public GralColor setForegroundColor(GralColor color)\n {\n return null;\n }",
"public Color getColor() { return color.get(); }",
"public int getColor() {\n \t\treturn color;\n \t}",
"public void setColor(RMColor aColor)\n{\n // Set color\n if(aColor==null) setFill(null);\n else if(getFill()==null) setFill(new RMFill(aColor));\n else getFill().setColor(aColor);\n}",
"public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }",
"public void setColor()\n {\n String PREF_FILE_NAME = \"PrefFile\";\n final SharedPreferences preferences = getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE);\n\n if(preferences.getBoolean(\"ColorBlind\", false)) {\n View box1 = this.findViewById(R.id.username);\n box1.setBackgroundColor(0xffffffff);\n\n View box2 = this.findViewById(R.id.password);\n box2.setBackgroundColor(0xffffffff);\n\n View box3 = this.findViewById(R.id.Login);\n box3.setBackgroundColor(0xffffffff);\n\n }\n }",
"public void setColor(String color) {\n if (color == null) {\n this.color = Color.black;\n } try {\n this.color = Color.decode(color);\n } catch (NumberFormatException nfe) {\n try {\n final Field f = Color.class.getField(color);\n this.color = (Color) f.get(null);\n } catch (Exception e) {\n this.color = Color.black;\n }\n }\n }",
"public void setColor(String color) {\n this.color=color; //el this se coloca a la propiedad de la clase \n // para diferenciarla del parametro\n }",
"void setColor(final java.awt.Color color);",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"void setColor(Vector color);",
"public Color getColor(){\n return color;\n }",
"private void setColorForDialog(int color) {\n titleEditText.setTextColor(color);\n descriptionEditText.setTextColor(color);\n colorTextView.setTextColor(color);\n titleTextView.setTextColor(color);\n descriptionTextView.setTextColor(color);\n\n\n // convert color from int format to HEX -> to save in db\n chosenColor = String.format(\"#%06X\", (0xFFFFFF & color));\n }",
"public void setColor(Color another)\r\n {\r\n currentColor = another;\r\n }",
"public void setColor(Color newColor) {\n\tcolor = newColor;\n }",
"@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }",
"public void setColor(Color color) \n\t{\n\t\tthis.color = color;\n\t}",
"public void setColor(Color c){\n\t\t//do nothing\n\t}",
"public void setForegroundColor(int color) {\n this.foregroundColor = color;\n }",
"void setStatusColour(Color colour);",
"public boolean setColor(Color c)\n {\n color = c;\n return true;\n }",
"public void setColor(String color){\n\t\tcolor = this.color;\n\t}",
"public void setThemeColors() {\n // This method will set the background to default if the color is PhoneAccount.NO_COLOR.\n mThemeColors = getColorsFromCall(mCallList.getFirstCall());\n\n if (mInCallActivity == null) {\n return;\n }\n\n final Resources resources = mInCallActivity.getResources();\n final int color;\n if (resources.getBoolean(R.bool.is_layout_landscape)) {\n color = resources.getColor(R.color.statusbar_background_color, null);\n } else {\n color = mThemeColors.mSecondaryColor;\n }\n\n mInCallActivity.getWindow().setStatusBarColor(color);\n final TaskDescription td = new TaskDescription(\n resources.getString(R.string.notification_ongoing_call), null, color);\n mInCallActivity.setTaskDescription(td);\n }",
"public void setColor(Color c)\n\t{\n\t\tthis.color = c;\n\t}",
"@Override\n public void setTheme(String theme) {\n if (StringUtils.isBlank(theme)) {\n theme = THEME;\n }\n \n this.theme = theme;\n }"
] | [
"0.6962282",
"0.6844573",
"0.68333864",
"0.68333864",
"0.6817783",
"0.67834425",
"0.67834085",
"0.6750197",
"0.67262423",
"0.66203666",
"0.66203666",
"0.66062075",
"0.65930927",
"0.6537326",
"0.64781666",
"0.64656055",
"0.6374121",
"0.6372132",
"0.6339289",
"0.6331396",
"0.6305363",
"0.6305198",
"0.6279898",
"0.6234075",
"0.62337655",
"0.62230027",
"0.62100846",
"0.6182138",
"0.61802304",
"0.6178323",
"0.617518",
"0.6174659",
"0.615749",
"0.615568",
"0.61434644",
"0.6136239",
"0.61276263",
"0.6126682",
"0.61259896",
"0.6116441",
"0.61087537",
"0.610584",
"0.610432",
"0.6103973",
"0.60887563",
"0.6085193",
"0.60808474",
"0.60808474",
"0.60802263",
"0.6075332",
"0.6075107",
"0.6072656",
"0.60712624",
"0.60702896",
"0.6063325",
"0.60560125",
"0.6054441",
"0.60538477",
"0.60473114",
"0.601736",
"0.6011092",
"0.6003037",
"0.6001389",
"0.5994029",
"0.5994029",
"0.59897673",
"0.5984659",
"0.5980549",
"0.5974097",
"0.5970566",
"0.59683067",
"0.5964842",
"0.59645116",
"0.59515566",
"0.5942288",
"0.59349346",
"0.5933064",
"0.5930654",
"0.5930654",
"0.5930654",
"0.5930654",
"0.5930654",
"0.5930654",
"0.5930654",
"0.5930654",
"0.5927303",
"0.5924048",
"0.5923873",
"0.5922215",
"0.5920409",
"0.59137684",
"0.59132683",
"0.5908429",
"0.5901903",
"0.5898144",
"0.58947605",
"0.58932734",
"0.58903956",
"0.5889446",
"0.58887756"
] | 0.7487781 | 0 |
Ensures that the Rmi tactic succeeds once on an hypothesis | @Test
public void applyOnceHyp() {
assertSuccess(" ;H; ;S; x⊆ℤ |- ⊥", ri("", empty));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Then(\"Assert the success of Attempt well-known or guessable resource locations\")\npublic void assattemptwellknownorguessableresourcelocations(){\n}",
"private boolean decideIfEventShouldBeReportedAsAFailure() {\n \tint value = new Random().nextInt(100);\n \tif (value < TARGET_SUCCESS_RATE) {\n \t\treturn false;\n \t} else {\n \treturn true;\n \t}\n }",
"boolean isTroubled( ExpressionExperiment expressionExperiment );",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort1() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToTechnologyAverage, link, travelTimeOnLink);\n\t}",
"@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"@Test\n\t\tpublic void applyOnceGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; x ∈ ℤ ;; y ∈ ℤ |- x↦y ∈ id\", rm(\"\", empty));\n\t\t}",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"@Test\n public void testDecisionRule() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n DataHandle handle = provider.getData().getHandle();\n \n RiskModelPopulationUniqueness model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.2d)).getPopulationBasedUniquenessRisk();\n double populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n double sampleUniqueness = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getSampleBasedUniquenessRisk().getFractionOfUniqueRecords();\n \n // Risk before anonymization\n assertTrue(sampleUniqueness + \" / \" + populationUniqueness, compareUniqueness(populationUniqueness, 1.0d) == 0);\n assertTrue(sampleUniqueness + \" / \" + populationUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n final ARXAnonymizer anonymizer = new ARXAnonymizer();\n final ARXConfiguration config = ARXConfiguration.create();\n config.addPrivacyModel(new KAnonymity(2));\n config.setSuppressionLimit(0d);\n \n ARXResult result = null;\n try {\n result = anonymizer.anonymize(provider.getData(), config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n final DataHandle outHandle = result.getOutput(false);\n \n populationUniqueness = outHandle.getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getPopulationBasedUniquenessRisk().getFractionOfUniqueTuplesDankar();\n assertTrue(\"Is: \" + populationUniqueness, compareUniqueness(populationUniqueness, 0) == 0);\n }",
"public void failedChallenge() {\n addGameRound(false);\n playedRounds++;\n updateActivePlayer();\n updateActiveChallenge();\n }",
"public boolean needsProblem();",
"@Given(\"prepare to Attempt well-known or guessable resource locations\")\npublic void preattemptwellknownorguessableresourcelocations(){\n}",
"@Test\n public void testSubsequentRunsWithUnsatisfiablePenalizingConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable penalizing constraint\");\n // set constraint\n final double penalty = 7.8;\n problem.addPenalizingConstraint(new NeverSatisfiedPenalizingConstraintStub(penalty));\n // perform multiple runs (maximizing objective)\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n // verify\n PenalizedEvaluation penEval;\n penEval = (PenalizedEvaluation) searchLowTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchMedTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchHighTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort2() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Then(\"Assert the success of Attempt sending crafted records to DNS cache\")\npublic void assattemptsendingcraftedrecordstodnscache(){\n}",
"@Test(timeout = 4000)\n public void test107() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"execcannot:create iwstance, module ignored.\");\n assertNull(boolean0);\n }",
"@Test(priority = 4)\n public void testVerifyQuestionThree() {\n\t\tassertTrue(true);\n }",
"@Test\n public void testSingleRunWithUnsatisfiableConstraint() {\n System.out.println(\" - test single run with unsatisfiable constraint\");\n // add constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // single run\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n singleRunWithMaxRuntime(searchLowTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n singleRunWithMaxRuntime(searchMedTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n singleRunWithMaxRuntime(searchHighTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }",
"public double checkHypothesisResult() {\n \tSystem.out.println(\"Enter the variables:\");\n \tdouble [] x = new double[numberOfVariables];\n \tdouble result = theta[0];\n \t\n \tsc = new Scanner(System.in);\n \tfor (int j = 0; j < numberOfVariables-1; j++) {\n \t\tx[j] = sc.nextDouble();\n \t}\n \tfor (int i = 1; i < numberOfVariables; i++) {\n \t\tresult += theta[i] * x[i - 1];\n \t}\n\n \treturn result;\n }",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }",
"@Test\n public void testSubsequentRunsWithUnsatisfiableConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable constraint\");\n // set constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }",
"boolean hasCorrect();",
"@Then(\"Assert the success of Analysis\")\npublic void assanalysis(){\n}",
"public static void resultOfPlayAllCorrect() {\n\t\tString mark=\"null\";\n\t\ttry {\n\t\t\tmark=PlayTrivia.playAllRightAnswers();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tif(mark==\"Sucsses\") {\n\t\t\tSystem.out.println(\"Test end page has:\" + mark + \" Test pass\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Test end page - failed\");\n\t\t}\n\t}",
"@Test\n public void testOtherwise() {\n AtomicBoolean success = new AtomicBoolean(false);\n match(42L).otherwise(s -> success.set(true));\n\n assertTrue(success.get());\n }",
"@Test(priority = 3)\n public void testVerifyQuestionTwo() {\n\t\tassertTrue(true);\n }",
"public void accomplishGoal() {\r\n isAccomplished = true;\r\n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedThenTechnologyAverageElseAbort_ShouldAbort() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Test\n public void testSingleRunWithUnsatisfiablePenalizingConstraint() {\n System.out.println(\" - test single run with unsatisfiable penalizing constraint\");\n // set constraint\n final double penalty = 7.8;\n problem.addPenalizingConstraint(new NeverSatisfiedPenalizingConstraintStub(penalty));\n // single run\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n singleRunWithMaxRuntime(searchLowTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n singleRunWithMaxRuntime(searchMedTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n singleRunWithMaxRuntime(searchHighTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n // verify\n PenalizedEvaluation penEval;\n penEval = (PenalizedEvaluation) searchLowTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchMedTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchHighTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n }",
"@Then(\"user inputs the answers of the questions as requirment information for GehaltsCheck\")\n public void user_inputs_the_answers_of_the_questions_as_requirment_information_for_GehaltsCheck() {\n throw new io.cucumber.java.PendingException();\n }",
"public void testCaseOne() {\n\t\tgrcbal3 = new GRCbal3();\n\n\t\t// first tick\n\t\tgrcbal3.doTick(grcbal3.a);\n\t\tassertEquals(grcbal3.a.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.b.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.c.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.d.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.e.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.t.isPresent(), PRESENT);\n\n\t\t// second tick not necessary because the program terminates after the\n\t\t// first\n\t\t// tick\n\t\t/*\n\t\t * grcbal3.doTick(); assertEquals(grcbal3.A.isPresent(), ABSENT);\n\t\t * assertEquals(grcbal3.B.isPresent(), ABSENT);\n\t\t * assertEquals(grcbal3.C.isPresent(), ABSENT);\n\t\t * assertEquals(grcbal3.D.isPresent(), ABSENT);\n\t\t * assertEquals(grcbal3.E.isPresent(), ABSENT);\n\t\t * assertEquals(grcbal3.T.isPresent(), ABSENT);\n\t\t */\n\n\t}",
"@Test\n public void testTurnHeaterOnPCT() {\n settings.setSetting(Period.MORNING, DayType.WEEKDAY, 69); \n thermo.setPeriod(Period.MORNING);\n thermo.setDay(DayType.WEEKDAY);\n thermo.setCurrentTemp(63); // clause a\n thermo.setThresholdDiff(5); // clause a\n thermo.setOverride(true); // clause b\n thermo.setOverTemp(70); // clause c\n thermo.setMinLag(10); // clause d\n thermo.setTimeSinceLastRun(12); // clause d\n assertTrue (thermo.turnHeaterOn(settings)); \n }",
"public void fail() {\r\n\t\tcontestantIt.currentC().updatePoints(-FAIL);\r\n\t}",
"@Test\n public void testResetAndCanRetry() {\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n rc.reset();\n\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n }",
"@Then(\"Assert the success of Access & exfiltrate data within the victim's security zone\")\npublic void assaccessexfiltratedatawithinthevictimssecurityzone(){\n}",
"public void isSatisfiable() throws SolverException, InterruptedException {\n final BooleanFormulaManager bmgr = context.getFormulaManager().getBooleanFormulaManager();\n if (bmgr.isFalse(formulaUnderTest)) {\n failWithoutActual(\n Fact.fact(\"expected to be\", \"satisfiable\"),\n Fact.fact(\"but was\", \"trivially unsatisfiable\"));\n return;\n }\n\n try (ProverEnvironment prover = context.newProverEnvironment()) {\n prover.push(formulaUnderTest);\n if (!prover.isUnsat()) {\n return; // success\n }\n }\n\n reportUnsatCoreForUnexpectedUnsatisfiableFormula();\n }",
"public void succeededChallenge() {\n int point = players.get(indexOfActivePlayer).getPoint();\n int pointToAdd = categories.get(indexOfActiveCategory).getActiveChallengePoint();\n point += pointToAdd;\n players.get(indexOfActivePlayer).setPoint(point);\n addGameRound(true);\n playedRounds++;\n updateActivePlayer();\n updateActiveChallenge();\n }",
"public abstract void isASRRejection(long ms);",
"@Override\n public void testAssumptionFailure(Failure failure) {\n exception = new AssumptionViolatedException(failure.getException().getMessage());\n exception.setStackTrace(failure.getException().getStackTrace());\n ;\n }",
"private boolean setIsSuccessful() {\n\t\tisSuccessful = false;\n\t\tRandom rand = new Random();\n\t\tint val = rand.nextInt(50);\n\t\tif (val % 2 == 0) {\n\t\t\tisSuccessful = true;\n\t\t}\n\t\treturn isSuccessful;\n\t}",
"@Given(\"prepare to Access & exfiltrate data within the victim's security zone\")\npublic void preaccessexfiltratedatawithinthevictimssecurityzone(){\n}",
"@Test\r\n\tpublic void testDetermineMatchWinner1() {\n\t\tassertTrue(\"Error determining correct winner\", false);\r\n\t\t//Check that player records have been updated correctly\r\n\t\tassertTrue(\"Error updating player records\", false);\r\n\t}",
"boolean isFailure();",
"@Test\n public void testSubsequentRunsWithPenalizingConstraint() {\n System.out.println(\" - test subsequent runs with penalizing constraint\");\n // set constraint\n problem.addPenalizingConstraint(constraint);\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform 3 times as many runs as usual for this harder problem (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchLowTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchLowTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchMedTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchMedTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchHighTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchHighTemp.getBestSolution(), data).getPenalty());\n }\n }",
"private boolean runMultiSampleCase() {\n\t\tArrayList<Candidate> candidates = collectTrioCandidates();\n\n\t\t// Then, check the candidates for all trios around affected individuals.\n\t\tfor (Candidate c : candidates)\n\t\t\tif (isCompatibleWithTriosAroundAffected(c))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}",
"void abortChallenge();",
"@Test\n public void test_UnsuccessfulTravel() {\n \n setup(1, 1);\n \n SolarSystems.ADI.changeLocation(SolarSystems.SHALKA);\n \n // Tests the player's current fuel.\n assertEquals(1, player.getFuel());\n \n // Tests the player's current location.\n assertEquals(SolarSystems.ADI, player.getSolarSystems());\n \n }",
"@Test\n public void testIsSolved() {\n setUpCorrect();\n assertTrue(boardManager.puzzleSolved());\n swapFirstTwoTiles();\n assertFalse(boardManager.puzzleSolved());\n }",
"@Override\r\n\tpublic boolean runAgain(CompilationUnit unit) {\n\t\treturn false;\r\n\t}",
"public void setTruthChallenge() {\n while (!(getActiveChallenge()).contains(\"Truth\")) {\n categories.get(indexOfActiveCategory).increaseIndexOfActiveChallenge();\n }\n }",
"@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}",
"void checkWinner() {\n\t}",
"private void checkForAccident(double time) {\n\n\t\tdouble chance = .005D;\n\n\t\t// Materials science skill modification.\n\t\tint skill = getEffectiveSkillLevel();\n\t\tif (skill <= 3) {\n\t\t\tchance *= (4 - skill);\n\t\t} else {\n\t\t\tchance /= (skill - 2);\n\t\t}\n\n\t\t// Modify based on the workshop building's wear condition.\n\t\tchance *= workshop.getBuilding().getMalfunctionManager().getWearConditionAccidentModifier();\n\n\t\tif (RandomUtil.lessThanRandPercent(chance * time)) {\n\n\t\t\tif (person != null) {\n//\t\t\t\tlogger.info(\"[\" + person.getLocationTag().getShortLocationName() + \"] \" + person.getName() + \" has accident while manufacturing good.\");\n\t\t\t\tworkshop.getBuilding().getMalfunctionManager().createASeriesOfMalfunctions(person);\n\t\t\t} else if (robot != null) {\n//\t\t\t\tlogger.info(\"[\" + robot.getLocationTag().getShortLocationName() + \"] \" + robot.getName() + \" has accident while manufacturing godd.\");\n\t\t\t\tworkshop.getBuilding().getMalfunctionManager().createASeriesOfMalfunctions(robot);\n\t\t\t}\n\t\t}\n\t}",
"private static void checkReplay(final IProverSequent sequent, final IPRProof proof) throws CoreException {\n\t\tfinal IProofSkeleton oldSkel = proof.getSkeleton(factory, null);\n\t\tfinal IProofTree replayTree = ProverFactory.makeProofTree(sequent, null);\n\t\tfinal IProofTreeNode oldRoot = replayTree.getRoot();\n\t\tfinal Object result = replayTac(oldSkel).apply(oldRoot, null);\n\t\tassertEquals(null, result);\n\t\tassertTrue(replayTree.isClosed());\n\t}",
"boolean isFail();",
"public abstract boolean repOk();",
"@When(\"Try to Attempt well-known or guessable resource locations\")\npublic void tryattemptwellknownorguessableresourcelocations(){\n}",
"@Test(timeout = 4000)\n public void test022() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"$lPgx`N_R\");\n assertFalse(boolean0);\n }",
"@Override\n public void verifyDeterministic() throws NonDeterministicException {\n }",
"@Test\n public void testDecisionRule2() throws IOException {\n \n Data data = getDataObject(\"./data/adult.csv\");\n DataHandle handle = data.getHandle();\n \n RiskModelPopulationUniqueness model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getPopulationBasedUniquenessRisk();\n double sampleUniqueness = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getSampleBasedUniquenessRisk().getFractionOfUniqueRecords();\n double populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n \n if (model.getPopulationUniquenessModel() == PopulationUniquenessModel.PITMAN) {\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.27684993883653597) == 0);\n } else if (model.getPopulationUniquenessModel() == PopulationUniquenessModel.ZAYATZ) {\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.3207402393466189) == 0);\n } else {\n fail(\"Unexpected convergence of SNB\");\n }\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.2d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.3577099234829125d) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.01d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.1446083531167384) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 1d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.5142895033485844) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) == 0);\n }",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"@Test\n public void testCalcProbTheta() throws Exception {\n\n double guessProb1 = ItemResponseTheory.calcProbTheta(c, lambda, theta1, alpha1);\n double guessProb2 = ItemResponseTheory.calcProbTheta(c, lambda, theta2, alpha1);\n double guessProb3 = ItemResponseTheory.calcProbTheta(c, lambda, theta3, alpha1);\n double guessProb4 = ItemResponseTheory.calcProbTheta(c, lambda, theta4, alpha1);\n double guessProb5 = ItemResponseTheory.calcProbTheta(c, lambda, theta5, alpha1);\n double guessProb6 = ItemResponseTheory.calcProbTheta(c, lambda, theta6, alpha1);\n double guessProb7 = ItemResponseTheory.calcProbTheta(c, lambda, theta7, alpha1);\n\n double ans1 = 0.2;\n double ans2 = 0.21;\n double ans3 = 0.23;\n double ans4 = 0.3;\n double ans5 = 0.47;\n double ans6 = 0.73;\n double ans7 = 0.9;\n\n double tolerance = 0.005;\n\n assertTrue(\"Prob(theta1)\", Math.abs(guessProb1 - ans1)< tolerance);\n assertTrue(\"Prob(theta2)\", Math.abs(guessProb2 - ans2) < tolerance);\n assertTrue(\"Prob(theta3)\", Math.abs(guessProb3 - ans3) < tolerance);\n assertTrue(\"Prob(theta4)\", Math.abs(guessProb4 - ans4) < tolerance);\n assertTrue(\"Prob(theta5)\", Math.abs(guessProb5 - ans5) < tolerance);\n assertTrue(\"Prob(theta6)\", Math.abs(guessProb6 - ans6) < tolerance);\n assertTrue(\"Prob(theta7)\", Math.abs(guessProb7 - ans7) < tolerance);\n\n }",
"@Test\n public void testCaseOfIntFirstNoMatch() {\n long l = 42L;\n AtomicBoolean success = new AtomicBoolean(false);\n match(l)\n .caseOf(13L, fail)\n .caseOf(42L, o -> success.set(true));\n\n assertTrue(success.get());\n }",
"@Test\n public void testOtherwise() {\n AtomicBoolean success = new AtomicBoolean(false);\n match(\"foo\").otherwise(s -> success.set(true));\n\n assertTrue(success.get());\n }",
"@Test\n\tpublic void happyCheck() {\n\t\tMoodAnalyser moodAnalyser;\n\n\t\tmoodAnalyser = new MoodAnalyser(null);\n\n\t\tString mood;\n\t\ttry {\n\t\t\tmood = moodAnalyser.analyseMood();\n\t\t\tAssert.assertEquals(\"HAPPY\", mood);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}",
"@Override\n public void verifyResult() {\n assertThat(calculator.getResult(), is(4));\n }",
"public UnitTestData() throws Exception {\n String[] runsData = {\n \"1,1,A,1,No,No,4\", // 0 (a No before first yes Security Violation)\n \"2,1,A,1,No,No,2\", // 0 (a No before first yes Compilation Error)\n \"3,1,A,1,No,No,1\", // 20 (a No before first yes)\n \"4,1,A,3,Yes,No,0\", // 3 (first yes counts Minute points but never Run Penalty points)\n \"5,1,A,5,No,No,1\", // zero -- after Yes\n \"6,1,A,7,Yes,No,0\", // zero -- after Yes\n \"7,1,A,9,No,No,1\", // zero -- after Yes\n \"8,1,B,11,No,No,1\", // zero -- not solved\n \"9,2,A,48,No,No,4\", // 0 (a No before first yes Security Violation)\n \"10,2,A,50,Yes,No,0\", // 50 (minute points; no Run points on first Yes)\n \"11,2,B,35,No,No,1\", // zero -- not solved\n \"12,2,B,40,No,No,1\", // zero -- not solved\n };\n\n // Assign half eams random team member names\n addTeamMembers(contest, getTeamAccounts(contest).length / 2, 5);\n\n assertEquals(\"Expectig team member names\", 5, getFirstAccount(contest, Type.TEAM).getMemberNames().length);\n\n assertEquals(\"team count\", 120, contest.getAccounts(Type.TEAM).size());\n\n for (String runInfoLine : runsData) {\n SampleContest.addRunFromInfo(contest, runInfoLine);\n }\n\n Problem problem = contest.getProblems()[0];\n Account judge = getFirstAccount(contest, Type.JUDGE);\n generateClarifications(contest, 20, problem, judge.getClientId(), false, false);\n generateClarifications(contest, 20, problem, judge.getClientId(), true, false);\n generateClarifications(contest, 20, problem, judge.getClientId(), true, true);\n\n sampleContest.assignSampleGroups(contest, \"North Group\", \"South Group\");\n\n assertEquals(\"Runs\", 12, contest.getRuns().length);\n\n }",
"@Test\n\tpublic void preventTakeOffWhenStormyWeather() {\n\t\tException exception = new Exception();\n\n\t\ttry {\n\t\t\theathrow.landing(tap);\n\t\t\t// airport instance return stormy weather\n\t\t\twhen(weatherMock.getWeather()).thenReturn(\"stormy\");\n\t\t\theathrow.takeoff(tap);\n\t\t} catch (Exception e) {\n\t\t\texception = e;\n\t\t}\n\n\t\tassertEquals(\"Not allowed to takeoff in stormy weather\", exception.getMessage());\n\t\tassertEquals(1, heathrow.hangar.size());\n\t}",
"@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 }",
"@Test(timeout = 4000)\n public void test063() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"\");\n assertFalse(boolean0);\n }",
"Boolean getCompletelyCorrect();",
"@Test\n public void testitFailNeverSingleThread() throws Exception {\n File testDir = ResourceExtractor.simpleExtractResources(getClass(), \"/mng-0095\");\n\n Verifier verifier = newVerifier(testDir.getAbsolutePath());\n verifier.setAutoclean(false);\n verifier.deleteDirectory(\"target\");\n verifier.deleteDirectory(\"subproject1/target\");\n verifier.deleteDirectory(\"subproject2/target\");\n verifier.deleteDirectory(\"subproject3/target\");\n verifier.addCliArgument(\"--fail-never\");\n verifier.setLogFileName(\"log-fn-mt1.txt\");\n verifier.addCliArgument(\"-Dmaven.threads.experimental=1\");\n verifier.addCliArgument(\"org.apache.maven.its.plugins:maven-it-plugin-touch:touch\");\n verifier.execute();\n\n verifier.verifyFilePresent(\"target/touch.txt\");\n verifier.verifyFileNotPresent(\"subproject1/target/touch.txt\");\n verifier.verifyFilePresent(\"subproject2/target/touch.txt\");\n verifier.verifyFilePresent(\"subproject3/target/touch.txt\");\n }",
"boolean checkVerification();",
"@Test\n public void shouldNotGiveQuestionIfAllQuestionsHaveBeenAnswered() {\n attributes.put(FinancialPlanningSpeechlet.GOAL_AMOUNT_KEY, 1000.0);\n attributes.put(FinancialPlanningSpeechlet.MONTHLY_CONTRIBUTION_KEY, 1000.0);\n attributes.put(FinancialPlanningSpeechlet.GOAL_PERIOD_KEY, 1000.0);\n String question = NextQuestionFactory.get(session);\n\n assertThat(question, Is.is(\"\"));\n }",
"@Test\n public void repairSingleTable()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = new TableReference(\"ks\", \"tb\");\n\n createKeyspace(tableReference.getKeyspace(), 3);\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n createTable(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS).until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(myFaultReporter, never()).raise(any(RepairFaultReporter.FaultCode.class), anyMapOf(String.class, Object.class));\n }",
"@Override\n\tpublic void verifyRateQuestionEnabledWithEveryQuestion() {\n\t\t\n\t}",
"public void doLearnTrials() {\n //clearAreaReset();\n\n int action = 0;\n float[] checkTable = getRplaceTable(myIal);\n\n for(int trial = 0; trial < learnTrials; trial++) { //For each of the learning trials.....\n\n //myIal.wait(500);\n //Do an IAL action ***************************************************************************************************************************************\n\n //Given the current state... do a random action\n action = getRandAction();\n if(myIal.myState == Agent.State.PLACE) {\n checkTable = myIal.getPlaceTable(myIal.locx, myIal.locy, myIal.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n myIal.updateQtable(myIal.getPlaceTable(myIal.locx, myIal.locy, myIal.locz), \n action, getRplaceTable(myIal)); //Ial updates table\n if(getRplaceTable(myIal)[action] > 0) {\n myIal.myState = Agent.State.MOVE;\n }\n }\n else if(myIal.myState == Agent.State.MOVE) {\n checkTable = myIal.getMoveTable(myIal.locx, myIal.locy, myIal.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n myIal.updateQtable(myIal.getMoveTable(myIal.locx, myIal.locy, myIal.locz), \n action, getRmoveTable(myIal)); //Ial updates table\n myIal.doAction(action);\n myIal.myState = Agent.State.PLACE;\n }\n \n //my2Ial.wait(500);\n //********************************************************************************************************************************************************\n //Do a 2IAL action\n //Given current state... do an action\n action = getRandAction();\n if(my2Ial.myState == Agent.State.PLACE) {\n checkTable = my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n my2Ial.updateQtable(my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz),\n action, getRplaceTable(my2Ial)); //2Ial updates table\n if(getRplaceTable(my2Ial)[action] > 0) {\n my2Ial.myState = Agent.State.MOVE;\n }\n } else if(my2Ial.myState == Agent.State.MOVE) {\n checkTable = my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n my2Ial.updateQtable(my2Ial.getMoveTable(my2Ial.locx, my2Ial.locy, my2Ial.locz), \n action, getRmoveTable(my2Ial)); //2Ial updates table\n my2Ial.doAction(action);\n my2Ial.myState = Agent.State.PLACE;\n }\n }\n }",
"boolean hasPass();",
"boolean hasPass();",
"@Test\n\t\tpublic void noApplyHyp() {\n\t\t\tassertFailure(\" ;H; ;S; 1=1 |- {1}⊆S\");\n\t\t}",
"@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }",
"public abstract boolean attack(TemporaryCharm i);",
"@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }",
"@Then(\"Assert the success of Determine application's/system's password policy\")\npublic void assdetermineapplicationssystemspasswordpolicy(){\n}",
"private boolean isUtilityFailure(){\n\n if (this.selectedTrain.getAC() == -1||\n this.selectedTrain.getHeat() == -1 || this.selectedTrain.getLights() == -1\n || this.selectedTrain.getLeftDoor() == -1 || this.selectedTrain.getRightDoor() == -1){\n return true; // there is a utility failure..\n }\n\n return false; // there isn't a utility failure\n }",
"boolean hasErrorTime();",
"@Test\n public void shouldStartNewGameIfNotAlreadyOneExisting() {\n\n boolean expResult = true ;\n boolean result = scoreService.tryNewGame() ;\n assertThat(expResult, is(result)) ;\n }",
"@Given(\"prepare to Attempt sending crafted records to DNS cache\")\npublic void preattemptsendingcraftedrecordstodnscache(){\n}",
"static void checkCompleteness(Piece piece, Context context) {\n\t\tif (Helper.isSolved()) { //puzzle is solved\n \t\tpuzzleComplete(context); //cleanup\n \t} else {\n \t\tif(Helper.isPieceCorrect(piece)) { //piece is in the correct position and orientation\n \t\t\tHelper.markPiece(piece, true); //mark the piece as correct\n \t\t}\n \t}\n\t}",
"private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }",
"@Test\n public void idempotentcyTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"100\");\n\n paymentDto = initPayment(inAccountId, outAccountId, \"100\");\n\n final String paymentId = paymentDto.getId();\n\n\n //we mistakenly try to confirm unauthorized payment (even twice) - that is OK, payment should stay in INITIAL\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status INITIAL\", PaymentStatus.INITIAL, paymentDto.getStatus());\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status INITIAL\", PaymentStatus.INITIAL, paymentDto.getStatus());\n\n\n //eventually we authorize payment\n\n paymentDto = authorizePayment(paymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n paymentDto = authorizePayment(paymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //and confirm\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n }",
"@Test\n void basicTest() {\n final OSEntropyCheck.Report report =\n assertDoesNotThrow(() -> OSEntropyCheck.execute(), \"Check should not throw\");\n assertTrue(report.success(), \"Check should succeed\");\n assertNotNull(report.elapsedNanos(), \"Elapsed nanos should not be null\");\n assertTrue(report.elapsedNanos() > 0, \"Elapsed nanos should have a positive value\");\n assertNotNull(report.randomLong(), \"A random long should have been generated\");\n }",
"@LargeTest\n public void testFisheyeApproximateRelaxed() {\n TestAction ta = new TestAction(TestName.FISHEYE_APPROXIMATE_RELAXED);\n runTest(ta, TestName.FISHEYE_APPROXIMATE_RELAXED.name());\n }",
"@Test\n public void repairSingleTable()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n\n schedule(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }",
"@Then(\"^I will be full$\")\n public void i_will_be_full() throws Throwable {\n }",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n TechnicalInformation technicalInformation0 = lovinsStemmer0.getTechnicalInformation();\n assertFalse(technicalInformation0.hasAdditional());\n }",
"boolean isMet();",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAutoStandBy() {\n\t\tboolean flag = oTest.checkAutoStandBy();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"public void mo34875a(Throwable th) {\n boolean[] a = m45645a();\n InstabugSDKLogger.m46624e(C9780c.class, \"Something went wrong while do fetching features request\", th);\n a[42] = true;\n }"
] | [
"0.5747251",
"0.5723641",
"0.5701876",
"0.5686421",
"0.5659866",
"0.5637913",
"0.5623076",
"0.5584969",
"0.55464745",
"0.5476323",
"0.5445006",
"0.5424495",
"0.5417667",
"0.5416428",
"0.5383448",
"0.5378755",
"0.53687584",
"0.5354661",
"0.5338001",
"0.5335732",
"0.5317575",
"0.5309493",
"0.5278455",
"0.5261222",
"0.52488637",
"0.5240851",
"0.52407444",
"0.52324986",
"0.52312744",
"0.5230214",
"0.5222015",
"0.5215627",
"0.5207987",
"0.5199991",
"0.51890653",
"0.5185142",
"0.517661",
"0.5170343",
"0.51644397",
"0.51504076",
"0.51498383",
"0.51368153",
"0.5133087",
"0.5128424",
"0.51283085",
"0.5124398",
"0.5113772",
"0.5110136",
"0.51074046",
"0.51063657",
"0.50898856",
"0.50801206",
"0.50720227",
"0.50713223",
"0.5057164",
"0.5056578",
"0.5053933",
"0.5042596",
"0.5038987",
"0.5034331",
"0.50328493",
"0.50315064",
"0.50287557",
"0.5024197",
"0.50211614",
"0.5020328",
"0.50188607",
"0.50175536",
"0.50009805",
"0.49902114",
"0.49854863",
"0.49835074",
"0.49824557",
"0.4982054",
"0.4981833",
"0.49808925",
"0.497791",
"0.49739003",
"0.4969541",
"0.4969541",
"0.49660867",
"0.49660823",
"0.49583355",
"0.4955716",
"0.49527845",
"0.49497563",
"0.49489728",
"0.49473616",
"0.49426165",
"0.49384502",
"0.49296916",
"0.49247754",
"0.49201608",
"0.49181437",
"0.49173844",
"0.49168158",
"0.49154466",
"0.4914604",
"0.4912695",
"0.49083728"
] | 0.5363521 | 17 |
Ensures that the Rmi tactic succeeds on several hypotheses. | @Test
public void applyManyHyp() {
assertSuccess(" ;H; ;S; x∈{1,2} ;; {1}⊆S |- ⊥",
rm("", ri("", rm("1.0", empty))));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Given(\"^I have multiple trips in Journeys$\")\n public void iHaveMultipleTripsInJourneys() throws Throwable {\n throw new PendingException();\n }",
"private boolean runMultiSampleCase() {\n\t\tArrayList<Candidate> candidates = collectTrioCandidates();\n\n\t\t// Then, check the candidates for all trios around affected individuals.\n\t\tfor (Candidate c : candidates)\n\t\t\tif (isCompatibleWithTriosAroundAffected(c))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}",
"@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}",
"@Test\n\t\tpublic void applyOnceHyp() {\n\t\t\tassertSuccess(\" ;H; ;S; x⊆ℤ |- ⊥\", ri(\"\", empty));\n\t\t}",
"public void testSUBORDINARY_MULTIPLE13() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 59, \"blah\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"@Test\n\t\tpublic void applyOnceGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; x ∈ ℤ ;; y ∈ ℤ |- x↦y ∈ id\", rm(\"\", empty));\n\t\t}",
"@Test\r\n public void testToBeOrNotToBe() throws IOException {\r\n System.out.println(\"testing 'To be or not to be' variations\");\r\n String[] sentences = new String[]{\r\n \"to be or not to be\", // correct sentence\r\n \"to ben or not to be\",\r\n \"ro be ot not to be\",\r\n \"to be or nod to bee\"};\r\n\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n for (String s : sentences) {\r\n String output = sc.correctPhrase(s);\r\n System.out.println(String.format(\"Input \\\"%0$s\\\" returned \\\"%1$s\\\"\", s, output));\r\n collector.checkThat(\"input sentence: \" + s + \". \", \"to be or not to be\", IsEqual.equalTo(output));\r\n }\r\n }",
"public static void resultOfPlayAllCorrect() {\n\t\tString mark=\"null\";\n\t\ttry {\n\t\t\tmark=PlayTrivia.playAllRightAnswers();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tif(mark==\"Sucsses\") {\n\t\t\tSystem.out.println(\"Test end page has:\" + mark + \" Test pass\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Test end page - failed\");\n\t\t}\n\t}",
"@Test\n\t\tpublic void noApplyHyp() {\n\t\t\tassertFailure(\" ;H; ;S; 1=1 |- {1}⊆S\");\n\t\t}",
"@Test\n\t\tpublic void applyRecusivelyHyp() {\n\t\t\tassertSuccess(\" ;H; ;S; s⊆ℤ ;; r∈s ↔ s |- ⊥\",\n\t\t\t\t\trm(\"\", ri(\"\", ri(\"\", rm(\"2.1\", empty)))));\n\t\t}",
"public void testTIERCED3() throws Exception {\n\t\tObject retval = execLexer(\"TIERCED\", 83, \"blah\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"TIERCED\", expecting, actual);\n\t}",
"public void testSuccesiveConjunctiveTermsOk() throws Exception\n {\n resolveAndAssertSolutions(\"[[f(a), g(b), h(c)], (?- f(X), g(Y), h(Z)), [[X <-- a, Y <-- b, Z <-- c]]]\");\n }",
"@Then(\"Assert the success of Attempt well-known or guessable resource locations\")\npublic void assattemptwellknownorguessableresourcelocations(){\n}",
"public void testSUBORDINARY_MULTIPLE3() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 49, \"chevronel\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"public void testSUBORDINARY_MULTIPLE14() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 60, \"xyz\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"public void testSUBORDINARY_MULTIPLE11() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 57, \"pale\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"void pass() {\r\n if (m1 >=35 && m2>=35 && m3>=35) {\r\n System.out.println(\"pass\");\r\n } else {\r\n System.out.println(\"fail\");\r\n }\r\n }",
"public void testSUBORDINARY_MULTIPLE9() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 55, \"bend\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"@Test\n void _correctThenCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableDependentReceiver(), \"!=\", assingablePair.getIndexdependentAssignable());\n }\n }\n }",
"public void testSUBORDINARY_MULTIPLE12() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 58, \"pales\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"@Test\n public void testIsValidTap() {\n setUpCorrect();\n assertTrue(boardManager.isValidTap(11));\n assertTrue(boardManager.isValidTap(14));\n assertFalse(boardManager.isValidTap(10));\n }",
"public static void incorrect3() {\r\n\r\n System.out.println(\" *---*\");\r\n System.out.println(\" | |\");\r\n System.out.println(\" 0 |\");\r\n System.out.println(\" /| | Incorrect - 3\");\r\n System.out.println(\" |\");\r\n System.out.println(\" |\");\r\n System.out.println(\"==========\");\r\n }",
"@Test\n public void testTargetSquares_cannotEnterGate() {\n Board board = new Board(p1, p2);\n Token ant = p1.getFromSupply(BugType.SPIDER);\n board.addToken(ant, 0, 3);\n board.addToken(p2.getFromSupply(BugType.QUEEN_BEE), 1, 0);\n board.addToken(p2.getFromSupply(BugType.SPIDER), 2, 0);\n board.addToken(p2.getFromSupply(BugType.GRASSHOPPER), 2, 1);\n board.addToken(p2.getFromSupply(BugType.SOLDIER_ANT), 0, 1);\n board.addToken(p2.getFromSupply(BugType.BEETLE), 0, 2);\n\n List<Hex> targets = Rules.getInstance().getTargetHexes(ant, board);\n assertEquals(2, targets.size());\n assertTrue(targets.contains(board.getHex(-1, 1)));\n assertTrue(targets.contains(board.getHex(3, 1)));\n }",
"@Test\n\tpublic void checkHowManyTripsExists() {\n\t\tassertEquals(Trains.numberOfTrips(\"C\", \"C\", 3), 2);\n\t}",
"@Test\r\n\tpublic void testTournamentStrategiesConditions() {\r\n\t\tassertTrue(cl.checkTournamentStrategiesConditions(tags[4]));\r\n\t\tassertFalse(cl.checkTournamentStrategiesConditions(tags2[4]));\r\n\t}",
"@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 }",
"public void testSUBORDINARY_MULTIPLE10() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 56, \"bends\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"public void testMETAL3() throws Exception {\n\t\tObject retval = execLexer(\"METAL\", 130, \"azure\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"METAL\", expecting, actual);\n\t}",
"@Test\n public void TestIlegalCorrectInputCheck(){\n Assert.assertEquals(player.CorrectInputCheck(\"horisonaz\",5,1,1)\n ,false , \" check horisontal spelling\"\n );\n\n //illegal : check vertical\n Assert.assertEquals(player.CorrectInputCheck(\"verticles\",5,1,1)\n ,false , \" check vertical spelling\"\n );\n\n //illegal : place a 5 ship horisontal at 0,1 outside of the grid\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,0,1)\n ,false,\" illegal : place a 5 ship horisontal at 0,1 outside of the grid \"\n );\n\n // illegal : place a 5 ship horisontal at 1,0 outside of the grid\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,0)\n ,false, \" illegal : place a 5 ship horisontal at 1,0 outside of the grid \"\n );\n\n // illegal : place a 5 ship horisontal at 7,1 ship is to big it goes outside the grid\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,7,1)\n ,false , \" illegal : place a 5 ship horisontal at 7,1 outside of the grid \"\n );\n\n // illegal : place a 5 ship horisontal at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,7)\n ,false , \" illegal : place a 5 ship horisontal at 1,7 outside of the grid \"\n );\n\n\n }",
"@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }",
"@Test public void testMultipleConfirmed() throws IOException {\n CrosswordBoard okBoard = new CrosswordBoard(\"puzzles/multipleConfirmed.puzzle\");\n assertEquals(\" _ _ _ \\n_ _ _ \\n _ _ _ \\n _ \\n _ \\n _ \\n\", okBoard.toString());\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"1across\", \"car\", \"p1\"));\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"3across\", \"tax\", \"p1\"));\n assertEquals(\" c a r \\n_ _ _ \\n t a x \\n _ \\n _ \\n _ \\n\", okBoard.toString());\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"1down\", \"bob\", \"p1\"));\n assertEquals(\" b _ _ \\n_ o _ \\n b _ _ \\n _ \\n _ \\n _ \\n\", okBoard.toString());\n\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"1across\", \"car\", \"p1\"));\n assertEquals(\" c a r \\n_ _ _ \\n _ _ _ \\n _ \\n _ \\n _ \\n\", okBoard.toString());\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"2across\", \"mat\", \"p1\"));\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"3across\", \"tax\", \"p1\"));\n // same as word already there\n assertEquals(Outcome.SAME_WORD, okBoard.tryChallenge(\"1across\", \"car\", \"p2\"));\n // originally correct\n assertEquals(Outcome.FAILED, okBoard.tryChallenge(\"1across\", \"cat\", \"p2\"));\n // confirmed since was originally correct\n assertEquals(Outcome.CONFIRMED, okBoard.tryChallenge(\"1across\", \"cat\", \"p2\"));\n assertEquals(Outcome.FAILED, okBoard.tryChallenge(\"2across\", \"sat\", \"p2\"));\n assertEquals(Outcome.FAILED, okBoard.tryChallenge(\"3across\", \"tap\", \"p2\"));\n // no one has claimed the id \"1down\" yet\n assertEquals(Outcome.SUCCESS, okBoard.tryWord(\"1down\", \"cat\", \"p2\"));\n // p2 already claimed \"1down\"\n assertEquals(Outcome.WORD_OWNED, okBoard.tryWord(\"1down\", \"cat\", \"p1\"));\n // p2 was originally correct\n assertEquals(Outcome.FAILED, okBoard.tryChallenge(\"1down\", \"car\", \"p1\"));\n assertEquals(Outcome.FINISHED, okBoard.tryWord(\"4down\", \"xray\", \"p2\"));\n // finished because of the previous move\n assertEquals(Outcome.FINISHED, okBoard.tryWord(\"4down\", \"xray\", \"p2\"));\n assertEquals(2, okBoard.showScore(\"p1\"));\n assertEquals(-1, okBoard.showScore(\"p2\"));\n }",
"public void testOTHER_ORDINARY3() throws Exception {\n\t\tObject retval = execLexer(\"OTHER_ORDINARY\", 23, \"bend\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"OTHER_ORDINARY\", expecting, actual);\n\t}",
"public void testTIERCED2() throws Exception {\n\t\tObject retval = execLexer(\"TIERCED\", 82, \"tierc\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"TIERCED\", expecting, actual);\n\t}",
"@Test\n public void altijdWaar() {\n assertThat(\"Altijd waar\", 6, anyOf(even(), not(even())));\n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort2() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Test\n public void testPactOfNegationRollback() {\n setStrictChooseMode(true);\n\n addCard(Zone.HAND, playerA, \"Silvercoat Lion\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Plains\", 2);\n\n addCard(Zone.BATTLEFIELD, playerB, \"Island\", 5);\n // Counter target spell.\n // At the beginning of your next upkeep, pay {3}{U}{U}. If you don't, you lose the game.\n addCard(Zone.HAND, playerB, \"Pact of Negation\"); // Instant {0}\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Silvercoat Lion\");\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, \"Pact of Negation\", \"Silvercoat Lion\", \"Silvercoat Lion\");\n\n setChoice(playerB, true);\n\n rollbackTurns(2, PhaseStep.PRECOMBAT_MAIN, playerB, 0);\n\n setChoice(playerB, true);\n\n setStopAt(2, PhaseStep.BEGIN_COMBAT);\n execute();\n\n assertGraveyardCount(playerA, \"Silvercoat Lion\", 1);\n assertGraveyardCount(playerB, \"Pact of Negation\", 1);\n\n Assert.assertTrue(\"Player A is still in game\", playerA.isInGame());\n Assert.assertTrue(\"Player B is still in game\", playerB.isInGame());\n\n assertTappedCount(\"Island\", true, 5);\n\n }",
"boolean isTroubled( ExpressionExperiment expressionExperiment );",
"@Test\r\n\tpublic void testTournamentTurnsConditions() {\r\n\t\tassertTrue(cl.checkTournamentTurnsConditions(Integer.parseInt(tags[8])));\r\n\t\tassertFalse(cl.checkTournamentTurnsConditions(Integer.parseInt(tags2[8])));\r\n\t}",
"public void testConjoinedVariablesPropagateAccrossConjunctionFailingOnNonUnification() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"g(x)\", \"h(y)\", \"f(X, Y) :- g(X), h(Y)\" }, \"?- f(X, X)\");\n }",
"public void testSUBORDINARY_MULTIPLE1() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 47, \"bendlet\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"public void doLearnTrials() {\n //clearAreaReset();\n\n int action = 0;\n float[] checkTable = getRplaceTable(myIal);\n\n for(int trial = 0; trial < learnTrials; trial++) { //For each of the learning trials.....\n\n //myIal.wait(500);\n //Do an IAL action ***************************************************************************************************************************************\n\n //Given the current state... do a random action\n action = getRandAction();\n if(myIal.myState == Agent.State.PLACE) {\n checkTable = myIal.getPlaceTable(myIal.locx, myIal.locy, myIal.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n myIal.updateQtable(myIal.getPlaceTable(myIal.locx, myIal.locy, myIal.locz), \n action, getRplaceTable(myIal)); //Ial updates table\n if(getRplaceTable(myIal)[action] > 0) {\n myIal.myState = Agent.State.MOVE;\n }\n }\n else if(myIal.myState == Agent.State.MOVE) {\n checkTable = myIal.getMoveTable(myIal.locx, myIal.locy, myIal.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n myIal.updateQtable(myIal.getMoveTable(myIal.locx, myIal.locy, myIal.locz), \n action, getRmoveTable(myIal)); //Ial updates table\n myIal.doAction(action);\n myIal.myState = Agent.State.PLACE;\n }\n \n //my2Ial.wait(500);\n //********************************************************************************************************************************************************\n //Do a 2IAL action\n //Given current state... do an action\n action = getRandAction();\n if(my2Ial.myState == Agent.State.PLACE) {\n checkTable = my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n my2Ial.updateQtable(my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz),\n action, getRplaceTable(my2Ial)); //2Ial updates table\n if(getRplaceTable(my2Ial)[action] > 0) {\n my2Ial.myState = Agent.State.MOVE;\n }\n } else if(my2Ial.myState == Agent.State.MOVE) {\n checkTable = my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n my2Ial.updateQtable(my2Ial.getMoveTable(my2Ial.locx, my2Ial.locy, my2Ial.locz), \n action, getRmoveTable(my2Ial)); //2Ial updates table\n my2Ial.doAction(action);\n my2Ial.myState = Agent.State.PLACE;\n }\n }\n }",
"public void testConjunctionFailsToResolveWhenSecondPathFails() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"g\", \"f :- g, h\" }, \"?- f\");\n }",
"@Test\n public void TestLegalCorrectInputCheck(){\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,1)\n ,true , \" check horisontal \"\n );\n\n //legal : check vertical spelling\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,1)\n ,true , \" check vertical \"\n );\n\n //legal : place a 5 ship horisontal at 1,1\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,1)\n ,true , \" legal : place a 5 ship horisontal at 1,1 \"\n );\n\n // legal : place a 5 ship horisontal at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,10)\n ,true ,\" legal : place a 5 ship horisontal at 1,10 \"\n );\n\n // legal : place a 5 ship vertical at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,1)\n ,true , \" legal : place a 5 ship vertical at 1,10 \"\n );\n\n // legal : place a 5 ship vertical at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,10,1)\n ,true ,\"000 legal : place a 5 ship vertical at 1,10 \"\n );\n\n // legal : place a 5 ship horisontal at 6,1\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,6,1)\n ,true , \" legal : place a 5 ship horisontal at 6,1 \"\n );\n\n // legal : place a 5 ship vertical at 1,6\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,6)\n ,true ,\"000 legal : place a 5 ship vertical at 10,6 \"\n );\n\n }",
"protected void errorSyntaxis(){\n\t\tchar[] fun = (this.getText()).toCharArray();\n\t\tint pos = fun.length;\n\t\tfor(int i = pos; i > 0;i--)\n\t\t\tvalidSyntaxis(Arrays.copyOfRange(fun,0,i));\n\t}",
"public void failedChallenge() {\n addGameRound(false);\n playedRounds++;\n updateActivePlayer();\n updateActiveChallenge();\n }",
"@Test\n public void moreThanOneCheckerOnToLocation() {\n\n assertTrue(game.move(Location.R1, Location.R2));\n assertTrue(game.move(Location.R1, Location.R3));\n game.nextTurn();\n // to der gerne skulle vaere lovlige og stemme med terningerne\n assertTrue(game.move(Location.R6, Location.R5));\n assertTrue(game.move(Location.R8, Location.R6));\n game.nextTurn();\n assertTrue(game.move(Location.R2, Location.R5));\n assertTrue(game.move(Location.R3, Location.R7));\n game.nextTurn();\n // der staar nu to sorte paa R4\n assertFalse(game.move(Location.R6, Location.R3));\n }",
"public void testDangerSigns() {\n \t// 1. Execute the Classification rule engine to determine patient classifications\n \t// 2. Execute the Treatment rule engine to determine patient treatments\n \texecuteRuleEngines();\n \n // 3. Has the correct number of classifications been determined?\n assertEquals(\"the actual number of patient classifications does not match the expected number\",\n \t\t 2, CcmRuleEngineUtilities.calculateStandardClassificationNumber(getPatientAssessment().getDiagnostics()));\n \n // 4. Have the correct classifications been determined?\n assertEquals(\"incorrect classification assessed\", true, CcmRuleEngineUtilities.classificationPresent(getPatientAssessment().getDiagnostics(), \"Cough for 21 Days or more\"));\n assertEquals(\"incorrect classification assessed\", true, CcmRuleEngineUtilities.classificationPresent(getPatientAssessment().getDiagnostics(), \"Not Able to Drink or Feed Anything\"));\n \n // 5. Have the correct treatments been determined?\n assertEquals(\"incorrect treatment assessed\", true, CcmRuleEngineUtilities.treatmentPresent(getPatientAssessment().getDiagnostics(), \"REFER URGENTLY to health facility\"));\n assertEquals(\"incorrect treatment assessed\", true, CcmRuleEngineUtilities.treatmentPresent(getPatientAssessment().getDiagnostics(), \"Explain why child needs to go to health facility\"));\n assertEquals(\"incorrect treatment assessed\", true, CcmRuleEngineUtilities.treatmentPresent(getPatientAssessment().getDiagnostics(), \"Advise to keep child warm, if 'child is NOT hot with fever'\"));\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\t \n assertEquals(\"incorrect treatment assessed\", true, CcmRuleEngineUtilities.treatmentPresent(getPatientAssessment().getDiagnostics(), \"Write a referral note\"));\n assertEquals(\"incorrect treatment assessed\", true, CcmRuleEngineUtilities.treatmentPresent(getPatientAssessment().getDiagnostics(), \"Arrange transportation and help solve other difficulties in referral\"));\n }",
"@Test(priority = 4)\n public void testVerifyQuestionThree() {\n\t\tassertTrue(true);\n }",
"public void testMETAL1() throws Exception {\n\t\tObject retval = execLexer(\"METAL\", 128, \"or\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"METAL\", expecting, actual);\n\t}",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort1() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToTechnologyAverage, link, travelTimeOnLink);\n\t}",
"public void testConjunctionFailsToResolveWhenFirstPathFails() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"h\", \"f :- g, h\" }, \"?- f\");\n }",
"public void testSUBORDINARY_MULTIPLE5() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 51, \"bar\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"private boolean doTestsPass()\r\n {\r\n return minimalSteps(\"ABCDABCE\") == 8 && minimalSteps(\"ABCABCE\") == 5;\r\n }",
"@Test\r\n public void testSubtractionAsReversion() {\r\n Application.loadQuestions();\r\n assertTrue(Application.allQuestions.contains(\"21 - 7 = ?\") || Application.allQuestions.contains(\"21 - 14 = ?\"));\r\n }",
"public void testFail1() throws Exception {\n helperFail(new String[] {\"j\", \"i\"}\r\n , new String[] {\"I\", \"I\"}\r\n , RefactoringStatus.ERROR);\r\n }",
"public boolean isMultiple()\n {\n \tif (questionNumber == 0) {\n \t\treturn false;\n \t}\n int counter = 0;\n List<Answer> answers = test.getQuestions().get(questionNumber-1).getAnswers();\n for (Answer answer : answers) {\n if (answer.getCorrect()) {\n ++counter;\n if (counter > 1) {\n return true;\n }\n }\n }\n return false;\n }",
"@Then(\"user inputs the answers of the questions as requirment information for GehaltsCheck\")\n public void user_inputs_the_answers_of_the_questions_as_requirment_information_for_GehaltsCheck() {\n throw new io.cucumber.java.PendingException();\n }",
"@Test\n\tpublic void checkMultipleSolutions() {\n\n\t\tOrientationHistogramSift alg = new OrientationHistogramSift(36,2.5,1.5);\n\n\t\tdouble theta0 = 1.2;\n\t\tdouble c0 = Math.cos(theta0);\n\t\tdouble s0 = Math.sin(theta0);\n\t\tdouble theta1 = 2.1;\n\t\tdouble c1 = Math.cos(theta1);\n\t\tdouble s1 = Math.sin(theta1);\n\n\t\tint N = ss.getNumOctaves()*ss.getNumScales();\n\n\t\tfor( int i = 0; i < N; i++ ) {\n\t\t\tImageFloat32 img = ss.getPyramidLayer(i);\n\n\t\t\tint x = img.width/2;\n\t\t\tint y = img.height/2;\n\n\t\t\tss.getDerivativeX(i).set(x, y, (float) c0);\n\t\t\tss.getDerivativeY(i).set(x, y, (float) s0);\n\t\t\tss.getDerivativeX(i).set(x, y + 1, (float) c1);\n\t\t\tss.getDerivativeY(i).set(x, y + 1, (float) s1);\n\t\t}\n\n\t\talg.setScaleSpace(ss);\n\t\talg.process(width/2,height/2,3);\n\n\t\tGrowQueue_F64 found = alg.getOrientations();\n\t\tassertEquals(2,found.size);\n\n\t\t// assume the order for now\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(1.2, found.get(0))) <= tol);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(2.1, found.get(1))) <= tol);\n\t}",
"@Override\n @SuppressFBWarnings(\"BC_UNCONFIRMED_CAST\")\n protected void validateSecurityMethods() throws SuiteBroken {\n // GATTT, PATTT, GHTTT, PHTTT\n this.currentState.combinations.add(\n new Combination(\"GET\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_NONE,\n CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS, CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"POST\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_NONE,\n CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS, CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"GET\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_HTTPSIG, CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS,\n CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"POST\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_HTTPSIG, CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS,\n CombEntry.RESENCR_TLS\n ));\n }",
"public void testSUBORDINARY_MULTIPLE4() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 50, \"chevronels\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"@Given(\"prepare to Attempt well-known or guessable resource locations\")\npublic void preattemptwellknownorguessableresourcelocations(){\n}",
"public void testSUBORDINARY_MULTIPLE6() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 52, \"bars\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"public void testGetValidTrials() {\n exp = new Experiment(\"10\");\n exp.setMinNTrials(5);\n ArrayList<Trial> toSet = this.createTrials();\n exp.setTrials(toSet);\n assertEquals(\"getValidTrials returns wrong amount\", 15, exp.getValidTrials().size());\n assertEquals(\"getValidTrials returns wrong trial\", \"4\", exp.getValidTrials().get(0).getId());\n assertEquals(\"getValidTrials returns wrong trial\", \"14\", exp.getAllTrials().get(exp.getAllTrials().size()-1).getId());\n }",
"@Override\r\n\tpublic void checkAnswer() {\n\t\t\r\n\t}",
"public void testSUBORDINARY_MULTIPLE8() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 54, \"pallets\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"@Test\n public void testSubsequentRunsWithUnsatisfiableConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable constraint\");\n // set constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }",
"public void testSUBORDINARY_MULTIPLE7() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 53, \"pallet\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"private boolean isWrong() {\n\t\treturn wrongMatches >= 5;\n\t}",
"private void performSanityCheckForInput(NumericChoice[] correctNumericChoices)\n throws IllegalArgumentException {\n\n if (correctNumericChoices.length != 1) {\n throw new IllegalArgumentException(\"cannot have more than 1 correct option\");\n }\n }",
"public void testConjunctionInQueryVarUnifyNotLastFailsWhenBindingsDoNotMatch() throws Exception\n {\n resolveAndAssertFailure(new String[] {}, \"?- X = b, X = a, X = a\");\n }",
"public void correctErrors();",
"@Test\n void _correctIfCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableReceiver(), \"=\", assingablePair.getIndexAssignable());\n }\n }\n }",
"public void testSWIMMING_ATTITUDE3() throws Exception {\n\t\tObject retval = execLexer(\"SWIMMING_ATTITUDE\", 223, \"rampant\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"SWIMMING_ATTITUDE\", expecting, actual);\n\t}",
"private boolean isCorrect() {\n\t\t// if a single tile is incorrect, return false\n\t\tfor (Tile tile : tiles) {\n\t\t\tif (!tile.isCorrect()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private boolean isUtilityFailure(){\n\n if (this.selectedTrain.getAC() == -1||\n this.selectedTrain.getHeat() == -1 || this.selectedTrain.getLights() == -1\n || this.selectedTrain.getLeftDoor() == -1 || this.selectedTrain.getRightDoor() == -1){\n return true; // there is a utility failure..\n }\n\n return false; // there isn't a utility failure\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 }",
"private void changeAndVerifyAllRTQOptions(EditPlanDirectToManaged editPlanPage) throws Exception{\n Reporter.log(\"Adjusting RTQ and retirement age to check for all Investment Objective Combinations.\",\n true);\n changeAndVerifyRTQ(editPlanPage, Constants.RiskTolerance.MODERATE);\n changeAndVerifyRTQ(editPlanPage, Constants.RiskTolerance.AGGRESSIVE);\n }",
"public void testGetAllTrials() {\n exp = new Experiment(\"10\");\n ArrayList<Trial> toSet = this.createTrials();\n exp.setTrials(toSet);\n assertEquals(\"getAllTrials returns wrong amount\", 15, exp.getAllTrials().size());\n assertEquals(\"getAllTrials returns wrong trial\", \"0\", exp.getAllTrials().get(0).getId());\n assertEquals(\"getAllTrials returns wrong trial\", \"14\", exp.getAllTrials().get(exp.getAllTrials().size()-1).getId());\n\n }",
"public static void main(String[] args) {\n\n Scanner key = new Scanner(System.in);\n System.out.println(\"Enter yes or no\");\n String answer = key.next();\n\n boolean valid = answer.equalsIgnoreCase(\"yes\") || answer.equalsIgnoreCase(\"no\");\n\n int i = 1;\n while (!valid) {\n System.out.println(\"re=enter\");\n answer = key.next();\n i++;\n\n if (i == 3) {\n answer = answer.equalsIgnoreCase(\"yes\") ? \"you entered yes\" : \"you entered no\";\n if (!valid) {\n System.out.println(\"you have entered wrong answer 3 times. Try again later\");\n break;\n }\n }\n\n\n }\n if (answer.equalsIgnoreCase(\"yes\")) {\n System.out.println(\"you entered yes\");\n }\n if (answer.equalsIgnoreCase(\"no\")) {\n System.out.println(\"you entered no\");\n }\n\n\n }",
"@Test\n\tpublic void runConspicuous(){\n\t\tTestCase tc = new TestCase(\"MateInTwoWithKnightInConspicuousPosition\",\"r2qrk2/1bp1b1pp/p1np4/1p1Q1NB1/4n3/2P5/PP3PPP/RN2R1K1 w - - 0 1\",\"f5h6\");\n\t\tSystem.out.println(\"Running \" + tc.getDescription());\n\t\tSystem.out.println(\"WC# \" + MoveUtil.getMoveCountForTeam(tc.getBoard(), 1));\n\t\tSystem.out.println(\"BC# \" + MoveUtil.getMoveCountForTeam(tc.getBoard(), -1));\n\t\trunUnitTest(tc.getBoard(),tc.getTestAgainstMoves().get(0).getSquare());\n\t}",
"public void checktrap() {\n\t\tfor (int j = 0; j < trap.length; j++) {// go through rows\n\t\t\tfor (int i = 0; i < trap[0].length; i++) {// go though columns\n\t\t\t\tif (trap[j][i]) {\n\t\t\t\t\ttrap(j, i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}",
"abstract public void execNonTurtle(TurtleModel t) throws InvalidCommandException;",
"private void checkAnswer(String input) {\n\t\tif(counter==0)\n\t\t{\n\t\t\tif(input.toLowerCase(Locale.getDefault()).equals(\"moo\"))\n \t{\n \t\tresume();\n \t}\n \telse\n \t{\n \t\twrong();\n \t}\n\t\t}\n\t\tif(counter==1)\n\t\t{\n\t\t\tif(input.toLowerCase(Locale.getDefault()).equals(\"neigh\"))\n \t{\n \t\tresume();\n \t}\n \telse\n \t{\n \t\twrong();\n \t}\n\t\t}\n\t\tif(counter==2)\n\t\t{\n\t\t\tif(input.toLowerCase(Locale.getDefault()).equals(\"oink\"))\n \t{\n \t\tresume();\n \t}\n \telse\n \t{\n \t\twrong();\n \t}\n\t\t}\n\t\tif(counter==3)\n\t\t{\n\t\t\tif(input.toLowerCase(Locale.getDefault()).equals(\"baa\"))\n \t{\n \t\tresume();\n \t}\n \telse\n \t{\n \t\twrong();\n \t}\n\t\t}\n\t\tif(counter==4)\n\t\t{\n\t\t\tif(input.toLowerCase(Locale.getDefault()).equals(\"quack\"))\n \t{\n \t\tresume();\n \t}\n \telse\n \t{\n \t\twrong();\n \t}\n\t\t}\n\t\t\n\t}",
"public void testSUBORDINARY_MULTIPLE2() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_MULTIPLE\", 48, \"bendlets\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_MULTIPLE\", expecting, actual);\n\t}",
"@Test(timeout = 4000)\n public void test34() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n SystemInUtil.addInputLine(\")\");\n jSTerm0.add((Object) \"lc\");\n jSTerm0.isEmpty();\n jSSubstitution0.add((Object) \"lc\");\n jSTerm0.applySubstitutionPF(jSSubstitution0);\n jSTerm0.add((Object) null);\n JSJshopVars.percent = 846;\n StringReader stringReader0 = new StringReader(\"lc\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer0);\n JSSubstitution jSSubstitution1 = new JSSubstitution();\n streamTokenizer0.eolIsSignificant(true);\n // Undeclared exception!\n try { \n jSTerm0.standarizerPredicateForm();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }",
"public void testManyVariablesAcrossCallsOk() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), (f(X, Y, Z) :- g(X), g(Y), g(Z))], (?- f(X, X, X)), [[X <-- x]]]\");\n }",
"private void check(int[][] turns) throws Exception {\n if (turns.length < 10) throw new Exception(\"at least 10 round\");\n for (int i = 0; i < 10; i++) {\n int[] temp = turns[i];\n if (temp.length < 1) throw new Exception(\"at least one throw for each round\");\n if (temp[0] < 0 || temp[0] > 10) throw new Exception(\"illegal score\");\n if (temp[0] == 10) {\n if (temp.length != 1) throw new Exception(\"if you strike,you can only throw once\");\n } else {\n if (temp.length != 2) throw new Exception(\"if you don't strike,you have to throw twice\");\n if (temp[1] + temp[0] > 10) throw new Exception(\"illegal score\");\n }\n }\n\n if (turns[9].length == 1) {\n if (turns.length == 11) {\n if (turns[10].length != 2 || turns[10][0] < 0 || turns[10][0] > 10 || turns[10][0] + turns[10][1] > 10) {\n throw new Exception(\"last tow rounds are illegal\");\n }\n } else if (turns.length == 12) {\n if (turns[10].length != 1 || turns[10][0] != 10 || turns[11].length != 1 || turns[11][0] < 0 || turns[11][0] > 10)\n throw new Exception(\"last tow rounds are illegal\");\n } else throw new Exception(\"last tow rounds are illegal\");\n\n } else if (turns[9].length == 2 && turns[9][0] + turns[9][1] == 10) {\n if (turns.length != 11 || turns[10].length != 1 || turns[10][0] < 0 || turns[10][0] > 10)\n throw new Exception(\"last tow rounds are illegal\");\n }\n }",
"protected boolean isGoedTrio(Speler s1, Speler s2, Speler s3, int ignore) {\r\n if ((s1 != null) && (s2 != null) && (s3 != null)) {\r\n return !s1.isGespeeldTegen(s2, ignore) && !s1.isGespeeldTegen(s3, ignore) && !s2.isGespeeldTegen(s1, ignore)\r\n && !s2.isGespeeldTegen(s3, ignore) && !s3.isGespeeldTegen(s1, ignore)\r\n && !s3.isGespeeldTegen(s2, ignore);\r\n } else {\r\n return false;\r\n }\r\n }",
"boolean hasCorrect();",
"private boolean isNoteworthy(ThingTimeTriple firstTriple, ThingTimeTriple previousTriple)\r\n/* 129: */ {\r\n/* 130:137 */ Mark.say(\r\n/* 131: */ \r\n/* 132: */ \r\n/* 133: */ \r\n/* 134: */ \r\n/* 135: */ \r\n/* 136: */ \r\n/* 137: */ \r\n/* 138: */ \r\n/* 139: */ \r\n/* 140: */ \r\n/* 141: */ \r\n/* 142: */ \r\n/* 143: */ \r\n/* 144: */ \r\n/* 145: */ \r\n/* 146: */ \r\n/* 147: */ \r\n/* 148: */ \r\n/* 149: */ \r\n/* 150: */ \r\n/* 151: */ \r\n/* 152: */ \r\n/* 153: */ \r\n/* 154: */ \r\n/* 155: */ \r\n/* 156: */ \r\n/* 157: */ \r\n/* 158: */ \r\n/* 159: */ \r\n/* 160: */ \r\n/* 161: */ \r\n/* 162: */ \r\n/* 163: */ \r\n/* 164: */ \r\n/* 165: */ \r\n/* 166: */ \r\n/* 167: */ \r\n/* 168: */ \r\n/* 169: */ \r\n/* 170: */ \r\n/* 171: */ \r\n/* 172: */ \r\n/* 173: */ \r\n/* 174:181 */ new Object[] { \"Inputs to isNoteworthy\", firstTriple.english, previousTriple.english });\r\n/* 175:138 */ if (previousTriple == null)\r\n/* 176: */ {\r\n/* 177:139 */ resetReference(firstTriple);\r\n/* 178:140 */ return true;\r\n/* 179: */ }\r\n/* 180:143 */ if (previousTriple.english.equals(firstTriple.english))\r\n/* 181: */ {\r\n/* 182:144 */ Mark.say(new Object[] {\"English is the same\" });\r\n/* 183: */ }\r\n/* 184: */ else\r\n/* 185: */ {\r\n/* 186:147 */ String type = firstTriple.t.getType();\r\n/* 187:148 */ Mark.say(new Object[] {\"Significant types\", type, this.significantEvents });\r\n/* 188:150 */ if (this.significantEvents.contains(type))\r\n/* 189: */ {\r\n/* 190:151 */ Mark.say(new Object[] {firstTriple.english, \"is significant\" });\r\n/* 191: */ \r\n/* 192: */ \r\n/* 193: */ \r\n/* 194:155 */ ThingTimeTriple previousEventOfSameType = (ThingTimeTriple)this.previousTriples.get(type);\r\n/* 195:157 */ if (previousEventOfSameType == null)\r\n/* 196: */ {\r\n/* 197:158 */ resetReference(firstTriple);\r\n/* 198:159 */ return true;\r\n/* 199: */ }\r\n/* 200:162 */ if (overlaps(firstTriple, previousEventOfSameType))\r\n/* 201: */ {\r\n/* 202:167 */ Connections.getPorts(this).transmit(TO_TEXT_VIEWER, new BetterSignal(new Object[] { \"Commentary\", Html.line(\"Events overlap [\" + \r\n/* 203:168 */ previousEventOfSameType.from / 1000L + \" \" + previousEventOfSameType.to / 1000L + \"] [\" + firstTriple.from / 1000L + \" \" + \r\n/* 204:169 */ firstTriple.to / 1000L + \"] \") }));\r\n/* 205: */ }\r\n/* 206: */ else\r\n/* 207: */ {\r\n/* 208:172 */ resetReference(firstTriple);\r\n/* 209:173 */ return true;\r\n/* 210: */ }\r\n/* 211: */ }\r\n/* 212: */ else\r\n/* 213: */ {\r\n/* 214:177 */ Mark.say(new Object[] {firstTriple.english, \"NOT significant\" });\r\n/* 215: */ }\r\n/* 216: */ }\r\n/* 217:180 */ return false;\r\n/* 218: */ }",
"public void testMETAL4() throws Exception {\n\t\tObject retval = execLexer(\"METAL\", 131, \"gold\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"METAL\", expecting, actual);\n\t}",
"@Test\n public void testIsSolved() {\n setUpCorrect();\n assertTrue(boardManager.puzzleSolved());\n swapFirstTwoTiles();\n assertFalse(boardManager.puzzleSolved());\n }",
"@Test(priority = 3)\n public void testVerifyQuestionTwo() {\n\t\tassertTrue(true);\n }",
"public boolean generateFromTactic(Decision decision, int tacticID, boolean considerParentPattern, boolean recursiveParent){\r\n \t\tTactic t = new Tactic();\r\n \t\tt.fromDatabase(tacticID);\r\n \t\tif (t.getID() < 0) return false;\r\n \t\tsetDescription(\"This alternative is generated on the basis of tactic \" + t.getName());\r\n \t\tsetStatus(AlternativeStatus.ATISSUE);\r\n \t\tsetParent(decision);\r\n \r\n \t\ttoDatabase(decision.getID(), RationaleElementType.DECISION);\r\n \t\tfromDatabase(getName());\r\n \t\tRationaleDB db = RationaleDB.getHandle();\r\n \t\tVector<Requirement> nfrs = db.getNFRs();\r\n \t\tboolean isCategoryMatched = false;\r\n \t\tboolean[] isNegQAMatched = new boolean[t.getBadEffects().size()];\r\n \t\tfor (int i = 0; i < isNegQAMatched.length; i++){\r\n \t\t\tisNegQAMatched[i] = false;\r\n \t\t}\r\n \r\n \t\tfor (int i = 0; i < nfrs.size(); i++){\r\n \t\t\t//Contribution matching on negative side of the tactic.\r\n \t\t\tIterator<OntEntry> badI = t.getBadEffects().iterator();\r\n \t\t\twhile (badI.hasNext()){\r\n \t\t\t\tOntEntry cur = badI.next();\r\n \r\n \t\t\t\tIterator<OntEntry> curChildrenI = db.getOntologyElements(cur.getName()).iterator();\r\n \t\t\t\twhile (curChildrenI.hasNext()){\r\n \t\t\t\t\tOntEntry curChild = curChildrenI.next();\r\n \t\t\t\t\tif (curChild.equals(nfrs.get(i).getOntology())){\r\n \t\t\t\t\t\tisNegQAMatched[i] = true;\r\n \t\t\t\t\t\tArgument arg = new Argument();\r\n \t\t\t\t\t\tString argName = \"Requirement Violation - \" + curChild.getName();\r\n \t\t\t\t\t\twhile(RationaleDBUtil.isExist(argName, \"Arguments\")){\r\n \t\t\t\t\t\t\targName = argName + \"~\";\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\targ.setName(argName);\r\n \t\t\t\t\t\targ.setRequirement(nfrs.get(i));\r\n \t\t\t\t\t\targ.setType(ArgType.VIOLATES);\r\n \t\t\t\t\t\targ.setPlausibility(Plausibility.CERTAIN);\r\n \t\t\t\t\t\targ.setAmount(10);\r\n \t\t\t\t\t\targ.setImportance(Importance.ESSENTIAL);\r\n \t\t\t\t\t\targ.setParent(this);\r\n \t\t\t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \r\n \t\t\tif (nfrs.get(i).getOntology().equals(t.getCategory())){\r\n \t\t\t\tArgument arg = new Argument();\r\n \t\t\t\tString argName = \"Requirement Satisfication - \" + t.getCategory().getName();\r\n \t\t\t\twhile(RationaleDBUtil.isExist(argName, \"Arguments\")){\r\n \t\t\t\t\targName = argName + \"~\";\r\n \t\t\t\t}\r\n \t\t\t\targ.setName(argName);\r\n \t\t\t\targ.setRequirement(nfrs.get(i));\r\n \t\t\t\targ.setType(ArgType.SATISFIES);\r\n \t\t\t\targ.setPlausibility(Plausibility.CERTAIN);\r\n \t\t\t\targ.setAmount(10);\r\n \t\t\t\targ.setImportance(Importance.ESSENTIAL);\r\n \t\t\t\targ.setParent(this);\r\n \t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t\tisCategoryMatched = true;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \r\n \r\n \t\t//Add arguments/claims\r\n \t\tif (!isCategoryMatched){\r\n \t\t\tArgument arg = new Argument();\r\n \t\t\tClaim c = new Claim();\r\n \t\t\tString claimName = \"Positive Quality Attribute - \" + t.getCategory().getName();\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Claims\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\tc.setDirection(Direction.IS);\r\n \t\t\targ.setType(ArgType.SUPPORTS);\r\n \t\t\tc.setName(claimName);\r\n \t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\tc.setOntology(t.getCategory());\r\n \t\t\tc.setEnabled(true);\r\n \t\t\tc.toDatabase();\r\n \r\n \t\t\targ.setClaim(c);\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\targ.setName(claimName);\r\n \t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\targ.setDescription(\"\");\r\n \t\t\targ.setAmount(5);\r\n \t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\targ.setParent(this);\t\r\n \t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t}\r\n \t\tfor (int i = 0; i < isNegQAMatched.length; i++){\r\n \t\t\tArgument arg = new Argument();\r\n \t\t\tClaim c = new Claim();\r\n \t\t\tString claimName = \"Negative Quality Attribute - \" + t.getBadEffects().get(i).getName();\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Claims\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n\t\t\tc.setDirection(Direction.IS);\r\n \t\t\targ.setType(ArgType.DENIES);\r\n \t\t\tc.setName(claimName);\r\n \t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\tc.setOntology(t.getBadEffects().get(i));\r\n \t\t\tc.setEnabled(true);\r\n \t\t\tc.toDatabase();\r\n \r\n \t\t\targ.setClaim(c);\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\targ.setName(claimName);\r\n \t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\targ.setDescription(\"\");\r\n \t\t\targ.setAmount(5);\r\n \t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\targ.setParent(this);\t\r\n \t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t}\r\n \t\t//Add impact score.\r\n \t\tif (considerParentPattern){\r\n \t\t\tint score = findWorstTacticPatternScore(decision, t, recursiveParent);\r\n \t\t\tif (score > 0){\r\n \t\t\t\tArgument arg = new Argument();\r\n \t\t\t\tClaim c = new Claim();\r\n\t\t\t\tString claimName = \"Tactic Impact\";\r\n \t\t\t\tc.fromDatabase(claimName);\r\n \t\t\t\tif (c.getID() < 0){\r\n\t\t\t\t\tc.setDirection(Direction.IS);\r\n \t\t\t\t\tc.setName(claimName);\r\n \t\t\t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\t\t\tOntEntry claimOnt = new OntEntry();\r\n \t\t\t\t\tclaimOnt.fromDatabase(TacticPattern.CHANGEONTNAME);\r\n \t\t\t\t\tif (claimOnt.getID() < 0){\r\n \t\t\t\t\t\t//Create a new quality attribute\r\n \t\t\t\t\t\tOntEntry ontParent = new OntEntry();\r\n \t\t\t\t\t\tontParent.fromDatabase(1);\r\n \t\t\t\t\t\tclaimOnt.setName(TacticPattern.CHANGEONTNAME);\r\n \t\t\t\t\t\tclaimOnt.setEnabled(true);\r\n\t\t\t\t\t\tclaimOnt.setImportance(Importance.DEFAULT);\r\n \t\t\t\t\t\tclaimOnt.toDatabase(ontParent.getID());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tc.setOntology(claimOnt);\r\n \t\t\t\t\tc.setEnabled(true);\r\n \t\t\t\t\tc.toDatabase();\r\n \t\t\t\t}\r\n \t\t\t\targ.setClaim(c);\r\n \t\t\t\targ.setType(ArgType.DENIES);\r\n \r\n \t\t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t\t}\r\n \t\t\t\targ.setName(claimName);\r\n \t\t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\t\targ.setDescription(\"\");\r\n \t\t\t\targ.setAmount(score);\r\n \t\t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\t\targ.setParent(this);\t\r\n \t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t}\r\n \t\t}\r\n \t\t//Evaluate\r\n \t\tfromDatabase(name);\r\n\t\tevaluate();\r\n \t\tfromDatabase(name);\r\n \t\treturn true;\r\n \t}",
"@SuppressWarnings(\"rawtypes\")\n void eachGenericTest(Pair[] pr)\n throws Exception\n {\n for (int i = 0; i < pr.length; i++)\n {\n try\n {\n if (!testPair(pr[i]))\n {\n System.err.println(\"Failed on input \" + pr[i].unparsed\n + \". Expected \" + pr[i].parsed);\n fail();\n }\n }\n catch (Exception e)\n {\n System.err.println(\"Parsing error. Failed on input \"\n + pr[i].unparsed + \". Expected \" + pr[i].parsed);\n fail();\n }\n }\n }",
"public void testTIERCED1() throws Exception {\n\t\tObject retval = execLexer(\"TIERCED\", 81, \"tierced\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"TIERCED\", expecting, actual);\n\t}",
"public boolean checkInvalid3(String x) {\n for (int i = 0; i < x.length(); i++) {\n int temp = 0;\n if (!consonants.contains(String.valueOf(x.charAt(i)))) {\n temp = i;\n for (int j = i + 1; j < x.length(); j++) {\n if (!consonants.contains(String.valueOf(x.charAt(j)))) {\n temp++;\n if (j - temp > 0) {\n return true;\n }\n }\n }\n }\n }\n return false;\n }",
"public void testTie() {\n\t\tList<Card> royalFlush1 = hands.get(0).getDeck();\n\t\t\n\t\tList<Card> royalFlush2 = hands.get(1).getDeck();\n\t\t\n\t\tassertEquals(\"AIP wins.\", Tie.settle(10, royalFlush1, royalFlush2));\n\t}"
] | [
"0.5752346",
"0.55827785",
"0.5500831",
"0.54498386",
"0.5415304",
"0.53862536",
"0.5317575",
"0.53083384",
"0.52957594",
"0.5280024",
"0.52001834",
"0.51581365",
"0.511398",
"0.5108659",
"0.51043415",
"0.5089404",
"0.5061142",
"0.50529623",
"0.504911",
"0.5034444",
"0.50307256",
"0.4972243",
"0.49652264",
"0.49652115",
"0.49634638",
"0.49470633",
"0.49371156",
"0.49357182",
"0.49110383",
"0.49040723",
"0.4894505",
"0.4867273",
"0.48624125",
"0.4861127",
"0.48531818",
"0.48493817",
"0.48488298",
"0.484797",
"0.48416677",
"0.48400378",
"0.48365623",
"0.48328662",
"0.48199916",
"0.4819923",
"0.48199204",
"0.48165822",
"0.4814057",
"0.4807593",
"0.48062202",
"0.48061815",
"0.47974053",
"0.4797386",
"0.47802392",
"0.47668597",
"0.47610244",
"0.47487652",
"0.4746674",
"0.4741205",
"0.4734485",
"0.47299933",
"0.47268954",
"0.47259024",
"0.47249112",
"0.47058442",
"0.47040793",
"0.47036818",
"0.47003654",
"0.4689505",
"0.46888918",
"0.46853235",
"0.4680964",
"0.4680357",
"0.46740055",
"0.4673865",
"0.46713546",
"0.4666832",
"0.4666125",
"0.4665955",
"0.46638444",
"0.46632686",
"0.46581292",
"0.46579826",
"0.46574205",
"0.46512893",
"0.4644417",
"0.46442607",
"0.46389708",
"0.46278346",
"0.46273398",
"0.4626896",
"0.4624386",
"0.46215314",
"0.46206135",
"0.46168864",
"0.46165448",
"0.4614882",
"0.46116522",
"0.46097443",
"0.46095055",
"0.4608473"
] | 0.54129976 | 5 |
Ensures that the Rmi tactic succeeds once on an hypothesis | @Test
public void applyRecusivelyHyp() {
assertSuccess(" ;H; ;S; s⊆ℤ ;; r∈s ↔ s |- ⊥",
rm("", ri("", ri("", rm("2.1", empty)))));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Then(\"Assert the success of Attempt well-known or guessable resource locations\")\npublic void assattemptwellknownorguessableresourcelocations(){\n}",
"private boolean decideIfEventShouldBeReportedAsAFailure() {\n \tint value = new Random().nextInt(100);\n \tif (value < TARGET_SUCCESS_RATE) {\n \t\treturn false;\n \t} else {\n \treturn true;\n \t}\n }",
"boolean isTroubled( ExpressionExperiment expressionExperiment );",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort1() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToTechnologyAverage, link, travelTimeOnLink);\n\t}",
"@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"@Test\n\t\tpublic void applyOnceGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; x ∈ ℤ ;; y ∈ ℤ |- x↦y ∈ id\", rm(\"\", empty));\n\t\t}",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"@Test\n public void testDecisionRule() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n DataHandle handle = provider.getData().getHandle();\n \n RiskModelPopulationUniqueness model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.2d)).getPopulationBasedUniquenessRisk();\n double populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n double sampleUniqueness = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getSampleBasedUniquenessRisk().getFractionOfUniqueRecords();\n \n // Risk before anonymization\n assertTrue(sampleUniqueness + \" / \" + populationUniqueness, compareUniqueness(populationUniqueness, 1.0d) == 0);\n assertTrue(sampleUniqueness + \" / \" + populationUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n final ARXAnonymizer anonymizer = new ARXAnonymizer();\n final ARXConfiguration config = ARXConfiguration.create();\n config.addPrivacyModel(new KAnonymity(2));\n config.setSuppressionLimit(0d);\n \n ARXResult result = null;\n try {\n result = anonymizer.anonymize(provider.getData(), config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n final DataHandle outHandle = result.getOutput(false);\n \n populationUniqueness = outHandle.getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getPopulationBasedUniquenessRisk().getFractionOfUniqueTuplesDankar();\n assertTrue(\"Is: \" + populationUniqueness, compareUniqueness(populationUniqueness, 0) == 0);\n }",
"public void failedChallenge() {\n addGameRound(false);\n playedRounds++;\n updateActivePlayer();\n updateActiveChallenge();\n }",
"public boolean needsProblem();",
"@Given(\"prepare to Attempt well-known or guessable resource locations\")\npublic void preattemptwellknownorguessableresourcelocations(){\n}",
"@Test\n public void testSubsequentRunsWithUnsatisfiablePenalizingConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable penalizing constraint\");\n // set constraint\n final double penalty = 7.8;\n problem.addPenalizingConstraint(new NeverSatisfiedPenalizingConstraintStub(penalty));\n // perform multiple runs (maximizing objective)\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n // verify\n PenalizedEvaluation penEval;\n penEval = (PenalizedEvaluation) searchLowTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchMedTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchHighTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort2() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Then(\"Assert the success of Attempt sending crafted records to DNS cache\")\npublic void assattemptsendingcraftedrecordstodnscache(){\n}",
"@Test(timeout = 4000)\n public void test107() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"execcannot:create iwstance, module ignored.\");\n assertNull(boolean0);\n }",
"@Test(priority = 4)\n public void testVerifyQuestionThree() {\n\t\tassertTrue(true);\n }",
"@Test\n\t\tpublic void applyOnceHyp() {\n\t\t\tassertSuccess(\" ;H; ;S; x⊆ℤ |- ⊥\", ri(\"\", empty));\n\t\t}",
"@Test\n public void testSingleRunWithUnsatisfiableConstraint() {\n System.out.println(\" - test single run with unsatisfiable constraint\");\n // add constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // single run\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n singleRunWithMaxRuntime(searchLowTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n singleRunWithMaxRuntime(searchMedTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n singleRunWithMaxRuntime(searchHighTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"public double checkHypothesisResult() {\n \tSystem.out.println(\"Enter the variables:\");\n \tdouble [] x = new double[numberOfVariables];\n \tdouble result = theta[0];\n \t\n \tsc = new Scanner(System.in);\n \tfor (int j = 0; j < numberOfVariables-1; j++) {\n \t\tx[j] = sc.nextDouble();\n \t}\n \tfor (int i = 1; i < numberOfVariables; i++) {\n \t\tresult += theta[i] * x[i - 1];\n \t}\n\n \treturn result;\n }",
"@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }",
"@Test\n public void testSubsequentRunsWithUnsatisfiableConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable constraint\");\n // set constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }",
"boolean hasCorrect();",
"@Then(\"Assert the success of Analysis\")\npublic void assanalysis(){\n}",
"public static void resultOfPlayAllCorrect() {\n\t\tString mark=\"null\";\n\t\ttry {\n\t\t\tmark=PlayTrivia.playAllRightAnswers();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tif(mark==\"Sucsses\") {\n\t\t\tSystem.out.println(\"Test end page has:\" + mark + \" Test pass\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Test end page - failed\");\n\t\t}\n\t}",
"@Test\n public void testOtherwise() {\n AtomicBoolean success = new AtomicBoolean(false);\n match(42L).otherwise(s -> success.set(true));\n\n assertTrue(success.get());\n }",
"@Test(priority = 3)\n public void testVerifyQuestionTwo() {\n\t\tassertTrue(true);\n }",
"public void accomplishGoal() {\r\n isAccomplished = true;\r\n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedThenTechnologyAverageElseAbort_ShouldAbort() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Test\n public void testSingleRunWithUnsatisfiablePenalizingConstraint() {\n System.out.println(\" - test single run with unsatisfiable penalizing constraint\");\n // set constraint\n final double penalty = 7.8;\n problem.addPenalizingConstraint(new NeverSatisfiedPenalizingConstraintStub(penalty));\n // single run\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n singleRunWithMaxRuntime(searchLowTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n singleRunWithMaxRuntime(searchMedTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n singleRunWithMaxRuntime(searchHighTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n // verify\n PenalizedEvaluation penEval;\n penEval = (PenalizedEvaluation) searchLowTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchMedTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchHighTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n }",
"@Then(\"user inputs the answers of the questions as requirment information for GehaltsCheck\")\n public void user_inputs_the_answers_of_the_questions_as_requirment_information_for_GehaltsCheck() {\n throw new io.cucumber.java.PendingException();\n }",
"public void testCaseOne() {\n\t\tgrcbal3 = new GRCbal3();\n\n\t\t// first tick\n\t\tgrcbal3.doTick(grcbal3.a);\n\t\tassertEquals(grcbal3.a.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.b.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.c.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.d.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.e.isPresent(), PRESENT);\n\t\tassertEquals(grcbal3.t.isPresent(), PRESENT);\n\n\t\t// second tick not necessary because the program terminates after the\n\t\t// first\n\t\t// tick\n\t\t/*\n\t\t * grcbal3.doTick(); assertEquals(grcbal3.A.isPresent(), ABSENT);\n\t\t * assertEquals(grcbal3.B.isPresent(), ABSENT);\n\t\t * assertEquals(grcbal3.C.isPresent(), ABSENT);\n\t\t * assertEquals(grcbal3.D.isPresent(), ABSENT);\n\t\t * assertEquals(grcbal3.E.isPresent(), ABSENT);\n\t\t * assertEquals(grcbal3.T.isPresent(), ABSENT);\n\t\t */\n\n\t}",
"@Test\n public void testTurnHeaterOnPCT() {\n settings.setSetting(Period.MORNING, DayType.WEEKDAY, 69); \n thermo.setPeriod(Period.MORNING);\n thermo.setDay(DayType.WEEKDAY);\n thermo.setCurrentTemp(63); // clause a\n thermo.setThresholdDiff(5); // clause a\n thermo.setOverride(true); // clause b\n thermo.setOverTemp(70); // clause c\n thermo.setMinLag(10); // clause d\n thermo.setTimeSinceLastRun(12); // clause d\n assertTrue (thermo.turnHeaterOn(settings)); \n }",
"public void fail() {\r\n\t\tcontestantIt.currentC().updatePoints(-FAIL);\r\n\t}",
"@Test\n public void testResetAndCanRetry() {\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n rc.reset();\n\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n }",
"@Then(\"Assert the success of Access & exfiltrate data within the victim's security zone\")\npublic void assaccessexfiltratedatawithinthevictimssecurityzone(){\n}",
"public void isSatisfiable() throws SolverException, InterruptedException {\n final BooleanFormulaManager bmgr = context.getFormulaManager().getBooleanFormulaManager();\n if (bmgr.isFalse(formulaUnderTest)) {\n failWithoutActual(\n Fact.fact(\"expected to be\", \"satisfiable\"),\n Fact.fact(\"but was\", \"trivially unsatisfiable\"));\n return;\n }\n\n try (ProverEnvironment prover = context.newProverEnvironment()) {\n prover.push(formulaUnderTest);\n if (!prover.isUnsat()) {\n return; // success\n }\n }\n\n reportUnsatCoreForUnexpectedUnsatisfiableFormula();\n }",
"public void succeededChallenge() {\n int point = players.get(indexOfActivePlayer).getPoint();\n int pointToAdd = categories.get(indexOfActiveCategory).getActiveChallengePoint();\n point += pointToAdd;\n players.get(indexOfActivePlayer).setPoint(point);\n addGameRound(true);\n playedRounds++;\n updateActivePlayer();\n updateActiveChallenge();\n }",
"public abstract void isASRRejection(long ms);",
"private boolean setIsSuccessful() {\n\t\tisSuccessful = false;\n\t\tRandom rand = new Random();\n\t\tint val = rand.nextInt(50);\n\t\tif (val % 2 == 0) {\n\t\t\tisSuccessful = true;\n\t\t}\n\t\treturn isSuccessful;\n\t}",
"@Override\n public void testAssumptionFailure(Failure failure) {\n exception = new AssumptionViolatedException(failure.getException().getMessage());\n exception.setStackTrace(failure.getException().getStackTrace());\n ;\n }",
"@Given(\"prepare to Access & exfiltrate data within the victim's security zone\")\npublic void preaccessexfiltratedatawithinthevictimssecurityzone(){\n}",
"@Test\r\n\tpublic void testDetermineMatchWinner1() {\n\t\tassertTrue(\"Error determining correct winner\", false);\r\n\t\t//Check that player records have been updated correctly\r\n\t\tassertTrue(\"Error updating player records\", false);\r\n\t}",
"boolean isFailure();",
"@Test\n public void testSubsequentRunsWithPenalizingConstraint() {\n System.out.println(\" - test subsequent runs with penalizing constraint\");\n // set constraint\n problem.addPenalizingConstraint(constraint);\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform 3 times as many runs as usual for this harder problem (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchLowTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchLowTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchMedTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchMedTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchHighTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchHighTemp.getBestSolution(), data).getPenalty());\n }\n }",
"private boolean runMultiSampleCase() {\n\t\tArrayList<Candidate> candidates = collectTrioCandidates();\n\n\t\t// Then, check the candidates for all trios around affected individuals.\n\t\tfor (Candidate c : candidates)\n\t\t\tif (isCompatibleWithTriosAroundAffected(c))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}",
"void abortChallenge();",
"@Test\n public void test_UnsuccessfulTravel() {\n \n setup(1, 1);\n \n SolarSystems.ADI.changeLocation(SolarSystems.SHALKA);\n \n // Tests the player's current fuel.\n assertEquals(1, player.getFuel());\n \n // Tests the player's current location.\n assertEquals(SolarSystems.ADI, player.getSolarSystems());\n \n }",
"@Test\n public void testIsSolved() {\n setUpCorrect();\n assertTrue(boardManager.puzzleSolved());\n swapFirstTwoTiles();\n assertFalse(boardManager.puzzleSolved());\n }",
"@Override\r\n\tpublic boolean runAgain(CompilationUnit unit) {\n\t\treturn false;\r\n\t}",
"public void setTruthChallenge() {\n while (!(getActiveChallenge()).contains(\"Truth\")) {\n categories.get(indexOfActiveCategory).increaseIndexOfActiveChallenge();\n }\n }",
"@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}",
"private void checkForAccident(double time) {\n\n\t\tdouble chance = .005D;\n\n\t\t// Materials science skill modification.\n\t\tint skill = getEffectiveSkillLevel();\n\t\tif (skill <= 3) {\n\t\t\tchance *= (4 - skill);\n\t\t} else {\n\t\t\tchance /= (skill - 2);\n\t\t}\n\n\t\t// Modify based on the workshop building's wear condition.\n\t\tchance *= workshop.getBuilding().getMalfunctionManager().getWearConditionAccidentModifier();\n\n\t\tif (RandomUtil.lessThanRandPercent(chance * time)) {\n\n\t\t\tif (person != null) {\n//\t\t\t\tlogger.info(\"[\" + person.getLocationTag().getShortLocationName() + \"] \" + person.getName() + \" has accident while manufacturing good.\");\n\t\t\t\tworkshop.getBuilding().getMalfunctionManager().createASeriesOfMalfunctions(person);\n\t\t\t} else if (robot != null) {\n//\t\t\t\tlogger.info(\"[\" + robot.getLocationTag().getShortLocationName() + \"] \" + robot.getName() + \" has accident while manufacturing godd.\");\n\t\t\t\tworkshop.getBuilding().getMalfunctionManager().createASeriesOfMalfunctions(robot);\n\t\t\t}\n\t\t}\n\t}",
"void checkWinner() {\n\t}",
"boolean isFail();",
"private static void checkReplay(final IProverSequent sequent, final IPRProof proof) throws CoreException {\n\t\tfinal IProofSkeleton oldSkel = proof.getSkeleton(factory, null);\n\t\tfinal IProofTree replayTree = ProverFactory.makeProofTree(sequent, null);\n\t\tfinal IProofTreeNode oldRoot = replayTree.getRoot();\n\t\tfinal Object result = replayTac(oldSkel).apply(oldRoot, null);\n\t\tassertEquals(null, result);\n\t\tassertTrue(replayTree.isClosed());\n\t}",
"public abstract boolean repOk();",
"@When(\"Try to Attempt well-known or guessable resource locations\")\npublic void tryattemptwellknownorguessableresourcelocations(){\n}",
"@Test(timeout = 4000)\n public void test022() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"$lPgx`N_R\");\n assertFalse(boolean0);\n }",
"@Override\n public void verifyDeterministic() throws NonDeterministicException {\n }",
"@Test\n public void testDecisionRule2() throws IOException {\n \n Data data = getDataObject(\"./data/adult.csv\");\n DataHandle handle = data.getHandle();\n \n RiskModelPopulationUniqueness model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getPopulationBasedUniquenessRisk();\n double sampleUniqueness = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getSampleBasedUniquenessRisk().getFractionOfUniqueRecords();\n double populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n \n if (model.getPopulationUniquenessModel() == PopulationUniquenessModel.PITMAN) {\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.27684993883653597) == 0);\n } else if (model.getPopulationUniquenessModel() == PopulationUniquenessModel.ZAYATZ) {\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.3207402393466189) == 0);\n } else {\n fail(\"Unexpected convergence of SNB\");\n }\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.2d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.3577099234829125d) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.01d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.1446083531167384) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 1d)).getPopulationBasedUniquenessRisk();\n populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, 0.5142895033485844) == 0);\n assertTrue(populationUniqueness + \"/\" + sampleUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) == 0);\n }",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"@Test\n public void testCalcProbTheta() throws Exception {\n\n double guessProb1 = ItemResponseTheory.calcProbTheta(c, lambda, theta1, alpha1);\n double guessProb2 = ItemResponseTheory.calcProbTheta(c, lambda, theta2, alpha1);\n double guessProb3 = ItemResponseTheory.calcProbTheta(c, lambda, theta3, alpha1);\n double guessProb4 = ItemResponseTheory.calcProbTheta(c, lambda, theta4, alpha1);\n double guessProb5 = ItemResponseTheory.calcProbTheta(c, lambda, theta5, alpha1);\n double guessProb6 = ItemResponseTheory.calcProbTheta(c, lambda, theta6, alpha1);\n double guessProb7 = ItemResponseTheory.calcProbTheta(c, lambda, theta7, alpha1);\n\n double ans1 = 0.2;\n double ans2 = 0.21;\n double ans3 = 0.23;\n double ans4 = 0.3;\n double ans5 = 0.47;\n double ans6 = 0.73;\n double ans7 = 0.9;\n\n double tolerance = 0.005;\n\n assertTrue(\"Prob(theta1)\", Math.abs(guessProb1 - ans1)< tolerance);\n assertTrue(\"Prob(theta2)\", Math.abs(guessProb2 - ans2) < tolerance);\n assertTrue(\"Prob(theta3)\", Math.abs(guessProb3 - ans3) < tolerance);\n assertTrue(\"Prob(theta4)\", Math.abs(guessProb4 - ans4) < tolerance);\n assertTrue(\"Prob(theta5)\", Math.abs(guessProb5 - ans5) < tolerance);\n assertTrue(\"Prob(theta6)\", Math.abs(guessProb6 - ans6) < tolerance);\n assertTrue(\"Prob(theta7)\", Math.abs(guessProb7 - ans7) < tolerance);\n\n }",
"@Test\n public void testCaseOfIntFirstNoMatch() {\n long l = 42L;\n AtomicBoolean success = new AtomicBoolean(false);\n match(l)\n .caseOf(13L, fail)\n .caseOf(42L, o -> success.set(true));\n\n assertTrue(success.get());\n }",
"@Test\n public void testOtherwise() {\n AtomicBoolean success = new AtomicBoolean(false);\n match(\"foo\").otherwise(s -> success.set(true));\n\n assertTrue(success.get());\n }",
"@Test\n\tpublic void happyCheck() {\n\t\tMoodAnalyser moodAnalyser;\n\n\t\tmoodAnalyser = new MoodAnalyser(null);\n\n\t\tString mood;\n\t\ttry {\n\t\t\tmood = moodAnalyser.analyseMood();\n\t\t\tAssert.assertEquals(\"HAPPY\", mood);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}",
"@Override\n public void verifyResult() {\n assertThat(calculator.getResult(), is(4));\n }",
"public UnitTestData() throws Exception {\n String[] runsData = {\n \"1,1,A,1,No,No,4\", // 0 (a No before first yes Security Violation)\n \"2,1,A,1,No,No,2\", // 0 (a No before first yes Compilation Error)\n \"3,1,A,1,No,No,1\", // 20 (a No before first yes)\n \"4,1,A,3,Yes,No,0\", // 3 (first yes counts Minute points but never Run Penalty points)\n \"5,1,A,5,No,No,1\", // zero -- after Yes\n \"6,1,A,7,Yes,No,0\", // zero -- after Yes\n \"7,1,A,9,No,No,1\", // zero -- after Yes\n \"8,1,B,11,No,No,1\", // zero -- not solved\n \"9,2,A,48,No,No,4\", // 0 (a No before first yes Security Violation)\n \"10,2,A,50,Yes,No,0\", // 50 (minute points; no Run points on first Yes)\n \"11,2,B,35,No,No,1\", // zero -- not solved\n \"12,2,B,40,No,No,1\", // zero -- not solved\n };\n\n // Assign half eams random team member names\n addTeamMembers(contest, getTeamAccounts(contest).length / 2, 5);\n\n assertEquals(\"Expectig team member names\", 5, getFirstAccount(contest, Type.TEAM).getMemberNames().length);\n\n assertEquals(\"team count\", 120, contest.getAccounts(Type.TEAM).size());\n\n for (String runInfoLine : runsData) {\n SampleContest.addRunFromInfo(contest, runInfoLine);\n }\n\n Problem problem = contest.getProblems()[0];\n Account judge = getFirstAccount(contest, Type.JUDGE);\n generateClarifications(contest, 20, problem, judge.getClientId(), false, false);\n generateClarifications(contest, 20, problem, judge.getClientId(), true, false);\n generateClarifications(contest, 20, problem, judge.getClientId(), true, true);\n\n sampleContest.assignSampleGroups(contest, \"North Group\", \"South Group\");\n\n assertEquals(\"Runs\", 12, contest.getRuns().length);\n\n }",
"@Test\n\tpublic void preventTakeOffWhenStormyWeather() {\n\t\tException exception = new Exception();\n\n\t\ttry {\n\t\t\theathrow.landing(tap);\n\t\t\t// airport instance return stormy weather\n\t\t\twhen(weatherMock.getWeather()).thenReturn(\"stormy\");\n\t\t\theathrow.takeoff(tap);\n\t\t} catch (Exception e) {\n\t\t\texception = e;\n\t\t}\n\n\t\tassertEquals(\"Not allowed to takeoff in stormy weather\", exception.getMessage());\n\t\tassertEquals(1, heathrow.hangar.size());\n\t}",
"@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 }",
"@Test(timeout = 4000)\n public void test063() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"\");\n assertFalse(boolean0);\n }",
"@Test\n public void testitFailNeverSingleThread() throws Exception {\n File testDir = ResourceExtractor.simpleExtractResources(getClass(), \"/mng-0095\");\n\n Verifier verifier = newVerifier(testDir.getAbsolutePath());\n verifier.setAutoclean(false);\n verifier.deleteDirectory(\"target\");\n verifier.deleteDirectory(\"subproject1/target\");\n verifier.deleteDirectory(\"subproject2/target\");\n verifier.deleteDirectory(\"subproject3/target\");\n verifier.addCliArgument(\"--fail-never\");\n verifier.setLogFileName(\"log-fn-mt1.txt\");\n verifier.addCliArgument(\"-Dmaven.threads.experimental=1\");\n verifier.addCliArgument(\"org.apache.maven.its.plugins:maven-it-plugin-touch:touch\");\n verifier.execute();\n\n verifier.verifyFilePresent(\"target/touch.txt\");\n verifier.verifyFileNotPresent(\"subproject1/target/touch.txt\");\n verifier.verifyFilePresent(\"subproject2/target/touch.txt\");\n verifier.verifyFilePresent(\"subproject3/target/touch.txt\");\n }",
"Boolean getCompletelyCorrect();",
"@Test\n public void shouldNotGiveQuestionIfAllQuestionsHaveBeenAnswered() {\n attributes.put(FinancialPlanningSpeechlet.GOAL_AMOUNT_KEY, 1000.0);\n attributes.put(FinancialPlanningSpeechlet.MONTHLY_CONTRIBUTION_KEY, 1000.0);\n attributes.put(FinancialPlanningSpeechlet.GOAL_PERIOD_KEY, 1000.0);\n String question = NextQuestionFactory.get(session);\n\n assertThat(question, Is.is(\"\"));\n }",
"boolean checkVerification();",
"@Test\n public void repairSingleTable()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = new TableReference(\"ks\", \"tb\");\n\n createKeyspace(tableReference.getKeyspace(), 3);\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n createTable(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS).until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(myFaultReporter, never()).raise(any(RepairFaultReporter.FaultCode.class), anyMapOf(String.class, Object.class));\n }",
"@Override\n\tpublic void verifyRateQuestionEnabledWithEveryQuestion() {\n\t\t\n\t}",
"public void doLearnTrials() {\n //clearAreaReset();\n\n int action = 0;\n float[] checkTable = getRplaceTable(myIal);\n\n for(int trial = 0; trial < learnTrials; trial++) { //For each of the learning trials.....\n\n //myIal.wait(500);\n //Do an IAL action ***************************************************************************************************************************************\n\n //Given the current state... do a random action\n action = getRandAction();\n if(myIal.myState == Agent.State.PLACE) {\n checkTable = myIal.getPlaceTable(myIal.locx, myIal.locy, myIal.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n myIal.updateQtable(myIal.getPlaceTable(myIal.locx, myIal.locy, myIal.locz), \n action, getRplaceTable(myIal)); //Ial updates table\n if(getRplaceTable(myIal)[action] > 0) {\n myIal.myState = Agent.State.MOVE;\n }\n }\n else if(myIal.myState == Agent.State.MOVE) {\n checkTable = myIal.getMoveTable(myIal.locx, myIal.locy, myIal.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n myIal.updateQtable(myIal.getMoveTable(myIal.locx, myIal.locy, myIal.locz), \n action, getRmoveTable(myIal)); //Ial updates table\n myIal.doAction(action);\n myIal.myState = Agent.State.PLACE;\n }\n \n //my2Ial.wait(500);\n //********************************************************************************************************************************************************\n //Do a 2IAL action\n //Given current state... do an action\n action = getRandAction();\n if(my2Ial.myState == Agent.State.PLACE) {\n checkTable = my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n my2Ial.updateQtable(my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz),\n action, getRplaceTable(my2Ial)); //2Ial updates table\n if(getRplaceTable(my2Ial)[action] > 0) {\n my2Ial.myState = Agent.State.MOVE;\n }\n } else if(my2Ial.myState == Agent.State.MOVE) {\n checkTable = my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n my2Ial.updateQtable(my2Ial.getMoveTable(my2Ial.locx, my2Ial.locy, my2Ial.locz), \n action, getRmoveTable(my2Ial)); //2Ial updates table\n my2Ial.doAction(action);\n my2Ial.myState = Agent.State.PLACE;\n }\n }\n }",
"boolean hasPass();",
"boolean hasPass();",
"@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }",
"@Test\n\t\tpublic void noApplyHyp() {\n\t\t\tassertFailure(\" ;H; ;S; 1=1 |- {1}⊆S\");\n\t\t}",
"public abstract boolean attack(TemporaryCharm i);",
"@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }",
"@Then(\"Assert the success of Determine application's/system's password policy\")\npublic void assdetermineapplicationssystemspasswordpolicy(){\n}",
"private boolean isUtilityFailure(){\n\n if (this.selectedTrain.getAC() == -1||\n this.selectedTrain.getHeat() == -1 || this.selectedTrain.getLights() == -1\n || this.selectedTrain.getLeftDoor() == -1 || this.selectedTrain.getRightDoor() == -1){\n return true; // there is a utility failure..\n }\n\n return false; // there isn't a utility failure\n }",
"boolean hasErrorTime();",
"@Test\n public void shouldStartNewGameIfNotAlreadyOneExisting() {\n\n boolean expResult = true ;\n boolean result = scoreService.tryNewGame() ;\n assertThat(expResult, is(result)) ;\n }",
"@Given(\"prepare to Attempt sending crafted records to DNS cache\")\npublic void preattemptsendingcraftedrecordstodnscache(){\n}",
"static void checkCompleteness(Piece piece, Context context) {\n\t\tif (Helper.isSolved()) { //puzzle is solved\n \t\tpuzzleComplete(context); //cleanup\n \t} else {\n \t\tif(Helper.isPieceCorrect(piece)) { //piece is in the correct position and orientation\n \t\t\tHelper.markPiece(piece, true); //mark the piece as correct\n \t\t}\n \t}\n\t}",
"private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }",
"@Test\n public void idempotentcyTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"100\");\n\n paymentDto = initPayment(inAccountId, outAccountId, \"100\");\n\n final String paymentId = paymentDto.getId();\n\n\n //we mistakenly try to confirm unauthorized payment (even twice) - that is OK, payment should stay in INITIAL\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status INITIAL\", PaymentStatus.INITIAL, paymentDto.getStatus());\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status INITIAL\", PaymentStatus.INITIAL, paymentDto.getStatus());\n\n\n //eventually we authorize payment\n\n paymentDto = authorizePayment(paymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n paymentDto = authorizePayment(paymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //and confirm\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n }",
"@Test\n void basicTest() {\n final OSEntropyCheck.Report report =\n assertDoesNotThrow(() -> OSEntropyCheck.execute(), \"Check should not throw\");\n assertTrue(report.success(), \"Check should succeed\");\n assertNotNull(report.elapsedNanos(), \"Elapsed nanos should not be null\");\n assertTrue(report.elapsedNanos() > 0, \"Elapsed nanos should have a positive value\");\n assertNotNull(report.randomLong(), \"A random long should have been generated\");\n }",
"@LargeTest\n public void testFisheyeApproximateRelaxed() {\n TestAction ta = new TestAction(TestName.FISHEYE_APPROXIMATE_RELAXED);\n runTest(ta, TestName.FISHEYE_APPROXIMATE_RELAXED.name());\n }",
"@Test\n public void repairSingleTable()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n\n schedule(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }",
"@Then(\"^I will be full$\")\n public void i_will_be_full() throws Throwable {\n }",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n TechnicalInformation technicalInformation0 = lovinsStemmer0.getTechnicalInformation();\n assertFalse(technicalInformation0.hasAdditional());\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAutoStandBy() {\n\t\tboolean flag = oTest.checkAutoStandBy();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"boolean isMet();",
"public void mo34875a(Throwable th) {\n boolean[] a = m45645a();\n InstabugSDKLogger.m46624e(C9780c.class, \"Something went wrong while do fetching features request\", th);\n a[42] = true;\n }"
] | [
"0.57457316",
"0.5724093",
"0.5702025",
"0.56863445",
"0.56589645",
"0.56391084",
"0.5622849",
"0.5585264",
"0.55464",
"0.54768145",
"0.5446167",
"0.54224896",
"0.54179436",
"0.5416133",
"0.5383512",
"0.53801894",
"0.53678924",
"0.5362746",
"0.53547895",
"0.53371924",
"0.5336405",
"0.53183794",
"0.5309715",
"0.5277479",
"0.5260398",
"0.5249267",
"0.5241109",
"0.5239769",
"0.5233405",
"0.52313095",
"0.52300304",
"0.52208096",
"0.5216458",
"0.5207104",
"0.5201307",
"0.5190326",
"0.51843655",
"0.51788515",
"0.51708376",
"0.5164331",
"0.5151069",
"0.5150628",
"0.51357156",
"0.51329356",
"0.51291734",
"0.51280916",
"0.5124258",
"0.51137996",
"0.51106143",
"0.51079595",
"0.51066583",
"0.5090165",
"0.5080517",
"0.5073002",
"0.50717735",
"0.50572366",
"0.50563836",
"0.50541806",
"0.5041387",
"0.5039848",
"0.50349236",
"0.50330806",
"0.5032424",
"0.5027534",
"0.50253624",
"0.5021232",
"0.5020284",
"0.5019461",
"0.5017857",
"0.5000273",
"0.49917114",
"0.49860868",
"0.49843493",
"0.49831325",
"0.49819437",
"0.498123",
"0.4980644",
"0.497816",
"0.49746117",
"0.4968745",
"0.4968745",
"0.49672705",
"0.4964871",
"0.49593753",
"0.49571207",
"0.49516097",
"0.49504587",
"0.49489895",
"0.49488592",
"0.49422324",
"0.49383372",
"0.49300012",
"0.49252042",
"0.49211046",
"0.49173498",
"0.49169794",
"0.49169618",
"0.4915223",
"0.49145165",
"0.4914413",
"0.49086276"
] | 0.0 | -1 |
Ensures that the Rmi tactic fails when no hypothesis can be rewritten (even if the goal can). | @Test
public void noApplyHyp() {
assertFailure(" ;H; ;S; 1=1 |- {1}⊆S");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}",
"public boolean needsProblem();",
"boolean isTroubled( ExpressionExperiment expressionExperiment );",
"@Override\n boolean canFail() {\n return true;\n }",
"@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }",
"void checkRep() {\n\t\tassert this.clauses != null : \"SATProblem, Rep invariant: clauses non-null\";\n\t}",
"@Test\n public void testSubsequentRunsWithUnsatisfiableConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable constraint\");\n // set constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }",
"private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }",
"public void testNonPermanentVariableResolvedOkNoBinding() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f :- g(X), h(Y))], (?- f), [[]]]\");\n }",
"@Test(timeout = 4000)\n public void test107() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"execcannot:create iwstance, module ignored.\");\n assertNull(boolean0);\n }",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"void check() throws YangException;",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort1() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToTechnologyAverage, link, travelTimeOnLink);\n\t}",
"public void isUnsatisfiable() throws SolverException, InterruptedException {\n if (context.getFormulaManager().getBooleanFormulaManager().isTrue(formulaUnderTest)) {\n failWithoutActual(\n Fact.fact(\"expected to be\", \"unsatisfiable\"),\n Fact.fact(\"but was\", \"trivially satisfiable\"));\n return;\n }\n\n checkIsUnsat(formulaUnderTest, Fact.simpleFact(\"expected to be unsatisfiable\"));\n }",
"public void isSatisfiable() throws SolverException, InterruptedException {\n final BooleanFormulaManager bmgr = context.getFormulaManager().getBooleanFormulaManager();\n if (bmgr.isFalse(formulaUnderTest)) {\n failWithoutActual(\n Fact.fact(\"expected to be\", \"satisfiable\"),\n Fact.fact(\"but was\", \"trivially unsatisfiable\"));\n return;\n }\n\n try (ProverEnvironment prover = context.newProverEnvironment()) {\n prover.push(formulaUnderTest);\n if (!prover.isUnsat()) {\n return; // success\n }\n }\n\n reportUnsatCoreForUnexpectedUnsatisfiableFormula();\n }",
"public boolean checkGoal() {\r\n\t\tif (goal) {\r\n\t\t\tgoal = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void testConjoinedVariablesPropagateAccrossConjunctionFailingOnNonUnification() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"g(x)\", \"h(y)\", \"f(X, Y) :- g(X), h(Y)\" }, \"?- f(X, X)\");\n }",
"private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}",
"public boolean generateFromTactic(Decision decision, int tacticID, boolean considerParentPattern, boolean recursiveParent){\r\n \t\tTactic t = new Tactic();\r\n \t\tt.fromDatabase(tacticID);\r\n \t\tif (t.getID() < 0) return false;\r\n \t\tsetDescription(\"This alternative is generated on the basis of tactic \" + t.getName());\r\n \t\tsetStatus(AlternativeStatus.ATISSUE);\r\n \t\tsetParent(decision);\r\n \r\n \t\ttoDatabase(decision.getID(), RationaleElementType.DECISION);\r\n \t\tfromDatabase(getName());\r\n \t\tRationaleDB db = RationaleDB.getHandle();\r\n \t\tVector<Requirement> nfrs = db.getNFRs();\r\n \t\tboolean isCategoryMatched = false;\r\n \t\tboolean[] isNegQAMatched = new boolean[t.getBadEffects().size()];\r\n \t\tfor (int i = 0; i < isNegQAMatched.length; i++){\r\n \t\t\tisNegQAMatched[i] = false;\r\n \t\t}\r\n \r\n \t\tfor (int i = 0; i < nfrs.size(); i++){\r\n \t\t\t//Contribution matching on negative side of the tactic.\r\n \t\t\tIterator<OntEntry> badI = t.getBadEffects().iterator();\r\n \t\t\twhile (badI.hasNext()){\r\n \t\t\t\tOntEntry cur = badI.next();\r\n \r\n \t\t\t\tIterator<OntEntry> curChildrenI = db.getOntologyElements(cur.getName()).iterator();\r\n \t\t\t\twhile (curChildrenI.hasNext()){\r\n \t\t\t\t\tOntEntry curChild = curChildrenI.next();\r\n \t\t\t\t\tif (curChild.equals(nfrs.get(i).getOntology())){\r\n \t\t\t\t\t\tisNegQAMatched[i] = true;\r\n \t\t\t\t\t\tArgument arg = new Argument();\r\n \t\t\t\t\t\tString argName = \"Requirement Violation - \" + curChild.getName();\r\n \t\t\t\t\t\twhile(RationaleDBUtil.isExist(argName, \"Arguments\")){\r\n \t\t\t\t\t\t\targName = argName + \"~\";\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\targ.setName(argName);\r\n \t\t\t\t\t\targ.setRequirement(nfrs.get(i));\r\n \t\t\t\t\t\targ.setType(ArgType.VIOLATES);\r\n \t\t\t\t\t\targ.setPlausibility(Plausibility.CERTAIN);\r\n \t\t\t\t\t\targ.setAmount(10);\r\n \t\t\t\t\t\targ.setImportance(Importance.ESSENTIAL);\r\n \t\t\t\t\t\targ.setParent(this);\r\n \t\t\t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \r\n \t\t\tif (nfrs.get(i).getOntology().equals(t.getCategory())){\r\n \t\t\t\tArgument arg = new Argument();\r\n \t\t\t\tString argName = \"Requirement Satisfication - \" + t.getCategory().getName();\r\n \t\t\t\twhile(RationaleDBUtil.isExist(argName, \"Arguments\")){\r\n \t\t\t\t\targName = argName + \"~\";\r\n \t\t\t\t}\r\n \t\t\t\targ.setName(argName);\r\n \t\t\t\targ.setRequirement(nfrs.get(i));\r\n \t\t\t\targ.setType(ArgType.SATISFIES);\r\n \t\t\t\targ.setPlausibility(Plausibility.CERTAIN);\r\n \t\t\t\targ.setAmount(10);\r\n \t\t\t\targ.setImportance(Importance.ESSENTIAL);\r\n \t\t\t\targ.setParent(this);\r\n \t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t\tisCategoryMatched = true;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \r\n \r\n \t\t//Add arguments/claims\r\n \t\tif (!isCategoryMatched){\r\n \t\t\tArgument arg = new Argument();\r\n \t\t\tClaim c = new Claim();\r\n \t\t\tString claimName = \"Positive Quality Attribute - \" + t.getCategory().getName();\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Claims\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\tc.setDirection(Direction.IS);\r\n \t\t\targ.setType(ArgType.SUPPORTS);\r\n \t\t\tc.setName(claimName);\r\n \t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\tc.setOntology(t.getCategory());\r\n \t\t\tc.setEnabled(true);\r\n \t\t\tc.toDatabase();\r\n \r\n \t\t\targ.setClaim(c);\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\targ.setName(claimName);\r\n \t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\targ.setDescription(\"\");\r\n \t\t\targ.setAmount(5);\r\n \t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\targ.setParent(this);\t\r\n \t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t}\r\n \t\tfor (int i = 0; i < isNegQAMatched.length; i++){\r\n \t\t\tArgument arg = new Argument();\r\n \t\t\tClaim c = new Claim();\r\n \t\t\tString claimName = \"Negative Quality Attribute - \" + t.getBadEffects().get(i).getName();\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Claims\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n\t\t\tc.setDirection(Direction.IS);\r\n \t\t\targ.setType(ArgType.DENIES);\r\n \t\t\tc.setName(claimName);\r\n \t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\tc.setOntology(t.getBadEffects().get(i));\r\n \t\t\tc.setEnabled(true);\r\n \t\t\tc.toDatabase();\r\n \r\n \t\t\targ.setClaim(c);\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\targ.setName(claimName);\r\n \t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\targ.setDescription(\"\");\r\n \t\t\targ.setAmount(5);\r\n \t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\targ.setParent(this);\t\r\n \t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t}\r\n \t\t//Add impact score.\r\n \t\tif (considerParentPattern){\r\n \t\t\tint score = findWorstTacticPatternScore(decision, t, recursiveParent);\r\n \t\t\tif (score > 0){\r\n \t\t\t\tArgument arg = new Argument();\r\n \t\t\t\tClaim c = new Claim();\r\n\t\t\t\tString claimName = \"Tactic Impact\";\r\n \t\t\t\tc.fromDatabase(claimName);\r\n \t\t\t\tif (c.getID() < 0){\r\n\t\t\t\t\tc.setDirection(Direction.IS);\r\n \t\t\t\t\tc.setName(claimName);\r\n \t\t\t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\t\t\tOntEntry claimOnt = new OntEntry();\r\n \t\t\t\t\tclaimOnt.fromDatabase(TacticPattern.CHANGEONTNAME);\r\n \t\t\t\t\tif (claimOnt.getID() < 0){\r\n \t\t\t\t\t\t//Create a new quality attribute\r\n \t\t\t\t\t\tOntEntry ontParent = new OntEntry();\r\n \t\t\t\t\t\tontParent.fromDatabase(1);\r\n \t\t\t\t\t\tclaimOnt.setName(TacticPattern.CHANGEONTNAME);\r\n \t\t\t\t\t\tclaimOnt.setEnabled(true);\r\n\t\t\t\t\t\tclaimOnt.setImportance(Importance.DEFAULT);\r\n \t\t\t\t\t\tclaimOnt.toDatabase(ontParent.getID());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tc.setOntology(claimOnt);\r\n \t\t\t\t\tc.setEnabled(true);\r\n \t\t\t\t\tc.toDatabase();\r\n \t\t\t\t}\r\n \t\t\t\targ.setClaim(c);\r\n \t\t\t\targ.setType(ArgType.DENIES);\r\n \r\n \t\t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t\t}\r\n \t\t\t\targ.setName(claimName);\r\n \t\t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\t\targ.setDescription(\"\");\r\n \t\t\t\targ.setAmount(score);\r\n \t\t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\t\targ.setParent(this);\t\r\n \t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t}\r\n \t\t}\r\n \t\t//Evaluate\r\n \t\tfromDatabase(name);\r\n\t\tevaluate();\r\n \t\tfromDatabase(name);\r\n \t\treturn true;\r\n \t}",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort2() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Test\n public void canUseSpecialPowerFalseNoMoveNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move, no build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }",
"public void fail() {\r\n\t\tcontestantIt.currentC().updatePoints(-FAIL);\r\n\t}",
"@Override\n\t\tpublic boolean isValidSolution() {\n\t\t\treturn super.isValidSolution();\n\t\t}",
"@Test\n public void testSingleRunWithUnsatisfiableConstraint() {\n System.out.println(\" - test single run with unsatisfiable constraint\");\n // add constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // single run\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n singleRunWithMaxRuntime(searchLowTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n singleRunWithMaxRuntime(searchMedTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n singleRunWithMaxRuntime(searchHighTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }",
"@Test\n public void testSubsequentRunsWithUnsatisfiablePenalizingConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable penalizing constraint\");\n // set constraint\n final double penalty = 7.8;\n problem.addPenalizingConstraint(new NeverSatisfiedPenalizingConstraintStub(penalty));\n // perform multiple runs (maximizing objective)\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n // verify\n PenalizedEvaluation penEval;\n penEval = (PenalizedEvaluation) searchLowTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchMedTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchHighTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n }",
"private static void notPossible () {\r\n\t\tSystem.out.println(\"This operation is not possible\");\r\n\t}",
"@Test\r\n public void should_not_be_allowed_to_move_in_wrong_direction() {\r\n game.nextTurn(); // will throw [1,2] and thus black starts\r\n assertFalse(game.move(Location.R12, Location.R10));\r\n }",
"@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedThenTechnologyAverageElseAbort_ShouldAbort() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Test\n public void canUseSpecialPowerFalseNoMove() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move\n workerHephaestus.build(nextWorkerCell);\n assertFalse(workerHephaestus.canUseSpecialPower());\n }",
"public static void failUnexpectedToReachThis()\r\n\t{\r\n\t\tfail( \"Unexpected to hit this line, as the previous statement should thrown an exception\" ); \r\n\t}",
"@Test(timeout = 4000)\n public void test34() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n SystemInUtil.addInputLine(\")\");\n jSTerm0.add((Object) \"lc\");\n jSTerm0.isEmpty();\n jSSubstitution0.add((Object) \"lc\");\n jSTerm0.applySubstitutionPF(jSSubstitution0);\n jSTerm0.add((Object) null);\n JSJshopVars.percent = 846;\n StringReader stringReader0 = new StringReader(\"lc\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer0);\n JSSubstitution jSSubstitution1 = new JSSubstitution();\n streamTokenizer0.eolIsSignificant(true);\n // Undeclared exception!\n try { \n jSTerm0.standarizerPredicateForm();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }",
"@When(\"the game result is not yet final\")\n\tpublic void the_game_result_is_not_yet_final() {\n\t}",
"@Test(timeout = 4000)\n public void test46() throws Throwable {\n SystemInUtil.addInputLine((String) null);\n SystemInUtil.addInputLine((String) null);\n JSTerm jSTerm0 = new JSTerm();\n LinkedList<Integer> linkedList0 = new LinkedList<Integer>();\n Integer integer0 = new Integer(1);\n linkedList0.add(integer0);\n linkedList0.add((Integer) null);\n jSTerm0.removeAll(linkedList0);\n jSTerm0.retainAll(linkedList0);\n SystemInUtil.addInputLine((String) null);\n jSTerm0.add((Object) \"not\");\n // Undeclared exception!\n try { \n jSTerm0.standarizerPredicateForm();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1 >= 1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }",
"boolean checkGoal(Node solution);",
"@Test(expected = IllegalArgumentException.class)\n public void buildAgainFalse() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n //provo a fagli costruire su una cella diversa da nextWorkerCell (non puo!)\n workerHephaestus.specialPower(otherCell);\n assertEquals(1, nextWorkerCell.getLevel());\n assertEquals(0, otherCell.getLevel());\n }",
"@Test\n\t\tpublic void applyOnceGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; x ∈ ℤ ;; y ∈ ℤ |- x↦y ∈ id\", rm(\"\", empty));\n\t\t}",
"@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}",
"@Test\n public void canUseSpecialPowerFalseNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n //no Build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }",
"@Test\n void checkCannotForceWithNoDestination() {\n Worker worker1 = new Worker(0, board.getCellFromCoords(0, 1));\n Worker worker2 = new Worker(1, board.getCellFromCoords(0, 0));\n\n Map<Worker, Boolean> otherWorkers = new HashMap<>();\n otherWorkers.put(worker2, false);\n\n turn = new Turn(worker1, otherWorkers, (cell) -> board.getNeighborings(cell), cell -> board.isPerimeterSpace(cell));\n assertFalse(abilities.checkCanMove(turn, board.getCellFromCoords(0, 0)));\n assertThrows(IllegalArgumentException.class, () -> abilities.doMove(turn, board.getCellFromCoords(0, 0)));\n }",
"@Test(timeout = 4000)\n public void test28() throws Throwable {\n String string0 = \"0(u\";\n SystemInUtil.addInputLine(\"call\");\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n JSTerm jSTerm0 = new JSTerm();\n Object object0 = null;\n jSTerm0.add((Object) null);\n String string1 = \"expected '('\";\n SystemInUtil.addInputLine(\"expected '('\");\n // Undeclared exception!\n try { \n jSTerm0.applySubstitutionPF(jSSubstitution0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n }\n }",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"@Test\n public void test_UnsuccessfulTravel() {\n \n setup(1, 1);\n \n SolarSystems.ADI.changeLocation(SolarSystems.SHALKA);\n \n // Tests the player's current fuel.\n assertEquals(1, player.getFuel());\n \n // Tests the player's current location.\n assertEquals(SolarSystems.ADI, player.getSolarSystems());\n \n }",
"public void correctErrors();",
"private boolean isUtilityFailure(){\n\n if (this.selectedTrain.getAC() == -1||\n this.selectedTrain.getHeat() == -1 || this.selectedTrain.getLights() == -1\n || this.selectedTrain.getLeftDoor() == -1 || this.selectedTrain.getRightDoor() == -1){\n return true; // there is a utility failure..\n }\n\n return false; // there isn't a utility failure\n }",
"@Override\n public void verifyDeterministic() throws NonDeterministicException {\n }",
"@Test\n public void endGameDetectionFalse() {\n logic.setDirection(1);\n assertTrue(logic.gameLogic());\n }",
"public void testConjunctionInQueryVarNotLastFailsWhenBindingsDoNotMatch() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"f(x)\", \"g(y)\" }, \"?- f(X), g(X), g(X)\");\n }",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"@Test\r\n public void testInvalidLogicalRightAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varI_M>>>=varI_M\", \"0xA0188\");\r\n }",
"public void testConjunctionFailsToResolveWhenFirstPathFails() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"h\", \"f :- g, h\" }, \"?- f\");\n }",
"@Test(timeout = 4000)\n public void test46() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader();\n Boolean boolean0 = Boolean.FALSE;\n SQLUtil.isQuery(\"selectntowrong c|ck\");\n Boolean.valueOf(true);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"selectntowrong c|ck\");\n // Undeclared exception!\n try { \n defaultDBTable0.getUniqueConstraint(\"^h=wZ>:9%}Pj6(#%M\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.model.DefaultDBTable\", e);\n }\n }",
"public void testMETAL4() throws Exception {\n\t\tObject retval = execLexer(\"METAL\", 131, \"gold\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"METAL\", expecting, actual);\n\t}",
"@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = \"0(u\";\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n JSTerm jSTerm0 = new JSTerm();\n jSTerm0.add((Object) \"not\");\n Comparator<Integer> comparator0 = (Comparator<Integer>) mock(Comparator.class, new ViolatedAssumptionAnswer());\n jSSubstitution0.add((Object) \"0(u\");\n SystemInUtil.addInputLine(\"not\");\n // Undeclared exception!\n try { \n jSTerm0.applySubstitutionPF(jSSubstitution0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1 >= 1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }",
"@Test\n public void testSingleRunWithUnsatisfiablePenalizingConstraint() {\n System.out.println(\" - test single run with unsatisfiable penalizing constraint\");\n // set constraint\n final double penalty = 7.8;\n problem.addPenalizingConstraint(new NeverSatisfiedPenalizingConstraintStub(penalty));\n // single run\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n singleRunWithMaxRuntime(searchLowTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n singleRunWithMaxRuntime(searchMedTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n singleRunWithMaxRuntime(searchHighTemp, SINGLE_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT);\n // verify\n PenalizedEvaluation penEval;\n penEval = (PenalizedEvaluation) searchLowTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchMedTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n penEval = (PenalizedEvaluation) searchHighTemp.getBestSolutionEvaluation();\n assertEquals(penalty, penEval.getEvaluation().getValue() - penEval.getValue(), TestConstants.DOUBLE_COMPARISON_PRECISION);\n }",
"public void testConjunctionInQueryVarUnifyNotLastFailsWhenBindingsDoNotMatch() throws Exception\n {\n resolveAndAssertFailure(new String[] {}, \"?- X = b, X = a, X = a\");\n }",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSTerm0.stream();\n Object object0 = null;\n jSSubstitution0.add((Object) null);\n jSTerm0.add((Object) \"not\");\n StringReader stringReader0 = new StringReader(\"not\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer0);\n jSTerm0.matches((JSPredicateForm) jSTerm1);\n jSTerm1.applySubstitutionPF(jSSubstitution0);\n JSPredicateForm jSPredicateForm0 = null;\n JSSubstitution jSSubstitution1 = new JSSubstitution();\n // Undeclared exception!\n try { \n jSTerm0.matches((JSPredicateForm) null, jSSubstitution1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }",
"@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }",
"private boolean canCauseReprintProblem(Choice choice, GenFeature feature) {\n\t\treturn countProblematicOccurrences(choice, feature, false, false) > 1;\n \t}",
"@Test(timeout = 4000)\n public void test18() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSTerm0.add((Object) \"lc\");\n jSTerm0.isEmpty();\n jSSubstitution0.add((Object) \"lc\");\n JSPredicateForm jSPredicateForm0 = jSTerm0.applySubstitutionPF(jSSubstitution0);\n jSTerm0.add((Object) null);\n String string0 = \"aW$w)\";\n jSPredicateForm0.equals((JSPredicateForm) jSTerm0);\n // Undeclared exception!\n try { \n jSTerm0.applySubstitutionPF(jSSubstitution0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test49() throws Throwable {\n SystemInUtil.addInputLine(\"(e0\");\n String string0 = \"dk<BH 1I\\\"\";\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n JSTerm jSTerm0 = new JSTerm();\n jSTerm0.add((Object) \"not\");\n Comparator<Integer> comparator0 = (Comparator<Integer>) mock(Comparator.class, new ViolatedAssumptionAnswer());\n SystemInUtil.addInputLine(\"not\");\n // Undeclared exception!\n try { \n jSTerm0.applySubstitutionPF(jSSubstitution0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1 >= 1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }",
"@Test\n public void testDecisionRule() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n DataHandle handle = provider.getData().getHandle();\n \n RiskModelPopulationUniqueness model = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.2d)).getPopulationBasedUniquenessRisk();\n double populationUniqueness = model.getFractionOfUniqueTuplesDankar();\n double sampleUniqueness = handle.getRiskEstimator(ARXPopulationModel.create(handle.getNumRows(), 0.1d)).getSampleBasedUniquenessRisk().getFractionOfUniqueRecords();\n \n // Risk before anonymization\n assertTrue(sampleUniqueness + \" / \" + populationUniqueness, compareUniqueness(populationUniqueness, 1.0d) == 0);\n assertTrue(sampleUniqueness + \" / \" + populationUniqueness, compareUniqueness(populationUniqueness, sampleUniqueness) <= 0);\n \n final ARXAnonymizer anonymizer = new ARXAnonymizer();\n final ARXConfiguration config = ARXConfiguration.create();\n config.addPrivacyModel(new KAnonymity(2));\n config.setSuppressionLimit(0d);\n \n ARXResult result = null;\n try {\n result = anonymizer.anonymize(provider.getData(), config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n final DataHandle outHandle = result.getOutput(false);\n \n populationUniqueness = outHandle.getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getPopulationBasedUniquenessRisk().getFractionOfUniqueTuplesDankar();\n assertTrue(\"Is: \" + populationUniqueness, compareUniqueness(populationUniqueness, 0) == 0);\n }",
"@Test(timeout = 4000)\n public void test022() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"$lPgx`N_R\");\n assertFalse(boolean0);\n }",
"private void checkEmptyLanguage(String errorHint) {\n if (model.isEmpty()) {\n throw new IllegalStateException(\n \"DFA intersection generated the empty language\"\n + (errorHint == null ? \"\" : \": \" + errorHint));\n }\n }",
"boolean hasPossiblyBad();",
"public boolean isSolvable() {\n\t\tif (goal == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"@Test\n\t\tpublic void woeIsMeUnreachabletest() {\n\t\t\tassertTrue(System.currentTimeMillis() > 0);\n\t\t}",
"@Test\n public void test12() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n // Undeclared exception!\n try { \n illinoisSolver0.doSolve();\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (0) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"public void testATTITUDE9() throws Exception {\n\t\tObject retval = execLexer(\"ATTITUDE\", 201, \"volant\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"ATTITUDE\", expecting, actual);\n\t}",
"@Test(timeout = 4000)\n public void test082() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"public boolean isOkay() {\n return okay;\n }",
"@Test(timeout = 4000)\n public void test097() throws Throwable {\n Level level0 = Level.warn;\n ErrorHandler errorHandler0 = new ErrorHandler(\"Database query did not return a result: \", level0);\n // Undeclared exception!\n try { \n DBUtil.runScript(\"z\\\"\", \"Database query did not return a result: \", (Connection) null, true, errorHandler0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Resource not found: z\\\"\n //\n verifyException(\"org.databene.commons.IOUtil\", e);\n }\n }",
"@Test (expected = Exception.class)\n\tpublic void testInvalidTargetSIFChord() throws Exception{\n\t\tnew Chord(1, \"1/V\");\n\t}",
"@Test\n public void stateNullTest() throws GeneralException {\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(JDBCBuildMapRule.ARG_STATE);\n\n assertThrows(GeneralException.class, () -> jdbcBuildMapRule.execute(testRuleContext));\n verify(jdbcBuildMapRule).internalValidation(eq(testRuleContext));\n verify(jdbcBuildMapRule, never()).internalExecute(eq(testRuleContext), any());\n }",
"@Override\r\n\tpublic boolean runAgain(CompilationUnit unit) {\n\t\treturn false;\r\n\t}",
"private boolean isWrong() {\n\t\treturn wrongMatches >= 5;\n\t}",
"public boolean isGoal() \n {\n return this.manhattan() == 0;\n // return this.manhattan() == 0 || this.checkTwinSolution();\n }",
"public final boolean\n isOutcomeFailed() { return hasOutcome_ && outcome_ == false; }",
"@Test\n public void defensiveStrategy_notBlocked() throws IOException {\n Board f0 = new Board(\"------\"\n + \"-C----\"\n + \"------\"\n + \"------\"\n + \"P-P---\"\n + \"------\");\n // nicht blockiert, daher selbe Bewertung fuer beide Strategien\n assertEquals(f0.evaluate(true), f0.evaluate(false));\n assertTrue(f0.evaluate(false) < 0);\n\n // ausgeglichene Vorteile beider Spieler\n Board f1 = new Board(\"C--P-P\"\n + \"-C----\"\n + \"------\"\n + \"------\"\n + \"------\"\n + \"------\");\n\n assertEquals(f1.evaluate(false), f1.evaluate(true));\n assertEquals(0, f1.evaluate(false));\n }",
"boolean isFailure();",
"public AlwaysFailsCheck() {\n this(\"Compulsory integrity failure\");\n }",
"boolean isFail();",
"@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n this.missingFutures = 0;\n this.missingTetromino = 0;\n return INITIAL_BOARD.execute(false);\n }",
"private void ensureNoWinner() throws CommandException {\n\t\tif (this.playerWon) {\n\t\t\tthrow new CommandException(\"the game is over\");\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test037() throws Throwable {\n try { \n Evaluation.handleCostOption(\" \", 0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't open file null.\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }",
"@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}",
"@Test\n public void testSubsequentRunsWithPenalizingConstraint() {\n System.out.println(\" - test subsequent runs with penalizing constraint\");\n // set constraint\n problem.addPenalizingConstraint(constraint);\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform 3 times as many runs as usual for this harder problem (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchLowTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchLowTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchMedTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchMedTemp.getBestSolution(), data).getPenalty());\n }\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, 3*NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // constraint satisfied ?\n if(problem.getViolatedConstraints(searchHighTemp.getBestSolution()).isEmpty()){\n System.out.println(\" >>> constraint satisfied!\");\n } else {\n System.out.println(\" >>> constraint not satisfied, penalty \"\n + constraint.validate(searchHighTemp.getBestSolution(), data).getPenalty());\n }\n }",
"@Test\n\tpublic void testSimpleOneRuleFailExecution() {\n\n\t\tSkRuleBase rule = buildThings(ONE_RULE_FAIL_FILE_NAME, SkRuleBase.class, \"rule\");\n\n\t\tSkRuleMaster master = new SkRuleMaster.Builder().addRule(rule)\n\t\t\t\t.build();\n\t\tSkRuleRunner runner = master.getRuleRunner();\n\n\t\ttry {\n\t\t\trunner.setValue(\"THIS_MACRO_DOES_NOT_EXIST\", \"X\");\n\t\t\trule.run(runner);\n\t\t\tAssert.fail(\"We should have thrown an error.\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(String.format(\"We expected this error : '%s'\", e.toString()));\n\t\t}\n\t\trunner.setValue(\"MILK.QTY\", 2);\n\t\trule.run(runner);\n\t}",
"@Test(timeout = 4000)\n public void test27() throws Throwable {\n System.setCurrentTimeMillis(0L);\n System.setCurrentTimeMillis(0L);\n JSPredicateForm jSPredicateForm0 = new JSPredicateForm((String) null);\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n // Undeclared exception!\n try { \n jSPredicateForm0.applySubstitutionPF(jSSubstitution0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"public void failedChallenge() {\n addGameRound(false);\n playedRounds++;\n updateActivePlayer();\n updateActiveChallenge();\n }",
"@Test\n void checkNoEffectMove() {\n assertTrue(abilities.checkCanMove(turn, board.getCellFromCoords(0, 1)));\n abilities.doMove(turn, board.getCellFromCoords(0, 1));\n assertEquals(turn.getWorker().getCell(), board.getCellFromCoords(0, 1));\n }",
"public abstract boolean hasWarning();",
"public boolean failedQC(){\n\t\treturn testBitwiseFlag(512);\n\t}",
"@Test\n public void test_chooseBadTargetOnSacrifice_WithoutTargets_AI() {\n addCard(Zone.HAND, playerA, \"Redcap Melee\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Atarka Monument\", 1); // {T}: Add {R} or {G}.\n //\n addCard(Zone.BATTLEFIELD, playerB, \"Silvercoat Lion\", 1);\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Redcap Melee\", \"Silvercoat Lion\");\n //addTarget(playerA, \"Mountain\"); no lands to sacrifice\n\n //setStrictChooseMode(true);\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n\n assertGraveyardCount(playerA, \"Redcap Melee\", 1);\n assertGraveyardCount(playerB, \"Silvercoat Lion\", 1);\n }",
"@Test(timeout = 4000)\n public void test42() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSTerm jSTerm1 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n // Undeclared exception!\n try { \n jSTerm0.matches((JSPredicateForm) jSTerm1, jSSubstitution0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }",
"@SmallTest\n\tpublic void testBadMatchPenalty() {\n\t\tbadMatch();\n\t\tassertEquals((Integer) (START_SCORE - BAD_MATCH_PENALTY), Integer.valueOf(solo.getText(1).getText().toString()));\n\t}"
] | [
"0.6665921",
"0.61174136",
"0.6062542",
"0.5935049",
"0.5748289",
"0.5723504",
"0.564441",
"0.5598896",
"0.5587797",
"0.55242634",
"0.55127937",
"0.55095744",
"0.5499206",
"0.54937303",
"0.5471961",
"0.54611653",
"0.5453351",
"0.54234165",
"0.54020876",
"0.5401487",
"0.5390642",
"0.53696734",
"0.5367201",
"0.5366992",
"0.5332193",
"0.5322955",
"0.53075904",
"0.5289906",
"0.5286991",
"0.5285541",
"0.52853507",
"0.52727455",
"0.52720815",
"0.52693844",
"0.52592283",
"0.5250708",
"0.5234645",
"0.5233456",
"0.52148235",
"0.52058774",
"0.52056915",
"0.51837945",
"0.5172333",
"0.5167968",
"0.5157202",
"0.51344234",
"0.51149356",
"0.5108322",
"0.51068723",
"0.51065785",
"0.51049155",
"0.5093186",
"0.50931406",
"0.5084708",
"0.507121",
"0.5061494",
"0.5054503",
"0.5052154",
"0.50516903",
"0.5051185",
"0.5049495",
"0.5046043",
"0.5039492",
"0.5037347",
"0.5036756",
"0.50344026",
"0.50312614",
"0.5016293",
"0.50153476",
"0.5009082",
"0.50069064",
"0.49993628",
"0.49926737",
"0.49917948",
"0.49912363",
"0.4988923",
"0.49818635",
"0.49798778",
"0.49740273",
"0.4972673",
"0.49624",
"0.49618053",
"0.4957445",
"0.49567512",
"0.49562263",
"0.49551797",
"0.49492154",
"0.49484205",
"0.4944422",
"0.49426135",
"0.4941729",
"0.49401683",
"0.49394828",
"0.49394503",
"0.49380377",
"0.49355072",
"0.4933479",
"0.49319738",
"0.49314272",
"0.49292824"
] | 0.56702965 | 6 |
Ensures that the Rmi tactic succeeds once on a goal | @Test
public void applyOnceGoal() {
assertSuccess(" ;H; ;S; x ∈ ℤ ;; y ∈ ℤ |- x↦y ∈ id", rm("", empty));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void accomplishGoal() {\r\n isAccomplished = true;\r\n }",
"public boolean checkGoal() {\r\n\t\tif (goal) {\r\n\t\t\tgoal = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isGoal();",
"boolean checkGoal(Node solution);",
"public boolean isGoal() \n {\n return this.manhattan() == 0;\n // return this.manhattan() == 0 || this.checkTwinSolution();\n }",
"public abstract boolean isGoal(CCState state);",
"@Override\n public final void solve() {\n this.flag1 = this.neo.getPosition().equals(this.goal);\n \n }",
"public ResiduatedGoal (Goal goal)\n {\n setGoal(goal);\n }",
"public boolean isGoal() {\n return humming() = 0;\n }",
"@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}",
"@Override\r\n public void updateExit() {\r\n if (((CompositeGoal) compositeGoal).allOtherGoalsComplete()) {\r\n goalCompleted = true;\r\n compositeGoal.processGoal();\r\n } else {\r\n System.out.println(\"Need to complete other goals first\");\r\n }\r\n }",
"private void applyHint() {\r\n\t\tif (this.client.getTurn().getMoves().size() != 0) {\r\n\t\t\tthis.client.submitTurn();\r\n\t\t} else { \r\n\t\t\tUtil.println(\"This could not been applied to the server.\");\r\n\t\t}\r\n\t}",
"void checkPrerequisite() throws ActionNotPossibleException;",
"private void remindGoal()\n {\n System.out.println(\"you have to Pick up all three items and get back outside!\");\n }",
"@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public synchronized boolean completeMission() {\n //determine mission success / fail\n int numFails = 0;\n for (boolean choice : teamMemberChoices.values()) {\n if (!choice) {\n numFails++;\n }\n }\n if (numFails == 1) {\n sendPublicMessage(\"*The mission was a failure! There was 1 fail.*\");\n } else if (numFails > 1) {\n sendPublicMessage(\"*The mission was a failure! There were \" + numFails + \" fails.*\");\n } else {\n sendPublicMessage(\"*The mission was a success!*\");\n }\n\n CompleteMissionState completeMissionState = doMissionState.completeMission(numFails == 0);\n if (completeMissionState.isGameOver()) {\n //report the winner\n if (completeMissionState.didSpiesWin()) {\n sendPublicMessage(\"*3 missions have failed! Spies win!*\");\n announceSpies();\n sendPublicMessage(\"Thank you for playing!\");\n } else {\n sendPublicMessage(\"*3 missions have succeeded! The Resistance wins!*\");\n announceSpies();\n sendPublicMessage(\"Thank you for playing!\");\n }\n reset();\n return true;\n } else {\n pickTeamState = completeMissionState.getPickTeamState();\n state = State.PICK_TEAM;\n teamSelection = new HashSet<>();\n return false;\n }\n }",
"@Override\n public boolean isWaitingForTurnPhase() {return true;}",
"public void smogCheck(){\n if(!cargo){\n System.out.println(\"Hey ya don't got any cargo, might as well get your smog checked.\");\n this.cargo = true;\n }\n }",
"@Override\r\n\tpublic boolean runAgain(CompilationUnit unit) {\n\t\treturn false;\r\n\t}",
"public void succeededChallenge() {\n int point = players.get(indexOfActivePlayer).getPoint();\n int pointToAdd = categories.get(indexOfActiveCategory).getActiveChallengePoint();\n point += pointToAdd;\n players.get(indexOfActivePlayer).setPoint(point);\n addGameRound(true);\n playedRounds++;\n updateActivePlayer();\n updateActiveChallenge();\n }",
"public boolean isGoal() {\n\t\treturn hamming == 0;\n\t}",
"@Override\n\tpublic void reallyDoStep() {\n\t\tif(!(this.isFinished())) this.timeRemaining--; \n\t\treturn;\n\t}",
"@Test\n public void test_UnsuccessfulTravel() {\n \n setup(1, 1);\n \n SolarSystems.ADI.changeLocation(SolarSystems.SHALKA);\n \n // Tests the player's current fuel.\n assertEquals(1, player.getFuel());\n \n // Tests the player's current location.\n assertEquals(SolarSystems.ADI, player.getSolarSystems());\n \n }",
"public abstract boolean repOk();",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"public boolean isGoal() {\n return hamming == 0;\n }",
"@Override\n\tpublic boolean takeAction(Game game)\n\t{\n\t\tif(!this.checkAction(game))\n\t\t\tthrow new IllegalStateException(\"Not enough Quick actions\");\n\t\tif(game.getCurrentPlayer().checkCoins(3))\n\t\t{\n\t\t\tgame.getCurrentPlayer().setAssistants(game.getCurrentPlayer().getAssistants()+1);\n\t\t\tgame.decrementQuickActionCounter();\n\t\t\tsuper.takeAction(game);\n\t\t\treturn true;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthrow new IllegalStateException(\"Not enough coins to engage an assistant. An assistant costs 3 coins\");\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\n public boolean shouldExecute()\n {\n if (theEntity.getAITarget() == null && theEntity.isBurning())\n {\n return false;\n }\n else\n {\n if (theEntity.isRearingFirstTick()) // only set the first tick that is rearing\n {\n return true; \n }\n else\n {\n return false;\n }\n } \n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort1() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToTechnologyAverage, link, travelTimeOnLink);\n\t}",
"public boolean needsProblem();",
"@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}",
"boolean CanFinishTurn();",
"public boolean handleExecute(Action action) {\n ActorState a = action.getActor();\n if (a.getActor() == actor) {\n // Always succeed on self\n return true;\n }\n \n //maybeCounter(Augmentation.Type.EXECUTE, a, combatants);\n double chance = a.getWillpower() * (1.0 - getResistance());\n boolean success = Math.random() < chance;\n return success;\n }",
"protected void foundGoal( Path pathToGoal ) {\n\t\t/* A dummy implementation that does nothing with this\n\t\t exciting news. */\n\t}",
"@Override\n\t\tpublic boolean goalTest() {\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tif (state[i] != xGoals[i] || state[i + k] != yGoals[i]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"@When(\"the game result is not yet final\")\n\tpublic void the_game_result_is_not_yet_final() {\n\t}",
"public void fail() {\r\n\t\tcontestantIt.currentC().updatePoints(-FAIL);\r\n\t}",
"private boolean setIsSuccessful() {\n\t\tisSuccessful = false;\n\t\tRandom rand = new Random();\n\t\tint val = rand.nextInt(50);\n\t\tif (val % 2 == 0) {\n\t\t\tisSuccessful = true;\n\t\t}\n\t\treturn isSuccessful;\n\t}",
"public boolean shouldExecute() {\n return this.goalOwner.getTeam() == null ? false : super.shouldExecute();\n }",
"public void setAttemped() {\n\t\t_attempted = true;\n\t}",
"public void failedChallenge() {\n addGameRound(false);\n playedRounds++;\n updateActivePlayer();\n updateActiveChallenge();\n }",
"@Test\n public void moreThanOneCheckerOnToLocation() {\n\n assertTrue(game.move(Location.R1, Location.R2));\n assertTrue(game.move(Location.R1, Location.R3));\n game.nextTurn();\n // to der gerne skulle vaere lovlige og stemme med terningerne\n assertTrue(game.move(Location.R6, Location.R5));\n assertTrue(game.move(Location.R8, Location.R6));\n game.nextTurn();\n assertTrue(game.move(Location.R2, Location.R5));\n assertTrue(game.move(Location.R3, Location.R7));\n game.nextTurn();\n // der staar nu to sorte paa R4\n assertFalse(game.move(Location.R6, Location.R3));\n }",
"void waitingForMyTurn();",
"public boolean isGoal(){\n\t\tboolean ok = true;\n\t\tfor (int i = 0; i < getRows() && ok; i++) {\n\t\t\tfor (int j = 0; j < getColumns() && ok; j++) {\n\t\t\t\tif (cells[i][j].getSand() != getK()) \n\t\t\t\t\tok = false;\n\t\t\t}\n\t\t} \n\t\treturn ok;\n\t}",
"public boolean isGoal() {\n return (man == 0);\n }",
"@Override\r\n protected boolean isGoal(Point node) {\r\n return (node.equals(finish));\r\n }",
"@Test\n @DisplayName(\"After one player makes one move, verify conditions for next player toggle\")\n void doesPlayerContinue() {\n Player player = playerService.getP1();\n Pit pit = boardService.getPitByID(0);\n Move move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertTrue(boardService.doesPlayerContinue());\n\n // For the next move, if player 1 moves from pit 1, player will not continue\n pit = boardService.getPitByID(1);\n move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertFalse(boardService.doesPlayerContinue());\n }",
"public final void trigger (GoalProver prover) throws FailedUnificationException\n {\n if (_refCount == 0)\n _goal.prove((TypeChecker)prover);\n }",
"@Test\r\n public void testFinishTheMission() {\r\n\r\n Agent agent = jamesBond;\r\n Mission mission = infiltrateSPD;\r\n\r\n long agentId = agentManager.create(agent);\r\n long missionId = missionManager.createMission(mission);\r\n\r\n agent.setId(agentId);\r\n mission.setId(missionId);\r\n\r\n manager.attachAgentToMission(agent, mission);\r\n manager.finishTheMission(mission);\r\n\r\n mission = missionManager.getMission(missionId);\r\n \r\n assertNotNull(mission.getEnd());\r\n }",
"private Direction moveToGoal() throws GameActionException {\n Direction toGoal = location.directionTo(goal);\n if (rc.canMove(toGoal)) {\n return toGoal;\n } else {\n return getHandOnWall();\n }\n }",
"private boolean finalMilestoneAccomplished()\n {\n if( (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n (thirdMilestoneAccomplished()) &&\n (beliefs.puzzle[2][1] == 10) &&\n (beliefs.puzzle[2][2] == 11) &&\n (beliefs.puzzle[2][3] == 12) &&\n (beliefs.puzzle[3][1] == 14) &&\n (beliefs.puzzle[3][2] == 15)\n\n )\n return true;\n else\n return false;\n }",
"private boolean turnIfNeeded() {\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }",
"@Override\n public boolean isFinished() {\n return Robot.auton && counter > 50;\n }",
"private boolean waitForAO()\n {\n int countOfRetry = 15;\n do\n {\n try\n {\n log.debug(\"Attempting to wait for AO.\");\n activeObjects.count(MessageMapping.class);\n log.debug(\"Attempting to wait for AO - DONE.\");\n stop = true;\n return true;\n }\n catch (PluginException e)\n {\n countOfRetry--;\n try\n {\n Thread.sleep(5000);\n }\n catch (InterruptedException ie)\n {\n // nothing to do\n }\n }\n }\n while (countOfRetry > 0 && !stop);\n log.debug(\"Attempting to wait for AO - UNSUCCESSFUL.\");\n return false;\n }",
"public boolean isSolvable() {\n\t\tif (goal == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"protected boolean isFinished() {\n //return !RobotMap.TOTE_SWITCH.get();\n \treturn false;\n }",
"@Override\n\tpublic void run(Throwable escalation) throws Throwable {\n\t\tAssert.assertFalse(\"Flow already flagged as complete\", this.isComplete);\n\t\tthis.failure = escalation;\n\t\tthis.isComplete = true;\n\t}",
"static boolean isGoal(TreeNode node) {\n return false; // Should be overridden\n }",
"public ActingGoal() {\n\t\t// rosbridge compatibility issues\n\t}",
"@Override\n public boolean waitToProceed() {\n return false;\n }",
"public boolean isGoalState() {\n boolean isGoal = false;\r\n if(currjug1 == goal || currjug2 == goal)\r\n isGoal = true;\r\n return isGoal;\r\n }",
"public abstract boolean attack(TemporaryCharm i);",
"@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n this.missingFutures = 0;\n this.missingTetromino = 0;\n return INITIAL_BOARD.execute(false);\n }",
"private boolean decideIfEventShouldBeReportedAsAFailure() {\n \tint value = new Random().nextInt(100);\n \tif (value < TARGET_SUCCESS_RATE) {\n \t\treturn false;\n \t} else {\n \treturn true;\n \t}\n }",
"@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }",
"private boolean checkTransitionToShooting() {\n if (mOperatorInterface.getShoot() /* && (!mStorage.isEmpty()) && result.HasResult*/) {\n mRobotLogger.log(\"Changing to shoot because our driver said so...\");\n switch (mState) {\n\n /** Disables intake if transitioning from intake */\n case INTAKE:\n mIntake.stop();\n mStorage.stop();\n mIntakeState = IntakeState.IDLE;\n break;\n default:\n break;\n }\n mState = State.SHOOTING;\n\n /** Sets the shooting state to preparing if it's not already */\n if (mShootingState == ShootingState.IDLE) {\n mShootingState = ShootingState.PREPARE_TO_SHOOT;\n }\n return true;\n } else {\n // mRobotLogger.info(\"Could not shoot because \" + (!mStorage.isEmpty()) + \" \" +\n // mOperatorInterface.getShoot());\n return false;\n }\n }",
"public boolean actionCompleted() {\n return !mAttacking;\n }",
"public void doLearnTrials() {\n //clearAreaReset();\n\n int action = 0;\n float[] checkTable = getRplaceTable(myIal);\n\n for(int trial = 0; trial < learnTrials; trial++) { //For each of the learning trials.....\n\n //myIal.wait(500);\n //Do an IAL action ***************************************************************************************************************************************\n\n //Given the current state... do a random action\n action = getRandAction();\n if(myIal.myState == Agent.State.PLACE) {\n checkTable = myIal.getPlaceTable(myIal.locx, myIal.locy, myIal.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n myIal.updateQtable(myIal.getPlaceTable(myIal.locx, myIal.locy, myIal.locz), \n action, getRplaceTable(myIal)); //Ial updates table\n if(getRplaceTable(myIal)[action] > 0) {\n myIal.myState = Agent.State.MOVE;\n }\n }\n else if(myIal.myState == Agent.State.MOVE) {\n checkTable = myIal.getMoveTable(myIal.locx, myIal.locy, myIal.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n myIal.updateQtable(myIal.getMoveTable(myIal.locx, myIal.locy, myIal.locz), \n action, getRmoveTable(myIal)); //Ial updates table\n myIal.doAction(action);\n myIal.myState = Agent.State.PLACE;\n }\n \n //my2Ial.wait(500);\n //********************************************************************************************************************************************************\n //Do a 2IAL action\n //Given current state... do an action\n action = getRandAction();\n if(my2Ial.myState == Agent.State.PLACE) {\n checkTable = my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n my2Ial.updateQtable(my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz),\n action, getRplaceTable(my2Ial)); //2Ial updates table\n if(getRplaceTable(my2Ial)[action] > 0) {\n my2Ial.myState = Agent.State.MOVE;\n }\n } else if(my2Ial.myState == Agent.State.MOVE) {\n checkTable = my2Ial.getPlaceTable(my2Ial.locx, my2Ial.locy, my2Ial.locz);\n if(getMaxValue(checkTable) > 0) {\n action = getMaxIndex(checkTable);\n }\n my2Ial.updateQtable(my2Ial.getMoveTable(my2Ial.locx, my2Ial.locy, my2Ial.locz), \n action, getRmoveTable(my2Ial)); //2Ial updates table\n my2Ial.doAction(action);\n my2Ial.myState = Agent.State.PLACE;\n }\n }\n }",
"abstract public boolean performNextAttack();",
"public final boolean\n isOutcomeSuccess() { return hasOutcome_ && outcome_ == true; }",
"public boolean isGoal() {\n return hamming() == 0; // Board is solved if hamming distance is 0\n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort2() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Override\n public boolean continueExecuting()\n {\n theEntity.decrementRearingCounter();;\n Boolean continueExecuting = theEntity.getRearingCounter()>0; \n if (!continueExecuting)\n {\n theEntity.setRearing(false);\n theEntity.setAttackTarget(theEntity.getLastAttacker()); // now attack back\n }\n // DEBUG\n if (theEntity.getAITarget() != null)\n {\n System.out.println(\"AIPanic continueExecuting = \"+continueExecuting+\", rearingCounter = \"+theEntity.getRearingCounter()+\", isRearing = \"\n +theEntity.isRearing()+\", Attack Target = \"+theEntity.getAITarget().getClass().getSimpleName()+\", client side = \"+theEntity.worldObj.isRemote);\n }\n else\n {\n System.out.println(\"AIPanic continueExecuting = \"+continueExecuting+\", rearingCounter = \"+theEntity.getRearingCounter()+\", isRearing = \"\n +theEntity.isRearing()+\", Attack Target = null\"+\", client side = \"+theEntity.worldObj.isRemote);\n }\n return (continueExecuting);\n }",
"@Override\n protected boolean isFinished() {\n SmartDashboard.putNumber(\"TurnCommand Current Heading\", Robot.m_drivetrain.getAngle());\n SmartDashboard.putNumber(\"TurnCommand Target\", Start + TurnGoal);\n if (IsLeft) {\n return Robot.m_drivetrain.getAngle() <= Start + TurnGoal;\n } else {\n return Robot.m_drivetrain.getAngle() >= Start + TurnGoal;\n }\n }",
"public boolean performOk() {\r\n\t\treturn super.performOk();\r\n\t}",
"public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }",
"final Goal goal ()\n {\n return _goal;\n }",
"@Override\n protected boolean isFinished() {\n return Math.abs(m_currentError) <= constants.tolerance;\n }",
"@Test\n public void testOtherwise() {\n AtomicBoolean success = new AtomicBoolean(false);\n match(42L).otherwise(s -> success.set(true));\n\n assertTrue(success.get());\n }",
"protected void succeed() throws InvalidKeyException {\n task.succeed();\n }",
"public boolean isOkay() {\n return okay;\n }",
"@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}",
"void done(boolean allSucceeded);",
"public boolean isSolvable() {\n return goal != null;\n }",
"public static void resultOfPlayAllCorrect() {\n\t\tString mark=\"null\";\n\t\ttry {\n\t\t\tmark=PlayTrivia.playAllRightAnswers();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tif(mark==\"Sucsses\") {\n\t\t\tSystem.out.println(\"Test end page has:\" + mark + \" Test pass\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Test end page - failed\");\n\t\t}\n\t}",
"public final void setGoal(final int goal)\n {\n this.goal = goal;\n }",
"public void cantPlayGoNext() {\n\t switchTurn();\n }",
"protected boolean isFinished() {\n \t\n \tif(current_time >= goal) {\n \t\t\n \t\treturn true;\n \t}else {\n \t\t\n \t\treturn false;\n \t}\n }",
"public void moveFormationKeptTo(double xGoal, double yGoal, double angleGoal) {\n\n // Do not do anything if the intended goal bounding box overlaps with the current unit position. It does not\n // make sense.\n // TODO: Extremely ugly boundingBox code that currently only uses for drawing. This bounding box array should\n // currently is used for both drawing and collision checking. Separate these two bounding box for different\n // purpose.\n double[][] aliveBoundingBox = new double[][] {\n {boundingBox[0][0], boundingBox[0][1]},\n {boundingBox[1][0], boundingBox[1][1]},\n {boundingBox[2][0], boundingBox[2][1]},\n {boundingBox[3][0], boundingBox[3][1]},\n };\n if (PhysicUtils.checkPolygonPolygonCollision(aliveBoundingBox, getBoundingBoxAtPos(xGoal, yGoal, angleGoal))) return;\n\n // Set the shortest path\n Path shortestPath = env.getGraph().getShortestPath(\n anchorX, anchorY, xGoal, yGoal, env.getConstructs());\n path = shortestPath;\n path.getNodes().pollFirst();\n\n //TODO: fix the case when the path is empty\n if(path.getNodes().isEmpty()){\n return;\n }\n node = path.getNodes().get(0);\n\n // Set the goals\n goalX = node.getX();\n goalY = node.getY();\n goalAngle = angleGoal;\n\n // Find the furthest distance troops from the average position, according to angle goal\n ArrayList<BaseSingle> aliveArray = new ArrayList<>(aliveTroopsMap.keySet());\n double mostForwardDist = MathUtils.mostForwardDistance(aliveArray, -angleGoal);\n\n // Change unit state to moving, reset patience and ignore unit fought against\n state = UnitState.MOVING;\n currUnitPatience = unitStats.patience; // Reset patience.\n unitFoughtAgainst = null;\n\n // Reorder the troops if the turn is bigger than 90 degree\n // Essentially the last row of the block will become the new front row.\n double moveAngle = Math.atan2(goalY - anchorY, goalX - anchorX);\n if (Math.abs(MathUtils.signedAngleDifference(anchorAngle, moveAngle)) > UniversalConstants.NON_UTURN_ANGLE) {\n uTurnFormation();\n // Shift the anchorX,Y to the last row\n double downUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI));\n anchorX += depth * unitStats.spacing * downUnitX;\n anchorY += depth * unitStats.spacing * downUnitY;\n // Flip the angle\n anchorAngle += Math.PI;\n }\n\n // TODO: This is not well-designed code, since everytime we add a new unit with positional variation, we will\n // have to change this part of the code.\n if (this instanceof ArcherUnit) {\n ((ArcherUnit) this).generatePositionalVariation(troops.size());\n } else if (this instanceof SkirmisherUnit) {\n ((SkirmisherUnit) this).generatePositionalVariation(troops.size());\n }\n\n // Reset anchor angles\n if (Math.abs(MathUtils.signedAngleDifference(anchorAngle, moveAngle)) < UniversalConstants.NON_REGROUP_ANGLE) {\n double forwardedAnchorDist = (depth * unitStats.spacing / 2 + GameplayConstants.FORWARD_DISTANCE) *\n (1 - UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER) +\n mostForwardDist * UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER;\n // If the turn angle is not too sharp, we will not perform a reorder to keep the formation more consistent.\n // In this case, don't change the anchor angle and simply move the anchor position slightly forward.\n anchorX = averageX + MathUtils.quickCos((float) anchorAngle) * forwardedAnchorDist;\n anchorY = averageY + MathUtils.quickSin((float) anchorAngle) * forwardedAnchorDist;\n } else {\n double forwardedAnchorDist = (depth * unitStats.spacing / 2 + GameplayConstants.FORWARD_DISTANCE) *\n (1 - UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER) +\n mostForwardDist * UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER;\n anchorAngle = MathUtils.atan2(yGoal - averageY, xGoal - averageX);\n anchorX = averageX + MathUtils.quickCos((float) anchorAngle) * forwardedAnchorDist;\n anchorY = averageY + MathUtils.quickSin((float) anchorAngle) * forwardedAnchorDist;\n reorderTroops(anchorX, anchorY, anchorAngle);\n }\n\n // Decision has a random delay until it reaches the soldiers ear.\n for (int i = 0; i < troops.size(); i++) {\n // Set the goal and change the state\n BaseSingle troop = troops.get(i);\n troop.setDecisionDelay(MathUtils.randint(2, 20));\n }\n }",
"public void moveNoFormationTo(double xGoal, double yGoal, double angleGoal) {\n\n // Set the goals\n goalX = xGoal;\n goalY = yGoal;\n goalAngle = angleGoal;\n\n // Convert angle to unit vector\n double downUnitX = MathUtils.quickCos((float) (angleGoal + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (angleGoal + Math.PI));\n double sideUnitX = MathUtils.quickCos((float) (angleGoal + Math.PI / 2));\n double sideUnitY = MathUtils.quickSin((float) (angleGoal + Math.PI / 2));\n\n // Sort distances of each soldier to the final point\n for (BaseSingle single : troops) {\n single.setTempSquaredDistanceFromGoal((single.getX() - xGoal) * (single.getX() - xGoal) +\n (single.getY() - yGoal) * (single.getY() - yGoal));\n }\n\n // Sort the troops by distance to the goal\n Collections.sort(troops, new Comparator<BaseSingle>() {\n @Override\n public int compare(BaseSingle o1, BaseSingle o2) {\n return Double.compare(o1.getTempSquaredDistanceFromGoal(), o2.getTempSquaredDistanceFromGoal());\n }\n });\n\n // Calculate final positions\n for (int i = 0; i < troops.size(); i++) {\n double xGoalSingle = goalX + (i % width) * unitStats.spacing * sideUnitX + (i / width) * unitStats.spacing * downUnitX;\n double yGoalSingle = goalY + (i % width) * unitStats.spacing * sideUnitY + (i / width) * unitStats.spacing * downUnitY;\n\n // Set the goal and change the state\n BaseSingle troop = troops.get(i);\n troop.setxGoal(xGoalSingle);\n troop.setyGoal(yGoalSingle);\n troop.switchState(SingleState.MOVING);\n troop.setSpeedGoal(troops.get(i).getSpeedStat());\n troop.setAngleGoal(angleGoal);\n troop.setDecisionDelay(MathUtils.randint(2, 20));\n }\n\n // Reset the flankers\n resetFlanker();\n }",
"public void ok() {\n this.apply();\n }",
"@Override\n boolean canFail() {\n return true;\n }",
"private final void onInvocationFailed(final InstanceGoal<InstanceParameters> goal) {\n assert false;\n rlgm.event(goal, SpecificationEvent.FAILED_EVENT, null);\n }"
] | [
"0.70752114",
"0.68534416",
"0.6267982",
"0.6162042",
"0.60292935",
"0.60072136",
"0.5927743",
"0.589937",
"0.58919126",
"0.58240396",
"0.5798985",
"0.57866",
"0.5755237",
"0.57272875",
"0.5699486",
"0.5691211",
"0.5691211",
"0.5691211",
"0.5691211",
"0.5691211",
"0.5691211",
"0.56381035",
"0.5619383",
"0.5615371",
"0.5613417",
"0.5612809",
"0.5586704",
"0.5585528",
"0.5581119",
"0.5579739",
"0.5578254",
"0.557791",
"0.5575192",
"0.5568093",
"0.5554935",
"0.5553369",
"0.5538624",
"0.55352265",
"0.55303717",
"0.5527042",
"0.55255014",
"0.5524171",
"0.5522667",
"0.55115366",
"0.55054265",
"0.5504501",
"0.5488709",
"0.5488596",
"0.5473884",
"0.54561603",
"0.5455119",
"0.5453363",
"0.5444663",
"0.5439401",
"0.54292583",
"0.5418249",
"0.54144055",
"0.5410127",
"0.54077256",
"0.5397436",
"0.53955644",
"0.53900075",
"0.5378783",
"0.5378713",
"0.5376564",
"0.5372906",
"0.5372294",
"0.5369688",
"0.5362909",
"0.5360252",
"0.5359985",
"0.53586596",
"0.5355275",
"0.5346301",
"0.5342532",
"0.53359544",
"0.5333902",
"0.5332724",
"0.53274995",
"0.532571",
"0.5317486",
"0.53043896",
"0.5294512",
"0.52937454",
"0.52883375",
"0.52716935",
"0.52710176",
"0.52642787",
"0.5255291",
"0.5252946",
"0.5250075",
"0.524798",
"0.52440596",
"0.5240647",
"0.52380687",
"0.52334243",
"0.52233267",
"0.5220662",
"0.52197355",
"0.5212629"
] | 0.6390884 | 2 |
Ensures that the Rmi tactic succeeds recursively on a goal | @Test
public void applyRecursivelyGoal() {
assertSuccess(" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s",
rm("", ri("", rm("2.1", empty))));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean checkGoal(Node solution);",
"public boolean checkGoal() {\r\n\t\tif (goal) {\r\n\t\t\tgoal = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"static boolean isGoal(TreeNode node) {\n return false; // Should be overridden\n }",
"public boolean isGoal();",
"@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }",
"public boolean isGoal() \n {\n return this.manhattan() == 0;\n // return this.manhattan() == 0 || this.checkTwinSolution();\n }",
"@Override\n public final void solve() {\n this.flag1 = this.neo.getPosition().equals(this.goal);\n \n }",
"public abstract boolean isGoal(CCState state);",
"@Override\r\n protected boolean isGoal(Point node) {\r\n return (node.equals(finish));\r\n }",
"void checkPrerequisite() throws ActionNotPossibleException;",
"@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}",
"public void accomplishGoal() {\r\n isAccomplished = true;\r\n }",
"public boolean generateFromTactic(Decision decision, int tacticID, boolean considerParentPattern, boolean recursiveParent){\r\n \t\tTactic t = new Tactic();\r\n \t\tt.fromDatabase(tacticID);\r\n \t\tif (t.getID() < 0) return false;\r\n \t\tsetDescription(\"This alternative is generated on the basis of tactic \" + t.getName());\r\n \t\tsetStatus(AlternativeStatus.ATISSUE);\r\n \t\tsetParent(decision);\r\n \r\n \t\ttoDatabase(decision.getID(), RationaleElementType.DECISION);\r\n \t\tfromDatabase(getName());\r\n \t\tRationaleDB db = RationaleDB.getHandle();\r\n \t\tVector<Requirement> nfrs = db.getNFRs();\r\n \t\tboolean isCategoryMatched = false;\r\n \t\tboolean[] isNegQAMatched = new boolean[t.getBadEffects().size()];\r\n \t\tfor (int i = 0; i < isNegQAMatched.length; i++){\r\n \t\t\tisNegQAMatched[i] = false;\r\n \t\t}\r\n \r\n \t\tfor (int i = 0; i < nfrs.size(); i++){\r\n \t\t\t//Contribution matching on negative side of the tactic.\r\n \t\t\tIterator<OntEntry> badI = t.getBadEffects().iterator();\r\n \t\t\twhile (badI.hasNext()){\r\n \t\t\t\tOntEntry cur = badI.next();\r\n \r\n \t\t\t\tIterator<OntEntry> curChildrenI = db.getOntologyElements(cur.getName()).iterator();\r\n \t\t\t\twhile (curChildrenI.hasNext()){\r\n \t\t\t\t\tOntEntry curChild = curChildrenI.next();\r\n \t\t\t\t\tif (curChild.equals(nfrs.get(i).getOntology())){\r\n \t\t\t\t\t\tisNegQAMatched[i] = true;\r\n \t\t\t\t\t\tArgument arg = new Argument();\r\n \t\t\t\t\t\tString argName = \"Requirement Violation - \" + curChild.getName();\r\n \t\t\t\t\t\twhile(RationaleDBUtil.isExist(argName, \"Arguments\")){\r\n \t\t\t\t\t\t\targName = argName + \"~\";\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\targ.setName(argName);\r\n \t\t\t\t\t\targ.setRequirement(nfrs.get(i));\r\n \t\t\t\t\t\targ.setType(ArgType.VIOLATES);\r\n \t\t\t\t\t\targ.setPlausibility(Plausibility.CERTAIN);\r\n \t\t\t\t\t\targ.setAmount(10);\r\n \t\t\t\t\t\targ.setImportance(Importance.ESSENTIAL);\r\n \t\t\t\t\t\targ.setParent(this);\r\n \t\t\t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \r\n \t\t\tif (nfrs.get(i).getOntology().equals(t.getCategory())){\r\n \t\t\t\tArgument arg = new Argument();\r\n \t\t\t\tString argName = \"Requirement Satisfication - \" + t.getCategory().getName();\r\n \t\t\t\twhile(RationaleDBUtil.isExist(argName, \"Arguments\")){\r\n \t\t\t\t\targName = argName + \"~\";\r\n \t\t\t\t}\r\n \t\t\t\targ.setName(argName);\r\n \t\t\t\targ.setRequirement(nfrs.get(i));\r\n \t\t\t\targ.setType(ArgType.SATISFIES);\r\n \t\t\t\targ.setPlausibility(Plausibility.CERTAIN);\r\n \t\t\t\targ.setAmount(10);\r\n \t\t\t\targ.setImportance(Importance.ESSENTIAL);\r\n \t\t\t\targ.setParent(this);\r\n \t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t\tisCategoryMatched = true;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \r\n \r\n \t\t//Add arguments/claims\r\n \t\tif (!isCategoryMatched){\r\n \t\t\tArgument arg = new Argument();\r\n \t\t\tClaim c = new Claim();\r\n \t\t\tString claimName = \"Positive Quality Attribute - \" + t.getCategory().getName();\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Claims\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\tc.setDirection(Direction.IS);\r\n \t\t\targ.setType(ArgType.SUPPORTS);\r\n \t\t\tc.setName(claimName);\r\n \t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\tc.setOntology(t.getCategory());\r\n \t\t\tc.setEnabled(true);\r\n \t\t\tc.toDatabase();\r\n \r\n \t\t\targ.setClaim(c);\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\targ.setName(claimName);\r\n \t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\targ.setDescription(\"\");\r\n \t\t\targ.setAmount(5);\r\n \t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\targ.setParent(this);\t\r\n \t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t}\r\n \t\tfor (int i = 0; i < isNegQAMatched.length; i++){\r\n \t\t\tArgument arg = new Argument();\r\n \t\t\tClaim c = new Claim();\r\n \t\t\tString claimName = \"Negative Quality Attribute - \" + t.getBadEffects().get(i).getName();\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Claims\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n\t\t\tc.setDirection(Direction.IS);\r\n \t\t\targ.setType(ArgType.DENIES);\r\n \t\t\tc.setName(claimName);\r\n \t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\tc.setOntology(t.getBadEffects().get(i));\r\n \t\t\tc.setEnabled(true);\r\n \t\t\tc.toDatabase();\r\n \r\n \t\t\targ.setClaim(c);\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\targ.setName(claimName);\r\n \t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\targ.setDescription(\"\");\r\n \t\t\targ.setAmount(5);\r\n \t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\targ.setParent(this);\t\r\n \t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t}\r\n \t\t//Add impact score.\r\n \t\tif (considerParentPattern){\r\n \t\t\tint score = findWorstTacticPatternScore(decision, t, recursiveParent);\r\n \t\t\tif (score > 0){\r\n \t\t\t\tArgument arg = new Argument();\r\n \t\t\t\tClaim c = new Claim();\r\n\t\t\t\tString claimName = \"Tactic Impact\";\r\n \t\t\t\tc.fromDatabase(claimName);\r\n \t\t\t\tif (c.getID() < 0){\r\n\t\t\t\t\tc.setDirection(Direction.IS);\r\n \t\t\t\t\tc.setName(claimName);\r\n \t\t\t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\t\t\tOntEntry claimOnt = new OntEntry();\r\n \t\t\t\t\tclaimOnt.fromDatabase(TacticPattern.CHANGEONTNAME);\r\n \t\t\t\t\tif (claimOnt.getID() < 0){\r\n \t\t\t\t\t\t//Create a new quality attribute\r\n \t\t\t\t\t\tOntEntry ontParent = new OntEntry();\r\n \t\t\t\t\t\tontParent.fromDatabase(1);\r\n \t\t\t\t\t\tclaimOnt.setName(TacticPattern.CHANGEONTNAME);\r\n \t\t\t\t\t\tclaimOnt.setEnabled(true);\r\n\t\t\t\t\t\tclaimOnt.setImportance(Importance.DEFAULT);\r\n \t\t\t\t\t\tclaimOnt.toDatabase(ontParent.getID());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tc.setOntology(claimOnt);\r\n \t\t\t\t\tc.setEnabled(true);\r\n \t\t\t\t\tc.toDatabase();\r\n \t\t\t\t}\r\n \t\t\t\targ.setClaim(c);\r\n \t\t\t\targ.setType(ArgType.DENIES);\r\n \r\n \t\t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t\t}\r\n \t\t\t\targ.setName(claimName);\r\n \t\t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\t\targ.setDescription(\"\");\r\n \t\t\t\targ.setAmount(score);\r\n \t\t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\t\targ.setParent(this);\t\r\n \t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t}\r\n \t\t}\r\n \t\t//Evaluate\r\n \t\tfromDatabase(name);\r\n\t\tevaluate();\r\n \t\tfromDatabase(name);\r\n \t\treturn true;\r\n \t}",
"static void tryPlantSquare() throws GameActionException{\n\t\tint num = 0;\n\t\tDirection dir = Direction.getEast();\n\t\tboolean planted = tryPlantTree(dir, 2, 10);\n\t\twhile (num <= 1 && !planted){\n\t\t\tdir = dir.rotateLeftDegrees(90);\n\t\t\tplanted = tryPlantTree(dir, 2, 10);\n\t\t\tif (planted) return;\n\t\t\tnum++;\n\t\t}\n\t}",
"public abstract boolean repOk();",
"public boolean isSolvable() {\n\t\tif (goal == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"static boolean tryBuildRobot(RobotType robo, Direction dir) throws GameActionException {\n\t\tif (rc.canBuildRobot(robo, dir)) {\n\t\t\trc.buildRobot(robo, dir);\n\t\t\treturn true;\n\t\t}\n\n\t\t// Now try a bunch of similar angles\n\t\tint currentCheck = 1;\n\t\tint checksPerSide = 180;\n\t\tint degreeOffset = 1;\n\t\twhile(currentCheck<=checksPerSide) {\n\t\t\t// Try the offset of the left side\n\t\t\tif(rc.canBuildRobot(robo,dir.rotateLeftDegrees(degreeOffset*currentCheck))) {\n\t\t\t\trc.buildRobot(robo,dir.rotateLeftDegrees(degreeOffset*currentCheck));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t// Try the offset on the right side\n\t\t\tif(rc.canBuildRobot(robo,dir.rotateRightDegrees(degreeOffset*currentCheck))) {\n\t\t\t\trc.buildRobot(robo,dir.rotateRightDegrees(degreeOffset*currentCheck));\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t// No move performed, try slightly further\n\t\t\tcurrentCheck++;\n\t\t}\n\t\treturn false;\n\n\t}",
"public ResiduatedGoal (Goal goal)\n {\n setGoal(goal);\n }",
"protected void foundGoal( Path pathToGoal ) {\n\t\t/* A dummy implementation that does nothing with this\n\t\t exciting news. */\n\t}",
"public static void check() {\n\t\twhile (!choiceOfNodes.isEmpty()) {\n\t\t\tNode node = choiceOfNodes.remove();\n\t\t\tif (node.isItGoal()) {\n\t\t\t\tSystem.out.println(\"\\nSolution: \\n\");\n\t\t\t\tprintTheBoards(node);\n\t\t\t\tSystem.out.println(\"No. of nodes generated in total: \" + nodesGenerated);\n\t\t\t\tSystem.out.println(\"No. of nodes expanded: \" + nodesOpened);\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tif (isItVisted(node)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tnodesOpened++;\n\t\t\t\t\tnodesCovered.add(node);\n\t\t\t\t\tstartOperation(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean foundGoal() \r\n\t{\r\n\t\t// Write the method that determines if the walker has found a way out of the maze.\r\n\t\treturn ( currentCol < 0 || currentRow < 0 || \r\n\t\t\t\t currentCol >= size || currentRow >= size );\r\n\t}",
"boolean nextStep();",
"@Override\r\n public void updateExit() {\r\n if (((CompositeGoal) compositeGoal).allOtherGoalsComplete()) {\r\n goalCompleted = true;\r\n compositeGoal.processGoal();\r\n } else {\r\n System.out.println(\"Need to complete other goals first\");\r\n }\r\n }",
"public boolean shouldExecute() {\n return this.goalOwner.getTeam() == null ? false : super.shouldExecute();\n }",
"public boolean needsProblem();",
"@Test\n\t\tpublic void applyOnceGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; x ∈ ℤ ;; y ∈ ℤ |- x↦y ∈ id\", rm(\"\", empty));\n\t\t}",
"static int tryPlantCorners(int check, MapLocation target) throws GameActionException{\n\t\tif (check == 0 || check == 1 || check == 8) {\n\t\t\tif(rc.canMove(Direction.getNorth()))\n\t\t\t\trc.move(Direction.getNorth());\n\t\t\tif (check == 1) \n\t\t\t\ttryPlantTree(Direction.getWest().rotateRightDegrees(2), 2, 5);\n\t\t\treturn check + 1;\n\t\t}\n\t\telse if (check == 2){\n\t\t\ttryPlantTree(Direction.getEast().rotateLeftDegrees(2), 2, 5);\n\t\t\treturn check + 1;\n\t\t}\n\t\telse if (check == 7){\n\t\t\ttryPlantTree(Direction.getEast().rotateRightDegrees(2), 2, 5);\n\t\t\treturn check + 1;\n\t\t}\n\t\telse if (check == 4 || check == 9){\n\t\t\tif (rc.canMove(target))\n\t\t\t\trc.move(target);\n\t\t\treturn check + 1;\n\t\t}\n\t\telse if (check == 3 || check == 5 || check == 6){\n\t\t\tif (rc.canMove(Direction.getSouth()))\n\t\t\t\trc.move(Direction.getSouth());\n\t\t\tif (check == 6)\n\t\t\t\ttryPlantTree(Direction.getWest().rotateLeftDegrees(2), 2, 5);\n\t\t\treturn check + 1;\n\t\t}\n\t\treturn 0;\n\t}",
"@Override\n\t\tpublic boolean goalTest() {\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tif (state[i] != xGoals[i] || state[i + k] != yGoals[i]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"public boolean validStep(int agentId) {\n\t\tLinkedList<Command> plan = planMap.get(agentId);\r\n\t\tif (plan.isEmpty())\r\n\t\t\treturn true;\r\n\t\t\r\n\t\tLinkedList<Command> nextStepPlan = new LinkedList<>();\r\n\t\tnextStepPlan.add(plan.get(0));\r\n\r\n\t\tfor (Map.Entry<Integer, LinkedList<Command>> entry : planMap.entrySet()) {\r\n\t\t\tif (agentId != entry.getKey()) {\r\n\t\t\t\tAgent otherAgent = getAgent(entry.getKey());\r\n\t\t\t\tLinkedList<Command> otherPlan = planMap.get(otherAgent.getId());\r\n\t\r\n\t\t\t\tboolean conflict = checkPlans(agentId, nextStepPlan, otherAgent.getId(), otherPlan);\r\n\t\t\t\tif(conflict) {\r\n\t\t\t\t\tif(handleBlockingAgentConflict(getAgent(agentId), otherAgent, plan)) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (agentId > entry.getKey()) {\t\t\t\t\t\t\r\n\t\t\t\t\t\t//LinkedList<Command> otherPlan = entry.getValue();\t\t\t\t\t\r\n\t\t\t\t\t\t/* There is a conflict but the other agent has no intention to move\r\n\t\t\t\t\t\tif(otherPlan.isEmpty() && (getJob(otherAgent) == null) && \r\n\t\t\t\t\t\t\t\t(otherAgent.getPosition().equals(otherAgent.getLastPosition()))) {\r\n\t\t\t\t\t\t\tPriorityQueue<SafePoint> safePoints = SafeSpotDetector.detectSafeSpots(this);\r\n\t\t\t\t\t\t\tPoint movePos = safePoints.poll();\r\n\t\t\t\t\t\t\tthis.addJob(new TravelSubIntention(movePos, otherAgent.getId(), null));\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\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public final void execute(final ExecutionComponent executionComponent, final InstanceGoal<?> topLevelGoal) {\n final InstanceGoal<InstanceParameters> instanceGoal = rlgm.getNextInstanceGoal();\n if (instanceGoal != null) {\n final GaaAgent agent = (GaaAgent) executionComponent;\n\n // Invoke the goal\n Object returnValue = null;\n try {\n returnValue = agent.getGoalCapabilityMap().invoke(instanceGoal);\n\n } catch (final NoSuchMethodException e) {\n // We tried to invoke a bad method name. The RLGM we're\n // executing probably needs modification, or our agent does not\n // possess (or register) the desired capability.\n onInvocationFailed(instanceGoal);\n return;\n } catch (final IllegalArgumentException e) {\n // We were unable to correctly map the goal's instance\n // parameters to the method's formal parameters. The RLGM we're\n // executing probably needs modification, or our agent does not\n // possess (or register) the desired capability.\n onInvocationFailed(instanceGoal);\n return;\n } catch (final IllegalAccessException e) {\n // We tried to access a method that we are not allowed to.\n onInvocationFailed(instanceGoal);\n return;\n } catch (final InvocationTargetException e) {\n // An assertion in the target method was hit, or a runtime\n // exception was thrown.\n onInvocationFailed(instanceGoal);\n return;\n }\n\n try {\n // Trigger the appropriate instance tree changes based on\n // this goal's completion\n final InstanceParameters instanceParameters = instanceGoal.getParameter();\n\n for (final SpecificationEvent event : rlgm.getEventsToFire(instanceGoal.getSpecificationGoal(), returnValue)) {\n InstanceParameters actualParameters = null;\n\n // Map event formal parameters to actual parameters\n if (event.getParameters() != null) {\n final Set<UniqueIdentifier> formalParameters = event.getParameters().getParameters();\n if (!formalParameters.isEmpty()) {\n actualParameters = event.createInstanceParameters();\n\n if (instanceParameters != null) {\n boolean returnMapped = false;\n for (final UniqueIdentifier formalParameter : formalParameters) {\n final Object actualParameter = instanceParameters.getValue(formalParameter);\n if (actualParameter != null) {\n actualParameters.setValue(formalParameter, actualParameter);\n } else {\n if (!returnMapped) {\n actualParameters.setValue(formalParameter, returnValue);\n returnMapped = true;\n } else {\n // We can only pass along the return\n // value\n assert false;\n }\n }\n }\n } else {\n // We can only pass along the return value\n assert formalParameters.size() == 1;\n actualParameters.setValue(formalParameters.iterator().next(), returnValue);\n }\n }\n }\n\n // Signal the event\n rlgm.event(instanceGoal, event, actualParameters);\n }\n\n // Signal the we achieved the goal\n rlgm.event(instanceGoal, SpecificationEvent.ACHIEVED_EVENT, null);\n\n } catch (final RoleLevelGoalModel.GoalFailureException e) {\n // Signal the we failed the goal\n rlgm.event(instanceGoal, SpecificationEvent.FAILED_EVENT, null);\n }\n }\n }",
"private Direction moveToGoal() throws GameActionException {\n Direction toGoal = location.directionTo(goal);\n if (rc.canMove(toGoal)) {\n return toGoal;\n } else {\n return getHandOnWall();\n }\n }",
"private StatusEnum stepInternal()\n {\n if (initialStep)\n {\n this.tail = map.getStart();\n this.openSet.push(map.getStart());\n initialStep = false;\n }\n\n if (status != StatusEnum.RUNNING)\n return status;\n\n cursor = openSet.pop(); // Pull the cursor off the open set min-heap\n if (cursor == null)\n {\n // The open set was empty, so although we have not reached the goal, there are no more points to investigate\n return StatusEnum.COMPLETED_NOT_FOUND;\n }\n\n while (closedSet.contains(cursor) || !map.isTraversable(cursor))\n {\n // The cursor is in the closed set (meaning it was already investigated) or the cursor point is non traversable on the map\n cursor = openSet.pop();\n if (cursor == null)\n {\n return StatusEnum.COMPLETED_NOT_FOUND;\n }\n }\n\n // The goal has been reached, the path is complete\n if (cursor.equals(map.getGoal()))\n {\n tail = cursor; // Set the member tail to be used in the reconstruction done in getPath()\n return StatusEnum.COMPLETED_FOUND;\n }\n\n // Add the cursor point to the closed set\n closedSet.add(cursor);\n\n // Get the list of neighboring points\n List<WeightedPoint> neighbors = neighborSelector.getNeighbors(map, cursor, heuristic);\n\n // Link the neighbors to the cursor (for backtracking the path when the goal is reached) and calculate their weight\n for (WeightedPoint wp : neighbors)\n {\n if (map.isTraversable(wp.getRow(), wp.getCol()) && !closedSet.contains(wp))\n {\n wp.setFromCost(cursor.getFromCost() + heuristic.distance(cursor, wp));\n\n if (dijkstra)\n {\n wp.setToCost(0);\n }\n else\n {\n wp.setToCost(heuristic.distance(wp, map.getGoal()));\n }\n wp.setPrev(cursor);\n }\n }\n\n if (shuffle)\n {\n // Shuffle the neighbors to randomize the order of testing nodes with the same cost value\n Collections.shuffle( neighbors );\n }\n Collections.sort( neighbors );\n\n // Put the neighbors on the open set\n for (WeightedPoint wp : neighbors)\n {\n if (!openSet.contains(wp))\n openSet.push(wp);\n }\n\n return StatusEnum.RUNNING;\n }",
"public boolean isSolvable() {\n return goal != null;\n }",
"public void solution() {\n\t\t\n\t}",
"public boolean isSolvable()\n {\n if (goalNode!=null && goalNode.board.isGoal()){\n return true;\n }\n return false;\n\n }",
"public boolean isGoal(){\n\t\tboolean ok = true;\n\t\tfor (int i = 0; i < getRows() && ok; i++) {\n\t\t\tfor (int j = 0; j < getColumns() && ok; j++) {\n\t\t\t\tif (cells[i][j].getSand() != getK()) \n\t\t\t\t\tok = false;\n\t\t\t}\n\t\t} \n\t\treturn ok;\n\t}",
"@Override\n boolean canFail() {\n return true;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"public boolean isGoal() {\n return hamming() == 0;\n }",
"@Override\n public boolean canContinueWalking() {\n return true;\n }",
"private boolean shouldReplanPath(State.StateView state, History.HistoryView history, Stack<MapLocation> currentPath)\n {\n \t\t/* TODO: Write this method\n \t\t * Check if the path is blocked every step or check if the next spot is blocked?\n \t\t * Does enemy attack if you get too close?\n \t\t */\n \t\n \t\n \t\t//checking if the next step is blocked\n \t\t//setting up local fields\n \t\tUnitView enemy = state.getUnit(enemyFootmanID);\n \t\tMapLocation next;\n \t\tif (!path.isEmpty()) {\n \t\t\tnext = path.peek();\n \t\t\n \t\t\tif(next.x == enemy.getXPosition() && next.y == enemy.getYPosition()) \n \t\t\t\treturn true;\n \t\t\t\n \t\t}\n \t\t\n return false;\n }",
"@Test\n public void testRun_DecisionOtherwise_IN_A1_D_A3_FN() {\n // Final node creation\n final Node fn = NodeFactory.createNode(\"#6\", NodeType.FINAL);\n\n // Action node 3 (id #5) creation and flow to final node\n final String A3_ID = \"#5\";\n final Node an3 = NodeFactory.createNode(A3_ID, NodeType.ACTION);\n final ExecutableActionMock objAn3 = ExecutableActionMock.create(KEY, A3_ID);\n ((ContextExecutable) an3).setObject(objAn3);\n ((ContextExecutable) an3).setMethod(objAn3.getPutIdInContextMethod());\n ((SingleControlFlowNode) an3).setFlow(fn);\n\n // Action node 2 (id #4) creation and flow to final node\n final String A2_ID = \"#4\";\n final Node an2 = NodeFactory.createNode(A2_ID, NodeType.ACTION);\n final ExecutableActionMock objAn2 = ExecutableActionMock.create(KEY, A2_ID);\n ((ContextExecutable) an2).setObject(objAn2);\n ((ContextExecutable) an2).setMethod(objAn2.getPutIdInContextMethod());\n ((SingleControlFlowNode) an2).setFlow(fn);\n\n final String A1_KEY = \"a1_key\";\n final String A1_ID = \"#2\";\n\n // Decision node (id #3) creation\n final Node dNode = NodeFactory.createNode(\"#3\", NodeType.DECISION);\n // Flow control from decision to action node 2 (if KEY == #2 goto A2)\n Map<FlowCondition, Node> flows = new HashMap<>(1);\n final FlowCondition fc2a2 = new FlowCondition(A1_KEY, ConditionType.EQ, \"ANYTHING WRONG\");\n flows.put(fc2a2, an2);\n // Otherwise, goto A3\n ((ConditionalControlFlowNode) dNode).setFlows(flows, an3);\n\n // Action node 1 (id #2) creation. Sets the context to be used by the decision\n final Node an1 = NodeFactory.createNode(A1_ID, NodeType.ACTION);\n final ExecutableActionMock objAn1 = ExecutableActionMock.create(A1_KEY, A1_ID);\n ((ContextExecutable) an1).setObject(objAn1);\n ((ContextExecutable) an1).setMethod(objAn1.getPutIdInContextMethod());\n ((SingleControlFlowNode) an1).setFlow(dNode);\n\n // Initial node (id #1) creation and flow to action node 1\n final Node iNode = NodeFactory.createNode(\"#1\", NodeType.INITIAL);\n ((SingleControlFlowNode) iNode).setFlow(an1);\n\n final Jk4flowWorkflow wf = Jk4flowWorkflow.create(iNode);\n\n ENGINE.run(wf);\n\n Assert.assertEquals(A3_ID, wf.getContext().get(KEY));\n }",
"@Override\n\tpublic boolean step(){\n\t\tboolean ret=false;\n\t\tif(!isFollowing()){\n\t\t\t//80% valoszinuseggel leptet egy szomszedra\n\t\t\tRandom rng=new Random();\n\t\t\tboolean doAStep =rng.nextInt(10)>1;\n\t\t\tif(doAStep){\n\t\t\t\tif(tile != null){\n\t\t\t\tint bound=tile.getNeighbors().size();\n\t\t\t\t//System.out.println(\"bound :\"+bound);\n\t\t\t\t//System.out.println(\"ez lett a bound: \"+rng.nextInt(bound));\n\t\t\t\tret=step(tile.getNeighbors().get(rng.nextInt(bound)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public void challengeMove(){\n int maxOutcome = -1;\n int returnIndex = -1;\n Hole lastHole;\n Hole selectedHole;\n ArrayList<Hole> availableHoles = availableMoves(nextToPlay);\n for(int i = 0; i < availableHoles.size(); i++){\n selectedHole = availableHoles.get(i);\n lastHole = holes[(selectedHole.getHoleIndex() + selectedHole.getNumberOfKoorgools() - 1) % 18];\n if(lastHole.getOwner() != nextToPlay){\n int numOfKorgools = lastHole.getNumberOfKoorgools() +1;\n if(numOfKorgools == 3 && !nextToPlay.hasTuz()){\n int otherTuzIndex = getPlayerTuz(Side.WHITE);\n if(otherTuzIndex == -1 || ((otherTuzIndex + 9) != lastHole.getHoleIndex())) {\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n if(numOfKorgools % 2 == 0 && numOfKorgools > maxOutcome){\n maxOutcome = numOfKorgools;\n returnIndex = selectedHole.getHoleIndex();\n }\n }\n }\n if(returnIndex <= -1){\n randomMove();\n return;\n }\n redistribute(returnIndex);\n }",
"public abstract void performStep();",
"private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}",
"public boolean trySuccess()\r\n/* 52: */ {\r\n/* 53: 84 */ return trySuccess(null);\r\n/* 54: */ }",
"boolean isRecursive();",
"public static Goal[] createEverythingGoals() {\n\t\t// [ & ] <--- rootGoal1\n\t\t// / / \\ \\\n\t\t// P T E M\n\t\t//\n\t\tCompositeGoal rootGoal1 = new CompositeGoal(CompositeGoal.and);\n\t\trootGoal1.addChild(new PuzzleGoal());\n\t\trootGoal1.addChild(new TreasureGoal());\n\t\trootGoal1.addChild(new EnemiesGoal());\n\t\trootGoal1.addChild(new MazeGoal());\n\t\t\n\t\t\n\t\tCompositeGoal subGoal1 = new CompositeGoal(CompositeGoal.and);\n\t\tsubGoal1.addChild(new EnemiesGoal());\n\t\tsubGoal1.addChild(new TreasureGoal());\n\t\tsubGoal1.addChild(new MazeGoal());\n\t\t\n\t\tCompositeGoal subGoal2 = new CompositeGoal(CompositeGoal.and);\n\t\tsubGoal2.addChild(new PuzzleGoal());\n\t\tsubGoal2.addChild(new TreasureGoal());\n\t\tsubGoal2.addChild(subGoal1);\n\t\t\n\t\t// [ | ] <--- rootGoal2\n\t\t// / \\\n\t\t// I [ & ] <---- subGoal2\n\t\t// / | \\\n\t\t// P T [ & ] <---- subGoal1\n\t\t// /|\\\n\t\t// E T M\n\t\tCompositeGoal rootGoal2 = new CompositeGoal(CompositeGoal.or);\n\t\trootGoal2.addChild(new ImpossibleGoal());\n\t\trootGoal2.addChild(subGoal2);\n\n\t\t\n\t\tString goalString = \"\"\n\t\t\t+ \" { \\\"goal\\\": \\\"AND\\\", \\\"subgoals\\\":\\n\"\n\t\t\t+ \" [ { \\\"goal\\\": \\\"exit\\\" },\\n\"\n\t\t\t+ \" { \\\"goal\\\": \\\"AND\\\", \\\"subgoals\\\":\\n\"\n\t\t\t+ \" [ {\\\"goal\\\": \\\"treasure\\\" },\\n\"\n\t\t\t+ \" { \\\"goal\\\": \\\"AND\\\", \\\"subgoals\\\":\\n\"\n\t\t\t+ \" [ {\\\"goal\\\": \\\"enemies\\\" },\\n\"\n\t\t\t+ \" {\\\"goal\\\": \\\"boulders\\\" }\\n\"\n\t\t\t+ \" ]\\n\"\n\t\t\t+ \" }\\n\"\n\t\t\t+ \" ]\\n\"\n\t\t\t+ \" }\\n\"\n\t\t\t+ \" ]\\n\"\n\t\t\t+ \" }\\n\";\n\t\t\n\t\tJSONObject json = new JSONObject(new JSONTokener(goalString));\n\t\tGoal goal3 = Goal.createGoal(json);\n\t\t\n\t\treturn new Goal[]{ rootGoal1, rootGoal2, goal3 };\n\t}",
"public abstract boolean interactionPossible(Robot robot);",
"@Test\r\n\tpublic void test06_allPositive() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\r\n\t\tint[] a1 = {};\r\n\t\tassertTrue(rm.allPositive(a1));\r\n\t\tint[] a2 = { 1, 2, 3, 4, 5 };\r\n\t\tassertTrue(rm.allPositive(a2));\r\n\t\tint[] a3 = { 1, 2, -3, 4, 5 };\r\n\t\tassertFalse(rm.allPositive(a3));\r\n\t}",
"@Override\n\t\tpublic boolean isValidSolution() {\n\t\t\treturn super.isValidSolution();\n\t\t}",
"private static boolean goalFunction(Maze m, int x, int y)\n\t{\n\t\tfor (int i = 0; i < x; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < y; j++)\n\t\t\t{\n\t\t\t\tif(m.getRoom(i,j).getNumConnectedRooms() == 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(m.getEnd().getNumConnectedRooms() > 1)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}",
"public abstract void bepaalGrootte();",
"private boolean turnIfNeeded() {\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n public void isActionLegal()\n {\n // Setup.\n final CheckersGameInjector injector = new CheckersGameInjector();\n final List<Agent> agents = createAgents(injector);\n final Agent agentWhite = agents.get(1);\n final CheckersEnvironment environment = createEnvironment(injector, agents);\n final Adjudicator adjudicator = injector.injectAdjudicator();\n\n // Agent white can move his token to an adjacent empty space.\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentWhite, CheckersPosition.P09,\n CheckersPosition.P13);\n assertTrue(adjudicator.isActionLegal(action));\n }\n\n // Agent white cannot move backwards.\n assertFalse(adjudicator.isActionLegal(new CheckersMoveAction(environment, agentWhite, CheckersPosition.P09,\n CheckersPosition.P05)));\n\n // Agent white cannot move to an occupied space.\n assertFalse(adjudicator.isActionLegal(new CheckersMoveAction(environment, agentWhite, CheckersPosition.P04,\n CheckersPosition.P08)));\n\n // Agent white cannot move a red token.\n assertFalse(adjudicator.isActionLegal(new CheckersMoveAction(environment, agentWhite, CheckersPosition.P21,\n CheckersPosition.P17)));\n\n // Agent white cannot move too far.\n assertFalse(adjudicator.isActionLegal(new CheckersMoveAction(environment, agentWhite, CheckersPosition.P09,\n CheckersPosition.P18)));\n }",
"public Guard isFinishedExecution() {\n if (depth == PSymGlobal.getConfiguration().getMaxStepBound()) {\n return Guard.constTrue();\n } else {\n return allMachinesHalted;\n }\n }",
"void check() throws YangException;",
"@Override\r\n\tpublic Goal ReachabilityChecked(Job job) {\r\n\t\tGoal goal = super.ReachabilityChecked(job);\r\n\t\ttry {\r\n\t\t\tgoal.addPrerequisiteGoal(EquGenerated(job), this);\r\n\t\t}\r\n\t\tcatch(CyclicDependencyException e) {\r\n\t\t\tthrow new InternalCompilerError(e);\r\n\t\t}\r\n\t\treturn internGoal(goal);\r\n\t}",
"@Test\n public void isMoveActionLegalFor()\n {\n // Setup.\n final CheckersGameInjector injector = new CheckersGameInjector();\n final List<Agent> agents = createAgents(injector);\n final CheckersEnvironment environment = createEnvironment(injector, agents);\n final CheckersAdjudicator adjudicator = injector.injectAdjudicator();\n\n // Agent white can move his token to an adjacent empty space.\n assertTrue(adjudicator.isMoveActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P09,\n CheckersPosition.P13));\n\n // Agent white cannot move backwards.\n assertFalse(adjudicator.isMoveActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P09,\n CheckersPosition.P05));\n\n // Agent white cannot move to an occupied space.\n assertFalse(adjudicator.isMoveActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P04,\n CheckersPosition.P08));\n\n // Agent white cannot move a red token.\n assertFalse(adjudicator.isMoveActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P21,\n CheckersPosition.P17));\n\n // Agent white cannot move too far.\n assertFalse(adjudicator.isMoveActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P09,\n CheckersPosition.P18));\n }",
"abstract public boolean performNextAttack();",
"public void moveFormationKeptTo(double xGoal, double yGoal, double angleGoal) {\n\n // Do not do anything if the intended goal bounding box overlaps with the current unit position. It does not\n // make sense.\n // TODO: Extremely ugly boundingBox code that currently only uses for drawing. This bounding box array should\n // currently is used for both drawing and collision checking. Separate these two bounding box for different\n // purpose.\n double[][] aliveBoundingBox = new double[][] {\n {boundingBox[0][0], boundingBox[0][1]},\n {boundingBox[1][0], boundingBox[1][1]},\n {boundingBox[2][0], boundingBox[2][1]},\n {boundingBox[3][0], boundingBox[3][1]},\n };\n if (PhysicUtils.checkPolygonPolygonCollision(aliveBoundingBox, getBoundingBoxAtPos(xGoal, yGoal, angleGoal))) return;\n\n // Set the shortest path\n Path shortestPath = env.getGraph().getShortestPath(\n anchorX, anchorY, xGoal, yGoal, env.getConstructs());\n path = shortestPath;\n path.getNodes().pollFirst();\n\n //TODO: fix the case when the path is empty\n if(path.getNodes().isEmpty()){\n return;\n }\n node = path.getNodes().get(0);\n\n // Set the goals\n goalX = node.getX();\n goalY = node.getY();\n goalAngle = angleGoal;\n\n // Find the furthest distance troops from the average position, according to angle goal\n ArrayList<BaseSingle> aliveArray = new ArrayList<>(aliveTroopsMap.keySet());\n double mostForwardDist = MathUtils.mostForwardDistance(aliveArray, -angleGoal);\n\n // Change unit state to moving, reset patience and ignore unit fought against\n state = UnitState.MOVING;\n currUnitPatience = unitStats.patience; // Reset patience.\n unitFoughtAgainst = null;\n\n // Reorder the troops if the turn is bigger than 90 degree\n // Essentially the last row of the block will become the new front row.\n double moveAngle = Math.atan2(goalY - anchorY, goalX - anchorX);\n if (Math.abs(MathUtils.signedAngleDifference(anchorAngle, moveAngle)) > UniversalConstants.NON_UTURN_ANGLE) {\n uTurnFormation();\n // Shift the anchorX,Y to the last row\n double downUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI));\n anchorX += depth * unitStats.spacing * downUnitX;\n anchorY += depth * unitStats.spacing * downUnitY;\n // Flip the angle\n anchorAngle += Math.PI;\n }\n\n // TODO: This is not well-designed code, since everytime we add a new unit with positional variation, we will\n // have to change this part of the code.\n if (this instanceof ArcherUnit) {\n ((ArcherUnit) this).generatePositionalVariation(troops.size());\n } else if (this instanceof SkirmisherUnit) {\n ((SkirmisherUnit) this).generatePositionalVariation(troops.size());\n }\n\n // Reset anchor angles\n if (Math.abs(MathUtils.signedAngleDifference(anchorAngle, moveAngle)) < UniversalConstants.NON_REGROUP_ANGLE) {\n double forwardedAnchorDist = (depth * unitStats.spacing / 2 + GameplayConstants.FORWARD_DISTANCE) *\n (1 - UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER) +\n mostForwardDist * UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER;\n // If the turn angle is not too sharp, we will not perform a reorder to keep the formation more consistent.\n // In this case, don't change the anchor angle and simply move the anchor position slightly forward.\n anchorX = averageX + MathUtils.quickCos((float) anchorAngle) * forwardedAnchorDist;\n anchorY = averageY + MathUtils.quickSin((float) anchorAngle) * forwardedAnchorDist;\n } else {\n double forwardedAnchorDist = (depth * unitStats.spacing / 2 + GameplayConstants.FORWARD_DISTANCE) *\n (1 - UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER) +\n mostForwardDist * UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER;\n anchorAngle = MathUtils.atan2(yGoal - averageY, xGoal - averageX);\n anchorX = averageX + MathUtils.quickCos((float) anchorAngle) * forwardedAnchorDist;\n anchorY = averageY + MathUtils.quickSin((float) anchorAngle) * forwardedAnchorDist;\n reorderTroops(anchorX, anchorY, anchorAngle);\n }\n\n // Decision has a random delay until it reaches the soldiers ear.\n for (int i = 0; i < troops.size(); i++) {\n // Set the goal and change the state\n BaseSingle troop = troops.get(i);\n troop.setDecisionDelay(MathUtils.randint(2, 20));\n }\n }",
"private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }",
"private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }",
"@Test\n public void moreThanOneCheckerOnToLocation() {\n\n assertTrue(game.move(Location.R1, Location.R2));\n assertTrue(game.move(Location.R1, Location.R3));\n game.nextTurn();\n // to der gerne skulle vaere lovlige og stemme med terningerne\n assertTrue(game.move(Location.R6, Location.R5));\n assertTrue(game.move(Location.R8, Location.R6));\n game.nextTurn();\n assertTrue(game.move(Location.R2, Location.R5));\n assertTrue(game.move(Location.R3, Location.R7));\n game.nextTurn();\n // der staar nu to sorte paa R4\n assertFalse(game.move(Location.R6, Location.R3));\n }",
"@Override\n\tpublic void reallyDoStep() {\n\t\tif(!(this.isFinished())) this.timeRemaining--; \n\t\treturn;\n\t}",
"@Test\n public void test_UnsuccessfulTravel() {\n \n setup(1, 1);\n \n SolarSystems.ADI.changeLocation(SolarSystems.SHALKA);\n \n // Tests the player's current fuel.\n assertEquals(1, player.getFuel());\n \n // Tests the player's current location.\n assertEquals(SolarSystems.ADI, player.getSolarSystems());\n \n }",
"public boolean isGoal() {\n if (blocks[dimension()-1][dimension()-1] != 0) return false;\n return hamming() == 0;\n }",
"@Test\n public void isJumpActionLegalFor()\n {\n // Setup.\n final CheckersGameInjector injector = new CheckersGameInjector();\n final List<Agent> agents = createAgents(injector);\n final Agent agentRed = agents.get(0);\n final Agent agentWhite = agents.get(1);\n final CheckersEnvironment environment = createEnvironment(injector, agents);\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentRed, CheckersPosition.P21,\n CheckersPosition.P17);\n action.doIt();\n }\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentWhite, CheckersPosition.P09,\n CheckersPosition.P14);\n action.doIt();\n }\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentRed, CheckersPosition.P22,\n CheckersPosition.P18);\n action.doIt();\n }\n final CheckersAdjudicator adjudicator = injector.injectAdjudicator();\n\n // Agent white can jump his token over a red token to an empty space.\n assertTrue(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P14,\n CheckersPosition.P21));\n\n // Agent white cannot jump his token to an occupied space.\n assertFalse(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P14,\n CheckersPosition.P23));\n\n // Agent white cannot jump his token to an adjacent empty space.\n assertFalse(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P10,\n CheckersPosition.P15));\n\n // Agent white cannot jump his own token.\n assertFalse(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P08,\n CheckersPosition.P15));\n }",
"@Override\r\n\tpublic boolean runAgain(CompilationUnit unit) {\n\t\treturn false;\r\n\t}",
"public boolean isGoal() {\n boolean result = false; \n for (int i = 0; i < this.N; i++) {\n for (int j = 0; j < this.N; j++) {\n int idx = (i * this.N) + (j + 1);\n if (idx != N * N - 1 && tiles[i][j] != idx) {\n return false;\n } \n if (idx == N * N - 1) {\n if (tiles[N - 1][N - 1] == 0) return true;\n return false;\n }\n }\n }\n return result;\n }",
"public boolean pathWasFound(int goal) {\n if (path[goal] < 0 ) {\n return false;\n }\n return true;\n }",
"public interface Problem {\n\n TransitionModel transitionModel();\n\n Action[] actions();\n\n State startState();\n\n Board goal();\n\n State generateState(State parentState, Action action) throws IllegalMoveException;\n\n int actionCost();\n\n /**\n * Checks by just comparing\n * the String configuration (of the Board)\n *\n * Replaces the string of the agent with\n * the string that represents an empty space\n * since the position of the agent does not matter\n * when checking the goal state\n * @param solution the node to check\n * @return true if it is the goal\n */\n boolean checkGoal(Node solution);\n}",
"public boolean step() {\n Tile nextTile;\n Direction d;\n int directionCount = 0;\n try {\n if (finished == true) {\n return true;\n }\n if (route.empty()) {\n route.push(maze.getEntrance());\n return false;\n } else {\n while (true) {\n if (directionCount == 0) {\n d = Direction.NORTH;\n } else if (directionCount == 1) {\n d = Direction.EAST;\n } else if (directionCount == 2) {\n d = Direction.SOUTH;\n } else if (directionCount == 3) {\n d = Direction.WEST;\n } else {\n if (!popped.isEmpty()) {\n if (popped.peek().getType() == Type.ENTRANCE) {\n throw new NoRouteFoundException();\n }\n }\n popped.push(route.pop());\n break;\n }\n nextTile = maze.getAdjacentTile(route.peek(), d);\n if (nextTile.isNavigable() && !route.contains(nextTile) && !popped.contains(nextTile)) {\n route.push(maze.getAdjacentTile(route.peek(), d));\n break;\n } else {\n directionCount += 1;\n continue;\n }\n }\n\n if (!route.isEmpty()) {\n if (route.peek().getType() == Type.EXIT) {\n finished = true;\n return true;\n }\n }\n return false;\n\n }\n } catch (NoRouteFoundException e) {\n System.out.println(e);\n throw e;\n }\n }",
"boolean CanFinishTurn();",
"@Test\r\n\tpublic void test()\r\n\t{\n\t\t\r\n\t\tCreatePlungeStrategy frame = new CreatePlungeStrategy(path1, retractPlane); //manda os parametros path e retractplane pra execucao\r\n\r\n\t\tfor(;;);\r\n\t}",
"@Test\r\n public void should_not_be_allowed_to_move_in_wrong_direction() {\r\n game.nextTurn(); // will throw [1,2] and thus black starts\r\n assertFalse(game.move(Location.R12, Location.R10));\r\n }",
"public boolean isGoal() {\n return (man == 0);\n }",
"public boolean isGoal() {\n return hamming() == 0; // Board is solved if hamming distance is 0\n }",
"public void testConjunctionFailsToResolveWhenFirstPathFails() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"h\", \"f :- g, h\" }, \"?- f\");\n }",
"@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}",
"final Goal goal ()\n {\n return _goal;\n }",
"public void moveNoFormationTo(double xGoal, double yGoal, double angleGoal) {\n\n // Set the goals\n goalX = xGoal;\n goalY = yGoal;\n goalAngle = angleGoal;\n\n // Convert angle to unit vector\n double downUnitX = MathUtils.quickCos((float) (angleGoal + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (angleGoal + Math.PI));\n double sideUnitX = MathUtils.quickCos((float) (angleGoal + Math.PI / 2));\n double sideUnitY = MathUtils.quickSin((float) (angleGoal + Math.PI / 2));\n\n // Sort distances of each soldier to the final point\n for (BaseSingle single : troops) {\n single.setTempSquaredDistanceFromGoal((single.getX() - xGoal) * (single.getX() - xGoal) +\n (single.getY() - yGoal) * (single.getY() - yGoal));\n }\n\n // Sort the troops by distance to the goal\n Collections.sort(troops, new Comparator<BaseSingle>() {\n @Override\n public int compare(BaseSingle o1, BaseSingle o2) {\n return Double.compare(o1.getTempSquaredDistanceFromGoal(), o2.getTempSquaredDistanceFromGoal());\n }\n });\n\n // Calculate final positions\n for (int i = 0; i < troops.size(); i++) {\n double xGoalSingle = goalX + (i % width) * unitStats.spacing * sideUnitX + (i / width) * unitStats.spacing * downUnitX;\n double yGoalSingle = goalY + (i % width) * unitStats.spacing * sideUnitY + (i / width) * unitStats.spacing * downUnitY;\n\n // Set the goal and change the state\n BaseSingle troop = troops.get(i);\n troop.setxGoal(xGoalSingle);\n troop.setyGoal(yGoalSingle);\n troop.switchState(SingleState.MOVING);\n troop.setSpeedGoal(troops.get(i).getSpeedStat());\n troop.setAngleGoal(angleGoal);\n troop.setDecisionDelay(MathUtils.randint(2, 20));\n }\n\n // Reset the flankers\n resetFlanker();\n }",
"@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n this.missingFutures = 0;\n this.missingTetromino = 0;\n return INITIAL_BOARD.execute(false);\n }",
"public final void trigger (GoalProver prover) throws FailedUnificationException\n {\n if (_refCount == 0)\n _goal.prove((TypeChecker)prover);\n }",
"public boolean isGoal() {\n return humming() = 0;\n }",
"@Test\r\n\tpublic void testPassedGo() {\r\n\t\tBoard board = new Board(validSquareLocations); // board needs to have squares for this to be tested\r\n\t\tboolean actualPassedGo;\r\n\t\tactualPassedGo = board.passedGo(validCurrentPosition, validDieValue);\r\n\t\tassertEquals(actualPassedGo, expectedPassedGo);\r\n\t}",
"void goToNext(boolean isCorrect);",
"abstract protected boolean checkMethod();",
"boolean hasRecursive();",
"static boolean dfs(TreeNode root) {\n Stack<TreeNode> stack = new Stack<TreeNode>();\n stack.push(root);\n while (!stack.isEmpty()) {\n TreeNode node = (TreeNode) stack.pop();\n if (node == null)\n continue;\n\n System.out.println(\"Checking node \" + node.data);\n if (isGoal(node)) {\n System.out.println(\"\\nFound goal node \" + node.data);\n return true;\n }\n stack.addAll(node.getChildren());\n // dump(stack);\n }\n return false;\n }",
"public boolean legalStep(Player player, Direction direction) {\n Tile fromTile = getTile(player);\n if (player.isDestroyed() || outOfBounds(fromTile, direction) || wallCollision(getTile(player), direction)) {\n return false;\n }\n Tile toTile = getNextTile(fromTile, direction);\n if (!toTile.isOccupied()) {\n return true;\n }\n // Else check recursively if player on target tile can\n // legally be pushed in same direction\n else {\n return legalStep(toTile.getPlayer(), direction);\n }\n }",
"public ActingGoal() {\n\t\t// rosbridge compatibility issues\n\t}",
"public void trySolve() {\n\t\tboolean change = true;\n\t\twhile (change) {\n\t\t\tchange = boardSolve();\n\t\t}\n\t}",
"public boolean canFinishRecursive(Map<Integer, Set<Integer>> courses, Set<Integer> prerequisite, int start, Set<Integer> visited){\n for(Integer p: prerequisite){\n if(visited.contains(p)){\n continue;\n }\n visited.add(p);\n //if you detect a circular dependency then return false since course can never be completed\n if(p.intValue() == start){\n return false;\n }\n if(courses.get(p).size() == 0){\n continue;\n }\n if(!canFinishRecursive(courses,courses.get(p), start, visited)){\n return false;\n }\n }\n return true;\n }",
"@Override\n\tpublic Condition getGoal()\n\t{\n\t\treturn explicitGoal;\n\t}"
] | [
"0.6810578",
"0.6367632",
"0.6139474",
"0.5935605",
"0.5835107",
"0.57068247",
"0.56767535",
"0.55748534",
"0.55639654",
"0.5562626",
"0.5509409",
"0.5508207",
"0.5458587",
"0.5406716",
"0.5396455",
"0.5389209",
"0.537065",
"0.5354855",
"0.53464544",
"0.5289229",
"0.5265453",
"0.52362597",
"0.51762944",
"0.51692295",
"0.5149404",
"0.51322246",
"0.5128331",
"0.5127865",
"0.5119192",
"0.51073986",
"0.510672",
"0.51047146",
"0.5040218",
"0.50378346",
"0.50347763",
"0.50281495",
"0.5021342",
"0.50196195",
"0.50196195",
"0.50196195",
"0.50196195",
"0.50196195",
"0.50196195",
"0.50178725",
"0.5006021",
"0.49934042",
"0.4993105",
"0.49881622",
"0.49844947",
"0.49811393",
"0.49780267",
"0.49773574",
"0.4971658",
"0.49708167",
"0.49693757",
"0.49685517",
"0.4963324",
"0.49632135",
"0.49590302",
"0.49585527",
"0.4944154",
"0.49356624",
"0.49325722",
"0.49240968",
"0.49230844",
"0.4911622",
"0.4910992",
"0.49071133",
"0.49052602",
"0.49025297",
"0.4901233",
"0.49006063",
"0.48939958",
"0.48937255",
"0.48897457",
"0.4884292",
"0.48827115",
"0.48818243",
"0.4880155",
"0.4877459",
"0.48769343",
"0.4867464",
"0.48634917",
"0.48609674",
"0.48532858",
"0.48504058",
"0.48447832",
"0.48446423",
"0.48295462",
"0.48255956",
"0.48248845",
"0.4823551",
"0.4819747",
"0.48195282",
"0.48141217",
"0.48121002",
"0.4807564",
"0.48066315",
"0.48062396",
"0.48047695"
] | 0.6878275 | 0 |
Ensures that the Rmi tactic fails when the goal cannot be rewritten (even if some hypothesis can). | @Test
public void noApplyGoal() {
assertFailure(" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n boolean canFail() {\n return true;\n }",
"boolean isTroubled( ExpressionExperiment expressionExperiment );",
"public boolean needsProblem();",
"@Test\r\n public void should_not_be_allowed_to_move_in_wrong_direction() {\r\n game.nextTurn(); // will throw [1,2] and thus black starts\r\n assertFalse(game.move(Location.R12, Location.R10));\r\n }",
"@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"public static void failUnexpectedToReachThis()\r\n\t{\r\n\t\tfail( \"Unexpected to hit this line, as the previous statement should thrown an exception\" ); \r\n\t}",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"public void fail() {\r\n\t\tcontestantIt.currentC().updatePoints(-FAIL);\r\n\t}",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"public void correctErrors();",
"public void testConjoinedVariablesPropagateAccrossConjunctionFailingOnNonUnification() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"g(x)\", \"h(y)\", \"f(X, Y) :- g(X), h(Y)\" }, \"?- f(X, X)\");\n }",
"public void isUnsatisfiable() throws SolverException, InterruptedException {\n if (context.getFormulaManager().getBooleanFormulaManager().isTrue(formulaUnderTest)) {\n failWithoutActual(\n Fact.fact(\"expected to be\", \"unsatisfiable\"),\n Fact.fact(\"but was\", \"trivially satisfiable\"));\n return;\n }\n\n checkIsUnsat(formulaUnderTest, Fact.simpleFact(\"expected to be unsatisfiable\"));\n }",
"public boolean checkGoal() {\r\n\t\tif (goal) {\r\n\t\t\tgoal = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"void check() throws YangException;",
"@Test\r\n public void testInvalidLogicalRightAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varI_M>>>=varI_M\", \"0xA0188\");\r\n }",
"void checkRep() {\n\t\tassert this.clauses != null : \"SATProblem, Rep invariant: clauses non-null\";\n\t}",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"public void illegalMove(){\r\n //Taken care of in view?\n \t//throw new RuntimeException(\"this is a illegal move\");\r\n }",
"private final void onInvocationFailed(final InstanceGoal<InstanceParameters> goal) {\n assert false;\n rlgm.event(goal, SpecificationEvent.FAILED_EVENT, null);\n }",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"@Test\r\n public void testInvalidLogicalRightAssignmentExpressionWithSIUnits2() throws IOException {\n checkError(\"varM>>>=2\", \"0xA0188\");\r\n }",
"boolean checkGoal(Node solution);",
"private static void notPossible () {\r\n\t\tSystem.out.println(\"This operation is not possible\");\r\n\t}",
"@Override\n\tpublic void endFail() {\n\t\t\n\t}",
"@Test\n public void testSubsequentRunsWithUnsatisfiableConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable constraint\");\n // set constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }",
"@Test(timeout = 4000)\n public void test097() throws Throwable {\n Level level0 = Level.warn;\n ErrorHandler errorHandler0 = new ErrorHandler(\"Database query did not return a result: \", level0);\n // Undeclared exception!\n try { \n DBUtil.runScript(\"z\\\"\", \"Database query did not return a result: \", (Connection) null, true, errorHandler0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Resource not found: z\\\"\n //\n verifyException(\"org.databene.commons.IOUtil\", e);\n }\n }",
"public void isSatisfiable() throws SolverException, InterruptedException {\n final BooleanFormulaManager bmgr = context.getFormulaManager().getBooleanFormulaManager();\n if (bmgr.isFalse(formulaUnderTest)) {\n failWithoutActual(\n Fact.fact(\"expected to be\", \"satisfiable\"),\n Fact.fact(\"but was\", \"trivially unsatisfiable\"));\n return;\n }\n\n try (ProverEnvironment prover = context.newProverEnvironment()) {\n prover.push(formulaUnderTest);\n if (!prover.isUnsat()) {\n return; // success\n }\n }\n\n reportUnsatCoreForUnexpectedUnsatisfiableFormula();\n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort1() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToTechnologyAverage, link, travelTimeOnLink);\n\t}",
"public abstract void fail(Player p);",
"@Test(timeout = 4000)\n public void test107() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesDataOrStructure(\"execcannot:create iwstance, module ignored.\");\n assertNull(boolean0);\n }",
"@Test\r\n public void testInvalidDoubleRightAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varI_M>>=3m\", \"0xA0186\");\r\n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort2() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n this.missingFutures = 0;\n this.missingTetromino = 0;\n return INITIAL_BOARD.execute(false);\n }",
"public void testNonPermanentVariableResolvedOkNoBinding() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f :- g(X), h(Y))], (?- f), [[]]]\");\n }",
"@Test\n public void test12() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n // Undeclared exception!\n try { \n illinoisSolver0.doSolve();\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (0) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }",
"@Test\n public void test_UnsuccessfulTravel() {\n \n setup(1, 1);\n \n SolarSystems.ADI.changeLocation(SolarSystems.SHALKA);\n \n // Tests the player's current fuel.\n assertEquals(1, player.getFuel());\n \n // Tests the player's current location.\n assertEquals(SolarSystems.ADI, player.getSolarSystems());\n \n }",
"@Test\n\tpublic void testSimpleOneRuleFailExecution() {\n\n\t\tSkRuleBase rule = buildThings(ONE_RULE_FAIL_FILE_NAME, SkRuleBase.class, \"rule\");\n\n\t\tSkRuleMaster master = new SkRuleMaster.Builder().addRule(rule)\n\t\t\t\t.build();\n\t\tSkRuleRunner runner = master.getRuleRunner();\n\n\t\ttry {\n\t\t\trunner.setValue(\"THIS_MACRO_DOES_NOT_EXIST\", \"X\");\n\t\t\trule.run(runner);\n\t\t\tAssert.fail(\"We should have thrown an error.\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(String.format(\"We expected this error : '%s'\", e.toString()));\n\t\t}\n\t\trunner.setValue(\"MILK.QTY\", 2);\n\t\trule.run(runner);\n\t}",
"private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }",
"@Test(timeout = 4000)\n public void test46() throws Throwable {\n SystemInUtil.addInputLine((String) null);\n SystemInUtil.addInputLine((String) null);\n JSTerm jSTerm0 = new JSTerm();\n LinkedList<Integer> linkedList0 = new LinkedList<Integer>();\n Integer integer0 = new Integer(1);\n linkedList0.add(integer0);\n linkedList0.add((Integer) null);\n jSTerm0.removeAll(linkedList0);\n jSTerm0.retainAll(linkedList0);\n SystemInUtil.addInputLine((String) null);\n jSTerm0.add((Object) \"not\");\n // Undeclared exception!\n try { \n jSTerm0.standarizerPredicateForm();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1 >= 1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }",
"@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}",
"@Test\n void checkCannotForceWithNoDestination() {\n Worker worker1 = new Worker(0, board.getCellFromCoords(0, 1));\n Worker worker2 = new Worker(1, board.getCellFromCoords(0, 0));\n\n Map<Worker, Boolean> otherWorkers = new HashMap<>();\n otherWorkers.put(worker2, false);\n\n turn = new Turn(worker1, otherWorkers, (cell) -> board.getNeighborings(cell), cell -> board.isPerimeterSpace(cell));\n assertFalse(abilities.checkCanMove(turn, board.getCellFromCoords(0, 0)));\n assertThrows(IllegalArgumentException.class, () -> abilities.doMove(turn, board.getCellFromCoords(0, 0)));\n }",
"@Test(timeout = 4000)\n public void test46() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader();\n Boolean boolean0 = Boolean.FALSE;\n SQLUtil.isQuery(\"selectntowrong c|ck\");\n Boolean.valueOf(true);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"selectntowrong c|ck\");\n // Undeclared exception!\n try { \n defaultDBTable0.getUniqueConstraint(\"^h=wZ>:9%}Pj6(#%M\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.model.DefaultDBTable\", e);\n }\n }",
"boolean isBroken() throws IllegalStateException;",
"public void cantPlayGoNext() {\n\t switchTurn();\n }",
"@Test(timeout = 4000)\n public void test28() throws Throwable {\n String string0 = \"0(u\";\n SystemInUtil.addInputLine(\"call\");\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n JSTerm jSTerm0 = new JSTerm();\n Object object0 = null;\n jSTerm0.add((Object) null);\n String string1 = \"expected '('\";\n SystemInUtil.addInputLine(\"expected '('\");\n // Undeclared exception!\n try { \n jSTerm0.applySubstitutionPF(jSSubstitution0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n }\n }",
"private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}",
"@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = \"0(u\";\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n JSTerm jSTerm0 = new JSTerm();\n jSTerm0.add((Object) \"not\");\n Comparator<Integer> comparator0 = (Comparator<Integer>) mock(Comparator.class, new ViolatedAssumptionAnswer());\n jSSubstitution0.add((Object) \"0(u\");\n SystemInUtil.addInputLine(\"not\");\n // Undeclared exception!\n try { \n jSTerm0.applySubstitutionPF(jSSubstitution0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1 >= 1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }",
"protected abstract void executeActionsIfError();",
"public void testATTITUDE9() throws Exception {\n\t\tObject retval = execLexer(\"ATTITUDE\", 201, \"volant\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"ATTITUDE\", expecting, actual);\n\t}",
"@Test\r\n public void testInvalidDoubleLeftAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varI_M<<=3 m\", \"0xA0187\");\r\n }",
"public void testConjunctionFailsToResolveWhenSecondPathFails() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"g\", \"f :- g, h\" }, \"?- f\");\n }",
"public void testConjunctionFailsToResolveWhenFirstPathFails() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"h\", \"f :- g, h\" }, \"?- f\");\n }",
"private void checkFail(String filename) throws IOException {\n\t\tChecker checker = new Checker();\n\t\ttry {\n\t\t\tthis.compiler.check(parse(filename));\n\t\t\tchecker.check(parse(filename));\n\t\t\tfail(filename + \" shouldn't check but did\");\n\t\t} catch (ParseException exc) {\n\t\t\t// this is the expected behaviour\n\t\t}\n\t}",
"@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}",
"@Override\n\t\tpublic boolean isValidSolution() {\n\t\t\treturn super.isValidSolution();\n\t\t}",
"public interface RoutineException {}",
"public static void fail() throws IllegalStateException {\n check(false);\n }",
"@Test(timeout = 4000)\n public void test42() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSTerm jSTerm1 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n // Undeclared exception!\n try { \n jSTerm0.matches((JSPredicateForm) jSTerm1, jSSubstitution0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test166() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\\\">>=\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.ReInit(javaCharStream0, (-378));\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : -378. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"public boolean generateFromTactic(Decision decision, int tacticID, boolean considerParentPattern, boolean recursiveParent){\r\n \t\tTactic t = new Tactic();\r\n \t\tt.fromDatabase(tacticID);\r\n \t\tif (t.getID() < 0) return false;\r\n \t\tsetDescription(\"This alternative is generated on the basis of tactic \" + t.getName());\r\n \t\tsetStatus(AlternativeStatus.ATISSUE);\r\n \t\tsetParent(decision);\r\n \r\n \t\ttoDatabase(decision.getID(), RationaleElementType.DECISION);\r\n \t\tfromDatabase(getName());\r\n \t\tRationaleDB db = RationaleDB.getHandle();\r\n \t\tVector<Requirement> nfrs = db.getNFRs();\r\n \t\tboolean isCategoryMatched = false;\r\n \t\tboolean[] isNegQAMatched = new boolean[t.getBadEffects().size()];\r\n \t\tfor (int i = 0; i < isNegQAMatched.length; i++){\r\n \t\t\tisNegQAMatched[i] = false;\r\n \t\t}\r\n \r\n \t\tfor (int i = 0; i < nfrs.size(); i++){\r\n \t\t\t//Contribution matching on negative side of the tactic.\r\n \t\t\tIterator<OntEntry> badI = t.getBadEffects().iterator();\r\n \t\t\twhile (badI.hasNext()){\r\n \t\t\t\tOntEntry cur = badI.next();\r\n \r\n \t\t\t\tIterator<OntEntry> curChildrenI = db.getOntologyElements(cur.getName()).iterator();\r\n \t\t\t\twhile (curChildrenI.hasNext()){\r\n \t\t\t\t\tOntEntry curChild = curChildrenI.next();\r\n \t\t\t\t\tif (curChild.equals(nfrs.get(i).getOntology())){\r\n \t\t\t\t\t\tisNegQAMatched[i] = true;\r\n \t\t\t\t\t\tArgument arg = new Argument();\r\n \t\t\t\t\t\tString argName = \"Requirement Violation - \" + curChild.getName();\r\n \t\t\t\t\t\twhile(RationaleDBUtil.isExist(argName, \"Arguments\")){\r\n \t\t\t\t\t\t\targName = argName + \"~\";\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\targ.setName(argName);\r\n \t\t\t\t\t\targ.setRequirement(nfrs.get(i));\r\n \t\t\t\t\t\targ.setType(ArgType.VIOLATES);\r\n \t\t\t\t\t\targ.setPlausibility(Plausibility.CERTAIN);\r\n \t\t\t\t\t\targ.setAmount(10);\r\n \t\t\t\t\t\targ.setImportance(Importance.ESSENTIAL);\r\n \t\t\t\t\t\targ.setParent(this);\r\n \t\t\t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \r\n \t\t\tif (nfrs.get(i).getOntology().equals(t.getCategory())){\r\n \t\t\t\tArgument arg = new Argument();\r\n \t\t\t\tString argName = \"Requirement Satisfication - \" + t.getCategory().getName();\r\n \t\t\t\twhile(RationaleDBUtil.isExist(argName, \"Arguments\")){\r\n \t\t\t\t\targName = argName + \"~\";\r\n \t\t\t\t}\r\n \t\t\t\targ.setName(argName);\r\n \t\t\t\targ.setRequirement(nfrs.get(i));\r\n \t\t\t\targ.setType(ArgType.SATISFIES);\r\n \t\t\t\targ.setPlausibility(Plausibility.CERTAIN);\r\n \t\t\t\targ.setAmount(10);\r\n \t\t\t\targ.setImportance(Importance.ESSENTIAL);\r\n \t\t\t\targ.setParent(this);\r\n \t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t\tisCategoryMatched = true;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \r\n \r\n \t\t//Add arguments/claims\r\n \t\tif (!isCategoryMatched){\r\n \t\t\tArgument arg = new Argument();\r\n \t\t\tClaim c = new Claim();\r\n \t\t\tString claimName = \"Positive Quality Attribute - \" + t.getCategory().getName();\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Claims\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\tc.setDirection(Direction.IS);\r\n \t\t\targ.setType(ArgType.SUPPORTS);\r\n \t\t\tc.setName(claimName);\r\n \t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\tc.setOntology(t.getCategory());\r\n \t\t\tc.setEnabled(true);\r\n \t\t\tc.toDatabase();\r\n \r\n \t\t\targ.setClaim(c);\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\targ.setName(claimName);\r\n \t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\targ.setDescription(\"\");\r\n \t\t\targ.setAmount(5);\r\n \t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\targ.setParent(this);\t\r\n \t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t}\r\n \t\tfor (int i = 0; i < isNegQAMatched.length; i++){\r\n \t\t\tArgument arg = new Argument();\r\n \t\t\tClaim c = new Claim();\r\n \t\t\tString claimName = \"Negative Quality Attribute - \" + t.getBadEffects().get(i).getName();\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Claims\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n\t\t\tc.setDirection(Direction.IS);\r\n \t\t\targ.setType(ArgType.DENIES);\r\n \t\t\tc.setName(claimName);\r\n \t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\tc.setOntology(t.getBadEffects().get(i));\r\n \t\t\tc.setEnabled(true);\r\n \t\t\tc.toDatabase();\r\n \r\n \t\t\targ.setClaim(c);\r\n \t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t}\r\n \t\t\targ.setName(claimName);\r\n \t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\targ.setDescription(\"\");\r\n \t\t\targ.setAmount(5);\r\n \t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\targ.setParent(this);\t\r\n \t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t}\r\n \t\t//Add impact score.\r\n \t\tif (considerParentPattern){\r\n \t\t\tint score = findWorstTacticPatternScore(decision, t, recursiveParent);\r\n \t\t\tif (score > 0){\r\n \t\t\t\tArgument arg = new Argument();\r\n \t\t\t\tClaim c = new Claim();\r\n\t\t\t\tString claimName = \"Tactic Impact\";\r\n \t\t\t\tc.fromDatabase(claimName);\r\n \t\t\t\tif (c.getID() < 0){\r\n\t\t\t\t\tc.setDirection(Direction.IS);\r\n \t\t\t\t\tc.setName(claimName);\r\n \t\t\t\t\tc.setImportance(Importance.DEFAULT);\r\n \t\t\t\t\tOntEntry claimOnt = new OntEntry();\r\n \t\t\t\t\tclaimOnt.fromDatabase(TacticPattern.CHANGEONTNAME);\r\n \t\t\t\t\tif (claimOnt.getID() < 0){\r\n \t\t\t\t\t\t//Create a new quality attribute\r\n \t\t\t\t\t\tOntEntry ontParent = new OntEntry();\r\n \t\t\t\t\t\tontParent.fromDatabase(1);\r\n \t\t\t\t\t\tclaimOnt.setName(TacticPattern.CHANGEONTNAME);\r\n \t\t\t\t\t\tclaimOnt.setEnabled(true);\r\n\t\t\t\t\t\tclaimOnt.setImportance(Importance.DEFAULT);\r\n \t\t\t\t\t\tclaimOnt.toDatabase(ontParent.getID());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tc.setOntology(claimOnt);\r\n \t\t\t\t\tc.setEnabled(true);\r\n \t\t\t\t\tc.toDatabase();\r\n \t\t\t\t}\r\n \t\t\t\targ.setClaim(c);\r\n \t\t\t\targ.setType(ArgType.DENIES);\r\n \r\n \t\t\t\twhile(RationaleDBUtil.isExist(claimName, \"Arguments\")){\r\n \t\t\t\t\tclaimName = claimName + \"~\";\r\n \t\t\t\t}\r\n \t\t\t\targ.setName(claimName);\r\n \t\t\t\targ.setPlausibility(Plausibility.HIGH);\r\n \t\t\t\targ.setDescription(\"\");\r\n \t\t\t\targ.setAmount(score);\r\n \t\t\t\targ.setImportance(Importance.DEFAULT);\r\n \t\t\t\targ.setParent(this);\t\r\n \t\t\t\targ.toDatabase(id, RationaleElementType.ALTERNATIVE);\r\n \t\t\t}\r\n \t\t}\r\n \t\t//Evaluate\r\n \t\tfromDatabase(name);\r\n\t\tevaluate();\r\n \t\tfromDatabase(name);\r\n \t\treturn true;\r\n \t}",
"public final boolean\n isOutcomeFailed() { return hasOutcome_ && outcome_ == false; }",
"@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedThenTechnologyAverageElseAbort_ShouldAbort() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}",
"@Test\n\tpublic void testAbstractManualRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"partitionRewrite\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldPartitionRewrite\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".partitionRewrites\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}",
"boolean isFail();",
"public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void testMETAL4() throws Exception {\n\t\tObject retval = execLexer(\"METAL\", 131, \"gold\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"METAL\", expecting, actual);\n\t}",
"@Test(timeout = 4000)\n public void test49() throws Throwable {\n SystemInUtil.addInputLine(\"(e0\");\n String string0 = \"dk<BH 1I\\\"\";\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n JSTerm jSTerm0 = new JSTerm();\n jSTerm0.add((Object) \"not\");\n Comparator<Integer> comparator0 = (Comparator<Integer>) mock(Comparator.class, new ViolatedAssumptionAnswer());\n SystemInUtil.addInputLine(\"not\");\n // Undeclared exception!\n try { \n jSTerm0.applySubstitutionPF(jSSubstitution0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1 >= 1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }",
"void cannotRecognize(Term token);",
"@Test(expected = IllegalArgumentException.class)\n public void buildAgainFalse() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n //provo a fagli costruire su una cella diversa da nextWorkerCell (non puo!)\n workerHephaestus.specialPower(otherCell);\n assertEquals(1, nextWorkerCell.getLevel());\n assertEquals(0, otherCell.getLevel());\n }",
"@Test\n void testFailure_illegalStatus() {\n assertThrows(\n IllegalArgumentException.class,\n () ->\n runCommandForced(\n \"--client=NewRegistrar\",\n \"--registrar_request=true\",\n \"--reason=Test\",\n \"--domain_name=example.tld\",\n \"--apply=clientRenewProhibited\"));\n }",
"@Test\r\n public void testInvalidDoubleRightAssignmentExpressionWithSIUnits2() throws IOException {\n checkError(\"varM>>=varM\", \"0xA0186\");\r\n }",
"public void testFail1() throws Exception {\n helperFail(new String[] {\"j\", \"i\"}\r\n , new String[] {\"I\", \"I\"}\r\n , RefactoringStatus.ERROR);\r\n }",
"@Test\n\tpublic void redoTask_invalidState(){\n\t\tRedoCommand command = new RedoCommand();\n\t\tcommand.setData(model);\n\t\tCommandResult result = command.execute();\n\t\tString feedback = result.feedbackToUser;\n\t\tassertTrue(feedback.equals(RedoCommand.MESSAGE_REDO_INVALID_STATE));\n\t}",
"@Test (expected = Exception.class)\n\tpublic void testInvalidTargetSIFChord() throws Exception{\n\t\tnew Chord(1, \"1/V\");\n\t}",
"@Test(timeout = 4000)\n public void test009() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(91);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 91. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"public void cmdTestError(User teller) {\n throw new RuntimeException(\"This is a test. Don''t worry.\");\n }",
"protected RestrictionsFailCLI() {\n\t\tsuper(FOLDER, FOLDER + \"../restrictions/restrictionsAll.sf\");\n\t}",
"@Override\n boolean isFailed() {\n return false;\n }",
"boolean isFailure();",
"@Test(timeout = 4000)\n public void test27() throws Throwable {\n System.setCurrentTimeMillis(0L);\n System.setCurrentTimeMillis(0L);\n JSPredicateForm jSPredicateForm0 = new JSPredicateForm((String) null);\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n // Undeclared exception!\n try { \n jSPredicateForm0.applySubstitutionPF(jSSubstitution0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }",
"@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}",
"protected void failed()\r\n {\r\n //overwrite\r\n }",
"@Test\n public void isMoveActionLegalFor()\n {\n // Setup.\n final CheckersGameInjector injector = new CheckersGameInjector();\n final List<Agent> agents = createAgents(injector);\n final CheckersEnvironment environment = createEnvironment(injector, agents);\n final CheckersAdjudicator adjudicator = injector.injectAdjudicator();\n\n // Agent white can move his token to an adjacent empty space.\n assertTrue(adjudicator.isMoveActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P09,\n CheckersPosition.P13));\n\n // Agent white cannot move backwards.\n assertFalse(adjudicator.isMoveActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P09,\n CheckersPosition.P05));\n\n // Agent white cannot move to an occupied space.\n assertFalse(adjudicator.isMoveActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P04,\n CheckersPosition.P08));\n\n // Agent white cannot move a red token.\n assertFalse(adjudicator.isMoveActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P21,\n CheckersPosition.P17));\n\n // Agent white cannot move too far.\n assertFalse(adjudicator.isMoveActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P09,\n CheckersPosition.P18));\n }",
"@Test(timeout = 4000)\n public void test34() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n SystemInUtil.addInputLine(\")\");\n jSTerm0.add((Object) \"lc\");\n jSTerm0.isEmpty();\n jSSubstitution0.add((Object) \"lc\");\n jSTerm0.applySubstitutionPF(jSSubstitution0);\n jSTerm0.add((Object) null);\n JSJshopVars.percent = 846;\n StringReader stringReader0 = new StringReader(\"lc\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer0);\n JSSubstitution jSSubstitution1 = new JSSubstitution();\n streamTokenizer0.eolIsSignificant(true);\n // Undeclared exception!\n try { \n jSTerm0.standarizerPredicateForm();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }",
"public void testConjunctionInQueryVarNotLastFailsWhenBindingsDoNotMatch() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"f(x)\", \"g(y)\" }, \"?- f(X), g(X), g(X)\");\n }",
"private boolean isUtilityFailure(){\n\n if (this.selectedTrain.getAC() == -1||\n this.selectedTrain.getHeat() == -1 || this.selectedTrain.getLights() == -1\n || this.selectedTrain.getLeftDoor() == -1 || this.selectedTrain.getRightDoor() == -1){\n return true; // there is a utility failure..\n }\n\n return false; // there isn't a utility failure\n }",
"public void testTIERCED3() throws Exception {\n\t\tObject retval = execLexer(\"TIERCED\", 83, \"blah\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"TIERCED\", expecting, actual);\n\t}",
"@Test\n\tpublic void testTCannotMoveRight() {\n\t\ttank.InabilityToMoveRight();\n\t\tassertEquals(false, tank.getRight());\n\t}",
"public final void m63101a(Throwable th) {\n C0001a.c(th, \"Cannot observe nudge: stream is terminated\", new Object[0]);\n }",
"@Then ( \"^The labor and delivery report is not updated successfully$\" )\n public void unsuccessfulEdit () {\n // confirm that the error message is displayed\n waitForAngular();\n try {\n final String temp = driver.findElement( By.name( \"errorMsg\" ) ).getText();\n if ( temp.equals( \"\" ) ) {\n fail();\n }\n }\n catch ( final Exception e ) {\n }\n }",
"void errorOccurs(Reachable reachable, Throwable t);",
"@Test\r\n public void testInvalidDoubleLeftAssignmentExpressionWithSIUnits2() throws IOException {\n checkError(\"varM<<=3\", \"0xA0187\");\r\n }",
"protected boolean processIllegalMove(String moveString, String reason){return false;}",
"@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n QQTetris.calculationThread.cancel();\n return INITIAL_BOARD.execute(false);\n }",
"public interface Problem {\n\n TransitionModel transitionModel();\n\n Action[] actions();\n\n State startState();\n\n Board goal();\n\n State generateState(State parentState, Action action) throws IllegalMoveException;\n\n int actionCost();\n\n /**\n * Checks by just comparing\n * the String configuration (of the Board)\n *\n * Replaces the string of the agent with\n * the string that represents an empty space\n * since the position of the agent does not matter\n * when checking the goal state\n * @param solution the node to check\n * @return true if it is the goal\n */\n boolean checkGoal(Node solution);\n}",
"@Test\n public void testInvalidTerritory() {\n RiskPlayer player = new RiskPlayer(UUID.randomUUID());\n RiskPlayer player2 = new RiskPlayer(UUID.randomUUID());\n RiskBoard board = new RiskBoard();\n player.conqueredTerritory(TerritoryEnum.GREENLAND);\n board.getTerritory(TerritoryEnum.GREENLAND).changePlayer(player, 3);\n player2.conqueredTerritory(TerritoryEnum.ICELAND);\n board.getTerritory(TerritoryEnum.ICELAND).changePlayer(player2, 6);\n ValidDieDefendAction action = new ValidDieDefendAction(player, board,\n TerritoryEnum.GREENLAND);\n AttackAction attack = new AttackAction(player2, TerritoryEnum.ICELAND,\n TerritoryEnum.GREAT_BRITIAN, 3);\n DefendAction defend = new DefendAction(player2, board, attack, 2);\n assertFalse(action.validateDefendMove(defend));\n }",
"@Test\r\n public void testInvalidAndAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varI_M&=varI_M\", \"0xA0183\");\r\n }",
"@Test\n public void test09() throws Throwable {\n IllinoisSolver illinoisSolver0 = new IllinoisSolver();\n Tanh tanh0 = new Tanh();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n // Undeclared exception!\n try { \n illinoisSolver0.solve(16, (UnivariateRealFunction) tanh0, (-1672.701), (-4.26431539230972), (-8.575998569792264E-17), allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [-1,672.701, -4.264], values: [-1, -1]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }"
] | [
"0.61657107",
"0.6039211",
"0.5939755",
"0.58652496",
"0.5846465",
"0.58071756",
"0.57766896",
"0.5745013",
"0.5666234",
"0.56371284",
"0.5602267",
"0.5549773",
"0.5526588",
"0.55172753",
"0.54858917",
"0.5484973",
"0.54666585",
"0.5434039",
"0.5421095",
"0.5413552",
"0.5385181",
"0.53310555",
"0.53240937",
"0.5305613",
"0.5289274",
"0.5285036",
"0.52826965",
"0.52770287",
"0.5270065",
"0.5263939",
"0.52570635",
"0.5248428",
"0.5239732",
"0.5230193",
"0.5224074",
"0.52195215",
"0.5201786",
"0.5196653",
"0.5193096",
"0.5189943",
"0.51785624",
"0.5173798",
"0.5171159",
"0.51668483",
"0.5166158",
"0.51651865",
"0.5153405",
"0.5151012",
"0.51442575",
"0.5139234",
"0.5138695",
"0.51360196",
"0.51325196",
"0.5127767",
"0.5126567",
"0.51228976",
"0.51134276",
"0.5112941",
"0.5110774",
"0.5106648",
"0.5106596",
"0.5105471",
"0.5103287",
"0.50986385",
"0.5094607",
"0.5091745",
"0.50905675",
"0.50793606",
"0.5077925",
"0.5075929",
"0.50695056",
"0.50661474",
"0.50658697",
"0.50655633",
"0.5061702",
"0.5060905",
"0.5057976",
"0.5057644",
"0.5057339",
"0.5055778",
"0.50557625",
"0.5053608",
"0.5039348",
"0.503518",
"0.5031154",
"0.5030343",
"0.50234187",
"0.5020346",
"0.5014551",
"0.5012898",
"0.5010329",
"0.5009841",
"0.50034875",
"0.50034",
"0.5000292",
"0.49976605",
"0.49946272",
"0.49939284",
"0.4993334",
"0.49930874"
] | 0.6329062 | 0 |
TODO Autogenerated method stub | @Transactional(isolation=Isolation.READ_COMMITTED,
propagation=Propagation.REQUIRED,
rollbackFor=Exception.class)
public void create(Object object) {
sessionFactory.getCurrentSession().save(object);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Transactional(isolation=Isolation.READ_COMMITTED,
propagation=Propagation.REQUIRED,
rollbackFor=Exception.class)
public void update(Object object) {
sessionFactory.getCurrentSession().saveOrUpdate(object);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Transactional(isolation=Isolation.READ_COMMITTED,
propagation=Propagation.REQUIRED,
rollbackFor=Exception.class)
public void delete(Object object) {
sessionFactory.getCurrentSession().delete(object);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Get singleton associated with this class. | public static SymbolTable getInstance() { return instance ; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance() {\n return mSing;\n }",
"public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }",
"public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }",
"public static Singleton instance() {\n return Holder.instance;\n }",
"public static Singleton getInstance()\r\n\t{\r\n\t\t// check if the instance is already created or not, required only for lazy init\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new Singleton();\r\n\t\treturn instance;\r\n\t}",
"public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public static SingletonClass getInstance() {\n\t\tif(singletonObj == null){\n\t\t\tsingletonObj = new SingletonClass();\n\t\t}\n\t\treturn singletonObj;\n\t}",
"public static SingleObject getInstance(){\n return instance;\n }",
"public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }",
"public T getInstance() {\n return instance;\n }",
"public static SingletonEager getInstance()\n {\n return instance;\n }",
"public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }",
"public static SingletonClass getInstance() {\n if (instance == null) {\n instance = new SingletonClass();\n }\n return instance;\n }",
"public static synchronized SingletonImpl getSingleton() {\n\t\t\n\t\tif(mySingleton == null){\n\t\t\tmySingleton = new SingletonImpl();\n\t\t}\n\t\treturn mySingleton;\n\t}",
"public static SingleObject getInstance(){\n\t\treturn instance;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }",
"@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }",
"public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }",
"public static SingletonClass getInstance() {\n if (instance == null) {\n synchronized (SingletonClass.class) {\n if (instance == null) {\n instance = new SingletonClass();\n }\n }\n }\n return instance;\n }",
"public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}",
"public static synchronized Singleton getInstance() {\n\t\tif (mContext == null) {\n\t\t\tthrow new IllegalArgumentException(\"Impossible to get the instance. This class must be initialized before\");\n\t\t}\n\n\t\tif (instance == null) {\n\t\t\tinstance = new Singleton();\n\t\t}\n\n\t\treturn instance;\n\t}",
"public static LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }",
"@Override\n public T getInstance() {\n return instance;\n }",
"public static Singleton getInstance() {\n\t //Je-li promenna instance null, tak se vytvori objekt\n\t if (instance == null) {\n\t instance = new Singleton();\n\t }\n\t //Vratime jedinacka\n\t return instance;\n\t }",
"public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }",
"public static MySingleton getInstance() {\r\n\t\tif(instance==null){\r\n\t\t\tinstance= new MySingleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static Singleton getInstance() {\t\t//getInstance nam omogucava da instanciramo klasu jedinstveno ako vec nismo!\r\n\t\tif (instance == null) {\t\t\t\t\t// inace nam vraca instancu ako je vec napravljena!\r\n\t\t\tinstance = new Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static Main getInstance() {\r\n return instance;\r\n }",
"public static Main getInstance() {\n return instance;\n }",
"public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }",
"@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}",
"synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }",
"public SingletonSyncBlock getInstance() { // when getting a new instance, getInstance as synchronized method is\n\t\t\t\t\t\t\t\t\t\t\t\t// called\n\n\t\tif (SINGLETON_INSTANCE == null) { // if no Singleton was yet initialized, one instance will be created else,\n\t\t\t\t\t\t\t\t\t\t\t// it's returned the one already created.\n\n\t\t\tsynchronized (SingletonSyncBlock.class) { // synchronized block\n\n\t\t\t\tif (SINGLETON_INSTANCE == null) {\n\n\t\t\t\t\tSINGLETON_INSTANCE = new SingletonSyncBlock();\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn SINGLETON_INSTANCE;\n\n\t}",
"public static SingletonEager get_instance(){\n }",
"public static Singleton getInstance(){\n if(instance == null)\n {\n synchronized (Singleton.class) {\n if (instance == null) {\n instance = new Singleton();\n Log.d(\"***\", \"made new Singleton\");\n }\n }\n }\n return instance;\n }",
"synchronized public static InstitutionManager getInstance()\n {\n return singleton;\n }",
"public static Empty getInstance() {\n return instance;\n }",
"public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }",
"public static synchronized MultiThreadedSingleton getInstance() {\n\t\t//Lazy instantiation using double locking mechanism.\n\t\tif (singleton == null) {\n\t\t\tsynchronized (MultiThreadedSingleton.class) {\n\t\t\t\tif (singleton == null) {\n\t\t\t\t\tsimulateRandomActivity();\n\t\t\t\t\tsingleton = new MultiThreadedSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"created singleton: \" + singleton);\n\t\treturn singleton;\n\t}",
"public static HierarchyFactory getSingleton ()\n {\n return HierarchyFactorySingleton._singleton;\n }",
"public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}",
"public static synchronized ThreadSafeSingleton getInstance() {\n\t\tif (null == instance) {\n\t\t\tinstance = new ThreadSafeSingleton();\n\t\t}\n\n\t\treturn instance;\n\t}",
"public static Singleton getInstanceDC() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (Singleton.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new Singleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _instance;\n\t}",
"public static synchronized ThreadSafeSingleton getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new ThreadSafeSingleton();\n\t\t}\n\t\treturn instance;\n\t}",
"public static ChatSingleton getInstance( ) {\n return singleton;\n }",
"public static TaskManager getInstance()\n {\n return gInstance;\n }",
"public static Settings get() {\n return INSTANCE;\n }",
"public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }",
"public static MetaDataManager getInstance() {\n return instance;\n }",
"synchronized public static PreferenceManager getInstance()\n {\n return singleton;\n }",
"public static SingletonDoubleCheck getInstance() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (SingletonDoubleCheck.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new SingletonDoubleCheck();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _instance;\n\t}",
"public static Boolean getSingleton() {\r\n\t\treturn singleton;\r\n\t}",
"public static CZSZApplication_bak getInstance() {\n return theSingletonInstance;\n }",
"public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }",
"public static DotPrinter getInstance() {\n\t\t// needed because once there is singleton available no need to acquire\n\t\t// monitor again & again as it is costly\n\t\tif (instance == null) {\n\t\t\tsynchronized (DotPrinter.class) {\n\t\t\t\t// this is needed if two threads are waiting at the monitor at\n\t\t\t\t// the\n\t\t\t\t// time when singleton was getting instantiated\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new DotPrinter();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"public static LazyLoadingSingleton getInstaceWithoutThreadSafty() {\n\t\tif (INSTANCE == null) {\n\t\t\tINSTANCE = new LazyLoadingSingleton();\n\t\t}\n\t\treturn INSTANCE;\n\t}",
"public static FixtureCache getInstance() {\n\t\tif(instance==null) {\n\t\t\tsynchronized(lock) {\n\t\t\t\tif(instance==null) {\n\t\t\t\t\tinstance = new FixtureCache();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }",
"public static PSUniqueObjectGenerator getInstance()\n {\n if ( null == ms_instance )\n ms_instance = new PSUniqueObjectGenerator();\n return ms_instance;\n }",
"public static synchronized LazyLoadingSingleton getInstanceSynchronized() {\n\t\tif (INSTANCE == null) {\n\t\t\tINSTANCE = new LazyLoadingSingleton();\n\t\t}\n\t\treturn INSTANCE;\n\t}",
"T getInstance();",
"public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}",
"public static Boot getInstance()\n {\n return instance;\n }",
"public static METSNamespace getInstance() {\n return ONLY_INSTANCE;\n }",
"public static ThreadSingleton getInstance() {\n if (instance == null) {\n synchronized(ThreadSingleton.class) {\n if (instance == null) {\n instance = new ThreadSingleton();\n }\n }\n }\n \n return instance;\n }",
"public synchronized static MetaDataCache getInstance() {\r\n if (instance == null) {\r\n instance = new MetaDataCache();\r\n }\r\n return instance;\r\n }",
"public static Casino getInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tcreateInstance();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }",
"public static J2_Singleton getInstance() {\n\t\tif(singletonInstance == null ) {\n\t\t\tsynchronized(J2_Singleton.class) {\n\t\t\t\tif(singletonInstance == null) {\n\t\t\t\t\tsingletonInstance = new J2_Singleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn singletonInstance;\n\t}",
"public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}",
"public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }",
"public static Ontology getInstance() {\n return theInstance;\n }",
"public static Ontology getInstance() {\n return theInstance;\n }",
"public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}",
"public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }",
"public synchronized static SynchronizedMethodSingleton getInstance()\n\t{\n\t\tif ( instance == null )\n\t\t{\n\t\t\tinstance = new SynchronizedMethodSingleton();\n\t\t}\n\t\treturn instance;\n\t}",
"public static Backend get() {\n\t\tif (Backend.singleton == null) {\n\t\t\tBackend.singleton = new Backend();\n\t\t}\n\n\t\treturn Backend.singleton;\n\t}",
"public static synchronized SingletonThreadSave getInstance(){\n if(uniqueThreadSaveInstance == null){\n uniqueThreadSaveInstance = new SingletonThreadSave();\n }\n return uniqueThreadSaveInstance;\n }",
"public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}",
"public static UserManagerImpl getInstance()\r\n\t{\r\n\t\treturn singleton;\r\n\t}",
"public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}",
"public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }",
"static public AtomSlinger Get_Instance ()\n {\n return AtomSlingerContainer._instance;\n }",
"public static CachedClock instance() {\n CachedClock result = instance;\n if (result == null) {\n synchronized (INSTANCE_LOCK) {\n result = instance;\n if (result == null) {\n instance = result = new CachedClock();\n }\n }\n }\n return result;\n }",
"public static Manager getInstance() {\n if (instance == null) {\n instance = new Manager();\n }\n return instance;\n }",
"public static UI getInstance() {\r\n if (singleton == null) {\r\n singleton = new UI();\r\n }\r\n return singleton;\r\n }",
"public static AsteroidFactory getInstance() {\r\n\t\treturn instance;\r\n\t}",
"public static GameManager getInstance() {\n return ourInstance;\n }",
"public static ModuleMapper getInstance() {\n return singleton;\n }",
"public static synchronized DataInterface getSingletonInstance() {\n\t\tif (null == dataInstance) {\n\t\t\tsynchronized (DataInterface.class){\n\t\t\t\t\tif (null == dataInstance) {\n\t\t\t\t\t\tdataInstance = new DataInterface();\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dataInstance;\n\t}",
"@NotNull\n public static UsageTracker getInstance() {\n return ServiceManager.getService(UsageTracker.class);\n }",
"public static AnagramService getInstance() {\n\t\treturn SingletonHelper.INSTANCE;\n\t}",
"public static ThreadSafeSingleton getInstanceWithDoubleCheck() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (ThreadSafeSingleton.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new ThreadSafeSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"public static DataManager getInstance() {\n return instance == null ? (instance = new DataManager()) : instance;\n }",
"public static CarSingleton2 getInstance() {\n\t\treturn singleton_instance;\n\t}",
"public static Log getInstance() {\r\n if (firstInstance == null) {\r\n firstInstance = new Log();\r\n }\r\n return firstInstance;\r\n }",
"public static FpsTimer singleton() {\n return singleton == null ? singleton = new FpsTimer() : singleton;\n }",
"private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }"
] | [
"0.8182337",
"0.8103678",
"0.79102933",
"0.78787154",
"0.7824569",
"0.7784805",
"0.7702283",
"0.77003545",
"0.7696887",
"0.7661438",
"0.76600134",
"0.76408",
"0.76311445",
"0.76122296",
"0.75907946",
"0.75901574",
"0.75877476",
"0.75774676",
"0.75568897",
"0.75117826",
"0.75067025",
"0.7501785",
"0.7454146",
"0.73549455",
"0.7322385",
"0.72509915",
"0.72260654",
"0.71994597",
"0.71992666",
"0.7193227",
"0.71834606",
"0.71669406",
"0.7153368",
"0.71385205",
"0.7120018",
"0.7076025",
"0.70612866",
"0.7047963",
"0.7043668",
"0.6960473",
"0.6951192",
"0.69506544",
"0.6934033",
"0.6930364",
"0.6908615",
"0.688291",
"0.6879079",
"0.6875657",
"0.6869471",
"0.6850028",
"0.68488634",
"0.68431103",
"0.68281245",
"0.6813199",
"0.6807715",
"0.67973566",
"0.6794636",
"0.6792639",
"0.6786235",
"0.6783688",
"0.6766461",
"0.6756188",
"0.67550087",
"0.6754905",
"0.67465955",
"0.6741844",
"0.67307353",
"0.67260534",
"0.67219543",
"0.6715436",
"0.67116743",
"0.6710404",
"0.67094785",
"0.66991425",
"0.66990674",
"0.66990674",
"0.6693197",
"0.6683539",
"0.66758776",
"0.66559553",
"0.6652595",
"0.6641199",
"0.6637343",
"0.6633864",
"0.66253376",
"0.66230005",
"0.6617448",
"0.6600484",
"0.65934247",
"0.65881115",
"0.6578029",
"0.65693945",
"0.65678513",
"0.6544514",
"0.65407956",
"0.6533326",
"0.6528555",
"0.65177065",
"0.650805",
"0.64925575",
"0.6465155"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void myPublicMethod() {
} | {
"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 |
Designed to be called once the dice are thrown. It checks if the conditions to throw the dice are met and and it checks which dice are already selected. It changes the values of the thrown dice by passing a suitable random number to Die class' setValue(int) method. | public String throwDice() {
if (timesThrown < 3) {
for (Die die : dice) {
if (timesThrown == 0) {
die.setChosen(false);
}
if (die.getChosen() == false) {
int random = (int) (Math.random() * 6 + 1);
die.setValue(random);
}
}
return writeTimesThrown();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void throwDice() {\r\n\t\tfor( DiceGroup diceGroup:dice.values() ) {\r\n\t\t\tdiceGroup.throwDice(); //.setResult( (int) Math.random()*die.getSize() + 1);\r\n\t\t}\r\n\t}",
"public void throwDice() {\n\n Random r = new Random();\n\n if (color == DiceColor.NEUTRAL) {\n this.value = 0;\n } else {\n this.value = 1 + r.nextInt(6);\n }\n\n }",
"public void throwDices() throws DiceException {\n /**generator of random numbers(in this case integer numbers >1)*/\n Random generator = new Random();\n /**mode of logic*/\n String mode = this.getMode();\n\n if (!mode.equals(\"sum\") && !mode.equals(\"max\")) {\n throw new DiceException(\"Wrong throw mode!!! Third argument should be 'max' or 'sum'!\");\n } else if (this.getNumOfDices() < 1) {\n throw new DiceException(\"Wrong numeber of dices!!! Number of dices should equals 1 or more!\");\n } else if (this.getNumOfWalls() < 4) {\n throw new DiceException(\"Wrong numeber of walls!!! Number of walls should equals 4 or more!\");\n } else {\n if (mode.equals(\"sum\")) {\n for (int i = 0; i < this.getNumOfDices(); i++) {\n result += (generator.nextInt(this.getNumOfWalls()) + 1);\n }\n } else if (mode.equals(\"max\")) {\n for (int i = 0; i < this.getNumOfDices(); i++) {\n int buff = (generator.nextInt(this.getNumOfWalls()) + 1);\n if (this.result < buff) {\n this.result = buff;\n }\n }\n }\n }\n }",
"public int throwDice() {\n //create new random number between 1 and 6\n int nr = ThreadLocalRandom.current().nextInt(1, 6 + 1);\n //throw the number\n throwDice(nr);\n //return number\n return nr;\n }",
"@Test\n public void testDiceThrown() {\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n testDie(game.diceThrown(), 3, 4);\n game.nextTurn();\n testDie(game.diceThrown(), 3, 4);\n game.nextTurn();\n testDie(game.diceThrown(), 5, 6);\n game.nextTurn();\n testDie(game.diceThrown(), 1, 2);\n game.nextTurn();\n\n }",
"public DiceGame() // Constructor with variables to pass values\n {\n // Show random values.\n \t// Assign default values to the die1Rand and die2Rand fields.\n \tdie1Rand = 0;\n \tdie2Rand = 0;\n \tthrowCount = 0;\n }",
"public void setDice(Dice dice) {\n this.dice = dice;\n }",
"public int throwDice() {\n Double randNumber = 1 + Math.random() * 5;\n this.face = randNumber.intValue();\n return this.face;\n }",
"public void Roll() // Roll() method\n {\n // Roll the dice by setting each of the dice to be\n // \ta random number between 1 and 6.\n die1Rand = (int)(Math.random()*6) + 1;\n die2Rand = (int)(Math.random()*6) + 1;\n }",
"public void Diceroll()\n\t{\n\t\tdice1 = rand.nextInt(6)+1;\n\t\tdice2 = rand.nextInt(6)+1;\n\t\ttotal = dice1+dice2;\n\t}",
"public static void resetDieScore()\n {\n value_from_die = 0;\n }",
"private void otherRolls() {\n\t\t// program tells that player should select dices to re-roll.\n\t\tdisplay.printMessage(\"Select the dice you wish to re-roll and click \"\n\t\t\t\t+ '\\\"' + \"Roll Again\" + '\\\"');\n\t\t// program will wait until player clicks \"roll again\" button.\n\t\tdisplay.waitForPlayerToSelectDice();\n\t\t// we randomly get six integers, from one to six, and we do it N_DICE\n\t\t// times and every time we write our random integer in the array.\n\t\tfor (int i = 0; i < N_DICE; i++) {\n\t\t\tif (display.isDieSelected(i) == true) {\n\t\t\t\tint dice = rgen.nextInt(1, 6);\n\t\t\t\tdiceResults[i] = dice;\n\t\t\t}\n\t\t}\n\t\t// program will display dice, that depends on our randomly taken\n\t\t// integers.\n\t\tdisplay.displayDice(diceResults);\n\t}",
"public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}",
"public Die() {\n\t\t//numDice = 0;\n\t\tnumSides = 0;\n\t\tdieValue = 0;\n\t}",
"public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}",
"public void Throw( int dices, boolean even )\n{\n\t// int dices is the number of dices to throw\n // if boolean even is true, keep throwing until even number\n // if boolean even is false, keep throwing until odd number\n\t\tdices = 1;\n\t\teven = true;\n\t\t\n even = false; // Initialize the boolean even value to false\n \tdo\n {\n \t\t\t\teven = true; // Initialize the boolean even value to true\n \t\t\t\tdo\n \t\t\t\t{\n \t\t\t\t\tif ( even == true && dices%2 != 0 ) // if dices value is ODD\n \t\t\t\t\t{\n \t\t\t\t\t\tdie1Rand = (int)(Math.random()*6) + 1;\n \t\t\t\t\t\tdie2Rand = (int)(Math.random()*6) + 1;\t\n \t\t\t\t\t\tJOptionPane.showMessageDialog( null, \"Die one is \" + die1Rand + \" & Die two is \" + die2Rand );\n \t\t\t\t\t\tdices = die1Rand + die2Rand;\n \t\t\t\t\t\tJOptionPane.showMessageDialog( null, \"Both dice value is \" + dices +\n \t\t\t\t\t\t\t\t\"\\nThe value for both dice is odd. Throw again\" );\n \t\t\t\t\t\tthrowCount++;\n \t\t\t\t\t\tJOptionPane.showMessageDialog( null, \"The dice was thrown \" + throwCount + \" times.\" );\n \t\t\t\t\t}\n \t\t\t\t\t\telse if ( even == true && dices%2 == 0 ) // if dices value is EVEN\n \t\t\t\t\t\t{\t\n \t\t\t\t\t\t\teven = false; // set boolean even to FALSE\n \t\t\t\t\t\t\tdices = 2;\n \t\t\t\t\t\t}\t\t\n \t\t\t\t} // end inside loop\n \t\t\t\twhile( even == true && dices%2 != 0 ); // while boolean even is FALSE and dices value is ODD\n \t\t\t\tJOptionPane.showMessageDialog( null, \"The current dice value is \" + dices +\n \t\t\t\t\t\t\"\\nAn Even value for dice has been thrown!\\n\" + \"The Dice was Thrown a Total of \" + \n \t\t\t\t\t\tthrowCount + \" times to get an Even number!\");\n\n \t\t\t\t\t\n \tthrowCount = 0;\n \teven = false;\n \tdices = 2;\n \tif ( even == false && dices%2 == 0 ) // if dices value is EVEN\n {\n \tdie1Rand = (int)(Math.random()*6) + 1;\n die2Rand = (int)(Math.random()*6) + 1;\t\n JOptionPane.showMessageDialog( null, \"Die one is \" + die1Rand + \" & Die two is \" + die2Rand );\n dices = die1Rand + die2Rand;\n\t\t\tJOptionPane.showMessageDialog( null, \"Both dice value is \" + dices +\n\t\t\t\t\t\"\\nThe value for both dice is even. Throw again\" );\n throwCount++;\n JOptionPane.showMessageDialog( null, \"The dice was thrown \" + throwCount + \" times.\" );\n }\n else if ( even == false && dices%2 != 0 ) // if dices value is ODD\n {\n even = true; // set boolean even to TRUE\n } // end if statement\n } // end outside loop\n\t\twhile( even == false && dices%2 == 0 ); // while boolean even is TRUE and dices value is EVEN\n\t\tJOptionPane.showMessageDialog( null, \"The current dice value is \" + dices +\n\t\t\t\t\"\\nAn Odd value for dice has been thrown!\\n\" + \"The Dice was Thrown a Total of \" + \n\t\t\t\tthrowCount + \" times to get an Odd number!\");\n}",
"private static void roll()\n {\n rand = (int)(((Math.random())*6)+1); // dice roll #1\n rand2 = (int)(((Math.random())*6)+1);// dice roll #2\n }",
"public Dice() {\n\t\td1 = 0;\n\t\td2 = 0;\n\t}",
"private int placeDice(Player actualPlayer, Die die, Position position){\n if(actualPlayer.getSchemaCard().getCellList().get(position.getIndexArrayPosition()).isEmpty()) {\n for (Restriction restriction : restrictionList) {\n int error = restriction.checkRestriction(actualPlayer.getSchemaCard(), die, playerMove.getDiceSchemaWhereToLeave().get(0));\n if (error != 0) return error;\n }\n\n actualPlayer.getSchemaCard().setDiceIntoCell(position, die);\n return 0;\n }\n return 2008;\n }",
"public int throwDice(int number) {\n this.lastThrow = number;\n this.status = \"Started\";\n Player player = players.get(activePlayer);\n\n // DICELISTENER : throw DiceEvent to diceListeners\n for (DiceListener listener : diceListeners) {\n DiceEvent diceEvent = new DiceEvent(this, this.activePlayer, number);\n listener.diceThrown(diceEvent);\n }\n\n\n //check if number thrown was a 6\n if (number != 6) {\n player.setSixersRow(0);\n } else if (!player.inStartingPosition()) { //count up the sixers row if not in starting pos\n player.setSixersRow(player.getSixersRow() + 1);\n }\n\n if (player.getSixersRow() == 3) { //three 6's in a row, next turn\n // PLAYERLISTENER : Trigger playerEvent for player that is WAITING\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, this.activePlayer, PlayerEvent.WAITING);\n listener.playerStateChanged(event);\n }\n this.setNextActivePlayer();\n return number;\n }\n\n if (player.inStartingPosition()) { //starting position have 3 throws to get a six\n player.setThrowAttempts(player.getThrowAttempts() + 1);\n if (number != 6 && player.getThrowAttempts() == 3) {\n // PLAYERLISTENER : Trigger playerEvent for player that is WAITING\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, this.activePlayer, PlayerEvent.WAITING);\n listener.playerStateChanged(event);\n }\n this.setNextActivePlayer();\n player.setThrowAttempts(0);\n return number;\n } else {\n return number;\n }\n }\n\n boolean nextTurn = false;\n int piecesInPlay = player.piecesInPlay();\n int blockedPieces = 0;\n int notMakingItInPieces = 0;\n\n for (Piece piece : player.getPieces()) {\n if (piece.isInPlay()) {\n //count blocked pieces\n if (towersBlocksOpponents(player, piece.position, number)) {\n blockedPieces++;\n }\n\n //If piece is at pos over 52 but the thrown dice won't make it 59\n //end of turn\n if (piece.getPosition() > 52 && piece.getPosition() + number != 59 && piece.getPosition() != 59) {\n notMakingItInPieces++;\n }\n }\n\n }\n\n //if all active pieces are blocked, end of turn\n if (blockedPieces == piecesInPlay) {\n nextTurn = true;\n //if all pieces are at endplay, but none can get in, end of turn\n } else if (notMakingItInPieces == piecesInPlay) {\n nextTurn = true;\n //if blocked pieces and notmakingitinpieces are all the pieces in play, end of turn\n } else if ((notMakingItInPieces + blockedPieces) == piecesInPlay) {\n nextTurn = true;\n }\n\n //set next turn\n if (nextTurn) {\n // PLAYERLISTENER : Trigger playerEvent for player that is WAITING\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, this.activePlayer, PlayerEvent.WAITING);\n listener.playerStateChanged(event);\n }\n this.setNextActivePlayer();\n }\n\n return number;\n }",
"public Dice() {\n this.random = new Random();\n this.faces = 6;\n }",
"public int roll() {\n int result = ThreadLocalRandom.current().nextInt(SIDES+1) + 1;// standard 1-7\n if(result == 7){ //LoadedDie 6 occurs twice as often\n return 6;\n } else{\n return result;\n }\n }",
"public void roll() {\n if(!frozen) {\n this.value = ((int)(Math.random() * numSides + 1));\n }\n }",
"public void checkResult(){\n\t\tif(throwNum == 0){\n\t\t\tthis.firstThrow = this.sumOfDice;\n\t\t}\n\n\t\tif((this.sumOfDice == 7 || this.sumOfDice==11) && throwNum==0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse if(this.sumOfDice ==2 || this.sumOfDice== 3 ||this.sumOfDice==12){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.game == gameStatus.CONTINUE && this.sumOfDice == 7)){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.sumOfDice== this.firstThrow) && throwNum!=0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse{\n\t\t\tthis.game = gameStatus.CONTINUE;\n\t\t}\n\t}",
"public void playCraps(){\n\t\tdie = new Die();\n\t\tthis.dice1=this.die.getFirstDice();\n\t\tthis.dice2=this.die.getSecondDice();\n\t\tthis.sumOfDice = this.dice1 + this.dice2;\n\t\tSystem.out.println(\"(\"+this.dice1+\",\"+this.dice2+\") - \"+this.die.DieCall());\n\n\t\tcheckResult();\n\t\tthrowNum=1;\n\n\t\tswitch(this.game){\n\t\t\tcase WON: System.out.println(\"THE ODDS ARE IN YO' FAVOR MAN!.. CONGRATS, YOU WIN!\");\n\t\t\t\t\t this.scanIn.close();\n\t\t\t\t\t break;\n\t\t\tcase LOST: System.out.println(\"AWWH GOD!..BETTER LUCK NEXT TIME... YOU LOST!\");\n\t\t\t\t this.scanIn.close();\n\t\t\t \t\t break;\n\t\t\tcase CONTINUE: System.out.println(\"HERE... MAKE YOUR POINT...\");\n\t\t\t\t\t\t System.out.println(\"-THROW DICE? (YES/NO) \");\n\t\t\t\t\t\t this.scanIn = new Scanner(System.in);\n\t\t\t\t\t\t String input = scanIn.nextLine();\n\t\t\t\t\t\t if(input.equalsIgnoreCase(\"YES\")||input.equalsIgnoreCase(\"Y\")){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Let's see what you got...\");\n\t\t\t\t\t\t\t\tplayCraps();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(input.equalsIgnoreCase(\"NO\")||input.equalsIgnoreCase(\"N\")){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Haha!.. get outta' here!\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tSystem.out.println(\"I did not get the joke... Throw the dice already!..\");\n\t\t\t\t\t\t\t\tplayCraps();\n\t\t\t\t\t\t\t}\n\t\t\t \t\t break;\n\t\t}\n\n\t}",
"DiceRoll modifyRoll(DiceRoll roll, Die die);",
"int getDieValue() throws HaltException {\n printStream.print(\"\\n\\nChoose the value of the die (value goes from 1 to 6)\");\n return takeInput(1,6);\n }",
"public void roll() {\n\t\tthis.faceValue = (int)(NUM_SIDES*Math.random()) + 1;\n\t}",
"public int roll() {\n if(!debug)\n this.result = random.nextInt(6) + 1;\n else{\n scanner = new Scanner(showInputDialog(\"Enter dice value (1-6):\"));\n try{int res = scanner.nextInt()%7;\n this.result = res!=0? res:6;\n }\n catch(NoSuchElementException ne){this.result=6;} \n }\n return this.result;\n }",
"public void chooseWhichDieToRoll(ActionEvent e){\n \tif(player.get(currentPlayerIndex).getPlayerYatzyProtocol().getTotDiceTossLeft() !=3){\n\t\t\tJButton btnDie = (JButton)e.getSource();\n\t\t\tint index = Integer.parseInt(btnDie.getName());\n \t\n\t\t\t//Change Icon on die depending on user interaction \n\t \tswitch(player.get(currentPlayerIndex).getPlayerYatzyProtocol().getDieNumber(index)){\n\t\t\t\tcase 1:\n\t\t\t\t\tif(player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][6]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().keepDice(index);\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(!player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][0]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().releaseDice(index);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tif(player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][7]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().keepDice(index);\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(!player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][1]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().releaseDice(index);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tif(player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][8]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().keepDice(index);\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(!player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][2]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().releaseDice(index);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tif(player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][9]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().keepDice(index);\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(!player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][3]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().releaseDice(index);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tif(player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][10]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().keepDice(index);\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(!player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][4]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().releaseDice(index);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tif(player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][11]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().keepDice(index);\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(!player.get(currentPlayerIndex).getPlayerYatzyProtocol().getKeepDice(index)){\n\t\t\t\t\t\tbtnDie.setIcon(selectedDieIcon[typeOfDiceIndex][5]);\n\t\t\t\t\t\tplayer.get(currentPlayerIndex).getPlayerYatzyProtocol().releaseDice(index);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t \t}\n \t}\n }",
"@Before\n public void setUp(){\n choose = new ChooseDieModifier(new DieReducer());\n }",
"private int diceRoll(int sides) {\n return (int) ((Math.random() * sides) + 1);\n }",
"public abstract int getRandomDamage();",
"private void setLoaded1() {\r\n\t\tdiceRoll1 = (int) (Math.random() * 6) + 1;\r\n\t}",
"public int getThrow()\n{\n // Return the total number of times the dice was thrown.\n return throwCount;\n}",
"public void setDice(int faceValue1, int faceValue2) {\n boardController.setDice(faceValue1, faceValue2);\n }",
"@Test\n public void test(){\n tmp = new Die(\"Red\",5);\n choose.modifyDie(tmp);\n assertEquals(4,tmp.getDieNumber());\n choose = new ChooseDieModifier(new DieEnhancer());\n choose.modifyDie(tmp);\n assertEquals(5,tmp.getDieNumber());\n choose = new ChooseDieModifier(new TurnTheDieOpposite());\n choose.modifyDie(tmp);\n assertEquals(2,tmp.getDieNumber());\n choose = new ChooseDieModifier(new RollDie());\n Die tmp2 = new Die(tmp.getDieColor(),tmp.getDieNumber());\n int i;\n int max=1000000;\n boolean testPassed=false;\n for(i=0;i<max;i++){\n choose.modifyDie(tmp);\n if(tmp.getDieNumber()!=tmp2.getDieNumber()){\n testPassed=true;\n i = max;\n }\n }\n assertTrue(testPassed);\n }",
"private void rollDice(){\n int rollNumber=rng.nextInt(6)+1;\n //int rollNumber=5;\n switch(rollNumber) {\n case 1:\n dice_picture.setImageResource(R.drawable.one);\n break;\n case 2:\n dice_picture.setImageResource(R.drawable.two);\n break;\n case 3:\n dice_picture.setImageResource(R.drawable.three);\n break;\n case 4:\n dice_picture.setImageResource(R.drawable.four);\n break;\n case 5:\n dice_picture.setImageResource(R.drawable.five);\n break;\n case 6:\n dice_picture.setImageResource(R.drawable.six);\n break;\n default:\n }\n\n move(rollNumber);\n }",
"public DiceFace drawDice() {\n\n if(dicesDrawn >= Settings.MAX_DICE_PER_COLOR * GameColor.values().length) throw new IllegalStateException(this.getClass().getCanonicalName() + \": Attempting to draw one more dice, but already drawn 90\");\n\n int color = random.nextInt(GameColor.values().length);\n int number = random.nextInt(6) + 1;\n GameColor[] values = GameColor.values();\n\n while(counter.get(values[color]) >= Settings.MAX_DICE_PER_COLOR){\n color = random.nextInt(GameColor.values().length);\n }\n\n counter.put(values[color], counter.get(values[color]) + 1);\n dicesDrawn += 1;\n return new DiceFace(GameColor.values()[color], number);\n\n }",
"public void setDirection(int dice){\n\t}",
"private void allowNewRoll(){\r\n\t\tdidBust = false;\r\n\t\tgameOver = false;\r\n\t\troll.setEnabled(true);\r\n\t\tsubmit.setEnabled(false);\r\n\t\tagain.setEnabled(false);\r\n\t\tnoMore.setEnabled(false);\r\n\t\tfor(int i = 0; i < rolls.length; i++){\r\n\t\t\trolls[i] = 0;\r\n\t\t\tselectedDice[i] = false;\r\n\t\t}\r\n\t\tstatusLabel.setText(\"Roll the dice!\");\r\n\t\tupdate();\r\n\t}",
"public void roll() {\n\t\tthis.currentValue = ThreadLocalRandom.current().nextInt(1, this.numSides + 1);\n\t}",
"public void roll()\r\n\t{\r\n\t\tthis.value = rnd.nextInt(6) + 1;\r\n\t}",
"public int performDuel(){\n Random rand = new Random();\n int intRand;\n intRand = rand(6);\n while(this.engine.getGameInformation().cards[intRand][intRand] == 0 ){\n intRand = rand(6);\n }\n return intRand;\n }",
"void onThrowPostPossibleScores(SparseArray<Dice> dices);",
"public int rollDice()\n{\n int die1, die2, sum; \n\n // pick random die values\n die1 = 1 + ( int ) ( Math.random() * 6 );\n die2 = 1 + ( int ) ( Math.random() * 6 );\n\n sum = die1 + die2; // sum die values\n\n // display results\n die1Field.setText( Integer.toString( die1 ) );\n die2Field.setText( Integer.toString( die2 ) );\n sumField.setText( Integer.toString( sum ) );\n\n return sum; // return sum of dice\n\n\n}",
"public Integer aiAction() {\r\n\t\t//if the first dice is less then six, throw the second dice \r\n\t\t//if the both throws > 10 the ai has lost, and will return 0\r\n\t\t//if the first dice == 7, return first dice\r\n\t\tInteger totalSum = 0;\r\n\t\tRandom aiRandom = new Random();\r\n\t\tInteger firstDice = aiRandom.nextInt(7) + 1;\r\n\t\tSystem.out.println(\"First dice: \" + (totalSum += firstDice));\r\n\t\tif (firstDice < 6) {\r\n\t\t\tInteger secondDice = aiRandom.nextInt(7) + 1;\r\n\t\t\tSystem.out.println(\"Second dice value is: \" + secondDice);\r\n\t\t\tSystem.out.println(\"Sum of both throws: \" + (totalSum += secondDice));\r\n\t\t\tif(totalSum > 10){\r\n\t\t\t\treturn 0;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn totalSum;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Ai scored :\" + (firstDice));\r\n\t\t\treturn firstDice;\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic int consequence(int diceThrow) {\n\t\treturn diceThrow;\n\t}",
"public int getDice(){\n\t\treturn diceValue;\n\t\t\n\t}",
"private int rollDie() {\r\n final SecureRandom random = new SecureRandom();\r\n return random.nextInt(6 - 1) + 1;\r\n }",
"public int setRollResult(int diceAmount, int diceSides) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < diceAmount; i++) {\n\t\t\tresult += diceBag.rollDice(diceSides);\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n public int attack(){\n //create an int list to store the numbers\n int[] arr = {zero, six, ten};\n //get a random index of the list\n int index = getRandom().nextInt(arr.length);\n //return the number on that random index\n int damageVal = arr[index];\n return damageVal;\n }",
"public int handleMove(int dicethrow);",
"public int rollDie() {\n\t\treturn (int) (Math.random()*6)+1;\n\t}",
"public void haveGo(int roundsTaken)\n {\n int diceRolls = 0;\n boolean madeChoice = false;\n\n while(diceRolls <= 1){\n ArrayList<Integer> diceRoll = new ArrayList<Integer>();\n boolean firstMove = false;\n boolean secondMove = true;\n\n if(diceRolls == 0){\n //Roll dice cleanly and print related information\n System.out.println(\"\\n\\t--------------------------\\n\\t\" + this.name + \"'s Go!\\n\\t--------------------------\\n\\nRoll One...\");\n diceRoll = dice.cleanRoll();\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n\n }\n else if(diceRolls == 1)\n {\n //Roll dice based on previous preferences\n System.out.println(\"\\nRoll Two...\");\n diceRoll = dice.roll();\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n secondMove = false;\n firstMove = true;\n }\n //Make first action\n while(!firstMove)\n {\n boolean repeat = false;\n //Print Menu\n System.out.println(\"Available Actions:\");\n System.out.println(\"\\t--------------------------\");\n System.out.println(\"\\t0) Exit to Desktop\\n\\t1) Fill a Row\\n\\t2) Possible Scores\\n\\t3) Check Scorecard\\n\\t4) Clean Roll\");\n System.out.println(\"\\t--------------------------\\n\");\n System.out.println(\"Enter Choice...\");\n int choice = GameManager.makeValidChoice(-1,5);\n if(choice == 0)\n {\n //Update and send GameFinisher variables to save\n scorecard.update();\n scorer.update();\n gameFinisher.exitSequence(filename,name, diceRoll, saveString,roundsTaken, 1);\n }\n else if(choice == 3)\n {\n //Print Scorecard\n System.out.println(\"\\n*********************************************\\n\" + name + \"'s Scorecard\\n********************************************\");\n scorecard.printScorecard();\n repeat = true;\n }\n\n else if(choice == 4)\n {\n //Cleanly Roll Dice\n diceRolls++;\n firstMove = true;\n }\n else if(choice == 2)\n {\n //Print Possibilities\n scorer.printPossibilities(diceRoll, scorecard.getFreeCategories());\n repeat =true;\n }\n else if(choice == 1)\n {\n //Fill a Row\n boolean categoryUsed = true;\n while(categoryUsed)\n {\n System.out.println(\"\\nRow to Fill...\");\n int category = GameManager.makeValidChoice(-1,14);\n scorer.findPossibilities(diceRoll, scorecard.getFreeCategories());\n //Check category isnt already filled\n try{\n if(scorecard.getFreeCategories().contains(category)){\n int score = scorer.getScore(category);\n //Set row to be filled and add score\n scorecard.addCategory(category,score);\n madeChoice = true;\n categoryUsed = false;\n }\n else\n {\n System.out.println(\"Row is already filled. Please choose another...\");\n }\n } catch(NullPointerException e) \n {\n System.out.println(\"Program Crash: Free categories doesnt exist.\");\n }\n\n }\n diceRolls = 2;\n firstMove = true;\n secondMove = true;\n madeChoice = true;\n }\n else\n {\n System.out.println(\"Something's gone very wrong, you shouldn't be here...\");\n repeat = true;\n }\n if(repeat){\n if(diceRolls == 0){\n System.out.println(\"Roll One...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n else if(diceRolls == 1)\n {\n System.out.println(\"Roll Two...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n }\n }\n\n while(!secondMove)\n {\n boolean repeat = false;\n //Print Menu \n System.out.println(\"Available Actions:\");\n System.out.println(\"\\t--------------\");\n System.out.println(\"\\t0) Exit to Desktop\\n\\t1) Fill a Row\\n\\t2) Possible Scores\\n\\t3) Check Scorecard\\n\\t4) Clean Roll\\n\\t5) Hold and Roll Dice\");\n System.out.println(\"\\t--------------\\n\");\n System.out.println(\"Enter Choice...\");\n\n int choice = GameManager.makeValidChoice(-1,6);\n\n if(choice == 0)\n {\n //Update and send GameFinisher variables to save\n gameFinisher.exitSequence(filename, name, diceRoll, saveString,roundsTaken, 2);\n }\n else if(choice == 3)\n {\n //Print Scorecard\n System.out.println(\"\\n********************************************\\n\" + name + \"'s Scorecard\\n********************************************\");\n scorecard.printScorecard();\n repeat = true;\n }\n else if(choice == 5)\n {\n //Get Holdings preferences from Player\n System.out.println(\"\\n\\t--------------------------\");\n System.out.println(\"\\tDice Holder\\n\\t-----\\n\\t[0) Leave [1) Hold\");\n System.out.println(\"\\t--------------------------\\n\");\n System.out.println(diceRoll);\n System.out.println(\"---------------\");\n System.out.print(\"[\" + diceRoll.get(0) + \"]\");\n boolean one = toHold();\n System.out.print(\"[\" + diceRoll.get(1) + \"]\");\n boolean two = toHold();\n System.out.print(\"[\" + diceRoll.get(2) + \"]\");\n boolean three = toHold();\n System.out.print(\"[\" + diceRoll.get(3) + \"]\");\n boolean four = toHold();\n System.out.print(\"[\" + diceRoll.get(4) + \"]\");\n boolean five = toHold();\n //Send Preferences to Dice()\n ArrayList<Boolean> newState = new ArrayList<Boolean>();\n newState.add(one);\n newState.add(two);\n newState.add(three);\n newState.add(four);\n newState.add(five);\n dice.setDiceHoldState(newState);\n System.out.println(\"\\n\\t--------------------------\\n\\tDice Held\\n\\t-----\\n\\tRolling Dice...\\n\\t--------------------------\");\n diceRolls++;\n secondMove = true;\n }\n else if(choice == 4)\n {\n //Cleanly Roll Dice\n diceRolls++;\n secondMove = true;\n madeChoice = false;\n }\n else if(choice == 2)\n {\n //Print Possibilities\n scorer.printPossibilities(diceRoll, scorecard.getFreeCategories());\n repeat =true;\n }\n else if(choice == 1)\n {\n //Fill a Row\n boolean categoryUsed = true;\n while(categoryUsed)\n {\n System.out.println(\"What row would you like to fill?\");\n int category = GameManager.makeValidChoice(-1,14);\n //Check category isnt already filled\n try{\n if(scorecard.getFreeCategories().contains(category)){\n int score = scorer.getScore(category);\n //Set row to be filled and add score\n scorecard.addCategory(category,score);\n madeChoice = true;\n categoryUsed = false;\n }\n else\n {\n System.out.println(\"Row is already filled. Please choose another...\");\n }\n } catch(NullPointerException e) {\n System.out.println(\"Program Crash: Free categories doesnt exist.\");\n }\n }\n diceRolls = 2;\n repeat = false;\n secondMove = true;\n madeChoice = true;\n }\n else\n {\n System.out.println(\"Something's gone very wrong, you shouldn't be here...\");\n repeat = true;\n }\n\n if(repeat){\n if(diceRolls == 0){\n System.out.println(\"Roll One...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n else if(diceRolls == 1)\n {\n System.out.println(\"Roll Two...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n\n }\n }\n }\n ArrayList<Integer> diceRoll = dice.roll(); \n while(!madeChoice)\n {\n System.out.println(\"\\nFinal Roll...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n //Print Menu\n System.out.println(\"Available Actions:\");\n System.out.println(\"\\t--------------------------\");\n System.out.println(\"\\t0) Exit to Desktop\\n\\t1) Fill a Row\\n\\t2) Possible Scores\\n\\t3) Check Scorecard\");\n System.out.println(\"\\t--------------------------\");\n System.out.println(\"Enter Choice...\");\n int choice = GameManager.makeValidChoice(-1,4);\n if(choice == 0)\n {\n //Update and send GameFinisher variables to save\n gameFinisher.exitSequence(filename, name, diceRoll, saveString, roundsTaken, 3);\n }\n else if(choice == 3)\n {\n //Print Scorecard\n System.out.println(\"\\n********************************************\\n\" + name + \"'s Scorecard\\n********************************************\");\n scorecard.printScorecard();\n }\n\n else if(choice == 2)\n {\n //Print Possibilities\n scorer.printPossibilities(diceRoll, scorecard.getFreeCategories());\n }\n else if(choice == 1)\n {\n //Fill a Row\n boolean categoryUsed = true;\n while(categoryUsed)\n {\n System.out.println(\"What row would you like to fill?\");\n int category = GameManager.makeValidChoice(-1,14);\n //Check category isnt already filled\n try{\n if(scorecard.getFreeCategories().contains(category)){\n int score = scorer.getScore(category);\n //Set row to be filled and add score\n scorecard.addCategory(category,score);\n madeChoice = true;\n categoryUsed = false;\n }\n else\n {\n System.out.println(\"Row is already filled. Please choose another...\");\n }\n } catch(NullPointerException e) {\n System.out.println(\"Program Crash: Free categories doesnt exist.\");\n }\n }\n }\n }\n }",
"public void rollCup()\n {\n die1.rolldice();\n die2.rolldice();\n gui.setDice(die1.getFacevalue(), die2.getFacevalue());\n }",
"public void rollDice() {\n try {\n if (numOfDices != Integer.parseInt(numOfDicesText.getText().toString())) {\n init();\n }\n }\n catch (Exception e) {\n System.out.println(e);\n numOfDicesText.setText(\"1\");\n init();\n }\n int rolledNumber;\n for (int i = 0; i < numOfDices; i++) {\n rolledNumber = dices.get(i).roll();\n textViews.get(i).setText(\"Dice \" + (i+1) + \" rolled a \" + rolledNumber);\n imageViews.get(i).setImageBitmap(DiceImages.getImage(rolledNumber));\n }\n }",
"public void rollStats() {\n\t\tRandom roll = new Random();\n\t\tint rolled;\n\t\tint sign;\n\t\t\n\t\t\n\t\trolled = roll.nextInt(4);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetMaxHealth(getMaxHealth() + rolled*(getDifficulty()+5/5));\n\t\t\tsetHealth(getMaxHealth());\n\t\t} else {\n\t\t\tsetMaxHealth(getMaxHealth() - rolled*(getDifficulty()+5/5));\n\t\t\tsetHealth(getMaxHealth());\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetAttack(getAttack() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetAttack(getAttack() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetDefense(getDefense() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetDefense(getDefense() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetSpeed(getSpeed() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetSpeed(getSpeed() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t}",
"public int throwRandomStrategy(int[] fighter) {\n Random rnd = new Random();\n int defenseLimit = 3;\n//If little life left, he defends 50% of the blows\n if (fighter[LIFE] < 2) {\n defenseLimit = 1;\n }\n int accio = rnd.nextInt(10);\n if ((accio >= 0) && (accio < defenseLimit)) {\n return Combat.ATTACK;\n } else if ((defenseLimit >= 3) && (accio < 6)) {\n return Combat.DEFENSE;\n } else if ((accio >= 6) && (accio < 8)) {\n return Combat.CHEATING;\n } else {\n return Combat.MANEUVER;\n }\n }",
"public int tossDice(){\n\t\tRandom r = new Random();\n\t\tdiceValue = r.nextInt(6)+1;\n\t\tdiceTossed = true;\n\t\treturn diceValue;\n\t}",
"public static int diceRoll() {\n Random roller = new Random();//Create a random number generator\r\n return roller.nextInt(6) + 1;//Generate a number between 0-5 and add 1 to it\r\n }",
"public void roll() { \n this.value = (int)(Math.random() * this.faces()) + 1; \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n activedicenumberselected = 0;\n if (listenfordicenumber) {\n activedicenumberselected = setdicenumber;\n listenfordicenumber = false;\n }\n\n if (activedicenumberselected != 0) {\n if (Dice.doesFrozenDiceListContainValue(activedicenumberselected) == false) {\n currentplayeractions.performFreezeDice(activedicenumberselected);\n if (Dice.getActiveDiceListSize() > 0) {\n currentplayeractions.setDiceRollAvailable(true);\n }\n TakeWormFromPlayerAvailable = true;\n TakeWormFromGrillAvailable = true;\n ActiveDiceButtonsAreGreen = false;\n } else if (Dice.doesFrozenDiceListContainValue(activedicenumberselected)) {\n JOptionPane.showMessageDialog(null, \"You already froze that number, pick another number!\");\n listenfordicenumber = true;\n }\n }\n performGamePanelUpdate();\n }",
"public dice(int sides)\r\n\t{\r\n\t\tnumOfSides = sides;\r\n\t}",
"public void set_random_choice()\r\n\t{\r\n\t\tfor (int i=0 ; i<size ; i++)\r\n\t\t{\r\n\t\t\tnumbers.add(get_not_selected_random_digit());\r\n\t\t}\r\n\t}",
"public void throwDice()\n {\n System.out.println( name + \"'s Turn \" + (turnNumber + 1) + \" Results for Round \" + round + \": \");\n turnScores[turnNumber] = 0;\n System.out.print(\"Dice Throws: \");\n for (int diceNumber = 0; diceNumber < diceThrows[turnNumber].length; diceNumber++)\n {\n int diceThrow = r.nextInt(6) + 1;\n diceThrows[turnNumber][diceNumber] = diceThrow;\n turnScores[turnNumber] += diceThrow;\n totalScore += diceThrow;\n System.out.print(diceThrows[turnNumber][diceNumber] + \" \");\n }\n System.out.print(\" Score This Turn: \" + turnScores[turnNumber] + \" \");\n System.out.println(\" \" + name + \"'s Running Total Score: \" + totalScore + \"\\n\");\n \n turnNumber++;\n }",
"public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }",
"public void setPlayerRoll20()\r\n {\r\n \r\n roll2 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE20 + LOWEST_DIE_VALUE20);\r\n \r\n }",
"public Die(int numSides) {\n this.numSides = numSides;\n value = 1;\n frozen = false;\n }",
"public void setPlayerRoll10()\r\n {\r\n \r\n roll1 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE10 + LOWEST_DIE_VALUE10);\r\n }",
"public static int rollDie() {\n int n = ThreadLocalRandom.current().nextInt(1, 7);\n return n;\n }",
"public void roll() {\n int number = new Random().nextInt(MAXIMUM_FACE_NUMBER);\n FaceValue faceValue = FaceValue.values()[number];\n setFaceValue(faceValue);\n }",
"public static int diceRoll() {\n\t\t\n\t\t//the outcome of the die is stored as an integer and returned\n\t\t\n\t\tint diceNumber = (int)((6 * (Math.random())) + 1);\n\t\treturn diceNumber;\n\t}",
"public static void roll()\n {\n Random no = new Random();\n Integer dice = no.nextInt(7);\n System.out.println(dice);\n }",
"public void chooseDefenderDice(int maxDice, String owner, String territoryName){\n gameState = GameState.DICEFIGHTDEFENDERCHOICE;\n currentMessage = \"\" + maxDice + \",\" + owner + \",\" + territoryName;\n notifyObservers();\n }",
"public void updateDice() {\n keepAll = true;\n for (JToggleButton die : diceButtons) { // check to see if the user wants to keep all of their dice\n if (!die.isSelected()) {\n keepAll = false;\n break;\n }\n }\n if (player.getCurrentTurn() <= player.getNumOfTurns() && !keepAll) { // reroll\n for (int i = 0; i < player.getPlayerHand().getSizeOfHand(); i++) {\n if (!diceButtons.get(i).isSelected())\n player.rollNewDie(i);\n diceButtons.get(i).setText(String.valueOf(player.getPlayerHand().getHand().get(i).getSideUp()));\n diceButtons.get(i).setSelected(false);\n diceImages.get(i).setIcon(new ImageIcon(player.getPlayerHand().getHand().get(i).getSideUp()+\"up.png\"));\n diceImages.get(i).setSelected(false);\n }\n player.setCurrentTurn(player.getCurrentTurn() + 1);\n setVisible(true);\n if (player.getNumOfTurns()+1 == player.getCurrentTurn() || player.getNumOfTurns() == 1) {\n makeScoringOptions();\n }\n }\n else {\n makeScoringOptions(); // go to scoring options frame\n }\n }",
"static void yellow_fight () {\n monsterchoices_y_r = arenafight_y.nextInt(4);\n if (monsterchoices_y_r == 0) {//if integer is zero, you will fight a spider\n System.out.println(\"You encountered a giant spider.\");//#enemyobject-enemy that player tries to defeat\n spider_fight();\n }else if(monsterchoices_y_r == 1) {//if integer is 1 you would fight a goblin\n System.out.println(\"You encountered a goblin.\");//#enemyobject-enemy that player tries to defeat\n goblin_fights(); \n }else if(monsterchoices_y_r == 2) { //if integer is 2, you would fight a golbat\n System.out.println(\"You encountered a golbat.\");//#enemyobject-enemy that player tries to defeat\n golbat_fights();\n }else if(monsterchoices_y_r == 3) { //if the integer is 3, you would fight a witch\n System.out.println(\"You encountered a witch.\");//#enemyobject-enemy that player tries to defeat\n witch_fights();\n }\n \n }",
"public void setDiceSides(int sideDices)\n {\n this.diceSides = sideDices;\n }",
"static void red_fight() {\n monsterchoices_y_r = arenafight_r.nextInt(4);\n if(monsterchoices_y_r == 0){\n System.out.println(\"You encountered a gigantic ape...\");\n gigantic_ape();\n System.out.println(\"\\n\");\n }else if(monsterchoices_y_r == 1) {\n System.out.println(\"You encountered a hungry gorilla...\");\n gorilla();\n System.out.println(\"\\n\");\n }else if(monsterchoices_y_r == 2) {\n System.out.println(\"You encountered a bloodthristy pack of wolves...\");\n pack_of_wolves();\n System.out.println(\"\\n\");\n }else if (monsterchoices_y_r == 3) {\n System.out.println(\"You encountered a King Snake...\");\n rattle_snake();\n System.out.println(\"\\n\");\n }\n }",
"public void haveContinuedGo(Dice currentDice, int currentSection, int roundsTaken)\n {\n dice = currentDice;\n boolean madeChoice = false;\n boolean firstMove = false;\n boolean secondMove = true;\n int diceRolls = 0;\n if(currentSection == 1)\n {\n firstMove = false;\n secondMove = true;\n diceRolls = 0;\n }\n if(currentSection ==2)\n {\n diceRolls = 1;\n }\n if(currentSection == 3)\n {\n diceRolls =2;\n }\n //Proceed to haveGo() whilst taking account of different initial variable scenarios\n while(diceRolls <= 1){\n ArrayList<Integer> diceRoll = new ArrayList<Integer>();\n if(diceRolls == 0){\n System.out.println(\"\\n\\t--------------------------\\n\\t\" + this.name + \"'s Go!\\n\\t--------------------------\\n\\nRoll One...\");\n diceRoll = dice.getDiceState();\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n else if(diceRolls == 1)\n {\n System.out.println(\"\\nRoll Two...\");\n if(currentSection == 1)\n {\n diceRoll = dice.roll();\n }\n else\n {\n diceRoll = dice.getDiceState();\n }\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n secondMove = false;\n firstMove = true;\n }\n //CURRENTLY MOVING REPEATS\n while(!firstMove)\n {\n boolean repeat = false;\n System.out.println(\"Available Actions:\");\n System.out.println(\"\\t--------------------------\");\n System.out.println(\"\\t0) Exit to Desktop\\n\\t1) Fill a Row\\n\\t2) Possible Scores\\n\\t3) Check Scorecard\\n\\t4) Clean Roll\");\n System.out.println(\"\\t--------------------------\\n\");\n System.out.println(\"Enter Choice...\");\n int choice = GameManager.makeValidChoice(-1,5);\n if(choice == 0)\n {\n gameFinisher.exitSequence(filename,name, diceRoll, saveString,roundsTaken, 1);\n }\n else if(choice == 3)\n {\n System.out.println(\"\\n********************************************\\n\" + name + \"'s Scorecard\\n********************************************\");\n scorecard.printScorecard();\n repeat = true;\n }\n\n else if(choice == 4)\n {\n diceRolls++;\n firstMove = true;\n }\n else if(choice == 2)\n {\n scorer.printPossibilities(diceRoll, scorecard.getFreeCategories());\n repeat =true;\n }\n else if(choice == 1)\n {\n boolean categoryUsed = true;\n while(categoryUsed)\n {\n System.out.println(\"Which row would you like to fill?\");\n int category = GameManager.makeValidChoice(-1,14);\n scorer.findPossibilities(diceRoll, scorecard.getFreeCategories());\n try{\n if(scorecard.getFreeCategories().contains(category)){\n int score = scorer.getScore(category);\n scorecard.addCategory(category,score);\n madeChoice = true;\n categoryUsed = false;\n }\n else\n {\n System.out.println(\"Row is already filled. Please choose another...\");\n }\n } catch(NullPointerException e) {\n System.out.println(\"Program Crash: Free categories doesnt exist.\");\n }\n }\n diceRolls = 2;\n firstMove = true;\n secondMove = true;\n madeChoice = true;\n }\n else\n {\n System.out.println(\"Something's gone very wrong, you shouldn't be here...\");\n repeat = true;\n }\n if(repeat){\n if(diceRolls == 0){\n System.out.println(\"Roll One...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n else if(diceRolls == 1)\n {\n System.out.println(\"Roll Two...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n }\n }\n while(!secondMove)\n {\n boolean repeat = false;\n System.out.println(\"Available Actions:\");\n System.out.println(\"\\t--------------------------\");\n System.out.println(\"\\t0) Exit to Desktop\\n\\t1) Fill a Row\\n\\t2) Possible Scores\\n\\t3) Check Scorecard\\n\\t4) Clean Roll\\n\\t5) Hold and Roll Dice\");\n System.out.println(\"\\t--------------------------\\n\");\n System.out.println(\"Enter Choice...\");\n int choice = GameManager.makeValidChoice(-1,6);\n if(choice == 0)\n {\n gameFinisher.exitSequence(filename, name, diceRoll, saveString,roundsTaken, 2);\n }\n else if(choice == 3)\n {\n System.out.println(\"\\n********************************************\\n\" + name + \"'s Scorecard\\n********************************************\");\n scorecard.printScorecard();\n repeat = true;\n }\n else if(choice == 5)\n {\n System.out.println(\"\\n\\t--------------------------\");\n System.out.println(\"\\tDice Holder\\n\\t-----\\n\\t[0) Leave [1) Hold\");\n System.out.println(\"\\t--------------\\n\");\n System.out.println(diceRoll);\n System.out.println(\"--------------------------\");\n System.out.print(\"[\" + diceRoll.get(0) + \"]\");\n boolean one = toHold();\n System.out.print(\"[\" + diceRoll.get(1) + \"]\");\n boolean two = toHold();\n System.out.print(\"[\" + diceRoll.get(2) + \"]\");\n boolean three = toHold();\n System.out.print(\"[\" + diceRoll.get(3) + \"]\");\n boolean four = toHold();\n System.out.print(\"[\" + diceRoll.get(4) + \"]\");\n boolean five = toHold();\n ArrayList<Boolean> newState = new ArrayList<Boolean>();\n newState.add(one);\n newState.add(two);\n newState.add(three);\n newState.add(four);\n newState.add(five);\n dice.setDiceHoldState(newState);\n System.out.println(\"\\n\\t--------------------------\\n\\tDice Held\\n\\t-----\\n\\tRolling Dice...\\n\\t--------------------------\");\n diceRolls++;\n secondMove = true;\n }\n else if(choice == 4)\n {\n diceRolls++;\n secondMove = true;\n madeChoice = false;\n }\n else if(choice == 2)\n {\n scorer.printPossibilities(diceRoll, scorecard.getFreeCategories());\n repeat =true;\n }\n else if(choice == 1)\n {\n boolean categoryUsed = true;\n while(categoryUsed)\n {\n System.out.println(\"What row would you like to fill?\");\n int category = GameManager.makeValidChoice(-1,14);\n try{\n if(scorecard.getFreeCategories().contains(category)){\n int score = scorer.getScore(category);\n scorecard.addCategory(category,score);\n madeChoice = true;\n categoryUsed = false;\n }\n else\n {\n System.out.println(\"Row is already filled. Please choose another...\");\n }\n } catch(NullPointerException e) {\n System.out.println(\"Program Crash: Free categories doesnt exist.\");\n }\n }\n diceRolls = 2;\n repeat = false;\n secondMove = true;\n madeChoice = true;\n }\n else\n {\n System.out.println(\"Something's gone very wrong, you shouldn't be here...\");\n repeat = true;\n }\n\n if(repeat){\n if(diceRolls == 0){\n System.out.println(\"Roll One...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n else if(diceRolls == 1)\n {\n System.out.println(\"Roll Two...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n\n }\n }\n }\n ArrayList<Integer> diceRoll = new ArrayList<Integer>();\n if(currentSection != 3)\n {\n diceRoll = dice.roll(); \n }\n else if(currentSection == 3)\n {\n diceRoll = dice.getDiceState(); \n }\n while(!madeChoice)\n {\n System.out.println(\"\\nFinal Roll...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n System.out.println(\"Available Actions:\");\n System.out.println(\"\\t--------------------------\");\n System.out.println(\"\\t0) Exit to Desktop\\n\\t1) Fill a Row\\n\\t2) Possible Scores\\n\\t3) Check Scorecard\");\n System.out.println(\"\\t--------------------------\");\n System.out.println(\"Enter Choice...\");\n int choice = GameManager.makeValidChoice(-1,4);\n if(choice == 0)\n {\n gameFinisher.exitSequence(filename, name, diceRoll, saveString, roundsTaken, 2);\n }\n else if(choice == 3)\n {\n System.out.println(\"\\n********************************************\\n\" + name + \"'s Scorecard\\n********************************************\");\n scorecard.printScorecard();\n }\n\n else if(choice == 2)\n {\n scorer.printPossibilities(diceRoll, scorecard.getFreeCategories());\n }\n else if(choice == 1)\n {\n boolean categoryUsed = true;\n while(categoryUsed)\n {\n System.out.println(\"What row would you like to fill?\");\n int category = GameManager.makeValidChoice(-1,14);\n try{\n if(scorecard.getFreeCategories().contains(category)){\n int score = scorer.getScore(category);\n scorecard.addCategory(category,score);\n madeChoice = true;\n categoryUsed = false;\n }\n else\n {\n System.out.println(\"Row is already filled. Please choose another...\");\n }\n } catch(NullPointerException e) {\n System.out.println(\"Program Crash: Free categories doesnt exist.\");\n }\n }\n }\n }\n }",
"public void roll(){\n Random rand = new Random();\n this.rollVal = rand.nextInt(this.faces) + 1;\n }",
"private void createAvailableDice() {\n availableDice = new ArrayList<>();\n List<String> dice1Values = Arrays.asList(\"R\", \"I\", \"F\", \"O\", \"B\", \"X\");\n GameCube cube1 = new GameCube(dice1Values);\n availableDice.add(cube1);\n\n List<String> dice2Values = Arrays.asList(\"I\", \"F\", \"E\", \"H\", \"E\", \"Y\");\n GameCube cube2 = new GameCube(dice2Values);\n availableDice.add(cube2);\n\n List<String> dice3values = Arrays.asList(\"E\", \"D\", \"N\", \"O\", \"W\", \"S\");\n GameCube cube3 = new GameCube(dice3values);\n availableDice.add(cube3);\n\n List<String> dice4values = Arrays.asList(\"U\", \"T\", \"O\", \"K\", \"N\", \"D\");\n GameCube cube4 = new GameCube(dice4values);\n availableDice.add(cube4);\n\n List<String> dice5values = Arrays.asList(\"H\", \"M\", \"S\", \"R\", \"A\", \"O\");\n GameCube cube5 = new GameCube(dice5values);\n availableDice.add(cube5);\n\n List<String> dice6values = Arrays.asList(\"L\", \"U\", \"P\", \"E\", \"T\", \"S\");\n GameCube cube6 = new GameCube(dice6values);\n availableDice.add(cube6);\n\n List<String> dice7values = Arrays.asList(\"A\", \"C\", \"I\", \"T\", \"O\", \"A\");\n GameCube cube7 = new GameCube(dice7values);\n availableDice.add(cube7);\n\n List<String> dice8values = Arrays.asList(\"Y\", \"L\", \"G\", \"K\", \"U\", \"E\");\n GameCube cube8 = new GameCube(dice8values);\n availableDice.add(cube8);\n\n List<String> dice9values = Arrays.asList(\"Qu\", \"B\", \"M\", \"J\", \"O\", \"A\");\n GameCube cube9 = new GameCube(dice9values);\n availableDice.add(cube9);\n\n List<String> dice10values = Arrays.asList(\"E\", \"H\", \"I\", \"S\", \"P\", \"N\");\n GameCube cube10 = new GameCube(dice10values);\n availableDice.add(cube10);\n\n List<String> dice11values = Arrays.asList(\"V\", \"E\", \"T\", \"I\", \"G\", \"N\");\n GameCube cube11 = new GameCube(dice11values);\n availableDice.add(cube11);\n\n List<String> dice12values = Arrays.asList(\"B\", \"A\", \"L\", \"I\", \"Y\", \"T\");\n GameCube cube12 = new GameCube(dice12values);\n availableDice.add(cube12);\n\n List<String> dice13values = Arrays.asList(\"E\", \"Z\", \"A\", \"V\", \"N\", \"D\");\n GameCube cube13 = new GameCube(dice13values);\n availableDice.add(cube13);\n\n List<String> dice14values = Arrays.asList(\"R\", \"A\", \"L\", \"E\", \"S\", \"C\");\n GameCube cube14 = new GameCube(dice14values);\n availableDice.add(cube14);\n\n List<String> dice15values = Arrays.asList(\"U\", \"W\", \"I\", \"L\", \"R\", \"G\");\n GameCube cube15 = new GameCube(dice15values);\n availableDice.add(cube15);\n\n List<String> dice16values = Arrays.asList(\"P\", \"A\", \"C\", \"E\", \"M\", \"D\");\n GameCube cube16 = new GameCube(dice16values);\n availableDice.add(cube16);\n\n }",
"private void roll() {\n value = (int) (Math.random() * MAXVALUE) + 1;\n }",
"public void roll()\r\n\t{\r\n\t\tRandom rand = new Random();\r\n\r\n\t\trollNumber = rand.nextInt(numOfSides) + 1;\r\n\t}",
"public char throwDie() {\r\n return _chars.charAt(RAND.nextInt(DIE_SIDES));\r\n }",
"public Dice() {\n //Can it be simpler, than that..\n this.sides = 20;\n }",
"public void roll(){\n currentValue = rand.nextInt(6)+1;\n }",
"public Dice(int numberOfDice) {\r\n for (int i = 0; i < numberOfDice; i++) {\r\n dice.add(rollDie());\r\n }\r\n sortDice();\r\n }",
"@Override\n public void run() {\n n =r.nextInt(6)+1;\n rollDieFace(n);\n }",
"public void setDie (int i, int value)\n\t{\n\t\tdieButton[i].setIcon (dieIcon[value]);\n\t}",
"public void playRollingADie() {\n\t\tSystem.out.print(\"The pirates ask you to play 'Rolling a Die'. You have to predict what is the outcome. \" + \"\\n\" + \"You can choose between: \");\n\t\tArrayList<String> gameElements2 = new ArrayList<String>(3);\n\t\tgameElements2.add(\"Even\");\n\t\tgameElements2.add(\"Odd\");\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"(1) Even\");\n\t\t\tSystem.out.println(\"(2) Odd\");\n\t\t\ttry { \n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction <= 2 && selectedAction > 0) {\n\t\t\t\tint decision = game.determineWinnningRollingADie();\n\t\t\t\tint piratesThrows = game.getWhatPiratesThrowRD(decision, gameElements2.get(selectedAction-1));\n\t\t\t\tSystem.out.println(\"The die is showing \" + piratesThrows);\n\t\t\t\tif (decision == 0) {\n\t\t\t\t\tstate = true;\n\t\t\t\t\tint piratesDemand = game.getPiratesDemand();\n\t\t\t\t\tSystem.out.println(\"You lose! Pirates demands: \" + piratesDemand + \" coins\");\n\t\t\t\t\tif (game.checkPirateSatisfaction()) {\n\t\t\t\t\t\tgame.removeAllGoods();\n\t\t\t\t\t\tgame.backToMain();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tgame.removeAllGoods();\n\t\t\t\t\t\tint money = game.getMoney();\n\t\t\t\t\t\tgame.updateMoney(money * -1);\n\t\t\t\t\t\tgame.gameOver(\"You lose play rock paper scissor game! \\nthe pirate took all of your money and your items in your ship!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tstate = true;\n\t\t\t\t\tSystem.out.println(\"You Win!! You can Continue your journey to your destination!\");\n\t\t\t\t\tgame.backToMain();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Test\n public void testSetCantRandom() {\n System.out.println(\"setCantRandom\");\n int cantRandom = 0;\n RandomX instance = null;\n instance.setCantRandom(cantRandom);\n // TODO review the generated test code and remove the default call to fail.\n \n }",
"public BoardImpl() {\r\n List<Die> remainingDice = new ArrayList<Die>(Die.ALL_DICE);\r\n for (int row = 0; row < BOARD_ROWS; row++) {\r\n for (int column = 0; column < BOARD_COLUMNS; column++) {\r\n Die nextDie = remainingDice.remove(RAND.nextInt(remainingDice.size()));\r\n _cells[row][column] = nextDie.throwDie();\r\n }\r\n }\r\n }",
"public Die(int s)\n\t{\n\t\tsides = s;\n\t\tvalue = -1;\n\t}",
"@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }",
"private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }",
"@Override\n public void sendDicesValues(int orange, int white, int black) {\n try {\n if (getClientInterface() != null)\n getClientInterface().setDiceValues(orange, white, black);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending dice values error\");\n }\n }",
"public void throwDices(int[] details) throws RemoteException {\n sd.getGames().get(details[0]).playRound();\n }",
"public int setDiceValue(int num){\r\n\t\trollNumber = num;\r\n\r\n\t\treturn rollNumber;\r\n\t}",
"static void diceRollPopup(Context context, int diceValue, int modifier, String message){\n try {\n Random randomNumberDiceBox = new Random();\n int randomNumberValue = randomNumberDiceBox.nextInt(diceValue) + 1;\n String longMessage;\n AlertDialog.Builder diceDialogBox = new AlertDialog.Builder(context);\n\n //creates a textview for the dice message\n TextView diceMessage = new TextView(context);\n diceMessage.setGravity(Gravity.CENTER_HORIZONTAL);\n diceMessage.setTextColor(Color.WHITE);\n diceMessage.setTextSize(20);\n\n //checks for whether it was a nat20 and adds text\n if (randomNumberValue == diceValue) {\n diceDialogBox.setTitle(\"Dice Roll (d\" + diceValue + \") CRITICAL ROLL!\");\n }\n else{\n diceDialogBox.setTitle(\"Dice Roll (d\" + diceValue + \")\");\n }\n randomNumberValue = randomNumberValue + modifier;\n //adds the message to the dialog\n if (message != null) {\n longMessage = \"You have rolled \" + Integer.toString(randomNumberValue) + \" \" + message;\n } else {\n longMessage = \"You have rolled \" + Integer.toString(randomNumberValue);\n }\n diceMessage.setText(longMessage);\n diceDialogBox.setView(diceMessage);\n //adds an ok button to the dialog box\n diceDialogBox.setNeutralButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n //Activates the dialog box\n AlertDialog diceDialog = diceDialogBox.create();\n diceDialog.show();\n Log.i(\"MenuAndDatabase\",\"dice roll popup. dice value: \" + randomNumberValue);\n }\n catch(Exception e){\n MenuAndDatabase.errorNotification(context,e.toString());\n Log.e(\"MenuAndDatabase\",\"error rolling dice: \" + e.toString());\n }\n }"
] | [
"0.7519215",
"0.73108387",
"0.69881195",
"0.64267623",
"0.6399003",
"0.6286443",
"0.62563574",
"0.61188185",
"0.6111071",
"0.6105438",
"0.6057298",
"0.6007227",
"0.59882295",
"0.5940106",
"0.5937683",
"0.58779436",
"0.5861119",
"0.58282334",
"0.5820916",
"0.5809218",
"0.5792141",
"0.5786763",
"0.57636297",
"0.5740803",
"0.57382476",
"0.5714033",
"0.57048315",
"0.5697513",
"0.5688047",
"0.5658336",
"0.56548125",
"0.56438476",
"0.56424975",
"0.56179583",
"0.56165546",
"0.55916744",
"0.55865234",
"0.55829906",
"0.5572613",
"0.55600286",
"0.55581796",
"0.555314",
"0.55497724",
"0.55461764",
"0.553326",
"0.5522033",
"0.5509129",
"0.5508194",
"0.55071574",
"0.55022854",
"0.5502096",
"0.54846936",
"0.5474425",
"0.5466202",
"0.54627",
"0.54435986",
"0.5443171",
"0.54425436",
"0.5429768",
"0.54143536",
"0.5406652",
"0.5396492",
"0.539475",
"0.53854424",
"0.5374422",
"0.5367477",
"0.5351132",
"0.5346837",
"0.5344918",
"0.5344027",
"0.5343792",
"0.53401923",
"0.5333836",
"0.53328633",
"0.5319871",
"0.53110504",
"0.5301825",
"0.52990025",
"0.52968794",
"0.529301",
"0.52900356",
"0.5287189",
"0.5280128",
"0.52749616",
"0.5273193",
"0.52687204",
"0.52620167",
"0.52591115",
"0.5250209",
"0.52478385",
"0.52409077",
"0.52391785",
"0.52370673",
"0.52360207",
"0.52335095",
"0.5220873",
"0.52206075",
"0.5212338",
"0.5209646",
"0.52068794"
] | 0.6979432 | 3 |
Adds the value of timesThrown counter and creates the text from it, which can be viewed on screen. | public String writeTimesThrown() {
timesThrown++;
String text = ("Times thrown: " + timesThrown + "/3");
return text;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void display(int counterMessage) {\n TextView textView = (TextView) findViewById(R.id.pointsValue);\n textView.setText(\"\" + counterMessage);\n }",
"public String throwDice() {\n if (timesThrown < 3) {\n for (Die die : dice) {\n if (timesThrown == 0) {\n die.setChosen(false);\n }\n if (die.getChosen() == false) {\n int random = (int) (Math.random() * 6 + 1);\n die.setValue(random);\n }\n }\n return writeTimesThrown();\n }\n return null;\n }",
"private void updateCountdownText() {\r\n int minutes = (int) (timeLeftInMillis / 1000) / 60;\r\n int seconds = (int) (timeLeftInMillis / 1000) % 60;\r\n\r\n String timeFormatted = String.format(Locale.getDefault(), \"%02d:%02d\", minutes, seconds);\r\n\r\n mTimer.setText(timeFormatted);\r\n }",
"private void updateCountDownText() {\n int minutes = (int)(timeLeftInMillis / 1000) / 60 % 60;\n int seconds = (int)(timeLeftInMillis / 1000) % 60;\n\n String timeFormatted = String.format(Locale.getDefault(),\"%02d:%02d\",minutes,seconds);\n textViewCountDown.setText(timeFormatted);\n\n if (timeLeftInMillis < 10000) {\n textViewCountDown.setTextColor(Color.RED);\n } else {\n textViewCountDown.setTextColor(textColorDefaultCd);\n }\n }",
"public void reportTimes( String filename,\n double tot_secs, \n String str );",
"private String getFormattedTime(int totalElapsedSeconds)\n {\n int minutes = totalElapsedSeconds / 60;\n int seconds = totalElapsedSeconds - (minutes * 60);\n String timerText = String.format(\"%02d\", minutes)\n + \":\" + String.format(\"%02d\", seconds);\n return timerText;\n }",
"private void drawStrings(Graphics g, int wid, int hei) {\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, hei / 20);\n g.setFont(f);\n g.setColor(Color.white);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 - 2, hei / 10 - 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 5, hei / 10 * 3 - 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 - 2, hei / 2 - 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 - 2, hei / 2 + hei / 20 + 3);\n g.setColor(Color.black);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 + 2, hei / 10 + 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 9, hei / 10 * 3 + 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 + 2, hei / 2 + 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 + 2, hei / 2 + hei / 20 + 7);\n g.setColor(Color.red);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20, hei / 10);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 7, hei / 10 * 3);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20, hei / 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63, hei / 2 + hei / 20 + 5);\n }",
"protected void drawCookTime(KilnRecipe recipe, MatrixStack matrixStack) {\n int cookTime = recipe.getCookTime();\n if (cookTime > 0) {\n int cookTimeSeconds = cookTime / 20;\n TranslationTextComponent timeString = new TranslationTextComponent(\"gui.jei.category.smelting.time.seconds\", cookTimeSeconds);\n Minecraft minecraft = Minecraft.getInstance();\n FontRenderer fontRenderer = minecraft.fontRenderer;\n int stringWidth = fontRenderer.getStringPropertyWidth(timeString);\n fontRenderer.func_243248_b(matrixStack, timeString, (this.background.getWidth() - stringWidth), 45, 0xFF808080);\n }\n }",
"public String render()\n {\n if(getHungerCountdown() <= 0 && getHungerCountdown() > -5){\n return \"s\";\n }\n else if (getHungerCountdown() > 0){\n return \"S\";\n }\n else{\n return null;\n }\n }",
"private void countTime()\n {\n time--;\n showTime();\n if (time == 0)\n {\n showEndMessage();\n Greenfoot.stop();\n }\n }",
"private static String createDueTime(final int seconds) {\n return String.format(\n Locale.getDefault(), \"_$%010d$_\",\n System.currentTimeMillis() / 1000 + seconds\n );\n }",
"public void increaseEntered() {\n numTimesEntered++;\n }",
"private void createTimeLabel(WritableSheet sheet, int number)\n throws WriteException {\n WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10);\n // Define the cell format\n times = new WritableCellFormat(times10pt);\n // Lets automatically wrap the cells\n times.setWrap(true);\n\n // create create a bold font with unterlines\n WritableFont times10ptBoldUnderline = new WritableFont(WritableFont.TIMES, 10, WritableFont.BOLD, false,\n UnderlineStyle.SINGLE);\n timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\n // Lets automatically wrap the cells\n timesBoldUnderline.setWrap(true);\n\n CellView cv = new CellView();\n cv.setFormat(times);\n cv.setFormat(timesBoldUnderline);\n cv.setAutosize(true);\n\n // Write a few headers\n addCaption(sheet, 0, 0, \"File\");\n for (int index = 0; index < number; index++) {\n if (number == 1) {\n addCaption(sheet, index + 1, 0, \"Time\");\n } else {\n addCaption(sheet, index + 1, 0, \"Time \" + index);\n }\n }\n\n }",
"@Override\n public void onTick(long leftTimeInMilliseconds) {\n long seconds = leftTimeInMilliseconds / 1000;\n if(counter == 15){\n pgBarCountDown.setProgress(100);\n }\n else {\n pgBarCountDown.setProgress(counter * 6);\n }\n\n tv_timer_text.setText(counter+\" \" +\"Sec\");\n // format the textview to show the easily readable format\n counter++;\n\n }",
"public PrintText(String c, int t) {\n ToPrint = c;\n times = t;\n }",
"private void startExer() {\n if (iter % 2 == 0) {\n mTimeLeftInMillis = 30000;\n updateCountDownText();\n } else {\n mTimeLeftInMillis = retTime(recRig.get(ref)) * Reps;\n updateCountDownText();\n }\n updateCountDownText();\n mCountDownTimer = new CountDownTimer(mTimeLeftInMillis, 1000) {\n\n\n @Override\n public void onTick(long millisUntilFinished) {\n //Toast.makeText(GenWorkoutActivity.this, mTimeLeftInMillis+\"\", Toast.LENGTH_SHORT).show();\n updateCountDownText();\n if (iter % 2 == 0) {\n\n Exercise.setText(\"REST\");\n SetsLeft.setText(\"\");\n rest = false;\n } else {\n\n Exercise.setText(recExer.get(ref));\n SetsLeft.setText((ref + 1) + \" out of \" + totalSet);\n }\n\n mTimeLeftInMillis = millisUntilFinished;\n updateCountDownText();\n }\n\n @Override\n public void onFinish() {\n updateCountDownText();\n iter++;\n if (iter % 2 == 0) {\n Exercise.setText(\"REST\");\n SetsLeft.setText(\"\");\n //rest = false;\n startExer();\n } else if (ref < totalSet - 1 && iter % 2 == 1) {\n ref++;\n mTimeLeftInMillis = retTime(recRig.get(ref)) * Reps;\n rest = true;\n startExer();\n }\n if (iter == (recExer.size() * Sets)) {\n //Toast.makeText(GenWorkoutActivity.this, workName.length + \" \"+ iter, Toast.LENGTH_SHORT).show();\n //Intent intent = new Intent(GenWorkoutActivity.this, ExportActivity.class);\n /*\n intent.putExtra(\"S\", Sets);\n intent.putExtra(\"R\", Reps);\n intent.putExtra(\"aW\", workName);\n intent.putExtra(\"aR\", workRig);\n */\n /*\n Toast.makeText(GenWorkoutActivity.this, \"\" + Sets, Toast.LENGTH_SHORT).show();\n Toast.makeText(GenWorkoutActivity.this, \"\" + Reps, Toast.LENGTH_SHORT).show();\n Toast.makeText(GenWorkoutActivity.this, \"\" + workName.length, Toast.LENGTH_SHORT).show();\n Toast.makeText(GenWorkoutActivity.this, \"\" + workRig.length, Toast.LENGTH_SHORT).show();\n //finish();\n //startActivity(intent);\n */\n //export();\n }\n }\n }.start();\n\n\n\n //SetsLeft.setText(\"\");\n //Exercise.setText(\"REST\");\n /*\n getmCountDownTimerRest = new CountDownTimer(3000, 1000) {\n @Override\n public void onTick(long millisUntilFinished) {\n mTimeLeftInMillis = millisUntilFinished;\n updateCountDownText();\n }\n\n @Override\n public void onFinish() {\n\n }\n }.start();\n */\n\n\n }",
"private void showTime()\n {\n showText(\"Time: \" + time, 700, 25);\n }",
"@FXML\r\n\t void countDownMessage() throws InterruptedException {\n\t\t \tdisplayMessage.setText(\"3\"); \r\n\t\t \ttext = displayMessage.getText();\r\n\t\t timeSeconds = Integer.parseInt(text);\r\n\t\t \r\n\t\t Timer clock = new Timer();\r\n\t\t clock.scheduleAtFixedRate(new TimerTask() {\r\n\t\t public void run() {\r\n\t\t if(timeSeconds >= 0)\r\n\t\t {\r\n\t\t \tdisplayMessage.setText(Integer.toString(timeSeconds));\r\n\t\t timeSeconds--; \r\n\t\t }\r\n\t\t else {\r\n\t\t clock.cancel();\r\n\t\t displayMessage.setText(\"GO!\");\r\n\t\t try {\r\n\t\t\t\t\t\t\t\tcountDown();\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t \r\n\t\t //do something here after says GO!\r\n\t\t wordCount.setVisible(true);\r\n\t\t wordMax.setVisible(true);\r\n\t\t slash.setVisible(true);\r\n\t\t counterBox.setVisible(true);\r\n\t\t }\r\n\t\t }\r\n\t\t }, 1000,1000);\r\n }",
"protected String elapsedTimeAsString(long runTime) {\n return NumberFormat.getInstance().format((double) runTime / 1000);\n }",
"@Override\r\n\tpublic void stepHasBeenTaken(int steps) {\n\t\tTextView currLoc = (TextView) findViewById(R.id.stepsCount);\r\n\t\tcurrLoc.setText(\"\"+steps);\r\n\t}",
"private void displayCount() {\n\t\tlabel.setText(String.format(\"%2d\", game.getCount()));\n\t}",
"@Action\n public void addWrappedText() {\n if (Math.random() < .33) {\n addWrappedTextEndChar();\n } else if (Math.random() < .5) {\n addWrappedTextRandom();\n } else {\n addWrappedTextSmall();\n }\n }",
"private void createFinalTimeLabel(WritableSheet sheet)\n throws WriteException {\n WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10);\n // Define the cell format\n times = new WritableCellFormat(times10pt);\n // Lets automatically wrap the cells\n times.setWrap(true);\n\n // create create a bold font with unterlines\n WritableFont times10ptBoldUnderline = new WritableFont(WritableFont.TIMES, 10, WritableFont.BOLD, false,\n UnderlineStyle.SINGLE);\n timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\n // Lets automatically wrap the cells\n timesBoldUnderline.setWrap(true);\n\n CellView cv = new CellView();\n cv.setFormat(times);\n cv.setFormat(timesBoldUnderline);\n cv.setAutosize(true);\n\n // Write a few headers\n addCaption(sheet, 0, 0, \"File\");\n addCaption(sheet, 1, 0, \"Time\");\n\n }",
"@FXML\r\n\t void countDownMessage2() throws InterruptedException {\n\t\t \tdisplayMessage.setText(\"3\"); \r\n\t\t \ttext = displayMessage.getText();\r\n\t\t timeSeconds = Integer.parseInt(text);\r\n\t\t \r\n\t\t Timer clock = new Timer();\r\n\t\t clock.scheduleAtFixedRate(new TimerTask() {\r\n\t\t public void run() {\r\n\t\t if(timeSeconds >= 0)\r\n\t\t {\r\n\t\t \tdisplayMessage.setText(Integer.toString(timeSeconds));\r\n\t\t timeSeconds--; \r\n\t\t }\r\n\t\t else {\r\n\t\t clock.cancel();\r\n\t\t displayMessage.setText(\"DupMe!\");\r\n\t\t try {\r\n\t\t\t\t\t\t\t\tcountDown2();\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t \r\n\t\t //do something here after says GO!\r\n\t\t wordCount.setVisible(true);\r\n\t\t wordMax.setVisible(true);\r\n\t\t slash.setVisible(true);\r\n\t\t counterBox.setVisible(true);\r\n\t\t yourPattern.setVisible(true);\r\n\t\t lastPattern.setVisible(true);\r\n\t\t }\r\n\t\t }\r\n\t\t }, 1000,1000);\r\n }",
"private void createTimeLabel(WritableSheet sheet)\n throws WriteException {\n WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10);\n // Define the cell format\n times = new WritableCellFormat(times10pt);\n // Lets automatically wrap the cells\n times.setWrap(true);\n\n // create create a bold font with unterlines\n WritableFont times10ptBoldUnderline = new WritableFont(WritableFont.TIMES, 10, WritableFont.BOLD, false,\n UnderlineStyle.SINGLE);\n timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\n // Lets automatically wrap the cells\n timesBoldUnderline.setWrap(true);\n\n CellView cv = new CellView();\n cv.setFormat(times);\n cv.setFormat(timesBoldUnderline);\n cv.setAutosize(true);\n\n // Write a few headers\n addCaption(sheet, 0, 0, \"File\");\n addCaption(sheet, 1, 0, \"Time\");\n\n }",
"private void plusTime(){\n\n if(totalTimeCountInMilliseconds < 10000)\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(totalTimeCountInMilliseconds + 3000, 50);// give extra 3000 milliseconds if they get the answer right\n }\n else\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(10000, 50);// set the timer to 10000 millisec if totalTimeCountInMilliseconds + 3000 > 10000\n }\n\n countDownTimer.start();\n\n\n }",
"void random(){\r\n Random dice = new Random ();\r\n int number;\r\n \r\n for (int counter=1; counter<=10;counter++);\r\n number = 10000+dice.nextInt(100000);\r\n \r\n String hasil = TF3.getText();\r\n isi4.setText(number + \" \");\r\n }",
"public static void movesMessage(int moveCount){\n if (moveCount == 50) {\n System.out.println(\"Warning: You have made 50 moves, you have 50 remaining before the maze exit closes\");\n } else if (moveCount == 75) {\n System.out.println(\"Alert! You have made 75 moves, you only have 25 moves left to escape.\");\n } else if (moveCount == 90) {\n System.out.println(\"DANGER! You have made 90 moves, you only have 10 moves left to escape!!\");\n } else if (moveCount == 100) {\n System.out.println(\"Oh no! You took too long to escape, and now the maze exit is closed FOREVER >:[\");\n }\n }",
"@Override\npublic String toString() {\nreturn \"\" + counter;\n}",
"public static void EmployeeHoursWorked() {\r\n\t\t\r\n\t\tJLabel e5 = new JLabel(\"Employee's Hours Worked:\");\r\n\t\te5.setFont(f);\r\n\t\tGUI1Panel.add(e5);\r\n\t\tGUI1Panel.add(employeeHoursWorked);\r\n\t\te5.setHorizontalAlignment(JLabel.LEFT);\r\n\t\tGUI1Panel.add(Box.createHorizontalStrut(5));\r\n\t}",
"private void displaySitesCount() {\n TextView titleText = findViewById(R.id.bathing_title);\n CharSequence bathText = sitesCount + \" \" + getResources().getString(R.string.bathing_sites);\n titleText.setText(bathText);\n }",
"public void addText(String text){\n try{\n FXMLLoader battleLogEntryLoader = new FXMLLoader(getClass().getClassLoader().getResource(\"FXML/BattleLogEntry.fxml\"));\n Label battleLogEntryLabel = battleLogEntryLoader.load();\n battleLogEntryLabel.setText(text);\n if(count % 2 == 0){\n battleLogEntryLabel.setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, CornerRadii.EMPTY, Insets.EMPTY)));\n } else{\n battleLogEntryLabel.setBackground(new Background(new BackgroundFill(Color.TRANSPARENT, CornerRadii.EMPTY, Insets.EMPTY)));\n }\n textSpace.getChildren().add(battleLogEntryLabel);\n count++;\n } catch(Exception e) {\n\n }\n }",
"public void paint (Graphics g) {\n text.setText(perfweb.genReport());\n super.paint(g);\n }",
"public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}",
"public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}",
"public void paint (Graphics g) {\n text.setText(perfweb.genReport());\n super.paint(g);\n }",
"@Override\n public void updateTimer(int time) {\n if (isEnglish) {\n String temp = TIME_LEFT + time;\n painterTextViewTime.setText(temp);\n } else {\n String temp = TIME_LEFT_CHINESE + time;\n painterTextViewTime.setText(temp);\n }\n }",
"public void paint(Graphics g)\n\t{\n\t\tint xpos = 20, ypos = 80;\n\t\t\n\t\tfor(int accumulator=1; accumulator <= counterArr.length; accumulator++)\n\t\t{\n\t\t\tg.drawString(accumulator + \" appeared on the dice \" + counterArr[accumulator-1] + \" times.\", xpos, ypos);\n\t\t\typos+=30;\n\t\t}\n\t}",
"@Override\n public void performTrick()\n {\n Random random = new Random();\n int rnd = random.nextInt(2);\n if(rnd == 0)\n {\n setPerformText(\"rolls in the mud\");\n }\n else\n {\n setPerformText(\"runs in circles\");\n }\n System.out.println(getPerformText());\n }",
"public static void displayMsg() {\n\t\tSystem.out.println(\"Welcome Visit Count \"+count++);\n\t}",
"public void setScoreText() {\n \tif(numBalls>0 && this.body.size()>0) {\n double x=this.body.get(0).getCenterX()-5;\n \tdouble y=this.body.get(0).getCenterY()+2;\n \t\n \tT.setX(x);\n \tT.setY(y);\n \tT.setText(String.valueOf(numBalls));\n \t}\n \t\n \t\n }",
"public void fillText(View view){\n if(running==true){\n\n\n latestOp=false;\n for(int i = 0; i<9; i++)\n if(i==win&&idOfViews[i]==view.getId()) {\n score++;\n sec=sec+3;\n latestOp=true;\n }\n\n //Defining the score\n total++;\n scoret.setText(\" \"+score+\" /\"+total);\n\n //Setting the message about the latest one.\n resultT.setText(\"Missed\");\n if(latestOp==true)\n resultT.setText(\"Correct!\");\n\n\n //Calling a new screen\n newScreen();\n }\n\n\n }",
"public void drawNoticeText(int h){\r\n Font font=new Font(\"SanSerif\",Font.BOLD,15); \r\n g.setColor(Color.red);\r\n g.setFont(font);\r\n String t=\"NOTE: All players cannot be on the same team.\";\r\n g.drawString(t,50,265);\r\n t=\"Use WASD to move.\";\r\n g.drawString(t,50,48); \r\n t=\"Press SPACE on the Start Button to Begin!\";\r\n g.drawString(t,120,h-5); \r\n \r\n font=new Font(\"SanSerif\",Font.BOLD,40); \r\n g.setColor(Color.black);\r\n g.setFont(font); \r\n t=\"Settings\";\r\n g.drawString(t,330,40); \r\n }",
"private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}",
"@Override\n\tpublic void start() {\n\t\tplaySound(audio.newSoundEffect(\"sfx\" + File.separator + \"crash.ogg\"));\n\n\t\tdeaths = (int) (Math.random() * 500) + 300;\n\t\ttimer = 0;\n\n\t\ttextBox = new lib.TextBox(64, 96, window.width() - 128,\n\t\t\t\twindow.height() - 96, 32);\n\t\ttextBox.addText(String.valueOf(deaths) + \" people died in the crash.\");\n\t\ttextBox.delay(0.4);\n\t\ttextBox.addText(\"British Bearways is facing heavy legal pressure from the family and loved-ones of the dead and an investigation into the incident will be performed.\");\n\t\ttextBox.newline();\n\t\ttextBox.delay(0.4);\n\t\ttextBox.addText(\"The inquery into your incompetance will lead to humanity discovering your true bear nature.\");\n\t\ttextBox.newline();\n\t\ttextBox.delay(0.4);\n\t\ttextBox.addText(\"Your guilt for the deaths you caused, and your failure to pass as a human, will gnaw at you and you will have to revert to your drinking problem to attempt to cope.\");\n\t\ttextBox.newline();\n\t\ttextBox.newline();\n\t\ttextBox.delay(0.4);\n\t\ttextBox.addText(\"With no income, there is no way your family can survive the fast-approaching winter months.\");\n\t\ttextBox.newline();\n\t\ttextBox.newline();\n\t\ttextBox.delay(0.4);\n\t\ttextBox.newline();\n\t\ttextBox.addText(\"Game Over.\");\n\t\ttextBox.delay(0.5);\n\t\ttextBox.addText(\"You Lose.\");\n\n\t\tsaveScore();\n\t}",
"public int getThrow()\n{\n // Return the total number of times the dice was thrown.\n return throwCount;\n}",
"public void timePassed() {\r\n }",
"public void timePassed() {\r\n }",
"@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }",
"private void drawScore() {\n\t\tString score = myWorld.getScore() + \"\";\n\n\t\t// Draw shadow first\n\t\tAssetLoader.shadow.draw(batcher, \"\" + myWorld.getScore(), (136 / 2)\n\t\t\t\t- (3 * score.length()), 12);\n\t\t// Draw text\n\t\tAssetLoader.font.draw(batcher, \"\" + myWorld.getScore(), (136 / 2)\n\t\t\t\t- (3 * score.length() - 1), 11);\n\n\t}",
"public JsonModelRunInformationBuilder populateDiseaseOccurrencesText(DiseaseOccurrenceStatistics statistics) {\n String text = \"none\";\n if (statistics.getOccurrenceCount() > 0) {\n String dateText = getDiseaseOccurrencesDateText(\n statistics.getMinimumOccurrenceDate(), statistics.getMaximumOccurrenceDate());\n String modelEligibleOccurrenceCount = getModelEligibilityText(statistics.getModelEligibleOccurrenceCount());\n text = String.format(\"total %d (of which %s), occurring %s\",\n statistics.getOccurrenceCount(), modelEligibleOccurrenceCount, dateText);\n }\n information.setDiseaseOccurrencesText(text);\n return this;\n }",
"public void drawTimer(Graphics art)\n\t{\n\t\tcounter++;\n\t\tif(counter % 60 == 0)\n\t\t{\n\t\t\tseconds++;\n\t\t}\n\t\tart.drawString(\"Time =\"+seconds, 50, 120);\n\t}",
"public void updateTimer( int secondsLeft ) {\n int minutes = secondsLeft / 60;\n int seconds = secondsLeft - (minutes * 60);\n\n String secondsString = Integer.toString(seconds);\n\n if(seconds <= 9) {\n secondsString = \"0\" + secondsString;\n }\n\n timerTextView.setText(Integer.toString(minutes) + \":\" + secondsString);\n// getRandomQuestion();\n }",
"long getMisses();",
"private void gameOverDialog() {\n Toast makeText;\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.game_over), Toast.LENGTH_LONG);\n makeText.show();\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.final_score) + score, Toast.LENGTH_LONG);\n makeText.show();\n }",
"public String toString() { return this.myText + \" \" + this.myCount;}",
"@Override\n public String getText(SwccgGame game) {\n return \"Calculating sabacc total\";\n }",
"public static String indent(int times) {\n\t\treturn times > 0 ? String.format(\"%\" + times * 2 + \"s\", \" \") : \"\";\n\t}",
"@Override\n public void run() {\n textTimer.setText(String.valueOf(currentTime));\n }",
"private void statButtonClicked()\n {\n lblSTRValue.setText(dice.statRoll() + \"\");\n lblCONValue.setText(dice.statRoll() + \"\");\n lblDEXValue.setText(dice.statRoll() + \"\");\n lblAGIValue.setText(dice.statRoll() + \"\");\n lblINTValue.setText(dice.statRoll() + \"\");\n lblWISValue.setText(dice.statRoll() + \"\");\n lblCHAValue.setText(dice.statRoll() + \"\");\n lblPERValue.setText(dice.statRoll() + \"\");\n displayPowers();\n }",
"private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.minute_text_view);\n quantityTextView.setText(\"\" + number);\n\n }",
"private void giveScords(){\n \t//bingo 題數, seconds花費秒數\n \tint totalSec = (int)seconds;\n \t\n \tif(correct){\n \t\tif(totalSec<=5){\n \t\t\tuserPoints = userPoints + 150;\n \t\t}else if(totalSec<=10){\n \t\t\tuserPoints = userPoints + 125;\n \t\t}else if(totalSec<=15){\n \t\t\tuserPoints = userPoints + 100;\n \t\t}else if(totalSec<=20){\n \t\t\tuserPoints = userPoints + 80;\n \t\t}\n \t}\n }",
"public void timePassed() {\r\n\r\n }",
"private void updateCounterView(String text) {\n final String txt = text;\n main.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if(txt!=null) {\n pointsLeftView.setText(txt);\n } else {\n pointsLeftView.setText(Integer.toString(counter));\n }\n }\n });\n }",
"protected void paintStoneCount(Graphics2D g2)\n {\n g2.setColor(theme.getStoneCountColor());\n g2.setFont(PIT_FONT);\n\n String str = String.valueOf(stoneCount);\n FontMetrics fontMetrics = g2.getFontMetrics();\n Rectangle rect = getBounds();\n Rectangle2D stringRect = fontMetrics.getStringBounds(str, g2);\n int x = (rect.width - (int) stringRect.getWidth()) / 2;\n int y = (rect.height - (int) stringRect.getHeight()) / 2 + fontMetrics.getAscent();\n g2.drawString(str, x, y);\n }",
"private void updateStats()\n\t{\n\n\t\tint[] temp = simulation.getStatValue();\n\t\tfor(int i = 0; i < temp.length; i++)\n\t\t{\n\t\t\tthis.statsValues[i].setText(Integer.toString(temp[i]));\n\t\t}\n\t\t\n\t\tint[] temp2 = simulation.getNumberInEachLine();\n\t\tfor(int i = 0; i < temp2.length; i++)\n\t\t{\n\t\t\tthis.eatValues[i].setText(Integer.toString(temp2[i]));\n\t\t}\n\t}",
"public void timePassed() { }",
"private void printExceptionCountBreakdown() {\n\t SampleHandler.printMessage(\"\\nDestructive wrapping instances break down by project:\");\n\t for (String projectName : projectDestructiveWrappingInstancesMap.keySet()) {\n\t\t SampleHandler.printMessage(String.format(\"%s project: %d destructive wrapping instances flagged\",\n\t\t\t\t projectName, projectDestructiveWrappingInstancesMap.get(projectName).size()));\n\t }\n }",
"public String getTotalTime() {\r\n if (recipe != null) {\r\n return readableTime(recipe.getCookTime() + recipe.getPrepTime());\r\n } else {\r\n return \"\";\r\n }\r\n }",
"void hp_counter()\n {\n T=new Timer();\n T.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //decrement the HP by delay of a second\n if(hp_value>0) {\n redball.setText(hp_value + \"\");\n hp_value--;\n }\n //you have lost and the game will reset\n else if(hp_value<=0)\n {\n //Here's a funny toast for all Sheldon's fans\n toast.setView(lost);\n toast.show();\n //\n resetValues();\n }\n }\n });\n }\n }, 1000, 1000);\n\n }",
"public void timer()\n{\n textSize(13);\n controlP5.getController(\"time\").setValue(runtimes);\n line(400, 748, 1192, 748);\n fill(255,0,0);\n for (int i =0; i<25; i++)\n {\n line(400+i*33, 743, 400+i*33, 753);\n text(i, 395 +i*33, 768);\n }\n if ((runtimes < 1 || runtimes > 28800) && s == true)\n {\n //origint = 0;\n runtimes = 1;\n //pausets = 0;\n runtimep = 0;\n } else if (runtimes > 0 && runtimes < 28800 && s == true)\n {\n runtimep = runtimes;\n runtimes = runtimes + speed;\n }\n timeh= runtimes/1200;\n timem= (runtimes%1200)/20;\n}",
"private void setTimeText(int minutes) {\n TextView textTime = (TextView) getView().findViewById(R.id.text_limit);\n setTimeText(minutes, textTime);\n }",
"@Override\n\tpublic Seconds addTime() {\n\t\treturn new HTLSeconds();\n\n\t}",
"private void drawScoreText(Canvas canvas) {\n paint.setTextSize(bodyTextSize);\n paint.setTextAlign(Paint.Align.CENTER);\n\n int bodyWidthHighScore = (int) (paint.measureText(\"\" + game.highScore));\n int bodyWidthScore = (int) (paint.measureText(\"\" + game.score));\n\n int textWidthHighScore = Math.max(titleWidthHighScore, bodyWidthHighScore) + textPaddingSize * 2;\n int textWidthScore = Math.max(titleWidthScore, bodyWidthScore) + textPaddingSize * 2;\n\n int textMiddleHighScore = textWidthHighScore / 2;\n int textMiddleScore = textWidthScore / 2;\n\n int eXHighScore = endingX;\n int sXHighScore = eXHighScore - textWidthHighScore;\n\n int eXScore = sXHighScore - textPaddingSize;\n int sXScore = eXScore - textWidthScore;\n\n //Outputting high-scores box\n backgroundRectangle.setBounds(sXHighScore, sYAll, eXHighScore, eYAll);\n backgroundRectangle.draw(canvas);\n paint.setTextSize(titleTextSize);\n paint.setColor(getResources().getColor(R.color.text_brown));\n canvas.drawText(getResources().getString(R.string.high_score), sXHighScore + textMiddleHighScore, titleStartYAll, paint);\n paint.setTextSize(bodyTextSize);\n paint.setColor(getResources().getColor(R.color.text_white));\n canvas.drawText(String.valueOf(game.highScore), sXHighScore + textMiddleHighScore, bodyStartYAll, paint);\n\n\n //Outputting scores box\n backgroundRectangle.setBounds(sXScore, sYAll, eXScore, eYAll);\n backgroundRectangle.draw(canvas);\n paint.setTextSize(titleTextSize);\n paint.setColor(getResources().getColor(R.color.text_brown));\n canvas.drawText(getResources().getString(R.string.score), sXScore + textMiddleScore, titleStartYAll, paint);\n paint.setTextSize(bodyTextSize);\n paint.setColor(getResources().getColor(R.color.text_white));\n canvas.drawText(String.valueOf(game.score), sXScore + textMiddleScore, bodyStartYAll, paint);\n }",
"private void appendCountdown(Notification.Builder builder, String originalText) {\n long countdown = InCallPresenter.getInstance().getAutoDeclineCountdown();\n if (countdown < 0) {\n return;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(originalText).append(\" (\").append(countdown).append(\")\");\n builder.setContentText(sb.toString());\n }",
"public TimerDisplay()\n {\n timeElapsed = 0;\n }",
"public void spawnTimeRender(Renderer screen) {\r\n\t\tif (respawns == 0) font.render(\"YOU LOSE\", this.getX()-((8*8)/2), this.getY(), true, 0xffffffff, screen, true);\r\n\t\telse font.render(\"Respawn: \"+respawnRender+\"...\", this.getX()-((13*8)/2), this.getY(), true, 0xffffffff, screen, true);\r\n\t}",
"public void HowMuchTimeLeft() {\n\t\tTimeLeft = Count.HowMuchTimeLeft();\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n \t\tif (index == 4) \n \t\t\tcurrentTimes[4] = \" \";\n \t\telse {\n \t\t\tfor (int a = index + 1; a <= 4; a++)\n {\n \t\t\t\tcurrentTimes[a-1] = currentTimes[a];\n }\n \t\t\tcurrentTimes[4] = \" \";\n \t\t}\n \n \n timeCount--;\n setTimes();\n \n \n }",
"private void setTimeText(int minutes, TextView textTime) {\n String timeString = String.format(\"%d minutes\", minutes +\n convertProgressToMeters(PROGRESS_MIN));\n textTime.setText(timeString);\n }",
"private void updateTime()\n {\n time++;\n this.timeTextField.setText(\"\" + time);\n }",
"public void timePassed() {\n }",
"public void timePassed() {\n }",
"private void showEndMessage()\n {\n showText(\"Time is up - you win!\", 390, 150);\n showText(\"Your final score: \" + healthLevel + \" points\", 390, 170);\n }",
"private void setStatTextViews() {\n TextView numLives = findViewById(R.id.lives);\n numLives.setText(String.valueOf(player.getLives()));\n\n TextView multiplier = findViewById(R.id.currMultiply);\n multiplier.setText(String.valueOf(player.getMultiplier()));\n\n TextView totalPoint = findViewById(R.id.currScore);\n totalPoint.setText(String.valueOf(player.getPoints()));\n }",
"public void throwDice()\n {\n System.out.println( name + \"'s Turn \" + (turnNumber + 1) + \" Results for Round \" + round + \": \");\n turnScores[turnNumber] = 0;\n System.out.print(\"Dice Throws: \");\n for (int diceNumber = 0; diceNumber < diceThrows[turnNumber].length; diceNumber++)\n {\n int diceThrow = r.nextInt(6) + 1;\n diceThrows[turnNumber][diceNumber] = diceThrow;\n turnScores[turnNumber] += diceThrow;\n totalScore += diceThrow;\n System.out.print(diceThrows[turnNumber][diceNumber] + \" \");\n }\n System.out.print(\" Score This Turn: \" + turnScores[turnNumber] + \" \");\n System.out.println(\" \" + name + \"'s Running Total Score: \" + totalScore + \"\\n\");\n \n turnNumber++;\n }",
"private String msg3() {\n return(\"[\" + (System.currentTimeMillis() - system_start_time) + \"] \");\n }",
"public void screenText(Canvas canvas){\n Paint paint = new Paint();\n paint.setColor(Color.WHITE);\n paint.setTextSize(30);\n paint.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.BOLD));\n canvas.drawText(\"Score: \"+ (newPlayer.getScore()), 10, height-10, paint);\n canvas.drawText(\"Best Score: \"+ getRecord(), width-215, height-10, paint);\n canvas.drawText(\"Level: \" + level, 10, height-550, paint);\n\n //If the game is reset will run a seperate screen text\n if (!newPlayer.getRunning()&&gamenew&&reset){\n Paint newPaint = new Paint();\n newPaint.setTextSize(40);\n newPaint.setColor(Color.WHITE);\n newPaint.setTypeface(Typeface.create(Typeface.DEFAULT,Typeface.BOLD));\n canvas.drawText(\"Click to start!\", width/2-50, height/2, newPaint);\n\n newPaint.setTextSize(20);\n canvas.drawText(\"Press and hold for the ship to hover up\", width/2-50,height/2+20,newPaint);\n canvas.drawText(\"Release to let the ship go down!\", width/2-50,height/2+40,newPaint);\n }\n\n }",
"private void displayQuantity(int numOfCoffeee) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + numOfCoffeee);\n }",
"public static String formatTextCount(int count) throws Exception {\n String formattedCount = \"\";\n if (count >= 10000) {\n if (count % 1000 == 0) {\n formattedCount = \"\" + count / 1000 + \"k\";\n } else {\n double temp = ((double) count) / 1000.0;\n formattedCount = \"\" + (Math.round(temp * 100.0) % 100 == 0 ? Math.round(temp) : Math.round(temp * 100.0) / 100.0) + \"k\";\n }\n } else\n formattedCount = \"\" + count;\n return formattedCount;\n }",
"public void countdown(final int picture_num){\n// t1.speak(\"The background has been captured\", TextToSpeech.QUEUE_ADD, null);\n// t1.speak(\"Please step into the camera view and position yourself so that you are visible fully\", TextToSpeech.QUEUE_ADD, null);\n// t1.speak(\"Your front view image will be taken in 3 seconds\", TextToSpeech.QUEUE_ADD, null);\n// while (t1.isSpeaking());\n// t1.speak(\"Your front view has been captured\", TextToSpeech.QUEUE_ADD, null);\n// t1.speak(\"Please turn slowly to your left\", TextToSpeech.QUEUE_ADD, null);\n// t1.speak(\"Your right view image will be taken in 3 seconds\", TextToSpeech.QUEUE_ADD, null);\n// while (t1.isSpeaking());\n// t1.speak(\"Your right view has been captured\", TextToSpeech.QUEUE_ADD, null);\n// t1.speak(\"Please turn slowly to your left\", TextToSpeech.QUEUE_ADD, null);\n// t1.speak(\"Your back view image will be taken in 3 seconds\", TextToSpeech.QUEUE_ADD, null);\n// while (t1.isSpeaking());\n// t1.speak(\"Your back view has been captured\", TextToSpeech.QUEUE_ADD, null);\n// t1.speak(\"Please turn slowly to your left\", TextToSpeech.QUEUE_ADD, null);\n// t1.speak(\"Your left view image will be taken in 3 seconds\", TextToSpeech.QUEUE_ADD, null);\n// while (t1.isSpeaking());\n// t1.speak(\"Your left view has been captured\", TextToSpeech.QUEUE_ADD, null);\n// t1.speak(\"All your images have been captured\", TextToSpeech.QUEUE_ADD, null);\n// t1.speak(\"Please proceed with confirming your images\", TextToSpeech.QUEUE_ADD, null);\n// while (t1.isSpeaking());\n\n t1.speak(\"Please place your phone at a stable angle to the wall\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"Please step aside so that the background is captured\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"The background will be captured in 3 seconds\", TextToSpeech.QUEUE_ADD, null);\n while (t1.isSpeaking());\n\n CountDownTimer cdt = new CountDownTimer(4000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n\n //try disabling the whole voice thing first, move it to new tts activity, then try old method, then try new method\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }\n\n public void onFinish() {\n mCameraView.takePicture();\n //pictures[picture_num] = true;\n //picture_num++;\n\n t1.speak(\"The background has been captured\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"Please step into the camera view and position yourself so that you are visible fully\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"Your front view image will be taken in 3 seconds\", TextToSpeech.QUEUE_ADD, null);\n while (t1.isSpeaking());\n\n //next picture\n\n CountDownTimer cdt = new CountDownTimer(4000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n\n //try disabling the whole voice thing first, move it to new tts activity, then try old method, then try new method\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }\n\n public void onFinish() {\n mCameraView.takePicture();\n //pictures[picture_num] = true;\n //picture_num++;\n\n //next picture\n\n t1.speak(\"Your front view has been captured\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"Please turn slowly to your left\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"Your right view image will be taken in 3 seconds\", TextToSpeech.QUEUE_ADD, null);\n while (t1.isSpeaking());\n\n CountDownTimer cdt = new CountDownTimer(4000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n\n //try disabling the whole voice thing first, move it to new tts activity, then try old method, then try new method\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }\n\n public void onFinish() {\n mCameraView.takePicture();\n //pictures[picture_num] = true;\n //picture_num++;\n\n //next picture\n\n t1.speak(\"Your right view has been captured\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"Please turn slowly to your left\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"Your back view image will be taken in 3 seconds\", TextToSpeech.QUEUE_ADD, null);\n while (t1.isSpeaking());\n\n CountDownTimer cdt = new CountDownTimer(4000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n\n //try disabling the whole voice thing first, move it to new tts activity, then try old method, then try new method\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }\n\n public void onFinish() {\n mCameraView.takePicture();\n //pictures[picture_num] = true;\n //picture_num++;\n\n //next picture\n\n t1.speak(\"Your back view has been captured\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"Please turn slowly to your left\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"Your left view image will be taken in 3 seconds\", TextToSpeech.QUEUE_ADD, null);\n while (t1.isSpeaking());\n\n\n CountDownTimer cdt = new CountDownTimer(4000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n\n //try disabling the whole voice thing first, move it to new tts activity, then try old method, then try new method\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }\n\n public void onFinish() {\n mCameraView.takePicture();\n //pictures[picture_num] = true;\n //picture_num++;\n\n //next picture\n\n t1.speak(\"Your left view has been captured\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"All your images have been captured\", TextToSpeech.QUEUE_ADD, null);\n t1.speak(\"Please proceed with confirming your images\", TextToSpeech.QUEUE_ADD, null);\n while (t1.isSpeaking());\n\n\n }\n };\n cdt.start();\n\n }\n };\n cdt.start();\n\n }\n };\n cdt.start();\n\n\n }\n };\n //cdt.start();\n\n\n }\n };\n cdt.start();\n }",
"private void setAttackText(){\n if (this.attack >= 0){\n pokemonText.setText(\"Ataque: \" + this.attack);\n } else {\n pokemonText.setText(\"\");\n }\n }",
"private void SetTime() {\r\n\t\t timelbl.setText(second/3600+\":\"+((second/60)%60)+\":\"+(second%60));\r\n\t}",
"private String getTextCount(int conut, String name) {\n for (int i = 0; i < conut; i++) {\r\n name = name + \" \";\r\n }\r\n return name;\r\n }",
"private void createTotalTime(BufferedWriter writer) throws IOException {\r\n\t\tMap<String, String> dataMap = data.getTotalTime();\r\n\t\tString parent = \"<div style='width: 260px;background-color: #FFFFFF;box-shadow: 1px 1px 1px #888888;height: 85px;position: absolute;top: 67px;left: 281px;'>\";\r\n\t\tString subChild = \"<label style='position: absolute;margin-top: 5px;'>\";\r\n\t\tString totalTimeLabel = \"<span style='font-weight: bold;color: #000000;padding-left: 8px;font-family: Roboto, sans-serif;'>Total Time</span></label>\";\r\n\t\tString subChild1 = \"<label style='margin-top: 57px;position: absolute;'>\";\r\n\t\tString totatlTime = \"<span style='font-weight: bold;color: #000000;padding-left: 8px;font-family: Roboto, sans-serif;'>\"\r\n\t\t\t\t+ dataMap.get(\"total-time\") + \"</span></label></div>\";\r\n\t\twriter.write(parent + subChild + totalTimeLabel + subChild1\r\n\t\t\t\t+ totatlTime);\r\n\r\n\t\tString startTimePanel = \"<div style='width: 260px;background-color: #00E676;box-shadow: 1px 1px 1px #888888;height: 85px;position: absolute;top: 67px;left: 554px;'>\";\r\n\t\tString labelTime = \"<label style='position: absolute;margin-left: 8px;'>\";\r\n\t\tString startTimeLabel = \"<span style='font-weight: bold;color: gray;padding-top: 3px;font-family: Roboto, sans-serif;'>Start Time</span></label>\";\r\n\t\tString timeContainer = \"<label style='position: absolute;margin-top: 58px;padding-left: 118px;font-weight: bold;color: white;'><span style='font-family: Roboto, sans-serif;font-size:smaller'>\";\r\n\t\tString startTime = dataMap.get(\"start-time\") + \"</span></label></div>\";\r\n\t\twriter.write(startTimePanel + labelTime + startTimeLabel\r\n\t\t\t\t+ timeContainer + startTime);\r\n\r\n\t\tString endTimePanel = \"<div style='width: 260px;background-color: #F44336;box-shadow: 1px 1px 1px #888888;height: 85px;position: absolute;top: 67px;left: 828px;'>\";\r\n\t\tString endlabelTime = \"<label style='position: absolute;margin-left: 8px;'>\";\r\n\t\tString endTimeLabel = \"<span style='font-weight: bold;color: gray;padding-top: 3px;font-family: Roboto, sans-serif;'>End Time</span></label>\";\r\n\t\tString endTimeContainer = \"<label style='position: absolute;margin-top: 58px;padding-left: 118px; font-weight: bold;color: white;'><span style='font-family: Roboto, sans-serif;font-size:smaller'>\";\r\n\t\tString endTime = dataMap.get(\"end-time\") + \"</span></label></div>\";\r\n\t\twriter.write(endTimePanel + endlabelTime + endTimeLabel\r\n\t\t\t\t+ endTimeContainer + endTime);\r\n\r\n\t}",
"@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\tRandNum = (int)(Math.random()*100);\r\n\t\t\tresult.setText(Integer.toString(RandNum));\r\n\t\t}",
"public void updateTimer(int timeElapsed){\n mTimerText.setText(\n String.format(\"TIME LEFT: %ds\",10 - timeElapsed));\n mTimerProgressBar.setProgress((int)((timeElapsed/10.0)*100.0));\n }",
"public String toString(){\r\n return (\"The word '\" + wordSearched + \"' appears: \" + occurrences + \", time(s) in the file.\"); \r\n }",
"public static void addScore(int _value){\n scoreCount += _value;\n scoreHUD.setText(String.format(Locale.getDefault(),\"%06d\", scoreCount));\n }",
"private void calculateHeroStats() {\n int[] mods = calculateMods(heroRoll.hero, 40, skillOn);\n makePopupStat(hp, heroRoll, heroRoll.hero.HP, mods[0], getResources().getString(R.string.hp));\n makePopupStat(atk, heroRoll, heroRoll.hero.atk, mods[1], getResources().getString(R.string.atk));\n makePopupStat(spd, heroRoll, heroRoll.hero.speed, mods[2], getResources().getString(R.string.spd));\n makePopupStat(def, heroRoll, heroRoll.hero.def, mods[3], getResources().getString(R.string.def));\n makePopupStat(res, heroRoll, heroRoll.hero.res, mods[4], getResources().getString(R.string.res));\n\n int totalMods = mods[0] + mods[1] + mods[2] + mods[3] + mods[4];\n String bstText = heroRoll.getBST(getBaseContext()) < 0 ? \"?\" : heroRoll.getBST(getBaseContext()) - totalMods + \"\";\n bst.setText(getResources().getString(R.string.bst) + \" \" + bstText);\n bst.setTextColor(getResources().getColor(R.color.colorPrimary));\n }"
] | [
"0.5708882",
"0.56077737",
"0.5534777",
"0.5483006",
"0.54397905",
"0.5387658",
"0.5298858",
"0.5298291",
"0.5281597",
"0.52112305",
"0.52006805",
"0.5161729",
"0.5139134",
"0.5135457",
"0.5115179",
"0.5110732",
"0.5103604",
"0.5068427",
"0.50536895",
"0.50473535",
"0.50369",
"0.5017688",
"0.5015486",
"0.49938682",
"0.4981476",
"0.49755922",
"0.49667025",
"0.49650586",
"0.49386042",
"0.49224705",
"0.49143985",
"0.4907177",
"0.49012557",
"0.48947147",
"0.48945993",
"0.48806217",
"0.48785752",
"0.48754236",
"0.4875059",
"0.4874901",
"0.4874708",
"0.48723027",
"0.48687515",
"0.48578182",
"0.48525545",
"0.48477846",
"0.48455486",
"0.48455486",
"0.4843796",
"0.4833574",
"0.48325932",
"0.48320717",
"0.48298243",
"0.4827108",
"0.4823797",
"0.48226848",
"0.48203734",
"0.48162723",
"0.48115918",
"0.48024142",
"0.4797635",
"0.4797546",
"0.47952184",
"0.47943297",
"0.4789722",
"0.4780699",
"0.47800735",
"0.4772822",
"0.47716677",
"0.47702056",
"0.47580972",
"0.47572145",
"0.47532117",
"0.4752527",
"0.4750503",
"0.47497588",
"0.47466916",
"0.47454202",
"0.4741832",
"0.47360373",
"0.4735782",
"0.47351643",
"0.47351643",
"0.47319278",
"0.47301066",
"0.47211713",
"0.47139904",
"0.4712984",
"0.4704179",
"0.4699426",
"0.46891835",
"0.46796307",
"0.46794564",
"0.46778238",
"0.46747494",
"0.46627",
"0.46583387",
"0.46521926",
"0.46517038",
"0.46493274"
] | 0.8058063 | 0 |
Spring Data JPA repository for the Publisher entity. | @SuppressWarnings("unused")
@Repository
public interface PublisherRepository extends JpaRepository<Publisher, Long> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PublisherRepository extends CrudRepository <Publisher, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface PublisherRepository extends MongoRepository<Publisher, String> {\n\n}",
"@Repository\npublic interface BookRepository extends JpaRepository<Book, Long> {\n\n}",
"public interface DocumentParameterRepository extends JpaRepository<DocumentParameterEntity, Long> {\n}",
"PublisherDao getPublisherDao();",
"@Repository\npublic interface ProductRepository extends JpaRepository<Product, Long> {\n\n}",
"public interface MediaTypeRepository extends JpaRepository<MediaType, Long> {\n}",
"@EnableJpaRepositories\npublic interface PaymentRepository extends JpaRepository<Payment, String> {\n}",
"public interface AudienceRepository extends JpaRepository<Audience,Long> {\n\n}",
"public interface AttachmentRepository extends JpaRepository<Attachment,Long> {\n}",
"public interface AuthorRepository extends CustomJpaRepository<Author, Long> {\n\n\tpublic Author findByAuthorName(String authorName);\n\n\tpublic Set<Author> findByAuthorBooks_Book_Id(Long bookId);\n}",
"@Repository\npublic interface ArticlePictureRepository extends JpaRepository<ArticlePicture, Long> {\n}",
"@Repository\npublic interface EditorRepository extends JpaRepository<Editor, Long> {\n}",
"@Repository\npublic interface WebsiteRepository extends JpaRepository<WebsiteEntity, Long> { }",
"public interface PackagesRepository extends JpaRepository<Packages,Long> {\n\n}",
"@Repository\npublic interface ItemRepository extends JpaRepository<Item, Long>{\n\n}",
"@Repository\npublic interface WallPostPhotoRepository extends JpaRepository<WallPostPhoto, Long> {\n}",
"@Repository\npublic interface PlayerRepository extends JpaRepository<Player, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CommunityMediaRepository extends JpaRepository<CommunityMedia, Long> {\n\n}",
"public interface AdCreativeRespository extends JpaRepository<AdCreative,Long> {\n\n}",
"public interface IModeratorProposalRepository extends JpaRepository<ModeratorProposal, Integer> {\n}",
"public interface AuthorRepository extends CrudRepository<Author, Long> {\n}",
"@Repository\npublic interface MenuItemRepository extends JpaRepository<MenuItem, Integer> { }",
"public interface LabelRepository extends JpaRepository<Label, String> {\n}",
"@SuppressWarnings(\"unchecked\")\npublic interface PackageRepository extends JpaRepository<StoredPackage, Long>, PackageStore {\n\n\t/**\n\t * Find a stored package by the id provided\n\t *\n\t * @param id The id of the package to find\n\t *\n\t * @return {@link Optional} An object representing the fact that the storedpackage looked for may or may not exist\n\t */\n\tpublic Optional<StoredPackage> findById(long id);\n\n\t/**\n\t * Saves the package provided returning the newly saved version with any autogenerated values populated\n\t *\n\t * @param definition The package definition to save\n\t *\n\t * @return {@link StoredPackage} The saved version of the package\n\t */\n\tpublic StoredPackage save(StoredPackage definition);\n\n\t/**\n\t * Delete the package matching the provided id\n\t *\n\t * @param id The id of the package to delete\n\t *\n\t * @throws EmptyResultDataAccessException If no package with that id exists\n\t */\n\tpublic void delete(Long id) throws EmptyResultDataAccessException;\n\n\t/**\n\t * Get all the packages currently residing in the underlying data store\n\t *\n\t * @return {@link List} A list of all packages in the data store, can be empty if none exist\n\t */\n\tpublic List<StoredPackage> findAll();\n\n}",
"@Repository\npublic interface ProducerRepository extends CrudRepository<Producer, Long>{\n public Producer save(Producer c);\n public void delete(Producer c);\n public Producer findOne(Long id);\n public Producer findByName(@Param(\"name\") String name);\n}",
"public interface PrisonerRepository extends BaseRepository <Prisoner, Long> {\n}",
"@Repository\npublic interface PersonRepository extends JpaRepository<Person, Long> {\n}",
"@Repository\npublic interface QualityParameterRepository extends JpaRepository<QualityParameter, Integer> {\n\n}",
"@Repository\npublic interface ProdutoRepository extends JpaRepository<Produto, Integer>{\n \t\n}",
"public interface OfferingRepository extends JpaRepository<Offering, Long>{\r\n\r\n}",
"public interface SubscriptionRepository extends CrudRepository<Subscription, Long> {\n\n}",
"public interface AuthorRepository extends CrudRepository<Author,Long> {\n}",
"public interface AuthorRepository extends CrudRepository<Author,Long> {\n}",
"@Repository\npublic interface ProductRepo extends CrudRepository<Product, String> {\n\n @Override\n Product save(Product product);\n\n @Override\n List<Product> findAll();\n\n Product findByTitle(String title);\n}",
"public interface PostRepository extends CrudRepository<Post, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ListingMailRepository extends JpaRepository<ListingMail, Long> {}",
"@Repository\npublic interface IPaymentRepository extends JpaRepository<Payment, Long> {\n}",
"@Repository\npublic interface ItemPedidoRepository extends JpaRepository<ItemPedido, Integer> {\n}",
"public interface MessageRepository extends JpaRepository<Message, Long>{\n\n}",
"@Repository\npublic interface RoomRepository extends JpaRepository<Room, Long> {\n\n\n}",
"interface ItemRepository extends JpaRepository<Item, Long> {\n\n}",
"public interface BookRepository extends JpaRepository<Book, Integer> {\n public List<Book> findByBookName(String bookName);\n}",
"@Repository\npublic interface ContactRepository extends JpaRepository<Contact, Long> {\n}",
"@Repository\npublic interface LocationRepository extends JpaRepository<Location, Long> {\n}",
"public interface CaptionsRepository extends JpaRepository<Captions,Long> {\n\n}",
"public interface RoomRepository extends JpaRepository<Room, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventLanguageRepository extends JpaRepository<EventLanguage, Long> {\n\t\n}",
"public interface IBookRepository extends CrudRepository<Book, Integer> {}",
"@Repository\npublic interface PersonaRepository extends JpaRepository<Persona, Integer> {\n \n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ContentDocRepository extends JpaRepository<ContentDoc, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SysPostRepository extends JpaRepository<SysPost, Long> {\n}",
"public interface ContactRepository extends JpaRepository<Contact, Long> {\n\n}",
"public interface PegawaiRepository extends JpaRepository<Pegawai, Long> {\n\n\n}",
"public interface MeetingRepository extends JpaRepository<Meeting, Long> {\n}",
"public interface BlockRepository\n// extends JpaRepository<Block, String>\n{\n}",
"public interface ProductPricingRepository extends JpaRepository<ProductPricing, Long> {\n}",
"public interface ProductsRepo extends JpaRepository<Products, Integer>{\n}",
"@Repository\npublic interface ProductRepository extends CrudRepository<Product, Integer> {\n\n}",
"public interface MetaRepository extends JpaRepository<T_metas, Integer> {\n\n}",
"@Repository\npublic interface PingRepository extends CrudRepository<PingEntity, Long> {\n\t//\n}",
"public interface NoteRepository extends JpaRepository<Note, Integer> {\n\n}",
"@RepositoryRestResource\npublic interface WebsiteRepository extends JpaRepository<WebsiteEntity, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DirectMessageRepository extends JpaRepository<DirectMessage, Long>, JpaSpecificationExecutor<DirectMessage> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}",
"@Repository\npublic interface KontaktJpaRepository extends JpaRepository<Kontakte, Long> {\n\n}",
"@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, UUID> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ContactoPessoaRepository extends JpaRepository<ContactoPessoa, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SequenceRepository extends JpaRepository<Sequence, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProfissionalSaudeRepository extends JpaRepository<ProfissionalSaude, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SellerRepository extends JpaRepository<Seller, Long> {\n\n}",
"@Repository\npublic interface VendorsRepository extends CrudRepository<Vendor, Long> {\n}",
"@Repository\npublic interface BookGroupDao extends JpaRepository<BookGroup, Long> {\n List<BookGroup> findByTitle(String title);\n}",
"@Repository\npublic interface AtletaRepository extends JpaRepository<Atleta, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface AdButtonRepository extends JpaRepository<AdButton, Long>, JpaSpecificationExecutor<AdButton> {\n}",
"public interface BookRepository extends CrudRepository<Book,String>{\n}",
"@Repository\npublic interface IOrderRepository extends JpaRepository<Order, Long> {\n}",
"public interface MovieRepository extends JpaRepository<Movie, Long> {\n Movie findByTitle(String title);\n}",
"public interface RoomBanningRepository extends JpaRepository<RoomBanning, Long> {\n}",
"@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, Long> {\n\n public List<Payment> findByOrganizationId(Long orgId);\n}",
"public interface PCDao extends JpaRepository<PC, Integer> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CsrpRepository extends JpaRepository<Csrp, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface GamerRepository extends JpaRepository<Gamer, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DocumentRepository extends JpaRepository<Document, Long> {\n\n\tList<Document> findAllByTypeDocument(TypeDocument type);\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface GIDMonikerRepository extends JpaRepository<GIDMoniker, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventLoggingRepository extends JpaRepository<EventLogging, Long> {\n}",
"public interface BookResourceRepository extends JpaRepository<BookResource,Integer> {\n List<BookResource> findByBookId(Integer bookId);\n\n}",
"@Repository\npublic interface IStoreDao extends JpaRepository<Store,String> {\n}",
"public interface CurrencyRepository extends JpaRepository<Currency, Long> {\n\n}",
"@Repository\npublic interface StudentRepository extends JpaRepository<Student,Long> {\n}",
"@Repository\npublic interface SuiteRepository extends JpaRepository<SuiteRoom, Integer> {\n}",
"public interface PersonRepository extends JpaRepository<Person, Long>, PersonRepositoryQuery {\n}",
"public interface OrderRepository extends JpaRepository<Order, String> {\n}",
"public interface ShopperPersonRepository extends CrudRepository<ShopperPerson, Long> {\n}",
"@Repository\n@Transactional\npublic interface LensRepository extends JpaRepository<Lens, Long> {\n}",
"public interface ProductRepository extends MongoRepository<Offer, Integer> {\n}",
"public interface PetRepository extends CrudRepository<Pet, Long> {\n}",
"public interface AddressesRepository extends JpaRepository<Addresses,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DocRepository extends JpaRepository<Doc, Long> {\n\n}",
"@Repository\npublic interface WheelRepository extends JpaRepository<Wheel, Long>, JpaSpecificationExecutor<Wheel>{\n\n}"
] | [
"0.7543798",
"0.6731646",
"0.6573725",
"0.64653885",
"0.63351905",
"0.6330558",
"0.6316107",
"0.6252339",
"0.6242392",
"0.6239072",
"0.6222785",
"0.61986315",
"0.61957115",
"0.619105",
"0.6181524",
"0.6169721",
"0.61635476",
"0.616098",
"0.615371",
"0.61462873",
"0.61346227",
"0.6120527",
"0.6103462",
"0.60873324",
"0.60866684",
"0.60842526",
"0.60731524",
"0.6066344",
"0.60621077",
"0.6059002",
"0.6054052",
"0.6045573",
"0.60378826",
"0.60378826",
"0.603593",
"0.6034936",
"0.6032553",
"0.6031217",
"0.60239613",
"0.6022277",
"0.6019635",
"0.6015738",
"0.6014531",
"0.6005017",
"0.599975",
"0.5984715",
"0.5984399",
"0.5971574",
"0.59681785",
"0.596552",
"0.5958751",
"0.59540856",
"0.59450585",
"0.5943891",
"0.5936813",
"0.59337384",
"0.59268934",
"0.5926511",
"0.5924158",
"0.5921848",
"0.5918535",
"0.5912227",
"0.59070057",
"0.5904503",
"0.5902113",
"0.59012026",
"0.5896009",
"0.5889509",
"0.5888928",
"0.5882102",
"0.5881705",
"0.5876032",
"0.58671534",
"0.5861712",
"0.5852944",
"0.5851215",
"0.58505946",
"0.5849874",
"0.58407027",
"0.58380944",
"0.5832995",
"0.5830706",
"0.58245534",
"0.58235234",
"0.58197886",
"0.5817785",
"0.5814578",
"0.5813605",
"0.5811189",
"0.5811172",
"0.5810735",
"0.58042383",
"0.5800464",
"0.5799994",
"0.5794697",
"0.57895666",
"0.5789235",
"0.5788729",
"0.5785764",
"0.57842004"
] | 0.71558404 | 1 |
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent. | @SuppressWarnings({"unchecked", "cast"})
public TryStmt fullCopy() {
TryStmt tree = (TryStmt) copy();
if (children != null) {
for (int i = 0; i < children.length; ++i) {
ASTNode child = (ASTNode) children[i];
if(child != null) {
child = child.fullCopy();
tree.setChild(child, i);
}
}
}
return tree;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Call treeCopy() {\n Call tree = (Call) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }",
"public SubstitutedBodyDecl treeCopy() {\n SubstitutedBodyDecl tree = (SubstitutedBodyDecl) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }",
"public Call treeCopyNoTransform() {\n Call tree = (Call) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }",
"public SubstitutedBodyDecl treeCopyNoTransform() {\n SubstitutedBodyDecl tree = (SubstitutedBodyDecl) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }",
"public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}",
"public abstract Type treeCopy();",
"public abstract TreeNode copy();",
"public Tree copy() {\n Tree cpTree = new Tree();\n if(!empty()) {\n Node cpNode = copyNodes(root);\n cpTree.setRoot(cpNode);\n }\n return cpTree;\n }",
"public Tree<T> clone() {\n Node<T> clonedRoot = this.root.clone();\n clone(this.root, this.root.clone());\n return new Tree<T>(clonedRoot);\n }",
"public Object clone()\n\t{\n\t\treturn new Tree();\n\t}",
"public abstract Node copy();",
"public AST copy()\n {\n return new Implicate(left, right);\n }",
"public BlockLambdaBody treeCopy() {\n BlockLambdaBody tree = (BlockLambdaBody) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }",
"public BinaryNode copy() {\n\t\tBinaryNode newRoot = new BinaryNode(data);\n\t\tif(leftChild != null)\n\t\t\tnewRoot.setLeftChild(leftChild.copy());\n\t\tif(rightChild != null)\n\t\t\tnewRoot.setRightChild(rightChild.copy());\n\t\treturn newRoot;\n\t}",
"public abstract Type treeCopyNoTransform();",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public TypeVariable fullCopy() {\n TypeVariable tree = (TypeVariable) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if(child != null) {\n child = child.fullCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }",
"public BlockLambdaBody treeCopyNoTransform() {\n BlockLambdaBody tree = (BlockLambdaBody) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }",
"static ExpNode copy(ExpNode root) {\n\n if (root instanceof ConstNode) {\n return new ConstNode(((ConstNode).root).number);\n }\n else if (root instanceof VariableNode) {\n return new VariableNode();\n }\n else {\n Bin0pNode node = (Bin0pNode)root;\n // Left and right operand trees have to be copied not only referenced\n return new Bin0pNode(node.op, copy(node.left). copy(node.right));\n }\n }",
"public abstract OtTreeNodeWidget copy();",
"public Expression deepCopy()\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}",
"public QueryNode cloneTree() throws CloneNotSupportedException;",
"private void copy(Node node){\n parent_ = node.parent_;\n size_ = node.size_;\n for(int i = 0; i < size_; i++)\n children_[i] = node.children_[i];\n }",
"public void deepCopy(TreeItem a) {\n\t\tleaves = null;\n\t\ttreeLeaves = null;\n\t\tlabel = a.label;\n\t\t//\tweight = a.weight;\n\t\tnumChildren = a.numChildren;\n\t\tchildren = new TreeItem[numChildren];\n\t\tfor (int i = 0; i < numChildren; i++) {\n\t\t\tchildren[i] = new TreeItem((TreeItem)a.children[i]);\n\t\t}\n\t\tisEmptyString = a.isEmptyString;\n\t\tsetHashCode();\n\t\tsetNumNodes();\n\t}",
"@Override\n public ExpressionNode deepCopy(BsjNodeFactory factory);",
"@SuppressWarnings(\"unchecked\")\n @Override\n public <T extends JsonNode> T deepCopy() { return (T) this; }",
"@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}",
"public IntTree copy () {\n\t\tIntTree that = new IntTree ();\n\t\tfor (int key : levelOrder())\n\t\t\tthat.put (key);\n\t\treturn that;\n\t}",
"Node copy(Node r) {\r\n\t\tif (r == null)\r\n\t\t\treturn null;\r\n\t\tNode leftTree = copy(r.left);\r\n\t\tNode rightTree = copy(r.right);\r\n\t\treturn new Node(r.element, leftTree, rightTree);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n public synchronized List<TreeNode> getChildrenCopy ()\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"getChildrenCopy of \" + this);\r\n }\r\n\r\n return new ArrayList(children);\r\n }",
"public void copyTree(Node original, Node copy) {\n\t\tcopy.setLeafNode(original.isLeafNode());\n\t\tcopy.setName(original.getName());\n\t\tcopy.setLeafValue(original.getLeafValue());\n\n\t\tif (!original.isLeafNode()) {\n\t\t\tcopy.setLeft(new Node());\n\t\t\tcopy.setRight(new Node());\n\n\t\t\tcopyTree(original.getLeft(), copy.getLeft());\n\t\t\tcopyTree(original.getRight(), copy.getRight());\n\t\t}\n\t}",
"@Override\n public AggregationBuilder clone() {\n try {\n AggregationBuilder clone = (AggregationBuilder) super.clone();\n clone.root = root.clone();\n clone.current = clone.root;\n return clone;\n } catch(CloneNotSupportedException ex){\n return null;\n }\n }",
"public Expression deepCopy (){\n return new LiteralExpression(_value);\n }",
"public T cloneDeep();",
"@Override\n public Node clone() {\n Node node = null;\n try {\n node = (Node) super.clone();\n } catch (Exception e) {\n System.err.println(\"Unable to clone!\");\n e.printStackTrace();\n }\n return node;\n }",
"@Override\r\n\tpublic BinaryNodeInterface<E> copy() {\n\t\treturn null;\r\n\t}",
"public CopyBuilder copy() {\n return new CopyBuilder(this);\n }",
"@Override\r\n\t\tpublic Node cloneNode(boolean deep)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public CommitNode(CommitNode parent, CommitNode toCopy) {\r\n\t\tparentCommit = parent;\r\n\t\t//ID to be set in Gitlet.java\r\n\t\tmessage = toCopy.message();\r\n\t\tdate = Calendar.getInstance().getTime();\r\n\t\ttrackedFiles = toCopy.trackedFiles();\r\n\t\tbranchesPartOf = toCopy.branches();\r\n\t\tchildren = toCopy.getChildren();\r\n\t}",
"@Override\n public ISentence clone() {\n WordNode newSentence = new WordNode(this.word, restOfSentence.clone());\n return newSentence;\n }",
"@Override\r\n public InsertStatementBuilder shallowCopy() {\r\n return new InsertStatementBuilder(this);\r\n }",
"public EventStack<T> deepCopy() {\n final Stack<EventStackEntry<T>> copiedStack = new Stack<>();\n for (final EventStackEntry<T> iterEntry : eventStack) {\n copiedStack.push(iterEntry.deepCopy());\n }\n final EventStack<T> copiedOutput = new EventStack<>(firstEventTime);\n copiedOutput.setStack(copiedStack);\n return copiedOutput;\n }",
"public Closure copy_function(){\n Closure newClosure = new Closure(this.getParent(), this.getNode());\n newClosure.isFunction = this.isFunction;\n newClosure.returning = this.returning;\n newClosure.belongObject = this.belongObject;\n return newClosure;\n }",
"public TreeNode cloneTree(TreeNode root) {\n if (root == null) {\n return null;\n }\n res = new TreeNode(root.val);\n res.left = helper(res.left, root.left);\n res.right = helper(res.right, root.right);\n return res;\n }",
"public AgwCslOper cloneShallow() {\n return (AgwCslOper)cloneShallowContent(new AgwCslOper());\n }",
"public Tree<K, V> copy(Tree<K, V> t, Tree<K, V> copy) {\n\t\tcopy = copy.add(key, value);\n\t\tcopy = left.copy(left, copy);\n\t\tcopy = right.copy(right, copy);\n\t\treturn copy;\n\t}",
"public CFExp deepCopy(){\r\n return this;\r\n }",
"public Node copyNodes(Node N) {\n if(N != null){\n Node cp = new Node();\n cp.setData(N.getData()); //copying contents into new node\n cp.setLeft(copyNodes(N.getLeft()));\n cp.setRight(copyNodes(N.getRight()));\n return cp;\n }\n return N;\n }",
"ASTNode clone0(AST target) {\r\n\t\tNewAnonymousClassExpression result = new NewAnonymousClassExpression(target);\r\n\t\tresult.setSourceRange(this.getStartPosition(), this.getLength());\r\n\tresult.setExpression((Expression) ASTNode.copySubtree(target, getExpression()));\r\n\t\tresult.newArguments.addAll(ASTNode.copySubtrees(target, newArguments()));\r\n\t\tresult.constructorArguments.addAll(ASTNode.copySubtrees(target, constructorArguments()));\r\n\t\tresult.baseClasses.addAll(ASTNode.copySubtrees(target, baseClasses()));\r\n\t\tresult.declarations.addAll(ASTNode.copySubtrees(target, declarations()));\r\n\t\treturn result;\r\n\t}",
"private BinaryNode<AnyType> copy1(BinaryNode<AnyType> t)\r\n\t{\r\n\t\tBinaryNode<AnyType> newNode=null;\r\n\t\tif(t!=null)\r\n\t\t{\r\n\t\t\tnewNode = new BinaryNode<>(t.element,t.left,t.right);\r\n\t\t\tcopy1(t.left);\r\n\t\t\tcopy1(t.right);\r\n\t\t}\r\n\t\treturn newNode;\r\n\t}",
"public directed_weighted_graph deepCopy() {\n DWGraph_DS copyGraph = new DWGraph_DS(this); //create a new graph with the original graph data (only primitives)\n HashMap<Integer, node_data> copyNodesMap = new HashMap<>(); //create a new nodes HashMap for the new graph\n for (node_data node : nodes.values()) { //loop through all nodes in the original graph\n copyNodesMap.put(node.getKey(), new NodeData((NodeData) node)); //makes a duplicate of the original HashMap\n }\n copyGraph.nodes = copyNodesMap; //set the new graph nodes to the new HashMap we made.\n return copyGraph;\n }",
"public Node clone() {\n Node n = new Node((float) this.getSimPos().getX(), (float) this.getSimPos().getY(), radius*2, isStationary, this.renderColor);\n n.node_uuid = this.node_uuid;\n return n;\n }",
"private RootBlock copy(RootBlock sourceRootBlock) {\n\t\tCopier copier = new Copier(true);\n\t\tRootBlock result = (RootBlock) copier.copy(sourceRootBlock);\n\t\tcopier.copyReferences();\n\t\treturn result;\n\t}",
"public EnbOper cloneShallow() {\n return (EnbOper)cloneShallowContent(new EnbOper());\n }",
"public Node cloneNode(final boolean deep) {\n // TODO Auto-generated method stub\n return null;\n }",
"@Override\n public AbstractlyUnmodifiedClassDeclarationNode<T> deepCopy(BsjNodeFactory factory);",
"public void recomputeTree() {\n\t\tsuperRoot = factory.createTreeNode(null, this);\n\t\tlayoutToTree.put(null, superRoot);\n\t\tcreateTrees(context.getNodes());\n\t}",
"public StringStack clone()\n\t{\n\t\tStringStack clonedStack = new StringStack();\n\t\tnodePtr = top;\n\t\twhile (nodePtr!=null)\n\t\t{\n\t\t\tclonedStack.push(nodePtr.getData());\n\t\t\tnodePtr = nodePtr.getLink();\n\t\t}\n\t\treturn clonedStack;\n\t}",
"public Node cloneNode () {\n return new VcsGroupFileNode(shadowObject, originalNode);\n }",
"public Object clone() {\n AggregateSymbol copy = new AggregateSymbol(getName(), getAggregateFunction(), isDistinct(), LanguageObject.Util.deepClone(getArgs()));\n if (orderBy != null) {\n copy.setOrderBy(orderBy.clone());\n }\n if (condition != null) {\n copy.setCondition((Expression) condition.clone());\n }\n copy.isWindowed = this.isWindowed;\n copy.type = this.type;\n copy.setFunctionDescriptor(getFunctionDescriptor());\n return copy;\n }",
"public State copy() {\n State that = new State(this.registers.length);\n for (int i=0; i<this.registers.length; ++i) {\n Object a = this.registers[i];\n if (a == null) continue;\n if (!(a instanceof Set))\n that.registers[i] = a;\n else\n that.registers[i] = NodeSet.FACTORY.makeSet((Set)a);\n }\n if(TRACE_REGISTERS) System.out.println(\"Copying state \" + Arrays.asList(that.registers));\n return that;\n }",
"@Override\n public MetaprogramTargetNode deepCopy(BsjNodeFactory factory);",
"public abstract LambdaTerm deepCopy();",
"public Object clone() throws CloneNotSupportedException {\r\n\t\t// Shallow clone\r\n\t\tExpression v = (Expression) super.clone();\r\n\t\tv.eval_stack = null;\r\n\t\t// v.text = new StringBuffer(new String(text));\r\n\t\tint size = elements.size();\r\n\t\tArrayList cloned_elements = new ArrayList(size);\r\n\t\tv.elements = cloned_elements;\r\n\r\n\t\treturn v;\r\n\t}",
"public TurtleState copy() {\n\t\treturn new TurtleState(position.copy(), direction.copy(), color, shift);\n\t}",
"Prototype makeCopy();",
"public Node cloneNode(boolean deep) {\n/* 320 */ cloneDeepCheck(deep);\n/* */ \n/* 322 */ return new PoaMaestroMultivaloresHTML(this);\n/* */ }",
"@Override\n\t\tpublic ImmutableSequentialGraph copy() {\n\t\t\treturn new ComposedGraph( g0, g1.copy() );\n\t\t}",
"@Override\n protected Workflow copy(CompoundWorkflow parent) {\n return copyImpl(new AssignmentWorkflow(getNode().clone(), parent, newTaskTemplate, newTaskClass, newTaskOutcomes));\n }",
"Component deepClone();",
"private void checkCopy(IAstNode node, IAstNode copy) {\n \t\tassertEquals(node.getClass(), copy.getClass());\n \t\tassertFalse(node.toString(), node == copy);\n \t\tif (node.getParent() != null)\n \t\t\tassertFalse(node.toString(), node.getParent() == copy.getParent());\n \t\tIAstNode[] kids = node.getChildren();\n \t\tIAstNode[] copyKids = copy.getChildren();\n \t\tassertEquals(node.toString() + \": children count differ\", kids.length, copyKids.length);\n \t\tif (node instanceof IAstTypedNode)\n \t\t\tassertEquals(node.toString() + \": types differ\", ((IAstTypedNode) node).getType(), ((IAstTypedNode) copy).getType());\n \t\t\n \t\tif (node instanceof IAstScope) {\n \t\t\tIScope scope = ((IAstScope) node).getScope();\n \t\t\tIScope copyScope = ((IAstScope) copy).getScope();\n \t\t\tassertFalse(node.toString(), scope == copyScope);\n \t\t\tassertEquals(node.toString() + \": scope count\", scope.getSymbols().length, copyScope.getSymbols().length);\n \t\t\t\n \t\t\tfor (ISymbol symbol : scope) {\n \t\t\t\tISymbol copySym = copyScope.get(symbol.getUniqueName());\n \t\t\t\tassertSame(copyScope, copySym.getScope());\n \t\t\t\tassertEquals(symbol+\"\", symbol, copySym);\n \t\t\t\t// a symbol may refer to dead code\n \t\t\t\tif (symbol.getDefinition() == null || symbol.getDefinition().getParent() != null)\n \t\t\t\t\tassertEquals(symbol+\"\", symbol.getDefinition(), copySym.getDefinition());\n \t\t\t\tassertFalse(symbol+\"\", symbol == copySym);\n \t\t\t\tassertFalse(symbol+\"\", symbol.getDefinition() != null && symbol.getDefinition() == copySym.getDefinition());\n \t\t\t\tif (symbol.getDefinition() != null) {\n \t\t\t\t\tassertFalse(symbol+\"\", symbol.getDefinition() == copySym.getDefinition());\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tassertEquals(node.toString() + \": scopes differ\", scope, copyScope);\n \t\t}\n \t\t\n \t\tfor (int i = 0; i < kids.length; i++) {\n \t\t\tassertSame(copy+\"\", copy, copyKids[i].getParent());\n \t\t\t// look out for dead definitions\n \t\t\tif (kids[i].getParent() == copy)\n \t\t\t\tcheckCopy(kids[i], copyKids[i]);\n \t\t}\n \t\t\n \t\t// now that a rough scan worked, check harder\n \t\tassertEquals(node.toString() + \": #equals()\", node, copy);\n \t\t\n \t\tassertEquals(node.toString() + \": #hashCode()\", node.hashCode(), copy.hashCode());\n \t}",
"BrainTreeCloneTransactionResult cloneTransaction(BrainTreeCloneTransactionRequest request);",
"public Table shallowCopy() {\n\t\tSubsetTableImpl vt =\n\t\t\tnew SubsetTableImpl(this.getColumns(), this.subset);\n\t\tvt.setLabel(getLabel());\n\t\tvt.setComment(getComment());\n\t\treturn vt;\n\t}",
"public Node cloneNode(boolean deep) {\n/* 258 */ cloneDeepCheck(deep);\n/* */ \n/* 260 */ return new AdmClientePreferencialHTML(this);\n/* */ }",
"public weighted_graph copy();",
"public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }",
"public Address copy() {\n\t\tAddress copy = new Address(this.street, this.city, this.state, this.zipCode);\n\t\treturn copy;\n\t}",
"public Object clone() {\n\t\treturn new RelExpr((Term)getTerm(0).clone(), op, (Term)getTerm(1).clone());\n\t}",
"public node_data copyNode(node_data node) {\n NodeData nodeUpCasted = (NodeData) node;\n return new NodeData(nodeUpCasted);\n }",
"@Override\n\tpublic MapNode clone()\n\t{\n\t\t// Create copy of this map node\n\t\tMapNode copy = (MapNode)super.clone();\n\n\t\t// Copy KV pairs\n\t\tcopy.pairs = new LinkedHashMap<>();\n\t\tfor (Map.Entry<String, AbstractNode> pair : pairs.entrySet())\n\t\t{\n\t\t\tAbstractNode value = pair.getValue().clone();\n\t\t\tcopy.pairs.put(pair.getKey(), value);\n\t\t\tvalue.setParent(copy);\n\t\t}\n\n\t\t// Return copy\n\t\treturn copy;\n\t}",
"public BuildTree createBuildTree() {\n BuildTree buildTree = new BuildTree();\n createBuildTree(0, buildTree);\n return buildTree;\n }",
"public /*@ non_null @*/ Object clone() { \n //@ assume owner == null;\n return this;\n }",
"public Update cloneShallow() {\n return (Update)cloneShallowContent(new Update());\n }",
"private void clone(Node<T> sourceNode, Node<T> cloneNode) {\n Node<T> tmp;\n Collection<Node<T>> collection = sourceNode.getChildren();\n for (Node<T> child : collection) {\n tmp = child.clone();\n if (sourceNode.getParent() != null) tmp.setParent(cloneNode);\n cloneNode.addChildren(tmp);\n clone(child, tmp);\n }\n }",
"ASTNode clone(AST target) {\n ForStatement result = new ForStatement(target);\n result.setLeadingComment(getLeadingComment());\n result.initializers().addAll(ASTNode.copySubtrees(target, initializers()));\n result.setExpression(\n (Expression) ASTNode.copySubtree(target, getExpression()));\n result.updaters().addAll(ASTNode.copySubtrees(target, updaters()));\n result.setBody(\n (Statement) ASTNode.copySubtree(target, getBody()));\n return result; }",
"public HeapElt copy() {\n HeapElt newElement = new HeapElt();\n \n newElement.setHandle(this.handle);\n newElement.setRecord(this.record);\n \n return newElement;\n }",
"public static Expression getCopy(Expression exp) {\n\t\tExpression expcopy = (Expression) EcoreUtil.copy(exp);\t\n\t\treturn expcopy;\n\t}",
"public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}",
"public State dup (State self)\n {\n if (self == null)\n return null;\n\n State copy = new State ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.address = self.address;\n copy.addressPort = self.addressPort;\n copy.generation = self.generation;\n copy.max_version = self.max_version;\n copy.extra = new VersionedMap (self.extra);\n return copy;\n }",
"public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }",
"public Node(Node cloneNode) {\n\t\tthis.name = cloneNode.getName();\n\t\tthis.type = cloneNode.getType();\n\t\tthis.setX(cloneNode.getX());\n\t\tthis.setY(cloneNode.getY());\n\t\tthis.position = new Vector2(cloneNode.getPosition());\n\t}",
"YangType<T> clone();",
"Object clone();",
"Object clone();",
"public abstract INodo copy();",
"@Override\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS(this.ga);//create the copy graph via copy constructor\n return copy;\n }",
"public Object clone() {\n return this.copy();\n }",
"public Query copy() {\r\n\tQuery queryCopy = new Query();\r\n\tqueryCopy.terms = (LinkedList<String>) terms.clone();\r\n\tqueryCopy.weights = (LinkedList<Double>) weights.clone();\r\n\treturn queryCopy;\r\n }",
"StoryState copy() {\r\n\t\tStoryState copy = new StoryState(story);\r\n\r\n\t\tcopy.getOutputStream().addAll(outputStream);\r\n\t\toutputStreamDirty();\r\n\t\tcopy.currentChoices.addAll(currentChoices);\r\n\r\n\t\tif (hasError()) {\r\n\t\t\tcopy.currentErrors = new ArrayList<String>();\r\n\t\t\tcopy.currentErrors.addAll(currentErrors);\r\n\t\t}\r\n\r\n\t\tcopy.callStack = new CallStack(callStack);\r\n\r\n\t\tcopy.variablesState = new VariablesState(copy.callStack, story.getListDefinitions());\r\n\t\tcopy.variablesState.copyFrom(variablesState);\r\n\r\n\t\tcopy.evaluationStack.addAll(evaluationStack);\r\n\r\n\t\tif (getDivertedTargetObject() != null)\r\n\t\t\tcopy.setDivertedTargetObject(divertedTargetObject);\r\n\r\n\t\tcopy.setPreviousContentObject(getPreviousContentObject());\r\n\r\n\t\tcopy.visitCounts = new HashMap<String, Integer>(visitCounts);\r\n\t\tcopy.turnIndices = new HashMap<String, Integer>(turnIndices);\r\n\t\tcopy.currentTurnIndex = currentTurnIndex;\r\n\t\tcopy.storySeed = storySeed;\r\n\t\tcopy.previousRandom = previousRandom;\r\n\r\n\t\tcopy.setDidSafeExit(didSafeExit);\r\n\r\n\t\treturn copy;\r\n\t}",
"public Node cloneNode(boolean deep) {\n/* 230 */ cloneDeepCheck(deep);\n/* */ \n/* 232 */ return new IndicadoresEficaciaHTML(this);\n/* */ }",
"@Override\n public VariableListNode deepCopy(BsjNodeFactory factory);"
] | [
"0.76008815",
"0.73642397",
"0.73081243",
"0.7288364",
"0.72538054",
"0.72370243",
"0.71535796",
"0.7071978",
"0.7070821",
"0.70696914",
"0.69174474",
"0.6884486",
"0.68460524",
"0.6844238",
"0.66261244",
"0.66065395",
"0.65470415",
"0.6526319",
"0.6479438",
"0.64034295",
"0.63175416",
"0.6289907",
"0.6286756",
"0.6273641",
"0.6187063",
"0.6152783",
"0.61373025",
"0.61368203",
"0.6117471",
"0.6020984",
"0.6014049",
"0.60074526",
"0.59882355",
"0.59523815",
"0.59345925",
"0.5879999",
"0.5864724",
"0.5729562",
"0.5710746",
"0.5704167",
"0.5677443",
"0.5674662",
"0.56656283",
"0.5647664",
"0.5642153",
"0.5615222",
"0.56022584",
"0.55951685",
"0.55848354",
"0.5578494",
"0.55420804",
"0.5529326",
"0.5525218",
"0.55213255",
"0.5516522",
"0.5512939",
"0.5509651",
"0.5502337",
"0.5502049",
"0.5496217",
"0.5488217",
"0.5487371",
"0.54849494",
"0.54743326",
"0.5471154",
"0.5443529",
"0.5416342",
"0.5409249",
"0.5407706",
"0.53822404",
"0.5376839",
"0.5376469",
"0.5375191",
"0.5374782",
"0.537382",
"0.5371656",
"0.5356066",
"0.53500646",
"0.535006",
"0.5349873",
"0.53473705",
"0.5345126",
"0.5344383",
"0.53283507",
"0.5327681",
"0.53256255",
"0.532477",
"0.53128886",
"0.5309344",
"0.5307995",
"0.53036726",
"0.5298753",
"0.5298753",
"0.5296057",
"0.5294146",
"0.52895904",
"0.5286164",
"0.52808934",
"0.52795583",
"0.52748"
] | 0.586347 | 37 |
Initializes the child array to the correct size. Initializes List and Opt nta children. | public void init$Children() {
children = new ASTNode[3];
setChild(new List(), 1);
setChild(new Opt(), 2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initChildList() {\n if (childList == null) {\n childList = new ArrayList<>();\n }\n }",
"public void init$Children() {\n children = new ASTNode[3];\n setChild(new List(), 1);\n setChild(new List(), 2);\n }",
"public void init$Children() {\n children = new ASTNode[2];\n setChild(new List(), 1);\n }",
"public void init$Children() {\n children = new ASTNode[1];\n }",
"public void init$Children() {\n }",
"public void init$Children() {\n }",
"public void init$Children() {\n }",
"public Node(int numberChildren){\n board = new Board();\n children = new Node[numberChildren];\n }",
"protected void initializeChild() {\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t\tvoid init() {\n\t\t\tsetNodes(offHeapService.newArray(JudyIntermediateNode[].class, NODE_SIZE, true));\n\t\t}",
"public SuperArray() { \n \t_data = new Comparable[10];\n \t_lastPos = -1; //flag to indicate no lastpos yet\n \t_size = 0;\t\n }",
"private void initSubNodes()\n {\n children = createSubNodes(false);\n attributes = createSubNodes(true);\n }",
"public void setChildCount (int childCount) {\n this.childCount = childCount;\n }",
"Object[] getChildArray();",
"protected void childInit()\n {\n }",
"protected int numChildren() {\r\n return 3;\r\n }",
"public DynamicArray() {\n this(16);\n }",
"ArrayADT() {\n this.size = 10;\n this.base = createArrayInstance(this.size);\n this.length = 0;\n }",
"@Override public void setChildren(BTreeNode[] children) {\n this.children = children;\n }",
"private void setEverything(){\r\n int listLength = propertyList.length -1;\r\n arrayIterator = new ArrayIterator<>(propertyList, listLength+1);\r\n\r\n this.priceTree = new SearchTree<>(new PriceComparator());\r\n this.stockTree = new SearchTree<>(new StockComparator());\r\n this.ratingTree = new SearchTree<>(new RatingComparator());\r\n this.deliveryTree= new SearchTree<>(new DeliveryTimeComparator());\r\n\r\n this.foodArray = new ArrayQueue<>();\r\n this.restaurantArray = new ArrayQueue<>();\r\n\r\n // Fill arrays from property list.\r\n createFoodArray();\r\n arrayIterator.setCurrent(0); //Since the restaurantArray will use the same iterator\r\n createRestaurantArray();\r\n\r\n // Fill Binary Search Trees\r\n createFoodTrees();\r\n createRestaurantTrees();\r\n }",
"protected void setChildren(Node n1, Node n2) {\r\n children[0] = n1;\r\n children[1] = n2;\r\n }",
"public GenericDynamicArray() {this(11);}",
"public int getChildCount() {return children.size();}",
"public ExpandableArray() {\n\n\t}",
"public ListDA() {\n elements = new Object[CAPACITY];\n }",
"public BaseArray(int max) // constructor\n {\n a = new long[max]; // create the array\n nElems = 0; // no items yet\n }",
"private void initialize()\n\t{\n\t\tfor(int i = 0 ; i < SOM.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j < SOM[0].length; j++)\n\t\t\t{ \n\t\t\t\tSOM[i][j] = new Node(INPUT_DIMENSION,i,j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSOM_HORIZONTAL_LENGTH = SOM[0].length;\n\t\tSOM_VERTICAL_LENGTH = SOM.length;\n\t}",
"@DisplayName(\"Test if the childs are assigned correctly over a path 4 -> 0 -> 1 -> 2 -> 3\")\n @Test\n public void testGetChilds() {\n boolean directed1 = true;\n Graph instance = new Graph(new Edge[0], directed1, 4, 5, GraphType.RANDOM);\n instance.addEdges(edges);\n List<Integer> l0 = new ArrayList<>();\n List<Integer> l1 = new ArrayList<>();\n List<Integer> l2 = new ArrayList<>();\n List<Integer> l3 = new ArrayList<>();\n List<Integer> l4 = new ArrayList<>();\n l0.add(4);\n l1.add(0);\n l2.add(1);\n l3.add(2);\n List[] foo = {l0, l1, l2, l3, l4};\n for (int i = 0; i < 5; i++) {\n Assertions.assertArrayEquals(foo[i].toArray(), instance.getChilds(i).toArray());\n }\n }",
"public MyArray() {\n this.length = 10;\n this.array = (T[]) Array.newInstance(MyArray.class, length);\n this.size = 0;\n }",
"public DArray (int max)\n // constructor\n {\n theArray = new long[max];\n // create array\n nElems = 0;\n }",
"private void init() {\n this.listaObjetos = new ArrayList();\n this.root = null;\n this.objeto = new Tblobjeto();\n this.pagina = new Tblpagina();\n this.selectedObj = null;\n this.menus = null;\n this.subMenus = null;\n this.acciones = null;\n this.nodes = new ArrayList<TreeNode>();\n this.selectedObjeto = null;\n this.selectedTipo = null;\n this.renderPaginaForm = null;\n this.renderGrupoForm = null;\n this.selectedGrupo = null;\n this.populateTreeTable();\n }",
"public MyArrayList() {\n mMyArray = new Comparable[10];\n size = 10;\n head = tail = size / 3;\n }",
"public LG(){\n\t\tchildren = new LinkedHashMap<Loop, LinkedHashSet<Loop>>();\n\t\tparent = new LinkedHashMap<Loop, Loop>();\n\t\tloops = new LinkedHashSet<Loop>();\n\t\tloopCounter = new LinkedHashMap<Loop, Integer>();\n\t}",
"@Override\n public int getNumChildren() {\n\t return this._children.size();\n }",
"private List<ExpandGroup> initData() {\n List<ExpandGroup> parentObjects = new ArrayList<>();\n\n // Initialize outside so we can use it more than once\n ExpandGroup mExpand;\n\n try {\n // For each ParentView\n for (int i = 0; i < myQueue.getInstance().getList().size(); i++) {\n // Create a ExpandGroup that will hold the children of each Parent (The assignment occur_name and due date)\n // ExpandGroup takes a String for the Title and a List<? extends ExpandableGroup>\n String Title = myQueue.getInstance().getList().get(i).toString();\n List<?> myChildList = myQueue.getInstance().getList().get(i).getMyTaskList();\n mExpand = new ExpandGroup(Title, myChildList);\n Log.d(\"childList\", \"myQueue.getInstance().getList().get(i).getMyTaskList() \" + \"of size \" + myQueue.getInstance().getList().get(i).getObjectList().size() + \" inserted into mExpand\");\n Log.d(\"childList\", myQueue.getInstance().getList().get(i).getMyTaskList().get(0).getClass().toString());\n\n parentObjects.add(mExpand);\n }\n } catch (IndexOutOfBoundsException e) {\n Log.d(\"QueueFragment\", \"Nothing in queue, catching \" + e.toString());\n }\n //We finished populating the parents so we can return the list\n return parentObjects;\n }",
"public void addChild(boolean definition[]){\n \n Hierarchy y;\n \n \n \n type = INNER;\n nchild ++;\n \n y = new Hierarchy(reference);\n y.members = definition;\n children.addElement (y);\n \n \n \n \n }",
"public void initialize() {\n grow(0);\n }",
"private void initChildren() {\n vbox = new Vbox();\n chkUseRawName = new Checkbox(\"Use the scientific names supplied with the records\");\n chkUseRawName.setChecked(false);\n\n chkUseRawName.addEventListener(\"onCheck\", new EventListener() {\n\n @Override\n public void onEvent(Event event) throws Exception {\n onCheck$chkUseRawName(event);\n }\n });\n autoComplete = new SpeciesAutoComplete();\n autoComplete.setAutodrop(true);\n autoComplete.setWidth(\"330px\");\n autoComplete.addEventListener(\"onChange\", new EventListener() {\n\n @Override\n public void onEvent(Event event) throws Exception {\n autoCompleteSelectionChanged(event);\n }\n\n });\n\n vbox.appendChild(chkUseRawName);\n vbox.appendChild(autoComplete);\n\n }",
"public int getChildCount() { return data.length; }",
"public int getChildCount() { return 0; }",
"@Override\n protected void setChildrenEmptyFlags() {\n this.setIsRutaCollectionEmpty();\n }",
"private int[] getChildren(int index) {\r\n int[] children = new int[] {\r\n 2 * index + 1,\r\n 2 * index + 2\r\n };\r\n return children;\r\n }",
"@SuppressWarnings(\"unchecked\")\n private void initAdjList()\n {\n adjList = new ArrayList[v];\n\n for(int i = 0; i < v; i++)\n {\n adjList[i] = new ArrayList<>();\n }\n }",
"private Node(int c) {\n this.childNo = c; // Construct a node with c children.\n }",
"public void initializeSelectionArray(){\n\t\ttry{Element root = new XmlReader().parse(Gdx.files.internal(xmlFile));\n\t\tElement artist = root.getChildByName(formatName(game.getArtist()));\n\t\tElement quesNum = artist.getChildByName(Integer.toString(game.getQuestion()));\n\t\tArray<Element> answerE = quesNum.getChildrenByName(\"Option\");\n//\t\tint count = answerE.size;\n//\t\tanswers = new String[count];\n\t\tfor (int i = 0; i <answerE.size; i++){\n//\t\t\tModify to add to the two lists\n//\t\t\tDelete the reference to the answers array\n//\t\t\tanswers[i]=answerE.get(i).getText();\n\t\t\t\n\t\t\toptions.add(answerE.get(i).getText());\n\t\t\toptionsList.add(answerE.get(i).getText());\n\t\t}\n\t\t}\n\t\tcatch(IOException e){\n\t\t}\n\t}",
"protected TreeChild () {\n }",
"private void initialize() {\r\n\r\n\t\tserverNode = new TreeParent(\"Servers\", \"Servers\", \"AA\", this);\r\n\t\tserverNode.setImageKey(\"System.gif\");\r\n\r\n\t\tnewServerNode = new TreeParent(\"NewServerWizard\", \"New Server\", \"AA\", this);\r\n\t\tnewServerNode.setImageKey(\"ApplicationFilter.gif\");\r\n\t\tnewServerNode.setExpandable(false);\r\n\t\tserverNode.addChild(newServerNode);\r\n\t\tnewServerNode.addChild(new TreeObject(\"Dummy\"));\r\n\t\r\n\t\tloadServers(serverNode);\r\n\r\n\t\tpreferenceNode = new TreeParent(\"Systems\", \"Preferences\", \"BB\", this);\r\n\t\tpreferenceNode.setImageKey(\"preference_page.gif\");\r\n\t\tpreferenceNode.addChild(new TreeObject(\"Dummy\"));\r\n\r\n\t\tinvisibleRoot = new TreeParent(\"\", \"InvisibleRoot\", \"AA\", this);\r\n\t\tinvisibleRoot.addChild(serverNode);\r\n\t\tinvisibleRoot.addChild(preferenceNode);\r\n\r\n\t}",
"public ContextBodyBlock() {\n super();\n\r\n setChild(new List(), 0);\r\n setChild(new List(), 1);\r\n setChild(new List(), 2);\r\n\r\n }",
"public DynamicModelPart buildChildren() {\n this.children.parallelStream().forEach(child -> {\n child.build();\n });\n return this;\n }",
"public JdbNavTree(Object [] value) {\r\n super(value);\r\n commonInit();\r\n }",
"public JdbTree(Object [] value) {\r\n super(value);\r\n commonInit();\r\n }",
"public ArrayTaskList() {\n\t\tcount = 0;\n\t\tmassTask = new Task[10];\n\t}",
"private void initializeGraphAsEmpty() {\n int max = getNumNodes();\n\n parentMatrix = new int[getNumNodes()][max];\n childMatrix = new int[getNumNodes()][max];\n\n for (int i = 0; i < getNumNodes(); i++) {\n parentMatrix[i][0] = 1; //set first node\n childMatrix[i][0] = 1;\n }\n\n for (int i = 0; i < getNumNodes(); i++) {\n for (int j = 1; j < max; j++) {\n parentMatrix[i][j] = -5; //set first node\n childMatrix[i][j] = -5;\n }\n }\n }",
"public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }",
"public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }",
"public Runnable init(List<String> children, DataCallback cb) {\n\t\t\t\t\t\t\t\t\tthis.children = children;\n\t\t\t\t\t\t\t\t\tthis.cb = cb;\n\n\t\t\t\t\t\t\t\t\treturn this;\n\t\t\t\t\t\t\t\t}",
"@Override\n\tpublic void setChildren(TreeNode[] children) {\n\t\t\n\t\tthis.children = (DepartmentTreeNode[]) children;\n\t}",
"public XMLElement[] getChildren()\n/* */ {\n/* 532 */ int childCount = getChildCount();\n/* 533 */ XMLElement[] kids = new XMLElement[childCount];\n/* 534 */ this.children.copyInto(kids);\n/* 535 */ return kids;\n/* */ }",
"@Override\n\tpublic void setChildren(TreeNode[] children) {\n\t\tthis.children = (CourseTreeNode[])children;\n\t}",
"private void init() {\r\n head = new DLList.Node<T>(null);\r\n head.setNext(tail);\r\n tail = new DLList.Node<T>(null);\r\n tail.setPrevious(head);\r\n size = 0;\r\n }",
"public PartialTreeList() {\r\n \trear = null;\r\n \tsize = 0;\r\n }",
"private void initialize() {\n\n\t\tint totalSets, iSet;\n\t\tInformationSet infoSet = null;\n\t\tTreeNode treeNode = null;\n\n\t\tArrayList informationSetList = efg.getInformationSets(iPlayer);\n\n\t\ttotalSets = informationSetList.size();\n\n\t\tmovesLists = new ArrayList[totalSets];\n\t\tprobsLists = new ArrayList[totalSets];\n\n\t\tfor (iSet = 0; iSet < totalSets; iSet++) {\n\t\t\tmovesLists[iSet] = new ArrayList();\n\t\t\tprobsLists[iSet] = new ArrayList();\n\t\t}\n\n\t\tfor (iSet = 0; iSet < totalSets; iSet++) {\n\t\t\tinfoSet = (InformationSet) informationSetList.get(iSet);\n\t\t\ttreeNode = infoSet.getTreeNode(0);\n\t\t\tmovesLists[iSet] = treeNode.getMovesList();\n\t\t}\n\t}",
"public ArrBag()\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n }",
"public ZYArraySet(int initLength){\n if(initLength<0)\n throw new IllegalArgumentException(\"The length cannot be nagative\");\n elements = (ElementType[])new Object[initLength];\n }",
"public RoutingTree(int size){\r\n\t\tthis.routes = new Route[size];\r\n\t}",
"private int numChildren(int index){\n\t\t\n\t\tint children = 0;\n\t\t\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 1] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 2] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\treturn children;\n\t}",
"public static void InitLattice(int maxLevel)\n\t{\n\t\ttheArray = new Node[maxLevel][maxLevel];\n\t\tfor (int r = 0; r < maxLevel; r++) {\n\t\t\tfor (int c = 0; c < maxLevel -r; c++)\n\t\t\t{\n\t\t\t\ttheArray[r][c] = new Node();\n\t\t\t\ttheArray[r][c].item = 0; \n } \n }\n\t\troot = theArray[0][0];\n }",
"public Node()\n {\n this.name=\"/\";\n this.type=0;\n this.stage=0;\n children=new ArrayList<Node>();\n }",
"public CircularArray() {\n\t\tthis(DEFAULT_SIZE);\n\t}",
"private ImmutableList<Node> constructChildNodes(@Nullable List<Step> childSteps) {\n if (childSteps != null && !childSteps.isEmpty()) {\n List<Node> children = new ArrayList<>();\n for (Step childStep : childSteps) {\n children.add(new Node(childStep));\n }\n\n ImmutableList.Builder<Node> builder = new ImmutableList.Builder<>();\n builder.addAll(children);\n return builder.build();\n }\n\n return null;\n }",
"public BubSortList() {\n\t\tray = new int[MAXSIZE];\n\t\tnowLength = 0;\n\t}",
"public Child() {\n\t\tsuper(20);\n\t}",
"PriorityQueueUsingArray(int size) {\n\t\tthis.array = new Nodes[size + 1];\n\t}",
"private RubyArray(Ruby runtime, RubyClass klass, int length) {\n super(runtime, klass);\n values = new IRubyObject[length];\n }",
"public int getChildCount()\n {\n return mChildren.length; // The indexes and constraints\n }",
"public TreeList()\n {\n\t this.lst = new AVLTree();\n\t this.length = 0;\n }",
"private RubyArray(Ruby runtime, long length) {\n super(runtime, runtime.getArray());\n checkLength(length);\n values = new IRubyObject[(int)length];\n }",
"public SpecimenArray()\r\n\t{\r\n\t\tsuper();\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void init()\n\t{\n\t\tscore = 0;\n\t\tlives = 3;\n\t\tgameTime = 0;\n\n\t\t\t/*initialize an array of array lists\n\t\t\tfor storing game objects currently in world\t\t\t\n\t\t\tAsteroids: index 0\n\t\t\tPlayer ship: index 1\n\t\t\tNon player ship: index 2\n\t\t\tenemy missile: index 3\n\t\t\tfriendly missile: index 4\n\t\t\tSpace station: index 5\n\t\t\t*/\t\t\n\t\t\tgameObj = new ArrayList[6];\n\t\t\tfor(int i = 0; i<gameObj.length; i++)\n\t\t\t{\n\t\t\t\tgameObj[i] = new ArrayList<GameObject>();\n\t\t\t}\n\t}",
"public void init() {\n\t\tfor (Node node : nodes)\n\t\t\tnode.init();\n\t}",
"public PageList(){\n count = 0;\n capacity = 4;\n itemArray = new int[capacity];\n }",
"public JdbNavTree() {\r\n super(new Object [] {});\r\n commonInit();\r\n }",
"public void initializeNestedArrayList() {\n List<List<Integer>> list = new ArrayList<List<Integer>>();\n }",
"public GenericDynamicArray(int initialCapacity) {\n if (initialCapacity < 0) throw new IllegalArgumentException(\"Illegal array size: \" + initialCapacity);\n this.capacity = initialCapacity;\n genericArrayList = (T[]) new Object[initialCapacity];\n }",
"private void init() {\n\t\thead = -1;\n\t\tnumElements = 0;\n\t}",
"public RecursiveArray(int[] arr){\r\n //creates initial array and use it to substantiate array size\r\n this.arr = arr;\r\n this.arraySize = arr.length;\r\n }",
"public Node[] getChildren(){return children;}",
"public DynamicModelPart buildChildrenUsingSeeds() {\n this.children.parallelStream().forEach(child -> {\n child.buildUsingSeeds();\n });\n return this;\n }",
"public GenealogyTree(T root) {\r\n tree = (T[]) new Object[SIZE];\r\n tree[0] = root;\r\n }",
"public void setChildIdList(IdList childIdList) {\n _childIdList = childIdList;\n }",
"public abstract int getNumChildren();",
"public ArrayContainer() {\n this(DEFAULT_CAPACITY);\n }",
"public void setChildren(List<State> aChildren);",
"List() {\n final int ten = 10;\n list = new int[ten];\n size = 0;\n }",
"public static void computeChildren() {\n\t\tArrayList<BNNode> children = new ArrayList<BNNode>();\n\t\t// For each node, build an array of children by checking which nodes have it as a parent.\n\t\tfor (BNNode node : nodes) {\n\t\t\tchildren.clear();\n\t\t\tfor (BNNode node2 : nodes) {\n\t\t\t\tif (node == node2)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (BNNode node3 : node2.parents)\n\t\t\t\t\tif (node3 == node)\n\t\t\t\t\t\tchildren.add(node2);\n\t\t\t}\n\t\t\tnode.children = new BNNode[children.size()];\n\t\t\tnode.children = (BNNode[]) children.toArray(node.children);\n\t\t}\n\t}",
"public void initialize(int size);",
"private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}",
"public OrderedSuperArray(){\n\tsuper();\n }",
"public TreeItem(int n, Symbol l, TreeItem[] x) {\n\n\t\ttruncated = false;\n\t\tnumChildren = n;\n\t\tlabel = l;\n\t\tchildren = new TreeItem[n];\n\t\tfor (int i = 0; i < numChildren; i++) {\n\t\t\tchildren[i] = x[i];\n\t\t}\n\t\tdecideNorm = false;\n\t\tisNorm = isNormal();\n\t\tdecideNorm = true;\n\t\tisEmptyString = false;\n\t\tsetNumNodes();\n\t}",
"public ListNode[] getChildren(){\n\t\tListNode[] ret = new ListNode[length()];\n\t\tListNode temp = firstNode;\n\t\tfor(int i = 0; i < ret.length && temp != null; i++){\n\t\t\tret[i] = temp;\n\t\t\ttemp = temp.getNextNode();\n\t\t}\n\n\t\treturn ret;\n\t}"
] | [
"0.7166855",
"0.7076746",
"0.69805783",
"0.6719645",
"0.6694916",
"0.6694916",
"0.6694916",
"0.64241314",
"0.6322279",
"0.62679195",
"0.59968567",
"0.59061265",
"0.5801982",
"0.57897604",
"0.5731964",
"0.5719362",
"0.5670723",
"0.5616451",
"0.5591826",
"0.5541763",
"0.5527025",
"0.5524131",
"0.5521217",
"0.55058295",
"0.54966766",
"0.5485191",
"0.54599327",
"0.54485285",
"0.54268736",
"0.5413964",
"0.5410478",
"0.5407727",
"0.54005915",
"0.53786546",
"0.53711563",
"0.5370644",
"0.53667307",
"0.5358942",
"0.5353692",
"0.5344175",
"0.5320205",
"0.5319548",
"0.5316398",
"0.5315673",
"0.53144294",
"0.53093624",
"0.530416",
"0.53036857",
"0.53028816",
"0.5297018",
"0.52883124",
"0.5287286",
"0.52804047",
"0.5280226",
"0.52719074",
"0.5270586",
"0.5270075",
"0.5261771",
"0.5255195",
"0.52500415",
"0.52457523",
"0.5229588",
"0.52281904",
"0.52267456",
"0.52229875",
"0.5222581",
"0.52213395",
"0.52176017",
"0.5210341",
"0.52005535",
"0.51982105",
"0.519597",
"0.51918787",
"0.51905954",
"0.5180956",
"0.51779026",
"0.5171935",
"0.5169286",
"0.5168516",
"0.5165801",
"0.51641643",
"0.5159806",
"0.5157608",
"0.515139",
"0.51461416",
"0.5136101",
"0.51355904",
"0.5135052",
"0.5133823",
"0.51315916",
"0.5124257",
"0.5117435",
"0.51129407",
"0.5110262",
"0.5107789",
"0.5099758",
"0.5098312",
"0.50905925",
"0.5090237",
"0.5074701"
] | 0.7494681 | 0 |
Replaces the Block child. | public void setBlock(Block node) {
setChild(node, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testReplaceBlock()\n {\n Block word1 = new WordBlock(\"block1\");\n Block word2 = new WordBlock(\"block2\");\n Block word3 = new WordBlock(\"block3\");\n\n Block parentBlock = new ParagraphBlock(Arrays.asList(word1, word2));\n\n // replace by one\n parentBlock.replaceChild(word3, word1);\n\n Assert.assertEquals(2, parentBlock.getChildren().size());\n Assert.assertSame(word3, parentBlock.getChildren().get(0));\n Assert.assertSame(word2, parentBlock.getChildren().get(1));\n Assert.assertSame(word2, word3.getNextSibling());\n Assert.assertSame(word3, word2.getPreviousSibling());\n\n // replace by nothing\n parentBlock.replaceChild(Collections.<Block>emptyList(), word2);\n\n Assert.assertEquals(1, parentBlock.getChildren().size());\n Assert.assertSame(word3, parentBlock.getChildren().get(0));\n Assert.assertNull(word3.getNextSibling());\n Assert.assertNull(word3.getPreviousSibling());\n\n // replace by several\n parentBlock.replaceChild(Arrays.asList(word1, word2), word3);\n\n Assert.assertEquals(2, parentBlock.getChildren().size());\n Assert.assertSame(word1, parentBlock.getChildren().get(0));\n Assert.assertSame(word2, parentBlock.getChildren().get(1));\n Assert.assertSame(word2, word1.getNextSibling());\n Assert.assertSame(word1, word2.getPreviousSibling());\n\n // Provide not existing block to replace\n this.thrown.expect(InvalidParameterException.class);\n parentBlock.replaceChild(word3, new WordBlock(\"not existing\"));\n }",
"@Override\n\tpublic int getReplaceBlock() {\n\t\treturn 0;\n\t}",
"@Override\n protected SyntaxTreeNode rewriteBlock(@Nonnull final BlockBuilder parent, @Nonnull final Block block) {\n final String content = concatNodeContent(block.getChildren());\n\n final SyntaxTreeNode first = parent.getChildren().stream().findFirst().orElse(null);\n assert first != null;\n\n // Create a new span containing this content\n final SpanBuilder span = new SpanBuilder();\n span.setEditHandler(new SpanEditHandler(HtmlTokenizer.createTokenizeDelegate()));\n fillSpan(span, first.getStart(), content);\n return span.build();\n }",
"public void setBlock(Block newBlock) {\n\t\tthis.block = newBlock;\n\t}",
"@Override\n protected void setBlock(Block block) {\n super.setBlock(block);\n updateAffectedBlocks();\n }",
"void updateBlock(Block block) ;",
"Node replaceChild(Node newChild, Node oldChild);",
"@Override\n\tpublic boolean replaceChild(Node existing, Node by) {\n\t\treturn false;\n\t}",
"private void setBlock(Block block) {\r\n this.block = block;\r\n }",
"public abstract void removeBlock();",
"@Override\r\n\t\tpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public static void putNewParentInStubMap(Long blockID) {\n String key = Block.getBlock(blockID).getBlockLabel() + Block.getBlock(blockID).getGenusName();\n if (parentNameToParentBlocks.get(key) == null) {\n parentNameToParentBlocks.put(key, new HashSet<Long>());\n }\n parentNameToParentBlocks.get(key).add(blockID);\n\n if (parentNameToBlockStubs.get(key) == null) {\n parentNameToBlockStubs.put(key, new HashSet<Long>());\n }\n\n // notify dangling stubs and update their renderables\n // dangling stubs will be waiting to have a parent assigned to them\n // and reflect that graphically\n //TODO(user) Figure out if/how dangling stubs come about and whether they\n // should.\n for (Long stubID : parentNameToBlockStubs.get(key)) {\n BlockStub stub = (BlockStub) Block.getBlock(stubID);\n stub.notifyRenderable();\n }\n\n }",
"public void replaceChildComponent(Widget oldComponent, Widget newComponent) {\n if (oldComponent != layout) {\n return;\n }\n \n setWidget(newComponent);\n layout = (Paintable) newComponent;\n }",
"private void replaceNode(Node curr, Node child, AtomicReference<Node> rootRef) {\n\t\tchild.parent = curr.parent;\n if(curr.parent == null) {\n \trootRef.set(child);\n }\n else {\n if(isLeftChild(curr)) {\n \tcurr.parent.left = child;\n } else {\n \tcurr.parent.right = child;\n }\n }\n\t}",
"public abstract void appendBlock();",
"public void replaceChild(Node child, Node newChild)\n\t{\n\t\tint index =0;\n\t\tif (children.contains(child))\n\t\t{\n\t\t\tindex=children.indexOf(child);\n\t\t\tchildren.set(index, newChild);\n\t\t}\n\t}",
"public void fillBlock(TYPE typeOfBlock){\n isFull=true;\n type=typeOfBlock;\n return;\n }",
"@Override\r\n\tpublic Node visitBlock(BlockContext ctx) {\n\t\treturn super.visitBlock(ctx);\r\n\t}",
"private void addBlock(Block one)\n\t{\n\t\tgetChildren().add(one);\n\t\tblocks1.add(one);\n\t\tblocks2.add(one);\n\t}",
"public void updateMainBlock() {\n\t\tthis.mainblock = player.getWorld().getBlockAt(player.getLocation().add(0, -1, 0));\n\t}",
"void removeBlock(Block block);",
"public String updateProductionBlock(ProductionBlock pb);",
"void coreReplaceWith(CoreChildNode newNode) throws CoreModelException;",
"public boolean replaceChild( PlanNode child,\n PlanNode replacement ) {\n assert child != null;\n assert replacement != null;\n if (child.parent == this) {\n int i = this.children.indexOf(child);\n if (replacement.parent == this) {\n // Swapping the positions ...\n int j = this.children.indexOf(replacement);\n this.children.set(i, replacement);\n this.children.set(j, child);\n return true;\n }\n // The replacement is not yet a child ...\n this.children.set(i, replacement);\n replacement.removeFromParent();\n replacement.parent = this;\n child.parent = null;\n return true;\n }\n return false;\n }",
"private Node<S> replaceBlock(final BlockRecord<N, S> record, final S letter) {\n Node<S> node = record.node;\n\n // case : [c b^l b^t d] or [c bbb...bbb d]\n if(wordProperties.isNonCompressedBlockAt(node)) {\n while(wordProperties.isNonCompressedBlockAt(node)) {\n Node<S> removal = node;\n node = node.getNext();\n removal.remove();\n }\n node.setElement(letter);\n } // case : [c b^l d]\n else if(wordProperties.isCompressedBlockAt(node)) {\n node.setElement(letter);\n }\n else if(record.block.getLength() == 1 && node.getElement().equals(record.block.getLetter())) {\n node.setElement(letter);\n }\n\n return node;\n }",
"public Block getBlockNoTransform() {\n return (Block) getChildNoTransform(0);\n }",
"Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }",
"public boolean replaceSubBlock(StructuredBlock oldBlock,\n\t\t\tStructuredBlock newBlock) {\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tif (subBlocks[i] == oldBlock) {\n\t\t\t\tsubBlocks[i] = newBlock;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public void visitBlockStmt(BlockStmt stmt) {\n enterBlockStmt(stmt);\n super.visitBlockStmt(stmt);\n leaveBlockStmt(stmt);\n }",
"public void setBlock(int x, int y, int id) {\n\t\tint[] xy = expandTo(x, y);\n\t\tx = xy[0];\n\t\ty = xy[1];\n\n\t\tif(!checkCanBePlaced(x, y, id))\n\t\t\treturn;\n\n\t\tsetBlockRaw(x, y, id);\n\t\tsignalBlockChange(x, y);\n\t\tupdateSensors(x, y, id);\n\t\trenderer.resizeBuffer();\n\n\t\tBlock.getBlock(id).onPlace(x, y, this);\n\t\t\n\t\t//TODO break object into multiple parts.\n\t}",
"private void trueRevertBlock() {\r\n\t\tthis.reverted = true;\r\n\t\tif (instances_.containsKey(this.block)) {\r\n\t\t\tPaperLib.getChunkAtAsync(this.block.getLocation()).thenAccept(result -> {\r\n\t\t\t\tTempBlock last = instances_.get(this.block).getLast();\r\n\t\t\t\tthis.block.setBlockData(last.newData); //Set the block to the next in line TempBlock\r\n\t\t\t});\r\n\t\t} else { //Set to the original blockstate\r\n\t\t\tPaperLib.getChunkAtAsync(this.block.getLocation()).thenAccept(result -> revertState());\r\n\t\t}\r\n\r\n\t\tREVERT_QUEUE.remove(this);\r\n\t\tif (this.revertTask != null) {\r\n\t\t\tthis.revertTask.run();\r\n\t\t}\r\n\r\n\t\tfor (TempBlock attached : attachedTempBlocks) {\r\n\t\t\tattached.revertBlock();\r\n\t\t}\r\n\t}",
"public void addBlock(Block newBlock) {\n\t\tBLOCK_LIST.add(newBlock);\n\t\tSPRITE_LIST.add(newBlock);\n\t}",
"public void setChildBlockId(String childBlockId) {\n this.childBlockId = childBlockId;\n }",
"@Test\r\n\t\tpublic void testTableBlockTranslationUpdatesChildAVs() throws Exception {\r\n\t\t\tInteger tableAvId = 999;\r\n\t\t\tTemplateTableBlockDTO block = createTableBlock(tableAvId, null);\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tSet<Integer> ids = new HashSet<>();\r\n\t\t\t\r\n\t\t\tList<INode> children = new ArrayList<>();\r\n\t\t\tINode child1 = mock(INode.class);\r\n\t\t\t\r\n\t\t\t//the child variable markers which should be replaced\r\n\t\t\tString var111 = String.format(TemplateTableBlockDTO.VAR_FORMAT, 111);\r\n\t\t\tString var222 = String.format(TemplateTableBlockDTO.VAR_FORMAT, 222);\r\n\t\t\tString tableVar = String.format(TemplateTableBlockDTO.VAR_FORMAT, tableAvId);\r\n\t\t\t\r\n\t\t\t//using the block's same logic to create freemarker variables\r\n\t\t\tString tableHashName = block.createTableHashName(sb);\r\n\t\t\tString rowIndexName = block.createRowIndexName(sb);\r\n\t\t\t\r\n\t\t\t//what children are supposed to be replaced with\r\n\t\t\tString var111Replacement = String.format(TemplateTableBlockDTO.REPLACEMENT_FORMAT, tableHashName, var111, rowIndexName);\r\n\t\t\tString var222Replacement = String.format(TemplateTableBlockDTO.REPLACEMENT_FORMAT, tableHashName, var222, rowIndexName);\r\n\t\t\t\r\n\t\t\t//Add the mock content for the child blocks which we want the table block dto to update with the correct replacement.\r\n\t\t\tStringBuilder childContent = new StringBuilder(\r\n\t\t\t\t\t \"test content\" + var111\r\n\t\t\t\t\t+\"table var next\" + tableVar\r\n\t\t\t\t\t+\"more content\" + var111\r\n\t\t\t\t\t+\"even more content\"+ var222 + \"lastContent\");\r\n\t\t\t\r\n\t\t\twhen(child1.appendFreeMarkerFormat(any(StringBuilder.class), eq(ids), any(AssessmentVariableService.class))).thenReturn(childContent);\r\n\t\t\tchildren.add(child1);\r\n\t\t\tblock.setChildren(children);\r\n\t\t\t\r\n\t\t\tString result = block.appendFreeMarkerFormat(sb, ids, createServiceForBlock(block)).toString();\r\n\t\t\t\r\n\t\t\tString expected = \"test content\" + var111Replacement\r\n\t\t\t\t\t+\"table var next\" + tableVar // this should not be changed\r\n\t\t\t\t\t+\"more content\" + var111Replacement\r\n\t\t\t\t\t+\"even more content\"+ var222Replacement + \"lastContent\";\r\n\t\t\t\r\n\t\t\tassertTrue(\"Expected to find the following content: \\n\" + expected + \"\\nIn block output:\\n\" + result, result.contains(expected));\r\n\t\t}",
"public Block() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tthis.point_BlockTopRight = null;\r\n\t\tthis.point_BlockDownleft = null;\r\n\t\tthis.setpoint_BlockTopLeft(null);\r\n\t\tthis.IDBloack = 0;\r\n\t\tthis.type = \"\";\r\n\t}",
"public void replaceNodes() {\n for (ConstantPropagationInformation information : constantPropagations) {\n information.parent.getChildren().set(information.childIndex, information.replacement);\n }\n }",
"public void replaceChildFragment(Fragment parentFragment, Fragment fragment, int containerId, String strFragmentTag, boolean flagIsAddToBackStack) {\n FragmentManager fragmentManager = parentFragment.getChildFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(containerId, fragment, strFragmentTag);\n if (flagIsAddToBackStack)\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }",
"private static void craftSlab(Block block)\r\n\t{\r\n\t\tBlockExtraSlab input = ((BlockExtraSlab)block);\r\n\t\tBlock parent = input.getParent();\r\n\t\tint parentMeta = input.getParentMeta();\r\n\t\t\r\n\t\tGameRegistry.addRecipe(new ItemStack(block, 6, 0), new Object[] { \"###\", '#', new ItemStack(parent, 1, parentMeta) });\r\n\t\tGameRegistry.addRecipe(new ItemStack(parent, 1, parentMeta), new Object[] { \"#\", \"#\", '#', new ItemStack(block) });\r\n\t}",
"@Override\r\n\tpublic void visit(BlockExpression blockExpression) {\n\r\n\t}",
"final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }",
"public Block getBlockNoTransform() {\n return (Block)getChildNoTransform(0);\n }",
"private static void replaceInsn(BlockNode block, int i, InsnNode insn) {\n InsnNode prevInsn = block.getInstructions().get(i);\n insn.getAttributes().addAll(prevInsn.getAttributes());\n block.getInstructions().set(i, insn);\n }",
"@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\n\tpublic void onPlaceBlock(BlockPlaceEvent e) {\n\t\tBlock block = e.getBlock();\n\n\t\tMaterial blockMaterial = block.getType();\n\t\tint x = block.getX();\n\t\tint y = block.getY();\n\t\tint z = block.getZ();\n\t\tWorldChunk chunk = CropControl.getDAO().getChunk(block.getChunk());\n\n\t\tif (CropControl.getDAO().isTracked(block) == true) {\n\t\t\t// We've got a replacement\n\t\t\tCropControl.getPlugin().debug(\"Ghost object? Placement is overtop a tracked object at {0}, {1}, {2}\", x, y, z);\n\t\t\thandleRemoval(block, chunk);\n\t\t}\n\t\tif (harvestableCrops.containsKey(blockMaterial)) {\n\t\t\t// we placed a block overtop an existing crop. Will be handled by a break event?\n\t\t\t/*Crop crop = chunk.getCrop(x, y, z);\n\t\t\tif (crop != null) {\n\t\t\t\tcrop.setRemoved();\n\t\t\t\tCropControl.getPlugin().debug(\"Missed an event? Replacing a Crop at {0}, {1}, {2}\", x, y, z);\n\t\t\t\t//return;\n\t\t\t}*/\n\t\t\t\n\t\t\t// We've placed a crop!\n\t\t\tCrop.create(chunk, x, y, z, blockMaterial.toString(), getBaseCropState(blockMaterial),\n\t\t\t\t\te.getPlayer().getUniqueId(), System.currentTimeMillis(), harvestableCrops.get(blockMaterial));\n\t\t} else if (blockMaterial == Material.SAPLING) {\n\t\t\t// we placed a block overtop an existing sapling. TODO: Do I need to remove sapling here, or will there be a break event?\n\t\t\t/*Sapling sapling = chunk.getSapling(x, y, z);\n\t\t\tif (sapling != null) {\n\t\t\t\tsapling.setRemoved();\n\t\t\t\tCropControl.getPlugin().debug(\"Missed an event? Replacing a Sapling at {0}, {1}, {2}\", x, y, z);\n\t\t\t\t//return;\n\t\t\t}*/\n\t\t\t// We've placed a sapling!\n\t\t\tSapling.create(chunk, x, y, z, getSaplingType(block.getData()),\n\t\t\t\t\te.getPlayer().getUniqueId(), System.currentTimeMillis(), false);\n\t\t} else if (blockMaterial == Material.CHORUS_FLOWER) {\n\t\t\t/*if (CropControl.getDAO().isTracked(block) == true) {\n\t\t\t\tCropControl.getPlugin().debug(\"Ghost object? Placement is overtop a tracked object at {0}, {1}, {2}\", x, y, z);\n\t\t\t\t//return;\n\t\t\t}*/\n\t\t\t\n\t\t\t// TODO: Check if connected to an existing chorus tree.\n\n\t\t\t// First register the \"tree\"\n\t\t\tTree chorusPlant = Tree.create(chunk, x, y, z, Material.CHORUS_PLANT.toString(),\n\t\t\t\t\te.getPlayer().getUniqueId(), System.currentTimeMillis());\n\n\t\t\t// Then the component in the tree.\n\t\t\tTreeComponent.create(chorusPlant, chunk, x, y, z, Material.CHORUS_PLANT.toString(),\n\t\t\t\t\te.getPlayer().getUniqueId(), false);\n\t\t} else if (blockMaterial.isSolid()){ // check for cactus.\n\t\t\tfor (BlockFace face : CropControlEventHandler.directions) {\n\t\t\t\tBlock adj = block.getRelative(face);\n\t\t\t\tif (Material.CACTUS == adj.getType()) {\n\t\t\t\t\tLocation loc = adj.getLocation();\n\t\t\t\t\tif (!pendingChecks.contains(loc)) {\n\t\t\t\t\t\tpendingChecks.add(loc);\n\t\t\t\t\t\thandleBreak(adj, BreakType.PLAYER, e.getPlayer().getUniqueId(), null);\n\t\t\t\t\t}\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private static void registerBlock(Block b)\n\t{\n\t}",
"private void defineDeathBlock() {\r\n BallRemover removeBall = new BallRemover(this);\r\n Rectangle death = new Rectangle(new Point(0, HEIGHT), WITH, 10);\r\n Block deathRegion = new Block(death, Color.black,0);\r\n deathRegion.addHitListener(removeBall);\r\n deathRegion.addToGame(this);\r\n }",
"@Override\n public void endBlock() {\n }",
"public void transform() {\n\t\tthis.targetRootBlock = copy(this.sourceRootBlock);\n\n\t\tList<BlockImpl> blocks = allSubobjectsOfKind(targetRootBlock,\n\t\t\t\tBlockImpl.class);\n\t\tList<Block> emptyBlocks = new LinkedList<Block>();\n\t\tfor (Block block : blocks) {\n\t\t\tif (block.getModelElement().size() == 0) {\n\t\t\t\temptyBlocks.add(block);\n\t\t\t}\n\t\t}\n\n\t\tfor (Block block : emptyBlocks) {\n\t\t\tcreateSquare(block);\n\t\t\tEcoreUtil.delete(block);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Completed Transformation\");\n\t\t}\n\t}",
"public abstract void updateBlockRecord();",
"public void setBlockRaw(int x, int y, int id) {\n\t\tnumber -= getBlock(x, y).getTextureLayers(x, y, this);\n\n\t\tblocks[x + width * y] = id;\n\n\t\tnumber += Block.getBlock(id).getTextureLayers(x, y, this);\n\n\t\tFixtureDef[] fd = Block.getBlock(id).getPhysics(x, y, this);\n\n\t\tif(fd != null) {\n\t\t\tcreateFixture(fd);\n\t\t} else {\n\t\t\tif(hasBlockAdjacent(x, y)) {\n\t\t\t\tcreateSensor(x, y);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void visitXblock(Xblock p) {\n\n\t}",
"public void putBlock(Block block){\n\t \n\t BlockPosX = 5;\n\t BlockPosY = 0;\n\t int posX = 5;\n\t int posY = 0;\n\t BlockInControl = block;\n\t \n\t int x = 0;\n\t for(int i=0;i<MAX_COL;i++){\n\t\tif(board[posY+1][i] == 1)\n\t\t x = 1;\n\t }\n\t if(x==1)\n\t\tthis.clearBoard();\n\t \n\t \n\t for(int r=0;r<4;r++){\n\t\tfor(int c=0;c<4;c++){\n\t\t if(block.getRowCol(r,c) == 1)\n\t\t\t{\n\t\t\t board[posY][posX]=1;\n\t\t\t \n\t\t\t switch(whichType){\n\t\t\t case 1: color[posY][posX] = 1;\n\t\t\t\tbreak;\n\t\t\t case 2: color[posY][posX] = 2;\n\t\t\t\tbreak;\n\t\t\t case 3: color[posY][posX] = 3;\n\t\t\t\tbreak;\n\t\t\t case 4: color[posY][posX] = 4;\n\t\t\t\tbreak;\n\t\t\t case 5: color[posY][posX] = 5;\n\t\t\t\tbreak;\n\t\t\t case 6: color[posY][posX] = 6;\n\t\t\t\tbreak;\n\t\t\t case 7: color[posY][posX] = 7;\n\t\t\t break;\n\t\t\t }\n\t\t\t}\n\t\t \n\t\t posX++;\n\t\t}\n\t posY++;\n\t posX-=4;\n\t }\n\t}",
"private Block replaceMethodChain(Block oldBlock) throws LookupException {\n // The defined variables\n Stack<Variable> variables = new Stack<>();\n // The parameter passed to the {@code Constants.CREATE_DOCUMENT} method\n FormalParameter formalParameter = oldBlock.nearestAncestor(Method.class).formalParameter(0);\n variables.push(formalParameter);\n // Use a string as we constantly have to create new NameExpressions\n lastElement = null;\n\n Block block = new Block();\n oldBlock.replaceWith(block);\n Block loneCode = oFactory().createBlock();\n loneCode.setMetadata(new TagImpl(), Neio.LONE_CODE);\n int prevCodeId = -1;\n\n List<Statement> statements = new ArrayList<>(oldBlock.statements());\n for (int i = 0; i < statements.size(); i++) {\n Statement statement = statements.get(i);\n // Is this a block of lonecode\n if (statement.hasMetadata(Neio.LONE_CODE)) {\n int id = ((CodeTag) statement.metadata(Neio.LONE_CODE)).id();\n // New codeblock\n if (loneCode.nbStatements() <= 0) {\n prevCodeId = id;\n }\n // Statement in same block\n if (id == prevCodeId) {\n loneCode.addStatement(statement);\n // Accumulate all of the statements of the lonecode\n if (i < statements.size() - 1) {\n continue;\n }\n // Process the last instruction, aka the last lonecode\n else {\n statement = loneCode;\n }\n }\n // New lonecode\n else {\n prevCodeId = id;\n statement = loneCode;\n // We still have to process the second block\n i--;\n }\n }\n // Set the counter back by one and process the lonecode\n else if (loneCode.nbStatements() > 0) {\n i--;\n statement = loneCode;\n }\n\n // Handles a codeblock if there is one\n statement = fixCodeBlock(block, statement, variables, loneCode);\n if (statement == null) {\n continue;\n }\n\n Stack<RegularMethodInvocation> callStack = new Stack<>();\n // MethodInvocations start from the back so push the invocations on a stack to get the correct order\n RegularMethodInvocation inv;\n Element methodChain = statement;\n while ((inv = getInvocation(methodChain)) != null) {\n callStack.push(inv);\n methodChain = inv;\n if (inv.getTarget() instanceof ThisLiteral) {\n break;\n }\n }\n\n\n breakupMethodChain(callStack, variables, block, methodChain, statement);\n }\n\n return block;\n }",
"Tetrisblock2()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }",
"@Override\n\tpublic final boolean renderAsNormalBlock()\n\t{\n\t\treturn false;\n\t}",
"public ContextBodyBlock() {\n super();\n\r\n setChild(new List(), 0);\r\n setChild(new List(), 1);\r\n setChild(new List(), 2);\r\n\r\n }",
"public void\nsetHirBody( BlockStmt pHirBody );",
"public SolveFringeElement(Tray tray, SolveFringeElement parent,\r\n\t\t\tPoint oldBlockPosition, Point newBlockPosition) {\r\n\t\tif (tray == null) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\tthis.tray = tray;\r\n\t\tthis.parent = parent;\r\n\t\tthis.oldBlockPosition = oldBlockPosition;\r\n\t\tthis.newBlockPosition = newBlockPosition;\r\n\t}",
"@Test \r\n public void testSetExpandedChildAtExpandedMore() {\r\n getView().setShowRoot(true);\r\n TreeItem child = createBranch(\"single-replaced-child\");\r\n child.setExpanded(true);\r\n int index = 3;\r\n setItem(index -1, child);\r\n getSelectionModel().select(index);\r\n TreeItem expandedChild = createBranch(\"another-single-replaced\");\r\n // replacingChild has more children\r\n expandedChild.getChildren().add(createItem(\"excess grandChild\"));\r\n expandedChild.setExpanded(true);\r\n assertEquals(\"sanity: replacing child has more children and both expanded\", \r\n child.getChildren().size() + 1, expandedChild.getChildren().size());\r\n setItem(index -1, expandedChild);\r\n \r\n assertEquals(index, getSelectedIndex());\r\n assertEquals(expandedChild, getSelectedItem());\r\n }",
"@Test \r\n public void testSetExpandedChildAtExpandedSame() {\r\n getView().setShowRoot(true);\r\n TreeItem child = createBranch(\"single-replaced-child\");\r\n child.setExpanded(true);\r\n int index = 3;\r\n setItem(index -1, child);\r\n getSelectionModel().select(index);\r\n // replacingChild has same # of children\r\n TreeItem expandedChild = createBranch(\"another-single-replaced\");\r\n expandedChild.setExpanded(true);\r\n assertEquals(\"sanity: same # of children and both expanded\", \r\n child.getChildren().size(), expandedChild.getChildren().size());\r\n setItem(index -1, expandedChild);\r\n\r\n assertEquals(index, getSelectedIndex());\r\n assertEquals(expandedChild, getSelectedItem());\r\n }",
"ASTNode rebuild() {\n ASTNode child = null;\n switch (this.type) {\n case \"else if statement\":\n child = children.get(0);\n break;\n\n default:\n }\n\n return this;\n }",
"public void update() {\n\t\tif (this.block.getValue() != 0) {\n\t\t\tthis.displayNumberBlock.removeAll();\n\t\t\tthis.displayNumberBlock.setLayout(new GridLayout(1,1));\n\t\t\tthis.label = new JLabel(\"\" + this.block.getValue(), SwingConstants.CENTER);\n\t\t\tthis.label.setFont(new Font(\"Serif\", Font.PLAIN, 25));\n\t\t\tthis.displayNumberBlock.add(this.label, BorderLayout.CENTER);\n\t\t\t\n\t\t\tthis.displayNumberBlock.revalidate();\n\t\t} else {\n\t\t\tthis.displayNumberBlock.removeAll();\n\t\t\tthis.displayNumberBlock.setLayout(new GridLayout(3,3));\n\t\t\t\n\t\t\tfor(int i = 0; i < SudokuPanel.gameSize; i++){\n\t\t\t\tString temp = \"\";\n\t\t\t\tif(this.getBlock().getNotes()[i]){\n\t\t\t\t\ttemp = \"\" + (i+1);\n\t\t\t\t}\n\t\t\t\tJLabel tempLabel = new JLabel(temp);\n\t\t\t\ttempLabel.setFont(new Font(\"Serif\", Font.PLAIN, 10));\n\t\t\t\tthis.displayNumberBlock.add(tempLabel);\n\t\t\t}\n\t\t\tthis.displayNumberBlock.revalidate();\n\t\t}\n\t}",
"public Block() {\n this.xPos = 0;\n this.yPos = 0;\n this.width = 0;\n this.height = 0;\n this.color = Color.MINTCREAM;\n }",
"public void PlantMe(Block block){\n \tplugin.getReplant().add(block);\r\n \t\t//run the timer to load the block\r\n \t\r\n \tif(plugin.getTreeplant_Timer().getPoolSize() < plugin.getTreeplant_Timer().getMaximumPoolSize()){\r\n \t\tplugin.getTreeplant_Timer().schedule(new Runnable() {\r\n \t\t\t\tpublic void run() {\r\n \t\t\t\t\tif(!(plugin.getReplant().isEmpty())){\r\n \t\t\t\t\t\tBlock loadedBlock = plugin.getReplant().get(0);\r\n \t\t\t\t\t\t//remove it from the list\r\n \t\t\t\t\t\tplugin.getReplant().remove(0);\r\n \t\t\t\t\t\t//protect it\r\n \t\t\t\t\t\tProtectMe(loadedBlock);\r\n \t\t\t\t\t\t//made into a sap\r\n \t\t\t\t\t\tif( (loadedBlock.getType().equals(Material.AIR)) || (loadedBlock.getType().equals(Material.FIRE)) ) //just incase it was on fire\r\n \t\t\t\t\t\t\tloadedBlock.setType(Material.SAPLING);\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t\t/* No longer needed! Didn't realized leaves light blocking changed way back when.\r\n \t\t\t\t\t\t * for(int i=loadedBlock.getY(); i < 128; i++){\r\n \t\t\t\t\t\t\t//delete all the leaves in a line to the sky limit\r\n \t\t\t\t\t\t\tif(loadedBlock.getType()==Material.LEAVES){\r\n \t\t\t\t\t\t\t\t//it's a leaf delete it\r\n \t\t\t\t\t\t\t\tloadedBlock.setType(Material.AIR);\r\n \t\t\t\t\t\t\t\t//update on server | Not needed?\r\n \t\t\t\t\t\t\t\t//etc.getServer().setBlock(leafToDelete);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t//go up one\r\n \t\t\t\t\t\t\tloadedBlock = loadedBlock.getFace(BlockFace.UP);\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}, plugin.getdelayTime(), TimeUnit.MILLISECONDS);\r\n \t}\r\n \t}",
"public void setBlockAsChanged(Integer block_id) {\n this.addIntoQueue(block_id);\n this.getBlockByID(block_id).setShadow(null);\n // getBlockByID(block_id).deleteOutputValues();// this function is missing, but probably not necessary\n for (Type port : this.getBlockByID(block_id).outputs) {\n for(Type dst_port : port.getDst()) {\n dst_port.deleteValues();\n }\n for(Integer id : port.getAllDstID()) {\n this.setBlockAsChanged(id);\n }\n }\n }",
"public void updateFragment(int CAT_ID){\n ViewContentFragment f_c_s=new ViewContentFragment();\n if(CAT_ID>0){\n f_c_s.setCat_id(CAT_ID);\n }else{\n f_c_s.setCat_id(1);\n }\n // replace the fragment with the new fragment and add it to BackStack,\n // then pop it from BackStack to get to the old fragment without overlapping the\n // old fragments...\n\n getFragmentManager().beginTransaction().replace(R.id.content_Layout,f_c_s).\n addToBackStack(String.valueOf(CAT_ID)).commit();\n getFragmentManager().popBackStack();\n }",
"void replace(CtElement element);",
"public EntangledChaliceItem(Block block) {\n super(block);\n }",
"@Override\n public void addChild(WXComponent child) {\n addChild(child, -1);\n }",
"@Override\n\tpublic void addBlock(Block block) {\n\t\tem.persist(block);\n\t}",
"Block createBlock();",
"public void placeBlockInTopResSpace(Block block, TT tt){\n ResidualSpace res = rs_stack.pop();\n\n // Place the block, this also updates the locations of the parcels inside it\n block.setLocation(res.getLocation().clone());\n\n block_placements.add(block.getId()); // Add the id of the placed block\n\n for(Parcel p:block.getPacking()){\n packing.addParcel(p);\n }\n\n this.total_value = packing.getTotalValue();\n\n // Update the hashkey\n// hashKey = tt.updateHash(hashKey, block_placements.size(), block.getId());\n\n // Remove parcels from the availability\n removeFromBres(block);\n\n // Calculate the new residual spaces\n generateDaughterResSpaces(block, res);\n }",
"@objid (\"d94cc6fc-55b6-11e2-877f-002564c97630\")\n @Override\n protected void reorderChild(final EditPart child, final int index) {\n IFigure childFigure = ((GraphicalEditPart) child).getFigure();\n super.reorderChild(child, index);\n setLayoutConstraint(child, childFigure, ((GmAbstractObject) child.getModel()).getLayoutData());\n }",
"Composite createBlockContent( Composite parent, FormToolkit toolkit );",
"private void editBaseFlow(List<SimilarBlock> simBlockToRemove, UseCase parent){\n\t\tUseCase baseUC = simBlockToRemove.get(0).getUseCase();\n\t\tFlow basicFlow = baseUC.getBasicFlow();\n\t\tList<Event> allDuplicated = new ArrayList<Event>();\n\t\tfor (SimilarBlock sb :simBlockToRemove){\n\t\t\tallDuplicated.addAll(sb.getSimilarEvents());\n\t\t}\n\t\tBoolean lastAbstract = false;\n\t\tList<Event> newList = new ArrayList<Event>();\n\t\tfor (Event e : basicFlow.getEvents()){\n\t\t\tif (allDuplicated.contains(e)){\n\t\t\t\t// Remove this abstract event\n\t\t\t\tInteger id = e.getNumber();\n\t\t\t\tif (!lastAbstract){\n\t\t\t\t\tInclusionCall newE = UCRefactoringFactory.eINSTANCE.createInclusionCall();\n\t\t\t\t\tInteger last = newList.size();\n\t\t\t\t\tnewE.setNumber(last+1);\n\t\t\t\t\tnewE.setEventId(last+1+\".\");\n\t\t\t\t\tnewE.setDetail(\"<<inherit>> \"+\"'\"+ parent.getName() +\"'\");\n\t\t\t\t\tnewList.add(newE);\n\t\t\t\t\tlastAbstract = true;\n\t\t\t\t}\n\t\t\t\t// see if some alternative flow must be removed too\n\t\t\t\tFlow rmFlow = null; \n\t\t\t\tfor (Flow aFlow : baseUC.getFlows()){\n\t\t\t\t\tif (aFlow.getName().contains(id.toString())){\n\t\t\t\t\t\trmFlow = aFlow;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (rmFlow != null){\n\t\t\t\t\tbaseUC.getFlows().remove(rmFlow);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// it is particular, leave it here\n\t\t\t\tInteger last = newList.size();\n\t\t\t\te.setNumber(last+1);\n\t\t\t\te.setEventId(last+1+\".\");\n\t\t\t\tnewList.add(e);\n\t\t\t\tlastAbstract = false;\n\t\t\t}\n\t\t}\n\t\tbasicFlow.getEvents().clear();\n\t\tbasicFlow.getEvents().addAll(newList);\n\t\tbaseUC.setParent(parent);\n\t}",
"final void setParent(ShapeParent newParent)\n {\n this.parent = newParent;\n }",
"public boolean renderAsNormalBlock()\r\n {\r\n return false;\r\n }",
"public void parse(String blockName) throws IllegalArgumentException {\n String copy = \"\";\n if (implicitMain && !\"main\".equals(blockName) && !blockName.startsWith(\"main.\")) {\n blockName = \"main.\" + blockName;\n }\n try {\n copy = blocks.get(blockName).toString();\n } catch (NullPointerException e) {\n if (!this.failSilently) {\n throw new IllegalArgumentException(\n \"Block '\" + blockName + \"' not found.\" +\n \" Matches \" + locateBlock(blockName));\n }\n }\n //pattern = Pattern.compile(\"\\\\{([\\\\w\\\\.]+)\\\\}\");\n Matcher matcher = pattern.matcher(copy);\n //blockPattern = Pattern.compile(\"_BLOCK_\\\\.(.+)\");\n for (Matcher matcher2; matcher.find(); ) {\n String match = matcher.group(1);\n matcher2 = blockPattern.matcher(match);\n if (matcher2.find()) {\n if (parsedBlocks.containsKey(matcher2.group(1))) {\n copy = copy.replaceFirst(\"\\\\{\" + match + \"\\\\}\", escape(\n parsedBlocks.get(matcher2.group(1)).toString()));\n } else {\n copy = copy.replaceFirst(\"\\\\{\" + match + \"\\\\}\", \"\");\n }\n } else {\n if (vars.containsKey(match)) {\n copy = copy.replaceFirst(\"\\\\{\" + match + \"\\\\}\", escape(\n vars.get(match).toString()));\n } else {\n // Leave unchanged because it might be wanted in output.\n // Can always be removed by assigning empty value.\n //copy = copy.replaceFirst(\"\\\\{\"+match+\"\\\\}\", \"\");\n }\n }\n }\n if (parsedBlocks.containsKey(blockName)) {\n parsedBlocks.put(blockName, parsedBlocks.get(blockName) + copy);\n } else {\n parsedBlocks.put(blockName, copy);\n }\n if (subBlocks.containsKey(blockName)) {\n parsedBlocks.put(subBlocks.get(blockName), \"\");\n }\n }",
"public Block(){\n\t\tthis.type = Code.Type.NULL;\n\t}",
"public Block getBlock() {\n return (Block)getChild(0);\n }",
"@Override\r\n\tpublic void visit(InstrumentBlock instrumentBlock) {\n\t\t\r\n\t}",
"public boolean renderAsNormalBlock(){\r\n return false;\r\n }",
"public boolean renderAsNormalBlock()\n {\n return false;\n }",
"@Override\r\n\tpublic void visit(BlockStmtNode blockStatement) {\n\t\tnameResolver.pushLocalBlock();\r\n\t\t\r\n\t\t//Push the block statement onto the execution block, that it gets\r\n\t\t//linked to the first statement in the block (if there is any)\r\n\t\t//or to the next statement (if there is no statement in this block)\r\n\t\texecPathStack.pushSingleStatementFrame(blockStatement);\r\n\t\t\r\n\t\tblockStatement.childrenAccept(this);\r\n\t\tnameResolver.popLocalBlock();\r\n\t}",
"public BuildingBlock(int setX, int setY, int size, int blockId) {\n\n this.blockId = blockId;\n revertColor = GameGrid.GAMEGRID_COLOR;\n createRectangle(setX, setY , size, revertColor);\n double circleAdjuster = size / 2.0;\n circle = new Circle(setX + circleAdjuster, setY + circleAdjuster, circleAdjuster);\n circle.setFill(revertColor);\n gridList.put(blockId, this);\n explosionSound = new AudioClip(getClass().getResource(\"explosion.wav\").toExternalForm());\n }",
"public void addOne()\n\t{\n\t\tBlock b = new Block(p1.tail.oldPosX, p1.tail.oldPosY, p1.tail, this);\n\t\tBlock b2 = new Block(p2.tail.oldPosX, p2.tail.oldPosY, p2.tail, this);\n\t\t\n\t\tb.setFill(Color.RED.desaturate());\n\t\tb2.setFill(Color.BLUE.desaturate());\n\n\t\tp1.tail = b;\n\t\tp2.tail = b2;\n\t\taddBlock(b);\n\t\taddBlock(b2);\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic <TileEntityType extends ATileEntityBase<JSONDefinition>, JSONDefinition extends AJSONMultiModelProvider> boolean setBlock(ABlockBase block, Point3d position, WrapperPlayer playerWrapper, Axis axis){\r\n \tif(!world.isRemote){\r\n \t\tBuilderBlock wrapper = BuilderBlock.blockMap.get(block);\r\n \t\tBlockPos pos = new BlockPos(position.x, position.y, position.z);\r\n \t\tif(playerWrapper != null){\r\n \t\t\tWrapperPlayer player = playerWrapper;\r\n \t \tItemStack stack = playerWrapper.getHeldStack();\r\n \t \tAItemBase item = player.getHeldItem();\r\n \t \tEnumFacing facing = EnumFacing.valueOf(axis.name());\r\n \t \tif(!world.getBlockState(pos).getBlock().isReplaceable(world, pos)){\r\n \t pos = pos.offset(facing);\r\n \t position.add(facing.getXOffset(), facing.getYOffset(), facing.getZOffset());\r\n \t \t}\r\n \t \t\r\n\t if(item != null && player.player.canPlayerEdit(pos, facing, stack) && world.mayPlace(wrapper, pos, false, facing, null)){\r\n\t \tIBlockState newState = wrapper.getStateForPlacement(world, pos, facing, 0, 0, 0, 0, player.player, EnumHand.MAIN_HAND);\r\n\t \tif(world.setBlockState(pos, newState, 11)){\r\n\t\t \t//Block is set. See if we need to set TE data.\r\n\t\t \tif(block instanceof ABlockBaseTileEntity){\r\n\t\t \t\tBuilderTileEntity<TileEntityType> builderTile = (BuilderTileEntity<TileEntityType>) world.getTileEntity(pos);\r\n\t\t \t\tWrapperNBT data;\r\n\t\t \t\tif(stack.hasTagCompound()){\r\n\t\t \t\t\tdata = new WrapperNBT(stack);\r\n\t\t \t\t}else{\r\n\t\t \t\t\tdata = new WrapperNBT();\r\n\t\t \t\t\tif(item instanceof AItemPack){\r\n\t\t\t \t\t\tdata.setString(\"packID\", ((AItemPack<?>) item).definition.packID);\r\n\t\t\t\t \t\tdata.setString(\"systemName\", ((AItemPack<?>) item).definition.systemName);\r\n\t\t\t\t \t\tif(item instanceof AItemSubTyped){\r\n\t\t\t\t \t\t\tdata.setString(\"subName\", ((AItemSubTyped<?>) item).subName);\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\tbuilderTile.tileEntity = (TileEntityType) ((ABlockBaseTileEntity) block).createTileEntity(this, position, player, data);\r\n\t\t \t}\r\n\t\t \t//Shrink stack as we placed this block.\r\n\t\t stack.shrink(1);\r\n\t\t return true;\r\n\t\t }\r\n\t }\r\n \t\t}else{\r\n \t\t\tIBlockState newState = wrapper.getDefaultState();\r\n \t\t\tif(world.setBlockState(pos, newState, 11)){\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \treturn false;\r\n }",
"@Override\n public void setParent(IStatement _statement) {\n\t this._parent = _statement;\n }",
"public void setBlock(boolean block) {\n this.block = block;\n }",
"public void changeChild(Node oldChild, Node newChild) {\r\n System.out.println(\"Variable.changeChild() should never be called!\");\r\n }",
"@Override\n public void returnBlock(Block b) {\n b.reset();\n blocks.add(b);\n if (blocks.size() > highReservedBlocks) { // too many unused blocks\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n while (blocks.size() > lowReservedBlocks) {\n this.blocks.poll().clean();\n }\n }\n }\n }",
"@Override\n public void outBlockStatement(BlockStatement node)\n {\n\n }",
"public void fillBlock(Block block) {\n\n\t\tfor (int j = block.UpperLeft().x; j <= block.LowerRight().x; j++) { \n\t\t\tfor (int k = block.UpperLeft().y; k <= block.LowerRight().y; k++) { \n\t\t\t\tblocksPosition.put(new Point(j,k), block); \n\t\t\t\t//Blocks.add(block); \n\t\t\t} \n\t\t} \n\t}",
"protected boolean renderBaseBlock(Block block, int x, int y, int z)\n\t{\n\t\treturn false;\n\t}",
"public void setBlock(final int aX, final int aY, final short aId)\r\n\t{\r\n\t\tmBlocks[aX][aY] = aId;\r\n\t}",
"public void removeFromParent(TXSemanticTag child);",
"public void blockAdded(Response block) {\n try {\n long id = block.getId(\"block\");\n blockList.add(0, block);\n blockMap.put(block.getId(\"block\"), block);\n fireTableRowsInserted(0, 0);\n } catch (IdentifierException exc) {\n // Ignore the block\n }\n }",
"protected void refresh() {\r\n // Toggle attached direction.\r\n org.bukkit.material.Sign material = new org.bukkit.material.Sign(this.getBlock().getType());\r\n material.setData(this.getSignMaterial().getData());\r\n \r\n material.setFacingDirection(material.getAttachedFace());\r\n this.getBlock().setData(material.getData());\r\n \r\n material.setFacingDirection(material.getAttachedFace());\r\n this.getBlock().setData(material.getData());\r\n }",
"private void fragmentChange(){\n HCFragment newFragment = new HCFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.hc_layout, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }",
"@Override\n public boolean setBlockState(BlockPos pos, BlockState state, int flags, int maxUpdateDepth) {\n Block newBlock = BlockShuffleMod.BLOCK_PAIRS.getOrDefault(state.getBlock(),null);\n if (newBlock != null) {\n state = newBlock.getDefaultState();\n }\n Chunk chunk = this.getChunk(pos);\n BlockState blockState = chunk.setBlockState(pos, state, false);\n if (blockState != null) {\n this.world.onBlockChanged(pos, blockState, state);\n }\n\n Block block = state.getBlock();\n if (block.hasBlockEntity()) {\n if (chunk.getStatus().getChunkType() == ChunkStatus.ChunkType.field_12807) {\n chunk.setBlockEntity(pos, ((BlockEntityProvider) block).createBlockEntity(this));\n } else {\n CompoundTag compoundTag = new CompoundTag();\n compoundTag.putInt(\"x\", pos.getX());\n compoundTag.putInt(\"y\", pos.getY());\n compoundTag.putInt(\"z\", pos.getZ());\n compoundTag.putString(\"id\", \"DUMMY\");\n chunk.addPendingBlockEntityTag(compoundTag);\n }\n } else if (blockState != null && blockState.getBlock().hasBlockEntity()) {\n chunk.removeBlockEntity(pos);\n }\n\n if (state.shouldPostProcess(this, pos)) {\n this.markBlockForPostProcessing(pos);\n }\n\n return true;\n }"
] | [
"0.6984335",
"0.6555826",
"0.6434986",
"0.61661303",
"0.60364616",
"0.60091645",
"0.58593124",
"0.5824132",
"0.5813492",
"0.5781623",
"0.57813627",
"0.57750636",
"0.5689124",
"0.5684152",
"0.56506675",
"0.56226605",
"0.55750406",
"0.5525641",
"0.5506073",
"0.54861623",
"0.54845107",
"0.5433447",
"0.5426396",
"0.53482896",
"0.53235364",
"0.52977955",
"0.52890474",
"0.528799",
"0.5284937",
"0.52810925",
"0.5280742",
"0.52792037",
"0.5272127",
"0.5264361",
"0.5264004",
"0.52356166",
"0.52342075",
"0.52326286",
"0.5211768",
"0.5187903",
"0.5180139",
"0.5171866",
"0.5151789",
"0.5151776",
"0.5120771",
"0.5116405",
"0.5105915",
"0.5095137",
"0.50859565",
"0.5079401",
"0.5071964",
"0.506931",
"0.5060441",
"0.5058477",
"0.5053643",
"0.5043554",
"0.50407356",
"0.5040054",
"0.5023251",
"0.50209826",
"0.500888",
"0.50065905",
"0.5001555",
"0.49986735",
"0.4993536",
"0.4989493",
"0.49883184",
"0.4978668",
"0.4973948",
"0.49731132",
"0.4972931",
"0.49725884",
"0.49702293",
"0.49666095",
"0.49629065",
"0.49403754",
"0.49378517",
"0.49361646",
"0.4933752",
"0.49335316",
"0.49305162",
"0.49096498",
"0.48902753",
"0.48873138",
"0.48766264",
"0.4869662",
"0.48689035",
"0.48680988",
"0.4866714",
"0.48657194",
"0.48618445",
"0.48503938",
"0.4845834",
"0.4845305",
"0.48404998",
"0.48398814",
"0.48363596",
"0.48347643",
"0.48342192"
] | 0.6363586 | 4 |
Retrieves the Block child. | public Block getBlock() {
return (Block)getChild(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getChildBlockId() {\n return this.childBlockId;\n }",
"protected Block getBlock() {\r\n return this.block;\r\n }",
"@ASTNodeAnnotation.Child(name=\"Block\")\n public Block getBlock() {\n return (Block) getChild(0);\n }",
"public Block getBlock()\n {\n return block;\n }",
"public Block getBlock()\n\t{\n\t\treturn this.block;\n\t}",
"public Block getBlock() {\n\t\treturn this.block;\n\t}",
"public Block getBlockNoTransform() {\n return (Block) getChildNoTransform(0);\n }",
"public IBiNode getChild() {\n return this.child;\n }",
"public Block getBlockNoTransform() {\n return (Block)getChildNoTransform(0);\n }",
"public child getChild() {\n return this.child;\n }",
"public Block getBlockBelow() {\r\n\t\tif(onGround) {\r\n\t\t\tVector4f hitbox = getHitBox(worldPos);\r\n\t\t\tfloat x = hitbox.x + (hitbox.z - hitbox.x) / 2f;\r\n\t\t\tfloat y = hitbox.y - 0.1f;\r\n\t\t\tBlock b = BlockManager.getBlock(new Vector2f(x, y));\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public int getBlock(){\n return this.position.getCurrentBlock();\n }",
"public Figure getChild() {\n\t\treturn _child;\n\t}",
"public Block getObj()\n\t{\n\t\treturn block;\n\t}",
"public final ScHtmlIdIF findBlockWrapper()\n {\n if ( isBlockWrapper() )\n return (ScHtmlIdIF)this;\n\n if ( hasParent() )\n return getParent().findBlockWrapper();\n\n return null;\n }",
"protected Node getBlockNode(Node parent)\n {\n for (int i=0; i<parent.jjtGetNumChildren(); i++) {\n if (parent.jjtGetChild(i) instanceof ASTBlock)\n return parent.jjtGetChild(i);\n }\n return null;\n }",
"public N getChild() {\n\t\tcheckRep();\n\t\treturn this.child;\n\t}",
"@Deprecated public Block getBlock(){\n return this.block!=null?this.block.build():null;\n }",
"public Node getChild();",
"public Block getBlockByID(Integer blockID){\n for (Block block : this.blocks) {\n if(block.getID().equals(blockID))\n {\n return block;\n }\n }\n return null;\n }",
"Block getBlock(String congName, String blockName, String blockNumber);",
"@Override\n public CssDeclarationBlockNode getBlock() {\n return (CssDeclarationBlockNode) super.getBlock();\n }",
"@Override\n public Block getBlock() {\n Block b = null;\n while (b == null) {\n boolean noMoreBlocks = blocks.isEmpty();\n if (!noMoreBlocks) {\n b = blocks.poll();\n }\n\n if (noMoreBlocks || b == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (blocks.isEmpty()) {\n alloc(newAllocBlocks);\n }\n }\n }\n }\n return b;\n }",
"public Response getBlock(int row) {\n return blockList.get(row);\n }",
"Block getHiveBlock();",
"public Block getBlock(int index){\n\t\treturn ds[index];\n\t}",
"public String getChild() {\n return child;\n }",
"@Override\r\n\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\treturn null;\r\n\t}",
"public Block getBlock(int i) {\n\t\treturn Block.getBlock(id(i));\n\t}",
"@Override\n\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\treturn null;\n\t}",
"protected ASPBlock getBizWfBlock()\n {\n return headblk;\n }",
"public int getBlockId() {\n return blockId;\n \n }",
"@Override public BTreeNode getChild(int index) {\n return this.children[index];\n }",
"private Async_c getAsyncChild(For_c forNode) {\n\n\t\tStmt forBody = forNode.body();\n\n\t\t// If the forBody is a single statement, then check if it is an Async\n\t\tif (forBody instanceof Async_c) {\n\t\t\treturn ((Async_c) forBody);\n\t\t}\n\n\t\t// if the forBody is a block, then check if it has an Async direct\n\t\t// child.\n\t\telse if (forBody instanceof Block_c) {\n\t\t\tList<Stmt> forBlock = ((Block_c) forBody).statements();\n\t\t\tfor (Stmt s : forBlock) {\n\t\t\t\tif (s instanceof Async_c) {\n\n\t\t\t\t\treturn ((Async_c) s);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\t// else return null;\n\t\treturn null;\n\t}",
"@Override\n public Object getChild(int groupPosition, int childPosition)\n {\n return children.get(headers.get(groupPosition)).get(childPosition);\n }",
"@Override\n public Object getChild(int groupPosition, int childPosition) {\n return this.child.get(this.header.get(groupPosition)).get(childPosition);\n }",
"public ProductionBlock getSpecificProductionBlock(int id);",
"public Block getBlock(int x, int y){\n\t\tIterator iterator = blocks.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tBlock b = (Block) iterator.next();\n\t\t\tif ((b.getX()==x)&&(b.getY()==y)) {\n\t\t\t\treturn b;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public Object getChild(int groupPosition, int childPosition) {\n return children[groupPosition][childPosition];\n }",
"String getBlockName() {\n return this.blockName;\n }",
"public alluxio.proto.journal.Block.DeleteBlockEntry getDeleteBlock() {\n if (deleteBlockBuilder_ == null) {\n return deleteBlock_;\n } else {\n return deleteBlockBuilder_.getMessage();\n }\n }",
"public Block getMaxHeightBlock() {\n return maxHeightBlockNode.block;\n }",
"@Pure\n\tpublic TreeNode<?, ?> getChild() {\n\t\treturn this.child;\n\t}",
"public Block getLatestBlock() {\n int totalLength = blockChain.size();\n return this.blockChain.get(totalLength - 1);\n }",
"public BigDecimal getBlockHeight() {\n return blockHeight;\n }",
"public final AbstractComponent getChildComponent() {\n return this.child;\n }",
"@Override\n\t\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\t\treturn childPosition;\n\t\t}",
"protected BlockStmt currentBlock() {\n return enclosingBlocks.peekFirst();\n }",
"@NotNull\r\n Block getBlock(int x, int y, int z);",
"public Block getBlock(String id) {\n\t\treturn this.blocks.get(Long.valueOf(id));\n\t}",
"public alluxio.proto.journal.Block.DeleteBlockEntry getDeleteBlock() {\n return deleteBlock_;\n }",
"public Integer getBloque() {\r\n return bloque;\r\n }",
"@Override\n public IStatement getChild(int i) {\n\t return this._children.get(i);\n }",
"Block createBlock();",
"public OutlookAttachmentBlockLevel getBlockLevel()\n {\n return getConstant(\"BlockLevel\", OutlookAttachmentBlockLevel.class);\n }",
"public BlockType getMainItem()\n {\n BlockType main = null;\n Integer amount = -1;\n\n for (Map.Entry<BlockType, Integer> item : getContent().entrySet())\n {\n if (item.getValue() > amount)\n {\n amount = item.getValue();\n main = item.getKey();\n }\n }\n\n return main;\n }",
"public FcgLevel child() {\n\t\tif (direction == IN_AND_OUT) {\n\t\t\t// undefined--this node goes in both directions\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"To get the child of the source level you \" + \"must use the constructor directly\");\n\t\t}\n\n\t\treturn child(direction);\n\t}",
"public Object\tgetChild(Object parent, int index) {\t\n \tif (! (parent instanceof IdentityBranch)) return -1;\n \tIdentityBranch ibParent = (IdentityBranch)parent;\n \treturn ibParent.getChild(index);\n }",
"@Override\n public Object getChild(int groupPos, int childPos) {\n return item.get(groupPos).elements.get(childPos);\n }",
"@objid (\"808c0841-1dec-11e2-8cad-001ec947c8cc\")\n public final GmNodeModel getChild(MRef ref) {\n for (GmNodeModel child : this.children) {\n if (child.getRepresentedRef().equals(ref)) {\n return child;\n }\n }\n return null;\n }",
"private TreeNode getOnlyChild() {\n return templateRoot.getChildren().get(0);\n }",
"public BlockObject getManagedBlockObject() {\n\n if (null == _managedBlockObject) {\n String volumeNativeGuid = getUnmanagedVolume().getNativeGuid().replace(\n VolumeIngestionUtil.UNMANAGEDVOLUME, VolumeIngestionUtil.VOLUME);\n _managedBlockObject = VolumeIngestionUtil.checkIfVolumeExistsInDB(volumeNativeGuid, _dbClient);\n }\n\n return _managedBlockObject;\n }",
"Object getChild(int groupPosition, int childPosition);",
"public ContentScanner getChildLevel(\n )\n {return childLevel;}",
"public final int child ()\r\n {\r\n return _value.child();\r\n }",
"public Object getChild(int groupPosition, int childPosititon)\n {\n return playersDetails.get(groupPosition).get(childPosititon);\n }",
"public BlockType getType()\n {\n return blockType;\n }",
"public int getBlockNumber() {\n return blockNumber_;\n }",
"public int getBlockNumber() {\n return blockNumber_;\n }",
"Block getBlockByNumber(long number);",
"public Program getImbalancedChild() {\n\t\tMap<Integer, List<Program>> weightsToChildren = new HashMap<>();\n\t\tfor (Program child : getChildren()) {\n\t\t\tweightsToChildren.computeIfAbsent(child.getTotalWeight(), k -> new ArrayList<>());\n\t\t\tweightsToChildren.get(child.getTotalWeight()).add(child);\n\t\t}\n\t\t// No children, or all children have the same total weight.\n\t\tif (getChildren().isEmpty() || weightsToChildren.size() == 1) {\n\t\t\treturn (null);\n\t\t}\n\t\t// Get the loner child. Assumption: The tree will have 3 or more children, so weight with only 1 child is the\n\t\t// imbalanced one.\n\t\tfor (List<Program> children : weightsToChildren.values()) {\n\t\t\tif (children.size() == 1) {\n\t\t\t\treturn (children.get(0));\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"Could not locate imbalanced child of program \" + getName());\n\t}",
"public int getBlockNumber() {\n return blockNumber_;\n }",
"public int getBlockNumber() {\n return blockNumber_;\n }",
"public BBlock getBlockAtXY(int x, int y) {\n for (BBlock block : this) {\n if ((x >= block.getX() && x <= block.getX() + block.getWith()) &&\n (y >= block.getY() && y <= block.getY() + block.getHeight())) {\n return block;\n }\n }\n return null;\n }",
"public Block accessBlock(int i){\n\t\treturn blocks[i]; \n\t}",
"public alluxio.proto.journal.File.NewBlockEntry getNewBlock() {\n if (newBlockBuilder_ == null) {\n return newBlock_;\n } else {\n return newBlockBuilder_.getMessage();\n }\n }",
"public Component getChild(int i){\n return null;\n }",
"public MemoryBlock getBlock(int index) {\n\t\tif (( index < 1 ) || ( index > size - 1 ))\n\t\t\tthrow new IllegalArgumentException();\n\t\t return getNode(index).block;\n\t\t \n\t}",
"public UnaryStatement getBlockValue() {\n\t\t\treturn blockValue;\n\t\t}",
"public Block get (int x, int y, int z) {\n\t\treturn maze.get(x*size*size + y*size + z);\n\t}",
"public Operator getChild() {\r\n\t\treturn child;\r\n\t}",
"public IGUIBlock getHighlightedBlock() {\n Block highlightedBlock = blockHandler.getPA().getNextBlockInProgram();\n return (highlightedBlock != null) ? blockLink.getGUIBlockFromBlock(highlightedBlock) : null;\n }",
"public Part getPart() {\n if ( isZombie( part ) ) {\n Part part = segment.getDefaultPart();\n getCommander().requestLockOn( part );\n return part;\n } else {\n return part;\n }\n }",
"@Override\n\tpublic Object getChild(int sectionPosition, int childPosition) {\n\t\treturn sections.get(sectionPosition).getArrayChildren().get(childPosition);\n\t}",
"public void setChildBlockId(String childBlockId) {\n this.childBlockId = childBlockId;\n }",
"public long getHostingBlockId() {\n return this.hostingBlockId;\n }",
"public long getHostingBlockId() {\n return this.hostingBlockId;\n }",
"public PlanNode getLastChild() {\n return this.children.isEmpty() ? null : this.children.getLast();\n }",
"Optional<LatestBlock> getLatestBlock(String nodeName);",
"public PlanNode getChild( int index ) {\n return this.children.isEmpty() ? null : this.children.get(index);\n }",
"public alluxio.proto.journal.Block.BlockInfoEntry getBlockInfo() {\n return blockInfo_;\n }",
"public Node getChild(int childNum) {\r\n\t\t\tif (childNum > children.size()) return null;\r\n\t\t\treturn children.get(childNum);\r\n\t\t}",
"private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.DeleteBlockEntry, alluxio.proto.journal.Block.DeleteBlockEntry.Builder, alluxio.proto.journal.Block.DeleteBlockEntryOrBuilder> \n getDeleteBlockFieldBuilder() {\n if (deleteBlockBuilder_ == null) {\n deleteBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.DeleteBlockEntry, alluxio.proto.journal.Block.DeleteBlockEntry.Builder, alluxio.proto.journal.Block.DeleteBlockEntryOrBuilder>(\n deleteBlock_,\n getParentForChildren(),\n isClean());\n deleteBlock_ = null;\n }\n return deleteBlockBuilder_;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getBlockInfo(),\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }",
"public ArrayList<CurrentMemo> getChild()\n\t\t{\n\t\t\treturn children;\n\t\t}",
"public Block getBlockAt(Location location) {\n\t\treturn getBlockAt(location.getX(), location.getY(), location.getZ());\n\t}",
"public int getChildNum() {\r\n\t\treturn childNum;\r\n\t}",
"LocalMaterialData getGroundBlock();",
"@Override \n public Resource child(String childName) throws NotAuthorizedException, BadRequestException {\n Resource r = _(ApplicationManager.class).getPage(this, childName);\n if (r != null) {\n return r;\n }\n return NodeChildUtils.childOf(getChildren(), childName);\n }",
"public BTreeNode<E> getChild(int pos) {\n\t\tif (pos >= 0 && pos < children.size()) {\n\t\t\treturn children.get(pos);\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}"
] | [
"0.7403717",
"0.7085031",
"0.6908626",
"0.6853154",
"0.6812393",
"0.6784349",
"0.67392904",
"0.6700366",
"0.6622217",
"0.65914714",
"0.6572876",
"0.657211",
"0.65332305",
"0.6526616",
"0.6506274",
"0.6491695",
"0.64909166",
"0.6273683",
"0.6092504",
"0.6084375",
"0.602903",
"0.6026015",
"0.6018145",
"0.60053384",
"0.600116",
"0.59774375",
"0.5952278",
"0.5943901",
"0.5905539",
"0.5891266",
"0.5864057",
"0.58563656",
"0.58382297",
"0.58309275",
"0.58248395",
"0.5810294",
"0.5790425",
"0.5788267",
"0.5762138",
"0.5760466",
"0.5758557",
"0.5755868",
"0.5755154",
"0.57510436",
"0.57465696",
"0.5737096",
"0.57320327",
"0.5728539",
"0.57090545",
"0.56990665",
"0.5663431",
"0.5651326",
"0.5643294",
"0.5634361",
"0.5633465",
"0.56277263",
"0.5625583",
"0.56168467",
"0.5604145",
"0.5598005",
"0.5588386",
"0.55732226",
"0.5561795",
"0.55598897",
"0.55493957",
"0.55382335",
"0.55321854",
"0.55160767",
"0.55160767",
"0.55149883",
"0.55138004",
"0.5513664",
"0.5513664",
"0.55115855",
"0.551039",
"0.55015486",
"0.55004215",
"0.54962844",
"0.5490739",
"0.5489925",
"0.5486544",
"0.5484301",
"0.5475751",
"0.54680806",
"0.544496",
"0.54399633",
"0.54399633",
"0.54298526",
"0.54262626",
"0.54089123",
"0.5408083",
"0.5407526",
"0.53975475",
"0.5397199",
"0.53913826",
"0.53878427",
"0.5382051",
"0.53795767",
"0.5373966",
"0.53739125"
] | 0.7626256 | 0 |
Retrieves the Block child. This method does not invoke AST transformations. | public Block getBlockNoTransform() {
return (Block)getChildNoTransform(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Block getBlock() {\n return (Block)getChild(0);\n }",
"@ASTNodeAnnotation.Child(name=\"Block\")\n public Block getBlock() {\n return (Block) getChild(0);\n }",
"public String getChildBlockId() {\n return this.childBlockId;\n }",
"public Block getBlockNoTransform() {\n return (Block) getChildNoTransform(0);\n }",
"protected Node getBlockNode(Node parent)\n {\n for (int i=0; i<parent.jjtGetNumChildren(); i++) {\n if (parent.jjtGetChild(i) instanceof ASTBlock)\n return parent.jjtGetChild(i);\n }\n return null;\n }",
"public Block getBlock()\n {\n return block;\n }",
"public Block getBlock()\n\t{\n\t\treturn this.block;\n\t}",
"public Block getBlock() {\n\t\treturn this.block;\n\t}",
"protected Block getBlock() {\r\n return this.block;\r\n }",
"public Block getBlockBelow() {\r\n\t\tif(onGround) {\r\n\t\t\tVector4f hitbox = getHitBox(worldPos);\r\n\t\t\tfloat x = hitbox.x + (hitbox.z - hitbox.x) / 2f;\r\n\t\t\tfloat y = hitbox.y - 0.1f;\r\n\t\t\tBlock b = BlockManager.getBlock(new Vector2f(x, y));\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public IBiNode getChild() {\n return this.child;\n }",
"@Deprecated public Block getBlock(){\n return this.block!=null?this.block.build():null;\n }",
"public child getChild() {\n return this.child;\n }",
"@Override\n public CssDeclarationBlockNode getBlock() {\n return (CssDeclarationBlockNode) super.getBlock();\n }",
"public N getChild() {\n\t\tcheckRep();\n\t\treturn this.child;\n\t}",
"public final ScHtmlIdIF findBlockWrapper()\n {\n if ( isBlockWrapper() )\n return (ScHtmlIdIF)this;\n\n if ( hasParent() )\n return getParent().findBlockWrapper();\n\n return null;\n }",
"@Override\n public Block getBlock() {\n Block b = null;\n while (b == null) {\n boolean noMoreBlocks = blocks.isEmpty();\n if (!noMoreBlocks) {\n b = blocks.poll();\n }\n\n if (noMoreBlocks || b == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (blocks.isEmpty()) {\n alloc(newAllocBlocks);\n }\n }\n }\n }\n return b;\n }",
"@NotNull\r\n Block getBlock(int x, int y, int z);",
"public Block getObj()\n\t{\n\t\treturn block;\n\t}",
"public Figure getChild() {\n\t\treturn _child;\n\t}",
"public int getBlock(){\n return this.position.getCurrentBlock();\n }",
"Block getBlock(String congName, String blockName, String blockNumber);",
"@Pure\n\tpublic TreeNode<?, ?> getChild() {\n\t\treturn this.child;\n\t}",
"public UnaryStatement getBlockValue() {\n\t\t\treturn blockValue;\n\t\t}",
"public Node getChild();",
"public Block getBlockByID(Integer blockID){\n for (Block block : this.blocks) {\n if(block.getID().equals(blockID))\n {\n return block;\n }\n }\n return null;\n }",
"public Block getBlock(int i) {\n\t\treturn Block.getBlock(id(i));\n\t}",
"public Block getBlock(int index){\n\t\treturn ds[index];\n\t}",
"public FcgLevel child() {\n\t\tif (direction == IN_AND_OUT) {\n\t\t\t// undefined--this node goes in both directions\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"To get the child of the source level you \" + \"must use the constructor directly\");\n\t\t}\n\n\t\treturn child(direction);\n\t}",
"public Statement getBody() {\n if (body == null) {\n // lazy initialize - use setter to ensure parent link set too\n setBody(new Block(getAST())); }\n return body; }",
"public Block getMaxHeightBlock() {\n return maxHeightBlockNode.block;\n }",
"protected BlockStmt currentBlock() {\n return enclosingBlocks.peekFirst();\n }",
"Block createBlock();",
"@Override\n public IStatement getChild(int i) {\n\t return this._children.get(i);\n }",
"public Block getBlock(String id) {\n\t\treturn this.blocks.get(Long.valueOf(id));\n\t}",
"public void setChildBlockId(String childBlockId) {\n this.childBlockId = childBlockId;\n }",
"public alluxio.proto.journal.Block.DeleteBlockEntry getDeleteBlock() {\n if (deleteBlockBuilder_ == null) {\n return deleteBlock_;\n } else {\n return deleteBlockBuilder_.getMessage();\n }\n }",
"Block getHiveBlock();",
"public Block getBlock(int x, int y){\n\t\tIterator iterator = blocks.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tBlock b = (Block) iterator.next();\n\t\t\tif ((b.getX()==x)&&(b.getY()==y)) {\n\t\t\t\treturn b;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Block getLatestBlock() {\n int totalLength = blockChain.size();\n return this.blockChain.get(totalLength - 1);\n }",
"public MemoryBlock getBlock(int index) {\n\t\tif (( index < 1 ) || ( index > size - 1 ))\n\t\t\tthrow new IllegalArgumentException();\n\t\t return getNode(index).block;\n\t\t \n\t}",
"public ProductionBlock getSpecificProductionBlock(int id);",
"@Override\r\n\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\treturn null;\r\n\t}",
"public final AbstractComponent getChildComponent() {\n return this.child;\n }",
"public BigDecimal getBlockHeight() {\n return blockHeight;\n }",
"public IGUIBlock getHighlightedBlock() {\n Block highlightedBlock = blockHandler.getPA().getNextBlockInProgram();\n return (highlightedBlock != null) ? blockLink.getGUIBlockFromBlock(highlightedBlock) : null;\n }",
"@Override\n\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\treturn null;\n\t}",
"public Operator getChild() {\r\n\t\treturn child;\r\n\t}",
"public Block get (int x, int y, int z) {\n\t\treturn maze.get(x*size*size + y*size + z);\n\t}",
"public Block getBlock(Point point) {\n\t\treturn maze[point.x][point.y];\n\t}",
"public alluxio.proto.journal.Block.DeleteBlockEntry getDeleteBlock() {\n return deleteBlock_;\n }",
"public alluxio.proto.journal.File.NewBlockEntry getNewBlock() {\n if (newBlockBuilder_ == null) {\n return newBlock_;\n } else {\n return newBlockBuilder_.getMessage();\n }\n }",
"public PlanNode getLastChild() {\n return this.children.isEmpty() ? null : this.children.getLast();\n }",
"public String getChild() {\n return child;\n }",
"public int getBlockId() {\n return blockId;\n \n }",
"public Block getBlockAt(Location location) {\n\t\treturn getBlockAt(location.getX(), location.getY(), location.getZ());\n\t}",
"String getBlockName() {\n return this.blockName;\n }",
"public ChildBlock withChildBlockId(String childBlockId) {\n setChildBlockId(childBlockId);\n return this;\n }",
"@Override public BTreeNode getChild(int index) {\n return this.children[index];\n }",
"@Override\n\tpublic synchronized MemoryBlock getBlock(String blockName) {\n\t\tMemoryBlock memoryBlock = nameBlockMap.get(blockName);\n\t\tif (memoryBlock != null) {\n\t\t\tif (memoryBlock == NoBlock) {\n\t\t\t\t// found placeholder, have searched and found nothing before\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn memoryBlock;\n\t\t}\n\n\t\tfor (MemoryBlock block : blocks) {\n\t\t\tif (block.getName().equals(blockName)) {\n\t\t\t\tnameBlockMap.put(blockName, block);\n\t\t\t\treturn block;\n\t\t\t}\n\t\t}\n\n\t\t// store placeholder there is no memory block with that name\n\t\tnameBlockMap.put(blockName, NoBlock);\n\t\treturn null;\n\t}",
"private Async_c getAsyncChild(For_c forNode) {\n\n\t\tStmt forBody = forNode.body();\n\n\t\t// If the forBody is a single statement, then check if it is an Async\n\t\tif (forBody instanceof Async_c) {\n\t\t\treturn ((Async_c) forBody);\n\t\t}\n\n\t\t// if the forBody is a block, then check if it has an Async direct\n\t\t// child.\n\t\telse if (forBody instanceof Block_c) {\n\t\t\tList<Stmt> forBlock = ((Block_c) forBody).statements();\n\t\t\tfor (Stmt s : forBlock) {\n\t\t\t\tif (s instanceof Async_c) {\n\n\t\t\t\t\treturn ((Async_c) s);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\t// else return null;\n\t\treturn null;\n\t}",
"public BBlock getBlockAtXY(int x, int y) {\n for (BBlock block : this) {\n if ((x >= block.getX() && x <= block.getX() + block.getWith()) &&\n (y >= block.getY() && y <= block.getY() + block.getHeight())) {\n return block;\n }\n }\n return null;\n }",
"public phaseI.Hdfs.BlockLocations getNewBlock() {\n if (newBlockBuilder_ == null) {\n return newBlock_ == null ? phaseI.Hdfs.BlockLocations.getDefaultInstance() : newBlock_;\n } else {\n return newBlockBuilder_.getMessage();\n }\n }",
"public Program getImbalancedChild() {\n\t\tMap<Integer, List<Program>> weightsToChildren = new HashMap<>();\n\t\tfor (Program child : getChildren()) {\n\t\t\tweightsToChildren.computeIfAbsent(child.getTotalWeight(), k -> new ArrayList<>());\n\t\t\tweightsToChildren.get(child.getTotalWeight()).add(child);\n\t\t}\n\t\t// No children, or all children have the same total weight.\n\t\tif (getChildren().isEmpty() || weightsToChildren.size() == 1) {\n\t\t\treturn (null);\n\t\t}\n\t\t// Get the loner child. Assumption: The tree will have 3 or more children, so weight with only 1 child is the\n\t\t// imbalanced one.\n\t\tfor (List<Program> children : weightsToChildren.values()) {\n\t\t\tif (children.size() == 1) {\n\t\t\t\treturn (children.get(0));\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"Could not locate imbalanced child of program \" + getName());\n\t}",
"Block getBlockByNumber(long number);",
"public int getBlockNumber() {\n return blockNumber_;\n }",
"public int getBlockNumber() {\n return blockNumber_;\n }",
"public LlvmValue visit(Block n){\n\t\tSystem.out.format(\"block****\\n\");\n\t\t\n\t\t//Verifica se existe algum elemento no block\n\t\tif(n.body != null){\n\t\t\tint i,j;\n\t\t\t\n\t\t\tj = n.body.size();\n\t\t\t//itera o block\n\t\t\tfor (util.List<Statement> body = n.body; body != null; body = body.tail){\n\t\t\t\t\n\t\t\t\t//System.out.format(\"@block body: %s\\n\", n.body.head);\n\t\t\t\t//Desce para cada parte do block\n\t\t\t\tbody.head.accept(this);\n\t\t\t}\t\n\t\t}\t\n\t\treturn null;\n\t}",
"private Block getBlockAt(int x, int y, int z) {\n\t\ttry {\n\t\t\tbyte blockId = blockIDArray[x][y][z];\n\t\t\treturn new Block(x, y, z, BlockType.fromID(blockId), this);\n\t\t} catch(IndexOutOfBoundsException e) { return new Block(x, y, z, BlockType.AIR, this); }\n\t}",
"public BlockObject getManagedBlockObject() {\n\n if (null == _managedBlockObject) {\n String volumeNativeGuid = getUnmanagedVolume().getNativeGuid().replace(\n VolumeIngestionUtil.UNMANAGEDVOLUME, VolumeIngestionUtil.VOLUME);\n _managedBlockObject = VolumeIngestionUtil.checkIfVolumeExistsInDB(volumeNativeGuid, _dbClient);\n }\n\n return _managedBlockObject;\n }",
"StatementBlock createStatementBlock();",
"Optional<LatestBlock> getLatestBlock(String nodeName);",
"@Override\n public Object getChild(int groupPosition, int childPosition) {\n return children[groupPosition][childPosition];\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getNewBlock(),\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }",
"public Block getTargetBlockExact ( int maxDistance ) {\n\t\treturn extract ( handle -> handle.getTargetBlockExact ( maxDistance ) );\n\t}",
"public int getBlockNumber() {\n return blockNumber_;\n }",
"public int getBlockNumber() {\n return blockNumber_;\n }",
"public Node getChild(int childNum) {\r\n\t\t\tif (childNum > children.size()) return null;\r\n\t\t\treturn children.get(childNum);\r\n\t\t}",
"@Override\n public Object getChild(int groupPosition, int childPosition) {\n return this.child.get(this.header.get(groupPosition)).get(childPosition);\n }",
"private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.DeleteBlockEntry, alluxio.proto.journal.Block.DeleteBlockEntry.Builder, alluxio.proto.journal.Block.DeleteBlockEntryOrBuilder> \n getDeleteBlockFieldBuilder() {\n if (deleteBlockBuilder_ == null) {\n deleteBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.DeleteBlockEntry, alluxio.proto.journal.Block.DeleteBlockEntry.Builder, alluxio.proto.journal.Block.DeleteBlockEntryOrBuilder>(\n deleteBlock_,\n getParentForChildren(),\n isClean());\n deleteBlock_ = null;\n }\n return deleteBlockBuilder_;\n }",
"private Block getBlockFromRecord(GameLogsRecord record) {\n JsonObject json = JsonParser.parseString(record.getMessage()).getAsJsonObject();\n // If Block logs are incomplete, the missing values are the default 0\n // This should only occur for games that were played before\n // TODO: date of setting up infrastructure commit 96b2fde on the server\n int x = 0, y = 0, z = 0;\n if (json.has(\"x\")) {\n x = json.get(\"x\").getAsInt();\n } else {\n logger.error(\"Missing x value for block at {}: {}\", json, record.getTimestamp());\n }\n if (json.has(\"y\")) {\n y = json.get(\"y\").getAsInt();\n } else {\n logger.error(\"Missing y value for block at {}: {}\", json, record.getTimestamp());\n }\n if (json.has(\"z\")) {\n z = json.get(\"z\").getAsInt();\n } else {\n logger.error(\"Missing z value for block at {}: {}\", json, record.getTimestamp());\n }\n return new Block(x, y, z);\n }",
"public ASTNode getChild(int i)\n\t{\n\t\treturn children.get(i);\n\t}",
"@Override\n\t\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\t\treturn childPosition;\n\t\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getBlockInfo(),\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }",
"public alluxio.proto.journal.Block.BlockInfoEntry getBlockInfo() {\n return blockInfo_;\n }",
"public BlockType getType()\n {\n return blockType;\n }",
"public PlanNode getChild( int index ) {\n return this.children.isEmpty() ? null : this.children.get(index);\n }",
"private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder>(\n blockInfo_,\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }",
"public alluxio.proto.journal.File.NewBlockEntry getNewBlock() {\n return newBlock_;\n }",
"public phaseI.Hdfs.BlockLocations getNewBlock() {\n return newBlock_ == null ? phaseI.Hdfs.BlockLocations.getDefaultInstance() : newBlock_;\n }",
"public OutlookAttachmentBlockLevel getBlockLevel()\n {\n return getConstant(\"BlockLevel\", OutlookAttachmentBlockLevel.class);\n }",
"public Block accessBlock(int i){\n\t\treturn blocks[i]; \n\t}",
"public Response getBlock(int row) {\n return blockList.get(row);\n }",
"@Override\n\tpublic Object getChild(int sectionPosition, int childPosition) {\n\t\treturn sections.get(sectionPosition).getArrayChildren().get(childPosition);\n\t}",
"Node getChild(String childID) throws IllegalAccessException;",
"public static Block getTargetBlock(LivingEntity entity, int maxDistance) throws CommandException {\n BlockIterator iterator = new BlockIterator(entity, maxDistance);\n while (iterator.hasNext()) {\n Block foundBlock = iterator.next();\n if (foundBlock.getType() != Material.AIR) {\n return foundBlock;\n }\n }\n throw new CommandException(\"You aren't looking at a block (or out of range)\");\n }",
"@Override\n public Object getChild(int groupPosition, int childPosition)\n {\n return children.get(headers.get(groupPosition)).get(childPosition);\n }",
"public phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder() {\n if (newBlockBuilder_ != null) {\n return newBlockBuilder_.getMessageOrBuilder();\n } else {\n return newBlock_ == null ?\n phaseI.Hdfs.BlockLocations.getDefaultInstance() : newBlock_;\n }\n }",
"public short getBlock(final int aX, final int aY)\r\n\t{\r\n\t\treturn mBlocks[aX][aY];\r\n\t}",
"@objid (\"808c0841-1dec-11e2-8cad-001ec947c8cc\")\n public final GmNodeModel getChild(MRef ref) {\n for (GmNodeModel child : this.children) {\n if (child.getRepresentedRef().equals(ref)) {\n return child;\n }\n }\n return null;\n }"
] | [
"0.7660143",
"0.7532339",
"0.7161068",
"0.6995346",
"0.6836169",
"0.67791927",
"0.6741025",
"0.6736341",
"0.67070943",
"0.65105736",
"0.65036154",
"0.64740354",
"0.62854695",
"0.62568533",
"0.6245013",
"0.6239791",
"0.61454946",
"0.6121186",
"0.61140347",
"0.6091495",
"0.6089986",
"0.6063003",
"0.5929934",
"0.5927626",
"0.5923663",
"0.5902378",
"0.58664984",
"0.5832297",
"0.58158743",
"0.5796753",
"0.5765751",
"0.57405627",
"0.57386565",
"0.57115805",
"0.5697806",
"0.56950825",
"0.5694706",
"0.568557",
"0.56820244",
"0.56757903",
"0.56633157",
"0.56402624",
"0.5619073",
"0.5611965",
"0.56037194",
"0.5598651",
"0.55929154",
"0.55774266",
"0.5565896",
"0.5565401",
"0.55488497",
"0.5530747",
"0.5521298",
"0.5507845",
"0.55019194",
"0.54826796",
"0.54764324",
"0.5468156",
"0.5467919",
"0.54672873",
"0.54280317",
"0.54200107",
"0.5416937",
"0.54112065",
"0.5400034",
"0.5392537",
"0.5392537",
"0.53895384",
"0.5386389",
"0.5376997",
"0.53763175",
"0.5375737",
"0.5374764",
"0.5362053",
"0.53574276",
"0.53485054",
"0.53485054",
"0.5341889",
"0.533151",
"0.53268135",
"0.5323383",
"0.5317468",
"0.5313075",
"0.5306222",
"0.5305432",
"0.52944434",
"0.5280839",
"0.52775556",
"0.5261007",
"0.52595145",
"0.52582127",
"0.5250239",
"0.52500546",
"0.52493525",
"0.5246476",
"0.5231559",
"0.522411",
"0.5213582",
"0.52130115",
"0.52116215"
] | 0.6955735 | 4 |
Replaces the CatchClause list. | public void setCatchClauseList(List<CatchClause> list) {
setChild(list, 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addCatchClause(CatchClause node) {\n List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList();\n list.addChild(node);\n }",
"protected void\ttryToFix() { Command.insertList(crAndBrace); }",
"public List<CatchClause> getCatchClausesNoTransform() {\n return getCatchClauseListNoTransform();\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseListNoTransform() {\n return (List<CatchClause>)getChildNoTransform(1);\n }",
"public final void catches() throws RecognitionException {\n int catches_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"catches\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(641, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 91) ) { return ; }\n // Java.g:642:5: ( catchClause ( catchClause )* )\n dbg.enterAlt(1);\n\n // Java.g:642:9: catchClause ( catchClause )*\n {\n dbg.location(642,9);\n pushFollow(FOLLOW_catchClause_in_catches3657);\n catchClause();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(642,21);\n // Java.g:642:21: ( catchClause )*\n try { dbg.enterSubRule(115);\n\n loop115:\n do {\n int alt115=2;\n try { dbg.enterDecision(115);\n\n int LA115_0 = input.LA(1);\n\n if ( (LA115_0==88) ) {\n alt115=1;\n }\n\n\n } finally {dbg.exitDecision(115);}\n\n switch (alt115) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:642:22: catchClause\n \t {\n \t dbg.location(642,22);\n \t pushFollow(FOLLOW_catchClause_in_catches3660);\n \t catchClause();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop115;\n }\n } while (true);\n } finally {dbg.exitSubRule(115);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 91, catches_StartIndex); }\n }\n dbg.location(643, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"catches\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"public List<CatchClause> getCatchClauses() {\n return getCatchClauseList();\n }",
"public void markCsgListReplace() throws JNCException {\n markLeafReplace(\"csgList\");\n }",
"public final List<BuilderTryBlock> catches() throws RecognitionException {\n List<BuilderTryBlock> tryBlocks = null;\n\n\n tryBlocks = Lists.newArrayList();\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:3: ( ^( I_CATCHES ( catch_directive )* ( catchall_directive )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:5: ^( I_CATCHES ( catch_directive )* ( catchall_directive )* )\n {\n match(input, I_CATCHES, FOLLOW_I_CATCHES_in_catches1314);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:17: ( catch_directive )*\n loop19:\n while (true) {\n int alt19 = 2;\n int LA19_0 = input.LA(1);\n if ((LA19_0 == I_CATCH)) {\n alt19 = 1;\n }\n\n switch (alt19) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:17: catch_directive\n {\n pushFollow(FOLLOW_catch_directive_in_catches1316);\n catch_directive();\n state._fsp--;\n\n }\n break;\n\n default:\n break loop19;\n }\n }\n\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:34: ( catchall_directive )*\n loop20:\n while (true) {\n int alt20 = 2;\n int LA20_0 = input.LA(1);\n if ((LA20_0 == I_CATCHALL)) {\n alt20 = 1;\n }\n\n switch (alt20) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:34: catchall_directive\n {\n pushFollow(FOLLOW_catchall_directive_in_catches1319);\n catchall_directive();\n state._fsp--;\n\n }\n break;\n\n default:\n break loop20;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return tryBlocks;\n }",
"public void init() {\n for (Clause c : clauses) {\n // if there is only one literal UNKNOWN and the other are NEGATIVE , add to fringe\n if (c.getNumUnknownLiterals() == 1 && c.getNumOfLiterals() - c.getNumUnknownLiterals() == c.getNumOfNegative()) {\n fringe.push(c);\n }\n }\n computeLabel();\n }",
"private void updateFringeAndConflicts(List<String> changed) {\n //update fringe\n for (Clause ci : fringe) {\n for (CLiteral l : ci.getCLiterals()) {\n if (changed.contains(l.getName())) {\n ci.updateClause(labels);\n if ( ci.numOfNegative>0)\n // else if (c.numUnknownLiterals==0 && c.numOfNegative==c.numUnknownLiterals)\n if (!conflicts.contains(ci)) {\n if (conflicts.size()+1<=maxConflicts)\n conflicts.add(ci);\n\n break;\n }\n }\n }\n }\n\n // check rest of clauses which not in fringe or conflicts.\n for (Clause c : clauses) {\n if (!fringe.contains(c) && !conflicts.contains(c)) {\n for (CLiteral l : c.getCLiterals()) {\n if (changed.contains(l.getName())) {\n c.updateClause(labels);\n\n if (c.getNumUnknownLiterals() == 1 && c.getNumOfNegative() == c.getNumOfLiterals() - c.getNumUnknownLiterals()) {\n fringe.push(c);\n break;\n } else if (c.numOfNegative >0) {\n // else if (c.numUnknownLiterals==0 && c.numOfNegative==c.numUnknownLiterals)\n if (!conflicts.contains(c)) {\n if (conflicts.size()+1<=maxConflicts)\n conflicts.add(c);\n\n break;\n }\n }\n }\n }\n }\n }\n }",
"public final void catchClause() throws RecognitionException {\n int catchClause_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"catchClause\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(645, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 92) ) { return ; }\n // Java.g:646:5: ( 'catch' '(' formalParameter ')' block )\n dbg.enterAlt(1);\n\n // Java.g:646:9: 'catch' '(' formalParameter ')' block\n {\n dbg.location(646,9);\n match(input,88,FOLLOW_88_in_catchClause3685); if (state.failed) return ;\n dbg.location(646,17);\n match(input,66,FOLLOW_66_in_catchClause3687); if (state.failed) return ;\n dbg.location(646,21);\n pushFollow(FOLLOW_formalParameter_in_catchClause3689);\n formalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(646,37);\n match(input,67,FOLLOW_67_in_catchClause3691); if (state.failed) return ;\n dbg.location(646,41);\n pushFollow(FOLLOW_block_in_catchClause3693);\n block();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 92, catchClause_StartIndex); }\n }\n dbg.location(647, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"catchClause\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"@Override\n public Void visitClause(GraafvisParser.ClauseContext ctx) {\n /* Arrived at a new clause, clear variables set */\n variables.clear();\n /* Visit antecedent and consequence */\n return visitChildren(ctx);\n }",
"String replaceOnException(String sql);",
"public ArrayList<Clause> solve() {\n for (Clause c : clauses) {\n for (CLiteral l : c.getCLiterals()) {\n if (labels.get(l.getName()) == null)\n labels.put(l.getName(), -1);\n }\n }\n init();\n\n return (ArrayList<Clause>) conflicts;\n }",
"private void catchClause(String label, Scope scope, Vector queue)\r\n {\r\n matchKeyword(Keyword.CATCHSY);\r\n matchKeyword(Keyword.LPARSY);\r\n\r\n Parameter parameter = formalParameter();\r\n\r\n Operation root = new Operation();\r\n root.code = \"DUP \\\" \" + parameter.type.ident.string.substring(parameter.type.ident.string.lastIndexOf('.') + 1) + \" \\\" INSTANCEOF\\n IF\\n\";\r\n queue.add(root);\r\n\r\n matchKeyword(Keyword.RPARSY);\r\n\r\n VariableType a = new VariableType(parameter.type, 0);\r\n a.name = parameter.name;\r\n\r\n Vector v = new Vector();\r\n v.add(\"\" + Operation.newLabel());\r\n block(null, a, scope, v, Scope.CATCH, null, queue);\r\n\r\n root = new Operation();\r\n root.code = \"DUP \" + label + \" BRANCH\\nENDIF\\n\";\r\n queue.add(root);\r\n }",
"public void replaceNodes() {\n for (ConstantPropagationInformation information : constantPropagations) {\n information.parent.getChildren().set(information.childIndex, information.replacement);\n }\n }",
"@Override\n public String visit(CatchClause n, Object arg) {\n return null;\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseList() {\n List<CatchClause> list = (List<CatchClause>)getChild(1);\n list.getNumChild();\n return list;\n }",
"public void markWildcardDnsFailOverrideReplace() throws JNCException {\n markLeafReplace(\"wildcardDnsFailOverride\");\n }",
"@Override\n public Void visit(CatchClause nd, SuccessorInfo i) {\n if (nd.hasGuard()) {\n // if so, the guard may fail and execution might continue with the next\n // catch clause (if any)\n writeSuccessor(nd, (Node)nd.getParam());\n visitSequence(\n nd.getParam(), nd.getGuard(), union(First.of(nd.getBody()), i.getSuccessors(false)));\n visitSequence(nd.getBody(), i.getSuccessors(true));\n } else {\n // unguarded catch clauses always execute their body\n if (nd.getParam() != null) {\n writeSuccessor(nd, (Node)nd.getParam());\n visitSequence(nd.getParam(), nd.getBody(), i.getAllSuccessors());\n } else {\n writeSuccessor(nd, First.of(nd.getBody()));\n visitSequence(nd.getBody(), i.getAllSuccessors());\n }\n }\n return null;\n }",
"private List<Throwable> exceptions(Object swallowing) {\n return Collections.emptyList();\n }",
"private void addTraps() {\n final Jimple jimple = Jimple.v();\n for (TryBlock<? extends ExceptionHandler> tryItem : tries) {\n int startAddress = tryItem.getStartCodeAddress();\n int length = tryItem.getCodeUnitCount(); // .getTryLength();\n int endAddress = startAddress + length; // - 1;\n Unit beginStmt = instructionAtAddress(startAddress).getUnit();\n // (startAddress + length) typically points to the first byte of the\n // first instruction after the try block\n // except if there is no instruction after the try block in which\n // case it points to the last byte of the last\n // instruction of the try block. Removing 1 from (startAddress +\n // length) always points to \"somewhere\" in\n // the last instruction of the try block since the smallest\n // instruction is on two bytes (nop = 0x0000).\n Unit endStmt = instructionAtAddress(endAddress).getUnit();\n // if the try block ends on the last instruction of the body, add a\n // nop instruction so Soot can include\n // the last instruction in the try block.\n if (jBody.getUnits().getLast() == endStmt\n && instructionAtAddress(endAddress - 1).getUnit() == endStmt) {\n Unit nop = jimple.newNopStmt();\n jBody.getUnits().insertAfter(nop, endStmt);\n endStmt = nop;\n }\n\n List<? extends ExceptionHandler> hList = tryItem.getExceptionHandlers();\n for (ExceptionHandler handler : hList) {\n String exceptionType = handler.getExceptionType();\n if (exceptionType == null) {\n exceptionType = \"Ljava/lang/Throwable;\";\n }\n Type t = DexType.toSoot(exceptionType);\n // exceptions can only be of RefType\n if (t instanceof RefType) {\n SootClass exception = ((RefType) t).getSootClass();\n DexlibAbstractInstruction instruction =\n instructionAtAddress(handler.getHandlerCodeAddress());\n if (!(instruction instanceof MoveExceptionInstruction)) {\n logger.debug(\n \"\"\n + String.format(\n \"First instruction of trap handler unit not MoveException but %s\",\n instruction.getClass().getName()));\n } else {\n ((MoveExceptionInstruction) instruction).setRealType(this, exception.getType());\n }\n\n Trap trap = jimple.newTrap(exception, beginStmt, endStmt, instruction.getUnit());\n jBody.getTraps().add(trap);\n }\n }\n }\n }",
"public final void catchall_directive() throws RecognitionException {\n Label from = null;\n Label to = null;\n Label using = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:544:3: ( ^( I_CATCHALL from= label_ref to= label_ref using= label_ref ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:544:5: ^( I_CATCHALL from= label_ref to= label_ref using= label_ref )\n {\n match(input, I_CATCHALL, FOLLOW_I_CATCHALL_in_catchall_directive1362);\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_label_ref_in_catchall_directive1366);\n from = label_ref();\n state._fsp--;\n\n pushFollow(FOLLOW_label_ref_in_catchall_directive1370);\n to = label_ref();\n state._fsp--;\n\n pushFollow(FOLLOW_label_ref_in_catchall_directive1374);\n using = label_ref();\n state._fsp--;\n\n match(input, Token.UP, null);\n\n\n method_stack.peek().methodBuilder.addCatch(from, to, using);\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n }",
"@Override\n protected void updateEliminations() {\n\n }",
"public void applySubstitutions() throws Exception {\n\t\tStringBuffer sql = new StringBuffer();\n\t\t\n\t\tPattern p = Pattern.compile(Pattern.quote(LM_PARAM_PREFIX) + \"<([^>]+)>\");\n\t\tMatcher m = p.matcher(sqlText);\n\t\t\n\t\twhile(m.find()) {\n\t\t\tlog.debug(\"matcher: \"+m.toString());\n\t\t\tlog.debug(\"SQL Subst: \"+m.group(1)+\" --> \" + subs.get(m.group(1)));\n\t\t\t\n\t\t\tm.appendReplacement(sql, subs.get(m.group(1)));\n\t\t}\n\t\tm.appendTail(sql);\n\t\tlog.debug(\"Expanded SQL: \"+ sql.toString());\n\t\tsqlText = sql.toString();\n\t}",
"@Override\n public void unSafeQueryInterceptors() throws SQLException {\n }",
"public static void resetAllHighlight(){\n\t\tfor (Case[] casesLignes: cases){\n\t\t\tfor(Case casePlateau: casesLignes){\n\t\t\t\tcasePlateau.resetHighlight();\n\t\t\t}\n\t\t}\n\t}",
"private void doReplace(LValue lv, List<LValue> replaceThese, List<Op04StructuredStatement> inThese) {\n\n for (int x=0;x<inThese.size()-1;++x) {\n LValue replaceThis = replaceThese.get(x);\n Op04StructuredStatement inThis = inThese.get(x);\n ExpressionReplacingRewriter err = new ExpressionReplacingRewriter(new LValueExpression(replaceThis), new LValueExpression(lv));\n StructuredAssignment statement = (StructuredAssignment)inThis.getStatement();\n statement.rewriteExpressions(err);\n inThis.replaceStatement(new StructuredAssignment(BytecodeLoc.TODO, lv, statement.getRvalue()));\n }\n Op04StructuredStatement last = inThese.get(inThese.size()-1);\n StructuredAssignment structuredAssignment = (StructuredAssignment)last.getStatement();\n last.replaceStatement(new StructuredAssignment(BytecodeLoc.TODO, lv, structuredAssignment.getRvalue(), true));\n }",
"public void addSubstitute(String match, String replace) {\n/* 206 */ if (!this.substitutes.containsKey(match))\n/* */ {\n/* 208 */ this.substitutes.put(match, new ArrayList<String>());\n/* */ }\n/* 210 */ ((List<String>)this.substitutes.get(match)).add(replace);\n/* */ }",
"public void missedFish(ArrayList<Fish> hitList){\r\n for(Fish missing: hitList){\r\n getChildren().remove(missing.fishView);\r\n activeFish.remove(missing);\r\n }\r\n }",
"void replaceRegex() {\n int index = -1;\n for (int i = 0; i < regex.elist.size(); i++) {\n if (regex.elist.get(i).isShareableUnit) {\n ElementShareableUnit share = (ElementShareableUnit) regex.elist.get(i);\n if (share.share == this) {\n index = i;\n }\n }\n }\n //replace in parenthesis\n for (int i = 0; i < regex.elist.size(); i++) {\n Element e = regex.elist.get(i);\n if (e.isParentheis) {\n e.replaceRegex(this);\n }\n\n }\n if (index == -1) {\n System.out.println(\"there is error \" + this.getString());\n } else {\n regex.elist.remove(index);\n for (int i = 0; i < this.lelement.size(); i++) {\n regex.elist.add(index + i, this.lelement.get(i));\n }\n }\n //System.out.println(\"After: \" + this.regex.getString());\n }",
"@Handler\n private void replace( ReceivePrivmsg event )\n {\n String text = event.getText();\n Matcher sedMatcher = replacePattern.matcher( text );\n\n String nick = event.getSender();\n\n if ( sedMatcher.matches() )\n {\n String correction = \"Correction: \";\n\n /**\n * If the last group of the regex captures a non-null string, the user is fixing another user's message.\n */\n if ( sedMatcher.group( 5 ) != null )\n {\n nick = sedMatcher.group( 5 );\n correction = nick + \", ftfy: \";\n }\n\n if ( lastMessageMapByNick.containsKey( nick ) )\n {\n String regexp = sedMatcher.group( 2 );\n String replacement = sedMatcher.group( 3 );\n String endFlag = sedMatcher.group( 4 );\n\n synchronized ( lastMessageMapByNickMutex )\n {\n String lastMessage = lastMessageMapByNick.get( nick );\n\n if ( !lastMessage.contains( regexp ) )\n {\n event.reply( \"Wow. Seriously? Try subbing out a string that actually occurred. Do you even sed, bro?\" );\n }\n else\n {\n String replacedMsg;\n String replacedMsgWHL;\n\n String replacementWHL = Colors.bold( replacement );\n\n // TODO: Probably can be simplified via method reference in Java 8\n if ( \"g\".equals( endFlag ) )\n {\n replacedMsg = lastMessage.replaceAll( regexp, replacement );\n replacedMsgWHL = lastMessage.replaceAll( regexp, replacementWHL );\n }\n else\n {\n replacedMsg = lastMessage.replaceFirst( regexp, replacement );\n replacedMsgWHL = lastMessage.replaceFirst( regexp, replacementWHL );\n }\n\n event.reply( correction + replacedMsgWHL );\n lastMessageMapByNick.put( nick, replacedMsg );\n }\n }\n }\n }\n else\n {\n synchronized ( lastMessageMapByNickMutex )\n {\n lastMessageMapByNick.put( nick, text );\n }\n }\n }",
"public void markCriticalAbateReplace() throws JNCException {\n markLeafReplace(\"criticalAbate\");\n }",
"public static CatchBlock catch_(Class clazz, Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public void updatePlacers() {\r\n\t\tplacers.addAll(rulePlacers);\r\n\t\trulePlacers.clear();\r\n\t}",
"public void replaceWithCovers()\r\n/* 197: */ {\r\n/* 198:156 */ short[] covs = Arrays.copyOf(this.Covers, 29);\r\n/* 199:157 */ CoverLib.replaceWithCovers(this.k, this.l, this.m, this.n, this.CoverSides, covs);\r\n/* 200: */ }",
"@Override\n\tpublic void replaceAt(int index, int e) {\n\t\t\n\t}",
"public static CatchBlock catch_(ParameterExpression expression0, Expression expression1) { throw Extensions.todo(); }",
"public <T> SafeHtml replaceAll(List<? extends FindReplace> findReplaceList) {\n if (findReplaceList == null || findReplaceList.isEmpty()) {\n return this;\n }\n\n StringBuilder pat = new StringBuilder();\n Iterator<? extends FindReplace> it = findReplaceList.iterator();\n while (it.hasNext()) {\n FindReplace fr = it.next();\n pat.append(fr.pattern().getSource());\n if (it.hasNext()) {\n pat.append('|');\n }\n }\n\n StringBuilder result = new StringBuilder();\n RegExp re = RegExp.compile(pat.toString(), \"g\");\n String orig = asString();\n int index = 0;\n MatchResult mat;\n while ((mat = re.exec(orig)) != null) {\n String g = mat.getGroup(0);\n // Re-run each candidate to find which one matched.\n for (FindReplace fr : findReplaceList) {\n if (fr.pattern().test(g)) {\n try {\n String repl = fr.replace(g);\n result.append(orig.substring(index, mat.getIndex()));\n result.append(repl);\n } catch (IllegalArgumentException e) {\n continue;\n }\n index = mat.getIndex() + g.length();\n break;\n }\n }\n }\n result.append(orig.substring(index, orig.length()));\n return asis(result.toString());\n }",
"void reapplyBreakpoints()\n\t{\n\t\t// give us a bit of time to process the newly loaded swf\n\t\tif (propertyGet(METADATA_ATTEMPTS) > 0)\n\t\t\ttry { waitForMetaData(80); } catch(InProgressException ipe) { }\n\n\t\tint count = breakpointCount();\n\t\tfor(int i=0; i<count; i++)\n\t\t{\n\t\t\tBreakAction a = breakpointAt(i);\n\t\t\ta.clearHits();\n\t\t\ta.setStatus(BreakAction.UNRESOLVED);\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tresolveBreakpoints(sb);\n\t\tout(sb.toString());\n\t}",
"public void setExceptionHandlers(Catch[] exceptions);",
"public static int resolve(Clause clause, ClauseList clauseList, ImplicationDAG implicationDAG) {\n int size = clause.size();\n int size1 = size-1;\n int ts = clauseList.timestamp+1;\n clauseList.timestamp += size*size+1;\n ArrayList<CLiteral> toBeDeleted = new ArrayList<>();\n for(int i = 0; i < size; ++i) {\n int i1 = i;\n CLiteral cliteral = clause.cliterals.get(i);\n int timestamp = ts+i*size;\n // mark the potential resolution literals\n clauseList.streamContradicting(cliteral.literal,implicationDAG).\n forEach(cLit->{if(cLit.clause != clause && cLit.clause.size() >= clause.size()){cLit.timestamp = timestamp;}});\n for(int k = 0; k < size; ++k) {\n int k1 = k;\n Stream<CLiteral> stream = (i == k) ?\n clauseList.streamContradicting(cliteral.literal,implicationDAG) :\n clauseList.stream(clause.cliterals.get(k).literal,implicationDAG,true);\n if(k == 0) {stream.forEach(cLit -> {\n if(i1 != k1) {cLit.timestamp = 0;}\n if(cLit.clause.size() >= size && cLit.timestamp != timestamp) {cLit.clause.timestamp = timestamp;}});\n continue;}\n if(k == size1) {\n stream.forEach(cLit ->{\n if(i1 != k1) {cLit.timestamp = 0;}\n Clause otherClause = cLit.clause;\n if(otherClause != clause && otherClause.timestamp == timestamp+k1-1) {\n for(CLiteral clit : otherClause.cliterals) {\n if(clit.timestamp == timestamp) {\n clit.timestamp = 0;\n toBeDeleted.add(clit);}}}});}\n else {stream.forEach(cLit ->{\n if(i1 != k1) {cLit.timestamp = 0;}\n Clause otherClause = cLit.clause;\n if(otherClause.timestamp == timestamp+k1-1) {otherClause.timestamp = timestamp+k1;}});}}}\n for(CLiteral clit : toBeDeleted) {\n clauseList.removeLiteral(clit);}\n return toBeDeleted.size();}",
"public static CatchBlock catch_(ParameterExpression expression0, Expression expression1, Expression expression2) { throw Extensions.todo(); }",
"private void replaceWhileToIf(WhileStatement w, Block block, int index) {\n\t\tint maxDepth = Configuration.getLimitLoopDepthNum();\r\n\t\tint whileIndex = index;\r\n\t\tBlock targetBlock = block;\r\n\t\tint[] replaceStrategy = { 0, 1, 2, maxDepth };\r\n\r\n\t\ttargetBlock.getStatements().remove(whileIndex);\r\n\t\tfor (int i = 0; i < maxDepth - 1; i++) {\r\n\t\t\tif (contains(replaceStrategy, i)) {\r\n\t\t\t\ttargetBlock = addIfStatement(w, whileIndex, targetBlock, i);\r\n\t\t\t} else {\r\n\t\t\t\taddStatementsToBlock(targetBlock, w.getConditionBlock()\r\n\t\t\t\t\t\t.getStatements());\r\n\t\t\t}\r\n\t\t}\r\n\t\taddIfStatement(w, whileIndex, targetBlock, maxDepth);\r\n\t}",
"private void markErrors(final ConcreteSyntax cSyntax)\n \t\t\tthrows CoreException {\n \t\tfor(Import aImport : cSyntax.getImports()) {\n \t\t\tConcreteSyntax importedCS = aImport.getConcreteSyntax();\n \t\t\tif (importedCS != null) {\n \t\t\t\tMarkerHelper.unmark(importedCS.eResource());\n \t\t\t\tMarkerHelper.mark(aImport.eResource());\n \t\t\t}\n \t\t}\n \t}",
"public void markRequestRetryReplace() throws JNCException {\n markLeafReplace(\"requestRetry\");\n }",
"protected void applyNewStatements() {\r\n\t\tbldInfView.updateCurrentDirectory(bldInfView.getModel().getPath());\r\n\r\n\t\tapplyNewListArgumentStatements();\r\n\t\tapplyNewBlockStatements();\r\n\t}",
"List<IRewriteRule> overapproxRewrite(int bound, Set<Integer> emergingSymbols);",
"public static TryExpression tryCatchFinally(Expression body, CatchBlock[] handlers) { throw Extensions.todo(); }",
"public void restore() throws ContradictionException {\n if (empty) {\n throw new UnsupportedOperationException(\"Empty solution. No solution found\");\n }\n for (IntVar i : intmap.keySet()) {\n i.instantiateTo(intmap.get(i), this);\n }\n for (SetVar s : setmap.keySet()) {\n s.instantiateTo(setmap.get(s), this);\n }\n for (GraphVar g : graphmap.keySet()) {\n g.instantiateTo(graphmap.get(g), this);\n }\n for (RealVar r : realmap.keySet()) {\n double[] bounds = realmap.get(r);\n r.updateBounds(bounds[0], bounds[1], this);\n }\n }",
"public void replaceCurrentInterpolationTerm(String replacement) {\n\t\tMessageInterpolationToken token = new MessageInterpolationToken( replacement );\n\t\ttoken.terminate();\n\t\ttokenList.set( currentPosition - 1, token );\n\t}",
"String getSelectListItemReferenceFixStatement();",
"public void replaceAll(MConstText srcText) {\r\n replace(0, length(), srcText, 0, srcText.length());\r\n }",
"public void fixImports(Module module, Collection<SLanguage> addedLanguages) {\n }",
"public static Clause resolved(Clause clause, ClauseList clauseList, ImplicationDAG implicationDAG) {\n int size = clause.size();\n int length = clause.size();\n for(int i = 0; i < length; ++i) {\n int timestamp = ++clauseList.timestamp;\n clauseList.timestamp += size+1;\n for(int j = 0; j < length; ++j) {\n if(i == j) {continue;}\n clauseList.stream(clause.cliterals.get(j).literal,implicationDAG,false).\n forEach(clit -> {\n Clause otherClause = clit.clause;\n if(otherClause.size() > size) {return;}\n clit.timestamp = timestamp;\n if(otherClause.timestamp >= timestamp) {++otherClause.timestamp;}\n else {otherClause.timestamp = timestamp;}});}\n\n if(clauseList.streamContradicting(clause.cliterals.get(i).literal,implicationDAG).\n anyMatch(clit -> {\n clit.timestamp = timestamp;\n Clause otherClause = clit.clause;\n return otherClause.timestamp - timestamp >= otherClause.size()-2 && allMarked(otherClause,timestamp);})) {\n clause.removeLiteralAtPosition(i);\n --i;\n --length;}}\n return clause;}",
"public void replaceFormats(List<Format> formats);",
"@Override\n public void clearWarnings() throws SQLException {\n }",
"public Collection<Resolver> getCauses() {\r\n return Collections.unmodifiableCollection(causes);\r\n }",
"protected void replaceText(CharSequence text) {\n/* 564 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void testNoFixFor_ParsingErrorInsertToComplete() throws Exception {\n IPackageFragment pack1 = fSourceFolder.createPackageFragment(\"test1\", false, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package test1;\\n\");\n buf.append(\"import java.util.*;\\n\");\n buf.append(\"class E {\\n\");\n buf.append(\" public class MyLayout {\\n\");\n buf.append(\" int indent;\\n\");\n buf.append(\" }\\n\");\n buf.append(\" public void foo() {\\n\");\n buf.append(\" new MyLayout().indent // no real quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" \\n\");\n buf.append(\" private int[] fField;\\n\");\n buf.append(\" public void bar() {\\n\");\n buf.append(\" fField[0] // no quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" public void baz() {\\n\");\n buf.append(\" try { // no quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" }\\n\");\n buf.append(\" void foo(Map<String, String> map) {\\n\");\n buf.append(\" map..keySet(); // no quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" void // no quick fix\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu = pack1.createCompilationUnit(\"E.java\", buf.toString(), false, null);\n CompilationUnit astRoot = getASTRoot(cu);\n List<ICompletionProposal> proposals = collectAllCorrections(cu, astRoot, 9);\n assertNumberOfProposals(proposals, 0);\n IProblem[] problems = astRoot.getProblems();\n for (int i = 0; i < problems.length; i++) {\n IProblem problem = problems[i];\n if (i == 5) {\n assertEquals(IProblem.ParsingErrorDeleteToken, problem.getID());\n } else {\n assertEquals(IProblem.ParsingErrorInsertToComplete, problem.getID());\n }\n }\n assertFalse(\"IProblem.ParsingErrorInsertToComplete is very general and should not trigger the quick fix lightbulb everywhere\", JavaCorrectionProcessor.hasCorrections(cu, IProblem.ParsingErrorInsertToComplete, IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER));\n }",
"public void replaceListOfArticles(List<Article> list) {\n this.listOfArticles = list;\n }",
"void clearWarnings() throws SQLException;",
"public static CatchBlock catch_(Class clazz, Expression expression) { throw Extensions.todo(); }",
"@Override\n public Void visitProgram(GraafvisParser.ProgramContext ctx) {\n for (GraafvisParser.ClauseContext clause : ctx.clause()) {\n visitClause(clause);\n }\n return null;\n }",
"public void setRolesUnresolved(RoleUnresolvedList unresolvedList) {\n if (unresolvedList != null) {\n\n unresolvedRoleList = new RoleUnresolvedList();\n\n for (Iterator<?> roleUnresIter = unresolvedList.iterator();\n roleUnresIter.hasNext();) {\n RoleUnresolved currRoleUnres =\n (RoleUnresolved)(roleUnresIter.next());\n unresolvedRoleList.add((RoleUnresolved)(currRoleUnres.clone()));\n }\n } else {\n unresolvedRoleList = null;\n }\n return;\n }",
"private void addSubstitution(Map<String, String> substitutionMap, String find, String replace)\n {\n if (find != null && replace != null)\n {\n substitutionMap.put(find.toUpperCase(), replace);\n } \n }",
"@Override\n\tpublic void catching(Throwable t) {\n\n\t}",
"public List<MethodInterceptor> modifyMethodInterceptors(Method method, List<MethodInterceptor> currentList);",
"public void replace(String text) {\n\t\tlogger.info(\"REPLACE TODO\");\n\t}",
"private void dig(ArrayList<Element> surroundings) {\r\n for (int i = 0; i < surroundings.size(); i++) {\r\n if (surroundings.get(i).getSymbol() == '#') {\r\n surroundings.get(i).setSymbol(' ');\r\n }\r\n }\r\n }",
"@Override\r\n public void afterVisit() {\n final MethodCallUtils.EnclosingRefs enclosing = \r\n MethodCallUtils.getEnclosingInstanceReferences(\r\n thisExprBinder, expr,\r\n superClassDecl,\r\n context.theReceiverNode, getEnclosingSyntacticDecl());\r\n /* The transformer will already be set in the map correctly for these\r\n * effects when they are original generated. We are just modifying\r\n * the lock and evidence information for the effects.\r\n */\r\n for (final Effect e : newContext.theEffects.build()) {\r\n Effect maskedEffect = e.mask(thisExprBinder);\r\n if (maskedEffect != null) {\r\n // Mask again if the effect is on the receiver of the anonymous class\r\n if (maskedEffect.affectsReceiver(newContext.theReceiverNode)) {\r\n context.theEffects.add(\r\n Effect.effect(\r\n maskedEffect.getSource(), maskedEffect.isRead(),\r\n new EmptyTarget(new EmptyEvidence(Reason.UNDER_CONSTRUCTION)),\r\n new MaskedEffectEvidence(maskedEffect),\r\n maskedEffect.getNeededLocks()));\r\n } else {\r\n final Target target = maskedEffect.getTarget();\r\n \r\n final TargetEvidence te = target.getEvidence();\r\n if (te instanceof EmptyEvidence\r\n && ((EmptyEvidence) te).getReason() == Reason.METHOD_CALL) {\r\n /* Special case: empty effect that carries lock preconditions */\r\n final ImmutableSet.Builder<NeededLock> newLockSet = ImmutableSet.builder();\r\n for (final NeededLock lock : maskedEffect.getNeededLocks()) {\r\n newLockSet.add(lock.replaceEnclosingInstanceReference(enclosing));\r\n }\r\n context.theEffects.add(\r\n Effect.empty(maskedEffect.getSource(),\r\n new EmptyEvidence(Reason.METHOD_CALL), \r\n ImmutableSet.of(getEvidence()), newLockSet.build()));\r\n } else if (target instanceof InstanceTarget) {\r\n final IRNode ref = target.getReference();\r\n \r\n final IRNode newRef = enclosing.replace(ref);\r\n if (newRef != null) {\r\n final IRNode objectExpr = thisExprBinder.bindThisExpression(newRef);\r\n final Target newTarget = new InstanceTarget(\r\n objectExpr, target.getRegion(),\r\n new EnclosingRefEvidence(maskedEffect.getSource(), ref, newRef));\r\n final Set<NeededLock> newLocks = new HashSet<>();\r\n for (final NeededLock lock : maskedEffect.getNeededLocks()) {\r\n newLocks.add(lock.replaceEnclosingInstanceReference(enclosing));\r\n }\r\n elaborateInstanceTarget(\r\n context.bcaQuery, lockFactory, thisExprBinder, lockModel.get(),\r\n maskedEffect.getSource(), maskedEffect.isRead(), newTarget, getEvidence(),\r\n newLocks, context.theEffects);\r\n } else {\r\n /* XXX: Not sure if it is possible to get here. External\r\n * variable references are turned into ANyInstance targets\r\n * during elaboration.\r\n */\r\n /* 2012-08-24: We have to clean the type to make sure it is not a \r\n * type formal.\r\n */\r\n IJavaType type = thisExprBinder.getJavaType(ref);\r\n if (type instanceof IJavaTypeFormal) {\r\n type = TypeUtil.typeFormalToDeclaredClass(\r\n thisExprBinder.getTypeEnvironment(), (IJavaTypeFormal) type);\r\n }\r\n context.theEffects.add(Effect.effect(\r\n maskedEffect.getSource(), maskedEffect.isRead(),\r\n new AnyInstanceTarget(\r\n (IJavaReferenceType) type, target.getRegion(),\r\n new UnknownReferenceConversionEvidence(\r\n maskedEffect, ref, (IJavaReferenceType) type)),\r\n getEvidence(), maskedEffect.getNeededLocks()));\r\n }\r\n } else {\r\n context.theEffects.add(\r\n maskedEffect.updateEvidence(target.getEvidence(), ImmutableSet.of(getEvidence())));\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void clearWarnings() throws SQLException {\n\r\n }",
"public void fixInter () {\r\n\t\twhile(intervals.size() > 0) {\r\n\t\t\tintervals1.add(intervals.remove());\r\n\t\t}\r\n\t}",
"@Override\n\tpublic int getReplaceBlock() {\n\t\treturn 0;\n\t}",
"public SmallSet<CFGNode> interceptedAbruptStmts() {\n ASTNode$State state = state();\n try {\n \t\tSmallSet<CFGNode> branches = emptySmallSet();\n \t\tIterator itr = super.interceptedAbruptStmts().iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tStmt stmt = (Stmt)itr.next();\n \t\t\tif (stmt.isBreakStmt() && potentialTargetOf((BreakStmt)stmt) || \n \t\t\t\tstmt.isContinueStmt() && potentialTargetOf((ContinueStmt)stmt)) {\n \t\t\t\tcontinue;\n \t\t\t} \n \t\t\tbranches = branches.union(stmt);\n \t\t}\n \t\treturn branches;\n \t}\n finally {\n }\n }",
"@Override\n\tpublic Void visit(ClauseLoop clause, Void ctx) {\n\t\treturn null;\n\t}",
"public void replaceSelectionForUpdate(Update upStmt, List<String> valList) throws JSQLParserException{\n\t\tIterator valueIt = upStmt.getExpressions().iterator();\n\t\tint colIndex = 0;\n\t\twhile(valueIt.hasNext()){\n\t\t\tString valStr = valueIt.next().toString().trim();\n\t\t\tif(valStr.contains(\"SELECT\") || valStr.contains(\"select\")){\n\t\t\t\t//execute the selection \n\t\t\t\t//remove two brackets\n\t\t\t\tif(valStr.indexOf(\"(\") == 0 && valStr.lastIndexOf(\")\") == valStr.length()-1){\n\t\t\t\t\tvalStr = valStr.substring(1, valStr.length()-1);\n\t\t\t\t}\n\t\t\t\tPlainSelect plainSelect = ((PlainSelect)((Select)cJsqlParser.parse(new StringReader(valStr))).getSelectBody());\n\t\t\t\tassert (plainSelect.getSelectItems().size() == 1);\n\t\t\t\ttry {\n\t\t\t\t\tPreparedStatement sPst = con.prepareStatement(valStr);\n\t\t\t\t\tResultSet rs = sPst.executeQuery();\n\t\t\t\t\tif(rs.next()){\n\t\t\t\t\t\tvalList.set(colIndex,rs.getObject(1).toString());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tthrow new RuntimeException(\"Select must return a value!\");\n\t\t\t\t\t}\n\t\t\t\t\trs.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDebug.println(\"Selection is wrong\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcolIndex++;\n\t\t}\n\t}",
"private void logWarningsAboutUncoveredMethods(Map<String, PathSecurityInformation> matches, String prefix, String suffix) {\n for (Map.Entry<String, PathSecurityInformation> entry : matches.entrySet()) {\n if (entry.getValue().perMethodRequiredRoles.isEmpty() && entry.getValue().excludedMethodRoles.isEmpty()) {\n continue;\n }\n Set<String> missing = new HashSet<>(KNOWN_METHODS);\n for (String m : entry.getValue().perMethodRequiredRoles.keySet()) {\n missing.remove(m);\n }\n Iterator<String> it = missing.iterator();\n while (it.hasNext()) {\n String val = it.next();\n for (ExcludedMethodRoles excluded : entry.getValue().excludedMethodRoles) {\n if (!excluded.methods.contains(val)) {\n it.remove();\n break;\n }\n }\n }\n if (!missing.isEmpty()) {\n UndertowServletLogger.ROOT_LOGGER.unsecuredMethodsOnPath(prefix + entry.getKey() + suffix, missing);\n }\n }\n }",
"public void markCriticalActionReplace() throws JNCException {\n markLeafReplace(\"criticalAction\");\n }",
"@Override\r\n\t\tpublic void clearWarnings() throws SQLException {\n\t\t\t\r\n\t\t}",
"public void replace(MethodSymbol msym, BlockData data) {\n\t\t\tfinal BasicBlock block = data.block;\n\t\t\t// Process those expressions, extracting duplicates. Note that\n\t\t\t// the list is reversed so that the largest expressions come first.\n\t\t\tLOG.debug(\"CSE.replace({}): removing exprs\", block);\n\t\t\tfor (Canonical ex : data.canonicalsAppearingInThisBlock) {\n\t\t\t\t// If this does not span over at least one subexpression, it's\n\t\t\t\t// something like \"x\", \"null\", or \"this\", which are not worth\n\t\t\t\t// it.\n\t\t\t\tif (ex.sub1 == null && ex.sub2 == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// we *could* adjust this criteria; for example we might\n\t\t\t\t// weight the expression to be substituted by how many\n\t\t\t\t// evaluations we are saving and opt not to CSE it. There\n\t\t\t\t// is no sense doing this adjustment without a body of\n\t\t\t\t// code to profile it on, however. Note the use of\n\t\t\t\t// deadAppearances to prevent excess CSE-ization. See the\n\t\t\t\t// comment on the field above for more details.\n\t\t\t\tif (ex.appearances.size() - ex.deadAppearances <= 1)\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// debug print outs.\n\t\t\t\tLOG.debug(\" Expression: {}\", ex.key);\n\t\t\t\tLOG.debug(\" Appearances: {}\", ex.appearances.size());\n\t\t\t\tLOG.debug(\" Dead Appearances: {}\", ex.deadAppearances);\n\n\t\t\t\t// Any use of this master expression is also a use of its\n\t\t\t\t// subexpressions. (i.e., x+y is also a use of x and y)\n\t\t\t\t// So indicate to those subexpresions that some of their\n\t\t\t\t// uses have already been replaced.\n\t\t\t\taddToDeadAppearances(ex.sub1, ex.appearances.size() - 1);\n\t\t\t\taddToDeadAppearances(ex.sub2, ex.appearances.size() - 1);\n\n\t\t\t\t// if this is the first time that this canonical has been\n\t\t\t\t// replaced,\n\t\t\t\t// create a symbol.\n\t\t\t\tExpr expr1;\n\t\t\t\tif (ex.sym == null) {\n\t\t\t\t\t// create a new symbol to use as a temporary\n\t\t\t\t\texpr1 = (Expr) ex.appearances.get(0).deepCopy();\n\t\t\t\t\tex.sym = new VariableSymbol(\"CSE(\" + ex.key + \")\",\n\t\t\t\t\t\t\texpr1.getType());\n\t\t\t\t\tmsym.addLocal(ex.sym);\n\t\t\t\t} else {\n\t\t\t\t\texpr1 = null;\n\t\t\t\t}\n\n\t\t\t\t// replace each instance, and insert the assignment that\n\t\t\t\t// creates the symbol immediately before the first replacement\n\t\t\t\tfor (int i = 0; i < block.instructions.size(); i++) {\n\t\t\t\t\tAst instruction = block.instructions.get(i);\n\t\t\t\t\tint changesBefore = changes;\n\t\t\t\t\tnew ExpressionReplacer().visit(instruction, ex);\n\n\t\t\t\t\t// we need to actually assign a value to the symbol. We wait\n\t\t\t\t\t// until right before its first appearance, so that any\n\t\t\t\t\t// reference variables are in scope.\n\t\t\t\t\tif (expr1 != null && changes > changesBefore) {\n\t\t\t\t\t\tcreateAssignment(block, i, ex, expr1);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\texpr1 = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (block.condition != null) {\n\t\t\t\t\tint changesBefore = changes;\n\t\t\t\t\tblock.condition = (Expr) new ExpressionReplacer().visit(\n\t\t\t\t\t\t\tblock.condition, ex);\n\n\t\t\t\t\t// if we still haven't placed the assignment, the appearance\n\t\t\t\t\t// must be in the condition, so just place it at the end\n\t\t\t\t\tif (expr1 != null) {\n\t\t\t\t\t\tassert changesBefore < changes;\n\t\t\t\t\t\tcreateAssignment(block, block.instructions.size(), ex,\n\t\t\t\t\t\t\t\texpr1);\n\t\t\t\t\t\texpr1 = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tassert expr1 == null;\n\t\t\t}\n\n\t\t\tfor (BlockData chiData : data.childrenData)\n\t\t\t\treplace(msym, chiData);\n\t\t}",
"public void processAfterWrongTrace(LocationLine currentLine) {\n\t\t Set<String> currentPatchNameSet = currentLine.getPatchList().stream().filter(Objects::nonNull)\n\t .map(PatchFile::getPatchName).collect(Collectors.toCollection(LinkedHashSet::new));\n\t candidatePatchList.removeIf(patchFile -> currentPatchNameSet.contains(patchFile.getPatchName()));\n\t currentLine.setStateType(StateType.NO);\n\t}",
"@Override\r\n public String fix(String fixName, PageAnalysis analysis, MWPane textPane) {\r\n return fixUsingAutomaticReplacement(analysis);\r\n }",
"public void insertClause(int ix, EClause c)\n\t{ clauses.add(ix, c); }",
"public void clearEndUserExceptions();",
"public static TryExpression tryCatch(Expression body, CatchBlock[] handlers) { throw Extensions.todo(); }",
"private AbstractJsr305Handler handleDefinition(final DetailAST ast) {\n\n // no definition in catch clause\n final DetailAST parent = ast.getParent();\n AbstractJsr305Handler result = null;\n if (parent == null || parent.getType() != TokenTypes.LITERAL_CATCH) {\n // search modifiers\n final int type = ast.getType();\n switch (type) {\n case TokenTypes.METHOD_DEF:\n result = new MethodJsr305Handler(ast);\n break;\n case TokenTypes.CTOR_DEF:\n result = new ConstructorJsr305Handler(ast);\n break;\n case TokenTypes.PARAMETER_DEF:\n result = new ParameterJsr305Handler(ast);\n break;\n case TokenTypes.CLASS_DEF:\n case TokenTypes.INTERFACE_DEF:\n case TokenTypes.ENUM_DEF:\n result = new ClassJsr305Handler(ast);\n break;\n default:\n SevntuUtil.reportInvalidToken(ast.getType());\n break;\n }\n }\n return result;\n }",
"public String replaceFrom(CharSequence sequence, CharSequence replacement, CountMethod countMethod, UnicodeSet.SpanCondition spanCondition) {\n/* 182 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private List<Map.Entry<String, Pattern>> addPatterns (String syntax, List<Map.Entry<String, Pattern>> translations) {\n var resources = ResourceBundle.getBundle(syntax);\n for (var key : Collections.list(resources.getKeys())) {\n var regex = resources.getString(key);\n translations.add(new AbstractMap.SimpleEntry<>(key,\n Pattern.compile(regex, Pattern.CASE_INSENSITIVE)));\n }\n return translations;\n }",
"public IAeCatch selectMatchingCatch(IAeContextWSDLProvider aProvider, Iterator aIterOfCatches, IAeFaultTypeInfo aFault);",
"public void bindThrownExceptions() {\n\n\t\tif (this.thrownExceptions != null\n\t\t\t&& this.binding != null\n\t\t\t&& this.binding.thrownExceptions != null) {\n\t\t\tint thrownExceptionLength = this.thrownExceptions.length;\n\t\t\tint length = this.binding.thrownExceptions.length;\n\t\t\tif (length == thrownExceptionLength) {\n\t\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\t\tthis.thrownExceptions[i].resolvedType = this.binding.thrownExceptions[i];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tint bindingIndex = 0;\n\t\t\t\tfor (int i = 0; i < thrownExceptionLength && bindingIndex < length; i++) {\n\t\t\t\t\tTypeReference thrownException = this.thrownExceptions[i];\n\t\t\t\t\tReferenceBinding thrownExceptionBinding = this.binding.thrownExceptions[bindingIndex];\n\t\t\t\t\tchar[][] bindingCompoundName = thrownExceptionBinding.compoundName;\n\t\t\t\t\tif (bindingCompoundName == null) continue; // skip problem case\n\t\t\t\t\tif (thrownException instanceof SingleTypeReference) {\n\t\t\t\t\t\t// single type reference\n\t\t\t\t\t\tint lengthName = bindingCompoundName.length;\n\t\t\t\t\t\tchar[] thrownExceptionTypeName = thrownException.getTypeName()[0];\n\t\t\t\t\t\tif (CharOperation.equals(thrownExceptionTypeName, bindingCompoundName[lengthName - 1])) {\n\t\t\t\t\t\t\tthrownException.resolvedType = thrownExceptionBinding;\n\t\t\t\t\t\t\tbindingIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// qualified type reference\n\t\t\t\t\t\tif (CharOperation.equals(thrownException.getTypeName(), bindingCompoundName)) {\n\t\t\t\t\t\t\tthrownException.resolvedType = thrownExceptionBinding;\n\t\t\t\t\t\t\tbindingIndex++;\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public ExceptionFilter$$anonfun$doFilter$10(ExceptionFilter $outer, ObjectRef cause$1) {}",
"public void markTriggersMmeReplace() throws JNCException {\n markLeafReplace(\"triggersMme\");\n }",
"private void replaceQueryCampaigns(CampaignConfig toReplace, CampaignConfig campaign) {\n // Replace campaign in graphs\n List<GraphConfig> graphs = getGraphs();\n for (GraphConfig graph : graphs) {\n graph.accept(new GraphVisitor() {\n\n @Override\n public void visit(HistogramConfig graph) {\n if (graph.query != null && graph.query.campaign != null\n && graph.query.campaign.equals(toReplace)) {\n graph.query.campaign = campaign;\n if (graph.equals(getCurrentGraph())) {\n notifyListeners(Type.CURRENT_GRAPH);\n }\n }\n }\n\n @Override\n public void visit(LineGraphConfig graph) {\n for (LineConfig line : graph.lines) {\n if (line.query != null && line.query.campaign != null\n && line.query.campaign.equals(toReplace)) {\n line.query.campaign = campaign;\n if (graph.equals(getCurrentGraph())) {\n notifyListeners(Type.CURRENT_GRAPH);\n }\n }\n }\n }\n });\n }\n notifyListeners(Type.GRAPHS);\n\n // Replace campaign in statistics\n for (StatisticConfig statistic : getStatistics()) {\n if (statistic.query != null && statistic.query.campaign != null\n && statistic.query.campaign.equals(toReplace)) {\n statistic.query.campaign = campaign;\n }\n }\n notifyListeners(Type.STATISTICS);\n }",
"public final EObject ruleCatch() throws RecognitionException {\n EObject current = null;\n int ruleCatch_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n EObject lv_formalParameter_2_0 = null;\n\n EObject lv_block_4_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 80) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3597:28: ( (otherlv_0= KEYWORD_60 otherlv_1= KEYWORD_4 ( (lv_formalParameter_2_0= ruleFormalParameter ) ) otherlv_3= KEYWORD_5 ( (lv_block_4_0= ruleBlock ) ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3598:1: (otherlv_0= KEYWORD_60 otherlv_1= KEYWORD_4 ( (lv_formalParameter_2_0= ruleFormalParameter ) ) otherlv_3= KEYWORD_5 ( (lv_block_4_0= ruleBlock ) ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3598:1: (otherlv_0= KEYWORD_60 otherlv_1= KEYWORD_4 ( (lv_formalParameter_2_0= ruleFormalParameter ) ) otherlv_3= KEYWORD_5 ( (lv_block_4_0= ruleBlock ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3599:2: otherlv_0= KEYWORD_60 otherlv_1= KEYWORD_4 ( (lv_formalParameter_2_0= ruleFormalParameter ) ) otherlv_3= KEYWORD_5 ( (lv_block_4_0= ruleBlock ) )\n {\n otherlv_0=(Token)match(input,KEYWORD_60,FOLLOW_KEYWORD_60_in_ruleCatch7179); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_0, grammarAccess.getCatchAccess().getCatchKeyword_0());\n \n }\n otherlv_1=(Token)match(input,KEYWORD_4,FOLLOW_KEYWORD_4_in_ruleCatch7191); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getCatchAccess().getLeftParenthesisKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3608:1: ( (lv_formalParameter_2_0= ruleFormalParameter ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3609:1: (lv_formalParameter_2_0= ruleFormalParameter )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3609:1: (lv_formalParameter_2_0= ruleFormalParameter )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3610:3: lv_formalParameter_2_0= ruleFormalParameter\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getCatchAccess().getFormalParameterFormalParameterParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleFormalParameter_in_ruleCatch7211);\n lv_formalParameter_2_0=ruleFormalParameter();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCatchRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"formalParameter\",\n \t\tlv_formalParameter_2_0, \n \t\t\"FormalParameter\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,KEYWORD_5,FOLLOW_KEYWORD_5_in_ruleCatch7224); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_3, grammarAccess.getCatchAccess().getRightParenthesisKeyword_3());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3631:1: ( (lv_block_4_0= ruleBlock ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3632:1: (lv_block_4_0= ruleBlock )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3632:1: (lv_block_4_0= ruleBlock )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:3633:3: lv_block_4_0= ruleBlock\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getCatchAccess().getBlockBlockParserRuleCall_4_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBlock_in_ruleCatch7244);\n lv_block_4_0=ruleBlock();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCatchRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"block\",\n \t\tlv_block_4_0, \n \t\t\"Block\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 80, ruleCatch_StartIndex); }\n }\n return current;\n }",
"public void markRecordsDroppedReplace() throws JNCException {\n markLeafReplace(\"recordsDropped\");\n }",
"public final void rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13383:1: ( ( ruleXCatchClause ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13384:1: ( ruleXCatchClause )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13384:1: ( ruleXCatchClause )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13385:1: ruleXCatchClause\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); \n }\n pushFollow(FOLLOW_ruleXCatchClause_in_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_026892);\n ruleXCatchClause();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\r\n protected String internalAutomaticFix(PageAnalysis analysis) {\r\n return fixUsingAutomaticReplacement(analysis);\r\n }",
"public void clear() {\r\n iFormatter = null;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[15]++;\r\n iElementPairs.clear();\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[16]++;\r\n }",
"public void setAllSolutions(List<List> allSolutions) {\r\n this.allSolutions = allSolutions;\r\n }"
] | [
"0.5736545",
"0.53498703",
"0.5294999",
"0.5271294",
"0.52375555",
"0.5228809",
"0.5069027",
"0.5018533",
"0.49488932",
"0.48729986",
"0.4843099",
"0.4755724",
"0.46732005",
"0.46601582",
"0.4650136",
"0.46258396",
"0.46148965",
"0.45331135",
"0.4531727",
"0.4454309",
"0.4433369",
"0.43979937",
"0.43978682",
"0.43365496",
"0.43166015",
"0.4307938",
"0.43054357",
"0.427652",
"0.4274647",
"0.42552403",
"0.42398134",
"0.422452",
"0.42203316",
"0.42153513",
"0.42134935",
"0.4186545",
"0.4181645",
"0.41539818",
"0.41497946",
"0.4140669",
"0.41374588",
"0.4107039",
"0.40947506",
"0.40873206",
"0.40698054",
"0.4065752",
"0.4054225",
"0.40495378",
"0.40430555",
"0.40416384",
"0.403832",
"0.4037368",
"0.40372854",
"0.4023941",
"0.4013406",
"0.40010682",
"0.39972103",
"0.39959982",
"0.39957407",
"0.39915302",
"0.3988967",
"0.39889327",
"0.39881384",
"0.39861715",
"0.3983045",
"0.39779302",
"0.39740664",
"0.39664653",
"0.39566195",
"0.39530933",
"0.3950693",
"0.39471412",
"0.3942784",
"0.39416748",
"0.39335304",
"0.39272296",
"0.39227057",
"0.39212877",
"0.3921066",
"0.3920623",
"0.3908995",
"0.3906566",
"0.38998562",
"0.38989785",
"0.38946414",
"0.38903916",
"0.38896945",
"0.38829365",
"0.38808075",
"0.38759452",
"0.38730782",
"0.38714907",
"0.3871459",
"0.38660938",
"0.38611838",
"0.38518447",
"0.38488927",
"0.38460016",
"0.3840431",
"0.38396338"
] | 0.64544255 | 0 |
Retrieves the number of children in the CatchClause list. | public int getNumCatchClause() {
return getCatchClauseList().getNumChild();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getChildCount()\n {\n return mChildren.length; // The indexes and constraints\n }",
"public int countChildren() {\n return this.children.size();\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseList() {\n List<CatchClause> list = (List<CatchClause>)getChild(1);\n list.getNumChild();\n return list;\n }",
"public int countChildren() {\n return this.children.size();\n }",
"public int getChildCount() {\r\n if (_children == null) {\r\n return 0;\r\n }\r\n return _children.size();\r\n }",
"public int getChildCount() {\n return this.children.size();\n }",
"public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }",
"public int getNumCatchClauseNoTransform() {\n return getCatchClauseListNoTransform().getNumChildNoTransform();\n }",
"int getChildCount();",
"public int getChildCount() {return children.size();}",
"int childCount(){\n return this.children.size();\n }",
"public int numberOfChildren() {\n\t\tif(children == null) return 0;\n\t\telse return children.size();\n\t}",
"public int getChildCount();",
"@Override\n\tpublic int getChildrenNum() {\n\t\treturn children.size();\n\t}",
"@Override\n public int getNumChildren() {\n\t return this._children.size();\n }",
"@Override\n public int getChildrenCount()\n {\n return children.getSubNodes().size();\n }",
"public int childListCount() // 페이징, 검색 뺐음, A반 기준 -> 나중에 반 생성 시 변경하기. ★학부모 정보 제외함 (회원가입안할 시 에러)\r\n\t\t\tthrows Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tint result = 0;\r\n\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\r\n\t\t\tpstmt = conn.prepareStatement(\"select count(child_num) from child where child_class = 'A'\");\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tresult = rs.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (rs != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t\tif (pstmt != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t\tif (conn != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public int getChildCount () {\n return childCount;\n }",
"public abstract int getNumChildren();",
"int numChildren(Position<E> p) throws IllegalArgumentException;",
"@DISPID(11)\n\t// = 0xb. The runtime will prefer the VTID if present\n\t@VTID(20)\n\tint childrenCount();",
"public int childrenSize()\r\n\t{\r\n\t\treturn this.children.size();\r\n\t}",
"@Override\n public final int size() {\n return children.size();\n }",
"@Override\n public int getChildrenCount(int groupPosition)\n {\n return children.get(headers.get(groupPosition)).size();\n }",
"public int getLengthOfChildren() {\n int length = 0;\n IBiNode childTmp;\n\n if (this.child != null) {\n // length of first child\n length += this.child.getLength();\n\n childTmp = this.child.getSibling();\n while (childTmp != null) {\n // length of 2nd - nth children\n length += childTmp.getLength();\n childTmp = childTmp.getSibling();\n }\n\n }\n\n return length;\n }",
"protected int numChildren() {\r\n return 3;\r\n }",
"public int getAncestorCount() { return _parent!=null? getParent().getAncestorCount() + 1 : 0; }",
"int childrenSize();",
"public StringWithCustomFacts getNumChildren() {\n return numChildren;\n }",
"@Override\n public int getChildrenCount(String name)\n {\n return children.getSubNodes(name).size();\n }",
"public int getTotalChildren() {\n\t\treturn _nTotalChildren;\n\t}",
"public int getChildCount() { return data.length; }",
"public int getAccessibleChildrenCount() {\n try {\n return unoAccessibleContext.getAccessibleChildCount();\n } catch (com.sun.star.uno.RuntimeException e) {\n return 0;\n }\n }",
"@Override\n public int getChildrenCount(int groupPosition) {\n return children[groupPosition].length;\n }",
"@Override\n public int getChildrenCount(int groupPosition) {\n return getGroup(groupPosition).getChildrenCount();\n }",
"public int getAllChildrenNumber(String path) throws KeeperException.NoNodeException {\n return dataTree.getAllChildrenNumber(path);\n }",
"public int getChildCount() {\n/* 179 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"abstract long calculateChildCount() throws TskCoreException;",
"public int size() {\n int count = terminal ? 1 : 0;\n for (Set<String> child : children)\n if (child != null) count += child.size();\n return count;\n }",
"@Override\n\tpublic int getChildrenCount(int groupPosition) {\n\t\treturn listChildren.get(listTitles.get(groupPosition)).size();\n\t}",
"@FameProperty(name = \"numberOfChildren\", derived = true)\n public Number getNumberOfChildren() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"@Override\n\tpublic int getChildrenCount(int sectionPosition) {\n\t\treturn sections.get(sectionPosition).getArrayChildren().size();\n\t}",
"int getNumberOfChildren(int nodeID){\n check(nodeID);\n return nodes_[nodeID].size_;\n }",
"public static int getLevelCount() {\n return levels.size();\n }",
"public int getChildCount() { return 0; }",
"private int numChildren(int index){\n\t\t\n\t\tint children = 0;\n\t\t\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 1] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 2] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\treturn children;\n\t}",
"public Integer GetNumOfChild() {\n\t\treturn this.ChildSMILES.size();\n\t}",
"public int getBoundContainerElementCount() {\n return nestedElements.size();\n }",
"int getChildrenCount(int groupPosition);",
"public int getNumExpr() {\n return getExprList().getNumChild();\n }",
"public int shapeCount()\n {\n // return the number of children in the list\n return children.size();\n }",
"private int getNumberOfChildren(String elemId) {\n return selenium.getXpathCount(\"//*[@id='\" + elemId + \"']/*\").intValue();\n }",
"public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }",
"@Override\n public int getChildrenCount() {\n return 1 + mRecentTabsManager.getRecentlyClosedEntries().size();\n }",
"public int size() {\n\t\treturn root.count();\n\t}",
"public int getNumConstraint() {\n return getConstraintList().getNumChild();\n }",
"@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}",
"public int size() {\n return tree.count();\n }",
"public int\tgetChildCount(Object parent) {\n \tif (! (parent instanceof IdentityBranch)) return -1;\n \tIdentityBranch ibParent = (IdentityBranch)parent;\n \treturn ibParent.getChildCount();\n }",
"@Override\r\n public int getChildrenCount(int groupPosition) {\n return mDataList.get(\"\" + groupPosition).size();\r\n }",
"private int getVariablesNumberInTree() {\n\t\tList<Node> l = getFirstLevelSubnodes();\n\n\t\treturn l != null ? l.size() : 0;\n\t}",
"protected long doGetNumberOfSubtypes() {\r\n\t\treturn getParentIndex().getSubtypes().size();\r\n\t}",
"public int countLevels() {\n return levels.size();\n }",
"public int getChildThreads() {\n\t\tfinal String key = ConfigNames.CHILD_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}",
"@Override\n\tpublic int size() {\n\t\tint s = valCount; // saves value of current node\n\t\tfor (int i = 0; i < childCount; ++i) { // then checks all children\n\t\t\ts += children[i].size();\n\t\t}\n\t\treturn s;\n\t}",
"public int getChildCount(Object parent) {\n\t\tint result = 0;\n\t\tFile file = (File) parent;\n\n\t\tif (file instanceof Directory) {\n\t\t\tDirectory directory = (Directory) file;\n\t\t\tresult = directory.getNumberOfChildren();\n\t\t}\n\t\treturn result;\n\t}",
"@Override\r\n\tpublic int getNumberOfDescendants(Node<T> node) {\r\n\t\tif (node.getChildren() != null) {// Si tiene hijos\r\n\t\t\treturn (node.getChildren()).size();// El tamaņo de la lista de hijos\r\n\t\t}\r\n\t\treturn 0; // Si no tiene entonces 0\r\n\t}",
"int getParentIdCount();",
"public int size() {\r\n\t\tint i = 0;\r\n\t\tif (this.value != 0) {\r\n\t\t\ti++;\r\n\t\t\tif(this.leftChild != null) {\r\n\t\t\t\ti = i + this.leftChild.size();\r\n\t\t\t}\r\n\t\t\tif(rightChild != null){\r\n\t\t\t\ti = i + this.rightChild.size();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn i; \r\n\t}",
"public abstract int getMaxChildren();",
"public int getNumXPathSegments() {\n return xPath.size();\n }",
"public int order()\n\t{\n\t\treturn null == _children ? 0 : _children.size();\n\t}",
"public int getSubElementCount() { throw new RuntimeException(\"Stub!\"); }",
"private int countChildElements(final Node parent)\r\n {\r\n NodeList listOfChildren = parent.getChildNodes();\r\n return listOfChildren.getLength();\r\n }",
"int getSuperClassesCount();",
"public final int getDependentCount() {\r\n synchronized (f_seaLock) {\r\n return f_dependents.size();\r\n }\r\n }",
"public int getChildCount(V vertex);",
"@Override\r\n\tpublic int getChildCount(Object parent) {\r\n\t\r\n\t\treturn 0;\r\n\t}",
"public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }",
"public static int size(Node root){\r\n int count = 0;\r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n count += size(child);\r\n }\r\n return count + 1;\r\n }",
"public @Override int getViewCount() {\n return getChildren().getChildCount();\n }",
"public int getDepth() {\r\n\t\tint depth = 0;\r\n\t\tSearchNode<S, A> ancestor = this;\r\n\t\twhile(ancestor.parent != null) {\r\n\t\t\tdepth++;\r\n\t\t\tancestor = ancestor.parent;\r\n\t\t}\r\n\t\treturn depth;\r\n\t}",
"@Override\r\n\tpublic int getChildrenCount(int groupPosition) {\n\t\treturn 0;\r\n\t}",
"public int getNumExcursions()\n\t{\n\t\treturn this.excursionNum;\n\t}",
"public long getContextNodeCount();",
"public int getParentEntryCount() {\n if (parent != null) {\n return parent.getEntryCount();\n }\n return 1;\n }",
"public int getNumStmt() {\n return getStmtList().getNumChild();\n }",
"public int getLimitClauseCount() {\n return limitClauseCount;\n }",
"public int getLimitClauseCount() {\n return limitClauseCount;\n }",
"public int getTotalCount() {\r\n return root.getTotalCount();\r\n }",
"public int size() {\n\t\treturn size(root);\n\t}",
"public int size() {\n\t\treturn size(root);\n\t}",
"public int getErrorCount() {\r\n return root.getErrorCount();\r\n }",
"public int countLeaves(){\n return countLeaves(root);\n }",
"public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}",
"int getExceptionsCount();",
"private Collection<EfoTermCount> getAllTermChildren(EfoTerm term) {\n\n List<EfoTermCount> result = new ArrayList<EfoTermCount>();\n Collection<EfoTerm> children = efo.getTermChildren(term.getId());\n result.add(new EfoTermCount(term, 0));\n for (EfoTerm child : children) {\n result.addAll(getAllTermChildren(child.getId()));\n }\n return result;\n }",
"private static int getNumChildren() {\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Enter number of children: \");\n int numChildren = input.nextInt();\n return numChildren;\n }",
"public int getPartsCount() {\n if (partsBuilder_ == null) {\n return parts_.size();\n } else {\n return partsBuilder_.getCount();\n }\n }",
"@Override\n\t\tpublic int getChildrenCount(int groupPosition) {\n\t\t\treturn data.get(groupPosition).getKeys().size();\n\t\t}"
] | [
"0.70344007",
"0.69328105",
"0.69287163",
"0.6898315",
"0.6891529",
"0.6814684",
"0.68121827",
"0.67442644",
"0.6720698",
"0.6708852",
"0.6687162",
"0.6686395",
"0.6685162",
"0.66174775",
"0.6587863",
"0.6570492",
"0.65431404",
"0.6521713",
"0.65149903",
"0.64676356",
"0.6430987",
"0.6368528",
"0.63554865",
"0.62912047",
"0.6288538",
"0.62426484",
"0.6231742",
"0.6203548",
"0.6185044",
"0.616325",
"0.6161872",
"0.60702044",
"0.6051986",
"0.6047044",
"0.60362464",
"0.60312486",
"0.59964144",
"0.5994022",
"0.5985857",
"0.5978234",
"0.5959564",
"0.5957431",
"0.5957382",
"0.5955656",
"0.59412014",
"0.59256464",
"0.59026206",
"0.588578",
"0.58705187",
"0.58691084",
"0.5867894",
"0.5799282",
"0.57873964",
"0.57589424",
"0.5732999",
"0.57299995",
"0.57242787",
"0.5716348",
"0.5689919",
"0.5663954",
"0.5656824",
"0.56541574",
"0.5634577",
"0.5634095",
"0.5621797",
"0.56010157",
"0.5598283",
"0.5585498",
"0.5570963",
"0.5566808",
"0.5539669",
"0.5532684",
"0.5529621",
"0.5508343",
"0.5488388",
"0.54745424",
"0.5472007",
"0.54712516",
"0.5459452",
"0.54420805",
"0.5423827",
"0.5423007",
"0.5420737",
"0.5402254",
"0.5401709",
"0.5392201",
"0.53858364",
"0.5381947",
"0.5381947",
"0.5381639",
"0.5372773",
"0.5372773",
"0.5362404",
"0.53621197",
"0.5361275",
"0.5355558",
"0.53543794",
"0.5344624",
"0.53376657",
"0.5327537"
] | 0.8079147 | 0 |
Retrieves the number of children in the CatchClause list. Calling this method will not trigger rewrites.. | public int getNumCatchClauseNoTransform() {
return getCatchClauseListNoTransform().getNumChildNoTransform();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumCatchClause() {\n return getCatchClauseList().getNumChild();\n }",
"public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }",
"public int getChildCount()\n {\n return mChildren.length; // The indexes and constraints\n }",
"public int countChildren() {\n return this.children.size();\n }",
"int getChildCount();",
"public int countChildren() {\n return this.children.size();\n }",
"public int getChildCount();",
"public int getChildCount() {\r\n if (_children == null) {\r\n return 0;\r\n }\r\n return _children.size();\r\n }",
"public int getChildCount() {return children.size();}",
"public abstract int getNumChildren();",
"public int numberOfChildren() {\n\t\tif(children == null) return 0;\n\t\telse return children.size();\n\t}",
"int childCount(){\n return this.children.size();\n }",
"public int getChildCount() {\n return this.children.size();\n }",
"@Override\n public int getNumChildren() {\n\t return this._children.size();\n }",
"public int getChildCount () {\n return childCount;\n }",
"@Override\n public int getChildrenCount()\n {\n return children.getSubNodes().size();\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseList() {\n List<CatchClause> list = (List<CatchClause>)getChild(1);\n list.getNumChild();\n return list;\n }",
"@Override\n\tpublic int getChildrenNum() {\n\t\treturn children.size();\n\t}",
"protected int numChildren() {\r\n return 3;\r\n }",
"@Override\n public final int size() {\n return children.size();\n }",
"int numChildren(Position<E> p) throws IllegalArgumentException;",
"public int childListCount() // 페이징, 검색 뺐음, A반 기준 -> 나중에 반 생성 시 변경하기. ★학부모 정보 제외함 (회원가입안할 시 에러)\r\n\t\t\tthrows Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tint result = 0;\r\n\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\r\n\t\t\tpstmt = conn.prepareStatement(\"select count(child_num) from child where child_class = 'A'\");\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tresult = rs.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (rs != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t\tif (pstmt != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t\tif (conn != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"int childrenSize();",
"public int childrenSize()\r\n\t{\r\n\t\treturn this.children.size();\r\n\t}",
"@DISPID(11)\n\t// = 0xb. The runtime will prefer the VTID if present\n\t@VTID(20)\n\tint childrenCount();",
"public int getChildCount() { return 0; }",
"abstract long calculateChildCount() throws TskCoreException;",
"public int getLengthOfChildren() {\n int length = 0;\n IBiNode childTmp;\n\n if (this.child != null) {\n // length of first child\n length += this.child.getLength();\n\n childTmp = this.child.getSibling();\n while (childTmp != null) {\n // length of 2nd - nth children\n length += childTmp.getLength();\n childTmp = childTmp.getSibling();\n }\n\n }\n\n return length;\n }",
"@Override\n public int getChildrenCount(int groupPosition)\n {\n return children.get(headers.get(groupPosition)).size();\n }",
"int getNumberOfChildren(int nodeID){\n check(nodeID);\n return nodes_[nodeID].size_;\n }",
"public int getAncestorCount() { return _parent!=null? getParent().getAncestorCount() + 1 : 0; }",
"public int getChildCount() {\n/* 179 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public int getChildrenCount(String name)\n {\n return children.getSubNodes(name).size();\n }",
"@FameProperty(name = \"numberOfChildren\", derived = true)\n public Number getNumberOfChildren() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"public int getChildCount() { return data.length; }",
"public StringWithCustomFacts getNumChildren() {\n return numChildren;\n }",
"public int getTotalChildren() {\n\t\treturn _nTotalChildren;\n\t}",
"public int getAllChildrenNumber(String path) throws KeeperException.NoNodeException {\n return dataTree.getAllChildrenNumber(path);\n }",
"@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}",
"public int getAccessibleChildrenCount() {\n try {\n return unoAccessibleContext.getAccessibleChildCount();\n } catch (com.sun.star.uno.RuntimeException e) {\n return 0;\n }\n }",
"public int size() {\n int count = terminal ? 1 : 0;\n for (Set<String> child : children)\n if (child != null) count += child.size();\n return count;\n }",
"private int numChildren(int index){\n\t\t\n\t\tint children = 0;\n\t\t\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 1] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 2] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\treturn children;\n\t}",
"public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }",
"public int size() {\n\t\treturn root.count();\n\t}",
"@Override\n public int getChildrenCount(int groupPosition) {\n return children[groupPosition].length;\n }",
"@Override\n public int getChildrenCount(int groupPosition) {\n return getGroup(groupPosition).getChildrenCount();\n }",
"public static int getLevelCount() {\n return levels.size();\n }",
"public int size() {\n return tree.count();\n }",
"public int shapeCount()\n {\n // return the number of children in the list\n return children.size();\n }",
"protected long doGetNumberOfSubtypes() {\r\n\t\treturn getParentIndex().getSubtypes().size();\r\n\t}",
"private int getNumberOfChildren(String elemId) {\n return selenium.getXpathCount(\"//*[@id='\" + elemId + \"']/*\").intValue();\n }",
"@Override\n\tpublic int getChildrenCount(int groupPosition) {\n\t\treturn listChildren.get(listTitles.get(groupPosition)).size();\n\t}",
"public int size() {\r\n\t\tint i = 0;\r\n\t\tif (this.value != 0) {\r\n\t\t\ti++;\r\n\t\t\tif(this.leftChild != null) {\r\n\t\t\t\ti = i + this.leftChild.size();\r\n\t\t\t}\r\n\t\t\tif(rightChild != null){\r\n\t\t\t\ti = i + this.rightChild.size();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn i; \r\n\t}",
"public Integer GetNumOfChild() {\n\t\treturn this.ChildSMILES.size();\n\t}",
"private int getVariablesNumberInTree() {\n\t\tList<Node> l = getFirstLevelSubnodes();\n\n\t\treturn l != null ? l.size() : 0;\n\t}",
"int getParentIdCount();",
"int getChildrenCount(int groupPosition);",
"@Override\n\tpublic int size() {\n\t\tint s = valCount; // saves value of current node\n\t\tfor (int i = 0; i < childCount; ++i) { // then checks all children\n\t\t\ts += children[i].size();\n\t\t}\n\t\treturn s;\n\t}",
"@Override\n\tpublic int getChildrenCount(int sectionPosition) {\n\t\treturn sections.get(sectionPosition).getArrayChildren().size();\n\t}",
"public int getNumXPathSegments() {\n return xPath.size();\n }",
"public abstract int getMaxChildren();",
"public static int size(Node root){\r\n int count = 0;\r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n count += size(child);\r\n }\r\n return count + 1;\r\n }",
"public int\tgetChildCount(Object parent) {\n \tif (! (parent instanceof IdentityBranch)) return -1;\n \tIdentityBranch ibParent = (IdentityBranch)parent;\n \treturn ibParent.getChildCount();\n }",
"public int getBoundContainerElementCount() {\n return nestedElements.size();\n }",
"public long getContextNodeCount();",
"@Override\r\n\tpublic int getChildCount(Object parent) {\r\n\t\r\n\t\treturn 0;\r\n\t}",
"public int order()\n\t{\n\t\treturn null == _children ? 0 : _children.size();\n\t}",
"@Override\r\n\tpublic int getNumberOfDescendants(Node<T> node) {\r\n\t\tif (node.getChildren() != null) {// Si tiene hijos\r\n\t\t\treturn (node.getChildren()).size();// El tamaņo de la lista de hijos\r\n\t\t}\r\n\t\treturn 0; // Si no tiene entonces 0\r\n\t}",
"public int getChildThreads() {\n\t\tfinal String key = ConfigNames.CHILD_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}",
"public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }",
"public int getNumExpr() {\n return getExprList().getNumChild();\n }",
"public int countLevels() {\n return levels.size();\n }",
"public int getNumConstraint() {\n return getConstraintList().getNumChild();\n }",
"public int getChildCount(Object parent) {\n\t\tint result = 0;\n\t\tFile file = (File) parent;\n\n\t\tif (file instanceof Directory) {\n\t\t\tDirectory directory = (Directory) file;\n\t\t\tresult = directory.getNumberOfChildren();\n\t\t}\n\t\treturn result;\n\t}",
"public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }",
"@Override\n public int getChildrenCount() {\n return 1 + mRecentTabsManager.getRecentlyClosedEntries().size();\n }",
"public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}",
"public int size() {\n\t\treturn size(root);\n\t}",
"public int size() {\n\t\treturn size(root);\n\t}",
"public int getSubElementCount() { throw new RuntimeException(\"Stub!\"); }",
"int getInheritsCount();",
"public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }",
"@Override\r\n public int getChildrenCount(int groupPosition) {\n return mDataList.get(\"\" + groupPosition).size();\r\n }",
"int getSuperClassesCount();",
"public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}",
"public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }",
"public int countNodes(){\r\n \treturn count(root);\r\n }",
"private int countChildElements(final Node parent)\r\n {\r\n NodeList listOfChildren = parent.getChildNodes();\r\n return listOfChildren.getLength();\r\n }",
"public int getNumExcursions()\n\t{\n\t\treturn this.excursionNum;\n\t}",
"int size()\r\n\t{\r\n\t\treturn size(root);\r\n\t}",
"public int getDepth()\n {\n return traversalStack.size();\n }",
"public int getDepth() {\r\n\t\tint depth = 0;\r\n\t\tSearchNode<S, A> ancestor = this;\r\n\t\twhile(ancestor.parent != null) {\r\n\t\t\tdepth++;\r\n\t\t\tancestor = ancestor.parent;\r\n\t\t}\r\n\t\treturn depth;\r\n\t}",
"public int getTotalCount() {\r\n return root.getTotalCount();\r\n }",
"private static int getNumChildren() {\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Enter number of children: \");\n int numChildren = input.nextInt();\n return numChildren;\n }",
"public int countLeaves(){\n return countLeaves(root);\n }",
"int getPathsCount();",
"public int depth() {\n\t\treturn depthHelp(root);\r\n\t}",
"public int size() {\n return size(root);\n }",
"public int size() {\n return size(root);\n }",
"@Override\n\tpublic int size() {\n\t\treturn size(root);\n\t}"
] | [
"0.7964181",
"0.7298196",
"0.7175727",
"0.71068275",
"0.70906067",
"0.7038986",
"0.7030017",
"0.6982722",
"0.69458497",
"0.69449013",
"0.6916304",
"0.6901846",
"0.6856395",
"0.67853796",
"0.67392075",
"0.6727597",
"0.6672468",
"0.66463166",
"0.6639762",
"0.6585749",
"0.65839374",
"0.6559165",
"0.65531826",
"0.65213394",
"0.64660054",
"0.6435186",
"0.6419858",
"0.6416803",
"0.6402424",
"0.6374695",
"0.6364807",
"0.63609964",
"0.6343987",
"0.63429654",
"0.6323051",
"0.6310285",
"0.6265208",
"0.6249211",
"0.6232641",
"0.6203418",
"0.6193828",
"0.6172226",
"0.61609435",
"0.6148372",
"0.6128852",
"0.61262006",
"0.61243844",
"0.6115982",
"0.6070221",
"0.6042143",
"0.60344666",
"0.6016488",
"0.6006766",
"0.59898114",
"0.5982678",
"0.59825844",
"0.596122",
"0.59544235",
"0.59536606",
"0.59324056",
"0.59315944",
"0.59170353",
"0.59143174",
"0.5910234",
"0.5888012",
"0.5864545",
"0.5857156",
"0.585633",
"0.58410764",
"0.5839618",
"0.5834166",
"0.58327025",
"0.5831547",
"0.583131",
"0.5826578",
"0.5809569",
"0.57995325",
"0.5798452",
"0.5798452",
"0.57837874",
"0.5779869",
"0.57769245",
"0.5748484",
"0.5745613",
"0.573515",
"0.5713597",
"0.5712069",
"0.57059604",
"0.56978697",
"0.56970114",
"0.5695888",
"0.56910974",
"0.5677603",
"0.5663316",
"0.56631684",
"0.56387043",
"0.5635743",
"0.5635208",
"0.5635208",
"0.5628693"
] | 0.6889602 | 12 |
Append an element to the CatchClause list. | public void addCatchClause(CatchClause node) {
List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList();
list.addChild(node);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addElement(Expression element){\n\t\telements.add(element);\n\t}",
"public void add(Statement element) {\n ensureSize(size + 1);\n arr[size++] = element;\n }",
"void append(E element);",
"public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }",
"public void insertClause(int ix, EClause c)\n\t{ clauses.add(ix, c); }",
"public void add(E element) {\n\t\t// your code here\n\t}",
"public void append(T element);",
"public void append(T element);",
"public void addElement(ErStackTraceElement element){\n\n if (className == null){\n\n declaringClass = element.getDeclaringClass();\n if (declaringClass.contains(\".\")){\n className = declaringClass.substring(declaringClass.lastIndexOf(\".\")+1);\n packageName = declaringClass.substring(0,declaringClass.lastIndexOf(\".\"));\n }\n else{\n className = declaringClass;\n packageName = \"\";\n }\n\n fileName = element.getFileName();\n\n if (checkBasePackages(declaringClass)){\n isBasePackage = true;\n }\n }\n\n stackTraceElements.add(element);\n }",
"public void validAdd(String element){\n\t\tlist.addLast(element);\n\t}",
"private void addClasspathElement(final ClasspathRelativePath classpathEltPath, final LogNode log) {\n if (rawClasspathElementsSet.add(classpathEltPath)) {\n rawClasspathElements.add(classpathEltPath);\n if (log != null) {\n log.log(\"Found classpath element: \" + classpathEltPath);\n }\n } else {\n if (log != null) {\n log.log(\"Ignoring duplicate classpath element: \" + classpathEltPath);\n }\n }\n }",
"public void add(Declarator element) throws ChameleonProgrammerException;",
"public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}",
"public final void add(final int index, final TokenStatement element) {\r\n\t\tif (index > this.size || index < 0) {\r\n\t\t\tthrow new IndexOutOfBoundsException( \"Index: \" + index + \", Size: \" + this.size );\r\n\t\t}\r\n\t\tthis.ensureCapacity( this.size + 1 ); // Increments modCount!!\r\n\t\tSystem.arraycopy( this.elementData, index, this.elementData, index + 1, this.size - index );\r\n\t\tthis.elementData[index] = element;\r\n\t\tthis.size++;\r\n\t}",
"public void addExisting(SelectableGraphElement element)\n {\n elements.add(element);\n }",
"public void add(int index, E element);",
"@Override\n\t\tpublic void add(int index, LogCate element) {\n\t\t\tsuper.add(index, element);\n\t\t\tLogCateManager.getInstance().onLogsChanged();\n\t\t}",
"public void append(Block.Entry entry) {\r\n\t\tstmts.add(new Entry(entry.code,entry.attributes()));\r\n\t}",
"@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}",
"public void addToDBConsistCheckQueryExecs(entity.DBConsistCheckQueryExec element) {\n __getInternalInterface().addArrayElement(DBCONSISTCHECKQUERYEXECS_PROP.get(), element);\n }",
"public void addToDBConsistCheckQueryExecs(entity.DBConsistCheckQueryExec element) {\n __getInternalInterface().addArrayElement(DBCONSISTCHECKQUERYEXECS_PROP.get(), element);\n }",
"private void addElement(PEElement element) {\n\t\tif (currentGroups.size() > 0) {\n\t\t\tcurrentGroups.peek().getElements().add(element);\n\t\t} else if (currentLabeledNodeType != null) {\n\t\t\tcurrentLabeledNodeType.getElements().add(element);\n\t\t} else {\n\t\t\tcurrentNodeType.getElements().add(element);\n\t\t}\n\t}",
"public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}",
"public void addMatchedElement(ElementWrapper element)\n\t{\n\t\tif (element != null)\n\t\t{\n\t\t\t_matchedElements.add(element);\n\t\t\t_isMatched = true;\n\t\t}\n\t}",
"private Node append(E element) {\n \treturn new Node(sentinel.pred, element);\n }",
"public void addElement(Integer e){\n list.add(e);\n }",
"public void addAll(String path, String[] element) {\n\t\taddAll(path, element, 1);\n\t}",
"public void add(String element) {\n\t\tslist.add(element);\n\t}",
"public void addQueryElement(QueryElement element);",
"@Override\n public void add(T element) {\n add(size(), element);\n }",
"public void addAlert(String alert) {\n\t\talertsList.add(alert);\n\t\t// now call alertFound()\n\t\t// alertFound();\n\t}",
"void add(Object element);",
"public void addAfter(T existing, T element) throws ElementNotFoundException;",
"public Formula addClause(Clause c) {\n\n\t\tFormula f2;\n\t\tf2=new Formula(c,this.clauses);\n\t\treturn f2;\n\t}",
"public void addException(Exception exception);",
"ClassPath add(ClassPathElement element);",
"private void addClasspathElement(String pathElement) {\n\t if (classpathElementsSet.add(pathElement)) {\n\t final File file = new File(pathElement);\n\t if (file.exists()) {\n\t classpathElements.add(file);\n\t }\n\t }\n\t}",
"public void add(T element);",
"public void add(T element);",
"public void addNormal(E element) {\n\t\tsuper.add(element);\r\n\t}",
"public void setCatchClauseList(List<CatchClause> list) {\n setChild(list, 1);\n }",
"public void addEntryToList(String entry){\n\t\tlogList.add(entry);\n\t}",
"public void addElement(TLProperty element);",
"public void add(T element, int pos);",
"public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }",
"public synchronized void addElement(Element element) throws DTDException {\r\n\r\n String name = element.getName();\r\n\r\n if (name == null) {\r\n String err = \"An element declaration must contain a name.\";\r\n throw new DTDException(err);\r\n }\r\n if (elements.containsKey(name)) {\r\n String err = \"An element declaration already exists with the given name: \";\r\n throw new DTDException(err + name);\r\n }\r\n\r\n elements.put(name,element);\r\n\r\n }",
"public void addElement(int index, TLProperty element);",
"public void addElement(Object ob) {\r\n\t\tif (ob == null) {\r\n\t\t\telements.add(TObject.nullVal());\r\n\t\t} else if (ob instanceof TObject || ob instanceof ParameterSubstitution || ob instanceof Variable || ob instanceof FunctionDef || ob instanceof Operator || ob instanceof StatementTree || ob instanceof TableSelectExpression) {\r\n\t\t\telements.add(ob);\r\n\t\t} else {\r\n\t\t\tthrow new Error(\"Unknown element type added to expression: \" + ob.getClass());\r\n\t\t}\r\n\t}",
"public void addElement(int element) {\n \tif(element > 0) {\n \tarray[head++] = element;\n \t}else {\n \t\tthrow new RuntimeException(\"Invalid element to add\");\n \t}\n }",
"public void addToJurisdictions(entity.AppCritJurisdiction element);",
"public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }",
"public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }",
"public void add(Object element) {\n queue.put( new DelayedElement( element ) );\n }",
"public void add (T element);",
"public boolean add(Object element);",
"XomNode appendElement(Element element) throws XmlBuilderException;",
"public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }",
"public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"TrackRailsSectionsAtPosition tryAdd(TrackRailsSingleNodeElement sectionToAdd);",
"public void addError(ShadowException exception) {\n if (exception != null) errorList.add(exception);\n }",
"void add(int index, Object element);",
"public void append(Object item);",
"public void addBoundContainerElement(IDecisionVariable element) {\n nestedElements.add(element);\n }",
"public void addToPolicyTransactions(entity.AppCritPolicyTransaction element);",
"public void push(Object element) {\r\n\t\tal.add(element, al.listSize);\r\n\t}",
"public abstract void add(T element);",
"public abstract void add(T element);",
"public void add(int index, Object element) {\r\n addBefore(element, (index == size ? header : entry(index)));\r\n }",
"public static <E> void append(List<E> list){\n\n }",
"public static <T> ConstList<T> append(List<T> list, T element) {\n TempList<T> ans = new TempList<T>(list.size() + 1);\n ans.addAll(list).add(element);\n return ans.makeConst();\n }",
"void add(int i, E e) throws IndexOutOfBoundsException;",
"@Override\n public void add(T element) throws Exception\n {\n \n if (!(element instanceof Comparable))\n {\n throw new Exception(\"Bad things happened\");\n }\n \n Comparable comparableElement = (Comparable) element;\n \n //expand array if full\n \n if (tail == myArray.length)\n {\n expandArray();\n }\n \n //search for correct spot\n int insertPosition;\n for (insertPosition = 0; insertPosition < tail && comparableElement.compareTo(myArray[insertPosition]) > 0; insertPosition++)\n {\n //empty on purpose\n }\n \n //shift elements over\n \n for (int i = tail; i > insertPosition; i--)\n {\n myArray[i] = myArray[i - 1];\n }\n \n //place the element\n \n myArray[insertPosition] = element;\n tail++;\n }",
"@Override\n public void addAfter(T target, T element){\n int index = getIndex(target)+1;\n add(index,element);\n }",
"void add(int index, T element);",
"void add(int index, T element);",
"public ElementsBag add(HTMLElement element) {\n iterable.elements.push(element);\n return that();\n }",
"public void addException(String exception) {\n logger.debug(\"Exception added \\\"{}\\\"\", exception);\n exceptionList.add(exception.toLowerCase());\n }",
"@Override\n\t\tpublic void add(int index, Community element) {\n\t\t\t\n\t\t}",
"void append(E[] elements);",
"void add(int i , E e) throws IndexOutOfBoundsException;",
"StoreResponse append(CACHE_ELEMENT element);",
"public void append(Object element)\n {\n if(head==tail){\n head=tail=new SLListNode(element,null);\n return;\n }\n tail=tail.next=new SLListNode(element,null);\n }",
"public void addToTrace(String traceEntry) {\n\t\tif (traceEntry != null && !traceEntry.isEmpty()) {\n\t\t\ttrace.add(traceEntry);\n\t\t}\n\t}",
"public TempList<T> add(T elem) {\n chk();\n list.add(elem);\n return this;\n }",
"public void addMessageListExpected(StringAndMessage arg) {\n this.messageListExpected.add(arg);\n }",
"void add(T element);",
"void add(T element);",
"public void add(Fraction element)\r\n\t{\n\t\tif(n==a.length)\r\n\t\t{\r\n\t\t\t// khai bao 1 mang Rectangle b\r\n\t\t\tFraction b[]= new Fraction[a.length*2];\r\n\t\t\tfor(int i=0;i<n;i++)\r\n\t\t\t{\r\n\t\t\t\tb[i]=a[i];\r\n\t\t\t}\r\n\t\t\t//gan dia chi b qua a\r\n\t\t\ta=b;\r\n\t\t}\r\n\t\ta[n]=element;\r\n\t\tn++;\r\n\t}",
"public abstract void add(T element, int index);",
"void addAfter(T target, T element);",
"public void addElement(Integer elem){\n\t\tlist.add(elem);\n\t}",
"private void catchClause(String label, Scope scope, Vector queue)\r\n {\r\n matchKeyword(Keyword.CATCHSY);\r\n matchKeyword(Keyword.LPARSY);\r\n\r\n Parameter parameter = formalParameter();\r\n\r\n Operation root = new Operation();\r\n root.code = \"DUP \\\" \" + parameter.type.ident.string.substring(parameter.type.ident.string.lastIndexOf('.') + 1) + \" \\\" INSTANCEOF\\n IF\\n\";\r\n queue.add(root);\r\n\r\n matchKeyword(Keyword.RPARSY);\r\n\r\n VariableType a = new VariableType(parameter.type, 0);\r\n a.name = parameter.name;\r\n\r\n Vector v = new Vector();\r\n v.add(\"\" + Operation.newLabel());\r\n block(null, a, scope, v, Scope.CATCH, null, queue);\r\n\r\n root = new Operation();\r\n root.code = \"DUP \" + label + \" BRANCH\\nENDIF\\n\";\r\n queue.add(root);\r\n }",
"public void add(E element){\n\t\tArrayQueue<E> temp = new ArrayQueue<E>();\n\t\ttemp.enqueue(element);\n\t\tQ.enqueue(temp);\n\t}",
"public void add(int element);",
"@Override\r\n public void add(int index, E element) {\r\n if (index < 0 || index > size) {\r\n throw new IndexOutOfBoundsException();\r\n\r\n }\r\n for (int i = 0; i < size; i++) {\r\n if (get(i).equals(element)) {\r\n throw new IllegalArgumentException();\r\n }\r\n }\r\n\r\n LinkedListIterator it = new LinkedListIterator(index);\r\n it.add(element);\r\n\r\n }",
"@Override\n\tpublic void add(int idx, E element) {\n\t\tif (element == null)\n\t\t\tthrow new NullPointerException();\n\t\tif (idx < 0 || idx > size())\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (element.equals(list[i]))\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t// Element is added to the end of the list\n\t\tif (idx == size)\n\t\t\tlist[idx] = element;\n\n\t\t// Element is added at the beginning or middle\n\t\telse {\n\t\t\tfor (int i = size; i > idx; i--) {\n\t\t\t\tlist[i] = list[i - 1];\n\t\t\t}\n\t\t\tlist[idx] = element;\n\t\t}\n\n\t\tsize++;\n\t\tif (size == list.length)\n\t\t\tgrowArray();\n\n\t}",
"public void testAddException() {\r\n list.add(\"A\");\r\n Exception e = null;\r\n try {\r\n list.add(2, \"B\");\r\n } \r\n catch (Exception exception) {\r\n e = exception;\r\n }\r\n assertTrue(e instanceof IndexOutOfBoundsException);\r\n e = null;\r\n try {\r\n list.add(-1, \"B\");\r\n } \r\n catch (Exception exception) {\r\n e = exception;\r\n }\r\n assertTrue( e instanceof IndexOutOfBoundsException);\r\n }",
"public void push(E element) {\r\n items.add(0, element);\r\n }",
"public void append(Object data){\r\n try{\r\n throw new LinkedListException(); //cannot be used so throwing an exception\r\n }\r\n catch (Exception LinkedListException){\r\n System.out.println(\"Not valid method\");\r\n }\r\n }",
"final void addError( ParsedElement parsedElement, ResourceKey errorMsg )\n {\n verify( parsedElement, false, errorMsg, EMPTY_ARRAY );\n }"
] | [
"0.6364941",
"0.6123237",
"0.6048442",
"0.58552",
"0.5849381",
"0.5823723",
"0.5732226",
"0.5732226",
"0.56575817",
"0.55806065",
"0.5563567",
"0.55317765",
"0.5513301",
"0.5496819",
"0.54171616",
"0.5285751",
"0.52846164",
"0.52777535",
"0.52776724",
"0.527514",
"0.5268425",
"0.5241603",
"0.5236827",
"0.5229865",
"0.5181628",
"0.5155418",
"0.51549625",
"0.51493204",
"0.51124436",
"0.5112038",
"0.5109782",
"0.5102519",
"0.51021147",
"0.50974184",
"0.5060684",
"0.5033692",
"0.5029299",
"0.50056124",
"0.50056124",
"0.49948764",
"0.49861163",
"0.49794817",
"0.49617058",
"0.49612883",
"0.49586156",
"0.49551758",
"0.4941984",
"0.49406534",
"0.49406332",
"0.49390298",
"0.4930741",
"0.49133417",
"0.48920798",
"0.48760843",
"0.4876048",
"0.48694864",
"0.48689944",
"0.48664814",
"0.48657027",
"0.48653215",
"0.4862696",
"0.48572713",
"0.48568955",
"0.4830071",
"0.48292655",
"0.48256695",
"0.48256695",
"0.48157367",
"0.48153016",
"0.48078874",
"0.47987723",
"0.47850993",
"0.4781815",
"0.47742927",
"0.47742927",
"0.47732437",
"0.4773",
"0.4769312",
"0.476899",
"0.47656536",
"0.47635627",
"0.47619757",
"0.47582144",
"0.4757851",
"0.4752264",
"0.47472996",
"0.47472996",
"0.4733433",
"0.47314242",
"0.47290477",
"0.47275984",
"0.47274327",
"0.47270492",
"0.4723147",
"0.47221982",
"0.47219273",
"0.47208425",
"0.47171906",
"0.47058955",
"0.4694151"
] | 0.6684364 | 0 |
Retrieves the CatchClause list. | public List<CatchClause> getCatchClauses() {
return getCatchClauseList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseList() {\n List<CatchClause> list = (List<CatchClause>)getChild(1);\n list.getNumChild();\n return list;\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseListNoTransform() {\n return (List<CatchClause>)getChildNoTransform(1);\n }",
"public void setCatchClauseList(List<CatchClause> list) {\n setChild(list, 1);\n }",
"public List<CatchClause> getCatchClausesNoTransform() {\n return getCatchClauseListNoTransform();\n }",
"public List<Clause> getClauses() {\r\n return clauses;\r\n }",
"public ImList<Clause> getClauses() {\n\t\t// TODO: implement this.\n\t\t//throw new RuntimeException(\"not yet implemented.\");\n\t\treturn clauses;\n\t}",
"public void addCatchClause(CatchClause node) {\n List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList();\n list.addChild(node);\n }",
"public final List<BuilderTryBlock> catches() throws RecognitionException {\n List<BuilderTryBlock> tryBlocks = null;\n\n\n tryBlocks = Lists.newArrayList();\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:3: ( ^( I_CATCHES ( catch_directive )* ( catchall_directive )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:5: ^( I_CATCHES ( catch_directive )* ( catchall_directive )* )\n {\n match(input, I_CATCHES, FOLLOW_I_CATCHES_in_catches1314);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:17: ( catch_directive )*\n loop19:\n while (true) {\n int alt19 = 2;\n int LA19_0 = input.LA(1);\n if ((LA19_0 == I_CATCH)) {\n alt19 = 1;\n }\n\n switch (alt19) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:17: catch_directive\n {\n pushFollow(FOLLOW_catch_directive_in_catches1316);\n catch_directive();\n state._fsp--;\n\n }\n break;\n\n default:\n break loop19;\n }\n }\n\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:34: ( catchall_directive )*\n loop20:\n while (true) {\n int alt20 = 2;\n int LA20_0 = input.LA(1);\n if ((LA20_0 == I_CATCHALL)) {\n alt20 = 1;\n }\n\n switch (alt20) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:34: catchall_directive\n {\n pushFollow(FOLLOW_catchall_directive_in_catches1319);\n catchall_directive();\n state._fsp--;\n\n }\n break;\n\n default:\n break loop20;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return tryBlocks;\n }",
"public int getNumCatchClause() {\n return getCatchClauseList().getNumChild();\n }",
"public final void catches() throws RecognitionException {\n int catches_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"catches\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(641, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 91) ) { return ; }\n // Java.g:642:5: ( catchClause ( catchClause )* )\n dbg.enterAlt(1);\n\n // Java.g:642:9: catchClause ( catchClause )*\n {\n dbg.location(642,9);\n pushFollow(FOLLOW_catchClause_in_catches3657);\n catchClause();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(642,21);\n // Java.g:642:21: ( catchClause )*\n try { dbg.enterSubRule(115);\n\n loop115:\n do {\n int alt115=2;\n try { dbg.enterDecision(115);\n\n int LA115_0 = input.LA(1);\n\n if ( (LA115_0==88) ) {\n alt115=1;\n }\n\n\n } finally {dbg.exitDecision(115);}\n\n switch (alt115) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:642:22: catchClause\n \t {\n \t dbg.location(642,22);\n \t pushFollow(FOLLOW_catchClause_in_catches3660);\n \t catchClause();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop115;\n }\n } while (true);\n } finally {dbg.exitSubRule(115);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 91, catches_StartIndex); }\n }\n dbg.location(643, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"catches\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"public Collection<Resolver> getCauses() {\r\n return Collections.unmodifiableCollection(causes);\r\n }",
"public List<String> getExceptionsCaught() {\n\t\treturn exceptionsCaught;\n\t}",
"java.util.List<java.lang.String>\n getExceptionsList();",
"List<Type> getThrows();",
"public ArrayList<Clause> solve() {\n for (Clause c : clauses) {\n for (CLiteral l : c.getCLiterals()) {\n if (labels.get(l.getName()) == null)\n labels.put(l.getName(), -1);\n }\n }\n init();\n\n return (ArrayList<Clause>) conflicts;\n }",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\r\n\t\treturn gaXbase.getXCatchClauseAccess();\r\n\t}",
"public List<String> getSelectClauseVarList() ;",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\n\t\treturn gaXbase.getXCatchClauseAccess();\n\t}",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\n\t\treturn gaXbase.getXCatchClauseAccess();\n\t}",
"java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();",
"List<CSSParseException> getExceptions();",
"public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }",
"public final void catchClause() throws RecognitionException {\n int catchClause_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"catchClause\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(645, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 92) ) { return ; }\n // Java.g:646:5: ( 'catch' '(' formalParameter ')' block )\n dbg.enterAlt(1);\n\n // Java.g:646:9: 'catch' '(' formalParameter ')' block\n {\n dbg.location(646,9);\n match(input,88,FOLLOW_88_in_catchClause3685); if (state.failed) return ;\n dbg.location(646,17);\n match(input,66,FOLLOW_66_in_catchClause3687); if (state.failed) return ;\n dbg.location(646,21);\n pushFollow(FOLLOW_formalParameter_in_catchClause3689);\n formalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(646,37);\n match(input,67,FOLLOW_67_in_catchClause3691); if (state.failed) return ;\n dbg.location(646,41);\n pushFollow(FOLLOW_block_in_catchClause3693);\n block();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 92, catchClause_StartIndex); }\n }\n dbg.location(647, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"catchClause\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"public Catch[] exceptionHandlers();",
"public List<Throwable> list() {\n return messages;\n }",
"TypeList getExceptionTypes();",
"public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }",
"@Override\n public List<String> catchFaults(){\n List<String> errors = new ArrayList<>();\n severityLevels.forEach(level -> {\n if(level.equals(\"ERROR\")){\n errors.add(level);\n }\n });\n return errors;\n }",
"java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();",
"private List<Throwable> exceptions(Object swallowing) {\n return Collections.emptyList();\n }",
"public static <T> List<T> listFromClause(Class<T> clazz, String clause, Object... args)\n {\n return new ListFromClauseClosure<T>(clazz, clause, args).execute();\n }",
"@Override\n public Void visitProgram(GraafvisParser.ProgramContext ctx) {\n for (GraafvisParser.ClauseContext clause : ctx.clause()) {\n visitClause(clause);\n }\n return null;\n }",
"ExpressionList getExpressionList();",
"public WhatClauseElements getWhatClauseAccess() {\n\t\treturn pWhatClause;\n\t}",
"@Override\n\tArrayList<Prop> MakeClause() {\n\t\treturn null;\n\t}",
"public final void catchall_directive() throws RecognitionException {\n Label from = null;\n Label to = null;\n Label using = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:544:3: ( ^( I_CATCHALL from= label_ref to= label_ref using= label_ref ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:544:5: ^( I_CATCHALL from= label_ref to= label_ref using= label_ref )\n {\n match(input, I_CATCHALL, FOLLOW_I_CATCHALL_in_catchall_directive1362);\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_label_ref_in_catchall_directive1366);\n from = label_ref();\n state._fsp--;\n\n pushFollow(FOLLOW_label_ref_in_catchall_directive1370);\n to = label_ref();\n state._fsp--;\n\n pushFollow(FOLLOW_label_ref_in_catchall_directive1374);\n using = label_ref();\n state._fsp--;\n\n match(input, Token.UP, null);\n\n\n method_stack.peek().methodBuilder.addCatch(from, to, using);\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n }",
"java.util.List<java.lang.String>\n getGeoTargetConstantsList();",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<ContextConstraint> getConstraintList() {\n return (List<ContextConstraint>)getChild(1);\n }",
"@GetMapping(\"causes\")\n public ResponseEntity<?> getAllCauses() {\n ResponseEntity responseEntity;\n try {\n\n responseEntity = new ResponseEntity<List<Cause>>(service.getAllCauses(), HttpStatus.OK);\n } catch (Exception ex) {\n responseEntity = new ResponseEntity<String>(ex.getMessage(), HttpStatus.CONFLICT);\n ex.printStackTrace();\n }\n return responseEntity;\n }",
"java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity> getConstraintsList();",
"public final AstValidator.as_clause_return as_clause() throws RecognitionException {\n AstValidator.as_clause_return retval = new AstValidator.as_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree AS80=null;\n AstValidator.field_def_list_return field_def_list81 =null;\n\n\n CommonTree AS80_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:233:10: ( ^( AS field_def_list ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:233:12: ^( AS field_def_list )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n AS80=(CommonTree)match(input,AS,FOLLOW_AS_in_as_clause929); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n AS80_tree = (CommonTree)adaptor.dupNode(AS80);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(AS80_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_field_def_list_in_as_clause931);\n field_def_list81=field_def_list();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, field_def_list81.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public final IClass[]\r\n getThrownExceptions() throws CompileException {\r\n if (this.thrownExceptionsCache != null) return this.thrownExceptionsCache;\r\n return (this.thrownExceptionsCache = this.getThrownExceptions2());\r\n }",
"public List<String> getSolutionTrace() {\n\t\treturn trace;\n\t}",
"public IAeCatch selectMatchingCatch(IAeContextWSDLProvider aProvider, Iterator aIterOfCatches, IAeFaultTypeInfo aFault);",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Severity> getAllSeverities() {\n\t\ttry{\r\n\t\t\tList<Severity> severityList = getSessionFactory().getCurrentSession().createCriteria(Severity.class).list();\r\n\t\t\treturn severityList;\r\n\t\t}catch(HibernateException ex){\r\n\t\t\tex.printStackTrace();// logger.error(ex.getMessage(),ex);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public final void mCLAUSES() throws RecognitionException {\r\n try {\r\n int _type = CLAUSES;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:5:9: ( 'CLAUSES:' )\r\n // Satmc.g:5:11: 'CLAUSES:'\r\n {\r\n match(\"CLAUSES:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"@Override\n public List<Contest> GetAllContest() throws ATP_ExceptionHandler {\n try {\n return em.createNamedQuery(\"Contest.GetAll\", Contest.class).getResultList();\n } catch (Exception e) {\n // TODO: handle exception\n throw new ATP_ExceptionHandler(e.getMessage(), 74, \"ContestDAO\", \"Get All Contest Fail\");\n }\n }",
"java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList();",
"@Override\n public String visit(CatchClause n, Object arg) {\n return null;\n }",
"@ASTNodeAnnotation.ListChild(name=\"Expr\")\n public List<Expr> getExprList() {\n List<Expr> list = (List<Expr>) getChild(1);\n return list;\n }",
"public FailureCauseList() {\n failureCauses = new HashMap<String, FailureCause>();\n }",
"public String[] getCorrectionList(String misspell);",
"@Override\n public Set<DataFact> visitGetCaughtException(CGNode n, SSAGetCaughtExceptionInstruction instruction, DataFact fact) {\n\n return Collections.singleton(fact);\n }",
"private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"List getExpressions();",
"public int getNumCatchClauseNoTransform() {\n return getCatchClauseListNoTransform().getNumChildNoTransform();\n }",
"public final PythonParser.except_clause_return except_clause() throws RecognitionException {\n PythonParser.except_clause_return retval = new PythonParser.except_clause_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token EXCEPT174=null;\n Token COMMA175=null;\n Token COLON176=null;\n PythonParser.test_return t1 = null;\n\n PythonParser.test_return t2 = null;\n\n PythonParser.suite_return suite177 = null;\n\n\n PythonTree EXCEPT174_tree=null;\n PythonTree COMMA175_tree=null;\n PythonTree COLON176_tree=null;\n RewriteRuleTokenStream stream_COLON=new RewriteRuleTokenStream(adaptor,\"token COLON\");\n RewriteRuleTokenStream stream_EXCEPT=new RewriteRuleTokenStream(adaptor,\"token EXCEPT\");\n RewriteRuleTokenStream stream_COMMA=new RewriteRuleTokenStream(adaptor,\"token COMMA\");\n RewriteRuleSubtreeStream stream_test=new RewriteRuleSubtreeStream(adaptor,\"rule test\");\n RewriteRuleSubtreeStream stream_suite=new RewriteRuleSubtreeStream(adaptor,\"rule suite\");\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:5: ( EXCEPT (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )? COLON suite[!$suite.isEmpty() && $suite::continueIllegal] -> ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] ) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:7: EXCEPT (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )? COLON suite[!$suite.isEmpty() && $suite::continueIllegal]\n {\n EXCEPT174=(Token)match(input,EXCEPT,FOLLOW_EXCEPT_in_except_clause4039); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_EXCEPT.add(EXCEPT174);\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:14: (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )?\n int alt75=2;\n int LA75_0 = input.LA(1);\n\n if ( (LA75_0==NAME||(LA75_0>=LAMBDA && LA75_0<=NOT)||LA75_0==LPAREN||(LA75_0>=PLUS && LA75_0<=MINUS)||(LA75_0>=TILDE && LA75_0<=LBRACK)||LA75_0==LCURLY||(LA75_0>=BACKQUOTE && LA75_0<=STRING)) ) {\n alt75=1;\n }\n switch (alt75) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:15: t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )?\n {\n pushFollow(FOLLOW_test_in_except_clause4044);\n t1=test(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_test.add(t1.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:46: ( COMMA t2= test[expr_contextType.Store] )?\n int alt74=2;\n int LA74_0 = input.LA(1);\n\n if ( (LA74_0==COMMA) ) {\n alt74=1;\n }\n switch (alt74) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:47: COMMA t2= test[expr_contextType.Store]\n {\n COMMA175=(Token)match(input,COMMA,FOLLOW_COMMA_in_except_clause4048); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_COMMA.add(COMMA175);\n\n pushFollow(FOLLOW_test_in_except_clause4052);\n t2=test(expr_contextType.Store);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_test.add(t2.getTree());\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n COLON176=(Token)match(input,COLON,FOLLOW_COLON_in_except_clause4059); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_COLON.add(COLON176);\n\n pushFollow(FOLLOW_suite_in_except_clause4061);\n suite177=suite(!suite_stack.isEmpty() && ((suite_scope)suite_stack.peek()).continueIllegal);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_suite.add(suite177.getTree());\n\n\n // AST REWRITE\n // elements: EXCEPT\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 996:4: -> ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] )\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:996:7: ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] )\n {\n PythonTree root_1 = (PythonTree)adaptor.nil();\n root_1 = (PythonTree)adaptor.becomeRoot(new ExceptHandler(EXCEPT, EXCEPT174, actions.castExpr((t1!=null?((PythonTree)t1.tree):null)), actions.castExpr((t2!=null?((PythonTree)t2.tree):null)), actions.castStmts((suite177!=null?suite177.stypes:null))), root_1);\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;}\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }",
"public List<Course> getByCondition(List<SimpleExpression> list) {\n\t\treturn null;\n\t}",
"public boolean detectClauses() {\r\n return ClauseDetector.detectClauses(this);\r\n }",
"public YangString getCsgListValue() throws JNCException {\n return (YangString)getValue(\"csg-list\");\n }",
"public String[] getPatternsAntExc() {\n return this.patternsAntExc;\n }",
"public String[] getPatternsExc() {\n return getPatternType().equals(\"Ant\") ? this.patternsAntExc : this.patternsRegExExc;\n }",
"public ImmutableList<SourceCompilerError> getSyntaxErrors() {\n return ImmutableList.copyOf(errors);\n }",
"public java.util.List<phaseI.Hdfs.BlockLocations> getBlockLocationsList() {\n if (blockLocationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(blockLocations_);\n } else {\n return blockLocationsBuilder_.getMessageList();\n }\n }",
"public List<Throwable> getExceptions() {\n return exceptions;\n }",
"public List<ResolvedMessage> getAll() { // e.g. th:each=\"error : ${errors.all}\"\n List<ResolvedMessage> list = new ArrayList<ResolvedMessage>();\n messages.accessByFlatIterator().forEachRemaining(message -> {\n list.add(createResolvedMessage(message));\n });\n return list;\n }",
"public CAS[] getCASes() throws SessionQueryException\n {\n CAS[] cases = null;\n\n ComponentStruct[] components = getCASComponents();\n\n if(components != null)\n {\n cases = new CAS[components.length];\n\n for(int i = 0; i < components.length; i++)\n {\n cases[i] = buildCASComponent(components[i]);\n }\n\n Arrays.sort(cases, getNameComparator());\n }\n else\n {\n cases = new CAS[0];\n }\n\n return cases;\n }",
"@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }",
"public io.dstore.values.StringValue getConditionList() {\n if (conditionListBuilder_ == null) {\n return conditionList_ == null ? io.dstore.values.StringValue.getDefaultInstance() : conditionList_;\n } else {\n return conditionListBuilder_.getMessage();\n }\n }",
"List<? extends Rule> getRules();",
"public java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList() {\n if (blockLocationsBuilder_ != null) {\n return blockLocationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(blockLocations_);\n }\n }",
"public List<String> getConstituencies() throws HttpNotFoundException, HttpBadRequestException, HttpForbiddenException, HttpFetchException, JsonProcessingException, IOException, URISyntaxException {\n\t\tURIBuilder url = setupUrlFor(GET_CONSTITUENCIES);\n\t\t\n\t\tfinal List<String> constituencyNames = Lists.newArrayList();\t\n\t\tfinal Iterator<JsonNode> elements = objectMapper.readTree(httpFetcher.get(url.build())).elements();\n\t\twhile(elements.hasNext()) {\n\t\t\tJsonNode next = elements.next();\n\t\t\tconstituencyNames.add(next.get(NAME).asText());\n\t\t}\t\t\n\t\treturn constituencyNames;\n\t}",
"public io.dstore.values.StringValueOrBuilder getConditionListOrBuilder() {\n return getConditionList();\n }",
"java.util.List<? extends com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>\n getConstraintsOrBuilderList();",
"public List<ICase> getCases() {\n return allCases;\n }",
"public abstract List<? extends Pair<Type.Clazz,String>> exceptions();",
"public com.vsp.bl.product.dto.cob.v002.COBExceptionRule[] getCobExceptionRules() {\n return cobExceptionRules;\n }",
"Collection<String> getPossibleDefeatConditions();",
"public ImmutableList<ErrorCase> getAllErrors() {\n // Relevant error cases are precisely the concrete subclasses of EppException.\n return getConcreteSubclassesStream(FlowDocumentation.EXCEPTION_CLASS_NAME)\n .map(\n typeElement ->\n new ErrorCase(\n typeElement,\n sourceRoot.getDocTrees().getDocCommentTree(typeElement),\n sourceRoot.getTypeUtils()))\n .collect(toImmutableList());\n }",
"io.dstore.values.StringValueOrBuilder getConditionListOrBuilder();",
"@Nonnull\n public List<C> getConstituents() {\n return constituents;\n }",
"public List<Trigger> getTriggers();",
"@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }",
"public Set<Cause> getCauses() {\n\t\tSet<Cause> children = new TreeSet<Cause>();\n\t\tfor (Relation relation : this.causeRelations) {\n\t\t\tif (relation.causeFrom.isChildOf(this)) {\n\t\t\t\tchildren.add(relation.causeFrom);\n\t\t\t}\n\t\t}\n\t\treturn children;\n\t}",
"public static String [] getCond(){\n\t\treturn conditions;\n\t}",
"public void init() {\n for (Clause c : clauses) {\n // if there is only one literal UNKNOWN and the other are NEGATIVE , add to fringe\n if (c.getNumUnknownLiterals() == 1 && c.getNumOfLiterals() - c.getNumUnknownLiterals() == c.getNumOfNegative()) {\n fringe.push(c);\n }\n }\n computeLabel();\n }",
"public ArrayList<Exception> getEndUserExceptions();",
"private List<String> getList(RequestInfo requestInfo) throws DefectException {\r\n\t\tlog.info(\"Start - getList\");\r\n\t\tcreateInstance();\r\n\t\tList<String> lstResult = new ArrayList<String>();\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to get list, request information is missing\");\r\n\t\t}\r\n\t\t\r\n try {\r\n\r\n log.info(\"Querying for top highest priority unfixed defects...\");\r\n System.out.println(\"Query Request Info \" + requestInfo.getQueryFilter());\r\n QueryResponse qryResponse = getQueryResponse(requestInfo);\r\n \r\n \r\n if (qryResponse.wasSuccessful()) {\r\n \tlog.info(String.format(\"\\nTotal results: %d\", qryResponse.getTotalResultCount()));\r\n for (JsonElement result : qryResponse.getResults()) {\r\n JsonObject qryObject = result.getAsJsonObject();\r\n String strFetch[] = requestInfo.getFetch();\r\n String strPrintInfo = \"\";\r\n if(strFetch != null && strFetch.length != 0){\r\n \tfor(int i=0; i < strFetch.length; i++){\r\n \t\tstrPrintInfo = strPrintInfo + strFetch[i] + \" : \" + qryObject.get(strFetch[i]).getAsString() + \" \";\r\n \t}\r\n }\r\n log.info(strPrintInfo);\r\n lstResult.add(strPrintInfo);\r\n }\r\n } else {\r\n for (String err : qryResponse.getErrors()) {\r\n System.err.println(\"\\t\" + err);\r\n lstResult.add(err);\r\n }\r\n log.error(\"Error in getting list : \" + lstResult);\r\n throw new DefectException(\"Error in getting list\" + lstResult);\r\n }\r\n } catch (Exception e){\r\n log.error(\"Error in getting list, message : \" + e.toString());\r\n throw new DefectException(\"Error in getting list, message : \" + e.toString());\r\n } finally {\r\n \tcloseDefect();\r\n \t\tlog.info(\"End - getList\");\r\n }\r\n\t\treturn lstResult;\r\n }",
"Collection<String> getExcludeExceptions();",
"private List<SimpleComponent> list(String phrase) {\n\t\tfinal List<SimpleComponent> messages = new ArrayList<>();\n\t\tClass<?> iteratedClass = classToList;\n\n\t\ttry {\n\t\t\tdo {\n\t\t\t\tlistIn(iteratedClass, messages, phrase);\n\n\t\t\t} while (!(iteratedClass = iteratedClass.getSuperclass()).isAssignableFrom(Object.class));\n\n\t\t} catch (final Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\treturn messages;\n\t}",
"java.util.List<? extends com.rpg.framework.database.Protocol.QuestOrBuilder> \n getQuestOrBuilderList();",
"io.dstore.values.StringValue getConditionList();",
"public ArrayList<Exception> getValidateExceptions();",
"public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }",
"public Formula addClause(Clause c) {\n\n\t\tFormula f2;\n\t\tf2=new Formula(c,this.clauses);\n\t\treturn f2;\n\t}",
"Collection<ITrigger> getTriggers(String sFolderName);",
"Object getExceptionHandlers();",
"public static ArrayList<Notice> list() throws Exception {\n Session session = HibernateUtil.getCurrentSession();\n return (ArrayList<Notice>)session.getNamedQuery(\"notice.noticeList\")\n .list();\n }",
"@Override\n public Void visit(CatchClause nd, SuccessorInfo i) {\n if (nd.hasGuard()) {\n // if so, the guard may fail and execution might continue with the next\n // catch clause (if any)\n writeSuccessor(nd, (Node)nd.getParam());\n visitSequence(\n nd.getParam(), nd.getGuard(), union(First.of(nd.getBody()), i.getSuccessors(false)));\n visitSequence(nd.getBody(), i.getSuccessors(true));\n } else {\n // unguarded catch clauses always execute their body\n if (nd.getParam() != null) {\n writeSuccessor(nd, (Node)nd.getParam());\n visitSequence(nd.getParam(), nd.getBody(), i.getAllSuccessors());\n } else {\n writeSuccessor(nd, First.of(nd.getBody()));\n visitSequence(nd.getBody(), i.getAllSuccessors());\n }\n }\n return null;\n }",
"String getWhereClause();"
] | [
"0.7630039",
"0.66910547",
"0.64588636",
"0.6360961",
"0.624768",
"0.6186105",
"0.5655494",
"0.5640325",
"0.55581874",
"0.5213443",
"0.5159114",
"0.5143493",
"0.50993454",
"0.5075382",
"0.50629365",
"0.5054525",
"0.49984866",
"0.49657968",
"0.49657968",
"0.48943564",
"0.48906672",
"0.4859393",
"0.48008773",
"0.47684932",
"0.47390333",
"0.4706383",
"0.4662778",
"0.46471256",
"0.46393907",
"0.4630676",
"0.45951286",
"0.44883564",
"0.4477615",
"0.44665202",
"0.4440286",
"0.4435226",
"0.4428371",
"0.4415123",
"0.440685",
"0.4399317",
"0.43954334",
"0.43917167",
"0.438672",
"0.4383304",
"0.43690965",
"0.43654394",
"0.43516624",
"0.43511286",
"0.43473703",
"0.43397543",
"0.43240473",
"0.43212563",
"0.43121353",
"0.43035173",
"0.42956653",
"0.42924944",
"0.4280631",
"0.4276514",
"0.4273056",
"0.42707154",
"0.42562962",
"0.4227913",
"0.42224154",
"0.42215282",
"0.42071593",
"0.41972026",
"0.41833615",
"0.4166685",
"0.41641217",
"0.4163445",
"0.41502786",
"0.41459286",
"0.41442096",
"0.41366184",
"0.41331133",
"0.4129589",
"0.41284707",
"0.4111566",
"0.41109735",
"0.41054612",
"0.40981695",
"0.40881112",
"0.40873018",
"0.4073087",
"0.4072434",
"0.40656978",
"0.40651244",
"0.40646872",
"0.40547994",
"0.40530667",
"0.40522704",
"0.4040716",
"0.40403104",
"0.40349355",
"0.40325928",
"0.4012855",
"0.4010489",
"0.40066114",
"0.40052694",
"0.40001333"
] | 0.79125184 | 0 |
Retrieves the CatchClause list. This method does not invoke AST transformations. | public List<CatchClause> getCatchClausesNoTransform() {
return getCatchClauseListNoTransform();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseList() {\n List<CatchClause> list = (List<CatchClause>)getChild(1);\n list.getNumChild();\n return list;\n }",
"public List<CatchClause> getCatchClauses() {\n return getCatchClauseList();\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseListNoTransform() {\n return (List<CatchClause>)getChildNoTransform(1);\n }",
"public ImList<Clause> getClauses() {\n\t\t// TODO: implement this.\n\t\t//throw new RuntimeException(\"not yet implemented.\");\n\t\treturn clauses;\n\t}",
"public List<Clause> getClauses() {\r\n return clauses;\r\n }",
"public void setCatchClauseList(List<CatchClause> list) {\n setChild(list, 1);\n }",
"public void addCatchClause(CatchClause node) {\n List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList();\n list.addChild(node);\n }",
"public int getNumCatchClause() {\n return getCatchClauseList().getNumChild();\n }",
"public final List<BuilderTryBlock> catches() throws RecognitionException {\n List<BuilderTryBlock> tryBlocks = null;\n\n\n tryBlocks = Lists.newArrayList();\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:3: ( ^( I_CATCHES ( catch_directive )* ( catchall_directive )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:5: ^( I_CATCHES ( catch_directive )* ( catchall_directive )* )\n {\n match(input, I_CATCHES, FOLLOW_I_CATCHES_in_catches1314);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:17: ( catch_directive )*\n loop19:\n while (true) {\n int alt19 = 2;\n int LA19_0 = input.LA(1);\n if ((LA19_0 == I_CATCH)) {\n alt19 = 1;\n }\n\n switch (alt19) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:17: catch_directive\n {\n pushFollow(FOLLOW_catch_directive_in_catches1316);\n catch_directive();\n state._fsp--;\n\n }\n break;\n\n default:\n break loop19;\n }\n }\n\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:34: ( catchall_directive )*\n loop20:\n while (true) {\n int alt20 = 2;\n int LA20_0 = input.LA(1);\n if ((LA20_0 == I_CATCHALL)) {\n alt20 = 1;\n }\n\n switch (alt20) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:34: catchall_directive\n {\n pushFollow(FOLLOW_catchall_directive_in_catches1319);\n catchall_directive();\n state._fsp--;\n\n }\n break;\n\n default:\n break loop20;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return tryBlocks;\n }",
"public ArrayList<Clause> solve() {\n for (Clause c : clauses) {\n for (CLiteral l : c.getCLiterals()) {\n if (labels.get(l.getName()) == null)\n labels.put(l.getName(), -1);\n }\n }\n init();\n\n return (ArrayList<Clause>) conflicts;\n }",
"public final void catches() throws RecognitionException {\n int catches_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"catches\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(641, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 91) ) { return ; }\n // Java.g:642:5: ( catchClause ( catchClause )* )\n dbg.enterAlt(1);\n\n // Java.g:642:9: catchClause ( catchClause )*\n {\n dbg.location(642,9);\n pushFollow(FOLLOW_catchClause_in_catches3657);\n catchClause();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(642,21);\n // Java.g:642:21: ( catchClause )*\n try { dbg.enterSubRule(115);\n\n loop115:\n do {\n int alt115=2;\n try { dbg.enterDecision(115);\n\n int LA115_0 = input.LA(1);\n\n if ( (LA115_0==88) ) {\n alt115=1;\n }\n\n\n } finally {dbg.exitDecision(115);}\n\n switch (alt115) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:642:22: catchClause\n \t {\n \t dbg.location(642,22);\n \t pushFollow(FOLLOW_catchClause_in_catches3660);\n \t catchClause();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop115;\n }\n } while (true);\n } finally {dbg.exitSubRule(115);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 91, catches_StartIndex); }\n }\n dbg.location(643, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"catches\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\r\n\t\treturn gaXbase.getXCatchClauseAccess();\r\n\t}",
"public Collection<Resolver> getCauses() {\r\n return Collections.unmodifiableCollection(causes);\r\n }",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\n\t\treturn gaXbase.getXCatchClauseAccess();\n\t}",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\n\t\treturn gaXbase.getXCatchClauseAccess();\n\t}",
"@Override\n public Void visitProgram(GraafvisParser.ProgramContext ctx) {\n for (GraafvisParser.ClauseContext clause : ctx.clause()) {\n visitClause(clause);\n }\n return null;\n }",
"public List<String> getExceptionsCaught() {\n\t\treturn exceptionsCaught;\n\t}",
"public List<String> getSelectClauseVarList() ;",
"public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }",
"public final void catchClause() throws RecognitionException {\n int catchClause_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"catchClause\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(645, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 92) ) { return ; }\n // Java.g:646:5: ( 'catch' '(' formalParameter ')' block )\n dbg.enterAlt(1);\n\n // Java.g:646:9: 'catch' '(' formalParameter ')' block\n {\n dbg.location(646,9);\n match(input,88,FOLLOW_88_in_catchClause3685); if (state.failed) return ;\n dbg.location(646,17);\n match(input,66,FOLLOW_66_in_catchClause3687); if (state.failed) return ;\n dbg.location(646,21);\n pushFollow(FOLLOW_formalParameter_in_catchClause3689);\n formalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(646,37);\n match(input,67,FOLLOW_67_in_catchClause3691); if (state.failed) return ;\n dbg.location(646,41);\n pushFollow(FOLLOW_block_in_catchClause3693);\n block();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 92, catchClause_StartIndex); }\n }\n dbg.location(647, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"catchClause\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"@ASTNodeAnnotation.ListChild(name=\"Expr\")\n public List<Expr> getExprList() {\n List<Expr> list = (List<Expr>) getChild(1);\n return list;\n }",
"java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();",
"List<Type> getThrows();",
"java.util.List<java.lang.String>\n getExceptionsList();",
"@Override\n\tArrayList<Prop> MakeClause() {\n\t\treturn null;\n\t}",
"public WhatClauseElements getWhatClauseAccess() {\n\t\treturn pWhatClause;\n\t}",
"@Override\n public String visit(CatchClause n, Object arg) {\n return null;\n }",
"public final AstValidator.as_clause_return as_clause() throws RecognitionException {\n AstValidator.as_clause_return retval = new AstValidator.as_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree AS80=null;\n AstValidator.field_def_list_return field_def_list81 =null;\n\n\n CommonTree AS80_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:233:10: ( ^( AS field_def_list ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:233:12: ^( AS field_def_list )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n AS80=(CommonTree)match(input,AS,FOLLOW_AS_in_as_clause929); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n AS80_tree = (CommonTree)adaptor.dupNode(AS80);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(AS80_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_field_def_list_in_as_clause931);\n field_def_list81=field_def_list();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, field_def_list81.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public int getNumCatchClauseNoTransform() {\n return getCatchClauseListNoTransform().getNumChildNoTransform();\n }",
"List<CSSParseException> getExceptions();",
"public final void mCLAUSES() throws RecognitionException {\r\n try {\r\n int _type = CLAUSES;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:5:9: ( 'CLAUSES:' )\r\n // Satmc.g:5:11: 'CLAUSES:'\r\n {\r\n match(\"CLAUSES:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"ExpressionList getExpressionList();",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<ContextConstraint> getConstraintList() {\n return (List<ContextConstraint>)getChild(1);\n }",
"public List<String> getSolutionTrace() {\n\t\treturn trace;\n\t}",
"public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }",
"@Override\n public Set<DataFact> visitGetCaughtException(CGNode n, SSAGetCaughtExceptionInstruction instruction, DataFact fact) {\n\n return Collections.singleton(fact);\n }",
"List getExpressions();",
"public ImmutableList<SourceCompilerError> getSyntaxErrors() {\n return ImmutableList.copyOf(errors);\n }",
"java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();",
"public boolean detectClauses() {\r\n return ClauseDetector.detectClauses(this);\r\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<BodyDecl> getBodyDeclList() {\n List<BodyDecl> list = (List<BodyDecl>)getChild(1);\n list.getNumChild();\n return list;\n }",
"public final PythonParser.except_clause_return except_clause() throws RecognitionException {\n PythonParser.except_clause_return retval = new PythonParser.except_clause_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token EXCEPT174=null;\n Token COMMA175=null;\n Token COLON176=null;\n PythonParser.test_return t1 = null;\n\n PythonParser.test_return t2 = null;\n\n PythonParser.suite_return suite177 = null;\n\n\n PythonTree EXCEPT174_tree=null;\n PythonTree COMMA175_tree=null;\n PythonTree COLON176_tree=null;\n RewriteRuleTokenStream stream_COLON=new RewriteRuleTokenStream(adaptor,\"token COLON\");\n RewriteRuleTokenStream stream_EXCEPT=new RewriteRuleTokenStream(adaptor,\"token EXCEPT\");\n RewriteRuleTokenStream stream_COMMA=new RewriteRuleTokenStream(adaptor,\"token COMMA\");\n RewriteRuleSubtreeStream stream_test=new RewriteRuleSubtreeStream(adaptor,\"rule test\");\n RewriteRuleSubtreeStream stream_suite=new RewriteRuleSubtreeStream(adaptor,\"rule suite\");\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:5: ( EXCEPT (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )? COLON suite[!$suite.isEmpty() && $suite::continueIllegal] -> ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] ) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:7: EXCEPT (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )? COLON suite[!$suite.isEmpty() && $suite::continueIllegal]\n {\n EXCEPT174=(Token)match(input,EXCEPT,FOLLOW_EXCEPT_in_except_clause4039); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_EXCEPT.add(EXCEPT174);\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:14: (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )?\n int alt75=2;\n int LA75_0 = input.LA(1);\n\n if ( (LA75_0==NAME||(LA75_0>=LAMBDA && LA75_0<=NOT)||LA75_0==LPAREN||(LA75_0>=PLUS && LA75_0<=MINUS)||(LA75_0>=TILDE && LA75_0<=LBRACK)||LA75_0==LCURLY||(LA75_0>=BACKQUOTE && LA75_0<=STRING)) ) {\n alt75=1;\n }\n switch (alt75) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:15: t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )?\n {\n pushFollow(FOLLOW_test_in_except_clause4044);\n t1=test(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_test.add(t1.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:46: ( COMMA t2= test[expr_contextType.Store] )?\n int alt74=2;\n int LA74_0 = input.LA(1);\n\n if ( (LA74_0==COMMA) ) {\n alt74=1;\n }\n switch (alt74) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:47: COMMA t2= test[expr_contextType.Store]\n {\n COMMA175=(Token)match(input,COMMA,FOLLOW_COMMA_in_except_clause4048); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_COMMA.add(COMMA175);\n\n pushFollow(FOLLOW_test_in_except_clause4052);\n t2=test(expr_contextType.Store);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_test.add(t2.getTree());\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n COLON176=(Token)match(input,COLON,FOLLOW_COLON_in_except_clause4059); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_COLON.add(COLON176);\n\n pushFollow(FOLLOW_suite_in_except_clause4061);\n suite177=suite(!suite_stack.isEmpty() && ((suite_scope)suite_stack.peek()).continueIllegal);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_suite.add(suite177.getTree());\n\n\n // AST REWRITE\n // elements: EXCEPT\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 996:4: -> ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] )\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:996:7: ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] )\n {\n PythonTree root_1 = (PythonTree)adaptor.nil();\n root_1 = (PythonTree)adaptor.becomeRoot(new ExceptHandler(EXCEPT, EXCEPT174, actions.castExpr((t1!=null?((PythonTree)t1.tree):null)), actions.castExpr((t2!=null?((PythonTree)t2.tree):null)), actions.castStmts((suite177!=null?suite177.stypes:null))), root_1);\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;}\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }",
"public List<Throwable> list() {\n return messages;\n }",
"public static <T> List<T> listFromClause(Class<T> clazz, String clause, Object... args)\n {\n return new ListFromClauseClosure<T>(clazz, clause, args).execute();\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<Stmt> getStmtList() {\n return (List<Stmt>)getChild(0);\n }",
"private List<Throwable> exceptions(Object swallowing) {\n return Collections.emptyList();\n }",
"public Catch[] exceptionHandlers();",
"TypeList getExceptionTypes();",
"public final AstValidator.cache_clause_return cache_clause() throws RecognitionException {\n AstValidator.cache_clause_return retval = new AstValidator.cache_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree CACHE60=null;\n AstValidator.path_list_return path_list61 =null;\n\n\n CommonTree CACHE60_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:210:14: ( ^( CACHE path_list ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:210:16: ^( CACHE path_list )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n CACHE60=(CommonTree)match(input,CACHE,FOLLOW_CACHE_in_cache_clause769); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n CACHE60_tree = (CommonTree)adaptor.dupNode(CACHE60);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(CACHE60_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_path_list_in_cache_clause771);\n path_list61=path_list();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, path_list61.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public final IClass[]\r\n getThrownExceptions() throws CompileException {\r\n if (this.thrownExceptionsCache != null) return this.thrownExceptionsCache;\r\n return (this.thrownExceptionsCache = this.getThrownExceptions2());\r\n }",
"public List<Statement> getStatements() {\n\t\treturn new ArrayList<Statement>(statements);\n\t}",
"public Set<Cause> getCauses() {\n\t\tSet<Cause> children = new TreeSet<Cause>();\n\t\tfor (Relation relation : this.causeRelations) {\n\t\t\tif (relation.causeFrom.isChildOf(this)) {\n\t\t\t\tchildren.add(relation.causeFrom);\n\t\t\t}\n\t\t}\n\t\treturn children;\n\t}",
"java.util.List<java.lang.String>\n getGeoTargetConstantsList();",
"public void init() {\n for (Clause c : clauses) {\n // if there is only one literal UNKNOWN and the other are NEGATIVE , add to fringe\n if (c.getNumUnknownLiterals() == 1 && c.getNumOfLiterals() - c.getNumUnknownLiterals() == c.getNumOfNegative()) {\n fringe.push(c);\n }\n }\n computeLabel();\n }",
"public final void catchall_directive() throws RecognitionException {\n Label from = null;\n Label to = null;\n Label using = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:544:3: ( ^( I_CATCHALL from= label_ref to= label_ref using= label_ref ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:544:5: ^( I_CATCHALL from= label_ref to= label_ref using= label_ref )\n {\n match(input, I_CATCHALL, FOLLOW_I_CATCHALL_in_catchall_directive1362);\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_label_ref_in_catchall_directive1366);\n from = label_ref();\n state._fsp--;\n\n pushFollow(FOLLOW_label_ref_in_catchall_directive1370);\n to = label_ref();\n state._fsp--;\n\n pushFollow(FOLLOW_label_ref_in_catchall_directive1374);\n using = label_ref();\n state._fsp--;\n\n match(input, Token.UP, null);\n\n\n method_stack.peek().methodBuilder.addCatch(from, to, using);\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n }",
"public CAS[] getCASes() throws SessionQueryException\n {\n CAS[] cases = null;\n\n ComponentStruct[] components = getCASComponents();\n\n if(components != null)\n {\n cases = new CAS[components.length];\n\n for(int i = 0; i < components.length; i++)\n {\n cases[i] = buildCASComponent(components[i]);\n }\n\n Arrays.sort(cases, getNameComparator());\n }\n else\n {\n cases = new CAS[0];\n }\n\n return cases;\n }",
"java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList();",
"java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity> getConstraintsList();",
"@Override\n public Void visit(CatchClause nd, SuccessorInfo i) {\n if (nd.hasGuard()) {\n // if so, the guard may fail and execution might continue with the next\n // catch clause (if any)\n writeSuccessor(nd, (Node)nd.getParam());\n visitSequence(\n nd.getParam(), nd.getGuard(), union(First.of(nd.getBody()), i.getSuccessors(false)));\n visitSequence(nd.getBody(), i.getSuccessors(true));\n } else {\n // unguarded catch clauses always execute their body\n if (nd.getParam() != null) {\n writeSuccessor(nd, (Node)nd.getParam());\n visitSequence(nd.getParam(), nd.getBody(), i.getAllSuccessors());\n } else {\n writeSuccessor(nd, First.of(nd.getBody()));\n visitSequence(nd.getBody(), i.getAllSuccessors());\n }\n }\n return null;\n }",
"List<? extends Rule> getRules();",
"public Formula addClause(Clause c) {\n\n\t\tFormula f2;\n\t\tf2=new Formula(c,this.clauses);\n\t\treturn f2;\n\t}",
"public YangString getCsgListValue() throws JNCException {\n return (YangString)getValue(\"csg-list\");\n }",
"@Override\n\tpublic Void visit(ClauseLoop clause, Void ctx) {\n\t\treturn null;\n\t}",
"public List<Expression> getSubExpressions();",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<BodyDecl> getBodyElelemtList() {\n return (List<BodyDecl>)getChild(2);\n }",
"public static ArrayList<String> getTokenList(String cyp, boolean DEBUG_PRINT) {\n CypherLexer lexer = new CypherLexer(new ANTLRInputStream(cyp));\n\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n tokens.fill();\n CypherParser parser = new CypherParser(tokens);\n\n // dangerous - comment out if something is going wrong.\n parser.removeErrorListeners();\n\n ParseTree tree = parser.cypher();\n ParseTreeWalker walker = new ParseTreeWalker();\n\n cypherWalker = null;\n cypherWalker = new CypherWalker();\n walker.walk(cypherWalker, tree);\n\n if (DEBUG_PRINT) cypherWalker.printInformation();\n\n ArrayList<String> tokenList = new ArrayList<>();\n\n for (Object t : tokens.getTokens()) {\n CommonToken tok = (CommonToken) t;\n String s = tok.getText().toLowerCase();\n\n // exclude some tokens from the list of tokens. This includes the EOF pointer,\n // semi-colons, and alias artifacts.\n if (!\" \".equals(s) && !\"<eof>\".equals(s) && !\";\".equals(s) && !\"as\".equals(s) &&\n !cypherWalker.getAlias().contains(s)) {\n tokenList.add(s);\n }\n }\n return tokenList;\n }",
"protected List<String> getFormals(Exp e) {\n List<String> ret = new ArrayList<String>();\n\n if (e == null) return ret;\n\n if (!e.isFunction()) return ret;\n\n Exp fmls = e.getChild(1);\n assert fmls.is(JSExp.PARAM_LIST);\n if (fmls.getChildCount() == 0) return ret;\n\n Exp cur = e.getChild(1).getFirstChild();\n while (cur != null) {\n ret.add(cur.toCode());\n cur = cur.getNext();\n }\n\n return ret;\n }",
"public ArrayList<ASTNode> getVariables(ASTNode exp) {\n HashSet<ASTNode> tmp=new HashSet<ASTNode>();\n getVariablesInner(exp, tmp);\n return new ArrayList<ASTNode>(tmp);\n }",
"@Override\n public List<String> catchFaults(){\n List<String> errors = new ArrayList<>();\n severityLevels.forEach(level -> {\n if(level.equals(\"ERROR\")){\n errors.add(level);\n }\n });\n return errors;\n }",
"public ArrayList < TypeSubstitution > getSubstitution ( ) ;",
"public java.util.List<phaseI.Hdfs.BlockLocations> getBlockLocationsList() {\n if (blockLocationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(blockLocations_);\n } else {\n return blockLocationsBuilder_.getMessageList();\n }\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<BodyDecl> getBodyDeclListNoTransform() {\n return (List<BodyDecl>)getChildNoTransform(1);\n }",
"@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }",
"public String[] getPatternsAntExc() {\n return this.patternsAntExc;\n }",
"public java.util.List<Path> getSourcePathList() {\n if (sourcePathBuilder_ == null) {\n return java.util.Collections.unmodifiableList(sourcePath_);\n } else {\n return sourcePathBuilder_.getMessageList();\n }\n }",
"public List<ICase> getCases() {\n return allCases;\n }",
"public ImmutableList<ErrorCase> getAllErrors() {\n // Relevant error cases are precisely the concrete subclasses of EppException.\n return getConcreteSubclassesStream(FlowDocumentation.EXCEPTION_CLASS_NAME)\n .map(\n typeElement ->\n new ErrorCase(\n typeElement,\n sourceRoot.getDocTrees().getDocCommentTree(typeElement),\n sourceRoot.getTypeUtils()))\n .collect(toImmutableList());\n }",
"@Nonnull\n public List<C> getConstituents() {\n return constituents;\n }",
"public CachetIncidentList getIncidents() {\n throw new RuntimeException(\"Method not implemented.\");\n }",
"public List<Expr> getExprs() {\n return getExprList();\n }",
"@Override\n public Void visitClause(GraafvisParser.ClauseContext ctx) {\n /* Arrived at a new clause, clear variables set */\n variables.clear();\n /* Visit antecedent and consequence */\n return visitChildren(ctx);\n }",
"public List<StackTraceElement> getStackTraceLines() {\n return this.stackTraceLines;\n }",
"@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }",
"public java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList() {\n if (blockLocationsBuilder_ != null) {\n return blockLocationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(blockLocations_);\n }\n }",
"java.util.List<? extends com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>\n getConstraintsOrBuilderList();",
"public FailureCauseList() {\n failureCauses = new HashMap<String, FailureCause>();\n }",
"@Override\n public StackTraceElement[] getStackTrace() {\n return getCause() == null ? super.getStackTrace() : getCause().getStackTrace();\n }",
"public List<Expr> getExprListNoTransform() {\n return (List<Expr>) getChildNoTransform(1);\n }",
"public List<BodyDecl> getBodyDecls() {\n return getBodyDeclList();\n }",
"public FSArray getConditions() {\n if (DebugRuleElementMatch_Type.featOkTst && ((DebugRuleElementMatch_Type)jcasType).casFeat_conditions == null)\n jcasType.jcas.throwFeatMissing(\"conditions\", \"org.apache.uima.ruta.type.DebugRuleElementMatch\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((DebugRuleElementMatch_Type)jcasType).casFeatCode_conditions)));}",
"public String[] getPatternsExc() {\n return getPatternType().equals(\"Ant\") ? this.patternsAntExc : this.patternsRegExExc;\n }",
"public final void entryRuleForClause() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2205:1: ( ruleForClause EOF )\r\n // InternalGo.g:2206:1: ruleForClause EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getForClauseRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleForClause();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getForClauseRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"@Override\n\tpublic Clause getConstraints() {\n\t\treturn null;\n\t}",
"public List<String> getScopesList() {\n\t\tString scopes = getScopes();\n\t\tif (scopes == null)\n\t\t\treturn new ArrayList<String>();\n\t\treturn Arrays.asList(scopes.split(SCOPE_DELIMITER));\n\t}",
"public List<AttackTactic> tactics() {\n return this.innerProperties() == null ? null : this.innerProperties().tactics();\n }",
"public List<Declaration> elseDeclarations() {\r\n\t\treturn this.elseDeclarations;\r\n\t}",
"public String[] getCorrectionList(String misspell);",
"public com.vsp.bl.product.dto.cob.v002.COBExceptionRule[] getCobExceptionRules() {\n return cobExceptionRules;\n }",
"private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"List<T> getRuleTargets();"
] | [
"0.78166014",
"0.7763318",
"0.699245",
"0.6509321",
"0.64442",
"0.6260372",
"0.5861773",
"0.56322825",
"0.5444815",
"0.52587956",
"0.5213883",
"0.5054133",
"0.50395125",
"0.49709404",
"0.49709404",
"0.49580798",
"0.4902758",
"0.4866315",
"0.47702384",
"0.4767256",
"0.4717853",
"0.4691643",
"0.46687856",
"0.46483618",
"0.46424922",
"0.46273726",
"0.4621656",
"0.45813033",
"0.45785668",
"0.45742595",
"0.45555052",
"0.45510918",
"0.45460722",
"0.4531049",
"0.45215312",
"0.45070848",
"0.45070693",
"0.4497538",
"0.44684574",
"0.44338676",
"0.4424235",
"0.44006497",
"0.43798447",
"0.4358352",
"0.43334946",
"0.43205804",
"0.42992696",
"0.42955795",
"0.42752138",
"0.4271687",
"0.42666724",
"0.42563048",
"0.42515638",
"0.42452785",
"0.42317966",
"0.42304164",
"0.42283186",
"0.42187178",
"0.42054766",
"0.42011794",
"0.41888592",
"0.41875878",
"0.41849583",
"0.41626814",
"0.41538695",
"0.41500306",
"0.41261175",
"0.41241673",
"0.4098931",
"0.4087263",
"0.40798312",
"0.40718344",
"0.40496114",
"0.40483963",
"0.40473723",
"0.4045683",
"0.40454826",
"0.40444365",
"0.40284997",
"0.40251374",
"0.4024569",
"0.4023606",
"0.40144998",
"0.40137455",
"0.40054852",
"0.39998206",
"0.39755926",
"0.39752245",
"0.39672822",
"0.39640152",
"0.3958081",
"0.39540753",
"0.3943519",
"0.39419663",
"0.39401376",
"0.3936356",
"0.39301813",
"0.39210778",
"0.3920577",
"0.39151967"
] | 0.6546766 | 3 |
Retrieves the CatchClause list. | @SuppressWarnings({"unchecked", "cast"})
public List<CatchClause> getCatchClauseList() {
List<CatchClause> list = (List<CatchClause>)getChild(1);
list.getNumChild();
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<CatchClause> getCatchClauses() {\n return getCatchClauseList();\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseListNoTransform() {\n return (List<CatchClause>)getChildNoTransform(1);\n }",
"public void setCatchClauseList(List<CatchClause> list) {\n setChild(list, 1);\n }",
"public List<CatchClause> getCatchClausesNoTransform() {\n return getCatchClauseListNoTransform();\n }",
"public List<Clause> getClauses() {\r\n return clauses;\r\n }",
"public ImList<Clause> getClauses() {\n\t\t// TODO: implement this.\n\t\t//throw new RuntimeException(\"not yet implemented.\");\n\t\treturn clauses;\n\t}",
"public void addCatchClause(CatchClause node) {\n List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList();\n list.addChild(node);\n }",
"public final List<BuilderTryBlock> catches() throws RecognitionException {\n List<BuilderTryBlock> tryBlocks = null;\n\n\n tryBlocks = Lists.newArrayList();\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:3: ( ^( I_CATCHES ( catch_directive )* ( catchall_directive )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:5: ^( I_CATCHES ( catch_directive )* ( catchall_directive )* )\n {\n match(input, I_CATCHES, FOLLOW_I_CATCHES_in_catches1314);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:17: ( catch_directive )*\n loop19:\n while (true) {\n int alt19 = 2;\n int LA19_0 = input.LA(1);\n if ((LA19_0 == I_CATCH)) {\n alt19 = 1;\n }\n\n switch (alt19) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:17: catch_directive\n {\n pushFollow(FOLLOW_catch_directive_in_catches1316);\n catch_directive();\n state._fsp--;\n\n }\n break;\n\n default:\n break loop19;\n }\n }\n\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:34: ( catchall_directive )*\n loop20:\n while (true) {\n int alt20 = 2;\n int LA20_0 = input.LA(1);\n if ((LA20_0 == I_CATCHALL)) {\n alt20 = 1;\n }\n\n switch (alt20) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:34: catchall_directive\n {\n pushFollow(FOLLOW_catchall_directive_in_catches1319);\n catchall_directive();\n state._fsp--;\n\n }\n break;\n\n default:\n break loop20;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return tryBlocks;\n }",
"public int getNumCatchClause() {\n return getCatchClauseList().getNumChild();\n }",
"public final void catches() throws RecognitionException {\n int catches_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"catches\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(641, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 91) ) { return ; }\n // Java.g:642:5: ( catchClause ( catchClause )* )\n dbg.enterAlt(1);\n\n // Java.g:642:9: catchClause ( catchClause )*\n {\n dbg.location(642,9);\n pushFollow(FOLLOW_catchClause_in_catches3657);\n catchClause();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(642,21);\n // Java.g:642:21: ( catchClause )*\n try { dbg.enterSubRule(115);\n\n loop115:\n do {\n int alt115=2;\n try { dbg.enterDecision(115);\n\n int LA115_0 = input.LA(1);\n\n if ( (LA115_0==88) ) {\n alt115=1;\n }\n\n\n } finally {dbg.exitDecision(115);}\n\n switch (alt115) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:642:22: catchClause\n \t {\n \t dbg.location(642,22);\n \t pushFollow(FOLLOW_catchClause_in_catches3660);\n \t catchClause();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop115;\n }\n } while (true);\n } finally {dbg.exitSubRule(115);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 91, catches_StartIndex); }\n }\n dbg.location(643, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"catches\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"public Collection<Resolver> getCauses() {\r\n return Collections.unmodifiableCollection(causes);\r\n }",
"public List<String> getExceptionsCaught() {\n\t\treturn exceptionsCaught;\n\t}",
"java.util.List<java.lang.String>\n getExceptionsList();",
"List<Type> getThrows();",
"public ArrayList<Clause> solve() {\n for (Clause c : clauses) {\n for (CLiteral l : c.getCLiterals()) {\n if (labels.get(l.getName()) == null)\n labels.put(l.getName(), -1);\n }\n }\n init();\n\n return (ArrayList<Clause>) conflicts;\n }",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\r\n\t\treturn gaXbase.getXCatchClauseAccess();\r\n\t}",
"public List<String> getSelectClauseVarList() ;",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\n\t\treturn gaXbase.getXCatchClauseAccess();\n\t}",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\n\t\treturn gaXbase.getXCatchClauseAccess();\n\t}",
"java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();",
"List<CSSParseException> getExceptions();",
"public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }",
"public final void catchClause() throws RecognitionException {\n int catchClause_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"catchClause\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(645, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 92) ) { return ; }\n // Java.g:646:5: ( 'catch' '(' formalParameter ')' block )\n dbg.enterAlt(1);\n\n // Java.g:646:9: 'catch' '(' formalParameter ')' block\n {\n dbg.location(646,9);\n match(input,88,FOLLOW_88_in_catchClause3685); if (state.failed) return ;\n dbg.location(646,17);\n match(input,66,FOLLOW_66_in_catchClause3687); if (state.failed) return ;\n dbg.location(646,21);\n pushFollow(FOLLOW_formalParameter_in_catchClause3689);\n formalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(646,37);\n match(input,67,FOLLOW_67_in_catchClause3691); if (state.failed) return ;\n dbg.location(646,41);\n pushFollow(FOLLOW_block_in_catchClause3693);\n block();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 92, catchClause_StartIndex); }\n }\n dbg.location(647, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"catchClause\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"public Catch[] exceptionHandlers();",
"public List<Throwable> list() {\n return messages;\n }",
"TypeList getExceptionTypes();",
"public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }",
"@Override\n public List<String> catchFaults(){\n List<String> errors = new ArrayList<>();\n severityLevels.forEach(level -> {\n if(level.equals(\"ERROR\")){\n errors.add(level);\n }\n });\n return errors;\n }",
"java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();",
"private List<Throwable> exceptions(Object swallowing) {\n return Collections.emptyList();\n }",
"public static <T> List<T> listFromClause(Class<T> clazz, String clause, Object... args)\n {\n return new ListFromClauseClosure<T>(clazz, clause, args).execute();\n }",
"@Override\n public Void visitProgram(GraafvisParser.ProgramContext ctx) {\n for (GraafvisParser.ClauseContext clause : ctx.clause()) {\n visitClause(clause);\n }\n return null;\n }",
"ExpressionList getExpressionList();",
"public WhatClauseElements getWhatClauseAccess() {\n\t\treturn pWhatClause;\n\t}",
"@Override\n\tArrayList<Prop> MakeClause() {\n\t\treturn null;\n\t}",
"public final void catchall_directive() throws RecognitionException {\n Label from = null;\n Label to = null;\n Label using = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:544:3: ( ^( I_CATCHALL from= label_ref to= label_ref using= label_ref ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:544:5: ^( I_CATCHALL from= label_ref to= label_ref using= label_ref )\n {\n match(input, I_CATCHALL, FOLLOW_I_CATCHALL_in_catchall_directive1362);\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_label_ref_in_catchall_directive1366);\n from = label_ref();\n state._fsp--;\n\n pushFollow(FOLLOW_label_ref_in_catchall_directive1370);\n to = label_ref();\n state._fsp--;\n\n pushFollow(FOLLOW_label_ref_in_catchall_directive1374);\n using = label_ref();\n state._fsp--;\n\n match(input, Token.UP, null);\n\n\n method_stack.peek().methodBuilder.addCatch(from, to, using);\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n }",
"java.util.List<java.lang.String>\n getGeoTargetConstantsList();",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<ContextConstraint> getConstraintList() {\n return (List<ContextConstraint>)getChild(1);\n }",
"@GetMapping(\"causes\")\n public ResponseEntity<?> getAllCauses() {\n ResponseEntity responseEntity;\n try {\n\n responseEntity = new ResponseEntity<List<Cause>>(service.getAllCauses(), HttpStatus.OK);\n } catch (Exception ex) {\n responseEntity = new ResponseEntity<String>(ex.getMessage(), HttpStatus.CONFLICT);\n ex.printStackTrace();\n }\n return responseEntity;\n }",
"java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity> getConstraintsList();",
"public final AstValidator.as_clause_return as_clause() throws RecognitionException {\n AstValidator.as_clause_return retval = new AstValidator.as_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree AS80=null;\n AstValidator.field_def_list_return field_def_list81 =null;\n\n\n CommonTree AS80_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:233:10: ( ^( AS field_def_list ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:233:12: ^( AS field_def_list )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n AS80=(CommonTree)match(input,AS,FOLLOW_AS_in_as_clause929); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n AS80_tree = (CommonTree)adaptor.dupNode(AS80);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(AS80_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_field_def_list_in_as_clause931);\n field_def_list81=field_def_list();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, field_def_list81.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public final IClass[]\r\n getThrownExceptions() throws CompileException {\r\n if (this.thrownExceptionsCache != null) return this.thrownExceptionsCache;\r\n return (this.thrownExceptionsCache = this.getThrownExceptions2());\r\n }",
"public List<String> getSolutionTrace() {\n\t\treturn trace;\n\t}",
"public IAeCatch selectMatchingCatch(IAeContextWSDLProvider aProvider, Iterator aIterOfCatches, IAeFaultTypeInfo aFault);",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Severity> getAllSeverities() {\n\t\ttry{\r\n\t\t\tList<Severity> severityList = getSessionFactory().getCurrentSession().createCriteria(Severity.class).list();\r\n\t\t\treturn severityList;\r\n\t\t}catch(HibernateException ex){\r\n\t\t\tex.printStackTrace();// logger.error(ex.getMessage(),ex);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public final void mCLAUSES() throws RecognitionException {\r\n try {\r\n int _type = CLAUSES;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:5:9: ( 'CLAUSES:' )\r\n // Satmc.g:5:11: 'CLAUSES:'\r\n {\r\n match(\"CLAUSES:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"@Override\n public List<Contest> GetAllContest() throws ATP_ExceptionHandler {\n try {\n return em.createNamedQuery(\"Contest.GetAll\", Contest.class).getResultList();\n } catch (Exception e) {\n // TODO: handle exception\n throw new ATP_ExceptionHandler(e.getMessage(), 74, \"ContestDAO\", \"Get All Contest Fail\");\n }\n }",
"java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList();",
"@Override\n public String visit(CatchClause n, Object arg) {\n return null;\n }",
"@ASTNodeAnnotation.ListChild(name=\"Expr\")\n public List<Expr> getExprList() {\n List<Expr> list = (List<Expr>) getChild(1);\n return list;\n }",
"public FailureCauseList() {\n failureCauses = new HashMap<String, FailureCause>();\n }",
"public String[] getCorrectionList(String misspell);",
"@Override\n public Set<DataFact> visitGetCaughtException(CGNode n, SSAGetCaughtExceptionInstruction instruction, DataFact fact) {\n\n return Collections.singleton(fact);\n }",
"private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"List getExpressions();",
"public int getNumCatchClauseNoTransform() {\n return getCatchClauseListNoTransform().getNumChildNoTransform();\n }",
"public final PythonParser.except_clause_return except_clause() throws RecognitionException {\n PythonParser.except_clause_return retval = new PythonParser.except_clause_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token EXCEPT174=null;\n Token COMMA175=null;\n Token COLON176=null;\n PythonParser.test_return t1 = null;\n\n PythonParser.test_return t2 = null;\n\n PythonParser.suite_return suite177 = null;\n\n\n PythonTree EXCEPT174_tree=null;\n PythonTree COMMA175_tree=null;\n PythonTree COLON176_tree=null;\n RewriteRuleTokenStream stream_COLON=new RewriteRuleTokenStream(adaptor,\"token COLON\");\n RewriteRuleTokenStream stream_EXCEPT=new RewriteRuleTokenStream(adaptor,\"token EXCEPT\");\n RewriteRuleTokenStream stream_COMMA=new RewriteRuleTokenStream(adaptor,\"token COMMA\");\n RewriteRuleSubtreeStream stream_test=new RewriteRuleSubtreeStream(adaptor,\"rule test\");\n RewriteRuleSubtreeStream stream_suite=new RewriteRuleSubtreeStream(adaptor,\"rule suite\");\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:5: ( EXCEPT (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )? COLON suite[!$suite.isEmpty() && $suite::continueIllegal] -> ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] ) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:7: EXCEPT (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )? COLON suite[!$suite.isEmpty() && $suite::continueIllegal]\n {\n EXCEPT174=(Token)match(input,EXCEPT,FOLLOW_EXCEPT_in_except_clause4039); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_EXCEPT.add(EXCEPT174);\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:14: (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )?\n int alt75=2;\n int LA75_0 = input.LA(1);\n\n if ( (LA75_0==NAME||(LA75_0>=LAMBDA && LA75_0<=NOT)||LA75_0==LPAREN||(LA75_0>=PLUS && LA75_0<=MINUS)||(LA75_0>=TILDE && LA75_0<=LBRACK)||LA75_0==LCURLY||(LA75_0>=BACKQUOTE && LA75_0<=STRING)) ) {\n alt75=1;\n }\n switch (alt75) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:15: t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )?\n {\n pushFollow(FOLLOW_test_in_except_clause4044);\n t1=test(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_test.add(t1.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:46: ( COMMA t2= test[expr_contextType.Store] )?\n int alt74=2;\n int LA74_0 = input.LA(1);\n\n if ( (LA74_0==COMMA) ) {\n alt74=1;\n }\n switch (alt74) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:47: COMMA t2= test[expr_contextType.Store]\n {\n COMMA175=(Token)match(input,COMMA,FOLLOW_COMMA_in_except_clause4048); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_COMMA.add(COMMA175);\n\n pushFollow(FOLLOW_test_in_except_clause4052);\n t2=test(expr_contextType.Store);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_test.add(t2.getTree());\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n COLON176=(Token)match(input,COLON,FOLLOW_COLON_in_except_clause4059); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_COLON.add(COLON176);\n\n pushFollow(FOLLOW_suite_in_except_clause4061);\n suite177=suite(!suite_stack.isEmpty() && ((suite_scope)suite_stack.peek()).continueIllegal);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_suite.add(suite177.getTree());\n\n\n // AST REWRITE\n // elements: EXCEPT\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 996:4: -> ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] )\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:996:7: ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] )\n {\n PythonTree root_1 = (PythonTree)adaptor.nil();\n root_1 = (PythonTree)adaptor.becomeRoot(new ExceptHandler(EXCEPT, EXCEPT174, actions.castExpr((t1!=null?((PythonTree)t1.tree):null)), actions.castExpr((t2!=null?((PythonTree)t2.tree):null)), actions.castStmts((suite177!=null?suite177.stypes:null))), root_1);\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;}\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }",
"public List<Course> getByCondition(List<SimpleExpression> list) {\n\t\treturn null;\n\t}",
"public boolean detectClauses() {\r\n return ClauseDetector.detectClauses(this);\r\n }",
"public YangString getCsgListValue() throws JNCException {\n return (YangString)getValue(\"csg-list\");\n }",
"public String[] getPatternsAntExc() {\n return this.patternsAntExc;\n }",
"public String[] getPatternsExc() {\n return getPatternType().equals(\"Ant\") ? this.patternsAntExc : this.patternsRegExExc;\n }",
"public java.util.List<phaseI.Hdfs.BlockLocations> getBlockLocationsList() {\n if (blockLocationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(blockLocations_);\n } else {\n return blockLocationsBuilder_.getMessageList();\n }\n }",
"public ImmutableList<SourceCompilerError> getSyntaxErrors() {\n return ImmutableList.copyOf(errors);\n }",
"public List<Throwable> getExceptions() {\n return exceptions;\n }",
"public List<ResolvedMessage> getAll() { // e.g. th:each=\"error : ${errors.all}\"\n List<ResolvedMessage> list = new ArrayList<ResolvedMessage>();\n messages.accessByFlatIterator().forEachRemaining(message -> {\n list.add(createResolvedMessage(message));\n });\n return list;\n }",
"public CAS[] getCASes() throws SessionQueryException\n {\n CAS[] cases = null;\n\n ComponentStruct[] components = getCASComponents();\n\n if(components != null)\n {\n cases = new CAS[components.length];\n\n for(int i = 0; i < components.length; i++)\n {\n cases[i] = buildCASComponent(components[i]);\n }\n\n Arrays.sort(cases, getNameComparator());\n }\n else\n {\n cases = new CAS[0];\n }\n\n return cases;\n }",
"@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }",
"public io.dstore.values.StringValue getConditionList() {\n if (conditionListBuilder_ == null) {\n return conditionList_ == null ? io.dstore.values.StringValue.getDefaultInstance() : conditionList_;\n } else {\n return conditionListBuilder_.getMessage();\n }\n }",
"List<? extends Rule> getRules();",
"public java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList() {\n if (blockLocationsBuilder_ != null) {\n return blockLocationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(blockLocations_);\n }\n }",
"public List<String> getConstituencies() throws HttpNotFoundException, HttpBadRequestException, HttpForbiddenException, HttpFetchException, JsonProcessingException, IOException, URISyntaxException {\n\t\tURIBuilder url = setupUrlFor(GET_CONSTITUENCIES);\n\t\t\n\t\tfinal List<String> constituencyNames = Lists.newArrayList();\t\n\t\tfinal Iterator<JsonNode> elements = objectMapper.readTree(httpFetcher.get(url.build())).elements();\n\t\twhile(elements.hasNext()) {\n\t\t\tJsonNode next = elements.next();\n\t\t\tconstituencyNames.add(next.get(NAME).asText());\n\t\t}\t\t\n\t\treturn constituencyNames;\n\t}",
"public io.dstore.values.StringValueOrBuilder getConditionListOrBuilder() {\n return getConditionList();\n }",
"java.util.List<? extends com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>\n getConstraintsOrBuilderList();",
"public List<ICase> getCases() {\n return allCases;\n }",
"public abstract List<? extends Pair<Type.Clazz,String>> exceptions();",
"public com.vsp.bl.product.dto.cob.v002.COBExceptionRule[] getCobExceptionRules() {\n return cobExceptionRules;\n }",
"Collection<String> getPossibleDefeatConditions();",
"public ImmutableList<ErrorCase> getAllErrors() {\n // Relevant error cases are precisely the concrete subclasses of EppException.\n return getConcreteSubclassesStream(FlowDocumentation.EXCEPTION_CLASS_NAME)\n .map(\n typeElement ->\n new ErrorCase(\n typeElement,\n sourceRoot.getDocTrees().getDocCommentTree(typeElement),\n sourceRoot.getTypeUtils()))\n .collect(toImmutableList());\n }",
"io.dstore.values.StringValueOrBuilder getConditionListOrBuilder();",
"@Nonnull\n public List<C> getConstituents() {\n return constituents;\n }",
"@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }",
"public List<Trigger> getTriggers();",
"public Set<Cause> getCauses() {\n\t\tSet<Cause> children = new TreeSet<Cause>();\n\t\tfor (Relation relation : this.causeRelations) {\n\t\t\tif (relation.causeFrom.isChildOf(this)) {\n\t\t\t\tchildren.add(relation.causeFrom);\n\t\t\t}\n\t\t}\n\t\treturn children;\n\t}",
"public static String [] getCond(){\n\t\treturn conditions;\n\t}",
"public void init() {\n for (Clause c : clauses) {\n // if there is only one literal UNKNOWN and the other are NEGATIVE , add to fringe\n if (c.getNumUnknownLiterals() == 1 && c.getNumOfLiterals() - c.getNumUnknownLiterals() == c.getNumOfNegative()) {\n fringe.push(c);\n }\n }\n computeLabel();\n }",
"private List<String> getList(RequestInfo requestInfo) throws DefectException {\r\n\t\tlog.info(\"Start - getList\");\r\n\t\tcreateInstance();\r\n\t\tList<String> lstResult = new ArrayList<String>();\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to get list, request information is missing\");\r\n\t\t}\r\n\t\t\r\n try {\r\n\r\n log.info(\"Querying for top highest priority unfixed defects...\");\r\n System.out.println(\"Query Request Info \" + requestInfo.getQueryFilter());\r\n QueryResponse qryResponse = getQueryResponse(requestInfo);\r\n \r\n \r\n if (qryResponse.wasSuccessful()) {\r\n \tlog.info(String.format(\"\\nTotal results: %d\", qryResponse.getTotalResultCount()));\r\n for (JsonElement result : qryResponse.getResults()) {\r\n JsonObject qryObject = result.getAsJsonObject();\r\n String strFetch[] = requestInfo.getFetch();\r\n String strPrintInfo = \"\";\r\n if(strFetch != null && strFetch.length != 0){\r\n \tfor(int i=0; i < strFetch.length; i++){\r\n \t\tstrPrintInfo = strPrintInfo + strFetch[i] + \" : \" + qryObject.get(strFetch[i]).getAsString() + \" \";\r\n \t}\r\n }\r\n log.info(strPrintInfo);\r\n lstResult.add(strPrintInfo);\r\n }\r\n } else {\r\n for (String err : qryResponse.getErrors()) {\r\n System.err.println(\"\\t\" + err);\r\n lstResult.add(err);\r\n }\r\n log.error(\"Error in getting list : \" + lstResult);\r\n throw new DefectException(\"Error in getting list\" + lstResult);\r\n }\r\n } catch (Exception e){\r\n log.error(\"Error in getting list, message : \" + e.toString());\r\n throw new DefectException(\"Error in getting list, message : \" + e.toString());\r\n } finally {\r\n \tcloseDefect();\r\n \t\tlog.info(\"End - getList\");\r\n }\r\n\t\treturn lstResult;\r\n }",
"public ArrayList<Exception> getEndUserExceptions();",
"private List<SimpleComponent> list(String phrase) {\n\t\tfinal List<SimpleComponent> messages = new ArrayList<>();\n\t\tClass<?> iteratedClass = classToList;\n\n\t\ttry {\n\t\t\tdo {\n\t\t\t\tlistIn(iteratedClass, messages, phrase);\n\n\t\t\t} while (!(iteratedClass = iteratedClass.getSuperclass()).isAssignableFrom(Object.class));\n\n\t\t} catch (final Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\treturn messages;\n\t}",
"Collection<String> getExcludeExceptions();",
"java.util.List<? extends com.rpg.framework.database.Protocol.QuestOrBuilder> \n getQuestOrBuilderList();",
"io.dstore.values.StringValue getConditionList();",
"public ArrayList<Exception> getValidateExceptions();",
"public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }",
"public Formula addClause(Clause c) {\n\n\t\tFormula f2;\n\t\tf2=new Formula(c,this.clauses);\n\t\treturn f2;\n\t}",
"Collection<ITrigger> getTriggers(String sFolderName);",
"Object getExceptionHandlers();",
"public static ArrayList<Notice> list() throws Exception {\n Session session = HibernateUtil.getCurrentSession();\n return (ArrayList<Notice>)session.getNamedQuery(\"notice.noticeList\")\n .list();\n }",
"@Override\n public Void visit(CatchClause nd, SuccessorInfo i) {\n if (nd.hasGuard()) {\n // if so, the guard may fail and execution might continue with the next\n // catch clause (if any)\n writeSuccessor(nd, (Node)nd.getParam());\n visitSequence(\n nd.getParam(), nd.getGuard(), union(First.of(nd.getBody()), i.getSuccessors(false)));\n visitSequence(nd.getBody(), i.getSuccessors(true));\n } else {\n // unguarded catch clauses always execute their body\n if (nd.getParam() != null) {\n writeSuccessor(nd, (Node)nd.getParam());\n visitSequence(nd.getParam(), nd.getBody(), i.getAllSuccessors());\n } else {\n writeSuccessor(nd, First.of(nd.getBody()));\n visitSequence(nd.getBody(), i.getAllSuccessors());\n }\n }\n return null;\n }",
"String getWhereClause();"
] | [
"0.7913233",
"0.669154",
"0.64617324",
"0.63619095",
"0.62485296",
"0.61867297",
"0.5657099",
"0.56411725",
"0.5558624",
"0.52145624",
"0.51595443",
"0.5143312",
"0.50994694",
"0.50754577",
"0.50619537",
"0.50538814",
"0.4998543",
"0.49651214",
"0.49651214",
"0.4896101",
"0.48900113",
"0.4862473",
"0.48006764",
"0.4768278",
"0.47395727",
"0.4706256",
"0.46659678",
"0.46474174",
"0.46413705",
"0.46300575",
"0.45954105",
"0.44887593",
"0.44780928",
"0.44656348",
"0.44411212",
"0.44354817",
"0.4429472",
"0.44157353",
"0.4407191",
"0.44001704",
"0.4396219",
"0.439106",
"0.43871075",
"0.43841314",
"0.4368727",
"0.43683833",
"0.43523306",
"0.43513355",
"0.43482378",
"0.43404803",
"0.4327179",
"0.43213063",
"0.4312102",
"0.4304476",
"0.4296014",
"0.42927927",
"0.4281275",
"0.42777845",
"0.42729455",
"0.42722553",
"0.4256909",
"0.42285767",
"0.42218956",
"0.42216226",
"0.42067194",
"0.4197205",
"0.41830975",
"0.41701892",
"0.4165678",
"0.4164695",
"0.4150325",
"0.41465086",
"0.41450858",
"0.41374007",
"0.41346344",
"0.41302252",
"0.4129221",
"0.4112301",
"0.41115022",
"0.41056052",
"0.40998998",
"0.40909824",
"0.4089306",
"0.4074243",
"0.4072418",
"0.40664664",
"0.4064605",
"0.40641344",
"0.40549633",
"0.40542996",
"0.40531793",
"0.4041022",
"0.40392998",
"0.40373456",
"0.40338984",
"0.40123793",
"0.40102363",
"0.40066645",
"0.40052038",
"0.39995676"
] | 0.7630446 | 1 |
Retrieves the CatchClause list. This method does not invoke AST transformations. | @SuppressWarnings({"unchecked", "cast"})
public List<CatchClause> getCatchClauseListNoTransform() {
return (List<CatchClause>)getChildNoTransform(1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<CatchClause> getCatchClauseList() {\n List<CatchClause> list = (List<CatchClause>)getChild(1);\n list.getNumChild();\n return list;\n }",
"public List<CatchClause> getCatchClauses() {\n return getCatchClauseList();\n }",
"public List<CatchClause> getCatchClausesNoTransform() {\n return getCatchClauseListNoTransform();\n }",
"public ImList<Clause> getClauses() {\n\t\t// TODO: implement this.\n\t\t//throw new RuntimeException(\"not yet implemented.\");\n\t\treturn clauses;\n\t}",
"public List<Clause> getClauses() {\r\n return clauses;\r\n }",
"public void setCatchClauseList(List<CatchClause> list) {\n setChild(list, 1);\n }",
"public void addCatchClause(CatchClause node) {\n List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList();\n list.addChild(node);\n }",
"public int getNumCatchClause() {\n return getCatchClauseList().getNumChild();\n }",
"public final List<BuilderTryBlock> catches() throws RecognitionException {\n List<BuilderTryBlock> tryBlocks = null;\n\n\n tryBlocks = Lists.newArrayList();\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:3: ( ^( I_CATCHES ( catch_directive )* ( catchall_directive )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:5: ^( I_CATCHES ( catch_directive )* ( catchall_directive )* )\n {\n match(input, I_CATCHES, FOLLOW_I_CATCHES_in_catches1314);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:17: ( catch_directive )*\n loop19:\n while (true) {\n int alt19 = 2;\n int LA19_0 = input.LA(1);\n if ((LA19_0 == I_CATCH)) {\n alt19 = 1;\n }\n\n switch (alt19) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:17: catch_directive\n {\n pushFollow(FOLLOW_catch_directive_in_catches1316);\n catch_directive();\n state._fsp--;\n\n }\n break;\n\n default:\n break loop19;\n }\n }\n\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:34: ( catchall_directive )*\n loop20:\n while (true) {\n int alt20 = 2;\n int LA20_0 = input.LA(1);\n if ((LA20_0 == I_CATCHALL)) {\n alt20 = 1;\n }\n\n switch (alt20) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:534:34: catchall_directive\n {\n pushFollow(FOLLOW_catchall_directive_in_catches1319);\n catchall_directive();\n state._fsp--;\n\n }\n break;\n\n default:\n break loop20;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return tryBlocks;\n }",
"public ArrayList<Clause> solve() {\n for (Clause c : clauses) {\n for (CLiteral l : c.getCLiterals()) {\n if (labels.get(l.getName()) == null)\n labels.put(l.getName(), -1);\n }\n }\n init();\n\n return (ArrayList<Clause>) conflicts;\n }",
"public final void catches() throws RecognitionException {\n int catches_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"catches\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(641, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 91) ) { return ; }\n // Java.g:642:5: ( catchClause ( catchClause )* )\n dbg.enterAlt(1);\n\n // Java.g:642:9: catchClause ( catchClause )*\n {\n dbg.location(642,9);\n pushFollow(FOLLOW_catchClause_in_catches3657);\n catchClause();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(642,21);\n // Java.g:642:21: ( catchClause )*\n try { dbg.enterSubRule(115);\n\n loop115:\n do {\n int alt115=2;\n try { dbg.enterDecision(115);\n\n int LA115_0 = input.LA(1);\n\n if ( (LA115_0==88) ) {\n alt115=1;\n }\n\n\n } finally {dbg.exitDecision(115);}\n\n switch (alt115) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:642:22: catchClause\n \t {\n \t dbg.location(642,22);\n \t pushFollow(FOLLOW_catchClause_in_catches3660);\n \t catchClause();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop115;\n }\n } while (true);\n } finally {dbg.exitSubRule(115);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 91, catches_StartIndex); }\n }\n dbg.location(643, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"catches\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\r\n\t\treturn gaXbase.getXCatchClauseAccess();\r\n\t}",
"public Collection<Resolver> getCauses() {\r\n return Collections.unmodifiableCollection(causes);\r\n }",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\n\t\treturn gaXbase.getXCatchClauseAccess();\n\t}",
"public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() {\n\t\treturn gaXbase.getXCatchClauseAccess();\n\t}",
"@Override\n public Void visitProgram(GraafvisParser.ProgramContext ctx) {\n for (GraafvisParser.ClauseContext clause : ctx.clause()) {\n visitClause(clause);\n }\n return null;\n }",
"public List<String> getExceptionsCaught() {\n\t\treturn exceptionsCaught;\n\t}",
"public List<String> getSelectClauseVarList() ;",
"public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }",
"public final void catchClause() throws RecognitionException {\n int catchClause_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"catchClause\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(645, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 92) ) { return ; }\n // Java.g:646:5: ( 'catch' '(' formalParameter ')' block )\n dbg.enterAlt(1);\n\n // Java.g:646:9: 'catch' '(' formalParameter ')' block\n {\n dbg.location(646,9);\n match(input,88,FOLLOW_88_in_catchClause3685); if (state.failed) return ;\n dbg.location(646,17);\n match(input,66,FOLLOW_66_in_catchClause3687); if (state.failed) return ;\n dbg.location(646,21);\n pushFollow(FOLLOW_formalParameter_in_catchClause3689);\n formalParameter();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(646,37);\n match(input,67,FOLLOW_67_in_catchClause3691); if (state.failed) return ;\n dbg.location(646,41);\n pushFollow(FOLLOW_block_in_catchClause3693);\n block();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 92, catchClause_StartIndex); }\n }\n dbg.location(647, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"catchClause\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"@ASTNodeAnnotation.ListChild(name=\"Expr\")\n public List<Expr> getExprList() {\n List<Expr> list = (List<Expr>) getChild(1);\n return list;\n }",
"java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();",
"List<Type> getThrows();",
"java.util.List<java.lang.String>\n getExceptionsList();",
"@Override\n\tArrayList<Prop> MakeClause() {\n\t\treturn null;\n\t}",
"public WhatClauseElements getWhatClauseAccess() {\n\t\treturn pWhatClause;\n\t}",
"@Override\n public String visit(CatchClause n, Object arg) {\n return null;\n }",
"public final AstValidator.as_clause_return as_clause() throws RecognitionException {\n AstValidator.as_clause_return retval = new AstValidator.as_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree AS80=null;\n AstValidator.field_def_list_return field_def_list81 =null;\n\n\n CommonTree AS80_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:233:10: ( ^( AS field_def_list ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:233:12: ^( AS field_def_list )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n AS80=(CommonTree)match(input,AS,FOLLOW_AS_in_as_clause929); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n AS80_tree = (CommonTree)adaptor.dupNode(AS80);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(AS80_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_field_def_list_in_as_clause931);\n field_def_list81=field_def_list();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, field_def_list81.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public int getNumCatchClauseNoTransform() {\n return getCatchClauseListNoTransform().getNumChildNoTransform();\n }",
"List<CSSParseException> getExceptions();",
"ExpressionList getExpressionList();",
"public final void mCLAUSES() throws RecognitionException {\r\n try {\r\n int _type = CLAUSES;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:5:9: ( 'CLAUSES:' )\r\n // Satmc.g:5:11: 'CLAUSES:'\r\n {\r\n match(\"CLAUSES:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<ContextConstraint> getConstraintList() {\n return (List<ContextConstraint>)getChild(1);\n }",
"public List<String> getSolutionTrace() {\n\t\treturn trace;\n\t}",
"public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }",
"List getExpressions();",
"@Override\n public Set<DataFact> visitGetCaughtException(CGNode n, SSAGetCaughtExceptionInstruction instruction, DataFact fact) {\n\n return Collections.singleton(fact);\n }",
"public ImmutableList<SourceCompilerError> getSyntaxErrors() {\n return ImmutableList.copyOf(errors);\n }",
"java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();",
"public boolean detectClauses() {\r\n return ClauseDetector.detectClauses(this);\r\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<BodyDecl> getBodyDeclList() {\n List<BodyDecl> list = (List<BodyDecl>)getChild(1);\n list.getNumChild();\n return list;\n }",
"public final PythonParser.except_clause_return except_clause() throws RecognitionException {\n PythonParser.except_clause_return retval = new PythonParser.except_clause_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token EXCEPT174=null;\n Token COMMA175=null;\n Token COLON176=null;\n PythonParser.test_return t1 = null;\n\n PythonParser.test_return t2 = null;\n\n PythonParser.suite_return suite177 = null;\n\n\n PythonTree EXCEPT174_tree=null;\n PythonTree COMMA175_tree=null;\n PythonTree COLON176_tree=null;\n RewriteRuleTokenStream stream_COLON=new RewriteRuleTokenStream(adaptor,\"token COLON\");\n RewriteRuleTokenStream stream_EXCEPT=new RewriteRuleTokenStream(adaptor,\"token EXCEPT\");\n RewriteRuleTokenStream stream_COMMA=new RewriteRuleTokenStream(adaptor,\"token COMMA\");\n RewriteRuleSubtreeStream stream_test=new RewriteRuleSubtreeStream(adaptor,\"rule test\");\n RewriteRuleSubtreeStream stream_suite=new RewriteRuleSubtreeStream(adaptor,\"rule suite\");\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:5: ( EXCEPT (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )? COLON suite[!$suite.isEmpty() && $suite::continueIllegal] -> ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] ) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:7: EXCEPT (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )? COLON suite[!$suite.isEmpty() && $suite::continueIllegal]\n {\n EXCEPT174=(Token)match(input,EXCEPT,FOLLOW_EXCEPT_in_except_clause4039); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_EXCEPT.add(EXCEPT174);\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:14: (t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )? )?\n int alt75=2;\n int LA75_0 = input.LA(1);\n\n if ( (LA75_0==NAME||(LA75_0>=LAMBDA && LA75_0<=NOT)||LA75_0==LPAREN||(LA75_0>=PLUS && LA75_0<=MINUS)||(LA75_0>=TILDE && LA75_0<=LBRACK)||LA75_0==LCURLY||(LA75_0>=BACKQUOTE && LA75_0<=STRING)) ) {\n alt75=1;\n }\n switch (alt75) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:15: t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Store] )?\n {\n pushFollow(FOLLOW_test_in_except_clause4044);\n t1=test(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_test.add(t1.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:46: ( COMMA t2= test[expr_contextType.Store] )?\n int alt74=2;\n int LA74_0 = input.LA(1);\n\n if ( (LA74_0==COMMA) ) {\n alt74=1;\n }\n switch (alt74) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:995:47: COMMA t2= test[expr_contextType.Store]\n {\n COMMA175=(Token)match(input,COMMA,FOLLOW_COMMA_in_except_clause4048); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_COMMA.add(COMMA175);\n\n pushFollow(FOLLOW_test_in_except_clause4052);\n t2=test(expr_contextType.Store);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_test.add(t2.getTree());\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n COLON176=(Token)match(input,COLON,FOLLOW_COLON_in_except_clause4059); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_COLON.add(COLON176);\n\n pushFollow(FOLLOW_suite_in_except_clause4061);\n suite177=suite(!suite_stack.isEmpty() && ((suite_scope)suite_stack.peek()).continueIllegal);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_suite.add(suite177.getTree());\n\n\n // AST REWRITE\n // elements: EXCEPT\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 996:4: -> ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] )\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:996:7: ^( EXCEPT[$EXCEPT, actions.castExpr($t1.tree), actions.castExpr($t2.tree),\\n actions.castStmts($suite.stypes)] )\n {\n PythonTree root_1 = (PythonTree)adaptor.nil();\n root_1 = (PythonTree)adaptor.becomeRoot(new ExceptHandler(EXCEPT, EXCEPT174, actions.castExpr((t1!=null?((PythonTree)t1.tree):null)), actions.castExpr((t2!=null?((PythonTree)t2.tree):null)), actions.castStmts((suite177!=null?suite177.stypes:null))), root_1);\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;}\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }",
"public List<Throwable> list() {\n return messages;\n }",
"public static <T> List<T> listFromClause(Class<T> clazz, String clause, Object... args)\n {\n return new ListFromClauseClosure<T>(clazz, clause, args).execute();\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<Stmt> getStmtList() {\n return (List<Stmt>)getChild(0);\n }",
"private List<Throwable> exceptions(Object swallowing) {\n return Collections.emptyList();\n }",
"public Catch[] exceptionHandlers();",
"TypeList getExceptionTypes();",
"public final AstValidator.cache_clause_return cache_clause() throws RecognitionException {\n AstValidator.cache_clause_return retval = new AstValidator.cache_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree CACHE60=null;\n AstValidator.path_list_return path_list61 =null;\n\n\n CommonTree CACHE60_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:210:14: ( ^( CACHE path_list ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:210:16: ^( CACHE path_list )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n CACHE60=(CommonTree)match(input,CACHE,FOLLOW_CACHE_in_cache_clause769); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n CACHE60_tree = (CommonTree)adaptor.dupNode(CACHE60);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(CACHE60_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_path_list_in_cache_clause771);\n path_list61=path_list();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, path_list61.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public final IClass[]\r\n getThrownExceptions() throws CompileException {\r\n if (this.thrownExceptionsCache != null) return this.thrownExceptionsCache;\r\n return (this.thrownExceptionsCache = this.getThrownExceptions2());\r\n }",
"public List<Statement> getStatements() {\n\t\treturn new ArrayList<Statement>(statements);\n\t}",
"public Set<Cause> getCauses() {\n\t\tSet<Cause> children = new TreeSet<Cause>();\n\t\tfor (Relation relation : this.causeRelations) {\n\t\t\tif (relation.causeFrom.isChildOf(this)) {\n\t\t\t\tchildren.add(relation.causeFrom);\n\t\t\t}\n\t\t}\n\t\treturn children;\n\t}",
"java.util.List<java.lang.String>\n getGeoTargetConstantsList();",
"public void init() {\n for (Clause c : clauses) {\n // if there is only one literal UNKNOWN and the other are NEGATIVE , add to fringe\n if (c.getNumUnknownLiterals() == 1 && c.getNumOfLiterals() - c.getNumUnknownLiterals() == c.getNumOfNegative()) {\n fringe.push(c);\n }\n }\n computeLabel();\n }",
"public CAS[] getCASes() throws SessionQueryException\n {\n CAS[] cases = null;\n\n ComponentStruct[] components = getCASComponents();\n\n if(components != null)\n {\n cases = new CAS[components.length];\n\n for(int i = 0; i < components.length; i++)\n {\n cases[i] = buildCASComponent(components[i]);\n }\n\n Arrays.sort(cases, getNameComparator());\n }\n else\n {\n cases = new CAS[0];\n }\n\n return cases;\n }",
"public final void catchall_directive() throws RecognitionException {\n Label from = null;\n Label to = null;\n Label using = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:544:3: ( ^( I_CATCHALL from= label_ref to= label_ref using= label_ref ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:544:5: ^( I_CATCHALL from= label_ref to= label_ref using= label_ref )\n {\n match(input, I_CATCHALL, FOLLOW_I_CATCHALL_in_catchall_directive1362);\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_label_ref_in_catchall_directive1366);\n from = label_ref();\n state._fsp--;\n\n pushFollow(FOLLOW_label_ref_in_catchall_directive1370);\n to = label_ref();\n state._fsp--;\n\n pushFollow(FOLLOW_label_ref_in_catchall_directive1374);\n using = label_ref();\n state._fsp--;\n\n match(input, Token.UP, null);\n\n\n method_stack.peek().methodBuilder.addCatch(from, to, using);\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n }",
"java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList();",
"java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity> getConstraintsList();",
"@Override\n public Void visit(CatchClause nd, SuccessorInfo i) {\n if (nd.hasGuard()) {\n // if so, the guard may fail and execution might continue with the next\n // catch clause (if any)\n writeSuccessor(nd, (Node)nd.getParam());\n visitSequence(\n nd.getParam(), nd.getGuard(), union(First.of(nd.getBody()), i.getSuccessors(false)));\n visitSequence(nd.getBody(), i.getSuccessors(true));\n } else {\n // unguarded catch clauses always execute their body\n if (nd.getParam() != null) {\n writeSuccessor(nd, (Node)nd.getParam());\n visitSequence(nd.getParam(), nd.getBody(), i.getAllSuccessors());\n } else {\n writeSuccessor(nd, First.of(nd.getBody()));\n visitSequence(nd.getBody(), i.getAllSuccessors());\n }\n }\n return null;\n }",
"List<? extends Rule> getRules();",
"public Formula addClause(Clause c) {\n\n\t\tFormula f2;\n\t\tf2=new Formula(c,this.clauses);\n\t\treturn f2;\n\t}",
"public YangString getCsgListValue() throws JNCException {\n return (YangString)getValue(\"csg-list\");\n }",
"@Override\n\tpublic Void visit(ClauseLoop clause, Void ctx) {\n\t\treturn null;\n\t}",
"public List<Expression> getSubExpressions();",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<BodyDecl> getBodyElelemtList() {\n return (List<BodyDecl>)getChild(2);\n }",
"public static ArrayList<String> getTokenList(String cyp, boolean DEBUG_PRINT) {\n CypherLexer lexer = new CypherLexer(new ANTLRInputStream(cyp));\n\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n tokens.fill();\n CypherParser parser = new CypherParser(tokens);\n\n // dangerous - comment out if something is going wrong.\n parser.removeErrorListeners();\n\n ParseTree tree = parser.cypher();\n ParseTreeWalker walker = new ParseTreeWalker();\n\n cypherWalker = null;\n cypherWalker = new CypherWalker();\n walker.walk(cypherWalker, tree);\n\n if (DEBUG_PRINT) cypherWalker.printInformation();\n\n ArrayList<String> tokenList = new ArrayList<>();\n\n for (Object t : tokens.getTokens()) {\n CommonToken tok = (CommonToken) t;\n String s = tok.getText().toLowerCase();\n\n // exclude some tokens from the list of tokens. This includes the EOF pointer,\n // semi-colons, and alias artifacts.\n if (!\" \".equals(s) && !\"<eof>\".equals(s) && !\";\".equals(s) && !\"as\".equals(s) &&\n !cypherWalker.getAlias().contains(s)) {\n tokenList.add(s);\n }\n }\n return tokenList;\n }",
"protected List<String> getFormals(Exp e) {\n List<String> ret = new ArrayList<String>();\n\n if (e == null) return ret;\n\n if (!e.isFunction()) return ret;\n\n Exp fmls = e.getChild(1);\n assert fmls.is(JSExp.PARAM_LIST);\n if (fmls.getChildCount() == 0) return ret;\n\n Exp cur = e.getChild(1).getFirstChild();\n while (cur != null) {\n ret.add(cur.toCode());\n cur = cur.getNext();\n }\n\n return ret;\n }",
"public ArrayList<ASTNode> getVariables(ASTNode exp) {\n HashSet<ASTNode> tmp=new HashSet<ASTNode>();\n getVariablesInner(exp, tmp);\n return new ArrayList<ASTNode>(tmp);\n }",
"@Override\n public List<String> catchFaults(){\n List<String> errors = new ArrayList<>();\n severityLevels.forEach(level -> {\n if(level.equals(\"ERROR\")){\n errors.add(level);\n }\n });\n return errors;\n }",
"public ArrayList < TypeSubstitution > getSubstitution ( ) ;",
"public java.util.List<phaseI.Hdfs.BlockLocations> getBlockLocationsList() {\n if (blockLocationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(blockLocations_);\n } else {\n return blockLocationsBuilder_.getMessageList();\n }\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<BodyDecl> getBodyDeclListNoTransform() {\n return (List<BodyDecl>)getChildNoTransform(1);\n }",
"@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }",
"public java.util.List<Path> getSourcePathList() {\n if (sourcePathBuilder_ == null) {\n return java.util.Collections.unmodifiableList(sourcePath_);\n } else {\n return sourcePathBuilder_.getMessageList();\n }\n }",
"public String[] getPatternsAntExc() {\n return this.patternsAntExc;\n }",
"public List<ICase> getCases() {\n return allCases;\n }",
"public ImmutableList<ErrorCase> getAllErrors() {\n // Relevant error cases are precisely the concrete subclasses of EppException.\n return getConcreteSubclassesStream(FlowDocumentation.EXCEPTION_CLASS_NAME)\n .map(\n typeElement ->\n new ErrorCase(\n typeElement,\n sourceRoot.getDocTrees().getDocCommentTree(typeElement),\n sourceRoot.getTypeUtils()))\n .collect(toImmutableList());\n }",
"@Nonnull\n public List<C> getConstituents() {\n return constituents;\n }",
"public List<Expr> getExprs() {\n return getExprList();\n }",
"public CachetIncidentList getIncidents() {\n throw new RuntimeException(\"Method not implemented.\");\n }",
"@Override\n public Void visitClause(GraafvisParser.ClauseContext ctx) {\n /* Arrived at a new clause, clear variables set */\n variables.clear();\n /* Visit antecedent and consequence */\n return visitChildren(ctx);\n }",
"public List<StackTraceElement> getStackTraceLines() {\n return this.stackTraceLines;\n }",
"@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }",
"public java.util.List<? extends phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockLocationsOrBuilderList() {\n if (blockLocationsBuilder_ != null) {\n return blockLocationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(blockLocations_);\n }\n }",
"java.util.List<? extends com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>\n getConstraintsOrBuilderList();",
"public FailureCauseList() {\n failureCauses = new HashMap<String, FailureCause>();\n }",
"public List<Expr> getExprListNoTransform() {\n return (List<Expr>) getChildNoTransform(1);\n }",
"@Override\n public StackTraceElement[] getStackTrace() {\n return getCause() == null ? super.getStackTrace() : getCause().getStackTrace();\n }",
"public List<BodyDecl> getBodyDecls() {\n return getBodyDeclList();\n }",
"public FSArray getConditions() {\n if (DebugRuleElementMatch_Type.featOkTst && ((DebugRuleElementMatch_Type)jcasType).casFeat_conditions == null)\n jcasType.jcas.throwFeatMissing(\"conditions\", \"org.apache.uima.ruta.type.DebugRuleElementMatch\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((DebugRuleElementMatch_Type)jcasType).casFeatCode_conditions)));}",
"public String[] getPatternsExc() {\n return getPatternType().equals(\"Ant\") ? this.patternsAntExc : this.patternsRegExExc;\n }",
"public final void entryRuleForClause() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2205:1: ( ruleForClause EOF )\r\n // InternalGo.g:2206:1: ruleForClause EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getForClauseRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleForClause();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getForClauseRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"@Override\n\tpublic Clause getConstraints() {\n\t\treturn null;\n\t}",
"public List<String> getScopesList() {\n\t\tString scopes = getScopes();\n\t\tif (scopes == null)\n\t\t\treturn new ArrayList<String>();\n\t\treturn Arrays.asList(scopes.split(SCOPE_DELIMITER));\n\t}",
"public List<AttackTactic> tactics() {\n return this.innerProperties() == null ? null : this.innerProperties().tactics();\n }",
"public List<Declaration> elseDeclarations() {\r\n\t\treturn this.elseDeclarations;\r\n\t}",
"public String[] getCorrectionList(String misspell);",
"public com.vsp.bl.product.dto.cob.v002.COBExceptionRule[] getCobExceptionRules() {\n return cobExceptionRules;\n }",
"private ArrayList<String> findChampions() {\n\t\tString searchContents = search.getText();\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String c : CHAMPIONLIST) {\n\t\t\tif (c.toLowerCase().contains(searchContents.toLowerCase())) {\n\t\t\t\tresult.add(c);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"List<T> getRuleTargets();"
] | [
"0.7817253",
"0.77613366",
"0.65446",
"0.65096855",
"0.6445125",
"0.62635815",
"0.5859965",
"0.5631183",
"0.54432434",
"0.5260354",
"0.5210271",
"0.50532925",
"0.50382024",
"0.4970169",
"0.4970169",
"0.49584255",
"0.4901351",
"0.48676476",
"0.47721717",
"0.47645733",
"0.47226647",
"0.46927217",
"0.46692997",
"0.4649248",
"0.46434882",
"0.46255982",
"0.46186727",
"0.4583603",
"0.45770857",
"0.45741954",
"0.45559973",
"0.45533928",
"0.45489046",
"0.45301735",
"0.4522719",
"0.45112923",
"0.45050412",
"0.4497993",
"0.4469903",
"0.44328633",
"0.442674",
"0.43991747",
"0.4380767",
"0.43592006",
"0.4336568",
"0.43190962",
"0.4296055",
"0.42949474",
"0.42766395",
"0.4269767",
"0.4269643",
"0.42549884",
"0.4252437",
"0.42451438",
"0.4229971",
"0.42299357",
"0.42285556",
"0.4222153",
"0.42039892",
"0.42034715",
"0.41885808",
"0.41879147",
"0.41835028",
"0.41659406",
"0.41555247",
"0.41500372",
"0.41289124",
"0.41264224",
"0.40965578",
"0.40890625",
"0.40797088",
"0.40734348",
"0.40505219",
"0.4047714",
"0.40474975",
"0.40466613",
"0.4045304",
"0.40431446",
"0.40292013",
"0.4027588",
"0.40242168",
"0.4023053",
"0.40163583",
"0.4013132",
"0.40077898",
"0.40006125",
"0.39782518",
"0.3973868",
"0.3968707",
"0.39635268",
"0.39570415",
"0.3951829",
"0.39441636",
"0.39437878",
"0.3941336",
"0.393671",
"0.39289802",
"0.39191452",
"0.39182568",
"0.3917771"
] | 0.69921917 | 2 |
Replaces the (optional) Finally child. | public void setFinally(Block node) {
getFinallyOpt().setChild(node, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void doFinally() throws Exception\r\n\t{\n\t\t\r\n\t}",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10719:1: ( ( ( 'finally' ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10720:1: ( ( 'finally' ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10720:1: ( ( 'finally' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10721:1: ( 'finally' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10722:1: ( 'finally' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10723:2: 'finally'\n {\n match(input,61,FOLLOW_61_in_rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl21537); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10782:1: ( ( 'finally' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10783:1: ( 'finally' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10783:1: ( 'finally' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10784:1: 'finally'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \n }\n match(input,61,FOLLOW_61_in_rule__XTryCatchFinallyExpression__Group_3_1__0__Impl21661); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15195:1: ( ( ( 'finally' ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15196:1: ( ( 'finally' ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15196:1: ( ( 'finally' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15197:1: ( 'finally' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15198:1: ( 'finally' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15199:2: 'finally'\r\n {\r\n match(input,123,FOLLOW_123_in_rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl30742); if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14563:1: ( ( ( 'finally' ) ) )\r\n // InternalDroneScript.g:14564:1: ( ( 'finally' ) )\r\n {\r\n // InternalDroneScript.g:14564:1: ( ( 'finally' ) )\r\n // InternalDroneScript.g:14565:2: ( 'finally' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \r\n }\r\n // InternalDroneScript.g:14566:2: ( 'finally' )\r\n // InternalDroneScript.g:14566:3: 'finally'\r\n {\r\n match(input,90,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"void doFinally();",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14617:1: ( ( 'finally' ) )\r\n // InternalDroneScript.g:14618:1: ( 'finally' )\r\n {\r\n // InternalDroneScript.g:14618:1: ( 'finally' )\r\n // InternalDroneScript.g:14619:2: 'finally'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \r\n }\r\n match(input,90,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15258:1: ( ( 'finally' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15259:1: ( 'finally' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15259:1: ( 'finally' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15260:1: 'finally'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \r\n }\r\n match(input,123,FOLLOW_123_in_rule__XTryCatchFinallyExpression__Group_3_1__0__Impl30866); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"Block getFinallyBlock();",
"public static void killFinallyWithSystemExit(){\n try {\n System.exit(42);\n } finally {\n System.err.println(\"finally\");\n }\n }",
"public static void moreCodeAfterFinallyException(){\n try {\n System.err.println(\"try\");\n if (true) {throw new RuntimeException();}\n } finally {\n System.err.println(\"finally\");\n }\n System.err.println(\"more\");\n }",
"public static void finallyAfterException(){\n try {\n throw new RuntimeException();\n } finally {\n System.err.println(\"finally\");\n }\n }",
"public static void finallyAfterReturn(){\n try {\n return;\n } finally {\n System.err.println(\"finally\");\n }\n }",
"public final void entryRuleXTryCatchFinallyExpression() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1480:1: ( ruleXTryCatchFinallyExpression EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1481:1: ruleXTryCatchFinallyExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionRule()); \n }\n pushFollow(FOLLOW_ruleXTryCatchFinallyExpression_in_entryRuleXTryCatchFinallyExpression3093);\n ruleXTryCatchFinallyExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXTryCatchFinallyExpression3100); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final void finallyClause() throws RecognitionException {\n\t\ttry {\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:331:2: ( ^( 'finally' ACTION ) )\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:331:7: ^( 'finally' ACTION )\n\t\t\t{\n\t\t\tmatch(input,FINALLY,FOLLOW_FINALLY_in_finallyClause656); if (state.failed) return;\n\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return;\n\t\t\tmatch(input,ACTION,FOLLOW_ACTION_in_finallyClause658); if (state.failed) return;\n\t\t\tmatch(input, Token.UP, null); if (state.failed) return;\n\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}",
"public final ANTLRv3Parser.finallyClause_return finallyClause() throws RecognitionException {\r\n ANTLRv3Parser.finallyClause_return retval = new ANTLRv3Parser.finallyClause_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token string_literal92=null;\r\n Token ACTION93=null;\r\n\r\n CommonTree string_literal92_tree=null;\r\n CommonTree ACTION93_tree=null;\r\n RewriteRuleTokenStream stream_82=new RewriteRuleTokenStream(adaptor,\"token 82\");\r\n RewriteRuleTokenStream stream_ACTION=new RewriteRuleTokenStream(adaptor,\"token ACTION\");\r\n\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:230:5: ( 'finally' ACTION -> ^( 'finally' ACTION ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:230:10: 'finally' ACTION\r\n {\r\n string_literal92=(Token)match(input,82,FOLLOW_82_in_finallyClause1472); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_82.add(string_literal92);\r\n\r\n\r\n ACTION93=(Token)match(input,ACTION,FOLLOW_ACTION_in_finallyClause1474); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_ACTION.add(ACTION93);\r\n\r\n\r\n // AST REWRITE\r\n // elements: ACTION, 82\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 230:27: -> ^( 'finally' ACTION )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:230:30: ^( 'finally' ACTION )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n stream_82.nextNode()\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, \r\n stream_ACTION.nextNode()\r\n );\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }",
"public final void entryRuleXTryCatchFinallyExpression() throws RecognitionException {\r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1729:1: ( ruleXTryCatchFinallyExpression EOF )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1730:1: ruleXTryCatchFinallyExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleXTryCatchFinallyExpression_in_entryRuleXTryCatchFinallyExpression3631);\r\n ruleXTryCatchFinallyExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleXTryCatchFinallyExpression3638); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public static void finallyAfterNoException(){\n try {\n System.err.println(\"try\");\n } finally {\n System.err.println(\"finally\");\n }\n }",
"public final void ruleXTryCatchFinallyExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1492:2: ( ( ( rule__XTryCatchFinallyExpression__Group__0 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1493:1: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1493:1: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1494:1: ( rule__XTryCatchFinallyExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1495:1: ( rule__XTryCatchFinallyExpression__Group__0 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1495:2: rule__XTryCatchFinallyExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__0_in_ruleXTryCatchFinallyExpression3126);\n rule__XTryCatchFinallyExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10614:1: ( ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10615:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10615:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10616:1: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10617:1: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10617:2: rule__XTryCatchFinallyExpression__Alternatives_3\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Alternatives_3_in_rule__XTryCatchFinallyExpression__Group__3__Impl21328);\n rule__XTryCatchFinallyExpression__Alternatives_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void entryRuleXTryCatchFinallyExpression() throws RecognitionException {\r\n try {\r\n // InternalDroneScript.g:1855:1: ( ruleXTryCatchFinallyExpression EOF )\r\n // InternalDroneScript.g:1856:1: ruleXTryCatchFinallyExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleXTryCatchFinallyExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10555:1: ( ( 'try' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10556:1: ( 'try' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10556:1: ( 'try' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10557:1: 'try'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \n }\n match(input,60,FOLLOW_60_in_rule__XTryCatchFinallyExpression__Group__1__Impl21210); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public static void killFinallyWithHalt(){\n try {\n Runtime.getRuntime().halt(42);\n } finally {\n System.err.println(\"finally\");\n }\n }",
"public final void rule__XTryCatchFinallyExpression__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14463:1: ( rule__XTryCatchFinallyExpression__Group__3__Impl )\r\n // InternalDroneScript.g:14464:2: rule__XTryCatchFinallyExpression__Group__3__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15090:1: ( ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15091:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15091:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15092:1: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15093:1: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15093:2: rule__XTryCatchFinallyExpression__Alternatives_3\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Alternatives_3_in_rule__XTryCatchFinallyExpression__Group__3__Impl30533);\r\n rule__XTryCatchFinallyExpression__Alternatives_3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10603:1: ( rule__XTryCatchFinallyExpression__Group__3__Impl )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10604:2: rule__XTryCatchFinallyExpression__Group__3__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__3__Impl_in_rule__XTryCatchFinallyExpression__Group__321301);\n rule__XTryCatchFinallyExpression__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void ruleXTryCatchFinallyExpression() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1741:2: ( ( ( rule__XTryCatchFinallyExpression__Group__0 ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1742:1: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1742:1: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1743:1: ( rule__XTryCatchFinallyExpression__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1744:1: ( rule__XTryCatchFinallyExpression__Group__0 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1744:2: rule__XTryCatchFinallyExpression__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__0_in_ruleXTryCatchFinallyExpression3664);\r\n rule__XTryCatchFinallyExpression__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10574:1: ( rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10575:2: rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__2__Impl_in_rule__XTryCatchFinallyExpression__Group__221241);\n rule__XTryCatchFinallyExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__3_in_rule__XTryCatchFinallyExpression__Group__221244);\n rule__XTryCatchFinallyExpression__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10524:1: ( ( () ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10525:1: ( () )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10525:1: ( () )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10526:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10527:1: ()\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10529:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14578:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl )\r\n // InternalDroneScript.g:14579:2: rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14632:1: ( rule__XTryCatchFinallyExpression__Group_3_1__1__Impl )\r\n // InternalDroneScript.g:14633:2: rule__XTryCatchFinallyExpression__Group_3_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group_3_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10801:1: ( rule__XTryCatchFinallyExpression__Group_3_1__1__Impl )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10802:2: rule__XTryCatchFinallyExpression__Group_3_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_1__121692);\n rule__XTryCatchFinallyExpression__Group_3_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14524:1: ( rule__XTryCatchFinallyExpression__Group_3_0__1__Impl )\r\n // InternalDroneScript.g:14525:2: rule__XTryCatchFinallyExpression__Group_3_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group_3_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10738:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10739:2: rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0_1__121569);\n rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15079:1: ( rule__XTryCatchFinallyExpression__Group__3__Impl )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15080:2: rule__XTryCatchFinallyExpression__Group__3__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__3__Impl_in_rule__XTryCatchFinallyExpression__Group__330506);\r\n rule__XTryCatchFinallyExpression__Group__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Alternatives_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2378:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) ) | ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) ) )\n int alt21=2;\n int LA21_0 = input.LA(1);\n\n if ( (LA21_0==62) ) {\n alt21=1;\n }\n else if ( (LA21_0==61) ) {\n alt21=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 21, 0, input);\n\n throw nvae;\n }\n switch (alt21) {\n case 1 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2379:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2379:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2380:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2381:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2381:2: rule__XTryCatchFinallyExpression__Group_3_0__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__0_in_rule__XTryCatchFinallyExpression__Alternatives_35131);\n rule__XTryCatchFinallyExpression__Group_3_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2385:6: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2385:6: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2386:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2387:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2387:2: rule__XTryCatchFinallyExpression__Group_3_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__0_in_rule__XTryCatchFinallyExpression__Alternatives_35149);\n rule__XTryCatchFinallyExpression__Group_3_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10675:1: ( rule__XTryCatchFinallyExpression__Group_3_0__1__Impl )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10676:2: rule__XTryCatchFinallyExpression__Group_3_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0__121443);\n rule__XTryCatchFinallyExpression__Group_3_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15277:1: ( rule__XTryCatchFinallyExpression__Group_3_1__1__Impl )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15278:2: rule__XTryCatchFinallyExpression__Group_3_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_1__130897);\r\n rule__XTryCatchFinallyExpression__Group_3_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14436:1: ( rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3 )\r\n // InternalDroneScript.g:14437:2: rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3\r\n {\r\n pushFollow(FOLLOW_102);\r\n rule__XTryCatchFinallyExpression__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void ruleXTryCatchFinallyExpression() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:1867:2: ( ( ( rule__XTryCatchFinallyExpression__Group__0 ) ) )\r\n // InternalDroneScript.g:1868:2: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\r\n {\r\n // InternalDroneScript.g:1868:2: ( ( rule__XTryCatchFinallyExpression__Group__0 ) )\r\n // InternalDroneScript.g:1869:3: ( rule__XTryCatchFinallyExpression__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \r\n }\r\n // InternalDroneScript.g:1870:3: ( rule__XTryCatchFinallyExpression__Group__0 )\r\n // InternalDroneScript.g:1870:4: rule__XTryCatchFinallyExpression__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10749:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10750:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10750:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10751:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10752:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10752:2: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1_in_rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl21596);\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15031:1: ( ( 'try' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15032:1: ( 'try' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15032:1: ( 'try' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15033:1: 'try'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \r\n }\r\n match(input,122,FOLLOW_122_in_rule__XTryCatchFinallyExpression__Group__1__Impl30415); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10812:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10813:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10813:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10814:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10815:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10815:2: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1_in_rule__XTryCatchFinallyExpression__Group_3_1__1__Impl21719);\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15214:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15215:2: rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0_1__130774);\r\n rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10770:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10771:2: rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_1__021630);\n rule__XTryCatchFinallyExpression__Group_3_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__1_in_rule__XTryCatchFinallyExpression__Group_3_1__021633);\n rule__XTryCatchFinallyExpression__Group_3_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10707:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10708:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0_1__021505);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__1_in_rule__XTryCatchFinallyExpression__Group_3_0_1__021508);\n rule__XTryCatchFinallyExpression__Group_3_0_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15151:1: ( rule__XTryCatchFinallyExpression__Group_3_0__1__Impl )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15152:2: rule__XTryCatchFinallyExpression__Group_3_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__1__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0__130648);\r\n rule__XTryCatchFinallyExpression__Group_3_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10512:1: ( rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10513:2: rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__0__Impl_in_rule__XTryCatchFinallyExpression__Group__021118);\n rule__XTryCatchFinallyExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__1_in_rule__XTryCatchFinallyExpression__Group__021121);\n rule__XTryCatchFinallyExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public static void main(String[] args) {\n System.out.println(\"finally\");\n\n\n\n }",
"public final void rule__XTryCatchFinallyExpression__Group__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14474:1: ( ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) ) )\r\n // InternalDroneScript.g:14475:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\r\n {\r\n // InternalDroneScript.g:14475:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) )\r\n // InternalDroneScript.g:14476:2: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \r\n }\r\n // InternalDroneScript.g:14477:2: ( rule__XTryCatchFinallyExpression__Alternatives_3 )\r\n // InternalDroneScript.g:14477:3: rule__XTryCatchFinallyExpression__Alternatives_3\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Alternatives_3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"@Override\n public Void visit(TryStatement node, StatementVisitor mv) {\n \n BlockStatement tryBlock = node.getTryBlock();\n CatchNode catchNode = node.getCatchNode();\n BlockStatement finallyBlock = node.getFinallyBlock();\n \n if (catchNode != null && finallyBlock != null) {\n Label startCatch = new Label();\n Label endCatch = new Label(), handlerCatch = new Label();\n Label endFinally = new Label(), handlerFinally = new Label();\n Label noException = new Label();\n Label exceptionHandled = new Label();\n \n mv.enterFinallyScoped();\n \n int savedEnv = saveEnvironment(mv);\n mv.mark(startCatch);\n mv.enterWrapped();\n tryBlock.accept(this, mv);\n mv.exitWrapped();\n mv.nop();\n mv.mark(endCatch);\n mv.goTo(noException);\n \n mv.mark(handlerCatch);\n restoreEnvironment(mv, savedEnv);\n mv.enterWrapped();\n catchNode.accept(this, mv);\n mv.exitWrapped();\n mv.mark(endFinally);\n \n // restore temp abrupt targets\n List<Label> tempLabels = mv.exitFinallyScoped();\n \n // various finally blocks\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(exceptionHandled);\n \n mv.mark(handlerFinally);\n int var = mv.newVariable(Types.Throwable);\n mv.store(var, Types.Throwable);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.load(var, Types.Throwable);\n mv.athrow();\n mv.freeVariable(var);\n \n mv.mark(noException);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(exceptionHandled);\n \n // abrupt completion (return, break, continue) finally blocks\n if (tempLabels != null) {\n assert tempLabels.size() % 2 == 0;\n for (int i = 0, size = tempLabels.size(); i < size; i += 2) {\n Label actual = tempLabels.get(i);\n Label temp = tempLabels.get(i + 1);\n \n mv.mark(temp);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(actual);\n }\n }\n \n mv.mark(exceptionHandled);\n \n mv.freeVariable(savedEnv);\n mv.visitTryCatchBlock(startCatch, endCatch, handlerCatch,\n Types.ScriptException.getInternalName());\n mv.visitTryCatchBlock(startCatch, endFinally, handlerFinally,\n Types.ScriptException.getInternalName());\n } else if (catchNode != null) {\n Label startCatch = new Label(), endCatch = new Label(), handlerCatch = new Label();\n Label exceptionHandled = new Label();\n \n int savedEnv = saveEnvironment(mv);\n mv.mark(startCatch);\n mv.enterWrapped();\n tryBlock.accept(this, mv);\n mv.exitWrapped();\n mv.nop();\n mv.mark(endCatch);\n mv.goTo(exceptionHandled);\n mv.mark(handlerCatch);\n restoreEnvironment(mv, savedEnv);\n catchNode.accept(this, mv);\n mv.mark(exceptionHandled);\n \n mv.freeVariable(savedEnv);\n mv.visitTryCatchBlock(startCatch, endCatch, handlerCatch,\n Types.ScriptException.getInternalName());\n } else {\n assert finallyBlock != null;\n Label startFinally = new Label(), endFinally = new Label(), handlerFinally = new Label();\n Label noException = new Label();\n Label exceptionHandled = new Label();\n \n mv.enterFinallyScoped();\n \n int savedEnv = saveEnvironment(mv);\n mv.mark(startFinally);\n mv.enterWrapped();\n tryBlock.accept(this, mv);\n mv.exitWrapped();\n mv.nop();\n mv.mark(endFinally);\n mv.goTo(noException);\n \n // restore temp abrupt targets\n List<Label> tempLabels = mv.exitFinallyScoped();\n \n mv.mark(handlerFinally);\n int var = mv.newVariable(Types.Throwable);\n mv.store(var, Types.Throwable);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.load(var, Types.Throwable);\n mv.athrow();\n mv.freeVariable(var);\n \n mv.mark(noException);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(exceptionHandled);\n \n // abrupt completion (return, break, continue) finally blocks\n if (tempLabels != null) {\n assert tempLabels.size() % 2 == 0;\n for (int i = 0, size = tempLabels.size(); i < size; i += 2) {\n Label actual = tempLabels.get(i);\n Label temp = tempLabels.get(i + 1);\n \n mv.mark(temp);\n restoreEnvironment(mv, savedEnv);\n mv.enterFinally();\n finallyBlock.accept(this, mv);\n mv.exitFinally();\n mv.goTo(actual);\n }\n }\n \n mv.mark(exceptionHandled);\n \n mv.freeVariable(savedEnv);\n mv.visitTryCatchBlock(startFinally, endFinally, handlerFinally,\n Types.ScriptException.getInternalName());\n }\n \n return null;\n }",
"public final void rule__XTryCatchFinallyExpression__Alternatives_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3000:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) ) | ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) ) )\r\n int alt29=2;\r\n int LA29_0 = input.LA(1);\r\n\r\n if ( (LA29_0==124) ) {\r\n alt29=1;\r\n }\r\n else if ( (LA29_0==123) ) {\r\n alt29=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 29, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt29) {\r\n case 1 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3001:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3001:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3002:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3003:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3003:2: rule__XTryCatchFinallyExpression__Group_3_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__0_in_rule__XTryCatchFinallyExpression__Alternatives_36507);\r\n rule__XTryCatchFinallyExpression__Group_3_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3007:6: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3007:6: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3008:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3009:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3009:2: rule__XTryCatchFinallyExpression__Group_3_1__0\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__0_in_rule__XTryCatchFinallyExpression__Alternatives_36525);\r\n rule__XTryCatchFinallyExpression__Group_3_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10639:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10640:2: rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0__021366);\n rule__XTryCatchFinallyExpression__Group_3_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__1_in_rule__XTryCatchFinallyExpression__Group_3_0__021369);\n rule__XTryCatchFinallyExpression__Group_3_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15050:1: ( rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15051:2: rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__2__Impl_in_rule__XTryCatchFinallyExpression__Group__230446);\r\n rule__XTryCatchFinallyExpression__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__3_in_rule__XTryCatchFinallyExpression__Group__230449);\r\n rule__XTryCatchFinallyExpression__Group__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public static void throwNewExceptionWithFinally(){\n try {\n throw new Error();\n } finally {\n throw new RuntimeException();\n }\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14490:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1 )\r\n // InternalDroneScript.g:14491:2: rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1\r\n {\r\n pushFollow(FOLLOW_103);\r\n rule__XTryCatchFinallyExpression__Group_3_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group_3_0__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"private void statementFinally(Statement s) {\r\n\t\tif (s != null) { try {\r\n\t\t\ts.close();\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\t}\r\n\t}",
"public final void rule__XTryCatchFinallyExpression__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14421:1: ( ( 'try' ) )\r\n // InternalDroneScript.g:14422:1: ( 'try' )\r\n {\r\n // InternalDroneScript.g:14422:1: ( 'try' )\r\n // InternalDroneScript.g:14423:2: 'try'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \r\n }\r\n match(input,89,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"private void handleBlocksTryCatchFinally(DetailAST aAstReturn) {\n\n\t\tif (aAstReturn != null) {\n\n\t\t\tif (aAstReturn.getType() == TokenTypes.LITERAL_RETURN) {\n\n\t\t\t\tlog(aAstReturn.getLineNo());\n\t\t\t}\n\t\t}\n\t}",
"public final void rule__XTryCatchFinallyExpression__Alternatives_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:3360:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) ) | ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) ) )\r\n int alt36=2;\r\n int LA36_0 = input.LA(1);\r\n\r\n if ( (LA36_0==92) ) {\r\n alt36=1;\r\n }\r\n else if ( (LA36_0==90) ) {\r\n alt36=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 36, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt36) {\r\n case 1 :\r\n // InternalDroneScript.g:3361:2: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\r\n {\r\n // InternalDroneScript.g:3361:2: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) )\r\n // InternalDroneScript.g:3362:3: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \r\n }\r\n // InternalDroneScript.g:3363:3: ( rule__XTryCatchFinallyExpression__Group_3_0__0 )\r\n // InternalDroneScript.g:3363:4: rule__XTryCatchFinallyExpression__Group_3_0__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group_3_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalDroneScript.g:3367:2: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\r\n {\r\n // InternalDroneScript.g:3367:2: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) )\r\n // InternalDroneScript.g:3368:3: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \r\n }\r\n // InternalDroneScript.g:3369:3: ( rule__XTryCatchFinallyExpression__Group_3_1__0 )\r\n // InternalDroneScript.g:3369:4: rule__XTryCatchFinallyExpression__Group_3_1__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group_3_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10543:1: ( rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10544:2: rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__1__Impl_in_rule__XTryCatchFinallyExpression__Group__121179);\n rule__XTryCatchFinallyExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__2_in_rule__XTryCatchFinallyExpression__Group__121182);\n rule__XTryCatchFinallyExpression__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14382:1: ( rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1 )\r\n // InternalDroneScript.g:14383:2: rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1\r\n {\r\n pushFollow(FOLLOW_101);\r\n rule__XTryCatchFinallyExpression__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14551:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1 )\r\n // InternalDroneScript.g:14552:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1\r\n {\r\n pushFollow(FOLLOW_20);\r\n rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group_3_0_1__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15000:1: ( ( () ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15001:1: ( () )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15001:1: ( () )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15002:1: ()\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15003:1: ()\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15005:1: \r\n {\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15246:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15247:2: rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_1__030835);\r\n rule__XTryCatchFinallyExpression__Group_3_1__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_1__1_in_rule__XTryCatchFinallyExpression__Group_3_1__030838);\r\n rule__XTryCatchFinallyExpression__Group_3_1__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15183:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15184:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0_1__030710);\r\n rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__1_in_rule__XTryCatchFinallyExpression__Group_3_0_1__030713);\r\n rule__XTryCatchFinallyExpression__Group_3_0_1__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15115:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15116:2: rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl_in_rule__XTryCatchFinallyExpression__Group_3_0__030571);\r\n rule__XTryCatchFinallyExpression__Group_3_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0__1_in_rule__XTryCatchFinallyExpression__Group_3_0__030574);\r\n rule__XTryCatchFinallyExpression__Group_3_0__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14605:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1 )\r\n // InternalDroneScript.g:14606:2: rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1\r\n {\r\n pushFollow(FOLLOW_20);\r\n rule__XTryCatchFinallyExpression__Group_3_1__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group_3_1__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:14988:1: ( rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:14989:2: rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__0__Impl_in_rule__XTryCatchFinallyExpression__Group__030323);\r\n rule__XTryCatchFinallyExpression__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__1_in_rule__XTryCatchFinallyExpression__Group__030326);\r\n rule__XTryCatchFinallyExpression__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14394:1: ( ( () ) )\r\n // InternalDroneScript.g:14395:1: ( () )\r\n {\r\n // InternalDroneScript.g:14395:1: ( () )\r\n // InternalDroneScript.g:14396:2: ()\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \r\n }\r\n // InternalDroneScript.g:14397:2: ()\r\n // InternalDroneScript.g:14397:3: \r\n {\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public static int getNewReturnWithFinally(){\n try {\n return 0;\n } finally {\n return 1;\n }\n }",
"public final void rule__XTryCatchFinallyExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10586:1: ( ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10587:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10587:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10588:1: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10589:1: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10589:2: rule__XTryCatchFinallyExpression__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__ExpressionAssignment_2_in_rule__XTryCatchFinallyExpression__Group__2__Impl21271);\n rule__XTryCatchFinallyExpression__ExpressionAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public static TryExpression tryFinally(Expression body, Expression fault) { throw Extensions.todo(); }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14535:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? ) )\r\n // InternalDroneScript.g:14536:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\r\n {\r\n // InternalDroneScript.g:14536:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\r\n // InternalDroneScript.g:14537:2: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \r\n }\r\n // InternalDroneScript.g:14538:2: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\r\n int alt113=2;\r\n int LA113_0 = input.LA(1);\r\n\r\n if ( (LA113_0==90) ) {\r\n int LA113_1 = input.LA(2);\r\n\r\n if ( (synpred162_InternalDroneScript()) ) {\r\n alt113=1;\r\n }\r\n }\r\n switch (alt113) {\r\n case 1 :\r\n // InternalDroneScript.g:14538:3: rule__XTryCatchFinallyExpression__Group_3_0_1__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group_3_0_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15162:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15163:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15163:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15164:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15165:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\r\n int alt97=2;\r\n int LA97_0 = input.LA(1);\r\n\r\n if ( (LA97_0==123) ) {\r\n int LA97_1 = input.LA(2);\r\n\r\n if ( (synpred154_InternalFin()) ) {\r\n alt97=1;\r\n }\r\n }\r\n switch (alt97) {\r\n case 1 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15165:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0_in_rule__XTryCatchFinallyExpression__Group_3_0__1__Impl30675);\r\n rule__XTryCatchFinallyExpression__Group_3_0_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14409:1: ( rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2 )\r\n // InternalDroneScript.g:14410:2: rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2\r\n {\r\n pushFollow(FOLLOW_20);\r\n rule__XTryCatchFinallyExpression__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10686:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10687:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10687:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10688:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10689:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )?\n int alt67=2;\n int LA67_0 = input.LA(1);\n\n if ( (LA67_0==61) ) {\n int LA67_1 = input.LA(2);\n\n if ( (synpred88_InternalInstances()) ) {\n alt67=1;\n }\n }\n switch (alt67) {\n case 1 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10689:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group_3_0_1__0_in_rule__XTryCatchFinallyExpression__Group_3_0__1__Impl21470);\n rule__XTryCatchFinallyExpression__Group_3_0_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15288:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15289:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15289:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15290:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15291:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15291:2: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1_in_rule__XTryCatchFinallyExpression__Group_3_1__1__Impl30924);\r\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"protected void afterBody(final XMLOutput output) throws JellyTagException, SAXException\n\t{\t\n\t\toutput.write(\"</div>\\n\") ;\n\t}",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15225:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15226:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15226:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15227:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15228:1: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15228:2: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1_in_rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl30801);\r\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14589:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) ) )\r\n // InternalDroneScript.g:14590:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\r\n {\r\n // InternalDroneScript.g:14590:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) )\r\n // InternalDroneScript.g:14591:2: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \r\n }\r\n // InternalDroneScript.g:14592:2: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 )\r\n // InternalDroneScript.g:14592:3: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15019:1: ( rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15020:2: rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__1__Impl_in_rule__XTryCatchFinallyExpression__Group__130384);\r\n rule__XTryCatchFinallyExpression__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__Group__2_in_rule__XTryCatchFinallyExpression__Group__130387);\r\n rule__XTryCatchFinallyExpression__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15062:1: ( ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15063:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15063:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15064:1: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15065:1: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15065:2: rule__XTryCatchFinallyExpression__ExpressionAssignment_2\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__ExpressionAssignment_2_in_rule__XTryCatchFinallyExpression__Group__2__Impl30476);\r\n rule__XTryCatchFinallyExpression__ExpressionAssignment_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10651:1: ( ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10652:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10652:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10653:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10653:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10654:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10655:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10655:2: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0\n {\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0_in_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl21398);\n rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n\n }\n\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10658:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10659:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10660:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )*\n loop66:\n do {\n int alt66=2;\n int LA66_0 = input.LA(1);\n\n if ( (LA66_0==62) ) {\n int LA66_2 = input.LA(2);\n\n if ( (synpred87_InternalInstances()) ) {\n alt66=1;\n }\n\n\n }\n\n\n switch (alt66) {\n \tcase 1 :\n \t // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10660:2: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0\n \t {\n \t pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0_in_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl21410);\n \t rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop66;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \n }\n\n }\n\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14643:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) ) )\r\n // InternalDroneScript.g:14644:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\r\n {\r\n // InternalDroneScript.g:14644:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) )\r\n // InternalDroneScript.g:14645:2: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \r\n }\r\n // InternalDroneScript.g:14646:2: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 )\r\n // InternalDroneScript.g:14646:3: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public void finish() {\n System.out.println(name + \": Call explicit destroy()\");\n }",
"public void runFinally() {\n if (compareAndSet(0, 1)) {\n try {\n this.onFinally.run();\n } catch (Throwable th) {\n Exceptions.throwIfFatal(th);\n RxJavaPlugins.onError(th);\n }\n }\n }",
"protected void finish() {\n }",
"public static TryExpression tryCatchFinally(Expression body, CatchBlock[] handlers) { throw Extensions.todo(); }",
"@Override\n\tpublic void finish() {\n\t\t\n\t}",
"public final void rule__XTryCatchFinallyExpression__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:14448:1: ( ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) ) )\r\n // InternalDroneScript.g:14449:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\r\n {\r\n // InternalDroneScript.g:14449:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) )\r\n // InternalDroneScript.g:14450:2: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \r\n }\r\n // InternalDroneScript.g:14451:2: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 )\r\n // InternalDroneScript.g:14451:3: rule__XTryCatchFinallyExpression__ExpressionAssignment_2\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XTryCatchFinallyExpression__ExpressionAssignment_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void synpred162_Java_fragment() throws RecognitionException {\n // Java.g:626:11: ( catches 'finally' block )\n dbg.enterAlt(1);\n\n // Java.g:626:11: catches 'finally' block\n {\n dbg.location(626,11);\n pushFollow(FOLLOW_catches_in_synpred162_Java3464);\n catches();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(626,19);\n match(input,82,FOLLOW_82_in_synpred162_Java3466); if (state.failed) return ;\n dbg.location(626,29);\n pushFollow(FOLLOW_block_in_synpred162_Java3468);\n block();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }",
"public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13398:1: ( ( ruleXExpression ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13399:1: ( ruleXExpression )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13399:1: ( ruleXExpression )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13400:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_126923);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\n\tpublic void finish() {\n\n\t}",
"@Override\n\tpublic void finish() {\n\n\t}",
"@Override\n\tpublic void finish() {\n\n\t}",
"public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13413:1: ( ( ruleXExpression ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13414:1: ( ruleXExpression )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13414:1: ( ruleXExpression )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13415:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_126954);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"protected void dofinally(TaskResult taskResult){\n }",
"public final void rule__XTryCatchFinallyExpression__Group_3_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15127:1: ( ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15128:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15128:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15129:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15129:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15130:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15131:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15131:2: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0\r\n {\r\n pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0_in_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl30603);\r\n rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \r\n }\r\n\r\n }\r\n\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15134:1: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15135:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15136:1: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )*\r\n loop96:\r\n do {\r\n int alt96=2;\r\n int LA96_0 = input.LA(1);\r\n\r\n if ( (LA96_0==124) ) {\r\n int LA96_2 = input.LA(2);\r\n\r\n if ( (synpred153_InternalFin()) ) {\r\n alt96=1;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n switch (alt96) {\r\n \tcase 1 :\r\n \t // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15136:2: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0_in_rule__XTryCatchFinallyExpression__Group_3_0__0__Impl30615);\r\n \t rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop96;\r\n }\r\n } while (true);\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"@Override\n\tpublic void finish() {\n\t\tsuper.finish();\n\t\tSystem.exit(0);\n\t}"
] | [
"0.61879414",
"0.6172394",
"0.61551416",
"0.61250675",
"0.6113342",
"0.6105561",
"0.6094957",
"0.6061245",
"0.59908354",
"0.5982288",
"0.5954146",
"0.59241146",
"0.5922069",
"0.5901621",
"0.58538914",
"0.57905066",
"0.5764749",
"0.57234794",
"0.5722553",
"0.5669008",
"0.5668311",
"0.56415236",
"0.5628218",
"0.5611872",
"0.55809546",
"0.5559901",
"0.5558935",
"0.55513656",
"0.5539605",
"0.5537079",
"0.5524104",
"0.5523993",
"0.551036",
"0.5509762",
"0.55028653",
"0.54944265",
"0.5483922",
"0.54811776",
"0.5473119",
"0.546864",
"0.54509693",
"0.54508454",
"0.54487413",
"0.54387015",
"0.5434695",
"0.541591",
"0.5415323",
"0.54144454",
"0.53983635",
"0.539676",
"0.5392696",
"0.5388164",
"0.5385492",
"0.5384778",
"0.5348052",
"0.5337434",
"0.5324875",
"0.5323507",
"0.5322345",
"0.5321004",
"0.53082234",
"0.5296333",
"0.5292214",
"0.52752584",
"0.5255116",
"0.5252194",
"0.5234257",
"0.52066696",
"0.5197755",
"0.51973104",
"0.51937455",
"0.5187955",
"0.51825",
"0.51815283",
"0.51746345",
"0.51729697",
"0.5169164",
"0.5167248",
"0.5151314",
"0.51264817",
"0.5074337",
"0.5057279",
"0.50508446",
"0.5003101",
"0.49736595",
"0.49626863",
"0.49613446",
"0.49563333",
"0.4954409",
"0.49124354",
"0.49080524",
"0.4897111",
"0.4874997",
"0.4856577",
"0.4856577",
"0.4856577",
"0.48483074",
"0.48301506",
"0.4829172",
"0.48233786"
] | 0.6667746 | 0 |
The block of the try statement can throw an exception of a type assignable to the given type. | @SuppressWarnings({"unchecked", "cast"})
public boolean catchableException(TypeDecl type) {
Object _parameters = type;
if(catchableException_TypeDecl_values == null) catchableException_TypeDecl_values = new java.util.HashMap(4);
if(catchableException_TypeDecl_values.containsKey(_parameters)) {
return ((Boolean)catchableException_TypeDecl_values.get(_parameters)).booleanValue();
}
ASTNode$State state = state();
int num = state.boundariesCrossed;
boolean isFinal = this.is$Final();
boolean catchableException_TypeDecl_value = catchableException_compute(type);
if(isFinal && num == state().boundariesCrossed) catchableException_TypeDecl_values.put(_parameters, Boolean.valueOf(catchableException_TypeDecl_value));
return catchableException_TypeDecl_value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void exceptionsCatching( ExceptionType exceptionType );",
"public static void catchingOnlyFromTry(){\n int x =1;\n try{\n if (true){throw new RuntimeException();}\n }\n catch (RuntimeException e){\n x*=2;\n System.out.println(x);\n if (true){throw new Error();}\n }\n catch(Error err){\n x*=3;\n System.out.println(x);\n }\n x*=5;\n System.out.println(x);\n }",
"public TypeException() {\n }",
"public static TryExpression makeTry(Class type, Expression body, Expression finally_, Expression fault, Iterable<CatchBlock> handlers) { throw Extensions.todo(); }",
"@Test\n\tpublic void whenBikeTypeIsNotPresentInAvoidPlusStationsThenThrowException()\n\t\t\tthrows NoValidStationFoundException, InvalidBikeTypeException {\n\t\ttry {\n\t\t\t// There are no elec bikes in this system, so this should throw the\n\t\t\t// NoValidStationFoundException exception\n\t\t\t(new FastestPlan()).planRide(source, destination, bob, \"ELEC\", n);\n\t\t\tfail(\"NoValidStationFoundException should have been thrown\");\n\t\t} catch (NoValidStationFoundException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\ttry {\n\t\t\t// The nope bike type does not exist, so the InvalidBikeTypeException should be\n\t\t\t// thrown here because we cannot compute the bike's speed\n\t\t\t(new FastestPlan()).planRide(source, destination, bob, \"NOPE\", n);\n\t\t\tfail(\"InvalidBikeTypeException should have been thrown\");\n\t\t} catch (InvalidBikeTypeException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t}",
"Block getTryBlock();",
"public static void validateThrow(Class<?> dtoType, RuntimeException thr) {\n if (!validate(dtoType)) {\n throw thr;\n }\n }",
"protected void throwTypeError(final Object argument, final Object type,\n final Object expected, final SourceSection sourceSection,\n ExceptionSignalingNode exception) {\n CompilerDirectives.transferToInterpreter();\n\n // Create the exception node if it hasn't been already\n if (exception == null) {\n ExceptionSignalingNode exNode = ExceptionSignalingNode.createNode(\n Symbols.symbolFor(\"TypeError\"), sourceSection);\n insert(exNode);\n exception = exNode;\n }\n\n // Get the human-readable version of the source location\n int line = sourceSection.getStartLine();\n int column = sourceSection.getStartColumn();\n String[] parts = sourceSection.getSource().getURI().getPath().split(\"/\");\n String suffix = parts[parts.length - 1] + \" [\" + line + \",\" + column + \"]\";\n\n // Throw the exception\n exception.signal(suffix + \" \\\"\" + argument + \"\\\" is not a subtype of \"\n + sourceSection.getCharacters() + \", because it has the type: \\n\" + type\n + \"\\n when it was expected to have type: \\n\" + expected);\n }",
"private static void throwException() throws Exception {\n\t\tthrow new Exception();\r\n\t}",
"private void doCatch() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\twaitTilHalted();\n\n String typeToCatch = null;\n\n\t\t/* currentXXX may NOT be invalid! */\n\t\tif (!hasMoreTokens())\n\t\t{\n\t\t\terr(\"Catch requires an exception name.\");\n\t\t\treturn;\n\t\t}\n\n typeToCatch = nextToken();\n if (typeToCatch == null || typeToCatch.length() == 0)\n {\n \terr(\"Illegal argument\");\n \treturn;\n }\n\n Value type = null;\n if (typeToCatch.equals(\"*\")) //$NON-NLS-1$\n {\n \ttypeToCatch = null;\n }\n else\n {\n\t type = getSession().getGlobal(typeToCatch);\n\t if (type == null)\n\t {\n\t \terr(\"Type not found.\");\n\t \treturn;\n\t }\n\n\t String typeName = type.getTypeName();\n\t int at = typeName.indexOf('@');\n\t if (at != -1)\n\t \ttypeName = typeName.substring(0, at);\n\t if (!typeName.endsWith(\"$\"))\n\t {\n\t \terr(\"Not a type: \" + type);\n\t \treturn;\n\t }\n }\n\n CatchAction c;\n\t\ttry {\n\t\t\tc = addCatch(typeToCatch);\n\t\t} catch (NotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n \tMap<String, Object> args = new HashMap<String, Object>();\n \targs.put(\"id\", c.getId()); //$NON-NLS-1$\n \tc.getId();\n\t}",
"static void doStuff() {\n try {\n throw new Error();\n } catch (Error me) {\n throw me; // We catch but then rethrow it.\n }\n }",
"@Test\n\tpublic void whenBikeTypeIsNotPresentInShortestThenThrowException() {\n\t\ttry {\n\t\t\t// There are no elec bikes in this system, so this should throw the exception\n\t\t\t(new ShortestPlan()).planRide(source, destination, bob, \"ELEC\", n);\n\t\t\tfail(\"NoValidStationFoundException should have been thrown\");\n\t\t} catch (NoValidStationFoundException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\ttry {\n\t\t\t(new ShortestPlan()).planRide(source, destination, bob, \"NOPE\", n);\n\t\t\tfail(\"NoValidStationFoundException should have been thrown\");\n\t\t} catch (NoValidStationFoundException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\t}",
"public static <T> Try<T> narrow(final Try<? extends T> tryTypeal) {\n return (Try<T>) tryTypeal;\n }",
"public static UnaryExpression rethrow(Class type) { throw Extensions.todo(); }",
"@Test(timeout = 4000)\n public void test062() throws Throwable {\n Form form0 = new Form(\"S_AON\");\n Checkbox checkbox0 = new Checkbox(form0, \"S_AON\", \"S_AON\");\n // Undeclared exception!\n try { \n checkbox0.strong();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }",
"public static TypeReference newTryCatchReference(int tryCatchBlockIndex) {\n/* 296 */ return new TypeReference(0x42000000 | tryCatchBlockIndex << 8);\n/* */ }",
"void checked(){\n \n try {\n \n throw new CheckedException();\n } catch (CheckedException e) {\n e.printStackTrace();\n }\n\n }",
"protected int check(int type) {\n\t\tif (type < 0 || type > 127)\n\t\t\tthrow new IllegalArgumentException(\"invalid.ASTNode.type: \" + type);\n\t\treturn type;\n\t}",
"public ObjectType getExceptionType() {\n return catchType;\n }",
"protected boolean allowInExceptionThrowers() {\n return true;\n }",
"public TypeException(String msg) {\n super(msg);\n }",
"public static int catchingObjectNotReference(){\n int x=1;\n try{\n Throwable t = new Exception();\n throw t;\n }\n catch (RuntimeException re){x*=2;}\n catch(Exception e){x*=3;}\n catch(Throwable t){x*=5;}\n return x; // x==3\n }",
"public void testTransformWithInvalidElementType() throws Exception {\n try {\n instance.transform(\"invalid\", document, caller);\n fail(\"ClassCastException is excepted.\");\n } catch (ClassCastException cce) {\n // pass\n }\n }",
"void doCatch(Throwable t) throws Throwable;",
"@Test\n\tvoid testInvalidCustomerType() {\n\t\tCustomerTypeFactory customerTypeFactory = new CustomerTypeFactory();\n\t\tassertThrows(CustomerTypeException.class, () -> {\n\t\t\tcustomerTypeFactory.getCustomerType(\"gold\");\n\t });\n\t}",
"protected void typeMismatch(String line) {\n\t\tthrow new RuntimeException(\"Type mismatch error: \" + line);\n\t}",
"@Test(expected = IllegalTypeException.class)\n\tpublic void testIllegalType() throws Exception {\n\t\tnew GraphPoetFactory().parse(\"Edge=<ab,Relation,1,a,b,Yes>\");\n\t}",
"Class<? extends Exception> getExceptionType();",
"public static void throwNewExceptionWithFinally(){\n try {\n throw new Error();\n } finally {\n throw new RuntimeException();\n }\n }",
"@Override\n protected IRStatement compile_impl()\n {\n\n IRExpression exceptionValue = ExpressionTransformer.compile( _stmt().getExpression(), _cc() );\n if (JavaTypes.THROWABLE().isAssignableFrom( _stmt().getExpression().getType() ) ) {\n // It's definitely a Throwable: if it's a synthetic type like a SOAP exception type, the verifier\n // might not actually know it's a throwable, though\n if ( !getDescriptor(Throwable.class).isAssignableFrom(exceptionValue.getType())) {\n // If the IR type of the value isn't assignable to Throwable, then wrap it in a cast, since we know it will work\n // out at runtime (unless someone constructed a totally invalid type loader, in which case . . . what can you do?)\n exceptionValue = buildCast( getDescriptor(Throwable.class), exceptionValue );\n }\n return buildThrow( exceptionValue );\n } else {\n IRSymbol temp = _cc().makeAndIndexTempSymbol( getDescriptor( _stmt().getExpression().getType() ) );\n IRStatement tempAssignment = buildAssignment( temp, exceptionValue );\n\n IRExpression test = new IRInstanceOfExpression( identifier( temp ), getDescriptor( Throwable.class ) );\n IRStatement trueCase = buildThrow( checkCast( Throwable.class, identifier( temp ) ) );\n IRStatement falseCase = buildThrow( buildNewExpression( EvaluationException.class, new Class[]{String.class},\n exprList( checkCast( String.class, identifier( temp ) ) ) ) );\n IRStatement ifStatement = buildIfElse( test, trueCase, falseCase);\n\n return new IRStatementList( false, tempAssignment, ifStatement);\n }\n }",
"public ExceptionBase( ExceptionType exceptionType ) {\n\t\tsuper();\n\t\texceptionsCatching( exceptionType );\n\t}",
"@NonNull\n @Override\n public <X extends Throwable> ResultT getResult(@NonNull Class<X> exceptionType) throws X {\n if (getFinalResult() == null) {\n throw new IllegalStateException();\n }\n if (exceptionType.isInstance(getFinalResult().getError())) {\n throw exceptionType.cast(getFinalResult().getError());\n }\n Throwable t = getFinalResult().getError();\n if (t != null) {\n throw new RuntimeExecutionException(t);\n }\n return getFinalResult();\n }",
"public TypeException(String msg, Throwable ex) {\n super(msg,ex);\n }",
"OOPExpectedException expect(Class<? extends Exception> expected);",
"private static void throwAnotherExceptionWithInitCause() {\n try {\n throw new IOException();\n } catch (IOException e) {\n OurBusinessLogicException argumentException = new OurBusinessLogicException();\n argumentException.initCause(e);\n throw argumentException;\n }\n }",
"public void testInheritance() {\n assertTrue(\"ContestEligibilityValidatorException does not subclass Exception.\",\n new ContestEligibilityValidatorException() instanceof Exception);\n }",
"@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}",
"void Crash(T ex) throws T;",
"void mo57276a(Exception exc);",
"@SuppressWarnings(\"unchecked\")\n @Override\n public MultiCatch withType(@Nullable JavaType type) {\n return this;\n }",
"public static CatchBlock catch_(Class clazz, Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public static CatchBlock catch_(Class clazz, Expression expression) { throw Extensions.todo(); }",
"Throwable cause();",
"public abstract boolean catches(final State state, final CatchableInSetlXException cise);",
"@Override\n\tpublic void visitTryCatchBlock(Label start, Label end, Label handler, String type) {\n\t\tif (!classAdapter.ignoredClasses.contains(\"L\" + type + \";\") && (type != null)) {\n\t\t\tclassAdapter.dependencies.add(new Dependency(\"L\"+type+\";\", modifier, Dependency.methodBodyDependency));\n\t\t}\n\t\tmv.visitTryCatchBlock(start, end, handler, type);\n\t}",
"private void _badType(int type, Object value)\n {\n if (type < 0) {\n throw new IllegalStateException(String.format(\n \"Internal error: missing BeanDefinition for id %d (class %s)\",\n type, value.getClass().getName()));\n }\n throw new IllegalStateException(String.format(\n \"Unsupported type: %s (%s)\", type, value.getClass().getName()));\n }",
"public void throwException()\n\t{\n\t\tthrow new RuntimeException(\"Dummy RUNTIME Exception\");\n\t}",
"@Test(timeout = 4000)\n public void test166() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"F\\\"\", \"F\\\"\");\n Checkbox checkbox1 = new Checkbox(checkbox0, \"F\\\"\", \"F\\\"\");\n // Undeclared exception!\n try { \n checkbox1.body();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public void setCatchType(final ObjectType catchType) {\n this.catchType = catchType;\n }",
"public static CatchBlock catch_(ParameterExpression expression0, Expression expression1) { throw Extensions.todo(); }",
"public final void mT__87() throws RecognitionException {\n try {\n int _type = T__87;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSpeADL.g:85:7: ( 'try' )\n // InternalSpeADL.g:85:9: 'try'\n {\n match(\"try\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public static CatchBlock makeCatchBlock(Class type, ParameterExpression variable, Expression body, Expression filter) { throw Extensions.todo(); }",
"@SuppressWarnings(\"unchecked\")\n private static <E extends Throwable> void sneakyThrow0(final Throwable x) throws E {\n throw (E) x;\n }",
"@Override\n\tpublic void catching(Throwable t) {\n\n\t}",
"@Test(timeout = 4000)\n public void test256() throws Throwable {\n Form form0 = new Form(\"w\");\n FileInput fileInput0 = new FileInput(form0, \"w\", \"w\");\n // Undeclared exception!\n try { \n fileInput0.strong((Object) \"w\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"protected boolean canThrowException(JilStmt stmt, Type.Clazz exception)\r\n \t\t\tthrows ClassNotFoundException {\r\n \t\t\r\n \t\tif (types.subtype(JAVA_LANG_VIRTUALMACHINEERROR,\r\n \t\t\t\texception, loader)) {\r\n \t\t\t// must treat these exceptions very conservatively, spec JVM spec\r\n \t\t\t// dictates they can occur at any point during exceptions.\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\t// now, try to eliminate all statements which definitely cannot\r\n \t\t// throw an exception.\t\t\r\n \t\tif (stmt instanceof JilStmt.Goto || stmt instanceof JilStmt.Label\r\n \t\t\t\t|| stmt instanceof JilStmt.Nop) {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\t// Now, tackle the easier ones.\r\n \t\tif (stmt instanceof JilStmt.Lock || stmt instanceof JilStmt.Unlock) {\r\n \t\t\t// these statements can only throw null pointer exceptions.\r\n \t\t\t// Actually, can also throw IllegaMonitorStateException\r\n \t\t\treturn types.subtype(exception, JAVA_LANG_NULLPOINTEREXCEPTION,\r\n \t\t\t\t\tloader);\t\t\t\r\n \t\t}\r\n \t\t\r\n \t\tif (stmt instanceof JilStmt.Throw) {\r\n \t\t\t// this can throw null pointer exception if the argument is null.\r\n \t\t\t// can also throw IllegalMonitorStateException (see JVM spec athrow)\r\n \t\t\tJilStmt.Throw tr = (JilStmt.Throw) stmt;\r\n \t\t\treturn types.subtype(exception, tr.expr().type(), loader)\r\n \t\t\t\t\t|| types.subtype(exception, JAVA_LANG_NULLPOINTEREXCEPTION,\r\n \t\t\t\t\t\t\tloader);\r\n \t\t}\r\n \t\t\r\n \t\tArrayList<JilExpr> exprs = new ArrayList();\r\n \t\tif (stmt instanceof JilExpr.Invoke) {\r\n \t\t\t// Some possible issue with respect to throwing Errors if\r\n \t\t\t// this causes class loading. See JVM Section 2.17.5.\r\n \t\t\t//\r\n \t\t\t// Also, can throw IncompatibleClassChangeError, IllegalAccessError,\r\n \t\t\t// AbstractMethodError, UnsatisfiedLinkError.\r\n \t\t\tif (types.subtype(exception, JAVA_LANG_RUNTIMEEXCEPTION, loader)\r\n \t\t\t\t\t|| types.subtype(JAVA_LANG_RUNTIMEEXCEPTION, exception,\r\n \t\t\t\t\t\t\tloader)) {\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \r\n \t\t\t// check declared exceptions\r\n \t\t\tMethodInfo mi = (MethodInfo) stmt.attribute(MethodInfo.class);\r\n \t\t\tfor(Type.Clazz ex : mi.exceptions) {\r\n \t\t\t\tif (types.subtype(exception, ex, loader)) {\r\n \t\t\t\t\treturn true;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tJilExpr.Invoke ivk = (JilExpr.Invoke) stmt;\t\r\n \t\t\texprs.addAll(ivk.parameters());\t\t\t\r\n \t\t} else if (stmt instanceof JilExpr.New) {\r\n \t\t\tif (types.subtype(exception, JAVA_LANG_RUNTIMEEXCEPTION, loader)\r\n \t\t\t\t\t|| types.subtype(JAVA_LANG_RUNTIMEEXCEPTION, exception, loader)) {\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t\tJilExpr.New ivk = (JilExpr.New) stmt;\r\n \t\t\tif (ivk.type() instanceof Type.Array\r\n \t\t\t\t\t&& types.subtype(exception, new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\t\t\"NegativeArraySizeException\"), loader)) {\r\n \t\t\t\t// In some cases, we can certain figure out that this cannot\r\n \t\t\t\t// happen.\r\n \t\t\t\treturn true;\t\t\t\r\n \t\t\t} else if(!(ivk.type() instanceof Type.Array)) {\r\n \t\t\t\t// check declared exceptions\r\n \t\t\t\tMethodInfo mi = (MethodInfo) ivk.attribute(MethodInfo.class);\r\n \t\t\t\tfor(Type.Clazz ex : mi.exceptions) {\r\n \t\t\t\t\tif (types.subtype(exception, ex, loader)) {\r\n \t\t\t\t\t\treturn true;\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\t// Need to do something about checked exceptions. Also, if static\r\n \t\t\t// method then cannot throw NullPointException\r\n \t\t\texprs.addAll(ivk.parameters());\r\n \t\t} else if(stmt instanceof JilStmt.Return) {\r\n \t\t\tJilStmt.Return r = (JilStmt.Return) stmt;\r\n \t\t\t// can also throw IllegalMonitorStateException (see JVM spec areturn)\r\n \t\t\tif(r.expr() == null) {\r\n \t\t\t\treturn false;\r\n \t\t\t} else {\r\n \t\t\t\texprs.add(r.expr());\r\n \t\t\t}\r\n \t\t} else if(stmt instanceof JilStmt.Assign) {\r\n \t\t\tJilStmt.Assign r = (JilStmt.Assign) stmt;\r\n \t\t\tif (r.lhs() instanceof JilExpr.ArrayIndex\r\n \t\t\t\t\t&& types.subtype(exception, new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\t\t\"ArrayStoreException\"), loader)) {\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t\texprs.add(r.lhs());\r\n \t\t\texprs.add(r.rhs());\r\n \t\t} else if(stmt instanceof JilStmt.IfGoto) {\r\n \t\t\tJilStmt.IfGoto r = (JilStmt.IfGoto) stmt;\r\n \t\t\texprs.add(r.condition());\r\n \t\t} else if(stmt instanceof JilStmt.Switch) {\r\n \t\t\tJilStmt.Switch r = (JilStmt.Switch) stmt;\r\n \t\t\texprs.add(r.condition());\r\n \t\t}\r\n \t\t// Right, at this point, we have a bunch of expressions and we need to\r\n \t\t// check whether or not any of these could throw the exception in\r\n \t\t// question.\r\n \t\tfor(JilExpr e : exprs) {\r\n \t\t\tif(canThrowException(e,exception)) {\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn false;\r\n \t}",
"private void assertType(String snippet, Class<? extends Object> type) {\n try {\n Lexer lexer = new Lexer(new StringReader(snippet));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getRight().getClass() == type);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }",
"@Override\n default <T> T as(Class<T> type) {\n try { return type.cast(asObject()); }\n catch (ClassCastException ex) {\n LinkedList<Object> ascendingKeyChain = using(this).getAscendingKeyChainWithRoot();\n Object thisKey = ascendingKeyChain.pollLast();\n ascendingKeyChain.add(format(\"*%s*\", thisKey));\n throw new ClassCastException(format(\"'%s' miscast in path %s: %s. Avoid by checking \" +\n \"`if (aDynamic.is(%s.class)) ...` or using `aDynamic.maybe().as(%<s.class)`\",\n thisKey, LiteJoiner.on(ARROW).join(ascendingKeyChain), ex.getMessage(), type.getSimpleName()));\n }\n }",
"@Test(timeout = 4000)\n public void test293() throws Throwable {\n Form form0 = new Form(\"p|qV6$[lYUxn\\\"2`n%sF\");\n Submit submit0 = new Submit(form0, \"<=`.%?/-.[rY6>q\", \"p|qV6$[lYUxn\\\"2`n%sF\");\n // Undeclared exception!\n try { \n submit0.dt();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Test\n public void test071() throws Throwable {\n Submit submit0 = new Submit((Component) null, \"Col component can e added onlG to a TableBlock.\", \"Col component can e added onlG to a TableBlock.\");\n NumberInput numberInput0 = new NumberInput(submit0, \"Col component can e added onlG to a TableBlock.\", \"Col component can e added onlG to a TableBlock.\");\n // Undeclared exception!\n try {\n Component component0 = numberInput0.tt();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Test(timeout = 4000)\n public void test058() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component can be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \".*,r%\", \"Could not evaluate expression \");\n // Undeclared exception!\n try { \n checkbox0.style();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"private void rethrowIfFailed()\r\n/* 198: */ {\r\n/* 199:232 */ Throwable cause = cause();\r\n/* 200:233 */ if (cause == null) {\r\n/* 201:234 */ return;\r\n/* 202: */ }\r\n/* 203:237 */ PlatformDependent.throwException(cause);\r\n/* 204: */ }",
"public static TryExpression tryCatch(Expression body, CatchBlock[] handlers) { throw Extensions.todo(); }",
"abstract protected boolean checkType(String myType);",
"public static <A> Try<A> failure(Exception ex) {\n return new Try<>(ex, null, true);\n }",
"@Test(timeout = 4000)\n public void test087() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Object object0 = new Object();\n range0.equals(range0);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"public static void main(String[] args) throws IOException, SQLException {\n\t\t\ttry{\n\t\t\t\t\tif(args[0].equals(\"1\")){\n\t\t\t\t\t\t\tthrow new IOException(\"test\");\n\t\t\t\t\t}else if(args[0].equals(\"2\")){\n\t\t\t\t\t\t\tthrow new SQLException(\"test\");\n\t\t\t\t\t}\n\t\t\t//In releases prior to Java SE 7\n\t\t\t}catch(IOException ex){\n\t\t\t\t\tSystem.out.println(\"Exception:\" + ex);//duplicate code\n\t\t\t\t\tthrow ex;//duplicate code\n\t\t\t}catch(SQLException ex){\n\t\t\t\t\tSystem.out.println(\"Exception:\" + ex);//duplicate code\n\t\t\t\t\tthrow ex;//duplicate code\n\t\t\t}\n\t\t\t\n\t\t\ttry{\n\t\t\t\t\tif(args[0].equals(\"3\")){\n\t\t\t\t\t\t\tthrow new IOException(\"test\");\n\t\t\t\t\t}else if(args[0].equals(\"4\")){\n\t\t\t\t\t\t\tthrow new SQLException(\"test\");\n\t\t\t\t\t}\n\t\t\t//In Java SE 7 and later, eliminates the duplicated code\n\t\t\t//The catch clause specifies the types of exceptions that the block can handle, \n\t\t\t// and each exception type is separated with a vertical bar (|).\n\t\t\t//Note: The catch parameter ex is final \n\t\t\t//\t\tand therefore you cannot assign any values to it within the catch block.\n\t\t\t//Bytecode generated by compiling a catch block that handles multiple exception types \n\t\t\t// will be smaller (and thus superior) than compiling many catch blocks that handle only one exception type each.\n\t\t\t}catch(IOException | SQLException ex){\n\t\t\t\t\t//ex = new SQLException(\"\");//Compile Error: The parameter ex of a multi-catch block cannot be assigned.\n\t\t\t\t\tSystem.out.println(\"Exception:\" + ex);//eliminates the duplicated code\n\t\t\t\t\tthrow ex;\t\n\t\t\t}\t\t\t\n\t}",
"@Test\n void cannotInferType() {\n }",
"private boolean validateType(int type)\n {\n return PSSecurityProvider.isSupportedType(type);\n }",
"@Test(timeout = 4000)\n public void test116() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \":\", \".*,r%\");\n Checkbox checkbox1 = new Checkbox(checkbox0, \"mARxJH5T\", \"Could not evaluate expression \");\n // Undeclared exception!\n try { \n checkbox1.i();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"ResolvedType getSpecifiedException(int index);",
"@Test(timeout = 4000)\n public void test092() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n Submit submit0 = new Submit(xmlEntityRef0, \"%\", \"%\");\n // Undeclared exception!\n try { \n submit0.param(\"4_R]T<#2)Q?]R7Ut\", \"4_R]T<#2)Q?]R7Ut\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"protected boolean canThrowException(JilExpr expr, Type.Clazz exception)\r\n \t\t\tthrows ClassNotFoundException {\n \t\tif(expr instanceof JilExpr.Invoke || expr instanceof JilExpr.New) {\r\n \t\t\treturn canThrowException((JilStmt)expr,exception);\r\n \t\t}\r\n \t\t\r\n \t\t// Again, build up an expression list to check\r\n \t\tArrayList<JilExpr> exprs = new ArrayList();\r\n \t\t\r\n \t\tif(expr instanceof JilExpr.Cast) {\r\n \t\t\tJilExpr.Cast ec = (JilExpr.Cast) expr;\r\n \t\t\tif ((ec.type() instanceof Type.Reference || ec.type() instanceof Type.Null)\r\n \t\t\t\t\t&& types.subtype(exception, new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\t\t\"ClassCastException\"), loader)) {\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t\texprs.add(ec.expr());\r\n \t\t} else if(expr instanceof JilExpr.BinOp) {\r\n \t\t\tJilExpr.BinOp bop = (JilExpr.BinOp) expr;\r\n \t\t\tif (!(bop.type() instanceof Type.Float || bop.type() instanceof Type.Double)\r\n \t\t\t\t\t&& (bop.op() == JilExpr.BinOp.DIV || bop.op() == JilExpr.BinOp.MOD)\r\n \t\t\t\t\t&& types.subtype(exception, JAVA_LANG_ARITHMETICEXCEPTION,\r\n \t\t\t\t\t\t\tloader)) {\r\n \t\t\t\t// Curiously, divide-by-zero is only a problem for integer types.\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t\texprs.add(bop.lhs());\r\n \t\t\texprs.add(bop.rhs());\r\n \t\t} else if(expr instanceof JilExpr.UnOp) {\r\n \t\t\tJilExpr.UnOp bop = (JilExpr.UnOp) expr;\t\t\t\r\n \t\t\texprs.add(bop.expr());\t\t\t\t\r\n \t\t} else if(expr instanceof JilExpr.Deref) {\r\n \t\t\t// Some possible issue with respect to throwing Errors if this\r\n \t\t\t// instruction causes class loading. See JVM Section 2.17.5.\r\n \t\t\tJilExpr.Deref def = (JilExpr.Deref) expr;\t\t\t\r\n \t\t\tif (types.subtype(exception, JAVA_LANG_NULLPOINTEREXCEPTION, loader)) {\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t\texprs.add(def.target());\t\t\t\t\r\n \t\t} else if(expr instanceof JilExpr.Array) {\r\n \t\t\tJilExpr.Array arr = (JilExpr.Array) expr;\r\n \t\t\texprs.addAll(arr.values());\r\n \t\t} else if(expr instanceof JilExpr.ArrayIndex) {\r\n \t\t\tJilExpr.ArrayIndex ai = (JilExpr.ArrayIndex) expr;\r\n \t\t\tif (types.subtype(exception, JAVA_LANG_NULLPOINTEREXCEPTION, loader)\r\n \t\t\t\t\t|| types.subtype(exception, new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\t\t\"ArrayIndexOutOfBoundsException\"), loader)) {\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t\texprs.add(ai.target());\r\n \t\t\texprs.add(ai.index());\r\n \t\t} else if(expr instanceof JilExpr.InstanceOf) {\r\n \t\t\tJilExpr.InstanceOf iof = (JilExpr.InstanceOf) expr;\r\n \t\t\texprs.add(iof.lhs());\r\n \t\t} \r\n \r\n \t\t// Right, at this point, we have a bunch of expressions and we need to\r\n \t\t// check whether or not any of these could throw the exception in\r\n \t\t// question.\r\n \t\tfor (JilExpr e : exprs) {\r\n \t\t\tif (canThrowException(e, exception)) {\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn false;\r\n \t}",
"@Test(timeout = 4000)\n public void test333() throws Throwable {\n Form form0 = new Form(\"O>h'eF\");\n Submit submit0 = new Submit(form0, \"iT *$ci*[7{k/4v\", \"input\");\n // Undeclared exception!\n try { \n submit0.form(\"? fOYd~2\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"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 }",
"@Test(timeout = 4000)\n public void test286() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component can be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component can be added only to a TableBlock.\", \"Col component can be added only to a TableBlock.\");\n // Undeclared exception!\n try { \n checkbox0.h2();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"default void orElseThrow(Throwable t) throws Throwable {\n if (isFailure()) throw t;\n }",
"public void alertTypeHeritageIncorrect(){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"Debe elegir solo un tipo de herencia para poder continuar.\");\n alert.showAndWait();\n }",
"@Test\n public void testLoadItemsExceptions() throws Exception {\n\n boolean testFailed = false;\n\n try {\n fillInventoryFileWithTestData(VALID);\n } catch (VendingMachinePersistenceException ex) {\n }\n try {\n dao.loadItems();\n } catch (VendingMachinePersistenceException ex) {\n fail();\n }\n\n try {\n fillInventoryFileWithTestData(FORMAT);\n } catch (VendingMachinePersistenceException ex) {\n }\n try {\n testFailed = true;\n dao.loadItems();\n } catch (VendingMachinePersistenceException ex) {\n testFailed = false;\n } finally {\n if (testFailed) {\n fail();\n }\n }\n\n try {\n fillInventoryFileWithTestData(INCOMPLETE);\n } catch (VendingMachinePersistenceException ex) {\n }\n try {\n testFailed = true;\n dao.loadItems();\n } catch (VendingMachinePersistenceException ex) {\n testFailed = false;\n } finally {\n if (testFailed) {\n fail();\n }\n }\n }",
"private void throwsError() throws OBException {\n }",
"public static void throwIt(short reason) {\r\n CryptoException ce = new CryptoException(reason);\r\n throw ce;\r\n }",
"boolean supports(Exception exception);",
"void exceptionCaught(Throwable cause) throws Exception;",
"void exceptionCaught(Throwable cause) throws Exception;",
"public static GraknConceptException invalidCasting(Object concept, Class type) {\n return GraknConceptException.create(String.format(INVALID_OBJECT_TYPE,concept, type));\n }",
"public boolean isException(Class paramClass) {\n/* 162 */ if (paramClass == null) {\n/* 163 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 168 */ return (isCheckedException(paramClass) && !isRemoteException(paramClass) && isValue(paramClass));\n/* */ }",
"@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}",
"private ChannelFuture checkException(ChannelPromise promise) {\n/* 624 */ Throwable t = this.lastException;\n/* 625 */ if (t != null) {\n/* 626 */ this.lastException = null;\n/* */ \n/* 628 */ if (promise.isVoid()) {\n/* 629 */ PlatformDependent.throwException(t);\n/* */ }\n/* */ \n/* 632 */ return (ChannelFuture)promise.setFailure(t);\n/* */ } \n/* */ \n/* 635 */ return (ChannelFuture)promise.setSuccess();\n/* */ }",
"public void checkForExceptions() throws Exception {\n\t\tif (mMinimumPurity <= 0.5 || mMinimumPurity > 1.0)\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Rule Generator: Minimum Purity must be greater than 0.5 and lest then or equal to 1.0.\");\n\t}",
"@Test\n public void testPutHandlesConditionalCheckFailedExceptionCorrectly() throws Exception {\n\n doTestPutHandlesExceptionsCorrectly(true);\n }",
"@Test\n public void checkCharacterTypesRuleUnknownType() {\n final String[] original = { \"fooBAR\" };\n final String[] pass_types = { \"some_unknown_keyword\" };\n exception.expect(ConfigException.class);\n // TODO(dmikurube): Except \"Caused by\": exception.expectCause(instanceOf(JsonMappingException.class));\n // Needs to import org.hamcrest.Matchers... in addition to org.junit...\n checkCharacterTypesRuleInternal(original, original, pass_types, \"\");\n }",
"@Test(timeout = 4000)\n public void test319() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"!\", \"!\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"!\", \"!\");\n // Undeclared exception!\n try { \n checkbox0.em();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Test(timeout = 4000)\n public void test073() throws Throwable {\n Form form0 = new Form(\"Lc7/B.MJD\");\n Checkbox checkbox0 = new Checkbox(form0, \"Cannot add a form element. No surrounding form found.\", \"[rO+3\");\n // Undeclared exception!\n try { \n checkbox0.samp((Object) \"Cannot add a form element. No surrounding form found.\");\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public static UnaryExpression throw_(Expression expression, Class type) { throw Extensions.todo(); }",
"@Test(timeout = 4000)\n public void test007() throws Throwable {\n Range range0 = Range.of(4294967244L);\n Object object0 = new Object();\n range0.equals(object0);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test238() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \".*,r%\", \"Col component can be added only to a TableBlock.\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"Col component can be added only to a TableBlock.\", \"Col component can be added only to a TableBlock.\");\n // Undeclared exception!\n try { \n checkbox0.dfn();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public void checkException() {\n/* 642 */ checkException(voidPromise());\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 }",
"@Test(timeout = 4000)\n public void test115() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\", (\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Illegal column type format: , (\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }"
] | [
"0.62419355",
"0.56554335",
"0.5644783",
"0.5618997",
"0.56061643",
"0.5542572",
"0.5424232",
"0.5389735",
"0.53611565",
"0.53154427",
"0.5281258",
"0.5234458",
"0.5224581",
"0.51921296",
"0.51875836",
"0.51701164",
"0.51499236",
"0.5140949",
"0.51358694",
"0.5102165",
"0.50845414",
"0.5067455",
"0.5056028",
"0.50372785",
"0.5004729",
"0.4986616",
"0.4985088",
"0.49759564",
"0.49687546",
"0.4968375",
"0.49550524",
"0.49527523",
"0.49329847",
"0.49208724",
"0.49090382",
"0.49030018",
"0.4893705",
"0.48911878",
"0.48734528",
"0.48637313",
"0.48510057",
"0.48477995",
"0.48389012",
"0.4819427",
"0.48164946",
"0.4811934",
"0.48110506",
"0.48089597",
"0.48076287",
"0.48075318",
"0.4796376",
"0.4794841",
"0.4789955",
"0.4782918",
"0.47820583",
"0.47817406",
"0.4773262",
"0.47696865",
"0.4768777",
"0.4768189",
"0.47559088",
"0.4748871",
"0.4743622",
"0.47339085",
"0.47290972",
"0.47230285",
"0.47162366",
"0.470666",
"0.47051468",
"0.4701059",
"0.4697753",
"0.4691174",
"0.46909758",
"0.468459",
"0.46845424",
"0.4673056",
"0.46670204",
"0.46663886",
"0.46517214",
"0.46411368",
"0.4637972",
"0.46370816",
"0.46350372",
"0.46341744",
"0.46341744",
"0.46322247",
"0.4630259",
"0.4621978",
"0.46213824",
"0.4615746",
"0.4615325",
"0.46107656",
"0.4610427",
"0.46102777",
"0.46044582",
"0.46000487",
"0.4599084",
"0.45966604",
"0.45944595",
"0.45918196"
] | 0.60520756 | 1 |
TODO: this should be a Feature | public abstract Object getUnderlyingObject(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"Feature getFeature();",
"Feature getFeature();",
"@Override\n public void perish() {\n \n }",
"String getFeature();",
"String getFeature();",
"Feature createFeature();",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"interface Feature <T> {\n /**\n * @return original source of data.\n */\n Source source();\n\n /**\n * @return feature's data.\n */\n T data();\n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public void mo38117a() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"protected boolean func_70814_o() { return true; }",
"public Features() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"FeatureConcept createFeatureConcept();",
"public void smell() {\n\t\t\n\t}",
"FeatureCall getFec();",
"@Override public int describeContents() { return 0; }",
"protected void mo6255a() {\n }",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"Context mo1490b();",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void setup() {\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"public interface IFeature\n{\n\tGeppettoFeature getType();\n}",
"private void test() {\n\n\t}",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"public String getFeature() {\r\n return feature;\r\n }",
"public void mo4359a() {\n }",
"public final void mo51373a() {\n }",
"public String feature() {\n return feature;\n }",
"Feature update(Feature feature);",
"@Override\n public String getFeature() {\n return this.exteriorFeature;\n }",
"private NamedFeature getUnigeneTestFeature(){\n BasicFeature testFeat = new BasicFeature(\"chr2\", 179908392, 179909870);\n testFeat.setName(\"hs.516555\");\n return testFeat;\n }",
"public interface PropertyAccess extends FeatureCall\n{\n}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"java.lang.String getHowToUse();",
"java.lang.String getHowToUse();",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"private FlyWithWings(){\n\t\t\n\t}",
"@Override\r\n\t\tpublic Object getFeature(String feature, String version)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }",
"public void identify() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public Class<? extends Feature> getFeatureClass() {\n\treturn VersionFeatures.class;\n }",
"public void mo21877s() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void setup() {\n }",
"@Override\n public void setup() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"void addFeature(Feature feature);",
"public void method_4270() {}",
"public abstract void mo70713b();",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo1406f() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public interface ProjectedFeature<T extends Feature> extends ProjectedObject<T> {\n\n /**\n * Get the id of the feature.\n *\n * @return FeatureId\n */\n FeatureId getFeatureId();\n\n /**\n * Get the original FeatureMapLayer from where the feature is from.\n *\n * @return FeatureMapLayer\n */\n @Override\n FeatureMapLayer getLayer();\n\n /**\n * Get the feature itself.\n *\n * @return Feature\n */\n @Override\n T getCandidate();\n\n}",
"@Override\r\n\tpublic void init() {}",
"public ExteriorFeature() {\n this.exteriorFeature = \"Generic\";\n }",
"public interface Feature {\n String code();\n String featureName();\n Review.State reviewState();\n Review.State nextState();\n}",
"@Override\n public void test() {\n \n }",
"public void mo1531a() {\n }",
"public void mo6081a() {\n }"
] | [
"0.6100774",
"0.60687953",
"0.60687953",
"0.5744338",
"0.56913894",
"0.56913894",
"0.56787324",
"0.56654674",
"0.5641283",
"0.5628465",
"0.56139374",
"0.5609675",
"0.55912024",
"0.5532837",
"0.5532837",
"0.55292404",
"0.55247605",
"0.54613",
"0.54548633",
"0.54524577",
"0.5452312",
"0.5429661",
"0.5419095",
"0.54091823",
"0.5386301",
"0.5368471",
"0.536677",
"0.53661495",
"0.5355515",
"0.5355515",
"0.5355515",
"0.5355515",
"0.5355515",
"0.5355515",
"0.5355515",
"0.5349236",
"0.53473717",
"0.53132665",
"0.53132665",
"0.53132665",
"0.53132665",
"0.53132665",
"0.53132665",
"0.5300642",
"0.5286553",
"0.5277632",
"0.52741164",
"0.52728057",
"0.52728057",
"0.5269995",
"0.5268157",
"0.5267289",
"0.5262075",
"0.5261332",
"0.52595395",
"0.52534336",
"0.52502686",
"0.52486664",
"0.5243823",
"0.5243823",
"0.5241745",
"0.523914",
"0.5226968",
"0.5226352",
"0.5226352",
"0.52244467",
"0.52234787",
"0.52169245",
"0.52122146",
"0.5209898",
"0.5208907",
"0.5208205",
"0.5201278",
"0.5196316",
"0.5194405",
"0.51929",
"0.5174991",
"0.5172025",
"0.5163617",
"0.5158118",
"0.5158049",
"0.5155894",
"0.51549333",
"0.5150087",
"0.5150087",
"0.51438624",
"0.51389784",
"0.5134447",
"0.5133381",
"0.5133189",
"0.5129259",
"0.5126112",
"0.51215935",
"0.51174283",
"0.5113466",
"0.5112964",
"0.5110447",
"0.5110374",
"0.5109527",
"0.5107767",
"0.51060027"
] | 0.0 | -1 |
Return the features reference sequence name, e.g chromosome or contig | @Override
public String getChr() {
return getContig();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract String getRefName();",
"@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}",
"private String labelFeature(int feature) {\r\n\t\treturn label[feature];\r\n\t}",
"private String getFeatureFieldName(FeatureImpl feature) {\n return feature.getShortName();\n }",
"MolecularSequenceReferenceSeq getReferenceSeq();",
"Collection<Feature> getReference();",
"java.lang.String getRef();",
"public String generateFeaturesResult()\n\t{\n\t\tthis.removeDuplicateAffixes();\n\t\tArrayList<Affix> gPrefix = reverseAffixOrder(this.prefixes);\n\t\tArrayList<Affix> gInfix = reverseAffixOrder(this.infixes);\n\t\tArrayList<Affix> gSuffix = reverseAffixOrder(this.suffixes);\n\t\tAffixBreakdown ab \t\t = new AffixBreakdown();\n\t\tString rootWithInfix;\n\t\tString result\t \t\t = \"\";\n\n\n\n\t\tif( gInfix.size() > 0 || gInfix != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\trootWithInfix = this.infixedRootWord(word.getOriginalWord(),word.getRootWord(), gInfix.get(0).getAffix());\n\t\t\t} catch (Exception e) {\n\t\t\t\trootWithInfix = word.getRootWord();\n\t\t\t}\n\t\t} else {\n\t\t\trootWithInfix = word.getRootWord();\n\t\t}\n\n\n\t\tif( longestCanonicalPrefixLength() > 4 )\n\t\t{\n\t\t\tAffix longPrefix = longestCanonicalPrefix();\n\n\t\t\tresult = result + ab.convertPrefix( longPrefix.getAffix().toString() );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// cycle through all the prefixes first\n\t\t\tfor( int i = 0; i < this.prefixes.size(); i++)\n\t\t\t{\n\t\t\t\tresult = result + \"~\" + gPrefix.get(i).getAffix();\n\t\t\t}\n\t\t}\n\n\t\t// cycle through all the suffixes as the last\n\t\tfor( int i = 0; i < gSuffix.size(); i++)\n\t\t{\n\t\t\tresult = result + \"+\" + gSuffix.get(i).getAffix();\n\t\t}\n\t\treturn result;\n\t}",
"String getReference();",
"String getReference();",
"public String feature() {\n return feature;\n }",
"public String getFeatName(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[1];\n\t}",
"public String getStringOfGene()\n {\n String print = \"\";\n for(int x = 0; x < numOfCoef; x++)\n {\n print = print +\"||\"+ vectOfCoef.get(x);\n }\n return print;\n }",
"public String getRef(){\n return this.filenameWithoutExtension + \".\" + this.index;\n }",
"public String consensus_sequence () {\n return(current_contig.consensus.sequence.toString());\r\n }",
"public java.lang.String getRefnum() {\n return refnum;\n }",
"public String getName() {\n\t\tInteger inicio = indices.elementAt(0);\n\t\tInteger fin = (indices.size() > 1 ? indices.elementAt(1) : contenido.length());\n\t\treturn contenido.substring(inicio, fin-1);\n\t}",
"String getObjectRefName();",
"public String getNameReference() { \n\t\treturn getNameReferenceElement().getValue();\n\t}",
"public String getReference();",
"public String getReference();",
"public String getFeatureFlagString() {\n return featureFlagString;\n }",
"private String getSourceName(JCas pJCas) {\n \n String sourceURI = getReferenceLocation(pJCas);\n String name = null;\n if (sourceURI != null) {\n File aFile = new File(sourceURI);\n name = aFile.getName();\n \n } else {\n name = \"knowtator_\" + String.valueOf(this.inputFileCounter++);\n }\n \n return name;\n }",
"private static String getNTName(Reference reference) {\n\t\t\n\t\treturn getNTName(((BaseLanguageReference)reference.getBase()).getBase()); \n\t\t\n\t}",
"@Override\n public String getContig() {\n return feature.getContig();\n }",
"String getFeature();",
"String getFeature();",
"public String getTapOccurrenceFeatures() {\n double[] linAccMeans = getMean(linAccSample);\n double[] linAccStdDevs = getStdDev(linAccSample);\n double[] linAccSkewness = getSkewness(linAccSample);\n double[] linAccKurtosis = getKurtosis(linAccSample);\n\n double linAcc1Norm = getL1Norm(linAccMatrix);\n double linAccInfNorm = getInfNorm(linAccMatrix);\n double linAccFroNorm = getFroNorm(linAccMatrix);\n double[] linAccNorms = new double[]{linAcc1Norm, linAccInfNorm, linAccFroNorm};\n\n // 15 gyroscope features\n double[] gyroMeans = getMean(gyroSample);\n double[] gyroStdDevs = getStdDev(gyroSample);\n double[] gyroSkewness = getSkewness(gyroSample);\n double[] gyroKurtosis = getKurtosis(gyroSample);\n\n double gyro1Norm = getL1Norm(gyroMatrix);\n double gyroInfNorm = getInfNorm(gyroMatrix);\n double gyroFroNorm = getFroNorm(gyroMatrix);\n double[] gyroNorms = new double[] {gyro1Norm, gyroInfNorm, gyroFroNorm};\n\n // 9 pearson features\n double[] pearsonCoeffs = getPearsonCoeff(linAccSample, gyroSample);\n\n double[] featureArray = merge(\n linAccMeans, linAccStdDevs, linAccSkewness, linAccKurtosis, linAccNorms,\n gyroMeans, gyroStdDevs, gyroSkewness, gyroKurtosis, gyroNorms,\n pearsonCoeffs);\n\n StringBuilder featureString = new StringBuilder();\n for (int i = 0; i < featureArray.length; i++) {\n featureString.append(i+1);\n featureString.append(':');\n featureString.append(featureArray[i]);\n featureString.append(' ');\n }\n return featureString.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn fileName + \" \" + features + \" -> \" + lemma + \", \" + classification;\n\t}",
"java.lang.String getFeatures(int index);",
"public String getRefPropertyName() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn \"lfims:branches\";\r\n\t\t\t\t\t}",
"public java.lang.String getReference() {\n return reference;\n }",
"public String getGeneName(int row);",
"public String getLHandLocFeatures() {\n double[] angle = new double[] {getAngle(linAccSample)};\n\n // 15 linear accelerometer features (means etc across 3 axes)\n double[] linAccMeans = getMean(linAccSample);\n double[] linAccStdDevs = getStdDev(linAccSample);\n double[] linAccSkewness = getSkewness(linAccSample);\n double[] linAccKurtosis = getKurtosis(linAccSample);\n double linAcc1Norm = getL1Norm(linAccMatrix);\n double linAccInfNorm = getInfNorm(linAccMatrix);\n double linAccFroNorm = getFroNorm(linAccMatrix);\n\n double[] linAccNorms = new double[]{linAcc1Norm, linAccInfNorm, linAccFroNorm};\n\n // 15 gyroscope features\n double[] gyroMeans = getMean(gyroSample);\n double[] gyroStdDevs = getStdDev(gyroSample);\n double[] gyroSkewness = getSkewness(gyroSample);\n double[] gyroKurtosis = getKurtosis(gyroSample);\n double gyro1Norm = getL1Norm(gyroMatrix);\n double gyroInfNorm = getInfNorm(gyroMatrix);\n double gyroFroNorm = getFroNorm(gyroMatrix);\n\n double[] gyroNorms = new double[] {gyro1Norm, gyroInfNorm, gyroFroNorm};\n\n // 9 pearson features\n double[] pearsonCoeffs = getPearsonCoeff(linAccSample, gyroSample);\n\n double[] featureArray = merge(\n angle,\n linAccMeans, linAccStdDevs, linAccSkewness, linAccKurtosis, linAccNorms,\n gyroMeans, gyroStdDevs, gyroSkewness, gyroKurtosis, gyroNorms,\n pearsonCoeffs);\n\n StringBuilder featureString = new StringBuilder();\n for (int i = 0; i < featureArray.length; i++) {\n featureString.append(i+1);\n featureString.append(':');\n featureString.append(featureArray[i]);\n featureString.append(' ');\n }\n return featureString.toString();\n }",
"public String getRHandLocFeatures() {\n double[] angle = new double[] {getAngle(linAccSample)};\n\n // 15 linear accelerometer features (means etc across 3 axes)\n double[] linAccMeans = getMean(linAccSample);\n double[] linAccStdDevs = getStdDev(linAccSample);\n double[] linAccSkewness = getSkewness(linAccSample);\n double[] linAccKurtosis = getKurtosis(linAccSample);\n double linAcc1Norm = getL1Norm(linAccMatrix);\n double linAccInfNorm = getInfNorm(linAccMatrix);\n double linAccFroNorm = getFroNorm(linAccMatrix);\n\n double[] linAccNorms = new double[]{linAcc1Norm, linAccInfNorm, linAccFroNorm};\n\n // 15 gyroscope features\n double[] gyroMeans = getMean(gyroSample);\n double[] gyroStdDevs = getStdDev(gyroSample);\n double[] gyroSkewness = getSkewness(gyroSample);\n double[] gyroKurtosis = getKurtosis(gyroSample);\n double gyro1Norm = getL1Norm(gyroMatrix);\n double gyroInfNorm = getInfNorm(gyroMatrix);\n double gyroFroNorm = getFroNorm(gyroMatrix);\n\n double[] gyroNorms = new double[] {gyro1Norm, gyroInfNorm, gyroFroNorm};\n\n // 9 pearson features\n double[] pearsonCoeffs = getPearsonCoeff(linAccSample, gyroSample);\n\n double[] featureArray = merge(\n angle,\n linAccMeans, linAccStdDevs, linAccSkewness, linAccKurtosis, linAccNorms,\n gyroMeans, gyroStdDevs, gyroSkewness, gyroKurtosis, gyroNorms,\n pearsonCoeffs);\n\n StringBuilder featureString = new StringBuilder();\n for (int i = 0; i < featureArray.length; i++) {\n featureString.append(i+1);\n featureString.append(':');\n featureString.append(featureArray[i]);\n featureString.append(' ');\n }\n return featureString.toString(); }",
"public StrColumn getReference() {\n return delegate.getColumn(\"reference\", DelegatingStrColumn::new);\n }",
"@Override\n public String getName() {\n return seqName;\n }",
"String getContainmentReference();",
"public String getFeatureID() {\r\n if (line == null) {\r\n return null;\r\n }\r\n\r\n return fid;\r\n }",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}",
"public String getFeature() {\r\n return feature;\r\n }",
"@Override\n\tpublic String getFeatureCode() {\n\t\treturn featureCode;\n\t}",
"org.openxmlformats.schemas.drawingml.x2006.main.STGeomGuideName xgetName();",
"public String getRef() {\n return ref;\n }",
"String family();",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public static String getNTName(BaseReference reference) {\n\t\treturn getNTName(((BaseLanguageReference)reference).getBase()); \n\t}",
"private String _topicRef(Topic topic) {\n Set<Locator> locs = topic.getSubjectIdentifiers();\n if (!locs.isEmpty()) {\n return \"si:\" + locs.iterator().next().toExternalForm();\n }\n locs = topic.getSubjectLocators();\n if (!locs.isEmpty()) {\n return \"sl:\" + locs.iterator().next().toExternalForm();\n }\n locs = topic.getItemIdentifiers();\n if (!locs.isEmpty()) {\n return \"ii:\" + locs.iterator().next().toExternalForm();\n }\n return \"ii:\" + _baseIRI + \"#\" + topic.getId();\n }",
"public java.lang.String getReference1() {\n return reference1;\n }",
"public String getSequenceName() {\n return sequenceName;\n }",
"public String getRef(){\r\n\t\treturn this.getAttribute(\"ref\").getValue();\r\n\t}",
"public final String getReference() {\n return reference;\n }",
"Concept getConceptName();",
"@Override\n\tpublic TabFeature getFeatureType() {\n\t\treturn TabFeature.NAMETAGX;\n\t}",
"public String getName() {\n\tif (num_comp == 0)\n\t return(\"\");\n\treturn(comp[num_comp-1]);\n }",
"public String getSequenceName() {\n return sequenceName;\n }",
"public String getName() {\n return \"GA binary individual\";\n }",
"public String getFeatVect();",
"protected String createFontReference(Font font)\n {\n String fontName = font.getName();\n\n StringBuffer psFontName = new StringBuffer();\n for (int i = 0; i < fontName.length(); i++)\n {\n char c = fontName.charAt(i);\n if (!Character.isWhitespace(c))\n {\n psFontName.append(c);\n }\n }\n\n boolean hyphen = false;\n if (font.isBold())\n {\n hyphen = true;\n psFontName.append(\"-Bold\");\n }\n if (font.isItalic())\n {\n psFontName.append((hyphen ? \"\" : \"-\") + \"Italic\");\n }\n\n fontName = psFontName.toString();\n fontName = psFontNames.getProperty(fontName, fontName);\n return fontName;\n }",
"private NamedFeature getUnigeneTestFeature(){\n BasicFeature testFeat = new BasicFeature(\"chr2\", 179908392, 179909870);\n testFeat.setName(\"hs.516555\");\n return testFeat;\n }",
"public String getReferenceId();",
"public String getResourceName(String ref){\n\t\treturn getResourceName(ref, true);\n\t}",
"@Override\r\n\tpublic String getName() {\r\n\t\treturn EDIT_FULFILLMENT_FEATURE_NAME;\r\n\t}",
"@Override\n public String toString() {\n return mFeatureStructures.toString();\n }",
"public String getFullSampleName(int column);",
"public java.lang.String getRefId() {\n return refId;\n }",
"public String getName() {\n return \"subsequence\";\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReference1() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(REFERENCE1_PROP.get());\n }",
"public String getReferenceId() {\n return refid;\n }",
"AlphabetNameReference createAlphabetNameReference();",
"FeatureId getFeatureId();",
"public String toString() {\r\n if (chromosomeName == null) {\r\n return \"\";\r\n } else {\r\n return chromosomeName;\r\n }\r\n }",
"public String getCVCTG_NOMBRE(){\n\t\treturn this.myCvctg_nombre;\n\t}",
"MnemonicNameReference createMnemonicNameReference();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReference1() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(REFERENCE1_PROP.get());\n }",
"public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }",
"public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }",
"public com.flexnet.opsembedded.webservices.SimpleQueryType getFeatureName() {\n return featureName;\n }",
"protected abstract String getFeatureName(Map<String, Object> data);",
"public String generateReferenceId(){\n String lastSequenceNumber = databaseAccessResource.getLastRequestSequenceNumber();\n //ToDo : write the logic to generate the next sequence number.\n return null;\n }",
"public String getLabel() {\n\t String name = getLiteralValue(Foaf.NAME);\n\t \n\t if (name == null) {\n\t name = getLiteralValue(Foaf.GIVENNAME);\n\t }\n\t \n\t if (name == null) {\n\t name = getLiteralValue(RDFS.label);\n\t }\n\t \n\t if (name == null) {\n\t return getURI();\n\t }\n\t return name;\n }",
"public QName getReferenceQName() {\n AnnotatedBase comp = m_item.getSchemaComponent();\n if (comp instanceof IReference) {\n return ((IReference)comp).getRef();\n } else {\n return null;\n }\n }",
"@Nullable\n String getRef();",
"public String toString(){\n\t\tString abbrv = this.name().substring(0,1);\t\t\n\t\treturn abbrv;\n\t}",
"@Override\n public String getReferenceInfo()\n {\n return \"\";\n }",
"public String shortName() {\r\n\t\treturn \"F\";\r\n\t}",
"private void CreateGenomeData()\n {\n SymbolList blankList = new BlankSymbolList(totalLength);\n SimpleSequenceFactory seqFactory = new SimpleSequenceFactory();\n blankSequence = seqFactory.createSequence(blankList, null, null, null);\n \n try {\n \n for(int i =0;i<chromosomeCount;i++)\n {\n ArrayList<GeneDisplayInfo> currentChr = outputGenes.get(i);\n int geneCount = currentChr.size();\n\n for(int j =0; j < geneCount ; j++)\n {\n \n GeneDisplayInfo gene = currentChr.get(j);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n\n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n //String s = \"Source\n \n stranded.type = \"Source\" + Integer.toString(i);\n if(gene.name ==\"Circular\")\n stranded.type = \"CircularF\" + Integer.toString(i);\n stranded.source = gene.name;\n Feature f = blankSequence.createFeature(stranded);\n \n }\n \n } \n \n \n int totalfeature =sourceGene.size(); \n for(int i =0; i < totalfeature ; i++)\n {\n\n GeneDisplayInfo gene = GeneData.targetGene.get(i);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n \n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n stranded.type = \"Target\";\n stranded.source = gene.name;\n blankSequence.createFeature(stranded);\n \n }\n \n \n }\n catch (BioException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ChangeVetoException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\t\tcurdata = GenomeDataFactory.createGenomeData(blankSequence);\t\n \n \n }",
"@Override\n String getClassRef() {\n return this.classNode.name;\n }",
"String getCName() {\n return nameTF.getText();\n }",
"java.lang.String getSeq();",
"public String getReferenceAccession() {\n return referenceProteinAccession;\n }",
"protected String xCB() { return WhiteStilettoAliasRefCB.class.getName(); }",
"public Optional<String> getRefAllele() {\n return this.placement.getAlleles().stream()\n .map(p -> p.getAllele().getSpdi().getDeletedSequence())\n .findFirst();\n }",
"int getNameSourceStart();",
"@Override\r\n\tpublic String getName() {\n\t\treturn \"TF\";\r\n\t}",
"private String fileName(ModuleReference mref) {\n URI uri = mref.location().orElse(null);\n if (uri != null) {\n if (uri.getScheme().equalsIgnoreCase(\"file\")) {\n Path file = Path.of(uri);\n return file.getFileName().toString();\n } else {\n return uri.toString();\n }\n } else {\n return \"<unknown>\";\n }\n }",
"Object getRefid();"
] | [
"0.6075015",
"0.59746236",
"0.5912549",
"0.5907772",
"0.5906388",
"0.58289033",
"0.57538545",
"0.57078886",
"0.56604433",
"0.56604433",
"0.56557745",
"0.5640351",
"0.55764055",
"0.5574146",
"0.556134",
"0.5561189",
"0.55278724",
"0.5510145",
"0.5502081",
"0.5483726",
"0.5483726",
"0.5469147",
"0.54247886",
"0.54243696",
"0.53858715",
"0.5351165",
"0.5351165",
"0.53496677",
"0.53486276",
"0.5326339",
"0.5306459",
"0.5303834",
"0.5273111",
"0.52729976",
"0.5268871",
"0.52672917",
"0.526665",
"0.52663016",
"0.52588856",
"0.5247793",
"0.5247793",
"0.52369565",
"0.5218021",
"0.5159351",
"0.5154289",
"0.5142286",
"0.51340824",
"0.51340824",
"0.51340824",
"0.5132616",
"0.5128961",
"0.512839",
"0.5124595",
"0.5120886",
"0.51206726",
"0.5118304",
"0.5108179",
"0.5100037",
"0.50935453",
"0.5090422",
"0.50776803",
"0.5074945",
"0.5069361",
"0.5065952",
"0.5063713",
"0.5053899",
"0.5053018",
"0.5051601",
"0.5049914",
"0.5043962",
"0.5041489",
"0.5038956",
"0.5037671",
"0.50314665",
"0.5030813",
"0.5025796",
"0.5013875",
"0.50011086",
"0.49989596",
"0.49846354",
"0.49846354",
"0.49804613",
"0.49784863",
"0.4974054",
"0.49734026",
"0.4972623",
"0.49706542",
"0.49627998",
"0.49542597",
"0.49471015",
"0.4932751",
"0.4928447",
"0.49200374",
"0.49181885",
"0.491533",
"0.49058005",
"0.48989952",
"0.4893207",
"0.48777995",
"0.48775738",
"0.4872115"
] | 0.0 | -1 |
Return the features reference sequence name, e.g chromosome or contig | @Override
public String getContig() {
return feature.getContig();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract String getRefName();",
"@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}",
"private String labelFeature(int feature) {\r\n\t\treturn label[feature];\r\n\t}",
"MolecularSequenceReferenceSeq getReferenceSeq();",
"private String getFeatureFieldName(FeatureImpl feature) {\n return feature.getShortName();\n }",
"Collection<Feature> getReference();",
"java.lang.String getRef();",
"public String generateFeaturesResult()\n\t{\n\t\tthis.removeDuplicateAffixes();\n\t\tArrayList<Affix> gPrefix = reverseAffixOrder(this.prefixes);\n\t\tArrayList<Affix> gInfix = reverseAffixOrder(this.infixes);\n\t\tArrayList<Affix> gSuffix = reverseAffixOrder(this.suffixes);\n\t\tAffixBreakdown ab \t\t = new AffixBreakdown();\n\t\tString rootWithInfix;\n\t\tString result\t \t\t = \"\";\n\n\n\n\t\tif( gInfix.size() > 0 || gInfix != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\trootWithInfix = this.infixedRootWord(word.getOriginalWord(),word.getRootWord(), gInfix.get(0).getAffix());\n\t\t\t} catch (Exception e) {\n\t\t\t\trootWithInfix = word.getRootWord();\n\t\t\t}\n\t\t} else {\n\t\t\trootWithInfix = word.getRootWord();\n\t\t}\n\n\n\t\tif( longestCanonicalPrefixLength() > 4 )\n\t\t{\n\t\t\tAffix longPrefix = longestCanonicalPrefix();\n\n\t\t\tresult = result + ab.convertPrefix( longPrefix.getAffix().toString() );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// cycle through all the prefixes first\n\t\t\tfor( int i = 0; i < this.prefixes.size(); i++)\n\t\t\t{\n\t\t\t\tresult = result + \"~\" + gPrefix.get(i).getAffix();\n\t\t\t}\n\t\t}\n\n\t\t// cycle through all the suffixes as the last\n\t\tfor( int i = 0; i < gSuffix.size(); i++)\n\t\t{\n\t\t\tresult = result + \"+\" + gSuffix.get(i).getAffix();\n\t\t}\n\t\treturn result;\n\t}",
"String getReference();",
"String getReference();",
"public String feature() {\n return feature;\n }",
"public String getFeatName(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[1];\n\t}",
"public String getStringOfGene()\n {\n String print = \"\";\n for(int x = 0; x < numOfCoef; x++)\n {\n print = print +\"||\"+ vectOfCoef.get(x);\n }\n return print;\n }",
"public String getRef(){\n return this.filenameWithoutExtension + \".\" + this.index;\n }",
"public String consensus_sequence () {\n return(current_contig.consensus.sequence.toString());\r\n }",
"public java.lang.String getRefnum() {\n return refnum;\n }",
"public String getName() {\n\t\tInteger inicio = indices.elementAt(0);\n\t\tInteger fin = (indices.size() > 1 ? indices.elementAt(1) : contenido.length());\n\t\treturn contenido.substring(inicio, fin-1);\n\t}",
"String getObjectRefName();",
"public String getNameReference() { \n\t\treturn getNameReferenceElement().getValue();\n\t}",
"public String getReference();",
"public String getReference();",
"public String getFeatureFlagString() {\n return featureFlagString;\n }",
"private static String getNTName(Reference reference) {\n\t\t\n\t\treturn getNTName(((BaseLanguageReference)reference.getBase()).getBase()); \n\t\t\n\t}",
"private String getSourceName(JCas pJCas) {\n \n String sourceURI = getReferenceLocation(pJCas);\n String name = null;\n if (sourceURI != null) {\n File aFile = new File(sourceURI);\n name = aFile.getName();\n \n } else {\n name = \"knowtator_\" + String.valueOf(this.inputFileCounter++);\n }\n \n return name;\n }",
"String getFeature();",
"String getFeature();",
"@Override\n\tpublic String toString() {\n\t\treturn fileName + \" \" + features + \" -> \" + lemma + \", \" + classification;\n\t}",
"public String getTapOccurrenceFeatures() {\n double[] linAccMeans = getMean(linAccSample);\n double[] linAccStdDevs = getStdDev(linAccSample);\n double[] linAccSkewness = getSkewness(linAccSample);\n double[] linAccKurtosis = getKurtosis(linAccSample);\n\n double linAcc1Norm = getL1Norm(linAccMatrix);\n double linAccInfNorm = getInfNorm(linAccMatrix);\n double linAccFroNorm = getFroNorm(linAccMatrix);\n double[] linAccNorms = new double[]{linAcc1Norm, linAccInfNorm, linAccFroNorm};\n\n // 15 gyroscope features\n double[] gyroMeans = getMean(gyroSample);\n double[] gyroStdDevs = getStdDev(gyroSample);\n double[] gyroSkewness = getSkewness(gyroSample);\n double[] gyroKurtosis = getKurtosis(gyroSample);\n\n double gyro1Norm = getL1Norm(gyroMatrix);\n double gyroInfNorm = getInfNorm(gyroMatrix);\n double gyroFroNorm = getFroNorm(gyroMatrix);\n double[] gyroNorms = new double[] {gyro1Norm, gyroInfNorm, gyroFroNorm};\n\n // 9 pearson features\n double[] pearsonCoeffs = getPearsonCoeff(linAccSample, gyroSample);\n\n double[] featureArray = merge(\n linAccMeans, linAccStdDevs, linAccSkewness, linAccKurtosis, linAccNorms,\n gyroMeans, gyroStdDevs, gyroSkewness, gyroKurtosis, gyroNorms,\n pearsonCoeffs);\n\n StringBuilder featureString = new StringBuilder();\n for (int i = 0; i < featureArray.length; i++) {\n featureString.append(i+1);\n featureString.append(':');\n featureString.append(featureArray[i]);\n featureString.append(' ');\n }\n return featureString.toString();\n }",
"java.lang.String getFeatures(int index);",
"public String getRefPropertyName() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn \"lfims:branches\";\r\n\t\t\t\t\t}",
"public java.lang.String getReference() {\n return reference;\n }",
"public String getGeneName(int row);",
"public String getLHandLocFeatures() {\n double[] angle = new double[] {getAngle(linAccSample)};\n\n // 15 linear accelerometer features (means etc across 3 axes)\n double[] linAccMeans = getMean(linAccSample);\n double[] linAccStdDevs = getStdDev(linAccSample);\n double[] linAccSkewness = getSkewness(linAccSample);\n double[] linAccKurtosis = getKurtosis(linAccSample);\n double linAcc1Norm = getL1Norm(linAccMatrix);\n double linAccInfNorm = getInfNorm(linAccMatrix);\n double linAccFroNorm = getFroNorm(linAccMatrix);\n\n double[] linAccNorms = new double[]{linAcc1Norm, linAccInfNorm, linAccFroNorm};\n\n // 15 gyroscope features\n double[] gyroMeans = getMean(gyroSample);\n double[] gyroStdDevs = getStdDev(gyroSample);\n double[] gyroSkewness = getSkewness(gyroSample);\n double[] gyroKurtosis = getKurtosis(gyroSample);\n double gyro1Norm = getL1Norm(gyroMatrix);\n double gyroInfNorm = getInfNorm(gyroMatrix);\n double gyroFroNorm = getFroNorm(gyroMatrix);\n\n double[] gyroNorms = new double[] {gyro1Norm, gyroInfNorm, gyroFroNorm};\n\n // 9 pearson features\n double[] pearsonCoeffs = getPearsonCoeff(linAccSample, gyroSample);\n\n double[] featureArray = merge(\n angle,\n linAccMeans, linAccStdDevs, linAccSkewness, linAccKurtosis, linAccNorms,\n gyroMeans, gyroStdDevs, gyroSkewness, gyroKurtosis, gyroNorms,\n pearsonCoeffs);\n\n StringBuilder featureString = new StringBuilder();\n for (int i = 0; i < featureArray.length; i++) {\n featureString.append(i+1);\n featureString.append(':');\n featureString.append(featureArray[i]);\n featureString.append(' ');\n }\n return featureString.toString();\n }",
"public StrColumn getReference() {\n return delegate.getColumn(\"reference\", DelegatingStrColumn::new);\n }",
"String getContainmentReference();",
"@Override\n public String getName() {\n return seqName;\n }",
"public String getRHandLocFeatures() {\n double[] angle = new double[] {getAngle(linAccSample)};\n\n // 15 linear accelerometer features (means etc across 3 axes)\n double[] linAccMeans = getMean(linAccSample);\n double[] linAccStdDevs = getStdDev(linAccSample);\n double[] linAccSkewness = getSkewness(linAccSample);\n double[] linAccKurtosis = getKurtosis(linAccSample);\n double linAcc1Norm = getL1Norm(linAccMatrix);\n double linAccInfNorm = getInfNorm(linAccMatrix);\n double linAccFroNorm = getFroNorm(linAccMatrix);\n\n double[] linAccNorms = new double[]{linAcc1Norm, linAccInfNorm, linAccFroNorm};\n\n // 15 gyroscope features\n double[] gyroMeans = getMean(gyroSample);\n double[] gyroStdDevs = getStdDev(gyroSample);\n double[] gyroSkewness = getSkewness(gyroSample);\n double[] gyroKurtosis = getKurtosis(gyroSample);\n double gyro1Norm = getL1Norm(gyroMatrix);\n double gyroInfNorm = getInfNorm(gyroMatrix);\n double gyroFroNorm = getFroNorm(gyroMatrix);\n\n double[] gyroNorms = new double[] {gyro1Norm, gyroInfNorm, gyroFroNorm};\n\n // 9 pearson features\n double[] pearsonCoeffs = getPearsonCoeff(linAccSample, gyroSample);\n\n double[] featureArray = merge(\n angle,\n linAccMeans, linAccStdDevs, linAccSkewness, linAccKurtosis, linAccNorms,\n gyroMeans, gyroStdDevs, gyroSkewness, gyroKurtosis, gyroNorms,\n pearsonCoeffs);\n\n StringBuilder featureString = new StringBuilder();\n for (int i = 0; i < featureArray.length; i++) {\n featureString.append(i+1);\n featureString.append(':');\n featureString.append(featureArray[i]);\n featureString.append(' ');\n }\n return featureString.toString(); }",
"public String getFeatureID() {\r\n if (line == null) {\r\n return null;\r\n }\r\n\r\n return fid;\r\n }",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}",
"public String getFeature() {\r\n return feature;\r\n }",
"@Override\n\tpublic String getFeatureCode() {\n\t\treturn featureCode;\n\t}",
"org.openxmlformats.schemas.drawingml.x2006.main.STGeomGuideName xgetName();",
"public String getRef() {\n return ref;\n }",
"String family();",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public static String getNTName(BaseReference reference) {\n\t\treturn getNTName(((BaseLanguageReference)reference).getBase()); \n\t}",
"private String _topicRef(Topic topic) {\n Set<Locator> locs = topic.getSubjectIdentifiers();\n if (!locs.isEmpty()) {\n return \"si:\" + locs.iterator().next().toExternalForm();\n }\n locs = topic.getSubjectLocators();\n if (!locs.isEmpty()) {\n return \"sl:\" + locs.iterator().next().toExternalForm();\n }\n locs = topic.getItemIdentifiers();\n if (!locs.isEmpty()) {\n return \"ii:\" + locs.iterator().next().toExternalForm();\n }\n return \"ii:\" + _baseIRI + \"#\" + topic.getId();\n }",
"public java.lang.String getReference1() {\n return reference1;\n }",
"public String getSequenceName() {\n return sequenceName;\n }",
"public String getRef(){\r\n\t\treturn this.getAttribute(\"ref\").getValue();\r\n\t}",
"public final String getReference() {\n return reference;\n }",
"Concept getConceptName();",
"public String getName() {\n\tif (num_comp == 0)\n\t return(\"\");\n\treturn(comp[num_comp-1]);\n }",
"@Override\n\tpublic TabFeature getFeatureType() {\n\t\treturn TabFeature.NAMETAGX;\n\t}",
"public String getSequenceName() {\n return sequenceName;\n }",
"public String getName() {\n return \"GA binary individual\";\n }",
"public String getFeatVect();",
"protected String createFontReference(Font font)\n {\n String fontName = font.getName();\n\n StringBuffer psFontName = new StringBuffer();\n for (int i = 0; i < fontName.length(); i++)\n {\n char c = fontName.charAt(i);\n if (!Character.isWhitespace(c))\n {\n psFontName.append(c);\n }\n }\n\n boolean hyphen = false;\n if (font.isBold())\n {\n hyphen = true;\n psFontName.append(\"-Bold\");\n }\n if (font.isItalic())\n {\n psFontName.append((hyphen ? \"\" : \"-\") + \"Italic\");\n }\n\n fontName = psFontName.toString();\n fontName = psFontNames.getProperty(fontName, fontName);\n return fontName;\n }",
"public String getReferenceId();",
"private NamedFeature getUnigeneTestFeature(){\n BasicFeature testFeat = new BasicFeature(\"chr2\", 179908392, 179909870);\n testFeat.setName(\"hs.516555\");\n return testFeat;\n }",
"public String getResourceName(String ref){\n\t\treturn getResourceName(ref, true);\n\t}",
"public String getFullSampleName(int column);",
"@Override\r\n\tpublic String getName() {\r\n\t\treturn EDIT_FULFILLMENT_FEATURE_NAME;\r\n\t}",
"@Override\n public String toString() {\n return mFeatureStructures.toString();\n }",
"public java.lang.String getRefId() {\n return refId;\n }",
"public String getName() {\n return \"subsequence\";\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReference1() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(REFERENCE1_PROP.get());\n }",
"public String getReferenceId() {\n return refid;\n }",
"AlphabetNameReference createAlphabetNameReference();",
"public String toString() {\r\n if (chromosomeName == null) {\r\n return \"\";\r\n } else {\r\n return chromosomeName;\r\n }\r\n }",
"FeatureId getFeatureId();",
"public String getCVCTG_NOMBRE(){\n\t\treturn this.myCvctg_nombre;\n\t}",
"MnemonicNameReference createMnemonicNameReference();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReference1() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(REFERENCE1_PROP.get());\n }",
"public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }",
"public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }",
"public com.flexnet.opsembedded.webservices.SimpleQueryType getFeatureName() {\n return featureName;\n }",
"protected abstract String getFeatureName(Map<String, Object> data);",
"public String generateReferenceId(){\n String lastSequenceNumber = databaseAccessResource.getLastRequestSequenceNumber();\n //ToDo : write the logic to generate the next sequence number.\n return null;\n }",
"public QName getReferenceQName() {\n AnnotatedBase comp = m_item.getSchemaComponent();\n if (comp instanceof IReference) {\n return ((IReference)comp).getRef();\n } else {\n return null;\n }\n }",
"public String getLabel() {\n\t String name = getLiteralValue(Foaf.NAME);\n\t \n\t if (name == null) {\n\t name = getLiteralValue(Foaf.GIVENNAME);\n\t }\n\t \n\t if (name == null) {\n\t name = getLiteralValue(RDFS.label);\n\t }\n\t \n\t if (name == null) {\n\t return getURI();\n\t }\n\t return name;\n }",
"@Nullable\n String getRef();",
"public String toString(){\n\t\tString abbrv = this.name().substring(0,1);\t\t\n\t\treturn abbrv;\n\t}",
"@Override\n public String getReferenceInfo()\n {\n return \"\";\n }",
"public String shortName() {\r\n\t\treturn \"F\";\r\n\t}",
"private void CreateGenomeData()\n {\n SymbolList blankList = new BlankSymbolList(totalLength);\n SimpleSequenceFactory seqFactory = new SimpleSequenceFactory();\n blankSequence = seqFactory.createSequence(blankList, null, null, null);\n \n try {\n \n for(int i =0;i<chromosomeCount;i++)\n {\n ArrayList<GeneDisplayInfo> currentChr = outputGenes.get(i);\n int geneCount = currentChr.size();\n\n for(int j =0; j < geneCount ; j++)\n {\n \n GeneDisplayInfo gene = currentChr.get(j);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n\n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n //String s = \"Source\n \n stranded.type = \"Source\" + Integer.toString(i);\n if(gene.name ==\"Circular\")\n stranded.type = \"CircularF\" + Integer.toString(i);\n stranded.source = gene.name;\n Feature f = blankSequence.createFeature(stranded);\n \n }\n \n } \n \n \n int totalfeature =sourceGene.size(); \n for(int i =0; i < totalfeature ; i++)\n {\n\n GeneDisplayInfo gene = GeneData.targetGene.get(i);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n \n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n stranded.type = \"Target\";\n stranded.source = gene.name;\n blankSequence.createFeature(stranded);\n \n }\n \n \n }\n catch (BioException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ChangeVetoException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\t\tcurdata = GenomeDataFactory.createGenomeData(blankSequence);\t\n \n \n }",
"@Override\n String getClassRef() {\n return this.classNode.name;\n }",
"String getCName() {\n return nameTF.getText();\n }",
"java.lang.String getSeq();",
"public String getReferenceAccession() {\n return referenceProteinAccession;\n }",
"protected String xCB() { return WhiteStilettoAliasRefCB.class.getName(); }",
"public Optional<String> getRefAllele() {\n return this.placement.getAlleles().stream()\n .map(p -> p.getAllele().getSpdi().getDeletedSequence())\n .findFirst();\n }",
"int getNameSourceStart();",
"private String fileName(ModuleReference mref) {\n URI uri = mref.location().orElse(null);\n if (uri != null) {\n if (uri.getScheme().equalsIgnoreCase(\"file\")) {\n Path file = Path.of(uri);\n return file.getFileName().toString();\n } else {\n return uri.toString();\n }\n } else {\n return \"<unknown>\";\n }\n }",
"@Override\r\n\tpublic String getName() {\n\t\treturn \"TF\";\r\n\t}",
"Object getRefid();"
] | [
"0.6078676",
"0.59736556",
"0.5911914",
"0.5909946",
"0.5907239",
"0.5828098",
"0.5757246",
"0.5707384",
"0.5664531",
"0.5664531",
"0.56544715",
"0.56413966",
"0.5579329",
"0.55767053",
"0.5564732",
"0.5564469",
"0.55306727",
"0.55129576",
"0.55053633",
"0.54874843",
"0.54874843",
"0.5467094",
"0.5429178",
"0.54287905",
"0.5350558",
"0.5350558",
"0.53478974",
"0.53477013",
"0.5324439",
"0.53085166",
"0.5308304",
"0.5276971",
"0.5272677",
"0.52710295",
"0.5270369",
"0.5269948",
"0.526885",
"0.5257539",
"0.52495724",
"0.52495724",
"0.52352816",
"0.52170914",
"0.5161623",
"0.5157183",
"0.5144982",
"0.51381046",
"0.51381046",
"0.51381046",
"0.513668",
"0.51336855",
"0.512996",
"0.5127998",
"0.51243687",
"0.5123459",
"0.512246",
"0.5111713",
"0.509755",
"0.5097433",
"0.50938267",
"0.5080309",
"0.50737476",
"0.5071444",
"0.50673956",
"0.5064737",
"0.5058997",
"0.50543517",
"0.50511",
"0.50498444",
"0.50470334",
"0.50438833",
"0.5042416",
"0.5041073",
"0.5034019",
"0.50300616",
"0.50295633",
"0.50165105",
"0.5003617",
"0.5002438",
"0.49857825",
"0.49857825",
"0.49800202",
"0.4978073",
"0.4977819",
"0.49747723",
"0.49743655",
"0.49740347",
"0.4966085",
"0.49560627",
"0.4947323",
"0.49320552",
"0.49301007",
"0.4923669",
"0.4922405",
"0.49190444",
"0.49078906",
"0.49022585",
"0.4895973",
"0.48810583",
"0.4877",
"0.48747107"
] | 0.5387181 | 24 |
Return the start position in 1based coordinates (first base is 1) | @Override
public int getStart() {
return feature.getStart();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PixelPoint getStartPoint ()\r\n {\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(getStart(), line.yAt(getStart())),\r\n null);\r\n\r\n return new PixelPoint(start.x, start.y);\r\n }",
"public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }",
"public int getStart ()\r\n {\r\n return glyph.getBounds().x;\r\n }",
"public GeoPointND getStartPoint();",
"public static int getStartXCoordinate(){\n\t\tint x = getThymioStartField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n \t\n\t\treturn x ;\n\t}",
"public Ndimensional getStartPoint();",
"org.hl7.fhir.Integer getStart();",
"double getStartX();",
"public double getStartX() {\n\treturn v1.getX();\n }",
"public Coordinate getStart( )\n\t{\n\t\treturn startLocation;\n\t}",
"public int getStart() {\r\n\t\treturn this.offset;\r\n\t}",
"private double getStartX() {\n\t\treturn Math.min(x1, x2);\n\t}",
"public int startOffset();",
"public double getStartX()\n {\n return startxcoord; \n }",
"private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }",
"public int getStartx(){\n\t\treturn startx;\n\t}",
"Long getStartAt();",
"public int getFirstInInterval(int start) {\n if (start > last()) {\n return -1;\n }\n if (start <= first) {\n return first;\n }\n if (stride == 1) {\n return start;\n }\n int offset = start - first;\n int i = offset / stride;\n i = (offset % stride == 0) ? i : i + 1; // round up\n return first + i * stride;\n }",
"public Position getStart() {\r\n return start;\r\n }",
"public Location getStartLocation() {\r\n \treturn new Location(0,0);\r\n }",
"public int getStartX() {\r\n\t\treturn startX;\r\n\t}",
"public double getStartX() {\r\n return startx;\r\n }",
"public String getStartPoint()\n\t{\n\t\tString getStart;\n\t\tgetStart = (this.startPoint.xPosition + \",\" + this.startPoint.yPosition);\n\t\treturn getStart;\n\t}",
"public double getStart();",
"public float getStartX() {return startX;}",
"public int findGeneStart()\n {\n return findGeneStart(0);\n }",
"public WeightedPoint getStart()\n {\n return map.getStart();\n }",
"public int findGeneStart(int startAt)\n {\n //TODO: find the location, if any of the first\n // ATG sequence starting at startAt\n return -1;\n }",
"public abstract Vec2 startPosition();",
"public Point start() {\r\n return this.start;\r\n }",
"Pair<Integer, Integer> getInitialPosition();",
"public GeoPoint getStart(){\n return getOrigin();\n }",
"public abstract long getStartOffset();",
"public int getStart() {\r\n\t\treturn start;\r\n\t}",
"public double getStartY() {\n\treturn v1.getY();\n }",
"private int getStartCell() {\r\n\t\tint extraCells = (getContentHeight() - getViewableHeight()) / CELL_SIZE_Y;\r\n\t\tif (getContentHeight() < getViewableHeight()) {\r\n\t\t\textraCells = 0;\r\n\t\t}\r\n\t\treturn (int) ((float) extraCells * ((float) _curScrollValue / (float) _maxScrollValue));\r\n\t}",
"public Point getStart() {\n\t\treturn _start;\n\t}",
"public java.math.BigInteger getStartIndex()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTINDEX$10);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"int getStartSegment();",
"public Vector2D getStartPos(){\n\t\treturn startPos;\n\t}",
"public Point getStart() {\n return mStart;\n }",
"int getStartPosition();",
"int getStartPosition();",
"public int getStart() {\n\t\treturn start;\n\t}",
"public Point getStart(){\n\t\treturn bigstart;\n\t}",
"private int[] defineStartingPos() {\n\t\tint[] positions = new int[4];\n\t\tif(initPos.equals(UP)) {\n\t\t\tpositions[0] = 0;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = 1;\n\t\t}else if(initPos.equals(DOWN)) {\n\t\t\tpositions[0] = size-1;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = -1;\n\t\t}else if(initPos.equals(LEFT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = 0;\n\t\t\tpositions[3] = 1;\n\t\t}else if(initPos.equals(RIGHT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = size-1;\n\t\t\tpositions[3] = -1;\n\t\t}\n\t\treturn positions;\n\t}",
"public Point getStartPosition()\r\n\t{\r\n\t\treturn startPosition;\r\n\t}",
"public int getStart() {\r\n return start;\r\n }",
"private static int startInt(int gridSize) {\n StringBuilder sb = new StringBuilder();\n for (int i = 1; i <= gridSize; i++) {\n sb.append(i);\n }\n return Integer.parseInt(sb.toString());\n }",
"public int getStart() {\n\t\t\treturn start;\n\t\t}",
"public int getStart() {\n return start;\n }",
"public int getStart() {\n return this.start;\n }",
"public abstract int getStartPosition();",
"private static long getTimestampStart(long timestamp, long start) {\n long timestampStart = 0;\n for (long i = timestamp; i >= timestamp-60; i--) {\n if ((i-start) % 60 == 0) {\n timestampStart = i;\n break;\n }\n }\n return timestampStart;\n }",
"public int getStart() {\n return start;\n }",
"public int getStart()\n {\n return start;\n }",
"@Override\r\n \tpublic final int getStartPos() {\r\n \t\treturn sourceStart;\r\n \t}",
"org.mojolang.mojo.lang.Position getStartPosition();",
"public java.lang.Short getStartDigitPosition() {\r\n return startDigitPosition;\r\n }",
"private double getStartY() {\n\t\treturn Math.min(y1, y2);\n\t}",
"public int getStartIdx() {\n return this.startIdx;\n }",
"public Position getStartPosition() {\n return start;\n }",
"public Point getStartPoint() {\n\t\treturn startPoint;\n\t}",
"public int getStartPosition() {\n return startPosition_;\n }",
"@Override\n\tpublic int getStartOffset() {\n\t\treturn 0;\n\t}",
"public int getFirstPos ()\r\n {\r\n return glyph.getBounds().y;\r\n }",
"public int getStartPos() {\n return startPos;\n }",
"int getStart();",
"Constant getStartOffsetConstant();",
"Coordinate getMinX();",
"public double getStartLat() {\n\t\treturn startLat;\n\t}",
"public BigInteger getStartValue()\r\n {\r\n return this.startValue;\r\n }",
"public double getStart() {\n return start;\n }",
"int getStartCharIndex();",
"public static Pose getHab1CenterLeftStartPose() { rightSide = false; return centerLeftStartPose; }",
"public int getStartPosition() {\n return startPosition_;\n }",
"public int getStartOffset() {\n return startPosition.getOffset();\n }",
"public static int getStartState() {\n int startState = 1;\n int n = 1;\n for (int i = 2; i <= state; i ++) {\n if (stateList.get(i).getN1() == n || stateList.get(i).getN2() == n) {\n startState = i;\n n = i;\n }\n }\n return startState;\n }",
"public int getStartOffset() {\n return startOffset;\n }",
"MinmaxEntity getStart();",
"public Point getStartPoint() {\n // First, this is Settler's location\n UnitList units = unitService.findByClassUuid(Settlers.CLASS_UUID);\n if (units != null && !units.isEmpty()) {\n return units.getAny().getLocation();\n }\n\n // If Settlers were destroyed then it is the first city's location\n City city = cityService.getAny();\n if (city != null) {\n return city.getLocation();\n }\n\n // If there is no cities, then the first Unit's location\n AbstractUnit unit = unitService.getAny();\n if (unit != null) {\n return unit.getLocation();\n }\n\n // If there is no units then (0, 0)\n return new Point(0, 0);\n }",
"double getStartY();",
"public final int startOffset() {\n return startOffset;\n }",
"private int transformXStart(int x)\r\n\t{\r\n\t\treturn (int) Math.floor((x-0.5)/referenceImage.getWidth() * displayedImage.getWidth());\r\n\t}",
"public double getAbsPosition() {\n double distCM = ToFSerial.get() - startDist;\n //System.out.println(\"Dist in CM \" + distCM);\n\n double distIn = distCM * Constants.k_CMtoIn;\n //System.out.println(\"Dist in In \" + distIn);\n\n return (int) (1000 * distIn); \n\n }",
"public int getPageStart(){\r\n\t\treturn (this.page -1) * perPageNum;\r\n\t}",
"public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}",
"public Position getStartPosition()\r\n\t{\r\n\t\treturn startPosition;\r\n\t}",
"public final native double getStartIndex() /*-{\n return this.getStartIndex();\n }-*/;",
"@Override\n public int[] getStartPosition() {\n if(maze != null){\n int[] position = new int[2];\n position[0] = maze.getStartPosition().getRowIndex();\n position[1] = maze.getStartPosition().getColumnIndex();\n return position;\n }\n return null;\n }",
"public byte getStartSquare (){\r\n\t\treturn start_sq;\r\n\t}",
"public double getStartAngle();",
"public Vertex getStart()\n\t{\n\t\treturn start.copy();\n\t}",
"public void initStartPoint(GeoPointND p, int number);",
"public int getStart ()\n {\n\n return this.start;\n\n }",
"public int getMidPos ()\r\n {\r\n if (getLine()\r\n .isVertical()) {\r\n // Fall back value\r\n return (int) Math.rint((getFirstPos() + getLastPos()) / 2.0);\r\n } else {\r\n return (int) Math.rint(\r\n getLine().yAt((getStart() + getStop()) / 2.0));\r\n }\r\n }",
"@Override\n public double getPosX() {\n return this.pos[0];\n }",
"private int getLeftIdx(int pos) {\n return 2 * pos + 1;\n }",
"private int getStartOfBEDentry(final BEDentry entry ) {\n\t\tif( entry.getStrand().equals(\"+\") ) { \n\t\t\treturn entry.getChromStart(); \n\t\t} else {\n\t\t\treturn entry.getChromEnd(); \n\t\t}\n\t}",
"public com.a9.spec.opensearch.x11.QueryType.StartIndex xgetStartIndex()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.StartIndex target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.StartIndex)get_store().find_attribute_user(STARTINDEX$10);\n return target;\n }\n }"
] | [
"0.70743734",
"0.69460815",
"0.6877432",
"0.68627393",
"0.68238384",
"0.67562395",
"0.67001206",
"0.669495",
"0.66846186",
"0.66677886",
"0.66568667",
"0.6646399",
"0.6572105",
"0.6562729",
"0.6537688",
"0.6484372",
"0.6483621",
"0.6482063",
"0.6467554",
"0.6395915",
"0.6389511",
"0.637179",
"0.63627416",
"0.63602024",
"0.6347485",
"0.63288957",
"0.632885",
"0.6269385",
"0.6249043",
"0.62451535",
"0.6244364",
"0.623414",
"0.6173553",
"0.61707556",
"0.61452764",
"0.614491",
"0.6133264",
"0.61213005",
"0.61034834",
"0.60994136",
"0.60950387",
"0.60930467",
"0.60930467",
"0.609219",
"0.60759616",
"0.6062507",
"0.60600483",
"0.60564077",
"0.60464",
"0.60331",
"0.60253376",
"0.60163265",
"0.60158277",
"0.6012862",
"0.60050267",
"0.6004906",
"0.5998511",
"0.5990719",
"0.5990566",
"0.5986523",
"0.59748816",
"0.597481",
"0.5970417",
"0.5962663",
"0.5961057",
"0.59604424",
"0.59481174",
"0.5942538",
"0.5937583",
"0.59260774",
"0.5916287",
"0.5905802",
"0.59039",
"0.5897798",
"0.58974594",
"0.5896489",
"0.5887946",
"0.58756083",
"0.587236",
"0.58695436",
"0.5862643",
"0.58488786",
"0.58340234",
"0.582484",
"0.58165276",
"0.58163047",
"0.58161515",
"0.5812602",
"0.5809571",
"0.580675",
"0.5802256",
"0.5801344",
"0.5797075",
"0.5787388",
"0.5783388",
"0.57826257",
"0.5773502",
"0.5764226",
"0.5758738",
"0.575605"
] | 0.5888629 | 76 |
Return the end position following 1based fully closed conventions. The length of a feature is end start + 1; | @Override
public int getEnd() {
return feature.getEnd();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getEndIndex() {\n return start + length - 1;\n }",
"org.mojolang.mojo.lang.Position getEndPosition();",
"public Vector2 getEndLoc( ) { return endLoc; }",
"int getEndPosition();",
"public int getStop ()\r\n {\r\n return (getStart() + getLength()) - 1;\r\n }",
"int getEndSegment();",
"public int getEndPosition() {\n return getStartPosition() + getLength();\n }",
"String getEndRange();",
"org.hl7.fhir.Integer getEnd();",
"public abstract int getEndIndex();",
"public int getEnd() {\n switch(getType()) {\n case Insertion:\n case SNP:\n case InterDup:\n case TandemDup:\n case TransDup:\n return pos;\n default:\n return pos + maxLen() - 1;\n }\n }",
"int getEndCharIndex();",
"private int getNamespaceEnd() {\n int index = data.substring(tokenStart, tokenEnd).indexOf(\".\");\n return index != -1 ? index + tokenStart : tokenEnd;\n }",
"public int getEndPosition() {\n return endPosition_;\n }",
"String getDefiningEnd();",
"@Override\n public final int getEndIndex() {\n return upper;\n }",
"public GeoPoint getEnd(){\n return end;\n }",
"public WorldCoordinate getEnd() {\r\n\t\treturn this.end;\r\n\t}",
"public int getEndPosition() {\n return endPosition_;\n }",
"public int getEnd() {\n if (Span_Type.featOkTst && ((Span_Type)jcasType).casFeat_End == null)\n jcasType.jcas.throwFeatMissing(\"End\", \"Span\");\n return jcasType.ll_cas.ll_getIntValue(addr, ((Span_Type)jcasType).casFeatCode_End);}",
"public Point end() {\r\n return this.end;\r\n }",
"public Point getEndPosition()\r\n\t{\r\n\t\treturn endPosition;\r\n\t}",
"public Coordinate getEnd( )\n\t{\n\t\treturn endLocation;\n\t}",
"public double getEnd();",
"public int getEndIdx() {\n return this.endIdx;\n }",
"public Position getEndPosition() {\n return endPosition;\n }",
"net.opengis.gml.x32.TimePositionType getEndPosition();",
"public int getEnd() {\r\n\t\treturn end;\r\n\t}",
"public int getEnd() {\r\n return end;\r\n }",
"public int getEnd()\n {\n return end;\n }",
"public int getEndIndex() {\n return this.endIndex;\n }",
"public int getEnd() {\n\t\treturn end;\n\t}",
"private int getEndNodeIndex(int validStartIndexOfStr, int len) {\n\t\treturn (validStartIndexOfStr + len - 2) / 2;\n\t}",
"public int getEnd() {\n return end;\n }",
"org.mojolang.mojo.lang.PositionOrBuilder getEndPositionOrBuilder();",
"public int getEndLIne() {\r\n return this.endLine;\r\n }",
"public int getEnd() {\n return this.end;\n }",
"@Override\r\n \tpublic final int getEndPos() {\r\n \t\treturn sourceEnd;\r\n \t}",
"public int getEndY() {\r\n\t\treturn endY;\r\n\t}",
"private int getDistanceEnd() {\n int lastPoint = getNumPoints() - 1;\n return getDistanceIndex(lastPoint) + lastPoint;\n }",
"public int getEndx(){\n\t\treturn endx;\n\t}",
"public int getEndOffset() {\n return endPosition.getOffset();\n }",
"public double getEnd() {\n return end;\n }",
"public double getEndLon() {\n\t\treturn endLon;\n\t}",
"public int getEndy(){\n\t\treturn endy;\n\t}",
"public int findGeneStop(int geneStart)\n {\n //TODO: find the location of the next stop codon (TGA/TAA/TAG)\n // after the start of the gene.\n return -1;\n }",
"public int getEndNum() {\r\n return this.endNum;\r\n }",
"public int getEndIndex() {\r\n\t\treturn endIndex;\r\n\t}",
"public int getEndX() {\r\n\t\treturn endX;\r\n\t}",
"public int getEndRange() {\r\n\t\treturn lookupValue(Params.END_RANGE);\r\n\t}",
"@Override\n public int getStart() {\n return feature.getStart();\n }",
"private int alwaysMoreOpen(int start, int end, String s){\n int diff=0, temp=0, res=0;\n for(int i=end; i>start;i--){\n if(s.charAt(i)==')') diff++;\n else {\n if(diff>0){\n diff--;\n temp+=2;\n }\n else{\n res=Math.max(temp,res);\n temp=0;\n }\n }\n }\n return Math.max(temp,res);\n}",
"int countSpecifiedEnds();",
"String getEnd();",
"public Vector3f getEndPosition()\n {\n return endPosition;\n }",
"private int getIndexOfEnd(String document) {\n int indexOfEnd = -1;\n indexOfEnd = document.indexOf(\"</span> °C\");\n return indexOfEnd;\n }",
"public char getEndStartModifier() {\n\t\treturn (end_start_modifier);\n\t}",
"public Integer getEndOffset() {\n return this.endOffset;\n }",
"@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual2() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = false;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 1);\r\n\t}",
"TrackingToken upperBound();",
"int getEndLineNumber();",
"public int getEndColumnNumber() {\n return this.endColumn;\n }",
"public double getEndY() {\n\treturn v2.getY();\n }",
"public abstract HalfOpenIntRange approximateSpan();",
"private Point getEnd() {\n if (goal == null) {\n if (target == null) {\n return null;\n }\n return target.getPosition();\n } else {\n return goal;\n }\n }",
"int getEnd();",
"@Test\r\n\tpublic void testCheck_featureLocationBeginandEndwithNs() {\r\n\t\tint beginN = 10;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 1, (long) 8));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tFeature feature2 = featureFactory.createFeature(\"feature2\");\r\n\t\tOrder<Location> order2 = new Order<Location>();\r\n\t\torder2.addLocation(locationFactory.createLocalRange((long) 40,\r\n\t\t\t\t(long) 46));\r\n\t\tfeature2.setLocations(order2);\r\n\t\tentry.addFeature(feature1);\r\n\t\tentry.addFeature(feature2);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN,false).size() ==2);\r\n\t\t}",
"public int end() { return _end; }",
"public Integer getEndMark() {\n return endMark;\n }",
"public String getEndAt() {\n return endAt;\n }",
"IShape getEndShape();",
"MinmaxEntity getEnd();",
"public String findFromToEnd(int end) {\n StringBuilder sb = new StringBuilder() ;\n ArrayList paths = new ArrayList() ;\n while (end != start) {\n\n paths.add(\"From \" + pred[end] + \" go to \" + end + \"\\n\") ;\n end = pred[end] ;\n\n }\n int count = paths.size() ;\n while (count > 0) {\n sb.append(paths.get(count-1)) ;\n count-- ;\n }\n return sb.toString() ;\n\n }",
"public int getEndOffset() {\n return endOffset;\n }",
"public int endIndex(){\n\t\treturn this.startIndex()+this.getRows()-1;\n\t}",
"int getOpenBodyEnd() {\n return this.fOpenBodyRange[1];\n }",
"public double getEndY()\n {\n return endycoord; \n }",
"public long getComplementary_end() {\n return complementary_end;\n }",
"String getEndSplited();",
"Integer getPortRangeEnd();",
"public String getEndPointEndingStyle() {\n/* 776 */ COSBase base = getCOSObject().getDictionaryObject(COSName.LE);\n/* 777 */ if (base instanceof COSArray && ((COSArray)base).size() >= 2)\n/* */ {\n/* 779 */ return ((COSArray)base).getName(1, \"None\");\n/* */ }\n/* 781 */ return \"None\";\n/* */ }",
"@Override\r\n \tpublic final int getLength() {\r\n \t\tAssert.isTrue(hasSourceRangeInfo());\r\n \t\treturn getEndPos() - getStartPos();\r\n \t}",
"public int getLastPos ()\r\n {\r\n return (getFirstPos() + getThickness()) - 1;\r\n }",
"@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual1() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = true;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 0);\r\n\t}",
"public Point getEndPosition() {\n return this.movementComposer.getTargetPosition();\n }",
"@Override\n\tpublic int getEndOffset() {\n\t\treturn 0;\n\t}",
"public int getEndLine() {\r\n \r\n return endLine;\r\n }",
"public int length() { return _end - _start; }",
"public int upperBound() {\n\t\tif(step > 0)\n\t\t\treturn last;\n\t\telse\n\t\t\treturn first;\n\t}",
"private SourcePosition getTreeEndLocation() {\n return lastSourcePosition;\n }",
"public OptionalInt getEndOffset() {\n return endOffset >= 0 ? OptionalInt.of(endOffset) : OptionalInt.empty();\n }",
"public int getCharEnd() {\n\t\treturn -1;\n\t}",
"public StrColumn getPdbxRange2EndLabelInsCode() {\n return delegate.getColumn(\"pdbx_range_2_end_label_ins_code\", DelegatingStrColumn::new);\n }",
"int getEndSearch();",
"public int getEndIndex(Color col) {\n\t\tint endIndex;\n\t\tswitch (col) {\n\t\tcase RED:\n\t\t\tendIndex = RED_END;\n\t\t\tbreak;\n\t\tcase GREEN:\n\t\t\tendIndex = GREEN_END;\n\t\t\tbreak;\n\t\tcase YELLOW:\n\t\t\tendIndex = YELLOW_END;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tendIndex = BLUE_END;\n\t\t}\n\t\treturn endIndex;\n\t}",
"public double getEndX() {\r\n return endx;\r\n }",
"public int getRangeEnd() {\n return currentViewableRange.getTo();\n }",
"public int maxSentenceOffset();",
"int getDeclarationSourceEnd();",
"public int getEnd() {\r\n\t\treturn this.offset + this.numResults;\r\n\t}"
] | [
"0.6677171",
"0.6653356",
"0.6624411",
"0.6468258",
"0.64264023",
"0.6384222",
"0.6303248",
"0.62749726",
"0.6239518",
"0.6232005",
"0.62241787",
"0.6208141",
"0.611266",
"0.60650706",
"0.6053322",
"0.603969",
"0.6032579",
"0.6017907",
"0.6017406",
"0.6009096",
"0.59995717",
"0.5976567",
"0.59651417",
"0.5946769",
"0.5923591",
"0.59194255",
"0.5912552",
"0.59054565",
"0.5894346",
"0.58930165",
"0.5852432",
"0.58521515",
"0.58339256",
"0.5828216",
"0.5805344",
"0.5802976",
"0.5788277",
"0.5784368",
"0.5777834",
"0.57766587",
"0.5769462",
"0.57670045",
"0.5759923",
"0.57561",
"0.5754058",
"0.5744691",
"0.57438546",
"0.5734454",
"0.57293195",
"0.5715582",
"0.56593704",
"0.5657437",
"0.5655167",
"0.5649615",
"0.5633344",
"0.56019354",
"0.55906713",
"0.5588466",
"0.5581918",
"0.5578874",
"0.5574638",
"0.5568267",
"0.55559695",
"0.55513674",
"0.5529954",
"0.5528397",
"0.552724",
"0.55246764",
"0.55163133",
"0.55084777",
"0.5503171",
"0.55011016",
"0.55000156",
"0.5494987",
"0.5493442",
"0.549283",
"0.5489311",
"0.54807264",
"0.5479596",
"0.5476637",
"0.5470544",
"0.5461716",
"0.5457928",
"0.5448015",
"0.54434204",
"0.5426767",
"0.5409414",
"0.5404905",
"0.5400674",
"0.5400483",
"0.53988314",
"0.53956276",
"0.53827906",
"0.5381851",
"0.5379639",
"0.5378164",
"0.5371582",
"0.53578264",
"0.53524005",
"0.5351329"
] | 0.72798866 | 0 |
TODO: this should be a Feature, actually | public Object getUnderlyingObject() {
return feature;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"Feature getFeature();",
"Feature getFeature();",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"String getFeature();",
"String getFeature();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"protected boolean func_70814_o() { return true; }",
"Feature createFeature();",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public int describeContents() { return 0; }",
"public void smell() {\n\t\t\n\t}",
"FeatureCall getFec();",
"protected void mo6255a() {\n }",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"interface Feature <T> {\n /**\n * @return original source of data.\n */\n Source source();\n\n /**\n * @return feature's data.\n */\n T data();\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"Context mo1490b();",
"private void test() {\n\n\t}",
"public final void mo51373a() {\n }",
"@Override\n protected void setup() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private FlyWithWings(){\n\t\t\n\t}",
"public void gored() {\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 mo4359a() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override public int describeContents() { return 0; }",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"public void method_4270() {}",
"public Features() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"FeatureConcept createFeatureConcept();",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void mo21877s() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"public void mo55254a() {\n }",
"public abstract void mo70713b();",
"private NamedFeature getUnigeneTestFeature(){\n BasicFeature testFeat = new BasicFeature(\"chr2\", 179908392, 179909870);\n testFeat.setName(\"hs.516555\");\n return testFeat;\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"public void identify() {\n\n\t}",
"public void mo1406f() {\n }",
"public interface PropertyAccess extends FeatureCall\n{\n}",
"Feature update(Feature feature);",
"@Override\n protected void initialize() {\n\n \n }",
"java.lang.String getHowToUse();",
"java.lang.String getHowToUse();",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\n public void setup() {\n }",
"@Override\n public void setup() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"public void mo21878t() {\n }",
"public void mo3376r() {\n }",
"@Override\n public String getFeature() {\n return this.exteriorFeature;\n }",
"@Override\n public void test() {\n \n }",
"@Override\r\n\t\tpublic Object getFeature(String feature, String version)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"private void m50366E() {\n }",
"public interface IFeature\n{\n\tGeppettoFeature getType();\n}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"public abstract void mo6549b();",
"@Override\n protected void initialize() \n {\n \n }",
"public void mo6081a() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"void mo57277b();"
] | [
"0.61189437",
"0.59151435",
"0.59151435",
"0.57538086",
"0.56732374",
"0.5660261",
"0.5638244",
"0.56282866",
"0.5544501",
"0.55416065",
"0.55416065",
"0.5535005",
"0.5528263",
"0.5522245",
"0.5522245",
"0.5514534",
"0.5487278",
"0.5478671",
"0.54554147",
"0.54268855",
"0.5382765",
"0.5380943",
"0.5372541",
"0.53690475",
"0.5363131",
"0.5353399",
"0.5349099",
"0.5349099",
"0.5349099",
"0.5349099",
"0.5349099",
"0.5349099",
"0.5349099",
"0.5345262",
"0.53450656",
"0.5294402",
"0.52885133",
"0.52785397",
"0.52785397",
"0.52785397",
"0.52785397",
"0.52785397",
"0.52785397",
"0.52761775",
"0.52737415",
"0.5270939",
"0.527032",
"0.52644193",
"0.5258379",
"0.5257464",
"0.5253593",
"0.52523184",
"0.5244208",
"0.52411264",
"0.5230628",
"0.5230469",
"0.5228879",
"0.5220335",
"0.5210594",
"0.52078176",
"0.5201877",
"0.5197573",
"0.5195209",
"0.5192932",
"0.5192932",
"0.51801765",
"0.5177452",
"0.5171509",
"0.5166732",
"0.5158262",
"0.51576877",
"0.51576877",
"0.5156432",
"0.5152734",
"0.51472163",
"0.51420593",
"0.5134372",
"0.5127729",
"0.5127729",
"0.5127444",
"0.51263",
"0.51257837",
"0.51246667",
"0.5123276",
"0.5122015",
"0.5118358",
"0.51168793",
"0.51113427",
"0.51043916",
"0.5103421",
"0.51033986",
"0.5102642",
"0.5102642",
"0.5101288",
"0.50987697",
"0.50985813",
"0.5095356",
"0.5092773",
"0.5091797",
"0.5087812",
"0.50875825"
] | 0.0 | -1 |
Delete in the database the company wich correspond to the id set and all the computer related to this company | public abstract void delete(int msg); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deleteComputerByCompany(Company company);",
"@Override\r\n\tpublic void deleteCompany(int compId) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"delete from companies where companyId=\" + compId;\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tstmt.executeUpdate(sql);\r\n\t\t\tSystem.out.println(\"Company with ID: \" + compId + \" was deleted\");\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"deleteCompany Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void deleteCompany(Company obj);",
"public void removeByCompanyId(long companyId);",
"@Override\r\n\tpublic void removeCompany(Company company) throws Exception {\r\n\r\n\t\tconnectionPool = ConnectionPool.getInstance();\r\n\t\tConnection connection = connectionPool.getConnection();\r\n\r\n\t\tString sql = \"delete from Company where ID = ?\";\r\n\r\n\t\ttry (PreparedStatement preparedStatement = connection.prepareStatement(sql)) {\r\n\r\n\t\t\tconnection.setAutoCommit(false);\r\n\t\t\tpreparedStatement.setLong(1, company.getCompanyId());\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t\tSystem.out.println(\"remove succeeded. Company removed id: \" + company.getCompanyId()); \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\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\ttry {\r\n\t\t\t\tconnection.rollback();\r\n\t\t\t} catch (SQLException e2) {\r\n\t\t\t\tthrow new Exception(\"DB error - failed to remove Company. companyId: \" + company.getCompanyId());\r\n\t\t\t}\r\n\t\t\tthrow new Exception(\"failed to remove Company. companyId: \" + company.getCompanyId());\r\n\t\t} finally {\r\n\t\t\tconnection.close();\r\n\t\t\tconnectionPool.returnConnection(connection);\r\n\t\t} \r\n\r\n\t}",
"@Override\n\t/**\n\t * Removes all Coupons from the Coupon table in the database related to\n\t * Company ID received\n\t */\n\tpublic void deleteCouponsByCompanyID(int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to remove Coupons related to specified\n\t\t\t// Company ID from the Coupon table via prepared statement\n\t\t\tString deleteCouponsByCompanyIDSQL = \"delete from coupon where id in (select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(deleteCouponsByCompanyIDSQL);\n\t\t\t// Set Company ID from variable that method received\n\t\t\tpstmt.setInt(1, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\t\t\tint resRemByComp3 = pstmt.executeUpdate();\n\t\t\tif (resRemByComp3 != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Coupons of specified Company have been deleted from Coupon table successfully\");\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupons related to\n\t\t\t\t// specified Company not found in the database\n\t\t\t\tSystem.out.println(\"Coupons removal has been failed - subject entries not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon removal from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupons removal has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"public void removeCompany(int id, String name) {\n }",
"public ResultSet deleteCo(Long cid) throws SQLException {\n\t\trs=DbConnect.getStatement().executeQuery(\"select * from company c,share_details s where c.comp_id=s.comp_id and c.comp_id=\"+cid+\" \");\r\n\t\treturn rs;\r\n\t}",
"public void removeCarritoDeCompras (Long compradorId) {\r\n\r\n CompradorEntity compradorEntity = compradorPersistence.find(compradorId); \r\n CarritoDeComprasEntity carroEntity = carroPersistence.find(compradorEntity.getCarritoDeCompras().getId());\r\n carroPersistence.delete(compradorEntity.getListaDeDeseos().getId());\r\n compradorEntity.setListaDeDeseos(null);\r\n carroEntity.setComprador(null);\r\n \r\n}",
"public int DelCompany(Long cid, String compname, Long shareamt, Long getnoShare) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from company where comp_id=\"+cid+\"\");\r\n\treturn i;\r\n}",
"public void unlinkAllCompanyCoupon(long companyId) throws SQLException;",
"@Override\n\tpublic void remove(cp_company cp) {\n\t\t\n\t}",
"@Override\n\t@Transactional(rollbackFor=RuntimeException.class)\n\tpublic void deleteOne(Long id){\n\t\tnew ComputerDao().deleteByCompany(id);\n\t\tdao.delete(id);\n\t}",
"@PostMapping(\"/api/delete/computers/{empID}/{pcID}\")\n public ResponseEntity removePcFromEmployee(@PathVariable (name=\"empID\") Integer id, @PathVariable (name=\"pcID\") Integer pcID) {\n Employee employee = employeeService.findAllPCs(id);\n List<Computer> computer = employee.getComputersToEmployee();\n\n for (int i=0; i<employee.getComputersToEmployee().size();i++){\n Integer searchedEmployeeID = employee.getComputersToEmployee().get(i).getId();\n if(searchedEmployeeID == pcID) {\n Computer computerToBeRemoved = employee.getComputersToEmployee().get(i);\n computer.remove(computerToBeRemoved);\n }\n }\n employee.setComputersToEmployee(computer);\n employeeService.saveEmployee(employee);\n\n return new ResponseEntity(\"PC was removed\", HttpStatus.OK);\n }",
"public Boolean deleteManagedCompany(int id) {\n \n Boolean result = false;\n \n try { \n Connection conn = this.databaseUtils.getConnection();\n dao.setConnection(conn);\n result = dao.delete(id);\n } catch (SQLException e) {\n Logger.getLogger(AppService.class.getName()).log(Level.SEVERE, null, e);\n }\n \n return result;\n }",
"public void removeCouponByCompany(Company company) throws DbException;",
"public int delComp(Long cid, String compname, String address, String city,\r\n\t\tString state, Long offno, Long faxno, String website, String eMail,\r\n\t\tLong shareamt, Long getnoShare)throws SQLException {\n\tLong id=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+cid+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tid=rs.getLong(1);\r\n\t}\r\n\tint i=DbConnect.getStatement().executeUpdate(\"Delete from login where login_id=\"+id+\"\");\r\n\treturn i;\r\n}",
"public void delete(Conseiller c) {\n\t\t\r\n\t}",
"void unsetCompanyBaseData();",
"public void removeByc(long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;",
"@Override\n public void deleteById(Long idCompte) {\n Session session = entityManager.unwrap(Session.class);\n Compte compte = session.get(Compte.class, idCompte);\n session.remove(compte);\n }",
"public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}",
"public void delete(Company company) {\r\n\t\tsessionFactory.getCurrentSession().delete(company);\r\n\t}",
"public void removeCustomerCoupon(Company company) throws DbException;",
"@Override\n\tpublic void delete(String cid) {\n\t\tCommodity commodity=this.getHibernateTemplate().get(Commodity.class, cid);\n\t\t System.out.println(\"查询完毕\");\n\t\t System.out.println(commodity.getCname());\n\t this.getHibernateTemplate().delete(commodity);\n\t}",
"public ResultSet Delete(Long cid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company_share where comp_id=\"+cid+\" \");\r\n\treturn rs;\r\n}",
"public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }",
"@Override\n\tpublic void deleteConseille(Conseille c) {\n\t\t\n\t}",
"public void vaciarCarrito() {\r\n String sentSQL = \"DELETE from carrito\";\r\n try {\r\n Statement st = conexion.createStatement();\r\n st.executeUpdate(sentSQL);\r\n st.close();\r\n LOG.log(Level.INFO,\"Carrito vaciado\");\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n \tLOG.log(Level.WARNING,e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }",
"public void deleteCompany(Long companyId) throws Exception {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n\n try {\n //Establish a connection from the connection manager\n connection = JdbcUtils.getConnection();\n\n //Creating the SQL query\n String sqlStatement = \"DELETE FROM companies WHERE company_id = ?\";\n\n //Combining between the syntax and our connection\n preparedStatement = connection.prepareStatement(sqlStatement);\n\n //Replacing the question marks in the statement above with the relevant data\n preparedStatement.setLong(1, companyId);\n\n //Executing the update\n int result = preparedStatement.executeUpdate();\n\n if (result == 0) {\n throw new ApplicationException(ErrorType.FAILED_DELETE_COMPANY, \"Failed to delete company\");\n }\n System.out.println(result + \" Company has been successfully deleted from DB\");\n\n } catch (Exception e) {\n throw new Exception(\"Failed to delete company \" + companyId, e);\n } finally {\n //Closing the resources\n JdbcUtils.closeResources(connection, preparedStatement);\n }\n }",
"void deleteAllCopiedComponent(RecordSet compRs);",
"public void delete(int id) {\n\t \t\n\t T entity = getEntityManager().find(getEntityClass(), id);\n\t System.out.print(\"------ \" + ((Conexion)entity).getCamposConexion().size()+ \" - - - - - \");\n\t getEntityManager().getTransaction().begin();\n\t getEntityManager().remove(entity);\n\t getEntityManager().getTransaction().commit();\n\t }",
"@Override\r\n\tpublic void deleteConcursoContrataById(int id) {\n\r\n\t}",
"public void DeleteActivity(iconnectionpool connectionPool, String id){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement(); \n String sql=\"delete from similarplaces where id=\"+id;\n stmt.executeUpdate(sql); \n }catch(Exception e){}\n }",
"public void removeByC_S(long companyId, int status);",
"public int delete(Computer computer) {\n\t\treturn delete(computer.getId());\n\t}",
"@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }",
"public void removeCustomerCompany(Long id) \n\t{\n\t\tQuery queryUsers = this.entityManager.createNamedQuery(\"CompanyUser.removeByCompanyId\");\n\t\tqueryUsers.setParameter(\"prCompanyId\", id);\n\t\tqueryUsers.executeUpdate();\n\t\tQuery queryCompany = this.entityManager.createNamedQuery(\"CustomerCompany.removeById\");\n\t\tqueryCompany.setParameter(\"prId\", id);\n\t\tqueryCompany.executeUpdate();\n\t}",
"public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);",
"public void deletar() {\n\t\tClienteDAO Clientedao = new ClienteDAO();\t\r\n\t\tClientedao.delete(this);\r\n\t\t\r\n\t\tnovoRegistro();\r\n\t\tnotifyObservers();\r\n\t}",
"@Override\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tcomproRepository.deleteById(id);\n\t}",
"@Test\n\tpublic void testDeleteCompanyApi() {\n\t\tCompany company = new Company(\"DataSolutionsPvtLtd\",\n\t\t\t\t\"Marthahalli road\", \"Bangalore\", \"India\", \"9880440671\");\n\t\tcompanyRepository.save(company);\n\n\t\tInteger companyId = company.getCompanyId();\n\n\t\t// Now Invoke the API to delete the Company\n\t\trestTemplate.delete(\"http://localhost:8888/companies/delete/\"\n\t\t\t\t+ companyId);\n\n\t\t// Try to fetch from the DB directly\n\t\tCompany companyFromDb = companyRepository.findOne(companyId);\n\t\t// and assert that there is no data found\n\t\tassertNull(companyFromDb);\n\t}",
"public void DeleteAllActivityUser(iconnectionpool connectionPool, String id){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement(); \n String sql=\"delete from similarplaces where id_user=\"+id;\n stmt.executeUpdate(sql); \n }catch(Exception e){}\n }",
"public void Delete() {\r\n try {\r\n\r\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\r\n\r\n } catch (Exception e) {}\r\n\r\n\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n try {\r\n conn =\r\n DriverManager.getConnection(\"jdbc:mysql://127.0.0.1/logingui?user=root&password=\");\r\n\r\n // Do something with the Connection\r\n stmt = conn.createStatement();\r\n\r\n String del = delUser.getText();\r\n\r\n if (stmt.execute(\"DELETE FROM `logingui`.`company` WHERE `id`='\" + del + \"';\")) {\r\n\r\n }\r\n JOptionPane.showMessageDialog(this, \"User deleted from the system!\");\r\n\r\n // loop over results\r\n\r\n } catch (SQLException ex) {\r\n // handle any errors\r\n System.out.println(\"SQLException: \" + ex.getMessage());\r\n System.out.println(\"SQLState: \" + ex.getSQLState());\r\n System.out.println(\"VendorError: \" + ex.getErrorCode());\r\n }\r\n }",
"@Transactional\n public void deleteBy(final Long companyId) {\n final Company company = companyRepository.findOne(companyId);\n if (company != null) {\n companyRepository.delete(company);\n }\n }",
"@Override\n\tpublic void deleteAll() throws Exception {\n\t\tcomproRepository.deleteAll();\n\t}",
"@Override\n\tpublic String deleteByCondition(Familybranch con, Model m) throws Exception {\n\t\treturn null;\n\t}",
"public int Rejectcomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from login where login_id=\"+idd+\"\");\r\n\treturn i;\r\n}",
"@Override\r\n\tpublic void delete(Iterable<? extends Candidat> entities) {\n\r\n\t}",
"@Override\n\tpublic boolean eliminar(Connection connection, Object DetalleSolicitud) {\n\t\tString query = \"DELETE FROM detallesolicitudes WHERE sysPK = ?\";\n\t\ttry {\t\n\t\t\tDetalleSolicitud detalleSolicitud = (DetalleSolicitud)DetalleSolicitud;\n\t\t\tPreparedStatement preparedStatement = (PreparedStatement) connection.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, detalleSolicitud.getSysPk());\n\t\t\tpreparedStatement.execute();\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t\treturn false;\n\t\t}//FIN TRY/CATCH\t\n\t}",
"public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }",
"public cleanCompany() {\n\n javaPostgreSQLBasic.setCredentialBD(\"localhost\", \"5432\", \"tachoCompany\", \"postgres\", \"200815238\");\n initComponents();\n this.getContentPane().setBackground(Color.BLACK);\n this.setLocationRelativeTo(null);\n this.setTitle(\"Menu Principal\");\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Img/LogoApp.png\")).getImage());\n rVentaServicio = new registroVentaServicio(this);\n alertas = new alertas(this);\n rCliente = new registroCliente(this);\n rServicio = new registroServicio(this);\n agenda = new agenda(this);\n }",
"public void eliminarCompraComic();",
"@Override\r\n\tpublic void deleteFamille (Long idFamilleComp) {\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\tObject C=session.get(Famille.class, idFamilleComp);\r\n \t\tif(C==null) throw new RuntimeException(\"FamilleComp non crées\");\r\n \t session.delete(C);\r\n \t session.getTransaction().commit();\r\n\t}",
"public void delete(Long compradorId) {\r\n CompradorEntity compradorEntity = em.find(CompradorEntity.class, compradorId);\r\n em.remove(compradorEntity);\r\n }",
"@Override\n\tpublic void quitar(Alumno alumno) {\n\t\tcomision.remove(alumno);\n\t}",
"@Override\n\tpublic String deleteByCondition(Familynames con, Model m) throws Exception {\n\t\treturn null;\n\t}",
"public int delete( Integer idConge ) ;",
"@Override\n\tpublic void RemoverCupons(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}",
"@Override\n\tpublic void deleteCamping(Long idC) {\n\t\tcampingRepo.deleteById(idC);\n\t}",
"public void delete(ControlAcceso entity) {\n\n\t}",
"@Test\r\n public void deleteCarritoDeComprasTest() {\r\n System.out.println(\"d entra\"+data);\r\n CarritoDeComprasEntity entity = data.get(0);\r\n carritoDeComprasPersistence.delete(entity.getId());\r\n CarritoDeComprasEntity deleted = em.find(CarritoDeComprasEntity.class, entity.getId());\r\n Assert.assertNull(deleted);\r\n System.out.println(\"d voy\"+data);\r\n }",
"private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }",
"public void deleteCita(int id){\n try {\n PreparedStatement preparedStatement = con.prepareStatement(\"DELETE FROM paciente WHERE id_paciente=?;\");\n preparedStatement.setInt(1,id);\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public static void eliminarTodasLasBasesDeCalculoCptos() {\n\t\tnew Delete().from(BaseCalculoConcepto.class).execute();\n\t}",
"@Override\n\tpublic Result delComBorrowings(String id) {\n\t\tString[] item = id.split(\",\");\n\t\tint ret = 0;\n\t\tfor (int i = 0; i < item.length; i++) { \n\t\t\tret = comBorrowingsMapper.deleteByPrimaryKey(Long.parseLong(item[i])); \n\t\t}\n\t\tif (ret == 0) {\n\t\t\treturn Result.build(500, \"ɾ³ýʧ°Ü£¡\");\n\t\t}\n\t\treturn Result.ok();\n\t}",
"public void removeByUuid_C(String uuid, long companyId);",
"public void removeByUuid_C(String uuid, long companyId);",
"public void removeByUuid_C(String uuid, long companyId);",
"public void deleteCompanyById(long companyId) throws Exception {\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\n\t\ttry {\n\t\t\tconnection = JdbcUtils.getConnection();\n\t\t\t\n\t\t\t// Creating the SQL query\n\t\t\tString sqlStatement = \"DELETE FROM `javaproject`.`companies` WHERE `Company_ID` = ?;\";\n\t\t\t\n\t\t\t// Combining between the syntax and our connection\n\t\t\tpreparedStatement = connection.prepareStatement(sqlStatement);\n\t\t\t\n\t\t\t// Replacing the question marks in the statement above with the relevant data\n\t\t\tpreparedStatement.setLong(1, companyId);\n\t\t\t\n\t\t\t// Executing the update\n\t\t\tpreparedStatement.executeUpdate();\n\t\t\n\t} catch (SQLException e) {\n\t\t// **If there was an exception in the \"try\" block above, it is caught here and\n\t\t// notifies a level above.\n\t\te.printStackTrace();\n\t\tthrow new ApplicationException(e,ErrorType.GENERAL_ERROR,\n\t\t\t\tDateUtils.getCurrentDateAndTime() + \"FAILED to Delete a company\");\n\n\t\t// Closing the resources\n\t\t} finally {\n\t\t\tJdbcUtils.closeResources(connection, preparedStatement);\n\t\t}\n\t}",
"public String deleteAccount(int companyId) {\n\t\tfactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);\n\t\tEntityManager em = factory.createEntityManager();\t\n\t\t\n\t\t//select business account matching the company id submitted in the argument\n\t\t\tem.getTransaction().begin();\n\t\t\tQuery myQuery = em.createQuery(\"SELECT b FROM BusinessAccount b WHERE b.id=:id\");\n\t\t\tmyQuery.setParameter(\"id\", companyId);\n\t\t\tList<BusinessAccount> accountList=myQuery.getResultList();\n\t\t\t\n\t\t\tem.remove(accountList.get(0));\t//remove this account using JPA\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t\t\n\t\t\treturn \"delete\";\n\t\t}",
"@Override\n\tpublic DataVO<CitrixDesktopMachine> deletes(CitrixDesktopMachineForm f) {\n\t\treturn null;\n\t}",
"public void delete() \n\t\t\t\tthrows model.ConsistencyException, PersistenceException{\n //TODO Check delegation to abstract class and overwrite if necessary!\n this.getMyCONCMModelItem().delete();\n }",
"public void delRelations();",
"void DeleteCompteUser(int id);",
"@Override\r\n\tpublic ResponseEntity<String> deleteCompany(int companyCode) {\n\t\tcompanyRepository.deleteById(companyCode);\r\n\t\treturn new ResponseEntity<>(\"Company has been Deleted\", HttpStatus.OK);\r\n\t}",
"@Override\n public void deletar(Object pacienteParametro) {\n Paciente paciente;\n paciente = (Paciente) pacienteParametro;\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n em.getTransaction().begin();\n em.remove(em.merge(paciente));\n em.getTransaction().commit();\n em.close();\n factory.close();\n }",
"int deleteByPrimaryKey(String idTipoComprobante) throws SQLException;",
"public void eliminarDiferenciasRegistradas(Integer codigoCompania, Collection<Long> codigosProcesoLogistico) throws SICException;",
"@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}",
"private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }",
"@Override\n\tpublic void delete(Connection c, Integer id) throws SQLException {\n\n\t}",
"public int deleteByCompanyid(Integer value) throws SQLException \n {\n Connection c = null;\n PreparedStatement ps = null;\n try \n {\n c = getConnection();\n ps = c.prepareStatement(\"DELETE FROM sampletype WHERE companyid=?\");\n Manager.setInteger(ps, 1, value);\n return ps.executeUpdate();\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }",
"public void effacerProduit(String id, Connection myConn) throws SQLException {\n PreparedStatement myStmt = null;\n\n String sqlExecute = \"DELETE FROM enseignant WHERE id_enseignant ='\" + id + \"'\";\n try {\n myStmt = myConn.prepareStatement(sqlExecute);\n myStmt.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n myConn.close();\n myStmt.close();\n }\n }",
"void unsetAuditingCompany();",
"public void removeAll() throws SystemException {\n\t\tfor (CompanyAg companyAg : findAll()) {\n\t\t\tremove(companyAg);\n\t\t}\n\t}",
"public void removeByUuid_C(java.lang.String uuid, long companyId);",
"public void deletar(int codigo) throws SQLException{\r\n conecta = FabricaConexao.conexaoBanco();\r\n sql = \"delete from conserto where concodigo =? \";\r\n pstm = conecta.prepareStatement(sql);\r\n pstm.setInt(1, codigo);\r\n pstm.execute();\r\n FabricaConexao.fecharConexao();\r\n \r\n }",
"public int delete( Conge conge ) ;",
"public void deleteFromCarDriverByCarId(int id) {\n\t\tTransaction transaction = null;\n\t\ttry (Session session = HibernateUtil.getSessionFactory().openSession()) {\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t Query query = session.createQuery(\"from car\");\n\t\t\t List<Car> cars = query.getResultList();\n\t\t\tSystem.out.println(cars);\n//\t\t\tquery.executeUpdate();\n\t\t\ttransaction.commit();\n\t\t} catch (Exception e) {\n\t\t\tif (transaction != null) {\n\t\t\t\ttransaction.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void remove(ComplexCar[] cars) throws DatabaseTestException;",
"public void delete(Calificar c){\n Session session = sessionFactory.openSession();\n \n Transaction tx = null;\n \n try{\n tx = session.beginTransaction();\n \n session.delete(c);\n tx.commit();\n }\n catch(Exception e){\n if(tx != null){ tx.rollback(); }\n e.printStackTrace();\n }\n finally { session.close(); }\n }",
"public void del(Connection con) \n throws qdbException\n {\n try {\n PreparedStatement stmt = con.prepareStatement(\n \" DELETE From DisplayOption WHERE \" \n + \" dpo_res_id = ? AND \" \n + \" dpo_view = ? \" );\n \n stmt.setLong(1,dpo_res_id);\n stmt.setString(2,dpo_view); \n \n stmt.executeUpdate(); \n stmt.close();\n \n } catch(SQLException e) {\n throw new qdbException(\"SQL Error: \" + e.getMessage()); \n }\n }",
"public void eliminarNovedadesRegistradas(Integer codigoCompania, Collection<Long> codigosProcesoLogistico) throws SICException;",
"public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}",
"public void deleteHostel(int id) {\n hostelRepository.deleteById(id);\n\n }",
"@Override\n\tpublic void delete(Brand brand) {\n \tsql=\"delete from brands where id=?\";\n \ttry {\n\t\t\tquery=connection.prepareStatement(sql);\n\t\t\tquery.setInt(1, brand.getId());\n\t\t\tquery.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tnew Exception(e);\n\t\t}\n\t}",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 삭제를 하다.\");\n\t}",
"public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n }\r\n super.getBasebo().remove(uploads);\r\n }",
"@Override\n\tpublic Result delete(CurriculumVitae entity) {\n\t\treturn null;\n\t}",
"public void delete(Object bo) {\r\n getPersistenceBrokerTemplate().delete(bo);\r\n }"
] | [
"0.79763454",
"0.6745276",
"0.67125463",
"0.660694",
"0.6599718",
"0.6494281",
"0.6471491",
"0.64496815",
"0.64158976",
"0.6375126",
"0.63090545",
"0.62870926",
"0.6268732",
"0.62384224",
"0.61908114",
"0.6180618",
"0.6171334",
"0.61705947",
"0.61429423",
"0.61429185",
"0.6138506",
"0.6066551",
"0.60658747",
"0.60615826",
"0.59717023",
"0.596961",
"0.59655523",
"0.5934961",
"0.5923573",
"0.5895576",
"0.58771366",
"0.58511215",
"0.58449554",
"0.57915616",
"0.5789015",
"0.57873803",
"0.57668257",
"0.57652444",
"0.5758358",
"0.57489526",
"0.5740242",
"0.573479",
"0.57299876",
"0.572778",
"0.5717225",
"0.57145804",
"0.5696508",
"0.5688226",
"0.5657713",
"0.56242275",
"0.5615425",
"0.56114763",
"0.56098235",
"0.5605004",
"0.56008375",
"0.55974793",
"0.5592417",
"0.55893743",
"0.5583028",
"0.55758166",
"0.55497265",
"0.5535309",
"0.55233973",
"0.55196023",
"0.55188036",
"0.55102885",
"0.5498853",
"0.5498853",
"0.5498853",
"0.54925233",
"0.5479336",
"0.5468056",
"0.5468032",
"0.5466874",
"0.5462331",
"0.54457486",
"0.5445067",
"0.54416394",
"0.5435419",
"0.54318684",
"0.54305255",
"0.54223686",
"0.5391846",
"0.53882164",
"0.5379506",
"0.53773564",
"0.53752404",
"0.5369761",
"0.536971",
"0.53664285",
"0.53629875",
"0.53582656",
"0.5353963",
"0.53528374",
"0.53527737",
"0.5350262",
"0.53477156",
"0.5346018",
"0.5339186",
"0.53368485",
"0.53346986"
] | 0.0 | -1 |
Return the Company wich correspond to the id set | public abstract Company get(int id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Company getCompany(int id);",
"public Company findCompany(long id);",
"Optional<Company> getCompany(long id);",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"@Override\r\n\tpublic Company getAllCompaniesById(Integer id) {\r\n\t\tString methodName = \"getAllCompaniesById(Integer id)\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\tlog.debug(\"id value is::\"+id);\r\n\t\treturn companyRepository.findCompanyById(id.longValue());\r\n\t}",
"public void getFindByIdCompany() {\n log.info(\"CompaniesContactsBean => method : getFindByIdCompany()\");\n\n log.info(\"ID company\" + companiesBean.getCompaniesEntity().getId());\n this.companiesContactsEntityList = findByIdCompany(companiesBean.getCompaniesEntity());\n }",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"public ManagedCompany getManagedCompany(int id) {\n \n ManagedCompany result = null;\n \n try {\n Connection conn = this.databaseUtils.getConnection();\n dao.setConnection(conn);\n result = dao.getItemById(id);\n } catch (SQLException e) {\n Logger.getLogger(AppService.class.getName()).log(Level.SEVERE, null, e);\n }\n \n return result;\n }",
"@Override\n\tpublic Company getOne(Long id) {\n\t\treturn dao.getById(id);\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _second.getCompanyId();\n\t}",
"public CompanyTO getCompany() {\n\t\t\r\n\t\treturn CompanyService.getInstance().getCompany();\r\n\t}",
"public String getCompanyId() {\r\n return companyId;\r\n }",
"public String getCompanyId() {\r\n return companyId;\r\n }",
"public String getCompanyId() {\n return companyId;\n }",
"public int getCompanyId() {\n return companyId;\n }",
"public String getCompanyId()\n {\n return companyId;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"public Long getCompanyId() {\n return companyId;\n }",
"public Integer getCompanyId() {\n return companyId;\n }",
"public Integer getCompanyId() {\n return companyId;\n }",
"public long getCompanyId() {\n return companyId;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}",
"public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}",
"public Integer getCompanyId() {\n return this.companyId;\n }",
"public List<Company> getCompanys() {\n\t\treturn companyDao.findAll();\n//\t\treturn companies;\n\t}",
"@Override\r\n\tpublic Company getAllCompaniesByCode(Integer code) {\r\n\t\tString methodName = \"getAllCompaniesById(Integer id)\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\tlog.debug(\"company code is::\"+code);\r\n\t\treturn companyRepository.findCompanyByCode(code.longValue());\r\n\t}",
"static Company getCompany(SQLiteDatabase db, String companyId) {\n Cursor cursor = db.query(COMPANY_TABLE, null, COMPANY_ID + \" = ?\", new String[] { companyId }, null, null, null);\n List<Company> list = new LinkedList<Company>();\n if (cursor.moveToFirst()) {\n int idIndex = cursor.getColumnIndex(COMPANY_ID);\n int nameIndex = cursor.getColumnIndex(COMPANY_NAME);\n int logoIndex = cursor.getColumnIndex(COMPANY_LOGO);\n int descriptionIndex = cursor.getColumnIndex(COMPANY_DESCRIPTION);\n int lastUpdatedIndex = cursor.getColumnIndex(COMPANY_LAST_UPDATED);\n int wasDeletedIndex = cursor.getColumnIndex(COMPANY_WAS_DELETED);\n\n do {\n if(cursor.getString(idIndex).equals(companyId)) {\n Company company = new Company();\n company.companyId = cursor.getString(idIndex);\n company.name = cursor.getString(nameIndex);\n company.companyLogo = cursor.getString(logoIndex);\n company.companyDescription = cursor.getString(descriptionIndex);\n company.lastUpdatedDate = cursor.getDouble(lastUpdatedIndex);\n company.wasDeleted = (cursor.getInt(wasDeletedIndex) == 1);\n company.models = CarSQL.getCompanyCars(db,company.companyId);\n return company;\n }\n else\n Log.d(\"TAG\",\"can not give correct company companyID \" + companyId + \" from sql\");\n } while (cursor.moveToNext());\n }\n return null;\n }",
"public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}",
"@Override\n public long getCompanyId() {\n return _partido.getCompanyId();\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _paper.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _scienceApp.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _employee.getCompanyId();\n\t}",
"public Company getCompany() {\r\n return this.company;\r\n }",
"public Company getCompany() {\n return company;\n }",
"public Company getCompanyAt(int index) {\r\n\t\treturn companyDirectory.get(index); \r\n\t\t\t\r\n\t}",
"CompanyExtend selectByPrimaryKey(Long id);",
"public String getCompany() {\n return company;\n }",
"public Company getCompany() {\n\t\treturn company;\n\t}",
"public static List<Company> createCompanies() {\r\n\t\tList<Company> companies = new ArrayList<Company>();\r\n\t\tcompanies.add(createCompany(1, \"Pepcus\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help1\"));\r\n\t\tcompanies.add(createCompany(2, \"Google\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help2\"));\r\n\t\tcompanies.add(createCompany(3, \"Facebook\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help3\"));\r\n\t\tcompanies.add(createCompany(4, \"Suzuki\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help4\"));\r\n\t\tcompanies.add(createCompany(5, \"General Motors\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help5\"));\r\n\t\tcompanies.add(createCompany(6, \"L & T\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help6\"));\r\n\t\tcompanies.add(createCompany(7, \"General Electric\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help7\"));\r\n\t\tcompanies.add(createCompany(8, \"Oracle\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help8\"));\r\n\t\tcompanies.add(createCompany(9, \"Microsoft\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help9\"));\r\n\t\tcompanies.add(createCompany(10, \"Thinkhr\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help10\"));\r\n\t\treturn companies;\r\n\r\n\t}",
"@Override\r\n\tpublic Company getOneCompanyById(int compId) throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tString sql = \"select * from companies where companyId=\" + compId;\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(sql);\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tCompany comp = new Company();\r\n\t\t\t\tcomp.setCompId(compId);\r\n\t\t\t\tcomp.setCompName(rs.getString(\"companyName\"));\r\n\t\t\t\tcomp.setCompEmail(rs.getString(\"companyEmail\"));\r\n\t\t\t\tcomp.setCompPass(rs.getString(\"companyPass\"));\r\n\r\n\t\t\t\treturn comp;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Couldn't find any company by this ID: \" + compId);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"getOneCompanyById Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public java.util.Set<vn.com.phuclocbao.entity.CompanyEntity> getCompanies()\n {\n return companies;\n }",
"Company getOrCreateCompanyId(String companyID) throws Exception;",
"String getCompany();",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}",
"public String getCompany() {\n return company;\n }",
"public String getCompany() {\n return company;\n }",
"public String getCompany() {\n return (String) get(\"company\");\n }",
"public java.lang.Integer getCompany() {\n\treturn company;\n}",
"public String getCompany() {\r\n\t\treturn company;\r\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _esfTournament.getCompanyId();\n\t}",
"public SSNewCompany getCompany() {\n iCompany.setTaxrate1( iTaxRate1.getValue() );\n iCompany.setTaxrate2( iTaxRate2.getValue() );\n iCompany.setTaxrate3( iTaxRate3.getValue() );\n\n return iCompany;\n }",
"public Company getCompany(String companyShortName);",
"public com.hps.july.persistence.Company getCompany() throws Exception {\n\tif (getDivision() == null) {\n\t\tCompanyAccessBean bean = constructCompanies();\n\t\tif (bean != null)\n\t\t return (Company)bean.getEJBRef();\n\t\telse\n\t\t return null;\n\t}\n\telse\n\t\treturn null;\n\t\t\n}",
"public String getCompany() {\n\t\treturn company;\n\t}",
"public String getCompany() {\n\t\treturn company;\n\t}",
"@Nonnull\n public List<CustomerCompany> getCustomerCompanyOrFetch()\n throws ODataException\n {\n if (toCustomerCompany == null) {\n toCustomerCompany = fetchCustomerCompany();\n }\n return toCustomerCompany;\n }",
"public abstract List<Company> getAll();",
"List<Company> getCompanyList() throws DAOException ;",
"public EmsCompany getCompany(String uid)\n\t{\n\t\tEmsCompany company = new EmsCompany().findFirst(\"select * from ems_company where UID = '\"+uid+\"'\");\n\t\tif (company != null)\n\t\t{\n\t\t\treturn company;\n\t\t}\n\t\treturn null;\n\t}",
"public CustomerCompany findCustomerCompany(Long id) \n\t{\n\t\treturn this.entityManager.find(CustomerCompany.class, id);\n\t}",
"public Company findCompany(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;",
"public String getCompany()\r\n {\r\n return (m_company);\r\n }",
"Optional<Company> findOneById(String id);",
"Company getCompanyByUniversalName(String name);",
"@Override\r\n\tpublic List<Company> getAllCompanies() {\r\n\t\tString methodName = \"getAllCompanies()\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\treturn companyRepository.findAll();\r\n\t\t\r\n\t}",
"Optional<Company> findById(long company_id);",
"public List<Company> getAllCompanies() {\n\t\t \n\t List<Company> listOfCompanies = new ArrayList<Company>();\n\n\t Cursor cursor = mDatabase.query(MySQLiteHelper.TABLE_COMPANIES,\n\t mAllColumns, null, null, null, null, null);\n\n\t cursor.moveToFirst();\n\t while (!cursor.isAfterLast()) {\n\t Company hunt = cursorToCompany(cursor);\n\t listOfCompanies.add(hunt);\n\t cursor.moveToNext();\n\t }\n\t \n\t cursor.close();\n\t return listOfCompanies;\n\t }",
"@Override\r\n\tpublic Company getCompany(long companyId) throws Exception {\r\n\r\n\t\tconnectionPool = ConnectionPool.getInstance();\r\n\t\tConnection connection = connectionPool.getConnection();\r\n\t\tCompany company = new Company();\r\n\t\tString sql = \"SELECT * FROM Company WHERE ID=\" + companyId;\r\n\t\ttry (PreparedStatement preparedStatement = connection.prepareStatement(sql)) {\r\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\r\n\t\t\tresultSet.next();\r\n\t\t\tcompany.setCompanyId(resultSet.getLong(1));\r\n\t\t\tcompany.setCompanyName(resultSet.getString(2));\r\n\t\t\tcompany.setCompanyPassword(resultSet.getString(3));\r\n\t\t\tcompany.setCompanyEmail(resultSet.getString(4));\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new Exception(\"DB error - unable to get Company data. companyId: \" + companyId);\r\n\t\t}catch (Exception e) {\r\n\t\t\tthrow new Exception(\"unable to get Company data. companyId: \" + companyId);\r\n\t\t} \r\n\t\tfinally {\r\n\t\t\tconnection.close();\r\n\t\t\tconnectionPool.returnConnection(connection);\r\n\t\t}\r\n\t\treturn company;\r\n\t}",
"public static void showCompanies(){\n\t\tCompanyDao.getAllCompanies();\n\t}",
"public List<Company> companies() {\n StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n SessionFactory sessionFactory = null;\n try {\n\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n Session session = sessionFactory.getCurrentSession();\n session.beginTransaction();\n List<Company> listOfCompanies = session.createQuery(\"FROM Company\").getResultList();\n session.getTransaction().commit();\n return listOfCompanies;\n\n } finally {\n if (sessionFactory != null) {\n sessionFactory.close();\n }\n }\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _userTracker.getCompanyId();\n\t}",
"public static final String getCompany() { return company; }",
"public String getCompany()\n\t{\n\t\treturn getCompany( getSession().getSessionContext() );\n\t}",
"@Secured({ })\n\t@RequestMapping(value = \"/contacts/findBycompany/{key}\", method = RequestMethod.GET, headers = \"Accept=application/json\")\n\tpublic List<Contact> findBycompany(@PathVariable(\"key\") Long idcompany) {\n\t\tList<Contact> list = contactService.findBycompany(idcompany);\n\t\treturn list;\n\t}",
"@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}",
"@Override\n @Transactional\n public Company getByID(long id) {\n\n\tCompany company = this.companyDAO.getByID(id);\n\n\t// Security check.\n\tif (!this.authHelper.isSuperAdmin()) {\n\t this.messageHelper.unauthorizedID(Company.OBJECT_NAME, company.getId());\n\t return new Company();\n\t}\n\n\t// Log then\n\t// return actual object.\n\tthis.messageHelper.nonAuditableIDNoAssoc(AuditAction.ACTION_GET, Company.OBJECT_NAME,\n\t\tcompany.getId());\n\treturn company;\n }",
"protected List<CompaniesContactsEntity> findByIdCompany(CompaniesEntity companiesEntity) {\n\n log.info(\"CompaniesContactsBean => method : findByIdCompany()\");\n\n FacesMessage facesMessage;\n\n if (companiesContactsEntity == null) {\n log.error(\"Companies entity is null\");\n facesMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"company.error\"), null);\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n return null;\n }\n\n EntityManager em = EMF.getEM();\n\n List<CompaniesContactsEntity> companiesContactsEntities = companiesContactsDao.findByIdCompany(em, companiesEntity.getId());\n\n em.clear();\n em.close();\n\n return companiesContactsEntities;\n }",
"public Company load(Long id) {\r\n\t\treturn (Company) sessionFactory.getCurrentSession().get(Company.class, id);\r\n\t}",
"@Override\n\tpublic List<CompanyVO> getCompanyInfo(String c_name) {\n\t\treturn null;\n\t}",
"public String getCompany()\n {\n return (String) getProperty(PropertyIDMap.PID_COMPANY);\n }",
"public CompanyEntity getCompany(long companyId) throws Exception {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n\n try {\n //Establish a connection from the connection manager\n connection = JdbcUtils.getConnection();\n\n //Creating the SQL query\n String sqlStatement = \"SELECT * FROM companies WHERE id = ?\";\n\n //Combining between the syntax and our connection\n preparedStatement = connection.prepareStatement(sqlStatement);\n\n //Replacing the question marks in the statement above with the relevant data\n preparedStatement.setLong(1, companyId);\n\n //Executing the update\n ResultSet resultSet = preparedStatement.executeQuery();\n\n if (!resultSet.next()) {\n throw new ApplicationException(ErrorType.GENERAL_ERROR, \"Cannot retrieve information\");\n }\n// creating an array of companies\n CompanyEntity companyEntity = new CompanyEntity();\n companyEntity.setCompanyId(resultSet.getLong(\"id\"));\n companyEntity.setCompanyName(resultSet.getString(\"company_name\"));\n companyEntity.setCompanyEmail(resultSet.getString(\"company_email\"));\n companyEntity.setCompanyPhone(resultSet.getString(\"company_phone\"));\n companyEntity.setCompanyAddress(resultSet.getString(\"company_address\"));\n\n return companyEntity;\n\n } catch (Exception e) {\n //\t\t\te.printStackTrace();\n throw new Exception(\"Failed to retrieve data\", e);\n } finally {\n //Closing the resources\n JdbcUtils.closeResources(connection, preparedStatement);\n }\n }",
"public String getCompanyCd() {\r\n return companyCd;\r\n }",
"public String getCompanyCd() {\r\n return companyCd;\r\n }",
"public List<Company> getCompanies() throws BusinessException {\n\t\tList<Company> lstCompanies = new ArrayList<Company>();\n\n\t\ttry {\n\n\t\t\tList<Object> list = UtilSession.getObjectsByNamedQuery(this.em, Company.FIND_COMPANIES, null);\n\n\t\t\tfor (Object object : list) {\n\t\t\t\tCompany vnt = (Company) object;\n\t\t\t\tlstCompanies.add(vnt);\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tString s = \"Error al consultar las compa�ias\";\n\t\t\t_logger.error(s, ex);\n\t\t\tthrow new BusinessException(s, ex);\n\t\t}\n\n\t\t\n\n\t\treturn lstCompanies;\n\n\t}",
"public String getCompanyCode() {\n return companyCode;\n }",
"@Override\r\n\tpublic List<Company> getById(final String memUser) {\n\r\n\t\tHibernateCallback callback = new HibernateCallback() {\r\n\t\t\tString memberUser = \"z\";\r\n\t\t\tint companyTypeID = 1;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Object doInHibernate(Session session)\r\n\t\t\t\t\tthrows HibernateException, SQLException {\r\n\t\t\t\tSystem.out.println(\"Value : \" + memberUser);\r\n\t\t\t\tCriteria criteria = session.createCriteria(entityClass);\r\n\t\t\t\tcriteria.add(Restrictions.eq(\"memberUser\", memberUser));\r\n\t\t\t\treturn criteria.list();\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn getHibernateTemplate().executeFind(callback);\r\n\r\n\t}",
"public String getCompanyCode() {\r\n return companyCode;\r\n }",
"public String getCompanyCode() {\r\n return companyCode;\r\n }",
"public List<Company> getAllCompanies() {\n\t\treturn Validations.VerifyNotEmpty(companyRepository.findAll());\n\t}",
"@Override\n\tpublic List<Company> getAll() {\n\t\treturn dao.getAll();\n\t}"
] | [
"0.837771",
"0.7953361",
"0.74044836",
"0.7354022",
"0.7354022",
"0.7354022",
"0.7354022",
"0.7354022",
"0.7341122",
"0.73376137",
"0.72288555",
"0.72288555",
"0.72288555",
"0.72288555",
"0.7182207",
"0.71523374",
"0.7146268",
"0.70838153",
"0.70794916",
"0.70794916",
"0.70642936",
"0.70476437",
"0.7033773",
"0.70170087",
"0.701498",
"0.701498",
"0.701498",
"0.7009978",
"0.6990045",
"0.6990045",
"0.6965627",
"0.6928852",
"0.68883485",
"0.6886715",
"0.6860878",
"0.6848444",
"0.6833699",
"0.68200016",
"0.68139946",
"0.6797087",
"0.67660445",
"0.6761251",
"0.67559636",
"0.6733933",
"0.672057",
"0.67180765",
"0.67119414",
"0.67106843",
"0.67071533",
"0.6695156",
"0.66788894",
"0.6666693",
"0.6658044",
"0.665486",
"0.66434443",
"0.66434443",
"0.66200197",
"0.66127676",
"0.65680134",
"0.6555136",
"0.6538657",
"0.65278786",
"0.6521946",
"0.65126646",
"0.65126646",
"0.65045595",
"0.6502677",
"0.649087",
"0.6485653",
"0.6480968",
"0.6474136",
"0.6465842",
"0.64606094",
"0.6453024",
"0.64503074",
"0.6444333",
"0.64237857",
"0.6412608",
"0.63824016",
"0.63453156",
"0.6343961",
"0.63357943",
"0.6332913",
"0.62962013",
"0.62924564",
"0.6290238",
"0.62801737",
"0.6257599",
"0.6257228",
"0.62363225",
"0.6221791",
"0.6217697",
"0.6217697",
"0.6203241",
"0.6203169",
"0.6198687",
"0.61922365",
"0.61922365",
"0.6182396",
"0.61748445"
] | 0.749989 | 2 |
Return the list of all the Company in the database | public abstract List<Company> getAll(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Company> getCompanys() {\n\t\treturn companyDao.findAll();\n//\t\treturn companies;\n\t}",
"List<Company> getCompanyList() throws DAOException ;",
"public List<Company> companies() {\n StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n SessionFactory sessionFactory = null;\n try {\n\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n Session session = sessionFactory.getCurrentSession();\n session.beginTransaction();\n List<Company> listOfCompanies = session.createQuery(\"FROM Company\").getResultList();\n session.getTransaction().commit();\n return listOfCompanies;\n\n } finally {\n if (sessionFactory != null) {\n sessionFactory.close();\n }\n }\n }",
"@Override\n\tpublic List<Company> queryCompanyAll() {\n\t\treturn companyDao.queryCompanyAll();\n\t}",
"@Override\n\tpublic List<Company> getAll() {\n\t\treturn dao.getAll();\n\t}",
"@Override\r\n\tpublic List<Company> getCompanyList() throws SQLException {\n\r\n\t\tList<Company> companies = new ArrayList<>();\r\n\t\tcompanyRepository.findAll().forEach(companies::add);\r\n\r\n\t\treturn companies;\r\n\t}",
"@Override\r\n\tpublic List<Company> getAllCompanies() {\r\n\t\tString methodName = \"getAllCompanies()\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\treturn companyRepository.findAll();\r\n\t\t\r\n\t}",
"public static void showCompanies(){\n\t\tCompanyDao.getAllCompanies();\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Company> loadAll() {\r\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Company\").list();\r\n\t}",
"public List<Company> getAllCompanies() {\n\t\t \n\t List<Company> listOfCompanies = new ArrayList<Company>();\n\n\t Cursor cursor = mDatabase.query(MySQLiteHelper.TABLE_COMPANIES,\n\t mAllColumns, null, null, null, null, null);\n\n\t cursor.moveToFirst();\n\t while (!cursor.isAfterLast()) {\n\t Company hunt = cursorToCompany(cursor);\n\t listOfCompanies.add(hunt);\n\t cursor.moveToNext();\n\t }\n\t \n\t cursor.close();\n\t return listOfCompanies;\n\t }",
"public List<TmCompany> findAll() {\n\t\treturn tmCompanyDao.findAll();\r\n\t}",
"@Override\r\n\tpublic synchronized List<Company> getAllCompanies() throws Exception {\r\n\r\n\t\tconnectionPool = ConnectionPool.getInstance();\r\n\t\tConnection connection = connectionPool.getConnection();\r\n\t\tList<Company> list = new ArrayList<>();\r\n\t\tString sql = \"select * from Company\";\r\n\t\ttry (PreparedStatement preparedStatement = connection.prepareStatement(sql); ResultSet resultSet = preparedStatement.executeQuery()) {\r\n\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\tlong companyId = resultSet.getLong(1);\r\n\t\t\t\tString companyName = resultSet.getString(2);\r\n\t\t\t\tString companyPassword = resultSet.getString(3);\r\n\t\t\t\tString companyEmail = resultSet.getString(4);\r\n\r\n\t\t\t\tlist.add(new Company(companyId, companyName, companyPassword, companyEmail));\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new Exception(\"DB error - unable to get Company data\");\r\n\t\t}catch (Exception e) {\r\n\t\t\tthrow new Exception(\"unable to get Company data\");\r\n\t\t} \r\n\t\tfinally {\r\n\t\t\tconnection.close();\r\n\t\t\tconnectionPool.returnConnection(connection);\r\n\t\t}\r\n\t\treturn list;\r\n\r\n\t}",
"public List<Company> getAllCompanies() {\n\t\treturn Validations.VerifyNotEmpty(companyRepository.findAll());\n\t}",
"@Override\r\n\tpublic ArrayList<Company> getAllCompanies() throws CouponSystemException {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tcon = ConnectionPool.getInstance().getConnection();\r\n\t\t\tArrayList<Company> allCompanies = new ArrayList<>();\r\n\t\t\tString sql = \"select * from companies\";\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(sql);\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tCompany comp = new Company(rs.getInt(\"companyId\"), rs.getString(\"companyName\"),\r\n\t\t\t\t\t\trs.getString(\"companyEmail\"), rs.getString(\"companyPass\"));\r\n\t\t\t\tallCompanies.add(comp);\r\n\t\t\t}\r\n\t\t\treturn allCompanies;\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new CouponSystemException(\"getAllCompanies Failed\", e);\r\n\t\t} finally {\r\n\t\t\tif (con != null) {\r\n\t\t\t\tConnectionPool.getInstance().restoreConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Collection<String> getCompanyList() {\n\t\treturn getHibernateTemplate().execute(new HibernateCallback<String, Collection<String>>(\"getCompanyList\") {\n\t\t\t@Override\n\t\t\tpublic Collection<String> doInHibernate(final Session session) {\n\t\t\t\tfinal Criteria criteria = session.createCriteria(getEntityClass());\n\t\t\t\tcriteria.setProjection(Projections.property(\"name\"));\n\t\t\t\tcriteria.addOrder(Order.asc(\"name\"));\n\t\t\t\treturn criteria.list();\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"public List<ManagedCompany> getManagedCompanies() {\n \n List<ManagedCompany> results = new ArrayList<>();\n \n try {\n Connection conn = this.databaseUtils.getConnection();\n dao.setConnection(conn);\n results = dao.getItems();\n } catch (SQLException e) {\n Logger.getLogger(AppService.class.getName()).log(Level.SEVERE, null, e);\n }\n \n return results;\n }",
"public ArrayList<Company> getAllCompanies() throws Exception {\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tconnection = JdbcUtils.getConnection();\n\n\t\t\t// Creating the SQL query\n\t\t\tString sqlStatement = \"SELECT * FROM companies\";\n\n\t\t\t// Combining between the syntax and our connection\n\t\t\tpreparedStatement = connection.prepareStatement(sqlStatement);\t\t\t\n\n\t\t\t// Executing the query\n\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\tArrayList<Company> allCompanies = new ArrayList<Company>(); \n\t\t\t\n\t\t\twhile (resultSet.next()) {\n\t\t\t\t\n\t\t\t\tLong id = resultSet.getLong(\"Company_Id\");\n\t\t\t\tString name = resultSet.getString(\"Company_NAME\");\n\t\t\t\tallCompanies.add(new Company(id, name));\n\t\t\t}\n\t\t\treturn allCompanies;\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// **If there was an exception in the \"try\" block above, it is caught here and\n\t\t\t// notifies a level above.\n\t\t\te.printStackTrace();\n\t\t\tthrow new ApplicationException(e,ErrorType.GENERAL_ERROR,\n\t\t\t\t\tDateUtils.getCurrentDateAndTime() + \"FAILED to return all companies\");\n\n\t\t\t// Closing the resources\n\t\t\t} finally {\n\t\t\t\tJdbcUtils.closeResources(connection, preparedStatement,resultSet);\n\t\t\t}\t\n\t\t}",
"public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}",
"public CompanyEntity[] getAllCompanies() throws Exception {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n\n try {\n //Establish a connection from the connection manager\n connection = JdbcUtils.getConnection();\n\n //Creating the SQL query\n String sqlStatement = \"SELECT * FROM companies\";\n\n //Combining between the syntax and our connection\n preparedStatement = connection.prepareStatement(sqlStatement);\n\n //Executing the update\n ResultSet resultSet = preparedStatement.executeQuery();\n\n if (!resultSet.next()) {\n throw new ApplicationException(ErrorType.GENERAL_ERROR, \"Cannot retrieve information\");\n }\n// getting the number of rows returned to create an array of companies\n int numberOfRows = MyUtils.getRowCount(resultSet);\n if (numberOfRows == 0) {\n throw new ApplicationException(ErrorType.GENERAL_ERROR, \"0 companies in the table\");\n }\n// creating an array of companies\n CompanyEntity[] companies = new CompanyEntity[numberOfRows];\n int i = 0;\n while (resultSet.next()) {\n companies[i].setCompanyId(resultSet.getLong(\"id\"));\n companies[i].setCompanyName(resultSet.getString(\"company_name\"));\n companies[i].setCompanyEmail(resultSet.getString(\"company_email\"));\n companies[i].setCompanyPhone(resultSet.getString(\"company_phone\"));\n companies[i].setCompanyAddress(resultSet.getString(\"company_address\"));\n i++;\n }\n\n return companies;\n\n } catch (Exception e) {\n //\t\t\te.printStackTrace();\n throw new Exception(\"Failed to retrieve data\", e);\n } finally {\n //Closing the resources\n JdbcUtils.closeResources(connection, preparedStatement);\n }\n }",
"public List<CustomerCompany> getAllCustomerCompanies() \n\t{\n\t\treturn this.entityManager.createNamedQuery(\"CustomerCompany.listAll\", CustomerCompany.class).getResultList();\n\t}",
"public List<Company> getCompanies() throws BusinessException {\n\t\tList<Company> lstCompanies = new ArrayList<Company>();\n\n\t\ttry {\n\n\t\t\tList<Object> list = UtilSession.getObjectsByNamedQuery(this.em, Company.FIND_COMPANIES, null);\n\n\t\t\tfor (Object object : list) {\n\t\t\t\tCompany vnt = (Company) object;\n\t\t\t\tlstCompanies.add(vnt);\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tString s = \"Error al consultar las compa�ias\";\n\t\t\t_logger.error(s, ex);\n\t\t\tthrow new BusinessException(s, ex);\n\t\t}\n\n\t\t\n\n\t\treturn lstCompanies;\n\n\t}",
"public java.util.List<contactsapi.company.CompanyResponse> getCompaniesList() {\n return companies_;\n }",
"@RequestMapping(path = \"/listCompanies\", method = RequestMethod.GET)\n\tpublic ResponseEntity<RestResponse<ListCompaniesResponse>> listCompanies() {\n\n\t\tList<CompanyDTO> companies = companyService.listAll();\n\t\t\n\t\tListCompaniesResponse result = new ListCompaniesResponse(companies);\n\t\t\n\t\tRestResponse<ListCompaniesResponse> restResponse = \n\t\t\t\tnew RestResponse<ListCompaniesResponse>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<ListCompaniesResponse>>(restResponse, HttpStatus.OK);\n\t\t\n\t}",
"public List<IncomingReport> listCompany(Company company) throws IllegalArgumentException, DAOException;",
"public static List<Company> createCompanies() {\r\n\t\tList<Company> companies = new ArrayList<Company>();\r\n\t\tcompanies.add(createCompany(1, \"Pepcus\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help1\"));\r\n\t\tcompanies.add(createCompany(2, \"Google\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help2\"));\r\n\t\tcompanies.add(createCompany(3, \"Facebook\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help3\"));\r\n\t\tcompanies.add(createCompany(4, \"Suzuki\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help4\"));\r\n\t\tcompanies.add(createCompany(5, \"General Motors\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help5\"));\r\n\t\tcompanies.add(createCompany(6, \"L & T\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help6\"));\r\n\t\tcompanies.add(createCompany(7, \"General Electric\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help7\"));\r\n\t\tcompanies.add(createCompany(8, \"Oracle\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help8\"));\r\n\t\tcompanies.add(createCompany(9, \"Microsoft\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help9\"));\r\n\t\tcompanies.add(createCompany(10, \"Thinkhr\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help10\"));\r\n\t\treturn companies;\r\n\r\n\t}",
"@Transactional(readOnly = true)\n @PreAuthorize(\"hasRole('COMPANY_READER')\")\n public List<Company> getAll() {\n return companyRepository.findAll();\n }",
"public ArrayList<Company> getCompaniesFromCache() {\n\n ParseQuery<Company> query = ParseQuery.getQuery(PARSE_NAME);\n query.fromLocalDatastore();\n\n try {\n return new ArrayList<>(query.find());\n } catch (ParseException e) {\n Log.e(PARSE_NAME, \"Unable to find any merchants from local data store:\\n\" + e.getMessage());\n }\n\n return new ArrayList<>();\n }",
"@Override\n\tpublic List<Company> getAll(Page<Company,Long> page) {\n\t\t\treturn dao.getAll(companyPageMapper.pageToDaoRequestParameter(page));\n\t}",
"static List<Company> getAllCompanies(SQLiteDatabase db) {\n Cursor cursor = db.query(COMPANY_TABLE, null, COMPANY_WAS_DELETED + \" = ?\", new String[] {\"0\"}, null, null, null);\n List<Company> list = new LinkedList<Company>();\n if (cursor.moveToFirst()) {\n int idIndex = cursor.getColumnIndex(COMPANY_ID);\n int nameIndex = cursor.getColumnIndex(COMPANY_NAME);\n int logoIndex = cursor.getColumnIndex(COMPANY_LOGO);\n int descriptionIndex = cursor.getColumnIndex(COMPANY_DESCRIPTION);\n int lastUpdatedIndex = cursor.getColumnIndex(COMPANY_LAST_UPDATED);\n\n do {\n Company company = new Company();\n company.companyId = cursor.getString(idIndex);\n company.name = cursor.getString(nameIndex);\n company.companyLogo = cursor.getString(logoIndex);\n company.companyDescription = cursor.getString(descriptionIndex);\n company.lastUpdatedDate = cursor.getDouble(lastUpdatedIndex);\n if(company.wasDeleted == false) {\n company.models = CarSQL.getCompanyCars(db, company.companyId);\n list.add(company);\n }\n } while (cursor.moveToNext());\n }\n return list;\n }",
"@Nonnull\n public List<CustomerCompany> fetchCustomerCompany()\n throws ODataException\n {\n if (erpConfigContext == null) {\n throw new ODataException(ODataExceptionType.OTHER, \"Failed to fetch related objects of type CustomerCompany.\", new IllegalStateException(\"Unable to execute OData query. The entity was created locally without an assigned ERP configuration context. This method is applicable only on entities which were retrieved or created using the OData VDM.\"));\n }\n final StringBuilder odataResourceUrl = new StringBuilder(getEntityCollection());\n odataResourceUrl.append(\"(\");\n odataResourceUrl.append(\"Customer=\");\n odataResourceUrl.append(ODataTypeValueSerializer.of(EdmSimpleTypeKind.String).toUri(customer));\n odataResourceUrl.append(\")/\");\n odataResourceUrl.append(\"to_CustomerCompany\");\n final ODataQueryBuilder builder = ODataQueryBuilder.withEntity(getServicePathForFetch(), odataResourceUrl.toString()).withoutMetadata();\n final ODataQuery query = builder.build();\n final ODataQueryResult result = query.execute(erpConfigContext);\n final List<CustomerCompany> entityList = result.asList(CustomerCompany.class);\n for (CustomerCompany entity: entityList) {\n entity.setErpConfigContext(erpConfigContext);\n entity.setServicePathForFetch(getServicePathForFetch());\n }\n return entityList;\n }",
"public Collection<CompaniaDTO> findObtenerListaCompanias() throws ERPException{\r\n\t\treturn this.companiaGestor.obtenerListaCompanias();\r\n\t}",
"public java.util.Set<vn.com.phuclocbao.entity.CompanyEntity> getCompanies()\n {\n return companies;\n }",
"public List<BusinessAccount> searchAllContractors() {\n\t\tfactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);\n\t\tEntityManager em = factory.createEntityManager();\t\n\t\n\t\t\tem.getTransaction().begin();\n\t\t\tQuery myQuery = em.createQuery(\"SELECT b FROM BusinessAccount b\");\n\t\t\tcontractorList=myQuery.getResultList();\n\t\t em.getTransaction().commit();\n\t\t em.close();\n\t\t\t\n\t\t\treturn contractorList;\n\t\t}",
"public java.util.List<contactsapi.company.CompanyResponse> getCompaniesList() {\n if (companiesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(companies_);\n } else {\n return companiesBuilder_.getMessageList();\n }\n }",
"@Override\n\tpublic List<Computer> getAll() {\n\t\t\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tString sql = \"SELECT computer.id, computer.name, computer.introduced, computer.discontinued, computer.company_id, company.name FROM computer INNER JOIN company ON computer.company_id = company.id;\";\n\t\t\tconnection = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\tList<Computer> computerList = new ArrayList<Computer>();\n\t\t\twhile(resultSet.next()) {\n\t\t\t\n\t\t\t\tCompany company = Company.builder()\n\t\t\t\t\t\t.setId(resultSet.getLong(\"computer.company_id\"))\n\t\t\t\t\t\t.setName(resultSet.getString(\"company.name\"))\n\t\t\t\t\t\t.build();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tComputer computer = Computer.builder()\n\t\t\t\t\t\t.setId(resultSet.getLong(\"computer.id\"))\n\t\t\t\t\t\t.setName(resultSet.getString(\"computer.name\"))\n\t\t\t\t\t\t.setIntroduced(resultSet.getTimestamp(\"computer.introduced\"))\n\t\t\t\t\t\t.setDiscontinued(resultSet.getTimestamp(\"computer.discontinued\"))\n\t\t\t\t\t\t.setCompany_id(resultSet.getLong(\"computer.company_id\"))\n\t\t\t\t\t\t.setCompany(company)\n\t\t\t\t\t\t.build();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tcomputer.toString();\n\t\t\t\tcomputerList.add(computer);\n\t\t\t}\n\t\t\t\n\t\t\treturn computerList;\n\t\t\t\n\t\t} catch(SQLException e) {\n\t\t\t\n\t\t\tthrow new DAOException(\"Impossible de récupérer la liste des ordinateurs\", e);\n\t\t}finally {\n\t\t\tDaoUtils.closeAll(resultSet, preparedStatement, connection);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"public ArrayList<Coupon> getCompanyCoupons() throws SQLException {\r\n\t\tArrayList<Coupon> coupons = couponsDAO.getAllCoupons();\r\n\t\tArrayList<Coupon> coups = new ArrayList<>();\r\n\t\tfor (Coupon coupon : coupons) {\r\n\t\t\tif (companyID == coupon.getCompanyID())\r\n\t\t\t\tcoups.add(coupon);\r\n\t\t}\r\n\t\treturn coups;\r\n\t}",
"@GetMapping(\"/company-types\")\n @Timed\n public List<CompanyType> getAllCompanyTypes() {\n log.debug(\"REST request to get all CompanyTypes\");\n List<CompanyType> companyTypes = companyTypeRepository.findAll();\n return companyTypes;\n }",
"Company getCompany(int id);",
"@Nonnull\n public List<CustomerCompany> getCustomerCompanyOrFetch()\n throws ODataException\n {\n if (toCustomerCompany == null) {\n toCustomerCompany = fetchCustomerCompany();\n }\n return toCustomerCompany;\n }",
"List<Company> getCompaniesByEmailDomain(String domain);",
"public List<Compte> findAll() {\n\t\treturn dao.findAll();\n\t}",
"@Override\n\tpublic List<CompanyVO> getCompanyInfo(String c_name) {\n\t\treturn null;\n\t}",
"public Collection<Coupon> getCompanyCoupons() {\n return couponRepo.findCouponsByCompanyID(this.companyID);\n }",
"public contactsapi.company.CompanyResponse getCompanies(int index) {\n return companies_.get(index);\n }",
"public List<Company> findAllCompany(int offset, int range);",
"public List<CompradorEntity> findAll() {\r\n TypedQuery<CompradorEntity> query = em.createQuery(\"select u from CompradorEntity u\", CompradorEntity.class);\r\n return query.getResultList();\r\n }",
"public java.util.List<Todo> findByCompanyId(long companyId);",
"public void searchCompanies() {\r\n\t\tResourceBundle bundle = ControladorContexto.getBundle(\"mensaje\");\r\n\t\ttry {\r\n\t\t\tbusiness = businessDao.searchBusinessForNameOrNit(searchCompany);\r\n\t\t\tif (business == null || business.size() <= 0) {\r\n\t\t\t\tControladorContexto.mensajeInformacion(\r\n\t\t\t\t\t\t\"frmAsociarPermisos:empresas\",\r\n\t\t\t\t\t\tbundle.getString(\"message_no_existen_registros\"));\r\n\t\t\t} else {\r\n\t\t\t\tBusinessAction businessAction = ControladorContexto\r\n\t\t\t\t\t\t.getContextBean(BusinessAction.class);\r\n\t\t\t\tbusinessAction.setListBusiness(new ArrayList<Business>());\r\n\t\t\t\tbusinessAction.setListBusiness(business);\r\n\t\t\t\tbusinessAction.loadDetailsBusiness();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t}",
"@Override\n\t/** Returns all Coupons of selected Company as an array list */\n\tpublic Collection<Coupon> getCouponsByCompany(int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\t\t\tString getCouponsByCompanySQL = \"select * from coupon where id in (select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByCompanySQL);\n\t\t\t// Set Company ID variable that method received into prepared\n\t\t\t// statement\n\t\t\tpstmt.setInt(1, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}",
"@RequestMapping(\"org/query_company_list.shtm\")\n public void queryCompanyList(HttpServletRequest req,\n HttpServletResponse resp) {\n LOG.info(\"query company list page start...\");\n \n Map<String, Object> params = getReqParams(req);\n \n // do query\n Map<String, Object> resultMap = this.service.queryCompanyList(params);\n\n Map<String, Object> output = getDefaultResult();\n output.putAll(resultMap);\n outputJSON(resp, output);\n \n LOG.info(\"query company list page end.\");\n }",
"public void getFindByIdCompany() {\n log.info(\"CompaniesContactsBean => method : getFindByIdCompany()\");\n\n log.info(\"ID company\" + companiesBean.getCompaniesEntity().getId());\n this.companiesContactsEntityList = findByIdCompany(companiesBean.getCompaniesEntity());\n }",
"List getCompanies(OwnCodes ownCodes) throws PopulateDataException;",
"public String [][] getCompanyListFromDB(int listSize) throws SQLException {\n\t\t\t ArrayList<Company> fromDB= ReturnMatchingCompaniesList();\n\t\t\t String [][] arrayDB = new String [listSize-1][4];\n\t\t\t int i=0;\n\t\t\t for (Company p:fromDB) {\n\t\t\t \tarrayDB[i][0]=p.getIdcompany();\n\t\t\t \tarrayDB[i][1]=p.getCompany_name();\n\t\t\t \tarrayDB[i][2]=p.getPhone();\n\t\t\t \tarrayDB[i][3]=p.getEmail();\n\t\t\t \t\ti++;\n\t\t\t }\n\t\t\t return arrayDB;\n\t\t }",
"public ArrayList<Company> updateCacheList() {\n ParseQuery<Company> query = ParseQuery.getQuery(PARSE_NAME);\n\n try {\n Company.pinAll(\"companyList\", query.find());\n } catch (ParseException e) {\n Log.e(PARSE_NAME, \"Unable to find any merchant from Parse Database:\\n\" + e.getMessage());\n }\n\n return getCompaniesFromCache();\n }",
"@Override\r\n\tpublic Company getAllCompaniesById(Integer id) {\r\n\t\tString methodName = \"getAllCompaniesById(Integer id)\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\tlog.debug(\"id value is::\"+id);\r\n\t\treturn companyRepository.findCompanyById(id.longValue());\r\n\t}",
"public String[] getCompanyNames() {\n return companyNames;\n }",
"@Test\n\tvoid findAllMyCompany() {\n\t\tinitSpringSecurityContext(\"mmartin\");\n\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(\"ligoj\", null, null, newUriInfoAsc(\"id\"));\n\n\t\t// 7 users from company 'ligoj', 0 from delegate\n\t\tAssertions.assertEquals(7, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(7, tableItem.getRecordsFiltered());\n\n\t\t// Check the users\n\t\tAssertions.assertEquals(\"alongchu\", tableItem.getData().get(0).getId());\n\t}",
"@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}",
"@Override\r\n\tpublic List<CurrencyAccountCorporate> findAll() {\n\t\treturn em.createQuery(\"from CurrencyAccountCorporate\",\r\n\t\t\t\tCurrencyAccountCorporate.class).getResultList();\r\n\t}",
"List<Coupon> findByCompanyId(int companyId);",
"public java.util.List<? extends contactsapi.company.CompanyResponseOrBuilder> \n getCompaniesOrBuilderList() {\n return companies_;\n }",
"@Secured({ })\n\t@RequestMapping(value = \"/contacts/findBycompany/{key}\", method = RequestMethod.GET, headers = \"Accept=application/json\")\n\tpublic List<Contact> findBycompany(@PathVariable(\"key\") Long idcompany) {\n\t\tList<Contact> list = contactService.findBycompany(idcompany);\n\t\treturn list;\n\t}",
"public Company findCompany(long id);",
"public java.util.List<contactsapi.company.CompanyResponse.Builder> \n getCompaniesBuilderList() {\n return getCompaniesFieldBuilder().getBuilderList();\n }",
"protected List<CompaniesContactsEntity> findByIdCompany(CompaniesEntity companiesEntity) {\n\n log.info(\"CompaniesContactsBean => method : findByIdCompany()\");\n\n FacesMessage facesMessage;\n\n if (companiesContactsEntity == null) {\n log.error(\"Companies entity is null\");\n facesMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"company.error\"), null);\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n return null;\n }\n\n EntityManager em = EMF.getEM();\n\n List<CompaniesContactsEntity> companiesContactsEntities = companiesContactsDao.findByIdCompany(em, companiesEntity.getId());\n\n em.clear();\n em.close();\n\n return companiesContactsEntities;\n }",
"@Override\n\tpublic List<Map<String, Object>> getCompanyInfos(Map<String, Object> param) {\n\t\treturn companyMapper.getCompanyInfos(param);\n\t}",
"public String getCompany() {\n return company;\n }",
"public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }",
"public LinkedListRecursive<Company> getCompanyList() {\r\n\t\treturn companyDirectory;\r\n\t}",
"public Cursor fetchAllTodos() {\n\t\treturn database.query(DATABASE_TABLE, new String[] { KEY_COMPANYID,\n\t\t\t\tKEY_COMPANYNAME, KEY_COMPANYDESCRIPTION, KEY_WEBSITE, KEY_COMPANYIMG }, null, null, null,\n\t\t\t\tnull, null);\n\t}",
"@GetMapping(path = \"companyName/{companyName}\")\n public ResponseEntity<List<Contractor>> findAllByCompanyName(@PathVariable String companyName){\n logger.debug(\"findAllByCompanyName(\" + companyName + \")\");\n\t\tAssert.notNull(companyName, \"Expects a valid companyName\");\n\n List<Contractor> contractors = contractorService.findAllByCompanyName(companyName);\n if(contractors == null || contractors.size() < 1) throw new ResourceNotFoundException(\"Unable to find any contractors matching criteria\");\n return new ResponseEntity(getDTOs(contractors), HttpStatus.ACCEPTED);\n }",
"@Override\r\n\tpublic List<Commodity> getAllCommodity() {\n\t\tString hql = \"from Commodity\";\r\n\t\treturn (List<Commodity>) getHibernateTemplate().find(hql);\r\n\t}",
"@Override\n\tpublic List<Comprobante> findAll() throws Exception {\n\t\treturn comproRepository.findAll();\n\t}",
"public List<ConsejoEntity> findAll() {\r\n Query q = em.createQuery(\"select u from ConsejoEntity u\");\r\n return q.getResultList();\r\n }",
"public Collection<Coupon> getAllCoupon() throws DbException;",
"@SuppressWarnings({\"checkstyle:WhitespaceAround\", \"checkstyle:DesignForExtension\", \"checkstyle:MissingJavadocMethod\"})\n @GetMapping(\"/findAllComplaint\")\n public List<Complaint> findAll() {\n\n return complaintService.findAll();\n }",
"public List<String> getAllCompaniesNames() {\n\t\treturn Validations.VerifyNotEmpty(companyRepository.findAllUsernames());\n\t}",
"public void refreshCompanies() {\n\t\t \n\t\t mDbHelper.refreshTable(mDatabase, MySQLiteHelper.TABLE_COMPANIES);\n\t }",
"public ObservableList<Company> LoadCombo() {\n ObservableList<Company> _list = FXCollections.observableArrayList();\n _list.add(new Company(\"20428776110\", \"ICR PERU\"));\n _list.add(new Company(\"20555029277\", \"ICR INSTALACIONES\"));\n return _list;\n }",
"@Override\n\tpublic List<CiclosCarreras> listar() {\n\t\treturn repoCiclos.findAll();\n\t}",
"public Company getCompany() {\r\n return this.company;\r\n }",
"public List<Organization> getAll() throws SQLException {\n\t\tlogger.info(\"[Organization] get\");\n\t\treturn organizationDao.queryForAll();\n\t}",
"public CompanyTO getCompany() {\n\t\t\r\n\t\treturn CompanyService.getInstance().getCompany();\r\n\t}",
"public Company getCompany() {\n return company;\n }",
"public String getCompany() {\n return company;\n }",
"public String getCompany() {\n return company;\n }",
"public List<Customer> getByCompanyName(String company) throws CustomerNotFoundException {\r\n try {\r\n return this.entityManager.createQuery(\"select customer from Customer as customer where customer.company=:company\")\r\n .setParameter(\"company\", company)\r\n .getResultList();\r\n } catch (Exception e) {\r\n throw new CustomerNotFoundException();\r\n }\r\n }",
"public Company getCompany() {\n\t\treturn company;\n\t}",
"public List<Consulta> getAll() throws BusinessException;",
"@Test\n\tvoid findAllForMyCompany() {\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, null, newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(9, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(9, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(9, tableItem.getData().size());\n\n\t\t// Check the users\n\t\tAssertions.assertEquals(\"fdoe2\", tableItem.getData().get(0).getId());\n\t\tAssertions.assertTrue(tableItem.getData().get(0).isCanWrite());\n\n\t\t// Check the groups\n\t\tAssertions.assertEquals(0, tableItem.getData().get(0).getGroups().size());\n\t}",
"public List<Customer> findAll(){\n\t\treturn custRepo.findAll();\n\t}",
"public java.util.List<Campus> findAll();",
"@GetMapping(\"/bookworm/showAllAuthors\")\n public ResponseEntity<List> showAllAuthors() {\n\n log.debug(\"Showing all the Authors whose books are present in library\");\n return ResponseEntity.ok(authorService.getAuthor());\n }",
"public String getCompany() {\r\n\t\treturn company;\r\n\t}",
"public List<Contact> getAllContacts();",
"public ArrayList<Bot> getAllBotsByCompany(int companyId) {\n final String selectQuery = \"SELECT * FROM Bots WHERE company_id = %d;\";\n ResultSet retrievedBots = dbConnector.selectQuery(String.format(Locale.US, selectQuery, companyId));\n ArrayList<Bot> bots = null;\n try {\n bots = new ArrayList<Bot>();\n while (retrievedBots.next()) {\n bots.add(toBot(retrievedBots));\n }\n } catch (SQLException e) {\n System.out.println(\"Error getting all bots\");\n }\n return bots;\n }",
"@ModelAttribute(\"companyTypesList\")\n\tpublic List<CompanyType> companyTypesList() {\n\t\treturn companyService.findAllCompanyType();\n\t}",
"public static Vector<Company> getAllPrices(){\n\t\treturn all_prices;\n\t}",
"public int getCompaniesCount() {\n return companies_.size();\n }",
"@Override\n\tpublic List<Company> getSome(Page<Company,Long> page) {\n\t\treturn dao.getSome(companyPageMapper.pageToDaoRequestParameter(page));\n\t}"
] | [
"0.8559151",
"0.85520154",
"0.8459924",
"0.83827466",
"0.8351298",
"0.83153814",
"0.82882875",
"0.8200416",
"0.81636804",
"0.80776006",
"0.80745757",
"0.8010566",
"0.7990716",
"0.78973407",
"0.78041446",
"0.78002083",
"0.7769525",
"0.77255017",
"0.76488596",
"0.7616378",
"0.75284463",
"0.72935116",
"0.72561187",
"0.723328",
"0.7199921",
"0.7157473",
"0.71501005",
"0.7141268",
"0.7117097",
"0.7092852",
"0.7069363",
"0.70570296",
"0.68583405",
"0.6833855",
"0.6825914",
"0.6787922",
"0.6757751",
"0.67358065",
"0.6653053",
"0.66472083",
"0.66407585",
"0.6636194",
"0.6622197",
"0.65719616",
"0.65667903",
"0.656122",
"0.65372777",
"0.65355206",
"0.65302134",
"0.65023947",
"0.65013874",
"0.64953256",
"0.6494416",
"0.64917237",
"0.6491142",
"0.6489673",
"0.6482255",
"0.6441969",
"0.6408376",
"0.6398882",
"0.6382813",
"0.6371126",
"0.63640094",
"0.63601846",
"0.63488775",
"0.6319183",
"0.62988096",
"0.62940854",
"0.6289274",
"0.62867284",
"0.6284221",
"0.6277103",
"0.62756896",
"0.6275261",
"0.62677467",
"0.6265617",
"0.6263063",
"0.62580144",
"0.6254686",
"0.6253693",
"0.6237462",
"0.62368196",
"0.6229559",
"0.6226614",
"0.62262976",
"0.62262976",
"0.6197773",
"0.6174294",
"0.61716276",
"0.6167122",
"0.61535674",
"0.6151048",
"0.61384493",
"0.6136024",
"0.61221534",
"0.6120234",
"0.61153966",
"0.61099577",
"0.60993326",
"0.6097337"
] | 0.83261657 | 5 |
The Interface FeatherContext. The activity caller must implement this interface | public interface FeatherContext {
/**
* Gets the Activity main image view.
*
* @return the main image
*/
ImageViewTouchBase getMainImage();
/**
* Gets the Activity bottom bar view.
*
* @return the bottom bar
*/
BottombarViewFlipper getBottomBar();
/**
* Gets the Activity options panel container view.
*
* @return the options panel container
*/
ViewGroup getOptionsPanelContainer();
/**
* Gets the Activity drawing image container view.
*
* @return the drawing image container
*/
ViewGroup getDrawingImageContainer();
/**
* There's a special container drawn on top of all views, which can be used to add custom dialogs/popups.
*
* This is invisible by default and must be activated in order to be used
*
* @return
*/
ViewGroup activatePopupContainer();
/**
* When the there's no need to use the popup container anymore, you must deactivate it
*/
void deactivatePopupContainer();
/**
* Show tool progress.
*/
void showToolProgress();
/**
* Hide tool progress.
*/
void hideToolProgress();
/**
* Show a modal progress
*/
void showModalProgress();
/**
* Hide the modal progress
*/
void hideModalProgress();
/**
* Gets the toolbar.
*
* @return the toolbar
*/
ToolbarView getToolbar();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}",
"@Override\n\tpublic BaseActivity getContext() {\n\t\treturn this;\n\t}",
"@Override\n public void onContext() {\n }",
"Context getContext();",
"public abstract Context context();",
"@Override\n public Context getContext() {\n return this.getApplicationContext();\n }",
"@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}",
"@Override\n protected void attachBaseContext(Context context) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(context));\n }",
"@Override\n public CallContext getCallContext() {\n return this.context;\n }",
"Context context();",
"Context context();",
"@Override\n\tpublic void starctActivity(Context context) {\n\n\t}",
"@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}",
"public interface ActivityAware<E> {\r\n E getContextActivity();\r\n}",
"@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}",
"public FloodlightModuleContext() {\n\t\tserviceMap = \n\t\t new HashMap<Class<? extends IFloodlightService>,\n\t\t IFloodlightService>();\n\t\tconfigParams =\n\t\t new HashMap<Class<? extends IFloodlightModule>,\n\t\t Map<String, String>>();\n\t}",
"Context createContext();",
"Context createContext();",
"public interface cez {\n void d(Context context);\n}",
"public IContextInformation getContextInformation()\n {\n return null;\n }",
"@Override\n\tprotected Context getContext() {\n\t\treturn getActivity();\n\t}",
"public abstract void mo36026a(Context context);",
"public IRuntimeContext getContext() {\n return fContext;\n }",
"public static Activity getContext() {\n return instance;\n\n }",
"interface Context {\r\n\r\n\t\t/**\r\n\t\t * Returns the current size of the tribe.\r\n\t\t *\r\n\t\t * @return the tribe's current size\r\n\t\t */\r\n\r\n\t\tint getTribeSize();\r\n\t}",
"public Context getContext() {\n return context;\n }",
"private Context getContext() {\n return mContext;\n }",
"private Context getContext() {\n return mContext;\n }",
"public abstract ApplicationLoader.Context context();",
"AndroidAppInterface(Context context) {\n this.mContext = context;\n }",
"@Override\n public Context getApplicationContext() {\n return mView.get().getApplicationContext();\n }",
"protected Activity getContext() {\n return contextWeakReference.get();\n }",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"@Override\r\n\tpublic Context getContext() {\n\t\treturn null;\r\n\t}",
"public interface cew {\n void a(Context context);\n}",
"public String getContext() { return context; }",
"public Context getContext() {\n return this;\n }",
"public void attachBaseContext(Context context) {\n super.attachBaseContext(context);\n }",
"public Context getContext() {\n return this.mService.mContext;\n }",
"@Override\n public Context getContext() {\n return null;\n }",
"public Context getApplicationContext();",
"public void look(Context context)\n {\n lookImplementation.look(context);\n }",
"public Context getContext() {\n\t\treturn context;\n\t}",
"public Context getContext() {\n return mContext;\n }",
"public interface Context extends ExtensionPoint {\n /**\n * Context initialization with parameters.\n */\n void init();\n /**\n * Context run.\n */\n void run();\n /**\n * @return The created user interaction context.\n */\n UserInteractionContext getUserInteractionContext();\n}",
"public final Context getContext() {\n return mContext;\n }",
"public Context getContext() {\n\t\treturn null;\n\t}",
"void mo25261a(Context context);",
"public RadioLFW (Context context) {\n super(context);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n context=getContext();\n\n }",
"public Object getContextObject() {\n return context;\n }",
"public interface IModuleContextTabletActivity extends IModuleContext {\n}",
"protected GeoFenceActivity(Context context) {\n this.mContext = context;\n // Create a GeofenceService instance.\n geofenceService = LocationServices.getGeofenceService(mContext);\n geofenceList = new ArrayList<>();\n // Obtain a PendingIntent object.\n pendingIntent = getPendingIntent();\n TAG = \"geoFence\";\n geoFenceActivated = false;\n }",
"@Override\r\n\tpublic void setContext(Context context) {\r\n\t\tthis.context = context;\r\n\t}",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n this.context = activity;\n }",
"@Override protected void attachBaseContext(Context baseContext) {\n baseContext = Flow.configure(baseContext, this).install();\n super.attachBaseContext(baseContext);\n }",
"public Context getContext() {\n return (Context)this;\n }",
"WebAppInterface(Context c) {\n mContext = c;\n }",
"WebAppInterface(Context c) {\n mContext = c;\n }",
"WebAppInterface(Context c) {\n mContext = c;\n }",
"RenderingContext getContext();",
"public Context getContext() {\n\t\treturn mContext;\n\t}",
"public interface ChauffeurService {\n void addChauffeur(Context context, Chauffeur chauffeur);\n void resetChauffeur(Context context);\n}",
"public Context getContext() {\n return this.mContext;\n }",
"public Context getContext() {\n return this.mContext;\n }",
"@Override\n\tpublic Void setContext(Context context) {\n\t\treturn null;\n\t}",
"@Override\r\n public void onAttach(Context context) {\r\n super.onAttach(context);\r\n }",
"public abstract void makeContext();",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n\n }",
"public void setContext(Context context) {\n this.context = context;\n }",
"public FightView(Context context) {\n super(context);\n this.context = context;\n instantiateVariables();\n }",
"public Context getActivityContext(){\n return mActivityContext;\n }",
"@Override\n public Context getActivityContext() {\n return mView.get().getActivityContext();\n }",
"public void use(Context context)\n {\n useImplementation.use(context);\n }",
"@Override\n\tpublic void initContext(Activity act) {\n\t\tthis._activity = act;\n\t}",
"WebAppInterface(Context c) {\n mContext = c;\n }",
"WebAppInterface(Context c) {\n mContext = c;\n }",
"WebAppInterface(Context c) {\r\n\t mContext = c;\r\n\t }",
"public Context getThis()\r\n {\r\n return this.context;\r\n }",
"public Context() {\n }",
"void setContext(Context context) {\n\t\tthis.context = context;\n\t}",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"public interface IViewListActivity {\n\n Context getBaseContext();\n\n View findViewById(final int id);\n\n void onResultList(final List<Filme> filmes);\n\n void setSupportActionBar(Toolbar toolbar);\n\n void startSearch();\n\n void onErrorSearch(final String errorMsg);\n\n void onSuccess(final Filme filme);\n\n}",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"@Override\n public void onAttach(@NotNull Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n public void onAttach(@NotNull Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }",
"@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }",
"@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }",
"@Override\n protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));\n }",
"@Override\n public void onAttach(Context context) {\n mcontext = context;\n super.onAttach( context );\n }",
"public BodyFragement() {\n\n }",
"@Override\n public void onAttach(@NonNull final Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n public void onAttach(@NonNull final Context context) {\n AndroidSupportInjection.inject(this);\n super.onAttach(context);\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n listener = (DeleteFishListener) context;\n }",
"protected void setup(Context context) {}"
] | [
"0.6506338",
"0.6506338",
"0.64672387",
"0.614064",
"0.61042273",
"0.60486543",
"0.59601796",
"0.59416485",
"0.587758",
"0.58249974",
"0.58249974",
"0.58247477",
"0.5785543",
"0.5784395",
"0.5779172",
"0.5772211",
"0.57633483",
"0.57633483",
"0.5760212",
"0.5738114",
"0.5734537",
"0.5698756",
"0.5694529",
"0.56856143",
"0.5685302",
"0.56250274",
"0.5618086",
"0.5618086",
"0.55902815",
"0.558888",
"0.5585531",
"0.5575163",
"0.5571898",
"0.55634147",
"0.55625504",
"0.5521222",
"0.5517689",
"0.55130416",
"0.5497937",
"0.54958624",
"0.5492634",
"0.54801875",
"0.5475779",
"0.5462477",
"0.5457066",
"0.5436376",
"0.5435958",
"0.54084927",
"0.5402634",
"0.54007274",
"0.53983945",
"0.5391319",
"0.5367676",
"0.5358815",
"0.5341931",
"0.53404903",
"0.5339559",
"0.5315721",
"0.5315721",
"0.5315721",
"0.5306295",
"0.5304727",
"0.53039116",
"0.5298881",
"0.5298881",
"0.52945256",
"0.52927136",
"0.5281763",
"0.52777505",
"0.52741563",
"0.5270508",
"0.52697873",
"0.52650386",
"0.5263176",
"0.52584755",
"0.5256958",
"0.5252636",
"0.5252636",
"0.5251914",
"0.5250597",
"0.5247906",
"0.52474713",
"0.5246424",
"0.5239075",
"0.5236138",
"0.5229717",
"0.5229717",
"0.5229717",
"0.5216404",
"0.5216404",
"0.5214549",
"0.5214549",
"0.5214549",
"0.5214549",
"0.5211303",
"0.52085364",
"0.52032703",
"0.52032703",
"0.52027494",
"0.5182125"
] | 0.8501077 | 0 |
Gets the Activity main image view. | ImageViewTouchBase getMainImage(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ImageView getImageView() {\n return (ImageView) getView().findViewById(imageViewId);\n }",
"public ImageView getMainAvatar() {\n\t\treturn mainAvatar;\n\t}",
"@Override\r\n\tpublic int rootViewId() {\n\t\treturn R.layout.activity_clip_photo;\r\n\t}",
"@Override\n\tpublic Matrix getCurrentImageViewMatrix() {\n\t\treturn mContext.getMainImage().getDisplayMatrix();\n\t}",
"@Override\n protected int layoutId() {\n return R.layout.activity_appraise_imageshow;\n }",
"ImageView getView() {\n return view;\n }",
"public PhotoUI getPhotoUI() {\n if (this.mUI == null) {\n this.mUI = new PhotoUI(this.mActivity, this, this.mActivity.getModuleLayoutRoot());\n }\n return this.mUI;\n }",
"@Nullable\n final public String getMainImageUrl() {\n return mMainImageUrl;\n }",
"public ImageView getImageView() {\n View view = this.mCardImage;\n if (view instanceof ImageView) {\n return (ImageView) view;\n }\n return null;\n }",
"AsyncImageView getBannerView();",
"protected ImageView getImageView(){\n\t\treturn iv1;\n\t}",
"AsyncImageView getIconView();",
"@Override\n int getLayout() {\n return R.layout.activity_main;\n }",
"ImageView getBadgeView();",
"@Override\n\tpublic Class<?> SupportViewType() {\n\t\treturn ImageView.class;\n\t}",
"@Nullable\n\tpublic ImageView getAlbumImage() {\n\t\tif (isViewInBounds(getActivity().getWindow().getDecorView(), mAlbumImage)) {\n\t\t\treturn mAlbumImage;\n\t\t}\n\t\treturn null;\n\t}",
"ImageView getAvatarImageView();",
"public ImageView getImage() {\n ImageView and = new ImageView(Image);\n and.setFitWidth(70);\n and.setFitHeight(50);\n return and;\n }",
"public View getView(Activity activity) {\n\t\treturn setView(activity, R.layout.title_main,\n\t\t\t\tactivity.getResources().getDrawable( R.drawable.menu_entry),mTitle,\n\t\t\t\t((MainActivity)activity).getMyOnclickListener());\n\t}",
"protected ImageView imageView( final int childViewIndex )\n {\n return updater.imageView( childViewIndex );\n }",
"@Override\n protected int getLayoutId() {\n return R.layout.activity_main;\n }",
"private ImageView setStartMenuImage() {\r\n Image image = null;\r\n try {\r\n image = new Image(new FileInputStream(\"images/icon1.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n ImageView imageView = new ImageView(image);\r\n imageView.setFitHeight(HEIGHT / 4);\r\n imageView.setPreserveRatio(true);\r\n return imageView;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_dialouge, container, false);\n\n ImageView image = (ImageView) v.findViewById(R.id.imageView);\n DogList myActivity = (DogList) getActivity();\n\n int iconresID = getResources().getIdentifier(myActivity.getClickedImage().toLowerCase(),\"drawable\", myActivity.getPackageName());\n\n image.setImageResource(iconresID);\n\n return v;\n }",
"@Override\r\n\tpublic View makeView() {\n\t\tImageView image = new ImageView(this);\r\n\t\t// cente会让居中显示并缩放\r\n\t\timage.setScaleType(ScaleType.FIT_CENTER);\r\n\t\treturn image;\r\n\t}",
"protected ImageView imageView( final View parentView, final int childViewIndex )\n {\n return updater.imageView( parentView, childViewIndex );\n }",
"@Override\n protected View onCreateView(ViewGroup parent) {\n View view = super.onCreateView(parent);\n\n image = (ImageView) view.findViewById(R.id.preference_cards_background_imageView);\n updateSummary();\n\n return view;\n }",
"ViewActivity getDefaultParentActivity();",
"public MainActivity getMainActivity() {\n return (MainActivity) getActivity();\n }",
"public int getContentViewLayoutID() {\n return R.layout.activity_login_main;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n ImageView imgView = new ImageView(getActivity());\n imgView.setImageResource(R.drawable.img1);\n return imgView;\n }",
"public View getLogoDimmer() {\n return this.mLogoDimmer;\n }",
"@Override\n\tpublic Widget getMainWidget() {\n\t\treturn display.asWidget();\n\t}",
"public Image getPrimaryImage() {\n return primaryImage;\n }",
"@Override\n\tpublic View onMainCreateView(Activity activity) {\n\t\tlayout = new FrameLayout(activity);\n\t\treturn layout;\n\t}",
"@Deprecated\n public void popupStartingImage(){\n Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.welcomepage);\n startingImage = new ImageView(this);\n startingImage.setImageBitmap(bitmap);\n\n windowManager = getWindowManager();\n WindowManager.LayoutParams params = new WindowManager.LayoutParams();\n params.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;\n params.gravity = Gravity.NO_GRAVITY;\n params.width = WindowManager.LayoutParams.MATCH_PARENT;\n params.height = WindowManager.LayoutParams.MATCH_PARENT;\n\n windowManager.addView(startingImage, params);\n }",
"@Override\n\tpublic int getView() {\n\t\treturn R.layout.activity_topnews;\n\t}",
"private void setupView() {\n\t\timg=(ImageView) findViewById(R.id.imageView1);\n\t}",
"public ViewIdentificator getView() {\r\n return view;\r\n }",
"@Override\n protected void loadViewLayout() {\n setContentView(R.layout.ui_imgs_graffit);\n }",
"public abstract int getRootView();",
"public Drawable getImage(){\n\t\treturn mImage;\n\t}",
"@Override\n\tpublic int getContentView() {\n\t\treturn R.layout.activity_home;\n\t}",
"public static int getAboutImage() {\n switch (RANDOM.nextInt(4)) {\n default:\n case 0:\n return R.drawable.devteam;\n case 1:\n return R.drawable.devteam;\n case 2:\n return R.drawable.devteam;\n case 3:\n return R.drawable.devteam;\n }\n }",
"public int mo19863f() {\n return R.layout.activity_web;\n }",
"public void initView(Context context) {\n this.imageView = new ImageView(context);\n this.imageView.setPadding(22, 22, 22, 22);\n this.imageView.setImageResource(R.mipmap.start_circle3x);\n addView(this.imageView);\n }",
"public View getRootView(){\n return this.rootView;\n }",
"@Override\n public int getLayoutId() {\n return R.layout.activity_main2;\n }",
"@Override\n\tpublic int setLayout() {\n\t\treturn R.layout.activity_main;\n\t}",
"public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }",
"public View getGraphic()\n{\n // Get image for file\n //Image img = _type==FileType.PACKAGE_DIR? Package : ViewUtils.getFileIconImage(_file);\n Image img = ViewUtils.getFileIconImage(_file);\n View grf = new ImageView(img); grf.setPrefSize(18,18);\n \n // If error/warning add Error/Warning badge as composite icon\n /*BuildIssue.Kind status = _proj!=null? _proj.getRootProject().getBuildIssues().getBuildStatus(_file) : null;\n if(status!=null) {\n Image badge = status==BuildIssue.Kind.Error? ErrorBadge : WarningBadge;\n ImageView bview = new ImageView(badge); bview.setLean(Pos.BOTTOM_LEFT);\n StackView spane = new StackView(); spane.setChildren(grf, bview); grf = spane;\n }*/\n \n // Return node\n return grf;\n}",
"Image getOpenPerspectiveImage() {\n\t\treturn iconService.getIcon(\"new_persp.gif\");\n\t}",
"public abstract View getMainDialogContainer();",
"public View getOverlayView()\r\n\t{\r\n\t\treturn overlayView;\r\n\t}",
"public final MainActivity m16895C() {\n if (this.f12260a != null) {\n return this.f12260a;\n }\n Log.e(\"UI_OPERATION\", \"parent link is null, Ui manager can not work with null parent!!!!!!!!!!!!!!\", m16892a());\n System.exit(0);\n return new MainActivity();\n }",
"public ImageView getId_image_item_shown() {\n return mHolder.id_image_item_shown;\n }",
"protected abstract int getContentView();",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstance){\n View rootView = inflater.inflate(R.layout.fragement_body_layout,container,false);\n // get the reference to imageView in the fragment layout\n ImageView imageView = (ImageView) rootView.findViewById(R.id.body_part_image_view);\n //set the image view to daisplay\n imageView.setImageResource(AndroidImageAssets.getHeads().get(0));\n\n return rootView;\n }",
"ViewGroup getDrawingImageContainer();",
"private View createIcon() {\r\n\t\tImageView img = new ImageView(getContext());\r\n\t\tLayoutParams imglp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\t\timglp.gravity = Gravity.CENTER_VERTICAL;\r\n\t\timglp.rightMargin = 5;\r\n\t\timg.setLayoutParams(imglp);\r\n\r\n\t\timg.setBackgroundDrawable(getContext().getResources().getDrawable(R.drawable.account));\r\n\t\treturn img;\r\n\t}",
"public View getView() {\n\t\treturn view;\n\t}",
"@NonNull\r\n @Override\r\n public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n\r\n ImageView view = new ImageView(getApplicationContext());\r\n\r\n\r\n return new RecyclerView.ViewHolder(view) {\r\n\r\n };\r\n }",
"@SuppressLint(\"InflateParams\")\n @NonNull\n private MoPubView getMoPubView(Activity activity) {\n if (sMoPubView == null) {\n sMoPubView = (MoPubView) activity.getLayoutInflater()\n .inflate(R.layout.layout_mopub_banner, null, false);\n }\n return sMoPubView;\n }",
"public Image getShowImage() {\n\t\treturn showImage;\n\t}",
"public AbstractView getPrimeView()\n {\n return m_MainWindow.getPrimeView();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tab, container, false);\n\n Drawable myDrawable = getResources().getDrawable(R.drawable.youtube_boton);\n\n Imagen = (ImageView) view.findViewById(R.id.Imagen1);\n Imagen.setImageDrawable(myDrawable);\n\n return view;\n }",
"public View getGraphic(AppFile anItem) { return anItem.getGraphic(); }",
"public JPanel getMainPanelFromGameGUI() {\n\t\treturn gameView.getMainPanel();\n\t}",
"public String getImageToDisplay() {\n return imageToDisplay;\n }",
"public abstract int getContentView();",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tImageView imageView = new ImageView(GridViewAnimationActivity.this);\n\t\t\tResolveInfo info = mApps.get(position % mApps.size());\n\t\t\timageView.setImageDrawable(info.activityInfo\n\t\t\t\t\t.loadIcon(getPackageManager()));\n\t\t\timageView.setScaleType(ImageView.ScaleType.FIT_CENTER);\n\t\t\tfinal int w = (int) (45 * getResources().getDisplayMetrics().density + 0.5f);\n\t\t\timageView.setLayoutParams(new GridView.LayoutParams(w, w));\n\t\t\treturn imageView;\n\t\t}",
"private void screenshotView() {\n // Only take a screenshot if the activity is not finishing\n if (getContext() instanceof Activity && ((Activity) getContext()).isFinishing()) return;\n\n Bitmap screenshot = getScreenshotBitmap();\n if (screenshot == null) return;\n\n screenshotView = new ImageView(getContext());\n screenshotView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));\n screenshotView.setClickable(true);\n screenshotView.setImageBitmap(screenshot);\n screenshotOrientation = getOrientation();\n\n addView(screenshotView);\n\n TurbolinksLog.d(\"Screenshot taken\");\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main2);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n OnClickImage();\n\n\n }",
"View getActiveView();",
"private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName);\n\t\tBitmap bm = BitmapFactory.decodeFile(fileName); \n\t\t\n\t\timage.setImageBitmap(bm); \n\t\t\n\t\t//System.out.println(\"show done!\\n\");\t\t\n\t\t\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 }",
"private void initViews() {\n /* Intent get data handler */\n fullScreenSnap = (ImageView) findViewById(R.id.fullScreenSnap);\n mToolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(mToolbar);\n getSupportActionBar().setTitle(AppConstants.imageName);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n mToolbar.setNavigationIcon(R.drawable.back_button);\n }",
"public void setMainImage(int resource) {\n this.imgMain.setImageResource(resource);\n }",
"@Override\n\tpublic int getLayout() {\n\t\treturn R.layout.activity_mycycle;\n\t}",
"public View getGraphic(T anItem)\n{\n Image img = getImage(anItem);\n return img!=null? new ImageView(img) : null;\n}",
"public Image getOne();",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t super.onCreate(savedInstanceState);\r\n\t \r\n\t //set fullscreen\r\n\t requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, \r\n WindowManager.LayoutParams.FLAG_FULLSCREEN);\r\n\t \r\n\t \r\n\t setContentView(R.layout.ate_main);\r\n\t \r\n\t ImageView launchProgramAte = (ImageView) findViewById(R.id.imageViewProgram);\r\n\t ImageView launchFinalAte = (ImageView) findViewById(R.id.imageViewFinal);\r\n\t ImageView launchSettings = (ImageView) findViewById(R.id.imageViewSettings);\r\n\r\n\t launchProgramAte.setOnClickListener(this);\r\n\t launchFinalAte.setOnClickListener(this);\r\n\t launchSettings.setOnClickListener(this);\r\n\t \r\n\t // TODO Auto-generated method stub\r\n\t}",
"public static int getImageResourceId() {\n return mImageResourceId;\n }",
"@Override\n public Activity getViewActivity() {\n return this;\n }",
"@Override\n protected int getLayoutResourceId() {\n return R.layout.activity_launcher;\n }",
"@Override\n public View getView() {\n photoLayout = new LinearLayout(context);\n addPhotoButton = new Button(context);\n addPhotoButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dispatchTakePictureIntent();\n }\n });\n addPhotoButton.setText(\"Take a photo\");\n photoLayout.addView(addPhotoButton);\n// photoLayout.\n return photoLayout;\n }",
"public ImageIcon getCurrentImage() {\n\t\t\treturn this.currentImage;\n\t}",
"public Image getFlat();",
"public Bitmap getImage() {\n return image;\n }",
"public static void menu_viewimageinbrowser(ActionContext actionContext){\n Thing currentThing = actionContext.getObject(\"currentThing\");\n \n String url = XWorkerUtils.getWebUrl() + \"do?sc=xworker.ide.worldexplorer.swt.http.SwtImage\";\n url = url + \"&control=\" + currentThing.getMetadata().getPath();\n \n XWorkerUtils.ideOpenUrl(url); \n }",
"private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }",
"public Point convertImageToView(Point img) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}",
"@Override\n public void onClick(View view) {\n Glide.with(HomeActivity.this).load(\"https://steamcdn-a.akamaihd.net/steam/apps/570840/logo.png?t=1574384831\").into(imageViewNeko);\n }",
"com.google.wireless.android.sdk.stats.FilterMetadata.View getActiveView();",
"public View getGraphicAfter(T anItem)\n{\n Image img = getImageAfter(anItem);\n return img!=null? new ImageView(img) : null;\n}",
"@Override\r\n\t\t\tpublic void onViewClick(MyImageView view)\r\n\t\t\t{\n\t\t\t\tIntent it = new Intent(MainActivity.this,\r\n\t\t\t\t\t\tIndexActivityNew.class);\r\n\t\t\t\tstartActivity(it);\r\n\t\t\t}",
"public Screenshot(Activity activity) {\n\t\t\tfinal View contentView = activity\n\t\t\t\t\t.findViewById(android.R.id.content);\n\t\t\tthis.view = contentView.getRootView();\n\t\t}",
"public View getRootView() {\n return mEnclosingLayout == null ? mDecorContent : mEnclosingLayout;\n }",
"public Image getImage() {\n return (isFacingRight) ? Images.get(\"rightTedhaun\") : Images.get(\"leftTedhaun\");\n }",
"public Image getInstanceImage() {\r\n return this.image;\r\n }"
] | [
"0.6806039",
"0.65418065",
"0.61315423",
"0.61306375",
"0.60799223",
"0.6079079",
"0.59926796",
"0.5973153",
"0.5963417",
"0.5894909",
"0.58927387",
"0.5843755",
"0.5837574",
"0.58088124",
"0.57385474",
"0.5719824",
"0.5681275",
"0.5681078",
"0.56289387",
"0.56152904",
"0.5598346",
"0.5595155",
"0.5587254",
"0.5543937",
"0.5477352",
"0.5435683",
"0.5426184",
"0.54199785",
"0.54135484",
"0.5387603",
"0.5366503",
"0.5366081",
"0.5352272",
"0.53448594",
"0.53254235",
"0.5322702",
"0.5320776",
"0.5301791",
"0.5295819",
"0.5279493",
"0.5265419",
"0.52590346",
"0.52471703",
"0.5235062",
"0.5216173",
"0.5190482",
"0.5187779",
"0.51839304",
"0.5182334",
"0.5182312",
"0.51791406",
"0.51662534",
"0.51512283",
"0.5150638",
"0.5144294",
"0.51347",
"0.51319087",
"0.51174086",
"0.51171523",
"0.51056564",
"0.51036495",
"0.51014066",
"0.5101234",
"0.50994515",
"0.50863683",
"0.5086181",
"0.50845486",
"0.5082414",
"0.50759286",
"0.50758934",
"0.5074917",
"0.506726",
"0.5064841",
"0.50648195",
"0.5054924",
"0.50456345",
"0.5043033",
"0.50387967",
"0.50364923",
"0.50256443",
"0.5024204",
"0.50196",
"0.50143605",
"0.50108016",
"0.50096035",
"0.5004389",
"0.5002972",
"0.50016046",
"0.5001435",
"0.49974215",
"0.49896586",
"0.49860966",
"0.49855244",
"0.498504",
"0.49826062",
"0.49772736",
"0.49721262",
"0.4968454",
"0.49677536",
"0.49599382"
] | 0.76160717 | 0 |
Gets the Activity bottom bar view. | BottombarViewFlipper getBottomBar(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected View getBottomLayout() {\n\t\treturn new View(this);\n\t}",
"protected JPanel getBottomPanel() {\n return null;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_app_bar_bottom, container, false);\n mUnbider = ButterKnife.bind(this, view);\n\n return view;\n }",
"protected double getWindowBottomY() {\n\t\treturn this.m_windowBottomY;\n\t}",
"public View getActionBarView(Activity activity) {\n Window window = activity.getWindow();\n View view = window.getDecorView();\n int resId = activity.getResources().getIdentifier(\"action_bar_container\", \"id\", \"android\");\n\n return view.findViewById(resId);\n }",
"public int getBottom() {\n\t\treturn this.bottom;\n\t}",
"protected View getFooterProgressView() {\n Activity activity = getActivity();\n if (activity != null) {\n return activity.getLayoutInflater().inflate(R.layout.footer_progress_layout, null);\n } else {\n return null;\n }\n }",
"private int getWindowHeight() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n ((Activity) getContext()).getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n return displayMetrics.heightPixels;\n }",
"public int m2392d() {\n return VERSION.SDK_INT >= 20 ? ((WindowInsets) this.f1817a).getSystemWindowInsetBottom() : 0;\n }",
"public View initBottomView() {\n return new BaseEditBottomView(this.mContext);\n }",
"public float getBottom() {\r\n\t\treturn top + height;\r\n\t}",
"public int getSafeInsetBottom() {\n if (SDK_INT >= 28) {\n return ((DisplayCutout) mDisplayCutout).getSafeInsetBottom();\n } else {\n return 0;\n }\n }",
"private int getStatusBarHeight() {\n if (mStatusBarHeight == 0) {\n Rect screenFrame = new Rect();\n getWindow().getDecorView().getWindowVisibleDisplayFrame(screenFrame);\n mStatusBarHeight = screenFrame.top;\n }\n\n return mStatusBarHeight;\n }",
"@JSProperty(\"bottom\")\n @Nullable\n Chart3dFrameBottomOptions getBottom();",
"public int getBottom() {\n return position[0] + (size - 1) / 2;\n }",
"@Test\n public void testBottomBarInitialized() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n appContext.setTheme(R.style.Theme_Entree);\n MenuBarsView v = new MenuBarsView(appContext, null, null);\n\n assertTrue(v.getBottomView() != null);\n }",
"public int getStatusBarHeight() {\n int result = 0;\n int resourceId = _act.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = _act.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"public abstract int getStatusBarHeight(int position);",
"public static int getSoftButtonsBarSizePort(Activity activity) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {\n DisplayMetrics metrics = new DisplayMetrics();\n activity.getWindowManager().getDefaultDisplay().getMetrics(metrics);\n int usableHeight = metrics.heightPixels;\n activity.getWindowManager().getDefaultDisplay().getRealMetrics(metrics);\n int realHeight = metrics.heightPixels;\n if (realHeight > usableHeight)\n return realHeight - usableHeight;\n else\n return 0;\n }\n return 0;\n }",
"@Override\n protected int getLayout() {\n return R.layout.activity_history;\n }",
"private int getStatusBarHeight() {\n int result = 0;\n int resourceId = context.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = context.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"public int getBarSize() {\n return mBarSize;\n }",
"public int getBottom(){\n\t\treturn platformHitbox.y+height;\n\t}",
"public int getStatusBarHeight() {\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0)\n return getResources().getDimensionPixelSize(resourceId);\n return 0;\n }",
"@SuppressLint(\"Deprecation\") //Device getHeight() is deprecated but the replacement is API 13+\n public int getNavigationBarHeight() {\n if (mNavigationBarHeight == 0) {\n Rect visibleFrame = new Rect();\n getWindow().getDecorView().getWindowVisibleDisplayFrame(visibleFrame);\n DisplayMetrics outMetrics = new DisplayMetrics();\n if (Build.VERSION.SDK_INT >= 17) {\n //The sane way to calculate this.\n getWindowManager().getDefaultDisplay().getRealMetrics(outMetrics);\n mNavigationBarHeight = outMetrics.heightPixels - visibleFrame.bottom;\n } else {\n getWindowManager().getDefaultDisplay().getMetrics(outMetrics);\n\n //visibleFrame will return the same as the outMetrics the first time through,\n // then will have the visible frame the full size of the screen when it comes back\n // around to close. OutMetrics will always be the view - the nav bar.\n mNavigationBarHeight = visibleFrame.bottom - outMetrics.heightPixels;\n }\n }\n\n return mNavigationBarHeight;\n }",
"public int getBarSize() { return _barSize; }",
"public int getStatusBarHeight() {\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"public int getStatusBarHeight() {\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout._magic_theme_fragment_bottom_bar, container, false);\n\n icon_holder = root.findViewById(R.id.icon_holder);\n\n iconButtonRow = new IconButtonRow(getContext(), icon_holder);\n iconButtonRow.setActiveColor(ContextCompat.getColor(getContext(), getActiveColor()));\n iconButtonRow.setInactiveColor(ContextCompat.getColor(getContext(),getInactiveColor()));\n iconButtonRow.setBackgroundColor(ContextCompat.getColor(getContext(), getBackgroundColor()));\n\n\n addItems(iconButtonRow);\n\n iconButtonRow.setOnSelectChangeListener(new IconButtonRow.OnSelectChangeListener() {\n @Override\n public void onSelectChange(int index) {\n if (onBottomNavigationSelectListener != null)\n onBottomNavigationSelectListener.onSelect(index);\n }\n });\n\n\n icon_holder.addView(iconButtonRow.getView());\n return root;\n }",
"private JPanel getBottomPanel() {\r\n if (BottomPanel == null) {\r\n BottomPanel = new JPanel();\r\n BottomPanel.setLayout(null);\r\n BottomPanel.setBounds(new Rectangle(-1, 592, 525, 30));\r\n BottomPanel.setBorder(BorderFactory.createLineBorder(Color.gray, 1));\r\n BottomPanel.add(CardPrio, null);\r\n BottomPanel.add(Pr1, null);\r\n BottomPanel.add(pr2, null);\r\n BottomPanel.add(pr3, null);\r\n BottomPanel.add(pr4, null);\r\n }\r\n return BottomPanel;\r\n }",
"final private int getNavigationBarHeight() {\n int resourceId = getResources().getIdentifier(\"navigation_bar_height\", \"dimen\", \"android\");\n if (!hasPermanentKeys() && resourceId > 0)\n return getResources().getDimensionPixelSize(resourceId);\n return 0;\n }",
"public static int getActionBarHeight(Context context){\n TypedValue tv = new TypedValue();\n context.getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true);\n int actionBarHeight = context.getResources().getDimensionPixelSize(tv.resourceId);\n return actionBarHeight;\n }",
"@SuppressWarnings(\"unused\")\n public int getProgressBarHeight() {\n LayoutParams lp = getLayoutParams();\n\n if (lp==null) return 0;\n\n return lp.height;\n }",
"private static int getStatusBarHeight(Context context) {\n int result = 0;\n int resId = context.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resId > 0) {\n result = context.getResources().getDimensionPixelOffset(resId);\n }\n return result;\n }",
"private static View addFakeStatusBarView(Activity activity, int statusBarColor, int statusBarHeight) {\n Window window = activity.getWindow();\n ViewGroup mDecorView = (ViewGroup) window.getDecorView();\n\n View mStatusBarView = new View(activity);\n FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, statusBarHeight);\n layoutParams.gravity = Gravity.TOP;\n mStatusBarView.setLayoutParams(layoutParams);\n mStatusBarView.setBackgroundColor(statusBarColor);\n mStatusBarView.setTag(TAG_FAKE_STATUS_BAR_VIEW);\n\n mDecorView.addView(mStatusBarView);\n return mStatusBarView;\n }",
"private JPanel renderBottom() {\n JPanel bottomPanel = new JPanel(new GridBagLayout());\n\n backBTN = new JButton(\"Back to the chat\");\n backBTN.setForeground(ColorUtil.black);\n backBTN.setBackground(ColorUtil.buttonBack);\n backBTN.setFont(FontUtil.defaultFont);\n\n bottomPanel.add(backBTN);\n\n return bottomPanel;\n }",
"public int getBottomY() {\n\t\treturn 0;\r\n\t}",
"public JPanel getPanel() {\n\t\treturn barChartPanel;\n\t}",
"@Override\n public int getLayout() {\n return R.layout.activity_home;\n }",
"public BarService getBarService() {\n\t\treturn barService;\n\t}",
"public int getAdViewHeight() {\n return (tozAdViewHeight);\n }",
"public double getBottom() {\n return this.yD;\n }",
"private int getChildBottom(final View child) {\n return child.getBottom() + getChildMargin(child);\n }",
"public BwView getView() {\n if (view == null) {\n view = new BwView();\n }\n\n return view;\n }",
"protected ViewGroup getDecorView() {\n if (getContext() instanceof Activity) {\n View decor = ((Activity) getContext()).getWindow().getDecorView();\n\n if (decor instanceof ViewGroup) {\n return (ViewGroup) decor;\n }\n }\n\n //Try to fetch DecorView from parents\n ViewGroup view = this;\n while (view.getParent() != null && view.getParent() instanceof ViewGroup) {\n view = (ViewGroup) view.getParent();\n }\n return view;\n }",
"@Override\n\tpublic PanelBottomInterface getPanelBottom() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic PanelBottomInterface getPanelBottom() {\n\t\treturn null;\n\t}",
"public int getLayout() {\n\t\treturn R.layout.fra_history;\n\t}",
"public JPanel bottomPanel() {\n\t\tJPanel bpanel = new JPanel(null);\n\t\tbpanel.setBounds(0, 400, 700, 100);\n\t\tbpanel.setBackground(Color.PINK);\n\t\tlbldescribe.setBounds(450, 10, 250, 50);\n\t\tlbldescribe.setForeground(Color.WHITE);\n\t\tbpanel.add(lbldescribe);\n\t\treturn bpanel;\n\t}",
"public int m2390b() {\n return VERSION.SDK_INT >= 20 ? ((WindowInsets) this.f1817a).getSystemWindowInsetTop() : 0;\n }",
"public static int getStatusBarHeight(Context context){\n Resources resources = context.getResources();\n int resourceId = resources.getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n return resources.getDimensionPixelSize(resourceId);\n }\n return 0;\n }",
"public int getDecoratedEnd(View view) {\r\n final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams)\r\n view.getLayoutParams();\r\n return getDecoratedBottom(view) + params.bottomMargin;\r\n }",
"public double Bottom(){\n\t\tdouble fary = y + sizeY - 1;\n\t\treturn (fary);\n\t}",
"protected final WebMarkupContainer getTabBar() {\n return (WebMarkupContainer) get(TABS_BAR_ID);\n }",
"public int getBottomWeight(){\r\n\t \treturn this.bottomWeight;\r\n\t }",
"public android.support.v7.widget.Toolbar getToolbar()\n {\n return _toolbar;\n }",
"public int getLayout() {\n if (AliMemberSDK.getService(StatusBarService.class) == null || ((StatusBarService) AliMemberSDK.getService(StatusBarService.class)).getWebLayout() <= 0) {\n return R.layout.ali_user_ucc_webview;\n }\n return ((StatusBarService) AliMemberSDK.getService(StatusBarService.class)).getWebLayout();\n }",
"public static int getDeviceHeight(Context context) {\n if (context != null) {\n if (Build.MODEL.equalsIgnoreCase(\"SM-T835\") || Build.MODEL.equalsIgnoreCase(\"SM-T595\")) {\n int resource = context.getResources().getIdentifier(\"navigation_bar_height\", \"dimen\", \"android\");\n if (resource > 0) {\n statusBarHeight = context.getResources().getDimensionPixelSize(resource);\n }\n }\n return context.getResources().getDisplayMetrics().heightPixels + statusBarHeight;\n } else\n return 0;\n\n }",
"protected double getWindowHeight() {\n\t\treturn m_windowHeight;\n\t}",
"@Override\r\n public int getMinActionBarHeight() {\r\n int height = 0;\r\n if (toolbar != null) {\r\n toolbar.measure(0, 0);\r\n height = height + toolbar.getMeasuredHeight();\r\n }\r\n if (slidingTabLayout != null) {\r\n slidingTabLayout.measure(0, 0);\r\n height = height + slidingTabLayout.getMeasuredHeight();\r\n mMinHeaderTranslation = -headerHeight + slidingTabLayout.getMeasuredHeight();\r\n }\r\n\r\n return height;\r\n }",
"public int getTabPosition() {\n checkWidget();\n return onBottom ? SWT.BOTTOM : SWT.TOP;\n }",
"public int onCreateViewLayout() {\n return R.layout.gb_fragment_performance_settings;\n }",
"public static int getNavigationBarHeight(Context context) {\n Resources resources = context.getResources();\n int resourceId = resources.getIdentifier(\"navigation_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n return resources.getDimensionPixelSize(resourceId);\n }\n\n return 0;\n }",
"public int getYBottom() {\n return getYTop() + getYWidth();\n }",
"@Override\r\n public int getHeight() {\r\n if(mBaseView != null)\r\n return mBaseView.getHeight();\r\n else\r\n return 0;\r\n }",
"public int getScreenHeight(Activity activity)\n {\n return activity.getResources().getDisplayMetrics().heightPixels;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n fragmentUpdateAppBottomBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_update_app_bottom, container, false);\n return fragmentUpdateAppBottomBinding.getRoot(); }",
"public Boolean getShowHBar() { return _showHBar; }",
"public String getBottomWidth() {\r\n\t\treturn bottomWidth;\r\n\t}",
"public interface BottomView {\n}",
"public int getContentLayout() {\n return R.layout.activity_base_scan;\n }",
"public static SuffixLattice getBottom() {\n\t\treturn BOTTOM;\n\t}",
"C getRegisteredToolBar(ToolbarPosition position);",
"public Toolbarspace getToolbarspace() {\n return toolbarspace;\n }",
"private HistoryViewPanel getViewPanel() {\n if (viewPanel == null) {\n viewPanel = new HistoryViewPanel();\n viewPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));\n }\n\n return viewPanel;\n }",
"public static Point CalculateWindowBottom(int width, int height) {\r\n\t\treturn new Point((Gdx.graphics.getWidth() / 2) - (width/2),height + 16); //add offset to y to compensate\r\n\t}",
"public static int getWindowHeight(Context context) {\n /*\n int measuredHeight = 0;\n Point size = new Point();\n WindowManager w = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n w.getDefaultDisplay().getSize(size);\n measuredHeight = size.y;\n } else {\n Display d = w.getDefaultDisplay();\n measuredHeight = d.getHeight();\n }\n return measuredHeight;\n */\n\n WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = windowManager.getDefaultDisplay();\n int realWidth;\n int realHeight;\n\n if (Build.VERSION.SDK_INT >= 17) {\n //new pleasant way to get real metrics\n DisplayMetrics realMetrics = new DisplayMetrics();\n display.getRealMetrics(realMetrics);\n realWidth = realMetrics.widthPixels;\n realHeight = realMetrics.heightPixels;\n\n } else if (Build.VERSION.SDK_INT >= 14) {\n //reflection for this weird in-between time\n try {\n Method mGetRawH = Display.class.getMethod(\"getRawHeight\");\n Method mGetRawW = Display.class.getMethod(\"getRawWidth\");\n realWidth = (Integer) mGetRawW.invoke(display);\n realHeight = (Integer) mGetRawH.invoke(display);\n } catch (Exception e) {\n //this may not be 100% accurate, but it's all we've got\n realWidth = display.getWidth();\n realHeight = display.getHeight();\n Log.e(\"Display Info\", \"Couldn't use reflection to get the real display metrics.\");\n }\n\n } else {\n //This should be close, as lower API devices should not have window navigation bars\n realWidth = display.getWidth();\n realHeight = display.getHeight();\n }\n return realHeight;\n }",
"public View getTopView() {\n\t\tint topViewIndex = getChildCount() - 1;\n\t\treturn getChildAt(topViewIndex);\n\t}",
"public InfoWindowManager getInfoWindowManager() {\n return this.infoWindowManager;\n }",
"public int getMarginBottom()\n {\n return marginBottom;\n }",
"public int getCompoundPaddingBottom() {\n final Drawables dr = mDrawables;\n if (dr == null || dr.mDrawableBottom == null) {\n return mPaddingBottom;\n } else {\n return mPaddingBottom + dr.mDrawablePadding + dr.mDrawableSizeBottom;\n }\n }",
"public JToolBar getToolBar() {\n return myToolBar;\n }",
"public BarChartModel getBarModel() {\r\n\t\treturn barModel;\r\n\t}",
"protected int getSurfaceHeight() {\n assertActivityNotNull();\n return mActivity.getHeight();\n }",
"@Override\n\tpublic int getContentView() {\n\t\treturn R.layout.activity_home;\n\t}",
"public void showAtBottom() {\n showAtLocation(rootView, Gravity.BOTTOM, 0, 0);\n }",
"public ScrollBar getHBar()\n {\n if (_hbar!=null) return _hbar;\n _hbar = new ScrollBar();\n _hbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _hbar;\n }",
"public View getRootView() {\n return mEnclosingLayout == null ? mDecorContent : mEnclosingLayout;\n }",
"private void findDialogView() {\n dialog = new BottomSheetDialog(getActivity(), R.style.BottomSharingSheet);\n View dialogView = LayoutInflater.from(getContext()).inflate(R.layout.sharing_bottom_sheet, null);\n dialog.setContentView(dialogView);\n closeNavigation = dialogView.findViewById(R.id.imgClose);\n llFacebook = dialogView.findViewById(R.id.llFacebook);\n llTwitter = dialogView.findViewById(R.id.llemail);\n llInstagram = dialogView.findViewById(R.id.lltalk);\n llStories = dialogView.findViewById(R.id.llGoogle);\n llBand = dialogView.findViewById(R.id.llBand);\n llMore = dialogView.findViewById(R.id.llMore);\n llVideoReport = dialogView.findViewById(R.id.llVideoReport);\n closeNavigation.setOnClickListener(this);\n llFacebook.setOnClickListener(this);\n llTwitter.setOnClickListener(this);\n llInstagram.setOnClickListener(this);\n llStories.setOnClickListener(this);\n llBand.setOnClickListener(this);\n llMore.setOnClickListener(this);\n llVideoReport.setOnClickListener(this);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.drawer_bottom, container, false);\n\n return view;\n }",
"public JToolBar getToolBar() {\n return toolBar;\n }",
"@Override\n public WebView getCurrentTopWebView() {\n return mTabControl.getCurrentTopWebView();\n }",
"public void resetBottomButtons() {\n SystemBarConfig config = mContext.mTintManager.getConfig();\n boolean hasNavigation = config.hasNavigtionBar();\n if (hasNavigation) {\n RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) mContainer.getLayoutParams();\n int navigationHeight = config.getNavigationBarHeight();\n int navigationWidth = config.getNavigationBarWidth();\n boolean isAtBottom = ScreenUtils.isNavigationAtBottom(mContext);\n if (isAtBottom) {\n params.setMargins(0, 0, 0, navigationHeight);\n } else {\n params.setMargins(0, 0, navigationWidth, 0);\n }\n // if not in ScreenInPortFull,We do not need to setMargin.\n if (ScreenUtils.getScreenInfo(mContext) != ScreenUtils.tempScreenInPortFull) {\n params.setMargins(0, 0, 0, 0);\n }\n mContainer.setLayoutParams(params);\n }\n }",
"@Override\n public void onViewAttachedToWindow(@NonNull BarHolder holder) {\n super.onViewAttachedToWindow(holder);\n\n // get position of attached view to update to its data\n nextPos = holder.getAdapterPosition();\n\n }",
"public abstract int getFragmentLayout();",
"public static int getMobileHeight(Context context) {\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\t((Activity) context).getWindowManager().getDefaultDisplay().getMetrics(dm);\n\t\tint height = dm.heightPixels; // 得到高度\n\t\treturn height;\n\t}",
"@Override\n protected FlowPanel buildBottomNavBar() {\n return buildTopNavBar();\n }",
"public Point getBottomRight() {\n return location.bottomRight();\n }",
"@Override\n int getLayout() {\n return R.layout.activity_main;\n }",
"protected int getHeightDelta() {\n return super.getHeightDelta()+ menuBarHeightDelta;\n }"
] | [
"0.70860106",
"0.59214073",
"0.58880305",
"0.5879387",
"0.5800626",
"0.5769593",
"0.5768795",
"0.5688618",
"0.568528",
"0.5634806",
"0.5590181",
"0.5586346",
"0.5577767",
"0.5543903",
"0.5521998",
"0.5515493",
"0.5514201",
"0.5492127",
"0.5485387",
"0.54823536",
"0.5467561",
"0.5428043",
"0.54278094",
"0.5419223",
"0.5415415",
"0.541518",
"0.54066956",
"0.54066956",
"0.5402211",
"0.53743255",
"0.5360797",
"0.5343787",
"0.53291327",
"0.53263086",
"0.53253",
"0.53200155",
"0.5291804",
"0.52916527",
"0.52854604",
"0.5282321",
"0.52604216",
"0.52487063",
"0.5235792",
"0.52166456",
"0.52114385",
"0.5188324",
"0.5188324",
"0.5188097",
"0.5184692",
"0.51762867",
"0.5162696",
"0.51620954",
"0.51548296",
"0.5153897",
"0.5146403",
"0.5141345",
"0.51232785",
"0.5120893",
"0.5111226",
"0.5109549",
"0.510522",
"0.51016974",
"0.50956625",
"0.5093513",
"0.5085761",
"0.50728637",
"0.50685114",
"0.50575924",
"0.50451916",
"0.50258493",
"0.50039715",
"0.5002261",
"0.49956727",
"0.49797386",
"0.49785197",
"0.49727267",
"0.4964098",
"0.49537662",
"0.49487594",
"0.49481574",
"0.4945327",
"0.49365932",
"0.49308676",
"0.49305576",
"0.4923715",
"0.49202433",
"0.49175197",
"0.49163345",
"0.4914353",
"0.48983562",
"0.48855424",
"0.48849127",
"0.48826495",
"0.4875543",
"0.4860697",
"0.48595238",
"0.48557043",
"0.4853379",
"0.4852554",
"0.4833034"
] | 0.79465926 | 0 |
Gets the Activity options panel container view. | ViewGroup getOptionsPanelContainer(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Component getOptionsPanel() {\n return _options;\n }",
"public IOptionsContainer getContainer();",
"public abstract View getMainDialogContainer();",
"private JPanel getExtendedOptionsPanel() {\n\t\tif (extendedOptionsPanel == null) {\n\t\t\textendedOptionsPanel = new JPanel();\n\t\t\textendedOptionsPanel.setLayout(null);\n\t\t\textendedOptionsPanel.setBounds(new java.awt.Rectangle(2, 226, 465,\n\t\t\t\t\t62));\n\t\t\textendedOptionsPanel\n\t\t\t\t\t.setBorder(javax.swing.BorderFactory\n\t\t\t\t\t\t\t.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\n\t\t\textendedOptionsPanel.add(getTypePolygonBufferPanel(), null);\n\t\t\textendedOptionsPanel.add(getNumBuffersPanel(), null);\n\t\t}\n\t\treturn extendedOptionsPanel;\n\t}",
"protected JPanel getTopPanel() {\n List topComps = new ArrayList();\n getTopComponents(topComps);\n if (topComps.size() == 0) {\n return null;\n }\n JPanel topPanel = GuiUtils.left(GuiUtils.doLayout(topComps, 0, GuiUtils.WT_N, GuiUtils.WT_N));\n topPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n \n return McVGuiUtils.makeLabeledComponent(\"Options:\", topPanel);\n }",
"public ViewGroup getContainer() {\n return mContainer;\n }",
"private JPanel getJPanelOptions() {\r\n\t\tjPanelOptions = new JPanel();\r\n\t\t//jPanelOptions.setLayout(new BoxLayout(jPanelOptions, BoxLayout.X_AXIS));\r\n\t\t//jPanelOptions.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));\r\n\t\tjPanelOptions.setLayout(new GridBagLayout());\r\n\t\tjPanelOptions.setBorder(new TitledBorder(null, \"Options\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\t\r\n\t\tjPanelOptions.add(getJPanelAggLength(), getGBC_AggLength());\t\r\n\t\tjPanelOptions.add(getJPanelAlphabetSize(), getGBC_AlphabetSize());\t\r\n\t\tjPanelOptions.add(getJPanelWordLength(), getGBC_WordLength());\r\n\t\tjPanelOptions.add(getJPanelSubWordLength(), getGBC_SubWordLength());\r\n\t\tjPanelOptions.add(getJPanelMag(), getGBC_Mag());\r\n\t\tjPanelOptions.add(getJPanelImageSize(), getGBC_ImageSize());\r\n\t\treturn jPanelOptions;\r\n\t}",
"public Container getViewerPanel() {\n\t\treturn null;\n\t}",
"public InfoView getInfoView() {\r\n return infoPanel;\r\n }",
"public View getViewAllPanels()\n\t{\n\t\treturn view;\n\t}",
"public AppPanel getPanel()\n\t\t{\n\t\t\treturn panel;\n\t\t}",
"public TalentSideView getTalentView() {\r\n return talentPanel;\r\n }",
"@VisibleForTesting\n public FragmentActivity getFragmentActivity() {\n return PanelFragment.this.getActivity();\n }",
"public Container getInfoPanel() {\n\t\treturn null;\n\t}",
"public JPanel getMainPanelFromGameGUI() {\n\t\treturn gameView.getMainPanel();\n\t}",
"public View getView() {\n\t\treturn view;\n\t}",
"protected View getCompartmentView() {\n\t\tView view = (View) getDecoratorTarget().getAdapter(View.class);\r\n\t\tIterator it = view.getPersistedChildren().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tView child = (View) it.next();\r\n\t\t\tif (child.getType().equals(DeployCoreConstants.HYBRIDLIST_SEMANTICHINT)) {\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public JPanel getJPanel();",
"public JPanel getJPanel();",
"ViewContainer createViewContainer();",
"public ButtonView getButtonView() {\r\n return buttonPanel;\r\n }",
"public ViewObjectImpl getDcmCombinationView() {\r\n return (ViewObjectImpl)findViewObject(\"DcmCombinationView\");\r\n }",
"protected ViewGroup getDecorView() {\n if (getContext() instanceof Activity) {\n View decor = ((Activity) getContext()).getWindow().getDecorView();\n\n if (decor instanceof ViewGroup) {\n return (ViewGroup) decor;\n }\n }\n\n //Try to fetch DecorView from parents\n ViewGroup view = this;\n while (view.getParent() != null && view.getParent() instanceof ViewGroup) {\n view = (ViewGroup) view.getParent();\n }\n return view;\n }",
"@Override\n public JComponent getViewPanel ()\n {\n AssetViewAddEditLayout l = this.getLayout (this.object);\n\n return null;\n\n // TODO Remove? l.createView (this.object.getViewEditHandlers (this.viewer));\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.view_atm_options, container, false);\n }",
"protected JPanel getPanel() {\n\t\treturn (JPanel) window.getContentPane();\n\t}",
"public View getView() {\n return view;\n }",
"public ResultPanelView getResultPanel() {\n\t\treturn resultview;\n\t}",
"public GiftCardProductQuery optionsContainer() {\n startField(\"options_container\");\n\n return this;\n }",
"public BrowsePanelView getBrowsePanel() {\n\t\treturn navpanelview.getBrowseView();\n\t}",
"public JPanel getJPanel() {\r\n\t\treturn jPanel;\r\n\t}",
"@Override\n public Activity getViewActivity() {\n return this;\n }",
"public JPanel getPanel() {\n return panel;\n }",
"private GuiAdvancedPanel getAdvancedPanel() {\n if (advancedPanel == null) {\n advancedPanel = new GuiAdvancedPanel(this,\n config.ontsToDownload.getValue(),\n config.omitOntsToDownload.getValue(),\n config.buildDir.getValue());\n }\n return advancedPanel;\n }",
"@Override\n\tpublic JPanel getPanel()\n\t{\n\t\treturn panel;\n\t}",
"public JPanel getPanel()\n {\n return panel;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_options_provider, container, false);\n return rootView;\n }",
"JPanel getPanel();",
"private HistoryViewPanel getViewPanel() {\n if (viewPanel == null) {\n viewPanel = new HistoryViewPanel();\n viewPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));\n }\n\n return viewPanel;\n }",
"public ViewerControlPanel getViewerControlPanel() {\n\t\treturn null;\n\t}",
"private JPanel getPanelSession() {\n if (panelContext == null) {\n panelContext = new JPanel();\n panelContext.setLayout(new GridBagLayout());\n\n if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption()\n == 0) {\n panelContext.setSize(180, 101);\n }\n\n panelContext.add(\n new JLabel(Constant.messages.getString(\"context.label.name\")),\n LayoutHelper.getGBC(0, 0, 1, 1.0D));\n panelContext.add(getTxtName(), LayoutHelper.getGBC(0, 1, 1, 1.0D));\n panelContext.add(getChkInScope(), LayoutHelper.getGBC(0, 2, 2, 1.0D));\n panelContext.add(\n new JLabel(Constant.messages.getString(\"context.label.desc\")),\n LayoutHelper.getGBC(0, 3, 1, 1.0D));\n panelContext.add(getTxtDescription(), LayoutHelper.getGBC(0, 4, 1, 1.0D, 1.0D));\n }\n return panelContext;\n }",
"public GraphPane getGraphPane() {\n return (GraphPane)getCanvasPane();\n }",
"public View getActionBarView(Activity activity) {\n Window window = activity.getWindow();\n View view = window.getDecorView();\n int resId = activity.getResources().getIdentifier(\"action_bar_container\", \"id\", \"android\");\n\n return view.findViewById(resId);\n }",
"public DialogView getView() {\n // Create view lazily only once it's needed\n if (this.home3DAttributesView == null) {\n this.home3DAttributesView = this.viewFactory.createHome3DAttributesView(\n this.preferences, this); \n }\n return this.home3DAttributesView;\n }",
"public int onCreateViewLayout() {\n return R.layout.gb_fragment_performance_settings;\n }",
"@Override\n\tpublic ISettingsView getSettingsView() {\n\t\tLog.debug(\"getSettingsView is null ......................\");\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic View getView() {\n\t\treturn this.view;\r\n\t}",
"public View getOverlayView()\r\n\t{\r\n\t\treturn overlayView;\r\n\t}",
"public View getView() { return view; }",
"View getActiveView();",
"public String getView();",
"public String getView();",
"public View getGuiView(){\n \t\n \treturn guiView;\n }",
"@Override\n public GeneralOrthoMclSettingsVisualPanel getComponent() {\n if (component == null) {\n component = new GeneralOrthoMclSettingsVisualPanel();\n\n }\n return component;\n }",
"@Override\n public Context getActivityContext() {\n return mView.get().getActivityContext();\n }",
"public ViewIdentificator getView() {\r\n return view;\r\n }",
"protected ConstraintPanel getSetPanel() {\n\t\tif (setPanel == null) {\t\t\t\n\t\t\tsetPanel = new ConstraintPanel(this);\n\t\t\tsetPanel.setLayout(new BoxLayout(getSetPanel(), BoxLayout.X_AXIS));\n\t\t\tsetPanel.add(getPackSizeLabel(), null);\n\t\t\tsetPanel.add(getCollectionSizePanel(), null);\n\t\t}\n\t\treturn setPanel;\n\t}",
"public final Panel getPanel()\r\n\t{\r\n\t\treturn panel;\r\n\t}",
"@Override public JPanel getGraphicalView() {\n return getBrowser().getDrbdGraph().getGraphPanel();\n }",
"public ViewObjectImpl getDcmComVsView() {\r\n return (ViewObjectImpl)findViewObject(\"DcmComVsView\");\r\n }",
"private JPanel getMethodSelectionPanel() {\n\t\tif (methodSelectionPanel == null) {\n\t\t\tmethodSelectionPanel = new JPanel();\n\t\t\tmethodSelectionPanel.setLayout(null);\n\t\t\tmethodSelectionPanel.setBounds(new java.awt.Rectangle(2, 127, 467,\n\t\t\t\t\t94));\n\t\t\tmethodSelectionPanel\n\t\t\t\t\t.setBorder(javax.swing.BorderFactory\n\t\t\t\t\t\t\t.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\n\t\t\tmethodSelectionPanel.add(getDistanceBufferRadioButton(), null);\n\t\t\tmethodSelectionPanel.add(getBufferDistanceTextField(), null);\n\t\t\tmethodSelectionPanel.add(getAttributeBufferRadioButton(), null);\n\t\t\tmethodSelectionPanel.add(getLayerFieldsComboBox(), null);\n\t\t\tmethodSelectionPanel.add(getDissolveEntitiesJCheckBox(), null);\n\t\t\tmethodSelectionPanel.add(getEndCapCheckBox(), null);\n\t\t}\n\t\treturn methodSelectionPanel;\n\t}",
"public Container getMapa() {\n\t\treturn panelJuego;\n\t}",
"public Parent getView() {\r\n Parent view = null;\r\n try {\r\n FXMLLoader loader = new FXMLLoader(\r\n ListProjectsViewController.class.getResource(\"/views/collaborator/Collaborator.fxml\"));\r\n loader.load();\r\n viewController = loader.getController();\r\n viewController.setListener(this);\r\n initializeCollaboratorCheckComboBox();\r\n setProjectTitleText();\r\n setCollaboratorsInCheckComboBox();\r\n view = loader.getRoot();\r\n\r\n } catch (IOException e) {\r\n HomeController.displayErrorAlert(e.getMessage(),\r\n ErrorMessagesUtils.ERROR_LOADING_VIEW);\r\n } catch (DatabaseException e) {\r\n HomeController.displayErrorAlert(e.getMessage(),\r\n ErrorMessagesUtils.ERROR_MESSAGE);\r\n } catch (ConnectionFailedException e) {\r\n HomeController.displayErrorAlert(e.getMessage(), ErrorMessagesUtils.CONNECTION_MSG_ERROR);\r\n }\r\n return view;\r\n }",
"public JPanel getPanel(){\n return panel;\n }",
"public Pane getView() {\n return gridPane;\n }",
"public UpgradeView getUpgradeView() {\r\n return upgradePanel;\r\n }",
"private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.add(getJTextArea(), null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getJEditorPane(), null);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}",
"private JPanel getJPanel() {\n\t\tif (jPanel == null) {\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setLayout(new GridBagLayout());\n\t\t\tjPanel.setPreferredSize(new Dimension(10, 10));\n\t\t}\n\t\treturn jPanel;\n\t}",
"private final ViewGroup m136462c() {\n View view;\n BaseFragment baseFragment = this.f98814b;\n if (baseFragment == null || (view = baseFragment.getView()) == null) {\n return null;\n }\n return (ViewGroup) view.findViewById(R.id.topic_live_container);\n }",
"public LinearLayout getChatContainer() {\n return mChatContainer;\n }",
"public @Nullable ContainerSwitchUi getSwitchPane() {\n\t\tif (layout!=null && layout.getChild() instanceof ContainerSwitch cs) return cs.ui;\n\t\telse return null;\n\t}",
"@Override\n\tpublic View getLayout(Context context, ViewGroup container) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic View getLayout(Context context, ViewGroup container) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}",
"public ActivityDurationCalculator getActivityDurationCalculator() {\n return activityDurationCalculator;\n }",
"ICategoryView getCategoryView();",
"private JPanel getJPanel() {\n\t\tif (jPanel == null) {\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setSize(100,200);\n\t\t\tjPanel.setMaximumSize(jPanel.getSize());\n//\t\t\tjPanel.setMinimumSize(jPanel.getSize());\n\t\t\tjPanel.setLayout(null);\n\t\t\tjPanel.setBackground(new Color(238, 238, 0));\n\t\t\tjPanel.add(getJButton(), null);\n\t\t}\n\t\treturn jPanel;\n\t}",
"public ViewTaskOption getViewTaskOption() {\n return (ViewTaskOption) commandData.get(CommandProperties.TASKS_VIEW_OPTION);\n }",
"@Override\r\n\tpublic Control getControl() {\r\n\t\treturn container;\r\n\t}",
"public JComponent getComponent() { return _panel; }",
"public CalendarEventView getCalendarEventView()\r\n {\n CalendarEventView cView = new CalendarEventView(\"appointmentView\");;\r\n\r\n cView.setEventId(getEventId());\r\n return cView;\r\n }",
"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 java.lang.String getView() {\n return view;\n }",
"public java.lang.String getView() {\n return view;\n }",
"public java.lang.String getView() {\n return view;\n }",
"public JFXPanel getPanel()\n {\n return panel;\n }",
"public NavPanelView getNavPanel() {\n\t\treturn navpanelview;\n\t}",
"public int getPanelViewType() {\n return this.mPanel.getViewType();\n }",
"public Container getContainer();",
"public JPanel getAnswerPanel() {\r\n\t\treturn answerPanel;\r\n\t}",
"private JMenu getMnuView() {\r\n\t\tif (mnuView == null) {\r\n\t\t\tmnuView = new JMenu();\r\n\t\t\tmnuView.setText(\"View\");\r\n\t\t\tmnuView.add(getMnuGoTo());\r\n\t\t\tmnuView.add(getSepView1());\r\n\t\t\tmnuView.add(getMniDebug());\r\n\t\t\tmnuView.add(getMniAutoRun());\r\n\t\t\tmnuView.add(getMniViewVXML());\r\n\t\t\tmnuView.add(getMniViewJS());\r\n\t\t}\r\n\t\treturn mnuView;\r\n\t}",
"@Override\n\tpublic JPanel obtenerPanel() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic JPanel obtenerPanel() {\n\t\treturn null;\n\t}",
"private VerticalLayout getCanvas() {\n return new VerticalLayout();\n }",
"private JPanel getJPanel()\n\t{\n\t\tif (jPanel == null)\n\t\t{\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setLayout(new BorderLayout());\n\t\t\tBorder bdr = BorderFactory.createTitledBorder(\"\");\n\t \tjPanel.setBorder(bdr);\n\t\t\tjPanel.add(getRPFilesPanel(), BorderLayout.CENTER);\n\t\t\tjPanel.add(getJPathPanel(), BorderLayout.NORTH);\n\t\t}\n\t\treturn jPanel;\n\t}",
"public Component getContentPanel() {\n\t\tsetDetailedDescription(helpType);\n\t\tsetExitButton();\n\t\tsetPanelOverview();\n\t\tsetFont();\n\n\t\treturn contentPanel;\n\t}",
"View getShowReportGraphView();",
"private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tmaxLabel = new JLabel();\r\n\t\t\tinfLabel = new JLabel();\r\n\t\t\tminLabel = new JLabel();\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tString min = \"0.0 <=\";\r\n\t\t\tString max = \"<= 1.0\";\r\n\t\t\tif (mode == RULES_BASIS_SUPPORT_MODE) {\r\n\t\t\t\tmin = rulesBasis.getMinSupport() + \" <=\";\r\n\t\t\t\tmax = \"<= \" + rulesBasis.getMaxSupport();\r\n\t\t\t} else if (mode == RULES_BASIS_CONFIDENCE_MODE) {\r\n\t\t\t\tmin = rulesBasis.getMinConfidence() + \" <=\";\r\n\t\t\t\tmax = \"<= \" + rulesBasis.getMaxConfidence();\r\n\t\t\t} else if (mode == INTENTS_BASIS_SUPPORT_MODE) {\r\n\t\t\t\tmin = intentsBasis.getMinSupport() + \" <=\";\r\n\t\t\t\tmax = \"<= \" + intentsBasis.getMaxSupport();\r\n\t\t\t}\r\n\t\t\tminLabel.setText(min);\r\n\t\t\tinfLabel.setText(\"<=\");\r\n\t\t\tmaxLabel.setText(max);\r\n\t\t\tjPanel.add(minLabel, null);\r\n\t\t\tjPanel.add(getMinTextField(), null);\r\n\t\t\tjPanel.add(infLabel, null);\r\n\t\t\tjPanel.add(getMaxTextField(), null);\r\n\t\t\tjPanel.add(maxLabel, null);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}",
"public java.lang.Boolean getView() {\n return view;\n }",
"IMenuView getMenuView();"
] | [
"0.6794278",
"0.6228487",
"0.62255806",
"0.60573626",
"0.6026592",
"0.59481555",
"0.59359",
"0.5876193",
"0.5818206",
"0.5803543",
"0.57044244",
"0.5656621",
"0.5650458",
"0.5644192",
"0.558759",
"0.55669975",
"0.5562586",
"0.55527616",
"0.55527616",
"0.55491614",
"0.55427384",
"0.55347973",
"0.55284214",
"0.5528219",
"0.55255157",
"0.5522946",
"0.5521705",
"0.5502807",
"0.5492455",
"0.5483183",
"0.54661095",
"0.5465241",
"0.5431732",
"0.5429517",
"0.53837097",
"0.53795415",
"0.5358872",
"0.53543854",
"0.53515714",
"0.5350943",
"0.5347176",
"0.5343741",
"0.5338375",
"0.5337739",
"0.53235024",
"0.5315142",
"0.53099024",
"0.53075093",
"0.5305035",
"0.5298128",
"0.5290376",
"0.5290376",
"0.5289266",
"0.5288191",
"0.52851355",
"0.52825457",
"0.5281175",
"0.52779573",
"0.5245072",
"0.5244777",
"0.52394944",
"0.523326",
"0.52305716",
"0.52274746",
"0.5225022",
"0.5224442",
"0.52106696",
"0.520638",
"0.5197591",
"0.51759833",
"0.5175775",
"0.5168385",
"0.5168385",
"0.51642036",
"0.5163982",
"0.51557773",
"0.5148242",
"0.51367617",
"0.5130018",
"0.5127502",
"0.5126888",
"0.51254535",
"0.5125183",
"0.5125183",
"0.5125183",
"0.51221955",
"0.51210076",
"0.5120981",
"0.51164484",
"0.51111484",
"0.51088333",
"0.51081765",
"0.51081765",
"0.5106255",
"0.5105584",
"0.5093475",
"0.50858665",
"0.5082351",
"0.50806373",
"0.50796056"
] | 0.790386 | 0 |
Gets the Activity drawing image container view. | ViewGroup getDrawingImageContainer(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DrawingView view() {\n return fView;\n }",
"public ImageView getImageView() {\n return (ImageView) getView().findViewById(imageViewId);\n }",
"protected StandardDrawingView createDrawingView() {\n return new StandardDrawingView(this, 410, 370);\n }",
"public static View createDraggerView() {\n\n\t\tmViewContent = new ImageView(mContext);\n\t\tmViewContent.setImageDrawable(Util.makeCircle(mColor, mCircleDiameter));\n\n\t\trefreshScreenSize();\n\n\t\tmContentParamz = new WindowManager.LayoutParams(\n\t\t\tmCircleDiameter,\n\t\t\tmCircleDiameter,\n\t\t\tWindowManager.LayoutParams.TYPE_PHONE,\n\t\t\t0 | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN |\n\t\t\tWindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM |\n\t\t\tWindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |\n\t\t\tWindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL |\n\t\t\tWindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH,\n\t\t\tPixelFormat.TRANSLUCENT);\n\t\tmContentParamz.gravity = Gravity.TOP | Gravity.LEFT;\n\t\tUtil.addPrivateFlagNoMoveAnimationToLayoutParam(mContentParamz);\n\t\tmContentParamz.x = (mScreenWidth / 2) - (mCircleDiameter / 2);\n\t\tmContentParamz.y = (mScreenHeight / 2) - (mCircleDiameter / 2);\n\t\tmViewContent.setLayoutParams(mContentParamz);\n\t\treturn mViewContent;\n\t\t//return null;\n\t}",
"protected ViewGroup getDecorView() {\n if (getContext() instanceof Activity) {\n View decor = ((Activity) getContext()).getWindow().getDecorView();\n\n if (decor instanceof ViewGroup) {\n return (ViewGroup) decor;\n }\n }\n\n //Try to fetch DecorView from parents\n ViewGroup view = this;\n while (view.getParent() != null && view.getParent() instanceof ViewGroup) {\n view = (ViewGroup) view.getParent();\n }\n return view;\n }",
"public ViewGroup getContainer() {\n return mContainer;\n }",
"ImageView getView() {\n return view;\n }",
"private void createDrawingView() {\r\n mDrawingView = new DrawingView(mContext);\r\n LinearLayout mDrawingPad = (LinearLayout) findViewById(R.id.drawing_pad);\r\n mDrawingPad.addView(mDrawingView);\r\n }",
"public ImageCanvas getImageCanvas() {\n return ic;\n }",
"public ImageView getImageView() {\n View view = this.mCardImage;\n if (view instanceof ImageView) {\n return (ImageView) view;\n }\n return null;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_dialouge, container, false);\n\n ImageView image = (ImageView) v.findViewById(R.id.imageView);\n DogList myActivity = (DogList) getActivity();\n\n int iconresID = getResources().getIdentifier(myActivity.getClickedImage().toLowerCase(),\"drawable\", myActivity.getPackageName());\n\n image.setImageResource(iconresID);\n\n return v;\n }",
"@Override\n\tpublic View getLayout(Context context, ViewGroup container) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic View getLayout(Context context, ViewGroup container) {\n\t\treturn null;\n\t}",
"ViewContainer createViewContainer();",
"public View getOverlayView()\r\n\t{\r\n\t\treturn overlayView;\r\n\t}",
"public Canvas getCanvas() {\n return mCanvas;\n }",
"public abstract View getMainDialogContainer();",
"public Canvas getCanvas()\n {\n return canvas;\n }",
"public Canvas getCanvas() {\n return canvas;\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 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 Canvas getCanvas()\n\t{\n\t\treturn canvas;\n\t}",
"@Override\r\n\tpublic View makeView() {\n\t\tImageView image = new ImageView(this);\r\n\t\t// cente会让居中显示并缩放\r\n\t\timage.setScaleType(ScaleType.FIT_CENTER);\r\n\t\treturn image;\r\n\t}",
"public ViewIdentificator getView() {\r\n return view;\r\n }",
"public Canvas getCanvas() {\n\t\treturn canvas;\n\t}",
"private void createImageView() {\n /**\n * We use @{@link AdjustableImageView} so that we can have behaviour like setAdjustViewBounds(true)\n * for Android below API 18\n */\n viewsToBeInflated.add(new AdjustableImageView(getActivityContext()));\n }",
"@Nullable\n\tpublic ImageView getAlbumImage() {\n\t\tif (isViewInBounds(getActivity().getWindow().getDecorView(), mAlbumImage)) {\n\t\t\treturn mAlbumImage;\n\t\t}\n\t\treturn null;\n\t}",
"ImageViewTouchBase getMainImage();",
"protected View getCompartmentView() {\n\t\tView view = (View) getDecoratorTarget().getAdapter(View.class);\r\n\t\tIterator it = view.getPersistedChildren().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tView child = (View) it.next();\r\n\t\t\tif (child.getType().equals(DeployCoreConstants.HYBRIDLIST_SEMANTICHINT)) {\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override public JPanel getGraphicalView() {\n return getBrowser().getDrbdGraph().getGraphPanel();\n }",
"public Drawable getDrawable() {\n return mDrawable;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n ImageView imgView = new ImageView(getActivity());\n imgView.setImageResource(R.drawable.img1);\n return imgView;\n }",
"public GraphPane getGraphPane() {\n return (GraphPane)getCanvasPane();\n }",
"public final View cpr() {\n AppMethodBeat.m2504i(37041);\n FrameLayout frameLayout = new FrameLayout(this.context);\n AppMethodBeat.m2505o(37041);\n return frameLayout;\n }",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"@Override\n protected int layoutId() {\n return R.layout.activity_appraise_imageshow;\n }",
"private Bitmap getMemberLocationBitmapFromView(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 }",
"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 }",
"protected InteractionDrawingEditor getViewEditor()\n {\n return view.getEditor();\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 }",
"public View getGraphic()\n{\n // Get image for file\n //Image img = _type==FileType.PACKAGE_DIR? Package : ViewUtils.getFileIconImage(_file);\n Image img = ViewUtils.getFileIconImage(_file);\n View grf = new ImageView(img); grf.setPrefSize(18,18);\n \n // If error/warning add Error/Warning badge as composite icon\n /*BuildIssue.Kind status = _proj!=null? _proj.getRootProject().getBuildIssues().getBuildStatus(_file) : null;\n if(status!=null) {\n Image badge = status==BuildIssue.Kind.Error? ErrorBadge : WarningBadge;\n ImageView bview = new ImageView(badge); bview.setLean(Pos.BOTTOM_LEFT);\n StackView spane = new StackView(); spane.setChildren(grf, bview); grf = spane;\n }*/\n \n // Return node\n return grf;\n}",
"public View getRootView() {\n return mEnclosingLayout == null ? mDecorContent : mEnclosingLayout;\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\r\n\tpublic int rootViewId() {\n\t\treturn R.layout.activity_clip_photo;\r\n\t}",
"@NonNull\r\n @Override\r\n public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n\r\n ImageView view = new ImageView(getApplicationContext());\r\n\r\n\r\n return new RecyclerView.ViewHolder(view) {\r\n\r\n };\r\n }",
"public View getGraphic(AppFile anItem) { return anItem.getGraphic(); }",
"public ImageView getImage() {\n ImageView and = new ImageView(Image);\n and.setFitWidth(70);\n and.setFitHeight(50);\n return and;\n }",
"public Bitmap snap() {\n\t\t\tBitmap bitmap = Bitmap.createBitmap(this.view.getWidth(),\n\t\t\t\t\tthis.view.getHeight(), Config.ARGB_8888);\n\t\t\tCanvas canvas = new Canvas(bitmap);\n\t\t\tview.draw(canvas);\n\t\t\treturn bitmap;\n\t\t}",
"public Canvas getCanvas(){\n return canvas;\n }",
"protected View getDecorContent() {\n return mDecorContent;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstance){\n View rootView = inflater.inflate(R.layout.fragement_body_layout,container,false);\n // get the reference to imageView in the fragment layout\n ImageView imageView = (ImageView) rootView.findViewById(R.id.body_part_image_view);\n //set the image view to daisplay\n imageView.setImageResource(AndroidImageAssets.getHeads().get(0));\n\n return rootView;\n }",
"public View getView() {\n\t\treturn view;\n\t}",
"@NonNull\n @Override\n public Object instantiateItem(@NonNull ViewGroup container, int position) {\n\n final SimpleDraweeView imageView = new SimpleDraweeView(MainActivity.this);\n imageView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.WRAP_CONTENT));\n\n imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);\n// Uri uri = Uri.parse(bannerList.get(position).getImagePath());\n// imageView.setImageURI(uri);\n imageView.setActualImageResource(bannerImageList.get(position).getImageId());\n\n\n container.addView(imageView);\n return imageView;\n\n }",
"private final ViewGroup m136462c() {\n View view;\n BaseFragment baseFragment = this.f98814b;\n if (baseFragment == null || (view = baseFragment.getView()) == null) {\n return null;\n }\n return (ViewGroup) view.findViewById(R.id.topic_live_container);\n }",
"protected Visualizer getVis() {\n\t\treturn myVis;\n\t}",
"public static GameContainer getContainer() {\r\n return container;\r\n }",
"public ImageMapArea getClickedImageMapArea() {\r\n return getAbstractChart().getClickedImageMapArea();\r\n }",
"public View getActionBarView(Activity activity) {\n Window window = activity.getWindow();\n View view = window.getDecorView();\n int resId = activity.getResources().getIdentifier(\"action_bar_container\", \"id\", \"android\");\n\n return view.findViewById(resId);\n }",
"ImageView getBadgeView();",
"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 }",
"private View createIcon() {\r\n\t\tImageView img = new ImageView(getContext());\r\n\t\tLayoutParams imglp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\t\timglp.gravity = Gravity.CENTER_VERTICAL;\r\n\t\timglp.rightMargin = 5;\r\n\t\timg.setLayoutParams(imglp);\r\n\r\n\t\timg.setBackgroundDrawable(getContext().getResources().getDrawable(R.drawable.account));\r\n\t\treturn img;\r\n\t}",
"private Bitmap getBitmapFromView(View view, int height, int width) {\n Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n Drawable bgDrawable = view.getBackground();\n if (bgDrawable != null)\n bgDrawable.draw(canvas);\n else\n canvas.drawColor(Color.WHITE);\n view.draw(canvas);\n return bitmap;\n }",
"@Override\n public View onCreateSnapshotView(Context context, Parcelable snapshot) {\n View view = new View(context);\n final Bitmap snapshotBitmap = getSnapshot(snapshot);\n if (snapshotBitmap != null) {\n view.setBackground(new BitmapDrawable(context.getResources(), snapshotBitmap));\n }\n return view;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tRelativeLayout v = new RelativeLayout(getActivity());\n\t\t\n\t\tRelativeLayout.LayoutParams btnParam= new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n\t\tbtnParam.addRule(RelativeLayout.CENTER_IN_PARENT);\n\t\t\n\t\tmImageBG= new ImageView(mContext);\n\t\tmImageBG.setImageResource(R.drawable.sample);\n\t\t\n\t\tv.addView(v, btnParam);\n\t\t//v.setBackgroundColor(color);\n\t\t//v.setBackgroundResource(R.drawable.sample);\n\t\treturn v;\n\t}",
"public View getView() {\n return view;\n }",
"@Override\n\tpublic Matrix getCurrentImageViewMatrix() {\n\t\treturn mContext.getMainImage().getDisplayMatrix();\n\t}",
"public View getGraphic(T anItem)\n{\n Image img = getImage(anItem);\n return img!=null? new ImageView(img) : null;\n}",
"public Drawable getDrawable()\n\t {\n\t return drawable;\n\t }",
"public int getLayoutId() {\n return R.layout.activity_portait_capture_preview;\n }",
"public Container getViewerPanel() {\n\t\treturn null;\n\t}",
"public GameCanvas getCanvas() {\n\t\treturn canvas;\n\t}",
"public Image getImagen() {\n\t\tRectangle rootFigureBounds = this.getBounds();\n\t\tGC figureCanvasGC = new GC(this.canvas);\n\n\t\tImage image = new Image(this.canvas.getDisplay(), rootFigureBounds.width,\n\t\t\t\trootFigureBounds.height);\n\t\tGC imageGC = new GC(image);\n\n\t\timageGC.setBackground(figureCanvasGC.getBackground());\n\t\timageGC.setForeground(figureCanvasGC.getForeground());\n\t\timageGC.setFont(figureCanvasGC.getFont());\n\t\timageGC.setLineStyle(figureCanvasGC.getLineStyle());\n\t\timageGC.setLineWidth(figureCanvasGC.getLineWidth());\n\t\t// imageGC.setXORMode(figureCanvasGC.getXORMode());\n\n\t\tGraphics imgGraphics = new SWTGraphics(imageGC);\n\t\tthis.paint(imgGraphics);\n\n\t\treturn image;\n\t}",
"@Override\n protected View onCreateView(ViewGroup parent) {\n View view = super.onCreateView(parent);\n\n image = (ImageView) view.findViewById(R.id.preference_cards_background_imageView);\n updateSummary();\n\n return view;\n }",
"public AnnotationPanel getAnnotationPanel() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic ViewGroup GetDynamicLayout() {\n\t\treturn null;\n\t}",
"public View getGraphicAfter(T anItem)\n{\n Image img = getImageAfter(anItem);\n return img!=null? new ImageView(img) : null;\n}",
"@Override\n\tpublic View onMainCreateView(Activity activity) {\n\t\tlayout = new FrameLayout(activity);\n\t\treturn layout;\n\t}",
"@Override\n\tpublic int getLayout() {\n\t\treturn R.layout.activity_mycycle;\n\t}",
"public static VecCanvas getCanvas(){\n if (instance == null)\n instance = new VecCanvas();\n return instance;\n }",
"public BufferedImage getDrawable(){\n\t\tif(this.isOilContamination()){\n\t\t\treturn this.myFlyweight.getDeadDrawable();\n\t\t}\n\t\t//check direction -- such a horrible way to write a method\n\t\t//redundant checking and ugh.... design this away please...........................\n\t\tif(this.getDirection().getX() > 0 && !this.myFlyweight.getMovingBackAnimationSequence().isEmpty()){\n\t\t\treturn this.myFlyweight.getMovingBackAnimationSequence().get(animationFrame);\n\t\t}\n\t\treturn this.myFlyweight.getAnimationSequence().get(animationFrame);\n\t}",
"@Override\n\tpublic Class<?> SupportViewType() {\n\t\treturn ImageView.class;\n\t}",
"public PhotoUI getPhotoUI() {\n if (this.mUI == null) {\n this.mUI = new PhotoUI(this.mActivity, this, this.mActivity.getModuleLayoutRoot());\n }\n return this.mUI;\n }",
"public View getView() { return view; }",
"@Override\n\t\t\t\t\tpublic Drawable getDrawable() {\n\t\t\t\t\t\treturn getWeightDrawable(id,width,height);\n\t\t\t\t\t}",
"public Canvas canvas() {\n Canvas canvas = new Canvas(getLowerBound(), getUpperBound());\n canvas.add(this);\n return canvas;\n }",
"public GraphView getVisibleView() {\r\n\t\treturn graphModel.getVisibleView();\r\n\t}",
"public LinearLayout getChatContainer() {\n return mChatContainer;\n }",
"public Rectangle getViewRectangle() {\n\t\treturn null;\n\t}",
"private View getCachedView() {\n if (mCachedItemViews.size() != 0) {\n return mCachedItemViews.removeFirst();\n }\n return null;\n }",
"private static Rect getBitmapPositionInsideImageView(ImageView imageView){\r\n Rect rect = new Rect();\r\n\r\n if (imageView == null || imageView.getDrawable() == null) {\r\n return rect;\r\n }\r\n\r\n // Get image dimensions\r\n // Get image matrix values and place them in an array\r\n float[] f = new float[9];\r\n imageView.getImageMatrix().getValues(f);\r\n\r\n // Extract the scale values using the constants (if aspect ratio maintained, scaleX == scaleY)\r\n final float scaleX = f[Matrix.MSCALE_X];\r\n final float scaleY = f[Matrix.MSCALE_Y];\r\n\r\n // Get the drawable (could also get the bitmap behind the drawable and getWidth/getHeight)\r\n final Drawable d = imageView.getDrawable();\r\n final int origW = d.getIntrinsicWidth();\r\n final int origH = d.getIntrinsicHeight();\r\n\r\n // Calculate the actual dimensions\r\n final int widthActual = Math.round(origW * scaleX);\r\n final int heightActual = Math.round(origH * scaleY);\r\n\r\n // Get image position\r\n // We assume that the image is centered into ImageView\r\n int imgViewW = imageView.getWidth();\r\n int imgViewH = imageView.getHeight();\r\n\r\n int top = (int) (imgViewH - heightActual)/2;\r\n int left = (int) (imgViewW - widthActual)/2;\r\n\r\n rect.set(left, top, left + widthActual, top + heightActual);\r\n\r\n return rect;\r\n }",
"private static Rect getBitmapPositionInsideImageView(ImageView imageView){\r\n Rect rect = new Rect();\r\n\r\n if (imageView == null || imageView.getDrawable() == null) {\r\n return rect;\r\n }\r\n\r\n // Get image dimensions\r\n // Get image matrix values and place them in an array\r\n float[] f = new float[9];\r\n imageView.getImageMatrix().getValues(f);\r\n\r\n // Extract the scale values using the constants (if aspect ratio maintained, scaleX == scaleY)\r\n final float scaleX = f[Matrix.MSCALE_X];\r\n final float scaleY = f[Matrix.MSCALE_Y];\r\n\r\n // Get the drawable (could also get the bitmap behind the drawable and getWidth/getHeight)\r\n final Drawable d = imageView.getDrawable();\r\n final int origW = d.getIntrinsicWidth();\r\n final int origH = d.getIntrinsicHeight();\r\n\r\n // Calculate the actual dimensions\r\n final int widthActual = Math.round(origW * scaleX);\r\n final int heightActual = Math.round(origH * scaleY);\r\n\r\n // Get image position\r\n // We assume that the image is centered into ImageView\r\n int imgViewW = imageView.getWidth();\r\n int imgViewH = imageView.getHeight();\r\n\r\n int top = (int) (imgViewH - heightActual)/2;\r\n int left = (int) (imgViewW - widthActual)/2;\r\n\r\n rect.set(left, top, left + widthActual, top + heightActual);\r\n\r\n return rect;\r\n }",
"protected abstract int getLayoutViewId();",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_image_view, container, false);\n\n ButterKnife.bind(this, view);\n\n\n _imageFile = new File(_imagePath);\n if (PermissionChecker.hasExtStoragePerm(getActivity()) && _imageFile.exists()) {\n _bitmap = ContextUtils.get().loadImageFromFilesystem(_imageFile);\n }\n if (_bitmap == null) {\n _imageFile = null;\n _bitmap = ContextUtils.get().drawableToBitmap(\n ContextCompat.getDrawable(getActivity(), R.drawable.ic_mood_bad_black_256dp));\n }\n _expandedImageView.setImageBitmap(_bitmap);\n\n return view;\n }",
"public Bitmap getShapesImage();",
"public Drawable getImage(){\n\t\treturn mImage;\n\t}",
"@Override\n\tpublic CSSCanvas getCanvas() {\n\t\tif (targetMedium == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (canvases.containsKey(targetMedium)) {\n\t\t\treturn canvases.get(targetMedium);\n\t\t}\n\t\tCSSCanvas canvas;\n\t\tDeviceFactory df = getStyleSheetFactory().getDeviceFactory();\n\t\tif (df != null) {\n\t\t\tcanvas = df.createCanvas(targetMedium, this);\n\t\t\tcanvases.put(targetMedium, canvas);\n\t\t} else {\n\t\t\tcanvas = null;\n\t\t}\n\t\treturn canvas;\n\t}",
"public boolean isDrawingViews() {\n return drawViews;\n }",
"private static Rect getBitmapPositionInsideImageView(ImageView imageView) {\r\n Rect rect = new Rect();\r\n\r\n if (imageView == null || imageView.getDrawable() == null) {\r\n return rect;\r\n }\r\n\r\n // Get image dimensions\r\n // Get image matrix values and place them in an array\r\n float[] f = new float[9];\r\n imageView.getImageMatrix().getValues(f);\r\n\r\n // Extract the scale values using the constants (if aspect ratio maintained, scaleX == scaleY)\r\n final float scaleX = f[Matrix.MSCALE_X];\r\n final float scaleY = f[Matrix.MSCALE_Y];\r\n\r\n // Get the drawable (could also get the bitmap behind the drawable and getWidth/getHeight)\r\n final Drawable d = imageView.getDrawable();\r\n final int origW = d.getIntrinsicWidth();\r\n final int origH = d.getIntrinsicHeight();\r\n\r\n // Calculate the actual dimensions\r\n final int widthActual = Math.round(origW * scaleX);\r\n final int heightActual = Math.round(origH * scaleY);\r\n\r\n // Get image position\r\n // We assume that the image is centered into ImageView\r\n int imgViewW = imageView.getWidth();\r\n int imgViewH = imageView.getHeight();\r\n\r\n int top = (int) (imgViewH - heightActual) / 2;\r\n int left = (int) (imgViewW - widthActual) / 2;\r\n\r\n rect.set(left, top, left + widthActual, top + heightActual);\r\n\r\n return rect;\r\n }",
"public final Element getContainer() {\n\t\treturn impl.getContainer();\n }",
"private RectF getDisplayRect(Matrix matrix) {\n ImageView imageView = getImageView();\n\n if (null != imageView) {\n Drawable d = imageView.getDrawable();\n if (null != d) {\n mDisplayRect.set(0, 0, d.getIntrinsicWidth(),\n d.getIntrinsicHeight());\n matrix.mapRect(mDisplayRect);\n return mDisplayRect;\n }\n }\n return null;\n }"
] | [
"0.61888725",
"0.6112777",
"0.610209",
"0.6049729",
"0.5950824",
"0.5923634",
"0.5844869",
"0.57329565",
"0.57116026",
"0.5711321",
"0.5598366",
"0.5555473",
"0.5555473",
"0.5553238",
"0.5518026",
"0.5506185",
"0.54396385",
"0.5435455",
"0.54181236",
"0.54005057",
"0.54004973",
"0.53962946",
"0.5388779",
"0.53874165",
"0.5381963",
"0.5350527",
"0.53490996",
"0.53391045",
"0.53326315",
"0.5330481",
"0.5330467",
"0.5328661",
"0.5314974",
"0.5300618",
"0.52976155",
"0.5295207",
"0.5294983",
"0.52840364",
"0.5229762",
"0.52216715",
"0.52155316",
"0.5213279",
"0.52105784",
"0.5203402",
"0.5199622",
"0.5192995",
"0.5192158",
"0.51792467",
"0.51603824",
"0.51496327",
"0.513756",
"0.51360464",
"0.5135747",
"0.5130785",
"0.51254016",
"0.512238",
"0.5117449",
"0.51152724",
"0.5109765",
"0.51087326",
"0.5107822",
"0.51055276",
"0.5102271",
"0.5079862",
"0.5074631",
"0.50690997",
"0.5067859",
"0.50660336",
"0.50598377",
"0.50492495",
"0.5048121",
"0.50428706",
"0.50415117",
"0.5028605",
"0.5027105",
"0.5026587",
"0.501999",
"0.5007847",
"0.5005958",
"0.50037193",
"0.5003502",
"0.4992592",
"0.49915898",
"0.4978526",
"0.4976884",
"0.49754968",
"0.49720404",
"0.49589694",
"0.49548435",
"0.4954182",
"0.4954182",
"0.49537632",
"0.49460635",
"0.49451664",
"0.49406397",
"0.4936176",
"0.49335396",
"0.4915648",
"0.4910432",
"0.49061665"
] | 0.78227884 | 0 |
There's a special container drawn on top of all views, which can be used to add custom dialogs/popups. This is invisible by default and must be activated in order to be used | ViewGroup activatePopupContainer(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract View getMainDialogContainer();",
"ViewContainer createViewContainer();",
"public void setup() {\n self.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n // make dialog background unselectable\n self.setCanceledOnTouchOutside(false);\n }",
"public ShowView() {\n\t\tsuper(null);\n\t\tcreateActions();\n\t\taddToolBar(SWT.FLAT | SWT.WRAP);\n\t\taddMenuBar();\n\t\taddStatusLine();\n\t}",
"public void overlayView(Node dialogNode) {\n\t // if the view is already overlaid we will just ignore this overlay call silently . . . todo probably not the best thing to do, but ok for now.\n\t\tif (((StackPane)browser.getParent()).getChildren().size() > 1) return;\n\t\n\t\t// record the view's parent.\n\t\tStackPane parent = (StackPane)browser.getParent();\n\t\t\n\t\tBorderPane center = new BorderPane();\n\t\tcenter.setMaxSize(300, 200);\n\t\tcenter.setCenter(dialogNode);\n\t\tbrowser.setDisable(true);\n\t\tcenter.setStyle(\"-fx-background-color: #CCCCCC\");\n\t\tparent.getChildren().add(center);\n\t}",
"private void createDisplayEditOverlay() {\n\t}",
"public void view(Frame owner, FeatureCollection fc) {\n\t\t\tJDialog dialog = new JDialog(owner, \"Replace geometry with circles centered on points\", true);\n\t\t\tContainer parent = dialog.getContentPane();\n\t\t\t\n\t\t}",
"public void initKnowledgePointPopupLayout() {\n knowledgePointPopup = new FrontGateKnowledgePointPopup(this.getContext());\n knowledgePointPopup.showPopupWindow();\n }",
"@Override\n public void onGlobalLayout() {\n //on all of the container area create a rectangle off same height and width\n Rect r = new Rect();\n //put the size of the layout to the rectangle\n loginActivity.getWindowVisibleDisplayFrame(r);\n //check if the rectangle height shrinks like when keyboard launches\n //for than check on the difference between regular container's height and\n //actual container's\n int heightDiff = loginActivity.getRootView().getHeight() - (r.bottom - r.top);\n if (login != null && password != null) {\n // if more than 100 pixels, its probably a keyboard...\n if (heightDiff > 100) {\n //then set cursor visible for login and password\n login.setCursorVisible(true);\n password.setCursorVisible(true);\n } else {\n //else set both cursors invisible\n //cursor will appear when item is selected only\n //so when keyboard launches\n login.setCursorVisible(false);\n password.setCursorVisible(false);\n }\n }\n }",
"@Override\n public void showPopupView(View parent, int gravity, int x, int y) {\n super.showPopupView(parent, gravity, x, y);\n }",
"public ActorPopup() {\n\t\tsuper(false);\n\t\tCSS.ensureInjected();\n\t\tcreateActions();\n\t\tsetWidget(createContent());\n\t\tsetStylePrimaryName(AbstractField.CSS.cbtAbstractPopup());\n\t}",
"@Override\n public void onGlobalLayout() {\n ll_width.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n WindowManager windowManager = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE);\n int left=ll_width.getLeft()*2;\n int width =(windowManager.getDefaultDisplay().getWidth() - left);\n dePatPopWin = new PopupWindow(view, width, LinearLayout.LayoutParams.WRAP_CONTENT);\n dePatPopWin.setFocusable(true);\n dePatPopWin.setOutsideTouchable(true);\n dePatPopWin.setBackgroundDrawable(new BitmapDrawable());\n }",
"public EditorContainer() {\n\t setLayout(null);\n\t}",
"public void EditorContainer() {\n\t setLayout(null);\n\t}",
"public View initTopView() {\n return null;\n }",
"private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }",
"public void createPopupWindow() {\r\n \t//\r\n }",
"private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }",
"public ClientMainView() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"public void attachToRoot() {\n final ViewGroup contentView = getActivityContentView();\n contentView.getChildAt(0).setVisibility(View.INVISIBLE);\n\n ViewCompat.setElevation(this, Float.MAX_VALUE);\n\n contentView.addView(this, 0, new ViewGroup.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.MATCH_PARENT\n ));\n }",
"public MyDialog(){\n\t\t\n\t\tsuper();\n\t\t\n\t\tthis.getContentPane().setBackground(Color.GRAY);\n//\t\tthis.setLayout(new GridLayout(0,1));\n//\t\tthis.setLayout(new FlowLayout());\n//\t\tthis.setBackground(new Color(250, 240, 230));\n//\t\tcomp.setSize(icon.getIconWidth(),icon.getIconHeight());\n//\t\tcomp.setLocation(0, 0);\n//\t\tcomp.setOpaque(false);\n//\t\tthis.add(comp);\n\t}",
"@Override\n\tpublic void findView() {\n\t\tinitUI();\n\t}",
"public void showSystemUI() {\r\n this.mTargetContainer.getDecorView().setSystemUiVisibility(0);\r\n }",
"private void showCustomView(View view, CustomViewCallback callback) {\n if (customView != null) {\n callback.onCustomViewHidden();\n return;\n }\n MainActivity.this.getWindow().getDecorView();\n FrameLayout decor = (FrameLayout) getWindow().getDecorView();\n fullscreenContainer = new FullscreenHolder(MainActivity.this);\n fullscreenContainer.addView(view, COVER_SCREEN_PARAMS);\n decor.addView(fullscreenContainer, COVER_SCREEN_PARAMS);\n customView = view;\n setStatusBarVisibility(false);\n customViewCallback = callback;\n }",
"protected void setupView(Context context, final ViewGroup parent) {\n\n LayoutInflater inflater = (LayoutInflater) context\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View v = inflater.inflate(R.layout.balloon_overlay, parent);\n title = (TextView) v.findViewById(R.id.balloon_item_title);\n snippet = (TextView) v.findViewById(R.id.balloon_item_snippet);\n image = (ImageView) v.findViewById(R.id.balloon_item_image);\n\n ImageView close = (ImageView) v.findViewById(R.id.balloon_close);\n close.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n parent.setVisibility(GONE);\n // parent.removeAllViews();\n }\n });\n }",
"@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }",
"public void initPopupLayout() {\n popup = new BackToMainScreenPopup(this.getContext(), getActivity());\n popup.showPopupWindow();\n }",
"public IView() {\n initComponents();\n setLocationRelativeTo(null); //Center form on screen\n }",
"@Override\n\tpublic View getCustomView() {\n\t\treturn null;\n\t}",
"@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\n\t\tcreateContent(container);\n\n\t\treturn container;\n\t}",
"protected Popup() {}",
"public void showOxPopup() {\n\t\ttv_popupTitle.setText(R.string.title1);\n\t\ttv_popupInfo.setText(R.string.description1);\n\t\t\n\t\t// The code below assumes that the root container has an id called 'main'\n\t\t popup.showAtLocation(findViewById(R.id.anchor), Gravity.CENTER, 0, 0);\n\t}",
"public UIMenu() {\n initComponents();\n setLocationRelativeTo(null);\n background.requestFocusInWindow();\n createButtonMode.setVisible(false);\n loginButtonMode.setVisible(false);\n repassword.setVisible(false);\n inputRePass.setVisible(false);\n }",
"@Override\n public IFigure getContentPane() {\n return getLayer(PRIMARY_LAYER);\n }",
"@Override // android.widget.PopupWindow\n public boolean hasDecorView() {\n return true;\n }",
"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 GridPane absencePane(){\n GridPane absencePane = new GridPane();\n \n Button menuButton = new Button(\"Back to employee menu\");\n menuButton.setOnAction(e->menu());\n \n absencePane.add(menuButton, 2,1);\n absencePane.setAlignment(Pos.CENTER);\n\n return absencePane;\n }",
"public SelectionPanel(){\n\t\tthis.setHbarPolicy(ScrollBarPolicy.ALWAYS);\n\t\tthis.setVbarPolicy(ScrollBarPolicy.NEVER);\n\t\tsetButton();\n\t\tthis.setContent(container);\n\t\tthis.setPrefHeight(65);\n\t\tthis.setPrefWidth(700);\n\t\tcontainer.setVisible(false);\n\t}",
"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 ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}",
"@Override // com.android.server.wm.WindowContainer\n public boolean fillsParent() {\n return true;\n }",
"private void initializePresentation() {\r\n viewRankingAttemptFX = new ViewRankingAttemptFX(this);\r\n viewRankingPlayerFX = new ViewRankingPlayerFX(this);\r\n viewLoginFX = new ViewLoginFX(this);\r\n viewRegisterFX = new ViewRegisterFX(this);\r\n viewProblemListFX = new ViewProblemListFX(this);\r\n viewLoginFX = new ViewLoginFX(this);\r\n viewRegisterFX = new ViewRegisterFX(this);\r\n viewMenuFX = new ViewMenuFX(this);\r\n viewSettingsFX = new ViewSettingsFX(this);\r\n viewGenerateFX = new ViewGenerateFX(this);\r\n viewAttemptFX = new ViewAttemptFX(this);\r\n viewAttemptListFX = new ViewAttemptListFX(this);\r\n\r\n viewsFX.add(viewLoginFX);\r\n viewsFX.add(viewRankingAttemptFX);\r\n viewsFX.add(viewRankingPlayerFX);\r\n viewsFX.add(viewRegisterFX);\r\n viewsFX.add(viewProblemListFX);\r\n viewsFX.add(viewMenuFX);\r\n viewsFX.add(viewSettingsFX);\r\n viewsFX.add(viewGenerateFX);\r\n viewsFX.add(viewAttemptFX);\r\n viewsFX.add(viewAttemptListFX);\r\n\r\n }",
"public void displayInformation(View view) {\n layoutInflater = (LayoutInflater) getApplicationContext().getSystemService(LAYOUT_INFLATER_SERVICE);\r\n ViewGroup container = (ViewGroup) layoutInflater.inflate(R.layout.question_mark_popup,null);\r\n\r\n// popupWindow = new PopupWindow(container,ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.WRAP_CONTENT,true);\r\n// popupWindow.showAtLocation(view, Gravity.NO_GRAVITY,100,1300);\r\n\r\n int width = LinearLayout.LayoutParams.WRAP_CONTENT;\r\n int height = LinearLayout.LayoutParams.WRAP_CONTENT;\r\n popupWindow = new PopupWindow(container, width, height, true);\r\n\r\n popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);\r\n\r\n container.setOnTouchListener(new View.OnTouchListener(){\r\n @Override\r\n public boolean onTouch(View view, MotionEvent motionEvent){\r\n popupWindow.dismiss();\r\n return true;\r\n }\r\n });\r\n\r\n }",
"void init() {\n setVisible(true);\n\n }",
"protected abstract CONTAINER_TYPE createScreenContainer();",
"private void setupGUI(){\r\n\t\t\r\n\t\tfinal GUIFactory guifactory = GUIFactory.instance();\r\n\t\tfinal MTApplication app = (MTApplication)item.getView().getRenderer();\r\n\t\tfinal float leftiness = app.getWidth()*5/6;\r\n\t\tfinal float xPos = leftiness + 5;\r\n\t\t\r\n\t\t\r\n\t\toverlay = new MTOverlayContainer( app);\r\n\t\titem.getView().getRoot().addChild( overlay);\r\n\t\t\r\n\t\t// _THE_ PANEL \r\n\t\t\r\n\t\tpnlPanel = guifactory.createPanel( leftiness, 0, app.getWidth()-leftiness, app.getHeight(),\"pnlPanel\", overlay);\t\t\t\r\n\t\t\r\n\t\t// INTERACTION PANEL\r\n\t\t\r\n\t\tpnlInteraction = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlInteraction\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlInteraction.setNoFill( true);\r\n\t\t\r\n\t\t// EDIT PANEL\r\n\t\t\r\n\t\tpnlEdit = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlEdit\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlEdit.setVisible( false);\r\n\t\tpnlEdit.setNoFill( true);\r\n\t\t\r\n\t\t\r\n\t\t// ITEM NAME TEXTAREA\r\n\t\t\r\n\t\tString itemName = item.getName();\r\n\t\tif(itemName == null || itemName.equals( \"\"))\r\n\t\t\titemName = item.getID();\r\n\t\ttxtItemName = guifactory.createTextArea(itemName, \"txtItemName\", pnlPanel);\r\n\t\ttxtItemName.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getY() + 10\t\r\n\t\t\t\t));\r\n\r\n\r\n\t\t// PANEL PICTURE\r\n\r\n\t\tVector3D pnlInteractionPos = pnlInteraction.getPosition( TransformSpace.GLOBAL);\r\n\t\tpnlPicture = guifactory.createPanel( pnlInteractionPos.getX()+50, pnlInteractionPos.getY()+50, 100, 100, \"pnlPicture\", pnlInteraction);\r\n\t\tpnlPicture.setAnchor( PositionAnchor.CENTER);\r\n\t\tpnlPicture.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\tpnlInteractionPos.getX() + pnlInteraction.getWidthXY( TransformSpace.GLOBAL)/2,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 50 + pnlPicture.getHeightXY( TransformSpace.GLOBAL)/2\r\n\t\t\t\t));\r\n\t\tpnlPicture.setTexture( GUITextures.instance().getByDevice( DeviceType.getDeviceType( device)));\r\n\t\t\r\n\t\t\r\n\t\t// POWER USAGE TEXTAREA\r\n\t\t\r\n\t\tString powerUsage = \"n/a\";\r\n\t\tif( device.getPowerUsage() != null && device.getPowerUsage().getValue() != null){\r\n\t\t\tpowerUsage = device.getPowerUsage().getValue().toString();\r\n\t\t}\r\n\t\t\r\n\t\ttxtPowerUsage = guifactory.createTextArea( \"Power usage: \" + powerUsage + \" Watts\", \"txtPowerUsage\", pnlInteraction);\r\n\t\ttxtPowerUsage.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 140\t\t\r\n\t\t\t\t\t\t));\r\n\t\ttxtPowerUsage.setVisible( false);\r\n\t\t\r\n\t\t\r\n\t\t// ON/OFF BUTTON\r\n\t\t\r\n\t\tbtnOnOff = guifactory.createButton( \"Turn device On/Off\", \"btnOnOff\", pnlInteraction);\r\n\t\tbtnOnOff.setPosition( txtPowerUsage.getPosition( TransformSpace.GLOBAL));\r\n\t\tbtnOnOff.addGestureListener( TapProcessor.class, new BtnOnOffListener());\r\n\t\t\r\n\t\t\r\n\t\t// SUBDEVICE BUTTON PANEL\r\n\t\t\r\n\t\tpnlSubDeviceButtons = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tbtnOnOff.getVectorNextToComponent( 10, false).getY(),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tdevice.getSubDevice().size() * (btnOnOff.getHeight()+10),\r\n\t\t\t\t\"pnlSubDeviceButtons\",\r\n\t\t\t\tpnlInteraction);\r\n\t\t\r\n\t\t// SUB DEVICE BUTTONS\r\n\t\t\r\n\t\tsubDeviceButtons = new LinkedList<MTButton>();\r\n\t\tfor( int i = 0; i < device.getSubDevice().size(); i++){\r\n\t\t\t\r\n\t\t\tPhysicalDevice subDevice = device.getSubDevice().get( i);\r\n\t\t\t\r\n\t\t\t// get button's caption\r\n\t\t\tString caption = subDevice.getName();\r\n\t\t\tif(caption == null || caption.equals( \"\"))\r\n\t\t\t\tcaption = subDevice.getId();\r\n\t\t\t\r\n\t\t\tMTButton btnSubDevice = guifactory.createButton( caption, \"btnSubDevice_\" + subDevice.getId(), pnlSubDeviceButtons);\r\n\t\t\tbtnSubDevice.setPosition(\r\n\t\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\t\r\n\t\t\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + i*(btnSubDevice.getHeight() + 10)\r\n\t\t\t\t\t));\r\n\t\t\t\r\n\t\t\tsubDeviceButtons.add( btnSubDevice);\r\n\t\t\tbtnSubDevice.addGestureListener( TapProcessor.class, new BtnSubDeviceListener( subDevice));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// EDIT BUTTON\r\n\t\t\r\n\t\tbtnEdit = guifactory.createButton( \"Edit\", \"btnEdit\", pnlInteraction);\r\n\t\tbtnEdit.setPosition( new Vector3D( xPos, app.getHeight() - 2*btnEdit.getHeight() - 30));\r\n\t\tbtnEdit.addGestureListener( TapProcessor.class, new BtnEditListener());\r\n\t\t\r\n\t\t\r\n\t\t// BUTTON HIDE\r\n\t\t\r\n\t\tbtnHide = guifactory.createButton( \"Hide menu\", \"btnHide\", pnlPanel);\r\n\t\tbtnHide.setPosition( new Vector3D( xPos, app.getHeight() - btnHide.getHeight() - 20));\r\n\t\tbtnHide.addGestureListener( TapProcessor.class, new BtnHideListener());\r\n\t\t\r\n\t\t\r\n\t\t///// EDIT-ELEMENTS /////\r\n\r\n\t\tchkMovePlanar = guifactory.createCheckButton( \"Move planar\", \"chkMovePlanar\", pnlEdit);\r\n\t\tchkMovePlanar.setPosition(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\ttxtItemName.getPosition( TransformSpace.GLOBAL).getY() + txtItemName.getHeightXY( TransformSpace.GLOBAL)+ 20\t\r\n\t\t\t\t));\r\n\t\tchkMovePlanar.addGestureListener( TapProcessor.class, new ChkMovePlanarListener());\r\n\r\n\t\t\r\n\t\tchkMoveY = guifactory.createCheckButton( \"Move up/down\", \"chkMoveY\", pnlEdit);\r\n\t\tchkMoveY.setPosition( chkMovePlanar.getVectorNextToComponent( 10, false));\r\n\t\tchkMoveY.addGestureListener( TapProcessor.class, new ChkMoveYListener());\r\n\r\n\t\t\r\n\t\tchkRotate = guifactory.createCheckButton( \"Rotate\", \"chkRotate\", pnlEdit);\r\n\t\tchkRotate.setPosition( chkMoveY.getVectorNextToComponent( 10, false));\r\n\t\tchkRotate.addGestureListener( TapProcessor.class, new ChkRotateListener());\r\n\r\n\t\t\r\n\t\tchkScale = guifactory.createCheckButton( \"Scale\", \"chkScale\", pnlEdit);\r\n\t\tchkScale.setPosition( chkRotate.getVectorNextToComponent( 10, false));\r\n\t\tchkScale.addGestureListener( TapProcessor.class, new ChkScaleListener());\r\n\r\n\t\t\r\n\t\tbtnChangeVisualisation = guifactory.createButton( \"Change Style\", \"btnChangeVisualisation\", pnlEdit);\r\n\t\tbtnChangeVisualisation.setPosition( chkScale.getVectorNextToComponent( 10, false));\r\n\t\tbtnChangeVisualisation.addGestureListener( TapProcessor.class, new BtnChangeVisualisationListener());\r\n\t\t\r\n\t\t\r\n\t\tbtnSave = guifactory.createButton( \"Save\", \"btnSave\", pnlEdit);\r\n\t\tbtnSave.setPosition( btnEdit.getPosition());\r\n\t\tbtnSave.addGestureListener( TapProcessor.class, new BtnSaveListener());\r\n\t}",
"public OverlayLayout() {}",
"@Override // android.widget.PopupWindow\n public boolean hasContentView() {\n return true;\n }",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}",
"@Override protected void startup() {\n BlaiseGraphicsTestFrameView view = new BlaiseGraphicsTestFrameView(this);\n canvas1 = view.canvas1;\n root1 = view.canvas1.getGraphicRoot();\n canvas1.setSelectionEnabled(true);\n show(view);\n }",
"public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}",
"public void showCustomDialog() {\n ViewGroup viewGroup = root.findViewById(((ViewGroup)getView().getParent()).getId());\n\n //then we will inflate the custom alert dialog xml that we created\n final View dialogView = LayoutInflater.from(getContext()).inflate(R.layout.change_icon_dialogue_box, viewGroup, false);\n\n\n\n Button close=(Button)dialogView.findViewById(R.id.buttonOk);\n\n\n\n //Now we need an AlertDialog.Builder object\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n\n //setting the view of the builder to our custom view that we already inflated\n builder.setView(dialogView);\n\n //finally creating the alert dialog and displaying it\n final AlertDialog alertDialog = builder.create();\n alertDialog.show();\n close.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.cancel();\n }\n });\n\n }",
"public LImagePane() {\n\tsetLayout(null);\n\tsetOpaque(false);\n }",
"public BadConsequenceView() {\n initComponents();\n this.auxiliar.setVisible(false);\n }",
"private void addContainerButton(){\n ContainerAddDialogNameTextfield.setText(\"\");\n ContainerAddDialog.setVisible(true);\n }",
"public MainWindowAlt() {\n initComponents();\n //this.getContentPane().setBackground(Color.CYAN);\n }",
"public PaneOrganizer() {\n\t\t\n\t\t_root = new BorderPane();\n\t\t_game = new Game(_root);\n\t\tthis.setupButton();\n\t\t\n\t}",
"private void addViews() {\n\t}",
"private void initMainComponents() {\n\t\tsetBackground(Color.RED);\n\t\tsetTitle(\"TABL\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 974, 842);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBackground(new Color(100, 149, 237));\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\t\n\t\tcontentPane.setVisible(true);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\t\n\t\tlayeredPane = new JLayeredPane();\n\t\tlayeredPane.setBounds(10, 40, 941, 757);\n\t\tcontentPane.add(layeredPane);\n\t\t\n\t\tsetForeground(Color.BLACK);\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(AdminManageUsers.class.getResource(\"/resources/Logo.PNG\")));\n\n\t}",
"public ViewGuaranterWindow() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n }",
"public NavigatorPane() {\n _initNewLayer(_symbolLayer);\n _rebuildLayerArray();\n }",
"private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }",
"public UI() {\n initComponents();\n setResizable(false);\n }",
"public ToolsPaletteWindow()\n {\n super( TOOLS, false, false );\n setContentPane( this.content );\n createUI();\n }",
"@Override protected void startup() {\n show(new FrontView());\n //show(new RestaurantManagementView(this));\n }",
"private void initializeUI() {\r\n this.parentFrame = game.getFrame();\r\n parentFrame.setEnabled(false); // Disable main game UI during the ending dialog.\r\n createResultPopup();\r\n }",
"@Override\n\tpublic void showNotify(Stage owner) {\n\t\tScreen current = Screen.getPrimary();\n\t\tRectangle2D bounds = current.getVisualBounds();\n\n\t\tsuper.show(owner, bounds.getWidth(), bounds.getHeight());\n\n\t\tdouble width = (bounds.getWidth() - getWidth()) - 10;\n\t\tdouble height = (bounds.getHeight() - getHeight()) - 10;\n\n\t\tsetX(width);\n\t\tsetY(height);\n\t}",
"@Override\r\n\tpublic void onShow() {\n\t\t\r\n\t}",
"private void createLayeredPane(){\n\t\tcontentPane = new JLayeredPane();\n\t\tcontentPane.setPreferredSize(windowSize);\n\t\tcontentPane.setOpaque(true);\n\t\tcontentPane.setVisible(true);\n\t}",
"protected void setUp() {\n container =\n new DialogFloatContainer(new DefaultDock(new DockableWrapper(new JButton(\"Failure Test\"))));\n }",
"@Override\n protected void windowInit ()\n {\n }",
"@Override\n public View getInfoContents(Marker marker) {\n View v = getLayoutInflater().inflate(R.layout.windowlayout, null);\n return v;\n }",
"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 }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmRoot = inflater.inflate(R.layout.mouse_layout, container, false); \n\t\tinitializeUI();\n\t\treturn mRoot; \n }",
"@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }",
"@Override\n public void show() {\n \n }",
"@Override\r\n\tpublic void layoutContainer(Container arg0) {\n\t\t\r\n\t}",
"public void show_dialog_box (){\n //show the message of turning on the location\n Dialog dialog = new Dialog(this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.location_message_r);\n dialog.show();\n }",
"@Override\n\tpublic void setCenterView() {\n\n\t}",
"private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }",
"View getActiveView();",
"public Nouveau(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n getContentPane().setBackground(Color.white);\n }",
"@Override\r\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\r\n\t\tGridData dGrid = new GridData();\r\n\t\tdGrid.horizontalSpan = 180;\r\n\t\tdGrid.horizontalAlignment = GridData.FILL;\r\n\t\tcontainer.setLayoutData(dGrid);\r\n\t\t\r\n\t\tnameLabel = new Label(container,SWT.LEFT);\r\n\t\tnameLabel = new Label(container,SWT.LEFT);\r\n\t\tString labelText = \"Most of the features for SimplifIDE require knowledge of the project structure.\\r\\n\";\r\n\t\tlabelText += \"Currently you are editting a file outside of the project where many features will not work properly.\\r\\n\";\r\n\t\tlabelText += \"Instructions for setting up your project can be found at http://simplifide.com/html2/project_structure/simplifide_structure.htm, or\\r\\n\";\r\n\t\tlabelText += \"for a simple project only containing rtl files at http://simplifide.com/html2/getting_started/simple_suite.htm.\\r\\n\";\r\n\t\tnameLabel.setText(labelText);\r\n\t\t\r\n\t\tthis.ONESHOT = true;\r\n\t\t\r\n\t\treturn container;\r\n\t}",
"private void initial() {\n\t\tsetTitleTxt(getString(R.string.choose_game));\n\t\tLinearLayout contentView = (LinearLayout) findViewById(R.id.contentView);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\tview = View.inflate(this, R.layout.user_choose_game, null);\n\t\tcontentView.addView(view, params);\n\t\tgameGrid = (GridView) view.findViewById(R.id.game_list);\n\t\tgameContent = (LinearLayout) view.findViewById(R.id.game_list_info);\n\t\tview.setVisibility(View.GONE);\n\t}",
"private Parent rootScene() {\r\n hBox = new HBox();\r\n hBox.setSpacing(10);\r\n hBox.setStyle(\"-fx-background-color: #082B59;\");\r\n hBox.getChildren().addAll(btnCam, btnManAut);\r\n\r\n root.setBottom(hBox);\r\n root.setCenter(imageView);\r\n root.setStyle(\"-fx-background-color: #0A2D68;\");\r\n\r\n return root;\r\n }",
"public OrdemCorteVIEW() {\n initComponents();\n setDefaultCloseOperation(ProdutoVIEW.HIDE_ON_CLOSE);\n setExtendedState(MAXIMIZED_BOTH);\n }",
"public void showSystemUI() {\r\n if (PhotoViewActivity.this != null)\r\n PhotoViewActivity.this.runOnUiThread(new Runnable() {\r\n public void run() {\r\n toolbar.animate().translationY(Measure.getStatusBarHeight(getResources())).setInterpolator(new DecelerateInterpolator())\r\n .setDuration(240).start();\r\n photoViewActivity.setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\r\n fullScreenMode = false;\r\n }\r\n });\r\n\r\n }",
"@Override // com.android.server.wm.WindowContainer\n public boolean fillsParent() {\n return true;\n }",
"@Override\r\n\tpublic void initializeView(ViewInterface[] subViews) {\r\n\t\tsetLayout(new GridBagLayout());\r\n setBackground(Color.decode(\"#747b83\"));\r\n\t}",
"private void attachFrontlineHUD() {\r\n\t\tResourceManager.getInstance().getCamera().setHUD(HUDRegion);\r\n\t}",
"@Override\n\tpublic void onAttachedToWindow() {\n\t\tsuper.onAttachedToWindow();\t\n\t}",
"private void addComponents() {\n //this.getContentPane().add(new ViewDeckComputer(), BorderLayout.NORTH);\n createTopPanel();\n createCentralPanel();\n createBottomPanel();\n }",
"@Override\n public View getInfoWindow(Marker arg0) {\n return null;\n }",
"private WaitTitledPane() {\n\n }",
"@Override\n protected View getUpperView() {\n return null;\n }",
"@Override public void layoutContainer(Container parent) {\n int nc = parent.getComponentCount();\n if (nc == 0) {\n return;\n }\n int width = parent.getWidth(); // - insets.left - insets.right;\n int height = parent.getHeight(); // - insets.left - insets.right;\n int x = 0; // insets.left; int y = insets.top;\n // for (int i = 0; i < nc; i++) {\n Component c = parent.getComponent(0); // = toolBox;\n c.setBounds(x, height - yy, width, c.getPreferredSize().height);\n // }\n }",
"private void setUpMainContainer() {\n mainDrawerLayout = new DrawerLayout(this);\n mainDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);\n setContentView(mainDrawerLayout);\n }",
"@Override\n public void projectOpened() {\n ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);\n JPanel myContentPanel = new JPanel(new BorderLayout());\n ShareToolWin toolWin = new ShareToolWin();\n myContentPanel.add(toolWin.getRootPanel(), BorderLayout.CENTER);\n ToolWindow toolWindow = toolWindowManager.registerToolWindow(TOOL_WINDOW_ID, false, ToolWindowAnchor.LEFT);\n toolWindow.getComponent().add(myContentPanel);\n }",
"MiscPanel(PreferencesContainer container)\n {\n super(container);\n initialize();\n }"
] | [
"0.7139119",
"0.6664044",
"0.6501298",
"0.63262284",
"0.631899",
"0.6292054",
"0.62577176",
"0.61574423",
"0.6149815",
"0.6117064",
"0.6077536",
"0.6058698",
"0.6048848",
"0.601259",
"0.5998929",
"0.59448266",
"0.59435076",
"0.59351844",
"0.5924853",
"0.5923656",
"0.5906658",
"0.5898775",
"0.5894704",
"0.58612037",
"0.58469856",
"0.58358955",
"0.5826831",
"0.581799",
"0.58171386",
"0.5813697",
"0.5793497",
"0.5782685",
"0.5782256",
"0.57794976",
"0.5763629",
"0.57612866",
"0.57506204",
"0.5749862",
"0.5727405",
"0.5726736",
"0.572588",
"0.5720561",
"0.5714397",
"0.57142085",
"0.5713563",
"0.5712958",
"0.57014495",
"0.5683497",
"0.5681601",
"0.5672177",
"0.56658614",
"0.5664001",
"0.56553",
"0.5654626",
"0.5652505",
"0.56470424",
"0.5645879",
"0.5642956",
"0.5637919",
"0.5635835",
"0.5635332",
"0.5634863",
"0.56344044",
"0.5628721",
"0.5627051",
"0.56227297",
"0.5618088",
"0.56089044",
"0.5608499",
"0.5603984",
"0.55996966",
"0.5596605",
"0.5589973",
"0.55875725",
"0.5585133",
"0.55831087",
"0.557909",
"0.5563131",
"0.5559325",
"0.55547804",
"0.55534834",
"0.55448794",
"0.55448127",
"0.55445206",
"0.55423856",
"0.5541975",
"0.5532725",
"0.55311304",
"0.55291957",
"0.5524644",
"0.55244774",
"0.55223525",
"0.5517824",
"0.55176306",
"0.55151767",
"0.5512479",
"0.551103",
"0.5509128",
"0.5508005",
"0.55040073"
] | 0.68322736 | 1 |
When the there's no need to use the popup container anymore, you must deactivate it | void deactivatePopupContainer(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void hidePopup() {\n\t\t// logger.info(\"..errr..I'll hide u\");\n\t}",
"private void popupModify() {\n\t\tboolean doNotShow = false;\n\t\tif (this instanceof Umlenkrolle && ((Umlenkrolle) this).isFree()) {\n\t\t\tdoNotShow = true;\n\t\t} else if (this instanceof DoppelUmlenkrolle) {\n\t\t\tdoNotShow = true;\n\t\t}\n\t\taufzugschacht.mainFrameShowOptionsFrame(this, doNotShow);\n\t}",
"ViewGroup activatePopupContainer();",
"void onDeactivate() {\n\t\t/* Hide the FakeToolTip that could be open in this moment */\n\t\tfakeToolTip.hide();\n\t}",
"@Override\n\t\t\tpublic void onDismiss() {\n\t\t\t\tisPopuShow = false;\n\t\t\t}",
"protected Popup() {}",
"@Override\n\t\t\tpublic void onDismiss() {\n\t\t\t\tif (null != mPopupWindowShowLisener) {\n\t\t\t\t\tmPopupWindowShowLisener.isDismiss();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n mPopWindow.dismiss();\n ll_popup.clearAnimation();\n }",
"@Override // android.widget.PopupWindow\n public void detachFromAnchor() {\n View anchor = getAnchor();\n if (anchor != null) {\n anchor.removeOnAttachStateChangeListener(this.mOnAttachStateChangeListener);\n }\n super.detachFromAnchor();\n }",
"private void popUp() {\n\tpop = new RoomPopUp(this);\n\tnoPopUp = false;\n }",
"@Override\n public void onClick(View view) {\n popupWindow.dismiss();\n }",
"public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n ActivityChooserModel e2 = this.a.e();\n if (e2 != null) {\n e2.unregisterObserver(this.e);\n }\n ViewTreeObserver viewTreeObserver = getViewTreeObserver();\n if (viewTreeObserver.isAlive()) {\n viewTreeObserver.removeGlobalOnLayoutListener(this.o);\n }\n if (isShowingPopup()) {\n dismissPopup();\n }\n this.q = false;\n }",
"@Override\r\n public void onClick(View v) {\n pop.dismiss();\r\n ll_popup.clearAnimation();\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\r\n\t\t\t\t popuWindow.dismiss();\r\n\t\t\t\t WindowManager.LayoutParams params=context.getWindow().getAttributes(); \r\n\t\t\t params.alpha=1f; \r\n\t\t\t context.getWindow().setAttributes(params); \r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n popupWindow.dismiss();\n\n }",
"public void dama_DamaCloseButtonListener() {\n this.buttonDisabled = false;\n }",
"@Override\r\n public boolean onTouch(View v, MotionEvent event) {\n if (popupWindow != null && popupWindow.isShowing()) {\r\n popupWindow.dismiss();\r\n popupWindow = null;\r\n }\r\n return true;\r\n }",
"public void focusLost(FocusEvent e) {\n if (hidePopupOnFocusLoss)\n comboBox.setPopupVisible(false);\n }",
"public void focusLost(FocusEvent arg0) {\r\n\t\thelpActive = false;\r\n\t\tpopup.setVisible(false);\r\n\t}",
"@Override\n\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\n\tif (popupWindow != null && popupWindow.isShowing()) {\n\n\tpopupWindow.dismiss();\n\n\tpopupWindow = null;\n\n\t}\n\n\treturn super.onTouchEvent(event);\n\n\t}",
"public void close() {\n closePopup();\n }",
"public default boolean isAlwaysDismissable(){ return false; }",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tif(e.isPopupTrigger())\n\t\t\t\t{\n\t\t\t\t\tpopup.show(e.getComponent(), e.getX(), e.getY());\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"public void setPopupAllowed(boolean value) {\n if (popupListener == null && value) {\n // on\n popupListener = new PopupAdapter();\n addMouseListener(popupListener);\n return;\n }\n if (popupListener != null && !value) {\n // off\n removeMouseListener(popupListener);\n popupListener = null;\n return;\n }\n }",
"@FXML\n protected void closeMsg() {\n messageContainer.setVisible(false);\n }",
"@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\tsetFocusableWindowState(false);\r\n\t}",
"public static String _btncerrarpopup_click() throws Exception{\nmostCurrent._panelpopups_1.RemoveView();\n //BA.debugLineNum = 117;BA.debugLine=\"butPatas.Visible = True\";\nmostCurrent._butpatas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 118;BA.debugLine=\"butColor.Visible = True\";\nmostCurrent._butcolor.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 119;BA.debugLine=\"lblFondo.RemoveView\";\nmostCurrent._lblfondo.RemoveView();\n //BA.debugLineNum = 120;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\n public void windowDeiconified(WindowEvent e)\n {\n\n }",
"@Override\n\tpublic void popupMenuWillBecomeInvisible(PopupMenuEvent e)\n\t{\n\n\t\tif (scrollPane != null)\n\t\t{\n\t\t\tscrollPane.setHorizontalScrollBar( null );\n\t\t}\n\t}",
"@Override\n public void windowClosing(java.awt.event.WindowEvent e) {\n setVisible(false);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"@Override\n public void onGlobalLayout() {\n ll_width.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n WindowManager windowManager = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE);\n int left=ll_width.getLeft()*2;\n int width =(windowManager.getDefaultDisplay().getWidth() - left);\n dePatPopWin = new PopupWindow(view, width, LinearLayout.LayoutParams.WRAP_CONTENT);\n dePatPopWin.setFocusable(true);\n dePatPopWin.setOutsideTouchable(true);\n dePatPopWin.setBackgroundDrawable(new BitmapDrawable());\n }",
"@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onClick(View view) {\n mPopupWindow.dismiss();\n }",
"@Override\n\tpublic void windowDeiconified( WindowEvent e ) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\n\t}",
"private void destroyDisplayEditOverlay() {\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\t}",
"private void close(){\n\t\tparent.setEnabled(true);\n\t\tparent.requestFocus();\n\t\tdispose();\n\t}",
"public void disable() {\n parent.setDefaultEnabled(false);\n }",
"@Override\r\n\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowDeiconified(WindowEvent e) {\n\n\t}",
"@Override\r\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n\tpublic void unsetShowing() {\n\t\tshowing = false;\n\t}",
"private final void closePanel() {\r\n\r\n\t\tthis.pnlMain.getRootPane().getParent().setVisible(false);\r\n\t\t\r\n\t}",
"public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {\n \t\t\t\t\n \t\t\t}",
"@Override\r\n\t\tpublic void popupMenuWillBecomeInvisible(PopupMenuEvent arg0) {\n\t\t\t\r\n\t\t}",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\n public void windowDeiconified(WindowEvent e) {\n }",
"@Override\r\n public boolean onTouch(View v, MotionEvent event) {\n if (popupWindow1 != null && popupWindow1.isShowing()) {\r\n popupWindow1.dismiss();\r\n popupWindow1 = null;\r\n }\r\n return false;\r\n }",
"@Override\n\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void windowDeiconified(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\r\n public void windowDeiconified(WindowEvent e) {\r\n System.out.println(\"Window is not normal.\");\r\n }",
"@Override\n\tpublic void windowDeiconified(WindowEvent e)\n\t{\n\n\t}",
"@Override\n\t\tpublic void popupMenuWillBecomeInvisible(PopupMenuEvent e) {\n\t\t\tif (cbx.getSelectedIndex()==0)\n\t\t\t\treturn;\n\t\t\ttry{\n\t\t\t\tif (cbx.getSelectedItem().equals(\"Windows (Initial)\")){\n\t\t\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n\t\t\t\t}\n\t\t\t\telse if (cbx.getSelectedItem().equals(\"WindowsClassic\")){\n\t\t\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel\");\n\t\t\t\t}\n\t\t\t\telse if (cbx.getSelectedItem().equals(\"Motif\")){\n\t\t\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.motif.MotifLookAndFeel\");\n\t\t\t\t}\n\t\t\t\t//else if (cbx.getSelectedItem().equals(\"Nimbus\")){\n\t\t\t\t//\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t\t\t//}\n\t\t\t\tSwingUtilities.updateComponentTreeUI(f);\n\t\t\t\tSwingUtilities.updateComponentTreeUI(main);\n\t\t\t} catch (Exception ex){}\n\t\t}"
] | [
"0.7077124",
"0.69652486",
"0.6761407",
"0.6611483",
"0.65562874",
"0.64347744",
"0.64347553",
"0.64229155",
"0.6407727",
"0.63761705",
"0.6365592",
"0.6347808",
"0.6331578",
"0.6330156",
"0.63165575",
"0.63020545",
"0.62162",
"0.6204544",
"0.61810803",
"0.61715424",
"0.61651474",
"0.614361",
"0.61262304",
"0.6116526",
"0.6116526",
"0.6116526",
"0.6116526",
"0.6116526",
"0.61009777",
"0.6099906",
"0.60892487",
"0.6085018",
"0.60765725",
"0.60765725",
"0.60765725",
"0.60765725",
"0.60765725",
"0.6073914",
"0.60710377",
"0.60690254",
"0.6068413",
"0.60618454",
"0.60606134",
"0.60606134",
"0.6060148",
"0.6057632",
"0.6053977",
"0.605311",
"0.605311",
"0.605311",
"0.605311",
"0.605311",
"0.605311",
"0.605311",
"0.605311",
"0.605311",
"0.6048727",
"0.604367",
"0.6038797",
"0.60386384",
"0.60360974",
"0.6034675",
"0.6034675",
"0.6034675",
"0.6034675",
"0.6034675",
"0.6034675",
"0.6034675",
"0.6027836",
"0.6024416",
"0.6020954",
"0.6020557",
"0.60198444",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.601395",
"0.6011409",
"0.6007988",
"0.6007988",
"0.60054517",
"0.6002594",
"0.59901106"
] | 0.87157696 | 0 |
Show a modal progress | void showModalProgress(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}",
"void showProgress();",
"@Override\n public void showProgress() {\n\n }",
"private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }",
"private void showSpinerProgress() {\n dialog.setMessage(\"Loading\");\n//\n// dialog.setButton(ProgressDialog.BUTTON_POSITIVE, \"YES\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n//\n// }\n// });\n\n //thiet lap k the huy - co the huy\n dialog.setCancelable(false);\n\n //show dialog\n dialog.show();\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n dialog.dismiss();\n }\n }, 20000000);\n }",
"void onShowProgress();",
"@Override\n public void showProgressSync() {\n }",
"@Override\n\tpublic void showProgress() {\n\t\tprogress.show();\n\t\tprogress.setCancelable(false);\n\t\tprogress.setContentView(R.layout.progress);\n\t}",
"public void showProgressDialog() {\n pd = new ProgressDialog(this);\n pd.setMessage(\"Renting film...\");\n pd.show();\n }",
"public void showProgress() {\n img_left_action.setVisibility(View.GONE);\n search_progress.setAlpha(0.0f);\n search_progress.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(search_progress, \"alpha\", 0.0f, 1.0f).start();\n }",
"public void showProgressDialog() {\r\n progressDialog.setMessage(getResources().getString(R.string.text_loading));\r\n progressDialog.setCancelable(false);\r\n progressDialog.show();\r\n }",
"public void showProgress(boolean show) {\n \t}",
"private void progressStuff() {\n cd = new ConnectionDetector(getActivity());\n parser = new JSONParser();\n progress = new ProgressDialog(getActivity());\n progress.setMessage(getResources().getString(R.string.loading));\n progress.setIndeterminate(false);\n progress.setCancelable(true);\n // progress.show();\n }",
"public void showProgressDialog() {\n try {\n if (progressDialog == null) {\n try {\n progressDialog = new ProgressDialog(self);\n progressDialog.show();\n progressDialog.setCancelable(false);\n } catch (Exception e) {\n progressDialog = new ProgressDialog(self.getParent());\n progressDialog.show();\n progressDialog.setCancelable(false);\n e.printStackTrace();\n }\n } else {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }\n } catch (Exception e) {\n progressDialog = new ProgressDialog(self);\n progressDialog.show();\n progressDialog.setCancelable(false);\n e.printStackTrace();\n }\n }",
"private void showProgress() {\n if (dialogProgress == null) {\n dialogProgress = new Dialog(this);\n dialogProgress.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialogProgress.setContentView(R.layout.custom_progress);\n dialogProgress.setCancelable(false);\n }\n\n dialogProgress.getWindow().getDecorView().getRootView().setBackgroundColor(getResources().getColor(android.R.color.transparent));\n dialogProgress.show();\n }",
"@Override\n public void showProgressBar() {\n MainActivity.sInstance.showProgressBar();\n }",
"void hideModalProgress();",
"protected void showLoading()\n {\n progressBar = new ProgressDialog(this);\n progressBar.setTitle(\"Loading\");\n progressBar.setMessage(\"Wait while loading...\");\n progressBar.setCancelable(false); // disable dismiss by tapping outside of the dialog\n progressBar.show();\n }",
"@Override\n public void showProgressIndicator(boolean active) {\n\n try {\n if (getActivity().isFinishing()) {\n return;\n }\n if (progessDialog == null) {\n progessDialog = new ProgressDialog(getActivity());\n progessDialog.setCancelable(false);\n progessDialog.setMessage(\"Please wait...\");\n }\n\n if (active && !progessDialog.isShowing()) {\n progessDialog.show();\n } else {\n progessDialog.dismiss();\n }\n }\n catch (NullPointerException e) {\n e.printStackTrace();\n }\n }",
"private void showProgressIndicator() {\n setProgressBarIndeterminateVisibility(true);\n setProgressBarIndeterminate(true);\n }",
"void showProgressDialog();",
"void showProgressDialog();",
"private void showProgress(String message) {\n \tif(mProgress==null){\n \t\tmProgress = new ProgressDialog(stActivity);\n\t mProgress.setMessage(message);\n\t mProgress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\t mProgress.setIndeterminate(true);\n\t mProgress.setCancelable(false); \n\t mProgress.show();\n \t}\n }",
"public void showProgressDialog() {\n if (mProgressDialog == null) {\n mProgressDialog = new ProgressDialog(this);\n mProgressDialog.setCancelable(false);\n mProgressDialog.setCanceledOnTouchOutside(false);\n mProgressDialog.setMessage(getString(R.string.msg_loading));\n mProgressDialog.setIndeterminate(true);\n }\n mProgressDialog.show();\n }",
"private void displayProgressDialog() {\n pDialog.setMessage(\"Logging in.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"private void showProgressDialog() {\n if (progressDialog == null) {\n progressDialog = new ProgressDialog(getContext());\n }\n\n progressDialog.setTitle(R.string.dialog_title);\n progressDialog.setMessage(getResources().getString(R.string.dialog_message));\n progressDialog.setCancelable(false);\n progressDialog.show();\n }",
"private void displayProgressDialog() {\n pDialog.setMessage(\"Logging In.. Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }",
"public void show() {\n dialog = new Dialog(mActivity);\n dialog.setCancelable(false);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_progess);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n\n ProgressBar progressBar = dialog.findViewById(R.id.progressBar);\n progressBar.getIndeterminateDrawable()\n .setColorFilter(0xFFFFFFFF, android.graphics.PorterDuff.Mode.MULTIPLY);\n\n dialog.show();\n }",
"public void displayProgress(String message) {\n }",
"public void showProgressDialog() {\n showProgressDialog(null);\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmpProgress = ProgressDialog.show(mContext,\n\t\t\t\t\t\t\t\"Downloading data\",\n\t\t\t\t\t\t\t\"Please wait for a moment...\");\n\t\t\t\t}",
"void startProgress();",
"@Override\n public void showloading(String message) {\n progressDialog = new ProgressDialog(getActivity());\n progressDialog.setMessage(message);\n progressDialog.setIndeterminate(true);\n progressDialog.show();\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_type);\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_type);\n\t\t}",
"@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t \n\t progressDialog= new Dialog(ListKotaActivity.this);\n\t progressDialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);\n\t progressDialog.setContentView(R.layout.progress);\n\t progressDialog.setCancelable(false);\n\t progressDialog.show();\t \n\t }",
"private void showProgressIndication() {\n Log.i(TAG, \"loading contacts... \");\n // TODO: make this be a no-op if the progress indication is\n // already visible with the exact same title and message.\n\n dismissProgressIndication(); // Clean up any prior progress indication\n\n mProgressDialog = new ProgressDialog(this);\n mProgressDialog.setMessage(this.getResources().getString(R.string.contact_list_loading));\t\n mProgressDialog.setIndeterminate(true);\n mProgressDialog.setCancelable(false);\n mProgressDialog.show();\n }",
"public void showProgressDialog(String mensaje){\n dialogProgresIndeterminate = new SpotsDialog(BaseActivity.this,mensaje);\n dialogProgresIndeterminate.show();\n }",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\r\n\t\t\tpDialog = new ProgressDialog(SingleRecord.this);\r\n\t\t\tpDialog.setMessage(\"downloading...\");\r\n\t\t\tpDialog.setIndeterminate(false);\r\n\t\t\tpDialog.setCancelable(true);\r\n\t\t\r\n\t\t\tpDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\r\n\t\t\tpDialog.show();\r\n\t\t\tpDialog.getWindow().setGravity(Gravity.BOTTOM);\r\n\t\t}",
"public void onPreExecute() {\n progressDialog.show();\n }",
"private void showProgressBar(boolean show){\n if(show){\n progressBar.show();\n } else {\n progressBar.dismiss();\n }\n }",
"public S<T> progress(Boolean active){\n\t\t\n\t\tif(pDialog==null){\n\t\t\t\n\t\t\t pDialog = new ProgressDialog(activity);\n\t\t pDialog.setMessage(\"Please wait...\");\n\t\t pDialog.setCancelable(false);\n\t\t}\n\t\t\n\t\tif(active){\n\t\t\tif (!pDialog.isShowing())\n\t pDialog.show();\n\t\t}else{\n\t\t\tif (pDialog.isShowing())\n\t pDialog.dismiss();;\n\t\t}\n\t\t\n\t\treturn this;\n\t}",
"public void progressMade();",
"void showProgressBar(boolean show, boolean isFirstPage);",
"public void showProgressBar() {\n\t\tmProgressBarVisible = true;\n\t\tif (getView() != null) {\n\t\t\tLinearLayout progressLayout = (LinearLayout) getView()\n\t\t\t\t\t.findViewById(R.id.severity_list_progress_layout);\n\t\t\tif (progressLayout != null)\n\t\t\t\tprogressLayout.setVisibility(View.VISIBLE);\n\t\t}\n\t}",
"private void initialView(){\n // 进度条还有二级进度条的那种形式,这里就不演示了\n final ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);// 设置水平进度条\n dialog.setCancelable(true);// 设置是否可以通过点击Back键取消\n dialog.setCanceledOnTouchOutside(false);// 设置在点击Dialog外是否取消Dialog进度条\n\n dialog.setTitle(\"正在下载\");\n dialog.setMax(100);\n dialog.setMessage(\"请等待\");\n dialog.show();\n\n\n /*ThreadA t1 = new ThreadA(\"t1\");\n\n synchronized (t1){\n t1.start();\n while(!isExists()){\n try{\n t1.wait();\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }*/\n\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n // TODO Auto-generated method stub\n try {\n Thread.sleep(25000);\n dialog.cancel();\n Intent intent=new Intent(ProgressActivity.this,SudokuActivity.class);\n startActivity(intent);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }).start();\n }",
"@Override\n protected void onPreExecute() {\n progress = new ProgressDialog(hostContext);\n progress.setMessage(\"Wait while books are being downloaded...\");\n progress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progress.show();\n }",
"public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog = new ProgressDialog(Tracking.this);\n\t\t\tpDialog.setMessage(\"Mencari History Proses ... !\");\n\t\t\tpDialog.setIndeterminate(false);\n\t\t\tpDialog.setCancelable(true);\n\t\t\tpDialog.show();\n\t\t}",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n\tprivate void showProgress(final boolean show) {\n\t\t// On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n\t\t// for very easy animations. If available, use these APIs to fade-in\n\t\t// the progress spinner.\n\n\t\tif (show) {\n\t\t\tLinearLayout loginProgress = (LinearLayout) ((LinearLayout) LayoutInflater\n\t\t\t\t\t.from(getActivity()).inflate(R.layout.login_progress,\n\t\t\t\t\t\t\tnew LinearLayout(getActivity()))).getChildAt(0);\n\t\t\tmLoginStatusView = (ProgressBar) loginProgress.getChildAt(0);\n\t\t\tmLoginStatusMessageView = (TextView) loginProgress.getChildAt(1);\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n\n\t\t\tpopup.setFocusable(true);\n\t\t\tpopup.setContentView((LinearLayout) loginProgress.getParent());\n\t\t\tpopup.showAtLocation(new View(getActivity()), Gravity.CENTER, 0, 0);\n\t\t\tpopup.update(0, 0, 100, 100);\n\t\t}\n\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n\t\t\tmLoginStatusView.animate();\n\t\t\tmLoginFormView.animate().alpha(show ? 0.5f : 1);\n\t\t}\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tprogressDialog.show();\n\t\t\tprogressDialog.setMessage(\"Contacting server for sharing...\");\n\t\t}",
"public JDialogProgress(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }",
"@Override\n protected void onPreExecute() {\n\n dialog = new ProgressDialog(context);\n dialog.setTitle(\"Loading Contents\");\n dialog.setMessage(\"Doing something interesting ...\");\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n dialog.show();\n }",
"private void showProgress(String taskName,String processString)\n {\n mProgressView = ProgressDialog.show(this, taskName, processString, true);\n mLoginFormView.setVisibility(View.INVISIBLE);\n\n }",
"public abstract DialogBox showProgressBox(String message);",
"@Override\n public void showProgress() {\n mCircleProgressThemeDetail.setVisibility(View.VISIBLE);\n mCircleProgressThemeDetail.spin();\n mRecyclerThemeDaily.setVisibility(View.GONE);\n }",
"protected void showProgress(int messageId) {\r\n\t\tshowProgress(getString(messageId));\r\n\t}",
"void showTarProgressMessage(String msg);",
"private void showProgressDialog()\n {\n if (showProgressDialog && !getStatus().equals(AsyncTask.Status.FINISHED)) {\n //show the dialog if valid activity. If the OS is lollipop or higher then set the theme.\n //dialog = ProgressDialog.show(activity, \"In progress..\", message, true);\n if (Build.VERSION.SDK_INT >= 21) {\n dialog = new ProgressDialog(activity, R.style.progressoAlertDialogStyle);\n dialog.setTitle(\"In progress..\");\n dialog.setMessage(message);\n dialog.setIndeterminate(true);\n dialog.show();\n }\n else {\n dialog = ProgressDialog.show(activity, \"In progress..\", message, true);\n }\n\n dialog.setCancelable(false);\n } \n }",
"private void showProgressDialog() {\n mProgressDialog = AppDialog.showProgressDialog(this);\n mProgressDialog.show();\n }",
"public void showCustomLoadingDialog() {\n\n //..show gif\n viewDialog.showDialog();\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n //...here i'm waiting 5 seconds before hiding the custom dialog\n //...you can do whenever you want or whenever your work is done\n viewDialog.hideDialog();\n }\n }, 1000);\n }",
"private void showDialog(){\n progress = new ProgressDialog(this);\n progress.setTitle(getString(R.string.progress_dialog_loading));\n progress.setMessage(getString(R.string.progress_dialog_authenticating_with_firebase));\n progress.setCancelable(false);\n progress.show();\n }",
"String progressMessage();",
"@Override\n protected void onPreExecute() {\n pDialog = new ProgressDialog(getActivity());\n pDialog.setMessage(\"Please wait...\");\n pDialog.setCancelable(false);\n pDialog.setIndeterminate(false);\n pDialog.setMax(100);\n pDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n pDialog.show();\n// progressBar.setVisibility(View.VISIBLE);\n// progressBar.setProgress(0);\n super.onPreExecute();\n }",
"@Override\n\t\t\tprotected void onPreExecute() {\n\t \t\tprogressBar = new ProgressDialog(SiQuoiaLeaderboardActivity.this);\n\t\t\t\tprogressBar.setIndeterminate(true);\n\t\t\t\tprogressBar.setCancelable(false);\n\t\t\t\tprogressBar.setMessage(\"Getting Leaderboard.\");\n\t\t\t\tprogressBar.show();\t\t\t\n\t\t\t}",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n progress = new ProgressDialog(activity);\n progress.setMessage(\"please wait.. \");\n progress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progress.setIndeterminate(true);\n progress.setCancelable(false);\n progress.show();\n\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\ttry {\n\t\t\t\tdialog.setIndeterminate(false);\n\t\t\t\tdialog.setMax(100);\n\t\t\t\tdialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n\t\t\t\tdialog.setCancelable(false);\n\t\t\t\tdialog.show();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n /* mProgress.setMessage(\"Please Wait\");\n mProgress.setCancelable(false);\n mProgress.show();*/\n String msg = \"Please Wait....\";\n cd.showProgressDialog(msg);\n }",
"private void displayLoader() {\n pDialog = new ProgressDialog(AddReviewActivity.this);\n pDialog.setMessage(\"Adding Review...Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"@Override\n protected void onPreExecute() {\n this.progressDialog.setMessage(\"Adding workouts...\");\n this.progressDialog.show();\n }",
"@Override\n protected void onPreExecute() {\n\n super.onPreExecute();\n // Show progress overlay (with animation):\n// AndroidUtils.animateView(progressOverlay, View.VISIBLE, 0.4f, 200);\n\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mReviewFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mReviewFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mReviewFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mReviewFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@Override\n protected void onPreExecute() {\n mProgressBar.setVisibility(View.VISIBLE);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n public void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mProgressBar.setVisibility(show ? View.GONE : View.VISIBLE);\n btnAwardPoints.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n btnAwardPoints.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressBar.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressBar.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressBar.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressBar.setVisibility(show ? View.VISIBLE : View.GONE);\n btnAwardPoints.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n\n }",
"@Override\n public void onClick(View view) {\n progressStatus = 0;\n\n // Start the lengthy operation in a background thread\n new Thread(new Runnable() {\n @Override\n public void run() {\n while (progressStatus < 100) {\n // Update the progress status\n progressStatus += 1;\n }\n\n //Try to sleep the thread for 30 milliseconds\n try {\n Thread.sleep(30);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Update the progress bar\n handler.post(new Runnable() {\n @Override\n public void run() {\n pgb.setProgress(progressStatus);\n }\n });\n }\n }).start();// Start the operation\n }",
"private void progressMode() {\n\t\t// lazily build the layout\n\t\tif (progressLayout == null) {\n\t\t\tprogressLayout = new DefaultVerticalLayout(true, true);\n\n\t\t\tprogressBar = new ProgressBar();\n\t\t\tprogressBar.setHeight(\"20px\");\n\t\t\tprogressLayout.add(progressBar);\n\n\t\t\tstatusLabel = new Text(\"\");\n\t\t\tprogressLayout.add(statusLabel);\n\t\t}\n\t\tprogressBar.setValue(0.0f);\n\t\tstatusLabel.setText(\"\");\n\n\t\tremoveAll();\n\t\tadd(progressLayout);\n\t}",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n progressDialog = new ProgressDialog(AiutaGliAltri.this);\n progressDialog.setMessage(\"Sto Cercando!\");\n progressDialog.setIndeterminate(true);\n progressDialog.setCanceledOnTouchOutside(false);\n progressDialog.show();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n mprogress = new ProgressDialog(LoginActivity.this);\n mprogress.setTitle(\"Checking/Downloading Update.\");\n mProgress.setMessage(\"Please Wait\");\n mprogress.setCancelable(false);\n mprogress.setIndeterminate(false);\n mprogress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n mprogress.setMax(100);\n mprogress.show();\n\n\n }",
"private void showProgress(final boolean show) {\r\n mProgressView.setIndeterminate(true);\r\n mProgressView.setCancelable(false);\r\n mProgressView.setMessage(\"Authenticating...\");\r\n\r\n if (show)\r\n mProgressView.show();\r\n else if (!show && mProgressView.isShowing())\r\n mProgressView.dismiss();\r\n }",
"void showProgress(final View progressView, final View progressIndicator, int delay) {\n TurbolinksLog.d(\"showProgress called\");\n\n // Don't show the progress view if a screenshot is available\n if (screenshotView != null && screenshotOrientation == getOrientation()) return;\n\n hideProgress();\n\n this.progressView = progressView;\n progressView.setClickable(true);\n addView(progressView);\n\n progressIndicator.setVisibility(View.GONE);\n\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n progressIndicator.setVisibility(View.VISIBLE);\n }\n }, delay);\n }",
"@Override\n protected void onPreExecute() {\n mProgressbar.setVisibility(View.VISIBLE);\n }",
"void setProgress(int progress);",
"void setProgress(int progress);",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n// mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n\n }\n });\n\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// mProgressView.animate().setDuration(shortAnimTime).alpha(\n// show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n// @Override\n// public void onAnimationEnd(Animator animation) {\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// }\n// });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"private void showNotificationWhileDownloading(long max, long progress){\n\t\tmRemoteView.setTextViewText(ResourceUtil.getId(this, \"lgsdk_download_notification_content\"), \"升级下载中\" + (int)(progress * 100 / max) + \"%\");\n\t\tmRemoteView.setProgressBar(ResourceUtil.getId(this, \"lgsdk_download_notification_progressbar\"), (int)max, (int)progress, false);\n\t\tmNotification.contentView = mRemoteView;\n\t\tmNotification.contentIntent = PendingIntent.getService(this, 0, new Intent(), PendingIntent.FLAG_CANCEL_CURRENT);\n\t\tmNotiManager.notify(NOTIFICATION_ID, mNotification);\n\t}",
"private void toggleProgress() {\n if (progWheel.getVisibility() == View.VISIBLE) {\n // Needs its own thread for timing control\n Handler handler = new Handler();\n final Runnable r = new Runnable() {\n public void run() {\n if (progWheel.getVisibility()\n == View.VISIBLE) {\n progWheel.setVisibility(View.GONE);\n }\n }\n };\n handler.postDelayed(r, 1);\n } else if (progWheel.getVisibility() == View.GONE) {\n progWheel.spin();\n progWheel.setVisibility(View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mAnalysisForm.setVisibility(show ? View.GONE : View.VISIBLE);\n mAnalysisForm.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mAnalysisForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mAnalysisForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"protected void showProgressBar(boolean visible) {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof BaseActivity) {\n\t\t\tBaseActivity activity = (BaseActivity) mContext;\n\t\t\tactivity.showProgressBar(visible);\n\t\t}\n\t}",
"public void showLoading() {\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n progress.setVisibility(ProgressBar.VISIBLE);\n }",
"@Override\r\n\tprotected void onPreExecute()\r\n\t{\r\n\t\tprogress = new ProgressDialog(ctx);\r\n\t\tprogress.setTitle(\"Retrieving Parking Information\");\r\n\t\tprogress.setMessage(\"Please wait.\");\r\n\t\tprogress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\r\n\t\tprogress.show();\r\n\t\tsuper.onPreExecute();\r\n\t}",
"private void displayLoader() {\n pDialog = new ProgressDialog(DangKyActivity.this);\n pDialog.setMessage(\"Vui lòng đợi trong giây lát...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }",
"@Override\n protected void onPreExecute() {\n pd = ProgressDialog.show(Events_and_Festivals.this, \"One Moment\", \"Loading Events and Festivals in the Toronto Area ...\", true, false);\n }",
"private void setProgDialDownload(){\n sProgDialDownload.setMessage(getResources().getString(R.string.pdBuffer_inProgress));\n sProgDialDownload.setIndeterminate(true);\n sProgDialDownload.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n sProgDialDownload.setCancelable(false);\n }",
"@Override\n protected void onPreExecute() {\n Dialog.setMessage(\"Downloading Pending Delivery Status..\");\n Dialog.setCancelable(false);\n Dialog.show();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = ProgressDialog.show(_contexto, \"Aviso\", \"Actualizando ticket \" + numTicket + \" ...\", true);\n }",
"protected final void showLoadingDialog() {\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n pd=new ProgressDialog(c);\n pd.setTitle(\"Send\");\n pd.setMessage(\"Sending..Please wait\");\n pd.show();\n }",
"@Override\n\tprotected void onPreExecute() {\n\t\t\n\t\t pDialog = new ProgressDialog(context);\n\t\t\ttry{\n\t\t\t\tthis.pDialog.setMessage(\"Please wait ...\");\n\t\t this.pDialog.setIndeterminateDrawable(context.getResources().getDrawable(R.drawable.red_progress));\n\t\t this.pDialog.setIndeterminate(false);\n\t\t this.pDialog.setCancelable(false);\n\t\t this.pDialog.show();\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\te.getMessage();\n\t\t\t}\n\t}",
"public ProgressDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setSize(parent.getSize());\n setLocation(parent.getLocation());\n setBackground(Color.lightGray);\n count = 0;\n }"
] | [
"0.7608468",
"0.7542116",
"0.71279407",
"0.7052067",
"0.7043832",
"0.69403225",
"0.6789141",
"0.67523265",
"0.67168176",
"0.6623447",
"0.6603477",
"0.65982395",
"0.65809375",
"0.6576856",
"0.6562491",
"0.65293723",
"0.64890087",
"0.6472823",
"0.6428474",
"0.6397102",
"0.63945895",
"0.63945895",
"0.63932353",
"0.6389825",
"0.6382177",
"0.6372256",
"0.6332663",
"0.6319792",
"0.6298086",
"0.6276352",
"0.6274737",
"0.62507576",
"0.62380314",
"0.6231246",
"0.6231246",
"0.62107325",
"0.62086344",
"0.6187955",
"0.61857367",
"0.61829084",
"0.61816037",
"0.6142334",
"0.6136358",
"0.6134",
"0.6133879",
"0.6122003",
"0.6119712",
"0.61125386",
"0.6101577",
"0.6084",
"0.6080661",
"0.6075207",
"0.6066533",
"0.6056999",
"0.6052653",
"0.60478646",
"0.60321254",
"0.60156614",
"0.6009179",
"0.6008982",
"0.6001966",
"0.59878385",
"0.5982835",
"0.59661466",
"0.59614205",
"0.59508526",
"0.595041",
"0.5938638",
"0.5936572",
"0.59364676",
"0.5933737",
"0.5933652",
"0.5933533",
"0.59314364",
"0.5927337",
"0.5924347",
"0.59181356",
"0.591756",
"0.59137106",
"0.5909928",
"0.5904474",
"0.58968437",
"0.58968437",
"0.58957064",
"0.58882934",
"0.58875245",
"0.588241",
"0.5881925",
"0.58808726",
"0.58801943",
"0.5874385",
"0.58697665",
"0.5862797",
"0.58627",
"0.58618677",
"0.5859034",
"0.5853766",
"0.58508915",
"0.5848996",
"0.58412546"
] | 0.8785762 | 0 |
Hide the modal progress | void hideModalProgress(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}",
"void hideProgress();",
"private void hideProgress() {\n if (dialogProgress != null) {\n dialogProgress.dismiss();\n dialogProgress = null;\n }\n }",
"@Override\n\tpublic void hideProgress() {\n\t\tprogress.dismiss();\n\t}",
"public void hideProgress() {\n // if (progressDialog != null && progressDialog.isShowing())\n try {\n progressDialog.dismiss();\n } catch (Exception e) {\n\n }\n }",
"private void hideProgress() {\n \tif(mProgress!=null){\n \t\tmProgress.dismiss();\n \tmProgress=null;\n \t}\n }",
"public void hideProgressDialog() {\r\n\t\trunOnUiThread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (progress.isShowing())\r\n\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t} catch (Throwable e) {\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void hideProgress() {\n if (progressDialog != null && progressDialog.isShowing())\n progressDialog.dismiss();\n }",
"private void hideDialog() {\n if (progressDialog.isShowing())\n progressDialog.dismiss();\n }",
"void hideProgress() {\n removeProgressView();\n removeScreenshotView();\n }",
"private void hideProgressIndicator() {\n setProgressBarIndeterminateVisibility(false);\n setProgressBarIndeterminate(false);\n }",
"@Override\n public void hideProgressBar() {\n MainActivity.sInstance.hideProgressBar();\n }",
"public void hideProgress() {\n search_progress.setVisibility(View.GONE);\n img_left_action.setAlpha(0.0f);\n img_left_action.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(img_left_action, \"alpha\", 0.0f, 1.0f).start();\n }",
"public void dismissProgressBar() {\n\t\tmProgressBarVisible = false;\n\t\tif (getView() != null) {\n\t\t\tLinearLayout progressLayout = (LinearLayout) getView()\n\t\t\t\t\t.findViewById(R.id.severity_list_progress_layout);\n\t\t\tif (progressLayout != null) {\n\t\t\t\tprogressLayout.setVisibility(View.GONE);\n\t\t\t}\n\t\t\tProgressBar listProgress = (ProgressBar) getView().findViewById(\n\t\t\t\t\tR.id.severity_list_progress);\n\t\t\tlistProgress.setProgress(0);\n\t\t}\n\t}",
"public void hideDownloadProgressDialog()\n {\n if(mDownloadProgress != null)\n {\n mDownloadProgress.dismiss();\n }\n mDownloadProgress = null;\n }",
"public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }",
"@Override\n public void hideLoading() {\n if (progressDialog!=null && progressDialog.isShowing()){\n progressDialog.dismiss();\n }\n }",
"@Override\n public void hideProgressBar() {\n if (getActivity() != null) {\n getActivity().runOnUiThread(() -> {\n if (progressBarLayout != null && progressBar != null) {\n progressBar.setVisibility(View.GONE);\n progressBarLayout.setVisibility(View.GONE);\n }\n });\n }\n }",
"public static void hideProgressDialog() {\n try {\n if (PROGRESS_DIALOG != null) {\n PROGRESS_DIALOG.dismiss();\n }\n } catch(Exception ignored) {}\n }",
"private void hideProgress() {\n\n if(null != mErrorTextView) {\n mErrorTextView.setVisibility(View.GONE);\n }\n }",
"public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }",
"public void hideProgressDialog() {\n if (mProgressDialog != null) {\n mProgressDialog.dismiss();\n }\n }",
"@Override\n public void hideProgressIndicator() {\n ProgressDialogFragment.dismissDialog(getChildFragmentManager());\n }",
"private void hideProgressDialogWithTitle() {\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.dismiss();\n }",
"protected void dismissLoading()\n {\n progressBar.dismiss();\n }",
"protected void hideLoader() {\n\n if (progressBar != null) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n if(getActivity()!=null) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n }\n\n }",
"public void offProgressDialog(){\n if(dialogProgresIndeterminate != null && dialogProgresIndeterminate.isShowing()){\n dialogProgresIndeterminate.dismiss();\n }\n }",
"void showModalProgress();",
"@Override\n\tpublic void hide() {\n\t\tmDismissed = true;\n\t\tremoveShowCallback();\n\t\tlong diff = System.currentTimeMillis() - mStartTime;\n\t\tif (diff >= mShowTime || mStartTime == -1) {\n\t\t\t// The progress spinner has been shown long enough\n\t\t\t// OR was not shown yet. If it wasn't shown yet,\n\t\t\t// it will just never be shown.\n\t\t\tsuper.hide();\n\t\t} else {\n\t\t\t// The progress spinner is shown, but not long enough,\n\t\t\t// so put a delayed message in to hide it when its been\n\t\t\t// shown long enough.\n\t\t\tif (!mPostedHide) {\n\t\t\t\tpostDelayed(mDelayedHide, mShowTime - diff);\n\t\t\t\tmPostedHide = true;\n\t\t\t}\n\t\t}\n\t}",
"private void dismissProgressIndication() {\n if (mProgressDialog != null && mProgressDialog.isShowing()) {\n try{\n mProgressDialog.dismiss(); // safe even if already dismissed\n }catch(Exception e){\n Log.i(TAG, \"dismiss exception: \" + e);\t\n }\n mProgressDialog = null;\n }\n }",
"void dismissProgressLoading() {\n if (progressDialog != null) {\n progressDialog.dismiss();\n }\n }",
"private void dismissProgress() {\n \n \t\tnew Handler(getMainLooper()).post(new Runnable() {\n \n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tif (progressDialog == null)\n \t\t\t\t\tprogressDialog = (ProgressDialogFragment) getSupportFragmentManager()\n \t\t\t\t\t\t\t.findFragmentByTag(\n \t\t\t\t\t\t\t\t\tProgressDialogFragment.FRAGMENT_TAG);\n \n \t\t\t\tif (progressDialog != null && progressDialog.getShowsDialog()) {\n \t\t\t\t\tprogressDialog.dismiss();\n \n \t\t\t\t\tprogressDialog = null;\n \t\t\t\t}\n \t\t\t}\n \t\t});\n \t}",
"@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}",
"private void hideLoadingAndUpdate() {\n image.setVisibility(View.VISIBLE);\n loadingBar.setVisibility(View.INVISIBLE);\n shareBtn.setVisibility(shareBtnVisibility);\n\n }",
"public void hideLoadingDialog() {\n if (isDestroyingActivity())\n return;\n if (mProgressDialog != null && mProgressDialog.isShowing()) {\n mProgressDialog.dismiss();\n mProgressDialog = null;\n }\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t}",
"public void dismissProgress() {\n if (mProgressDialog != null) {\n mProgressDialog.dismiss();\n mProgressDialog = null;\n }\n }",
"private void dismissDialog() {\n if (progressDialog != null) {\n progressDialog.dismiss();\n }\n }",
"@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }",
"@Override\r\n public void done() {\r\n \t\r\n \tjdp.setVisible(false);\r\n }",
"public void stopProgressAnimation(){\n if(progressAnimator!=null){\n progressAnimator.cancel();\n progressAnimator = null;\n }\n }",
"public void dismissProgressDialog() {\r\n if (progressDialog.isShowing()) {\r\n progressDialog.dismiss();\r\n }\r\n }",
"private void hideLoading()\n {\n relLoadingPanel.setVisibility(View.GONE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, true);\n }",
"void onFinishHiding();",
"public void mapImageProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourMapImageBinding.tourMapImageProgress.getVisibility() != View.GONE) {\n tabTourMapImageBinding.tourMapImageProgress.setVisibility(View.GONE);\n }\n if (tabTourMapImageBinding.tourMapImageLayout.getVisibility() != View.VISIBLE) {\n tabTourMapImageBinding.tourMapImageLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }",
"public static void cancelShowingDialogIfProgress(MainActivity activity) {\n Dialog dialog = activity.getDialog();\n //check if it's a progress dialog so we can cancel it safely\n if(dialog != null && dialog.isShowing() && dialog.findViewById(R.id.progressText) != null) {\n dialog.hide();\n }\n }",
"public void dissMissDialog(){\r\n if (dialog != null && dialog.isShowing()\r\n && dialog.getContext() != null) {\r\n try {\r\n dialog.dismiss();\r\n\r\n if(mCallback != null){\r\n mCallback.onProgressDissmiss();\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"void hideMainLoadingWheel();",
"public void hide() {\n visible=false;\n }",
"@Override\r\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(MainActivity.this, \"Error\", Toast.LENGTH_SHORT).show();\r\n hideProgress();\r\n }",
"public static void hideNew() {\n\t\tDIALOG.setVisible(false);\n\t}",
"public void dismissDialog(){\n\t if(pd != null){\n\t\t pd_progress = pd.getProgress();\n\t\t pd.dismiss();\n\t }\n }",
"public void hide() {\n hidden = true;\n }",
"@Override\n public void onDetach() {\n if (progressDialog != null && progressDialog.isShowing()) {\n progressDialog.dismiss();\n }\n super.onDetach();\n }",
"void hideQueuingBuildProgress();",
"@Override\n\t\t\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\t\tdialog.setVisibility(RelativeLayout.GONE);\n\t\t\t\tv.setVisibility(RelativeLayout.GONE);\n\t\t\t}",
"public void hideUnpauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_UNPAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"public void hideIt(){\n this.setVisible(false);\n }",
"public void disable(){\n\n bar.setVisible(false);\n bar.removeAll();\n\n }",
"@Override\r\n\tpublic void hide() {\n\t\tthis.dispose();\r\n\t\t\r\n\t}",
"private void stopProgressDialog() {\n try {\n if (mProgressDialog != null && mProgressDialog.isShowing()) {\n mProgressDialog.dismiss();\n }\n } catch (Exception e) {\n LogWriter.err(e);\n } finally {\n mProgressDialog = null;\n }\n }",
"public void mapProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourMapBinding.mapProgress.getVisibility() != View.GONE) {\n tabTourMapBinding.mapProgress.setVisibility(View.GONE);\n }\n if (tabTourMapBinding.mapLayout.getVisibility() != View.VISIBLE) {\n tabTourMapBinding.mapLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }",
"@Override\n public void stop() {\n f.setVisible(false);\n }",
"public void hide() {\n\t\thidden = true;\n\t}",
"@Override\n public void disableProgressBar() {\n et_log_email.setEnabled(true);\n et_log_password.setEnabled(true);\n acb_login.setVisibility(View.VISIBLE);\n acb_register.setVisibility(View.VISIBLE);\n\n //Disable progressbar\n pb_login.setVisibility(View.GONE);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n task.cancel(true); //meng- cancel AsincTask\n pd.dismiss(); //menghilangkan progress dialog\n }",
"private void removeProgressView() {\n if (progressView == null) return;\n\n removeView(progressView);\n TurbolinksLog.d(\"Progress view removed\");\n }",
"public void dismissSavingHint() {\n if (this.mProgressDialog != null && this.mProgressDialog.isShowing()) {\n this.mProgressDialog.dismiss();\n }\n }",
"@Override\n\t\t\tpublic void onLoadingCancelled(String imageUri, View view) {\n\t\t\t\tif (progressbar != null)\n\t\t\t\t\tprogressbar.setVisibility(View.GONE);\n\t\t\t}",
"@Override\n\tpublic void hide() {\n\t\tdispose();\n\n\t}",
"void hide();",
"@Override\n public void hide() {\n \n }",
"private void hideElements(){\n question.setVisibility(View.GONE);\n yes_for_joke.setVisibility(View.GONE);\n no_for_joke.setVisibility(View.GONE);\n progressBar.setVisibility(View.VISIBLE);\n }",
"public void onPause() {\n super.onPause();\n ProgressViewHelper progressViewHelper2 = this.progressViewHelper;\n if (progressViewHelper2 != null) {\n progressViewHelper2.dismiss();\n }\n }",
"@Override\n public void hide() {\n mHandler.post(mHide);\n }",
"@Override\n\tpublic void hide() {\n\t\tdispose();\n\t}",
"@Override\n public void setSupportProgressBarIndeterminateVisibility(boolean visible) {\n getSupportActionBar().getCustomView().setVisibility(visible ? View.VISIBLE : View.GONE);\n }",
"private void jButtonCancelActionPerformed(ActionEvent e)\n {\n \tsetVisible(false);\n }",
"private void toggleProgress() {\n if (progWheel.getVisibility() == View.VISIBLE) {\n // Needs its own thread for timing control\n Handler handler = new Handler();\n final Runnable r = new Runnable() {\n public void run() {\n if (progWheel.getVisibility()\n == View.VISIBLE) {\n progWheel.setVisibility(View.GONE);\n }\n }\n };\n handler.postDelayed(r, 1);\n } else if (progWheel.getVisibility() == View.GONE) {\n progWheel.spin();\n progWheel.setVisibility(View.VISIBLE);\n }\n }",
"void hideNextEventsLoadingWheel();",
"public void dismissProgressDialog(){\n if(progressDialog != null)\n progressDialog.dismiss();\n }",
"@Override\n public void onCancelled(DatabaseError databaseError) {\n DialogManager.hideProgress();\n\n }",
"@Override\r\n public void hide() {\r\n\r\n }",
"public void showProgress(){\n loadMainActivity.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.INVISIBLE);\n }",
"public void hideStatsButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STATS_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"public void hideDialog() {\n try {\n if (dialog != null) {\n if (dialog.isShowing()) {\n dialog.dismiss();\n\n }\n dialog = null;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void hide(){\n background.setOpacity(0);\n text.setOpacity(0);\n }",
"public void hidePauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_PAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\n public void wasHidden() {\n hide();\n }",
"protected void botonCancelarPulsado() {\n\t\tthis.setVisible(false);\n\t\tlimpiarCampos();\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\t\n\t\t}",
"public void hide() {\n\t\t// Useless if called in outside animation loop\n\t\tactive = false;\n\t}"
] | [
"0.8070913",
"0.80674773",
"0.79918784",
"0.7970073",
"0.7928953",
"0.79224944",
"0.77052605",
"0.7703137",
"0.7653513",
"0.7648908",
"0.75012773",
"0.7440645",
"0.742833",
"0.7382547",
"0.73706174",
"0.73149383",
"0.7280847",
"0.7245482",
"0.7189513",
"0.71367407",
"0.7077976",
"0.7030324",
"0.6953408",
"0.6872411",
"0.67234856",
"0.6678897",
"0.6673199",
"0.66251",
"0.66074616",
"0.6484118",
"0.64783746",
"0.6474151",
"0.646552",
"0.64583164",
"0.64485705",
"0.64416754",
"0.6372158",
"0.6350136",
"0.632683",
"0.63187456",
"0.6270365",
"0.6263342",
"0.62536216",
"0.62444425",
"0.6226105",
"0.61969167",
"0.6195783",
"0.61908484",
"0.61888176",
"0.6176163",
"0.61587656",
"0.615595",
"0.613543",
"0.6100863",
"0.6088844",
"0.6087659",
"0.6087364",
"0.6075556",
"0.60720986",
"0.6069965",
"0.60563487",
"0.6048096",
"0.6047463",
"0.6041686",
"0.60377675",
"0.60298955",
"0.60182214",
"0.6015564",
"0.60046357",
"0.5997859",
"0.5997395",
"0.59938014",
"0.59907067",
"0.59880525",
"0.59862095",
"0.5979297",
"0.59674543",
"0.5964936",
"0.59593135",
"0.5958583",
"0.5952606",
"0.59473336",
"0.59342474",
"0.5924923",
"0.59199166",
"0.5909986",
"0.59099686",
"0.59080166",
"0.59027815",
"0.5901572",
"0.58973736",
"0.58973736",
"0.58973736",
"0.58973736",
"0.58973736",
"0.58973736",
"0.58973736",
"0.58973736",
"0.58854526",
"0.5884752"
] | 0.89728373 | 0 |
The listener interface for receiving onTool events. The class that is interested in processing a onTool event implements this interface, and the object created with that class is registered with a component using the component's addOnToolListener method. When the onTool event occurs, that object's appropriate method is invoked. | public static interface OnToolListener {
/**
* On tool completed.
*/
void onToolCompleted();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addToolListener(ToolListener listener, String toolEvent) {\n\t\t//do nothing\n\t}",
"public void setOnToolListener( final OnToolListener listener ) {\n\t\tmToolListener = listener;\n\t}",
"@Override\n\tpublic void addToolListener(ToolListener listener) {\n\t\t//do nothing\n\t}",
"public void addMapToolSelectListener(MapToolSelectionListener listener) {\n MapToolSelectionListener[] listeners = eventListeners.getListeners(MapToolSelectionListener.class);\n if (!Arrays.asList(listeners).contains(listener)) {\n eventListeners.add(MapToolSelectionListener.class, listener);\n }\n }",
"@Override\n\tpublic void removeToolListener(ToolListener listener) {\n\t\t//do nothing\n\t}",
"public void removeToolListener(ToolListener listener, String toolEvent) {\n\t\t//do nothing\n\t}",
"public void setUseTool(ToolCardEvent event)\n {\n useTool = event;\n }",
"@Override\n\tpublic void processToolEvent(PluginEvent toolEvent) {\n\t\t//do nothing\n\t}",
"public void toolAdded(ToolGroupEvent evt) {\n SimpleTool tool = (SimpleTool)evt.getChild();\n addToolButton(tool, tool.getToolID());\n }",
"interface ViewListener extends OnToolBarNavigationListener {\n\n /**\n * On build queue\n *\n * @param isPersonal - Is personal flag\n * @param queueToTheTop - Queue to the top\n * @param cleanAllFiles - Clean all files in the checkout directory\n */\n void onBuildQueue(boolean isPersonal,\n boolean queueToTheTop,\n boolean cleanAllFiles);\n\n /**\n * On agent selected in the dialog list\n *\n * @param agentPosition - item position which was selected\n */\n void onAgentSelected(int agentPosition);\n\n /**\n * On add parameter button click\n */\n void onAddParameterButtonClick();\n\n /**\n * On clear all parameters button click\n */\n void onClearAllParametersButtonClick();\n\n /**\n * On parameter added\n *\n * @param name - parameter name\n * @param value - parameter value\n */\n void onParameterAdded(String name, String value);\n }",
"public interface ManagerListener extends EventListener {\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager has joined the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerAdded(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager's active model has been modified\r\n\t * to reflect a new design task.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerModelModified(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager's output has been modified to \r\n\t * reflect a new set of inputs from designers.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerOutputModified(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manger has left the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerRemoved(ManagerEvent e);\r\n}",
"public void setTool(Tool t) {\n\ttool = t;\n }",
"public Tool getTool() {\n\treturn tool;\n }",
"void setActiveTool(int tool) {\n this.activeTool = tool;\n }",
"public void toolUpdated(ToolGroupEvent evt) { \n \n Tool tool = (Tool)evt.getChild();\n String toolId = tool.getToolID();\n \n if (toolIdToToolMap.containsKey(toolId)) {\n toolIdToToolMap.put(toolId, tool);\n }\n \n // get the button to update\n JToolButton button = toolIdToButtonMap.get(toolId);\n \n // update the hover-over if necessary\n String desc = tool.getDescription();\n if (displayHoverover && desc != null && !desc.equals(\"\")) {\n \n // create the hoverover and re-assign it\n String hoveroverText = generateHoverover(tool);\n button.setToolTipText(hoveroverText);\n \n }\n\n //\n // now request the icon if necessary\n //\n Boolean hiddenTool =\n (Boolean)tool.getProperty(\n Entity.DEFAULT_ENTITY_PROPERTIES,\n ChefX3DRuleProperties.HIDE_IN_CATALOG);\n \n if (hiddenTool == null || !hiddenTool) {\n \n String iconPath = tool.getIcon();\n \n // check the cache for the resource\n if (clientCache.doesAssetExist(iconPath)) {\n \n // call the resource loaded directly\n try {\n InputStream resourceStream =\n clientCache.retrieveAsset(iconPath);\n resourceLoaded(iconPath, resourceStream);\n } catch (IOException io) {\n errorReporter.errorReport(io.getMessage(), io);\n } \n \n } else {\n \n // now try to lazy load the actual image\n resourceLoader.loadResource(iconPath, this);\n \n }\n \n }\n\n }",
"public UtilityToolUsedEvent(UtilityTool toolUsed, Point locationUsed) {\n super(toolUsed);\n this.locationUsed = locationUsed;\n }",
"public void setTool(final Tool theTool) {\n removeMouseListener(myCurrentTool);\n removeMouseMotionListener(myCurrentTool);\n myCurrentTool = theTool;\n addMouseListener(myCurrentTool);\n addMouseMotionListener(myCurrentTool);\n }",
"public interface WorldListener {\n\t\tpublic void pickUpMineral();\n\t\t\n\t\tpublic void hit();\n\t}",
"public interface OnToolBarListener {\n\n public void onToolBarActionStart();\n\n public void onToolBarStateChanged(boolean visible);\n\n public void onToolBarActionEnd();\n}",
"public interface PuzzleGatherListener {\n\n void onGathered();\n\n}",
"public String getTool() {\n\t\treturn tool;\n\t}",
"public void addListener(ComponentListener listener){\n mouseOverArea.addListener(listener);\n }",
"public Tool tool() {\n return fTool;\n }",
"public final int getToolID() {\n return toolID;\n }",
"public void setAdornmentTool(Tool tool) {\n\t\tthis.renderingTool = tool;\n\t}",
"public abstract void addListener(EventListener eventListener, String componentName);",
"public void setToolname(String toolname) {\r\n this.toolname = toolname;\r\n }",
"public String getToolname() {\r\n return toolname;\r\n }",
"@Override\n\tpublic String[] getToolEventNames() {\n\t\treturn new String[] { \"DummyToolEvent\" };\n\t}",
"static synchronized void register(Tool tool) {\n\t\tValid.checkBoolean(!isRegistered(tool), \"Tool with itemstack \" + tool.getItem() + \" already registered\");\n\n\t\ttools.add(tool);\n\t}",
"public interface EventListener {\n\n\t/**\n\t * Called when a task event has occurred.\n\t * \n\t * @param event\n\t * the task event which has occurred\n\t */\n\tvoid eventOccurred(AbstractTaskEvent event);\n}",
"public Paint getTool(){\n return this.tool;\n }",
"@Override\n\tpublic String[] myToolIds() {\n\t\tString[] toolIds = { \"sakai.gcalendar\" };\n\t\treturn toolIds;\n\t}",
"@Override\n public void onClick(View v) {\n onItemSelected.onToolSelected(mToolList.get(getLayoutPosition()).getToolType());\n }",
"public void setOnInfoListener(OnInfoListener onInfoListener) {\n synchronized (this) {\n this.mOnInfoListener = onInfoListener;\n if (onInfoListener != null) {\n this.createListeners();\n }\n return;\n }\n }",
"public ToolConsumer getConsumer() {\n\n return this.consumer;\n\n }",
"@Override\n\tpublic String getToolName() {\n\t\treturn name;\n\t}",
"public interface MonitoringEventListener {\n\n /**\n * Callback for received STDOUT lines.\n * \n * @param line stdout line\n */\n void appendStdout(String line);\n\n /**\n * Callback for received STDERR lines.\n * \n * @param line stderr line\n */\n void appendStderr(String line);\n\n /**\n * Callback for additional user information lines (validation, progress, ...).\n * \n * @param line information line\n */\n void appendUserInformation(String line);\n}",
"public interface HitNotifier {\r\n\r\n /**\r\n * @param hl a hit listener\r\n * Add hl as a listener to hit events.\r\n */\r\n void addHitListener(HitListener hl);\r\n}",
"public ToolBridge createBridge(ITool tool){\n\t\tToolBridge toolBridge = new ToolBridge(tool);\n\n\t\tMultiplexingClient multiplexingClient = new MultiplexingClient(toolBridge);\n\t\tIIOHandler ioHandler = multiplexingClient.getIOHandler();\n\t\ttoolBridge.setIOHandler(ioHandler);\n\n\t\treturn toolBridge;\n\t}",
"public void setListener(IAlgorithmListener listener);",
"public TransferListenerSupport(Wagon wagon) {\n this.wagon = wagon;\n }",
"@Override\n\tpublic void getListener(){\n\t}",
"public interface GetPointsListener extends Listener {\n\n public void onGetPointsSucc(PointsInfo info);\n}",
"@Override\n\tpublic void addConsoleOutputListener(IEventHandler listener) {\n\t\t\n\t}",
"public interface Listener {\n}",
"public interface Listener {\n}",
"@Override\r\n public void addNotify() {\r\n super.addNotify();\r\n \r\n // add listener\r\n component.getResults().addLabTestListener(this);\r\n }",
"public void showTool(PlayerClient[] players, DraftPoolMP draft, RoundTrackMP track, int[] tools, int activePlayer, int me, ToolCardEvent event) throws InvalidIntArgumentException, FileNotFoundException {\n printOut(cliToolsManager.sceneInitializer(width));\n printOut(printerMaker.getGameScene(players, draft, track, privateObjective, pubObjs, tools, activePlayer, me));\n\n switch (event.getId()) {\n\n case 1: {\n ToolCardOneEvent currentEvent = (ToolCardOneEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft\\n\",40,false));\n\n if(currentEvent.getAction() == '+')\n printOut(cliToolsManager.simpleQuestionsMaker(\"L'ha aumentato di valore e piazzato in posizione \" + (currentEvent.getX()+1) + \",\" + (currentEvent.getY()+1) + \" dello schema\\n\\n\",40,false));\n else\n printOut(cliToolsManager.simpleQuestionsMaker(\"L'ha diminuito di valore e piazzato in posizione \" + (currentEvent.getX()+1) + \",\" + (currentEvent.getY()+1) + \" dello schema\\n\\n\",40,false));\n\n break;\n }\n\n case 2: {\n ToolCardTwoThreeEvent currentEvent = (ToolCardTwoThreeEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getX0()+1) + \" , \" + (currentEvent.getY0()+1) + \" dello schema\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha spostato in posizione \" + (currentEvent.getX1()+1) + \",\" + (currentEvent.getY1()+1) + \"\\n\\n\",40,true));\n break;\n }\n\n case 3: {\n ToolCardTwoThreeEvent currentEvent = (ToolCardTwoThreeEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getX0()+1) + \",\" + (currentEvent.getY0()+1) + \" dello schema\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha spostato in posizione \" + (currentEvent.getX1()+1) + \",\" + (currentEvent.getY1()+1) + \"\\n\\n\",40,true));\n break;\n }\n\n case 4: {\n ToolCardFourEvent currentEvent = (ToolCardFourEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso i dadi in posizione \" + (currentEvent.getX01()+1) + \",\" + (currentEvent.getY01()+1) + \" e \" + (currentEvent.getX02()+1) + \",\" + (currentEvent.getY02()+1) + \"\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e li ha spostati in posizione \" + (currentEvent.getX11()+1) + \",\" + (currentEvent.getY11()+1) + \" e \" + (currentEvent.getX22()+1) + \",\" + (currentEvent.getY22()+1) + \"\\n\\n\",40,true));\n break;\n }\n\n case 5: {\n ToolCardFiveEvent currentEvent = (ToolCardFiveEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha scambiato con il dado nel turno \" + (currentEvent.getTurn()+1) + \" della roundtrack, in posizione \" + (currentEvent.getPos()+1),40,false));\n break;\n }\n\n case 6: {\n ToolCardSixEvent currentEvent = (ToolCardSixEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha scelto il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft e l'ha ritirato, nuovo valore \" + currentEvent.getNewValue() + \"\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha piazzato in posizione \" + (currentEvent.getX()+1) + \",\" + (currentEvent.getY()+1) + \" dello schema\",40,true));\n break;\n }\n\n case 7: {\n ToolCardSevenEvent currentEvent = (ToolCardSevenEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha ritirato tutti i dadi della draft\\n\\n\",40,false));\n break;\n\n }\n\n case 8: {\n ToolCardEightNineTenEvent currentEvent = (ToolCardEightNineTenEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso un altro dado dalla draft, in posizione \" + (currentEvent.getIndex()+1) + \"\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha piazzato in posizione \" + (currentEvent.getX()+1) + \" , \" + (currentEvent.getY()+1) + \" dello schema\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" salterà il suo secondo turno in questo round\\n\\n\",40,false));\n break;\n }\n\n case 9: {\n ToolCardEightNineTenEvent currentEvent = (ToolCardEightNineTenEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha piazzato in posizione \" + (currentEvent.getX()+1) + \" , \" + (currentEvent.getY()+1) + \" dello schema\",40,false));\n break;\n }\n\n case 10: {\n ToolCardEightNineTenEvent currentEvent = (ToolCardEightNineTenEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft , l'ha girato sulla faccia opposta\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha piazzato in posizione \" + (currentEvent.getX()+1) + \" , \" + (currentEvent.getY()+1) + \" dello schema\\n\\n\",40,false));\n break;\n }\n\n case 11: {\n ToolCardElevenEvent currentEvent = (ToolCardElevenEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft e l'ha rimesso nel sacchetto\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"ha pescato un nuovo dado di colore \" + cliToolsManager.getColor(currentEvent.getNewColor()) + \" , ha scelto il valore \" + currentEvent.getNewValue() + \"\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha piazzato in posizione \" + (currentEvent.getX()+1) + \" , \" + (currentEvent.getY()+1) + \" dello schema\" + \"\\n\\n\",40,false));\n break;\n }\n\n case 12: {\n ToolCardTwelveEvent currentEvent = (ToolCardTwelveEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha scelto il colore del dado nel turno \" + (currentEvent.getTurn()+1) + \" roundtrack, in posizione \" + (currentEvent.getPos()+1) + \"\\n\",40,false));\n\n if(currentEvent.isOnlyOne()) {\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha deciso di spostare un solo dado\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"ha preso il dado in posizione \" + (currentEvent.getX01()+1) + \",\" + (currentEvent.getY01()+1) + \" dello schema\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha spostato in posizione \" + (currentEvent.getX11()+1) + \",\" + (currentEvent.getY11()+1) + \"\\n\\n\",40,true));\n }\n\n else {\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha deciso di spostare un due dadi\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"ha preso i dadi in posizione \" + (currentEvent.getX01()+1) + \",\" + (currentEvent.getY01()+1) + \" e \" + (currentEvent.getX02()+1) + \",\" + (currentEvent.getY02()+1) + \"\\n\", 40, false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e li ha spostati in posizione \" + (currentEvent.getX11()+1) + \",\" + (currentEvent.getY11()+1) + \" e \" + (currentEvent.getX22()+1) + \",\" + (currentEvent.getY22()+1) + \"\\n\\n\", 40, true));\n }\n break;\n }\n\n\n\n }\n\n\n }",
"public interface DesignerListener extends EventListener {\r\n\t\r\n\t/**\r\n\t * Method to notify that a designer has joined the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void designerAdded(DesignerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a designer input vector has been modified.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void designerInputModified(DesignerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a designer has left the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void designerRemoved(DesignerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a designer state (e.g. ready status) \r\n\t * has been modified.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void designerStateModified(DesignerEvent e);\r\n}",
"public interface OnTieGeneratedListener {\n\t public void onTieGenerated(Tie tie);\n\t }",
"@FutureRelease(version = \"3.0.0\")//$NON-NLS-1$\r\npublic interface ATEListener extends EventListener {\r\n\r\n\t/**\r\n\t * Indicates that the list of Java classes has changed.\r\n\t */\r\n\tpublic void classListChanged();\r\n\r\n\t/**\r\n\t * Indicates that a maze has changed.\r\n\t * \r\n\t * @param maze\r\n\t * \t\t\tThe changed maze.\r\n\t */\r\n\tpublic void mazeChanged(Maze maze);\r\n\r\n\t/**\r\n\t * Indicates that a scenario has changed.\r\n\t * \r\n\t */\r\n\tpublic void scenarioChanged();\r\n\r\n}",
"public interface Listener {}",
"public interface Listener {\n /**\n * Called when the user has performed a double tap and then held down\n * the second tap.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n */\n void onDoubleTapAndHold(MotionEvent event, int policyFlags);\n\n /**\n * Called when the user lifts their finger on the second tap of a double\n * tap.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n *\n * @return true if the event is consumed, else false\n */\n boolean onDoubleTap(MotionEvent event, int policyFlags);\n\n /**\n * Called when the system has decided the event stream is a gesture.\n *\n * @return true if the event is consumed, else false\n */\n boolean onGestureStarted();\n\n /**\n * Called when an event stream is recognized as a gesture.\n *\n * @param gestureId ID of the gesture that was recognized.\n *\n * @return true if the event is consumed, else false\n */\n boolean onGestureCompleted(int gestureId);\n\n /**\n * Called when the system has decided an event stream doesn't match any\n * known gesture.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n *\n * @return true if the event is consumed, else false\n */\n public boolean onGestureCancelled(MotionEvent event, int policyFlags);\n }",
"@EventName(\"targetInfoChanged\")\n EventListener onTargetInfoChanged(EventHandler<TargetInfoChanged> eventListener);",
"public List<Tool> getTool(Object toolData);",
"public TransformHandle(ToolSelection tool) {\n\t\tthis.editor = tool.editor;\n\t\tthis.tool = tool;\n\t}",
"public void setToolnum(String toolnum) {\r\n this.toolnum = toolnum;\r\n }",
"public interface HitNotifier {\n\n /**\n * Add hl as a listener to hit events.\n * @param hl the hit listener\n */\n void addHitListener(HitListener hl);\n\n /**\n * Remove hl from the list of listeners to hit events.\n * @param hl the hit listener\n */\n void removeHitListener(HitListener hl);\n}",
"public interface IMapDetailsEvent {\n\n void onMapClick();\n\n void onPolylineClick(int roadPos);\n\n\n}",
"public interface Listener {\n void onConnected(CallAppAbilityConnection callAppAbilityConnection);\n\n void onDisconnected(CallAppAbilityConnection callAppAbilityConnection);\n\n void onReleased(CallAppAbilityConnection callAppAbilityConnection);\n }",
"public interface InstrumentManagerListener{\n void instrumentAdded(Instrument instrument,int position);\n void instrumentRemoved(int position);\n }",
"@Override\r\n\tpublic void addJobEventListener(JobEventListener eventListener) {\n\r\n\t}",
"public void removeMapToolSelectListener(MapToolSelectionListener listener) {\n eventListeners.remove(MapToolSelectionListener.class, listener);\n }",
"public ToolStatus getToolStatus() { return toolStatus;\n }",
"public interface HardEventListener {\n void onHardEvent(HardEvent event);\n}",
"public interface Listener {\n\n void pre(JoinTree joinTree, Clique start, Clique stop);\n\n void visited(Clique clique);\n\n void post(JoinTree joinTree, Clique start, Clique stop);\n }",
"public void setToolStatus(ToolStatus toolStatus) {\n this.toolStatus = toolStatus;\n }",
"public void toolRemoved(ToolGroupEvent evt) {\n SimpleTool tool = (SimpleTool)evt.getChild();\n removeToolButton(tool);\n }",
"@Override\n protected void configure(Object tool, Map<String,Object> configuration)\n {\n super.configure(tool, configuration);\n\n Method init = getInit();\n if (init != null)\n {\n // ctx should, in all cases where a tool has such a method,\n // actually be a View(Tool)Context, but we don't want to link\n // to that class here, so as not to pollute the generic jar\n Object ctx = configuration.get(ToolContext.CONTEXT_KEY);\n if (ctx != null)\n {\n invoke(init, tool, ctx);\n }\n }\n }",
"private void addToolButton(Tool tool, String toolId) {\n \n String iconPath = tool.getIcon();\n\n // create the button\n JToolButton button = getToggleButton(tool, toolId);\n \n // disable if it is loading\n button.setLoaded(false);\n \n // add to the data maps\n toolIdToButtonMap.put(toolId, button);\n urlToButtonMap.put(iconPath, button);\n toolIdToToolMap.put(toolId, tool);\n\n // put the proxy image in place\n if (tool instanceof ToolGroup && !(tool instanceof ToolSwitch)) {\n \n // create the necessary icons for button state\n generateButtonIcons(button, folderImage); \n \n // allow selection\n button.setLoaded(true);\n button.addItemListener(this);\n\n } else {\n \n // set count failures to 0\n loadFailureCounts.put(iconPath, 0);\n \n String category = tool.getCategory(); \n if (category != null && !category.equals(\"Category.Loading\")) {\n \n // check the cache for the resource\n if (clientCache.doesAssetExist(iconPath)) {\n \n // call the resource loaded directly\n try {\n InputStream resourceStream =\n clientCache.retrieveAsset(iconPath);\n resourceLoaded(iconPath, resourceStream);\n } catch (IOException io) {\n errorReporter.errorReport(io.getMessage(), io);\n } \n \n } else {\n \n // now try to lazy load the actual image\n resourceLoader.loadResource(iconPath, this);\n \n }\n \n } else {\n \n // set the loading image\n button.setIcon(loadingImage);\n\n }\n\n }\n\n revalidate();\n \n }",
"void addHitListener(HitListener hl);",
"void addHitListener(HitListener hl);",
"void addHitListener(HitListener hl);",
"void addHitListener(HitListener hl);",
"protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }",
"public void setTooltype(String tooltype) {\r\n this.tooltype = tooltype;\r\n }",
"@Override\n\tpublic String[] getConsumedToolEventNames() {\n\t\treturn new String[] { \"DummyToolEvent\" };\n\t}",
"private void addToolsAndCommands() {\n this.selectTargetCadastreObjectTool\n = new CadastreChangeSelectCadastreObjectTool(this.getPojoDataAccess());\n this.selectTargetCadastreObjectTool.setTargetParcelsLayer(targetParcelsLayer);\n this.selectTargetCadastreObjectTool.setCadastreObjectType(CadastreObjectTypeBean.CODE_PARCEL);\n this.getMap().addTool(this.selectTargetCadastreObjectTool, this.getToolbar(), true);\n }",
"public String getTooltype() {\r\n return tooltype;\r\n }",
"public void setToolparam(String toolparam) {\r\n this.toolparam = toolparam;\r\n }",
"public interface ToolConverter {\r\n /**\r\n * This method should return a well formed tool\r\n * from the data given.\r\n * <p>\r\n * If is possible to return multiple tools.\r\n * \r\n * @param toolData The data from the lms.\r\n * @return The tool(s) as described in Unipoole.\r\n */\r\n public List<Tool> getTool(Object toolData);\r\n}",
"public interface Listener{\n\t\tpublic void notify(Map<String,Serializable> datas);\n\t}",
"public Tool(ToolType type, Map map)\n {\n super(type.height, type.width, map, false, false);\n this.type = type;\n }",
"public interface TrackerListener {\n /**\n * Provide Location Updates to parent classes (E.g. Map Provider's LocationDataSource class)<br>\n * The implementation of Tracker Interface should call this method when they receive new location updates.\n * @param coords\n * @see Tracker\n */\n void onNewCoords(Coords coords);\n\n /**\n * Provide Event updates to parent classes (E.g. Map Provider's LocationDataSource class)<br>\n * The implementation of Tracker Interface should call this method when they receive event info that they want to pass on to the parent classes.\n * @param event\n * @see Tracker\n */\n void onNewEvent(Event event);\n}",
"public void itemStateChanged(ItemEvent evt) {\n if(evt.getStateChange() != ItemEvent.SELECTED)\n return;\n\n JToolButton button = (JToolButton)evt.getSource();\n\n String toolId = button.getActionCommand();\n Tool tool = toolIdToToolMap.get(toolId);\n if(currentTool != tool) {\n ViewManager viewManager = ViewManager.getViewManager();\n viewManager.setTool(tool);\n\n int type = tool.getToolType();\n if (type != Entity.TYPE_WORLD) {\n\t ToolBarManager toolManager = ToolBarManager.getToolBarManager();\n\t toolManager.setTool(tool);\n }\n }\n }",
"public static interface AwaleListener {\r\n\t/**\r\n\t * Called when the state of the awale changed.\r\n\t */\r\n\tpublic void awaleChanged(Awale awale, short eventType, short row,\r\n\t short column);\r\n }",
"public void add(SearchTool searchTool) {\n this.searchTool = searchTool;\n }",
"public interface ITool extends IBuildObject, IHoldsOptions {\n\t// Schema element names\n\tpublic static final String COMMAND = \"command\";\t//$NON-NLS-1$\n\tpublic static final String COMMAND_LINE_PATTERN = \"commandLinePattern\"; //$NON-NLS-1$\n\tpublic static final String COMMAND_LINE_GENERATOR = \"commandLineGenerator\"; //$NON-NLS-1$\n\tpublic static final String DEP_CALC_ID =\"dependencyCalculator\"; //$NON-NLS-1$\n\tpublic static final String INTERFACE_EXTS = \"headerExtensions\";\t//$NON-NLS-1$\n\tpublic static final String NATURE =\t\"natureFilter\";\t//$NON-NLS-1$\n\tpublic static final String OUTPUT_FLAG = \"outputFlag\";\t//$NON-NLS-1$\n\tpublic static final String INPUT_TYPE = \"inputType\";\t//$NON-NLS-1$\n\tpublic static final String OUTPUT_TYPE = \"outputType\";\t//$NON-NLS-1$\n\tpublic static final String OUTPUT_PREFIX = \"outputPrefix\";\t//$NON-NLS-1$\n\tpublic static final String OUTPUTS = \"outputs\";\t//$NON-NLS-1$\n\tpublic static final String SOURCES = \"sources\";\t//$NON-NLS-1$\n\tpublic static final String ADVANCED_INPUT_CATEGORY = \"advancedInputCategory\";\t//$NON-NLS-1$\n\tpublic static final String CUSTOM_BUILD_STEP = \"customBuildStep\";\t//$NON-NLS-1$\n\tpublic static final String ANNOUNCEMENT = \"announcement\";\t//$NON-NLS-1$\n\tpublic static final String TOOL_ELEMENT_NAME = \"tool\";\t//$NON-NLS-1$\n\tpublic static final String WHITE_SPACE = \" \";\t//$NON-NLS-1$\n\tpublic static final String EMPTY_STRING = \"\";\t//$NON-NLS-1$\n\tpublic static final String IS_SYSTEM = \"isSystem\";\t\t\t\t\t\t\t//$NON-NLS-1$\n\t\n\tpublic static final String VERSIONS_SUPPORTED = \"versionsSupported\";\t//$NON-NLS-1$\n\tpublic static final String CONVERT_TO_ID = \"convertToId\";\t\t\t\t//$NON-NLS-1$\n\tpublic static final String OPTIONPATHCONVERTER = \"optionPathConverter\";\t\t\t\t//$NON-NLS-1$\n\t\n\tpublic static final String SUPPORTS_MANAGED_BUILD = \"supportsManagedBuild\"; //$NON-NLS-1$\n\t\n\n\tpublic static final int FILTER_C = 0;\n\tpublic static final int FILTER_CC = 1;\n\tpublic static final int FILTER_BOTH = 2;\n\n\t/**\n\t * Returns the tool-chain or resource configuration that is the parent of this tool.\n\t * \n\t * @return IBuildObject\n\t */\n\tpublic IBuildObject getParent();\n\n\t/**\n\t * Creates a child InputType for this tool.\n\t * \n\t * @param InputType The superClass, if any\n\t * @param String The id for the new InputType \n\t * @param String The name for the new InputType\n\t * @param boolean Indicates whether this is an extension element or a managed project element\n\t * \n\t * @return IInputType\n\t * @since 3.0\n\t */\n\tpublic IInputType createInputType(IInputType superClass, String Id, String name, boolean isExtensionElement);\n\n\t/**\n\t * Removes an InputType from the tool's list.\n\t * \n\t * @param type\n\t * @since 3.0\n\t */\n\tpublic void removeInputType(IInputType type);\n\t\n\t/**\n\t * Returns the complete list of input types that are available for this tool.\n\t * The list is a merging of the input types specified for this tool with the \n\t * input types of its superclasses. The lowest input type instance in the hierarchy\n\t * takes precedence. \n\t * \n\t * @return IInputType[]\n\t * @since 3.0\n\t */\n\tpublic IInputType[] getInputTypes();\n\n\t/**\n\t * Returns the <code>IInputType</code> in the tool with the specified \n\t * ID. This is an efficient search in the receiver.\n\t * \n\t * <p>If the receiver does not have an InputType with that ID, the method \n\t * returns <code>null</code>. It is the responsibility of the caller to \n\t * verify the return value. \n\t * \n\t * @param id unique identifier of the InputType to search for\n\t * @return <code>IInputType</code>\n\t * @since 3.0\n\t */\n\tpublic IInputType getInputTypeById(String id);\n\n\t/**\n\t * Returns the <code>IInputType</code> in the tool that uses the \n\t * specified extension.\n\t * \n\t * <p>If the receiver does not have an InputType that uses the extension, \n\t * the method returns <code>null</code>. It is the responsibility of the \n\t * caller to verify the return value. \n\t * \n\t * @param inputExtension File extension\n\t * @return <code>IInputType</code>\n\t * @since 3.0\n\t */\n\tpublic IInputType getInputType(String inputExtension);\n\n\t/**\n\t * Returns the primary <code>IInputType</code> in this tool\n\t * \n\t * <p>If the receiver has no InputTypes, \n\t * the method returns <code>null</code>. It is the responsibility of the \n\t * caller to verify the return value. \n\t * \n\t * @return <code>IInputType</code>\n\t * @since 3.0\n\t */\n\tpublic IInputType getPrimaryInputType();\n\n\t/**\n\t * Returns all of the additional input resources of all InputType children.\n\t * Note: This does not include the primary InputType and does not include\n\t * additional dependencies.\n\t * \n\t * @return IPath[]\n\t */\n\tpublic IPath[] getAdditionalResources();\n\n\t/**\n\t * Returns all of the additional dependency resources of all InputType children.\n\t * Note: This does not include the primary InputType and does not include \n\t * additional inputs.\n\t * \n\t * @return IPath[]\n\t */\n\tpublic IPath[] getAdditionalDependencies();\n\n\t/**\n\t * Creates a child OutputType for this tool.\n\t * \n\t * @param OutputType The superClass, if any\n\t * @param String The id for the new OutputType \n\t * @param String The name for the new OutputType\n\t * @param boolean Indicates whether this is an extension element or a managed project element\n\t * \n\t * @return IOutputType\n\t * @since 3.0\n\t */\n\tpublic IOutputType createOutputType(IOutputType superClass, String Id, String name, boolean isExtensionElement);\n\n\t/**\n\t * Removes an OutputType from the tool's list.\n\t * \n\t * @param type\n\t * @since 3.0\n\t */\n\tpublic void removeOutputType(IOutputType type);\n\t\n\t/**\n\t * Returns the complete list of output types that are available for this tool.\n\t * The list is a merging of the output types specified for this tool with the \n\t * output types of its superclasses. The lowest output type instance in the hierarchy\n\t * takes precedence. \n\t * \n\t * @return IOutputType[]\n\t * @since 3.0\n\t */\n\tpublic IOutputType[] getOutputTypes();\n\t/**\n\t * Get the <code>IOutputType</code> in the receiver with the specified \n\t * ID. This is an efficient search in the receiver.\n\t * \n\t * <p>If the receiver does not have an OutputType with that ID, the method \n\t * returns <code>null</code>. It is the responsibility of the caller to \n\t * verify the return value. \n\t * \n\t * @param id unique identifier of the OutputType to search for\n\t * @return <code>IOutputType</code>\n\t * @since 3.0\n\t */\n\tpublic IOutputType getOutputTypeById(String id);\n\n\t/**\n\t * Returns the <code>IOutputType</code> in the tool that creates the \n\t * specified extension.\n\t * \n\t * <p>If the receiver does not have an OutputType that creates the extension, \n\t * the method returns <code>null</code>. It is the responsibility of the \n\t * caller to verify the return value. \n\t * \n\t * @param outputExtension File extension\n\t * @return <code>IOutputType</code>\n\t * @since 3.0\n\t */\n\tpublic IOutputType getOutputType(String outputExtension);\n\n\t/**\n\t * Returns the primary <code>IOutputType</code> in this tool\n\t * \n\t * <p>If the receiver has no OutputTypes, \n\t * the method returns <code>null</code>. It is the responsibility of the \n\t * caller to verify the return value. \n\t * \n\t * @return <code>IOutputType</code>\n\t * @since 3.0\n\t */\n\tpublic IOutputType getPrimaryOutputType();\n\n\t/**\n\t * Returns the <code>ITool</code> that is the superclass of this\n\t * tool, or <code>null</code> if the attribute was not specified.\n\t * \n\t * @return ITool\n\t */\n\tpublic ITool getSuperClass();\n\t\n\t/**\n\t * Returns whether this element is abstract. Returns <code>false</code>\n\t * if the attribute was not specified.\n\t * @return boolean \n\t */\n\tpublic boolean isAbstract();\n\n\t/**\n\t * Sets the isAbstract attribute of the tool-chain. \n\t * \n\t * @param b\n\t */\n\tpublic void setIsAbstract(boolean b);\n\t\n\t/**\n\t * Returns a semi-colon delimited list of child Ids of the superclass'\n\t * children that should not be automatically inherited by this element.\n\t * Returns an empty string if the attribute was not specified. \n\t * @return String \n\t */\n\tpublic String getUnusedChildren();\n\n\t/**\n\t * Returns the semicolon separated list of unique IDs of the error parsers associated\n\t * with the tool.\n\t * \n\t * @return String\n\t */\n\tpublic String getErrorParserIds();\n\n\t/**\n\t * Returns the ordered list of unique IDs of the error parsers associated with the \n\t * tool.\n\t * \n\t * @return String[]\n\t */\n\tpublic String[] getErrorParserList();\n\n\t/**\n\t * Sets the semicolon separated list of error parser ids\n\t * \n\t * @param ids\n\t */\n\tpublic void setErrorParserIds(String ids);\n\t\n\t/**\n\t * Returns the list of valid source extensions this tool knows how to build.\n\t * The list may be empty but will never be <code>null</code>.\n\t * \n\t * @return List\n\t * @deprecated - use getPrimaryInputExtensions or getAllInputExtensions\n\t */\n\tpublic List getInputExtensions();\n\t\n\t/**\n\t * Returns the array of valid primary source extensions this tool knows how to build.\n\t * The array may be empty but will never be <code>null</code>.\n\t * \n\t * @return String[]\n\t */\n\tpublic String[] getPrimaryInputExtensions();\n\t\n\t/**\n\t * Returns the array of all valid source extensions this tool knows how to build.\n\t * The array may be empty but will never be <code>null</code>.\n\t * \n\t * @return String[]\n\t */\n\tpublic String[] getAllInputExtensions();\n\t\n\t/**\n\t * Returns the default input extension for the primary input of the tool\n\t * \n\t * @return String\n\t */\n\tpublic String getDefaultInputExtension();\n\t\n\t/**\n\t * Returns the array of all valid dependency extensions for this tool's inputs.\n\t * The array may be empty but will never be <code>null</code>.\n\t * \n\t * @return String[]\n\t */\n\tpublic String[] getAllDependencyExtensions();\n\t\n\t/**\n\t * Returns the list of valid header extensions for this tool.\n\t * Returns the value of the headerExtensions attribute\n\t * The list may be empty but will never be <code>null</code>.\n\t * \n\t * @return List\n\t * @deprecated - use getDependency* methods\n\t */\n\tpublic List getInterfaceExtensions();\n\n\t/**\n\t * Answers a constant corresponding to the project nature the tool should be used \n\t * for. Possible answers are:\n\t * \n\t * <dl>\n\t * <dt>ITool.FILTER_C\n\t * <dd>The tool should only be displayed for C projects. <i>Notes:</i> even \n\t * though a C++ project has a C nature, this flag will mask the tool for C++ \n\t * projects. \n\t * <dt>ITool.FILTER_CC\n\t * <dd>The tool should only be displayed for C++ projects.\n\t * <dt>ITool.FILTER_BOTH\n\t * <dd>The tool should be displayed for projects with both natures.\n\t * </dl>\n\t * \n\t * @return int\n\t */\n\tpublic int getNatureFilter();\n\t\n\t/**\n\t * Returns the array of all valid output extensions this tool can create.\n\t * The array may be empty but will never be <code>null</code>.\n\t * \n\t * @return String[]\n\t */\n\tpublic String[] getAllOutputExtensions();\n\t\n\t/**\n\t * Answers all of the output extensions that the receiver can build.\n\t * This routine returns the value if the outputs attribute.\n\t * \n\t * @return <code>String[]</code> of extensions\n\t * @deprecated - use getAllOutputExtensions\n\t */\n\tpublic String[] getOutputExtensions();\n\t\n\t/**\n\t * Answers all of the output extensions that the receiver can build,\n\t * from the value of the outputs attribute\n\t * \n\t * @return <code>String[]</code> of extensions\n\t */\n\tpublic String[] getOutputsAttribute();\n\t\n\t/**\n\t * Answer the output extension the receiver will create from the input, \n\t * or <code>null</code> if the tool does not understand that extension.\n\t * \n\t * @param inputExtension The extension of the source file. \n\t * @return String\n\t */\n\tpublic String getOutputExtension(String inputExtension);\n\t\n\t/**\n\t * Sets all of the output extensions that the receiver can build,\n\t * into the outputs attribute. Note that the outputs attribute is\n\t * ignored when one or more outputTypes are specified. \n\t * \n\t * @param String\n\t */\n\tpublic void setOutputsAttribute(String extensions);\n\t\n\t/**\n\t * Answers the argument that must be passed to a specific tool in order to \n\t * control the name of the output artifact. For example, the GCC compile and \n\t * linker use '-o', while the archiver does not. \n\t * \n\t * @return String\n\t */\n\tpublic String getOutputFlag();\n\t\n\t/**\n\t * Sets the argument that must be passed to a specific tool in order to \n\t * control the name of the output artifact. For example, the GCC compile and \n\t * linker use '-o', while the archiver does not. \n\t * \n\t * @param String\n\t */\n\tpublic void setOutputFlag(String flag);\n\n\t/**\n\t * Answers the prefix that the tool should prepend to the name of the build artifact.\n\t * For example, a librarian usually prepends 'lib' to the target.a\n\t * @return String\n\t */\n\tpublic String getOutputPrefix();\n\n\t/**\n\t * Sets the prefix that the tool should prepend to the name of the build artifact.\n\t * For example, a librarian usually prepends 'lib' to the target.a\n\t * @param String\n\t * @see {@link #setOutputPrefixForPrimaryOutput(String)} \n\t */\n\tpublic void setOutputPrefix(String prefix);\n\t\n\tpublic void setOutputPrefixForPrimaryOutput(String prefix);\n\t\n\t/**\n\t * Returns <code>true</code> if the Tool wants the MBS to display the Advanced \n\t * Input category that allows the user to specify additional input resources and\n\t * dependencies, else <code>false</code>.\n\t * \n\t * @return boolean \n\t */\n\tpublic boolean getAdvancedInputCategory();\n\t\n\t/**\n\t * Sets whether the Tool wants the MBS to display the Advanced \n\t * Input category that allows the user to specify additional input resources and\n\t * dependencies. \n\t * \n\t * @param display \n\t */\n\tpublic void setAdvancedInputCategory(boolean display);\n\t\n\t/**\n\t * Returns <code>true</code> if the Tool represents a user-define custom build\n\t * step, else <code>false</code>.\n\t * \n\t * @return boolean \n\t */\n\tpublic boolean getCustomBuildStep();\n\t\n\t/**\n\t * Sets whether the Tool represents a user-define custom build step.\n\t * \n\t * @param customBuildStep\n\t */\n\tpublic void setCustomBuildStep(boolean customBuildStep);\n\t\n\t/**\n\t * Returns the announcement string for this tool \n\t * @return String\n\t */\n\tpublic String getAnnouncement();\n\t\n\t/**\n\t * Sets the announcement string for this tool \n\t * @param announcement\n\t */\n\tpublic void setAnnouncement(String announcement);\n\t\n\t/**\n\t * Answers the command-line invocation defined for the receiver.\n\t * \n\t * @return String\n\t */\n\tpublic String getToolCommand();\n\t\n\t/**\n\t * Sets the command-line invocation command defined for this tool.\n\t * \n\t * @param String\n\t * \n\t * @return boolean if <code>true</code>, then the tool command was modified \n\t */\n\tpublic boolean setToolCommand(String command);\n\t\n\t/**\n\t * Returns command line pattern for this tool \n\t * @return String\n\t */\n\tpublic String getCommandLinePattern();\n\t\n\t/**\n\t * Sets the command line pattern for this tool \n\t * @param String\n\t */\n\tpublic void setCommandLinePattern(String pattern);\n\t\n\t/**\n\t * Returns the plugin.xml element of the commandLineGenerator extension or <code>null</code> if none. \n\t * \n\t * @return IConfigurationElement\n\t * \n\t * @deprecated - use getCommandLineGenerator\n\t */\n\tpublic IConfigurationElement getCommandLineGeneratorElement();\n\t\n\t/**\n\t * Sets the CommandLineGenerator plugin.xml element\n\t * \n\t * @param element\n\t * @deprecated\n\t */\n\tpublic void setCommandLineGeneratorElement(IConfigurationElement element);\n\t\n\t/**\n\t * Returns the command line generator specified for this tool\n\t * @return IManagedCommandLineGenerator\n\t */\n\tpublic IManagedCommandLineGenerator getCommandLineGenerator();\n\t\n\t/**\n\t * Returns the plugin.xml element of the dependencyGenerator extension or <code>null</code> if none. \n\t * \n\t * @return IConfigurationElement\n\t * @deprecated - use getDependencyGeneratorForExtension or IInputType#getDependencyGenerator method\n\t */\n\tpublic IConfigurationElement getDependencyGeneratorElement();\n\t\n\t/**\n\t * Sets the DependencyGenerator plugin.xml element\n\t * \n\t * @param element\n\t * @deprecated \n\t */\n\tpublic void setDependencyGeneratorElement(IConfigurationElement element);\n\t\n\t/**\n\t * Returns a class instance that implements an interface to generate \n\t * source-level dependencies for the tool specified in the argument. \n\t * This method may return <code>null</code> in which case, the receiver \n\t * should assume that the tool does not require dependency information \n\t * when the project is built.\n\t *\n\t * @return IManagedDependencyGenerator\n\t * @deprecated - use getDependencyGeneratorForExtension or IInputType method\n\t */\n\tpublic IManagedDependencyGenerator getDependencyGenerator();\n\t\n\t/**\n\t * Returns a class instance that implements an interface to generate \n\t * source-level dependencies for the tool specified in the argument. \n\t * This method may return <code>null</code> in which case, the receiver \n\t * should assume that the tool does not require dependency information \n\t * when the project is built.\n\t *\n\t * @param sourceExt source file extension\n\t * @return IManagedDependencyGeneratorType\n\t */\n\tpublic IManagedDependencyGeneratorType getDependencyGeneratorForExtension(String sourceExt);\n\t\n\t/**\n\t * Returns an array of command line arguments that have been specified for\n\t * the tool.\n\t * The flags contain build macros resolved to the makefile format.\n\t * That is if a user has chosen to expand all macros in the buildfile,\n\t * the flags contain all macro references resolved, otherwise, if a user has \n\t * chosen to keep the environment build macros unresolved, the flags contain\n\t * the environment macro references converted to the buildfile variable format,\n\t * all other macro references are resolved \n\t * \n\t * @return String[]\n\t * @throws BuildException\n\t * \n\t * @deprecated - use getToolCommandFlags instead\n\t */\n\tpublic String[] getCommandFlags() throws BuildException;\n\t\n\t/**\n\t * Returns the command line arguments that have been specified for\n\t * the tool.\n\t * The string contains build macros resolved to the makefile format.\n\t * That is if a user has chosen to expand all macros in the buildfile,\n\t * the string contains all macro references resolved, otherwise, if a user has \n\t * chosen to keep the environment build macros unresolved, the string contains\n\t * the environment macro references converted to the buildfile variable format,\n\t * all other macro references are resolved \n\t * \n\t * @return String\n\t * \n\t * @deprecated - use getToolCommandFlagsString instead\n\t */\n\tpublic String getToolFlags() throws BuildException ;\n\t\n\t/**\n\t * Returns an array of command line arguments that have been specified for\n\t * the tool.\n\t * The flags contain build macros resolved to the makefile format.\n\t * That is if a user has chosen to expand all macros in the buildfile,\n\t * the flags contain all macro references resolved, otherwise, if a user has \n\t * chosen to keep the environment build macros unresolved, the flags contain\n\t * the environment macro references converted to the buildfile variable format,\n\t * all other macro references are resolved \n\t * \n\t * @param inputFileLocation\n\t * @param outputFileLocation\n\t * @return\n\t * @throws BuildException\n\t */\n\tpublic String[] getToolCommandFlags(IPath inputFileLocation, IPath outputFileLocation) throws BuildException;\n\t\n\t/**\n\t * Returns the command line arguments that have been specified for\n\t * the tool.\n\t * The string contains build macros resolved to the makefile format.\n\t * That is if a user has chosen to expand all macros in the buildfile,\n\t * the string contains all macro references resolved, otherwise, if a user has \n\t * chosen to keep the environment build macros unresolved, the string contains\n\t * the environment macro references converted to the buildfile variable format,\n\t * all other macro references are resolved \n\t * \n\t * @param inputFileLocation\n\t * @param outputFileLocation\n\t * @return\n\t * @throws BuildException\n\t */\n\tpublic String getToolCommandFlagsString(IPath inputFileLocation, IPath outputFileLocation) throws BuildException;\n\n\t/**\n\t * Options are organized into categories for UI purposes.\n\t * These categories are organized into a tree. This is the root\n\t * of that tree.\n\t * \n\t * @return IOptionCategory\n\t */\n\tpublic IOptionCategory getTopOptionCategory(); \n\n\t/**\n\t * Return <code>true</code> if the receiver builds files with the\n\t * specified extension, else <code>false</code>.\n\t * \n\t * @param extension file extension of the source\n\t * @return boolean\n\t */\n\tpublic boolean buildsFileType(String extension);\n\n\t/**\n\t * Return <code>true</code> if the receiver uses files with the\n\t * specified extension as input, else <code>false</code>. This\n\t * returns true for a superset of the extensions that buildFileType\n\t * returns true for - it includes secondary inputs.\n\t * \n\t * @param extension file extension of the source\n\t * @return boolean\n\t */\n\tpublic boolean isInputFileType(String extension);\n\t\n\t/**\n\t * Answers <code>true</code> if the tool considers the file extension to be \n\t * one associated with a header file.\n\t * \n\t * @param ext file extension of the source\n\t * @return boolean\n\t */\n\tpublic boolean isHeaderFile(String ext);\n\n\t/**\n\t * Answers <code>true</code> if the receiver builds a file with the extension specified\n\t * in the argument, else <code>false</code>.\n\t * \n\t * @param outputExtension extension of the file being produced by a tool\n\t * @return boolean\n\t */\n\tpublic boolean producesFileType(String outputExtension);\n\n\t/**\n\t * Returns <code>true</code> if this tool has changes that need to \n\t * be saved in the project file, else <code>false</code>.\n\t * \n\t * @return boolean \n\t */\n\tpublic boolean isDirty();\n\t\n\t/**\n\t * Sets the element's \"dirty\" (have I been modified?) flag.\n\t * \n\t * @param isDirty\n\t */\n\tpublic void setDirty(boolean isDirty);\n\t\n\t/**\n\t * Returns <code>true</code> if this tool was loaded from a manifest file,\n\t * and <code>false</code> if it was loaded from a project (.cdtbuild) file.\n\t * \n\t * @return boolean \n\t */\n\tpublic boolean isExtensionElement();\n\t\n\t/**\n\t * Returns the 'versionsSupported' of this tool\n\t * \n\t * @return String\n\t */\n\tpublic String getVersionsSupported();\n\t\n\t/**\n\t * Returns the 'convertToId' of this tool\n\t * \n\t * @return String\n\t */\n\tpublic String getConvertToId();\n\n\t/**\n\t * Sets the 'versionsSupported' attribute of the tool. \n\t * \n\t * @param versionsSupported\n\t */\t\n\tpublic void setVersionsSupported(String versionsSupported);\n\t\n\t/**\n\t * Sets the 'convertToId' attribute of the tool. \n\t * \n\t * @param convertToId\n\t */\n\tpublic void setConvertToId(String convertToId);\n\t\n\t/**\n\t * Returns an array of the Environment Build Path variable descriptors\n\t * \n\t * @return IEnvVarBuildPath[]\n\t */\n\tpublic IEnvVarBuildPath[] getEnvVarBuildPaths();\n\t\n\t/**\n\t * Returns an IOptionPathConverter implementation for this tool\n\t * or null, if no conversion is required\n\t */\n\tpublic IOptionPathConverter getOptionPathConverter() ;\n\t\n\tCLanguageData getCLanguageData(IInputType type);\n\t\n\tCLanguageData[] getCLanguageDatas();\n\t\n\tIInputType getInputTypeForCLanguageData(CLanguageData data);\n\t\n\tIResourceInfo getParentResourceInfo();\n\t\n/*\tIInputType setSourceContentTypeIds(IInputType type, String[] ids);\n\n\tIInputType setHeaderContentTypeIds(IInputType type, String[] ids);\n\t\n\tIInputType setSourceExtensionsAttribute(IInputType type, String[] extensions);\n\n\tIInputType setHeaderExtensionsAttribute(IInputType type, String[] extensions);\n*/\n\tIInputType getEditableInputType(IInputType base);\n\t\n\tIOutputType getEditableOutputType(IOutputType base);\n\t\n\tboolean isEnabled();\n\t\n//\tboolean isReal();\n\t\n\tboolean supportsBuild(boolean managed);\n\t\n\tboolean matches(ITool tool);\n\t\n\tboolean isSystemObject();\n\t\n\tString getUniqueRealName();\n}",
"public PLayer getToolLayer() {\n return toolLayer;\n }",
"public interface HitNotifier {\r\n /**\r\n * Add hl as a listener to hit events.\r\n * @param hl the hit listener that added.\r\n */\r\n void addHitListener(HitListener hl);\r\n /**\r\n * Remove hl from the list of listeners to hit events.\r\n * @param hl Remove hl from the list of listeners.\r\n */\r\n void removeHitListener(HitListener hl);\r\n /**\r\n * This method is called whenever the beingHit object is hit.\r\n * the hitter parameter is the Ball that's doing the hitting.\r\n * @param beingHit the block is hit.\r\n * @param hitter tha ball is hit.\r\n */\r\n void hitEvent(Block beingHit, Ball hitter);\r\n}",
"public interface EldersInfoListener {\n void eldersInfoListener(int position);\n}",
"@Override\n public void propertyChange( PropertyChangeEvent ev ) {\n if (ev.getPropertyName().equals( BaseLayerEditorTool.PROP_LAYER_ACTIVATED )) {\n // delay triggerTool() until UI has been created\n Polymap.getSessionDisplay().asyncExec( new Runnable() {\n public void run() {\n boolean activate = false;\n boolean enable = false;\n // Polygone?\n if (parentTool.getDrawControl().getHandler() instanceof PolygonHandler) {\n enable = true;\n activate = Objects.firstNonNull( \n getSite().getMemento().getBoolean( PROP_ACTIVE ),\n Boolean.FALSE ).booleanValue();\n }\n \n // reset tool if layer of parentTool has changed\n if (isActive() && activate) {\n getSite().triggerTool( getSite().getToolPath(), false );\n }\n\n getSite().enableTool( getSite().getToolPath(), enable );\n getSite().triggerTool( getSite().getToolPath(), activate );\n }\n });\n }\n }",
"public interface SmartEventListener {\n\n\t/**\n\t * Specifies action to be taken on successful completion of action. Also\n\t * processes SmartEvent on the basis of event type contained in it\n\t * \n\t * @param smartEvent\n\t * : SmartEvent containing event type\n\t */\n\tvoid onCompleteActionWithSuccess(SmartEvent smartEvent);\n\n\t/**\n\t * Specifies action to be taken on unsuccessful completion of action. Also\n\t * processes SmartEvent on the basis of event type contained in it\n\t * \n\t * @param smartEvent\n\t * : SmartEvent containing event type\n\t */\n\tvoid onCompleteActionWithError(SmartEvent smartEvent);\n\n\tvoid shutDown();\n}",
"private void addListeners() {\n\t\t\n\t\tloadJokesOptionMenu.addActionListener((event) -> {\n\t\t\tJFileChooser openDialog = new JFileChooser();\n\t\t\t\n\t\t FileNameExtensionFilter filter = new FileNameExtensionFilter(\"text files\", \"txt\");\n\t\t openDialog.setFileFilter(filter);\n\t\t int returnVal = openDialog.showOpenDialog(null);\n\t\t if(returnVal == JFileChooser.APPROVE_OPTION) {\t \n\t\t jokeFile = openDialog.getSelectedFile().getAbsolutePath();\n\t\t }\n\t\t});\n\t\t\n\t\tstartServerFileMenu.addActionListener(event -> startServer());\n\t\tstopServerFileMenu.addActionListener(event -> stopServer());\n\t\t\n\t\texitFileMenu.addActionListener(event -> quitApp());\n\n\t\tsetupServerInfoOptionMenu.addActionListener(event -> setupServerInfo());\n\t\t\n\t\taboutHelpMenu.addActionListener(event -> {\n\t\t\tJOptionPane.showMessageDialog(null, \"Knock Knock Server v1.0 Copyright 2017 RLTech Inc\");\n\t\t});\n\t\t\n\t\tstartServerToolBarButton.addActionListener(event -> {\n\t\t\tstartServer();\n\t\t\tstartServerToolBarButton.setEnabled(false);\n\t\t\tstopServerToolBarButton.setEnabled(true);\n\t\t});\n\t\t\n\t\tstopServerToolBarButton.addActionListener(event -> {\n\t\t\tstopServer();\n\t\t\tstartServerToolBarButton.setEnabled(true);\n\t\t\tstopServerToolBarButton.setEnabled(false);\n\t\t});\n\n\t\tkkClientToolBarButton.addActionListener(event -> {\n\n\t\t\ttry {\n\t\t\t\tRuntime.getRuntime().exec(\"java -jar KKClient.jar\");\n\t\t\t} catch (IOException e1) {\n\t\t\t\t//e1.printStackTrace();\n\t\t\t\tUtility.displayErrorMessage(\"Fail to find or launch KKClient.jar client app. Make sure Java run time (JRE) is installed and KKClient.jar is stored in the same path as this server app.\");\n\t\t\t}\n\t\t});\n\t\t\n\t\taddWindowListener(new WindowAdapter() {\n\t\t public void windowClosing(WindowEvent e) {\n\t\t \tquitApp();\t\n\t\t }\n\t\t});\n\t}",
"public void addHitTestListener(HitTestListener l) {\n hitTestListenerList.add(HitTestListener.class, l);\n }",
"public interface CommandManagerListener extends Listener, ICommandManagerListener {\n}",
"public String getToolId(){\n\t\treturn \"sakai.gcalendar\";\t\t\n\t}",
"public TraitGuiListener(){\n\t\tplugin = RacesAndClasses.getPlugin();\n\t\tBukkit.getPluginManager().registerEvents(this, plugin);\n\t}",
"interface DataListener\n{\n\tpublic void DataChanged(MDSplus.Data data);\n}"
] | [
"0.77133924",
"0.7649358",
"0.749137",
"0.64667034",
"0.6220475",
"0.61701673",
"0.6111171",
"0.6003773",
"0.5989089",
"0.59586865",
"0.58759344",
"0.58166414",
"0.56911296",
"0.5617411",
"0.5592648",
"0.55920386",
"0.5567735",
"0.5554338",
"0.5515113",
"0.54813075",
"0.5479291",
"0.54574454",
"0.54000914",
"0.5354201",
"0.5286162",
"0.5252211",
"0.5235096",
"0.5221966",
"0.52175933",
"0.52145606",
"0.521163",
"0.5208682",
"0.51966274",
"0.51931375",
"0.5179842",
"0.51785535",
"0.5172959",
"0.5169462",
"0.5168463",
"0.5157744",
"0.51555735",
"0.51428664",
"0.513296",
"0.51282036",
"0.51170844",
"0.5112885",
"0.5112885",
"0.51064664",
"0.5100935",
"0.51003844",
"0.509588",
"0.50856954",
"0.50816584",
"0.50732815",
"0.506485",
"0.5059596",
"0.5055505",
"0.5051396",
"0.5044701",
"0.50435764",
"0.50343186",
"0.5024993",
"0.5022423",
"0.5021408",
"0.50165004",
"0.5005742",
"0.4998335",
"0.49954695",
"0.49942806",
"0.49925792",
"0.4990854",
"0.4983163",
"0.4983163",
"0.4983163",
"0.4983163",
"0.49722642",
"0.49581972",
"0.49552467",
"0.49538663",
"0.4953335",
"0.49496952",
"0.49477404",
"0.49463502",
"0.49442938",
"0.49388734",
"0.49225193",
"0.49195564",
"0.49195495",
"0.49183393",
"0.4907672",
"0.49021655",
"0.48936653",
"0.48914677",
"0.48909622",
"0.48904756",
"0.48774156",
"0.48734388",
"0.4868623",
"0.48680508",
"0.4866051"
] | 0.84651405 | 0 |
Instantiates a new filter manager. | public FilterManager( final FeatherContext context, final Handler handler, final String apiKey ) {
logger = LoggerFactory.getLogger( "FilterManager", LoggerType.ConsoleLoggerType );
mContext = context;
mHandler = handler;
mApiKey = apiKey;
mPluingsHandler = new PluginHandler( this );
mServiceLoader = new ServiceLoader<EffectContextService>( this );
initServices( context );
mConfiguration = new Configuration( ( (Context) context ).getResources().getConfiguration() );
setCurrentState( STATE.DISABLED );
mChanged = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initialize(FilterManager<E> filterManager) {\n this.filterManager = filterManager;\n }",
"public Filter() {\n }",
"public SamFilterParams create() {\n return new SamFilterParams(this);\n }",
"public Filters() {\n }",
"public Filter () {\n\t\tsuper();\n\t}",
"public static FilterCacheFactory getInstance() {\n return instance;\n }",
"public HttpFilter() { }",
"public IntentFilter createFilter()\n {\n IntentFilter filter = new IntentFilter();\n filter.addAction(UPDATE_TIME);\n\n return filter;\n }",
"public LdapFilterParser()\n {\n this.scanner = new LdapFilterScanner();\n this.model = new LdapFilter();\n }",
"public ValidatorFilter() {\n\n\t}",
"public static TokenFilterFactory getInstance() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (TokenFilterFactory.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\t//System.out.println(\"getInstance(): First time getInstance was invoked!\");\n\t\t\t\t\tinstance = new TokenFilterFactory();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate Filter() {\n\n\t}",
"public ItemFilterHolder getFilterManager()\r\n\t{\r\n\t\treturn filterHolder;\r\n\t}",
"public static FilterController getInstance() {\n if (instance == null) {\n instance = new FilterController();\n }\n return instance;\n }",
"public static IFilter getInstance() {\n return singleton;\n }",
"public LogFilter() {}",
"protected IUIFilterable createFilterable() {\n \t\treturn new UIFilterable();\n \t}",
"private static Filter newFilter()\r\n {\r\n Filter filter = new Filter(\"filter1\", new Source(\"display1\", \"name1\", \"server\", \"key1\"));\r\n filter.getOtherSources().add(filter.getSource());\r\n Group group = new Group();\r\n group.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"123\"));\r\n Group group2 = new Group();\r\n group2.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"124\"));\r\n group.addFilterGroup(group2);\r\n filter.setFilterGroup(group);\r\n return filter;\r\n }",
"public static FilterBar instance() {\n\t\t\n\t\tif (filterBar == null) filterBar = new FilterBar();\n\t\t\n\t\treturn filterBar;\n\t\t\n\t}",
"public void init(FilterConfig config) {}",
"public ObjectFilter()\n\t{\n\t}",
"public Filter (Filter filter) {\n this.name = filter.name;\n this.type = filter.type;\n this.pred = new FilterPred(filter.pred);\n this.enabled = filter.enabled;\n }",
"public static FilterBuilder filters()\n {\n return new FilterBuilder();\n }",
"public LancasterFilterFactory(Map<String, String> args) {\n super(args);\n\n }",
"Filter getFilter();",
"public RegisterFilter() {\n\t\tqueryList = new ArrayList<QueryPart>();\n\t\torderList = new ArrayList<OrderPart>();\n\t}",
"@Override\n public Filter getFilter() {\n if(filter == null)\n {\n filter=new CustomFilter();\n }\n return filter;\n }",
"public FileFilter() {\n this.filterExpression = \"\";\n }",
"private Filter makeFilter(String filterName) {\r\n Class c = null;\r\n Filter f = null;\r\n try {\r\n c = Class.forName(filterName);\r\n f = (Filter) c.newInstance();\r\n } catch (Exception e) {\r\n System.out.println(\"There was a problem to load the filter class: \"\r\n + filterName);\r\n }\r\n return f;\r\n }",
"public JexlFilterManager(Provider provider) {\n\t\tsuper(provider);\n\t\ttheFunctions = new ConcurrentHashMap<String, Object>();\n\t}",
"public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }",
"public static FilterDialogFragment newInstance() {\n FilterDialogFragment addListDialogFragment = new FilterDialogFragment();\n Bundle bundle = new Bundle();\n addListDialogFragment.setArguments(bundle);\n return addListDialogFragment;\n }",
"public PipelineFilter()\n {\n }",
"public static FilterBuilder build() {\n return new FilterBuilder();\n }",
"CompiledFilter() {\n }",
"private void initFilter() {\r\n if (filter == null) {\r\n filter = new VocabularyConceptFilter();\r\n }\r\n filter.setVocabularyFolderId(vocabularyFolder.getId());\r\n filter.setPageNumber(page);\r\n filter.setNumericIdentifierSorting(vocabularyFolder.isNumericConceptIdentifiers());\r\n }",
"private Filter getCustomFilter( ) {\n if(( customFilter != null ) \n ||( customFilterError ) )\n {\n return customFilter;\n }\n LogService logService = getLogService( );\n if( logService == null ) {\n return null;\n }\n String customFilterClassName = null;\n try {\n customFilterClassName = logService.getLogFilter( );\n customFilter = (Filter) getInstance( customFilterClassName );\n } catch( Exception e ) {\n customFilterError = true;\n new ErrorManager().error( \"Error In Instantiating Custom Filter \" +\n customFilterClassName, e, ErrorManager.GENERIC_FAILURE );\n }\n return customFilter;\n }",
"public void addFilterToCreator(ViewerFilter filter);",
"public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n if (debug) {\n log(\"RequestQueryFilter:Initializing filter\");\n }\n }\n }",
"public FilterData() {\n }",
"public Filter createFilter(String filter) throws InvalidSyntaxException {\n \t\tcheckValid();\n \n \t\treturn FilterImpl.newInstance(filter);\n \t}",
"public BlobFilterDetails() {\n }",
"public MenuFilter() {\r\n // TODO Auto-generated constructor stub\r\n }",
"@Override\n public void init(FilterConfig config) {\n }",
"private BookFilters()\n {\n }",
"MockRequest.Filter requestFilter() {\n String className = get(REQUEST_FILTER);\n if (isEmpty(className))\n return null;\n\n try {\n return (MockRequest.Filter) Class.forName(className).newInstance();\n } catch (Exception e) {\n info(e, \"Couldn't deserialize request filter\");\n return null;\n }\n }",
"static ObjectInputFilter createFilter(String param2String, boolean param2Boolean) {\n/* 448 */ Global global = new Global(param2String, param2Boolean);\n/* 449 */ return global.isEmpty() ? null : global;\n/* */ }",
"static ObjectInputFilter createFilter(String param2String, boolean param2Boolean) {\n/* 446 */ Global global = new Global(param2String, param2Boolean);\n/* 447 */ return global.isEmpty() ? null : global;\n/* */ }",
"public NewsFilter()\n {\n this.queue = new LinkedBlockingQueue<>();\n this.uiContents = new HashMap<>();\n this.retrieved = new HashMap<>();\n this.running = new LinkedList<>();\n this.cancelled = false;\n\n // Start the filter task\n filter = new Thread( ()-> filter() ); \n filter.start();\n theLogger.info(\"NewsFilter Constructed and filter started\");\n }",
"public FilterWidget()\n {\n this.browserConnection = null;\n this.initalFilter = null;\n }",
"private LogFilter() {\n\t\tacceptedEventTypes = new HashMap<String, Integer>();\n\t}",
"private ProductFilterUtils(){}",
"public Filter() throws UnknownHostException {\n\n\t}",
"public static NodeFilter makeFilter()\n\t{\n\t\tNodeFilter[] fa = new NodeFilter[3];\n\t\tfa[0] = new HasAttributeFilter(\"HREF\");\n\t\tfa[1] = new TagNameFilter(\"A\");\n\t\tfa[2] = new HasParentFilter(new TagNameFilter(\"H3\"));\n\t\tNodeFilter filter = new AndFilter(fa);\n\t\treturn filter;\n\t}",
"public void init(FilterConfig filterConfig) throws ServletException {\r\n }",
"public FilterWidget( String initalFilter )\n {\n this.initalFilter = initalFilter;\n }",
"void setFilter(Filter f);",
"public DDataFilter() {\n filters = new ArrayList<>();\n operator = null;\n value = null;\n externalData = false;\n valueTo = null;\n attribute = ROOT_FILTER;\n }",
"@Override\n\tpublic void init(FilterConfig filterConfig) {\n\n\t}",
"protected NullFilterImpl() {\n }",
"@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\tSystem.out.print(\"过滤器初始化\");\n\t\t\n\t}",
"@Override\n public <T extends Filter> T createFilter(Class<T> clazz) throws ServletException {\n return null;\n }",
"FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);",
"private CameraManager() {\n }",
"@JsonCreator\n public Filter(String filterStr) {\n Matcher matcher = FILTER_PATTERN.matcher(filterStr);\n if (matcher.find()) {\n _expression = filterStr;\n _leftOperand = getOperand(matcher.group(1));\n _operator = Operator.fromString(matcher.group(2).replaceAll(\"\\\\s+\", \"\"));\n _rightOperand = getOperand(matcher.group(4));\n } else {\n throw new IllegalArgumentException(\"Illegal filter string pattern: '\" + filterStr + \"'\");\n }\n }",
"public ExternalFilter() {\n\t\treset();\n\t\tenable_filter(true);\n\t\tset_sampling_parameter(15915.6);\n\t\tset_chip_model(ISIDDefs.chip_model.MOS6581);\n\t}",
"public void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}",
"public void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}",
"public static DataFilter createDefault() {\n\t\tString type = Config.get(Key.LATENCY_FILTER_TYPE);\n\t\tswitch(type) {\n\t\t\tcase \"average\" : \n\t\t\t\treturn new MovingAverageFilter();\n\t\t\tcase \"median\" : \n\t\t\t\treturn new MovingMedianFilter();\n\t\t\tcase \"none\" : \n\t\t\t\treturn new NoFilter();\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid latency filter type in config file\");\n\t\t}\n\t}",
"public CacheManager()\n\t{\n\t}",
"@Inject\n\tpublic Filters(CORSFilter corsFilter) {\n\t\tsuper(corsFilter);\n\t}",
"private void init() {\n // see if a serialized FilterAgent exists\n try {\n FilterAgent tmpFilterAgent = FilterAgent.restoreFromFile(FilterAgent.fileName);\n if (tmpFilterAgent != null) filterAgent = tmpFilterAgent;\n } catch (Exception e) {\n // no error, just catch the exception and use default/new agent\n }\n filterAgent.infoFilter = this;\n filterAgent.addCIAgentEventListener(this); // for trace msgs\n\n newsReaderAgent.addCIAgentEventListener(this);\n newsReaderAgent.initialize(); // intialize it\n newsReaderAgent.startAgentProcessing(); // start it running\n uRLReaderAgent.addCIAgentEventListener(this);\n uRLReaderAgent.initialize(); // initialize it\n uRLReaderAgent.startAgentProcessing(); // start it running\n filterAgent.initialize(); // initialize it\n filterAgent.startAgentProcessing(); // start the Filter agent thread\n openFileDialog = new java.awt.FileDialog(this);\n openFileDialog.setMode(FileDialog.LOAD);\n openFileDialog.setTitle(\"Open\");\n saveFileDialog = new java.awt.FileDialog(this);\n saveFileDialog.setMode(FileDialog.SAVE);\n saveFileDialog.setTitle(\"Save\");\n }",
"public OrFileFilter()\n {\n // Nothing to do\n }",
"public FilterSpec build() {\n return new FilterSpec(this);\n }",
"public void init(FilterConfig config) {\n\t\tthis.config = config;\n\t\tSystem.out.println(\"init method of the \" + this.config.getFilterName() + \" filter is invoked.\");\n\t}",
"private FilterPipeline createPipeline() {\n Filter filterZero = createDefaultPatternFilter(0);\n Filter filterTwo = createDefaultPatternFilter(2); \n Sorter sorter = new ShuttleSorter();\n Filter[] filters = new Filter[] {filterZero, filterTwo, sorter};\n FilterPipeline pipeline = new FilterPipeline(filters);\n return pipeline;\n }",
"public static AddEventManager init() {\n if (instance == null) {\n instance = new AddEventManager();\n }\n return instance;\n }",
"public FiltersDialog(java.awt.Frame parent, boolean modal, List<Filter> filters,\n JComboBox filtersComboBox, CalendarManager calManager) {\n super(parent, modal);\n initComponents();\n this.calManager = calManager;\n model = (FiltersListModel) filtersList.getModel();\n newFilterButton.requestFocus();\n model.setFilters(filters);\n this.filtersComboBox = filtersComboBox;\n comboModel = (FiltersComboBoxModel) filtersComboBox.getModel();\n activeFilterName = (String) filtersComboBox.getSelectedItem();\n }",
"public void setFilter(Filter f){\r\n\t\tthis.filtro = new InputFilter(f);\r\n\t}",
"public void init(FilterConfig arg0) throws ServletException {\n\t\t\n }",
"public ExplorerManager() {\n init();\n }",
"public static ObjectInputFilter createFilter(String param1String) {\n/* 381 */ Objects.requireNonNull(param1String, \"pattern\");\n/* 382 */ return Global.createFilter(param1String, true);\n/* */ }",
"public FilterChooser() {\n\n \tsuper();\n \tchooser = new JFileChooser();\n \tthis.setupListeners();\n \t\n \n }",
"BuildFilter defaultFilter();",
"public static ObjectInputFilter createFilter(String param1String) {\n/* 383 */ Objects.requireNonNull(param1String, \"pattern\");\n/* 384 */ return Global.createFilter(param1String, true);\n/* */ }",
"void registerFilterListener(FilterListener listener);",
"@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }",
"static public FileFilter nullFilter() {\n return new FileFilter();\n }",
"WithCreate withFilter(EventChannelFilter filter);",
"public void init(FilterConfig arg0) throws ServletException {\n }",
"@Override\n\tpublic void init(FilterConfig filterConfig)\n\t\tthrows ServletException\n\t{\n\t\tServletContext ctx = filterConfig.getServletContext();\n\t\tInjector injector = (Injector) ctx.getAttribute(Injector.class.getName());\n\n\t\t// Create the real implementation\n\t\tStage stage = injector.getInstance(Stage.class);\n\t\tClass<? extends Production> type = stage == Stage.PRODUCTION ? Production.class : Development.class;\n\t\timpl = injector.getInstance(type);\n\n\t\t// Initialize all filters and servlets\n\t\timpl.doInit();\n\t}",
"public ProcessFilter getCurrentFilter() throws ProcessManagerException {\r\n if (currentProcessFilter == null) {\r\n currentProcessFilter = new ProcessFilter(processModel, currentRole,\r\n getLanguage());\r\n }\r\n return currentProcessFilter;\r\n }",
"@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }",
"@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }",
"public void addBusinessFilterToCreator(ViewerFilter filter);",
"@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n\n }",
"public FileManager() {\n\t\t\n\t}",
"public ConcatFilter() {\n super();\n }",
"public Filter(FilterType type, FilterPred pred) {\n this(null, type, pred);\n }",
"@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tSystem.out.print(\"过滤初始\");\n\t}"
] | [
"0.7122546",
"0.68704027",
"0.68298966",
"0.6815561",
"0.6611381",
"0.65888417",
"0.6545721",
"0.651954",
"0.64965034",
"0.6485928",
"0.6485458",
"0.6479828",
"0.64790857",
"0.6470168",
"0.6425493",
"0.642509",
"0.63886255",
"0.6383618",
"0.63030887",
"0.6256419",
"0.62492573",
"0.62113774",
"0.61954796",
"0.6117781",
"0.61153036",
"0.6109803",
"0.6051858",
"0.60272336",
"0.6018343",
"0.6006709",
"0.5983203",
"0.5946194",
"0.59427387",
"0.5939885",
"0.59197927",
"0.5908856",
"0.58957183",
"0.5895133",
"0.58871025",
"0.5857649",
"0.5851707",
"0.5848415",
"0.5799793",
"0.5792236",
"0.5788447",
"0.5763684",
"0.5737062",
"0.57274544",
"0.570049",
"0.5693686",
"0.5683686",
"0.56835556",
"0.5675429",
"0.56653476",
"0.5663273",
"0.5639017",
"0.5620873",
"0.5619911",
"0.55957586",
"0.5592271",
"0.55634654",
"0.5559843",
"0.5545479",
"0.5517704",
"0.55117184",
"0.5492441",
"0.548493",
"0.548493",
"0.5482945",
"0.54662126",
"0.5459136",
"0.54565656",
"0.5448498",
"0.5436762",
"0.5429464",
"0.54190844",
"0.5417534",
"0.5415783",
"0.54084086",
"0.53983635",
"0.5398055",
"0.5396082",
"0.53955257",
"0.5387435",
"0.5365867",
"0.5350899",
"0.5349605",
"0.53459924",
"0.5341324",
"0.5335285",
"0.533317",
"0.53317606",
"0.53315663",
"0.53315663",
"0.5324271",
"0.53133285",
"0.53026646",
"0.5292363",
"0.5286584",
"0.5279399"
] | 0.5729123 | 47 |
Register a default handler to receive hires messages | public void setOnHiResListener( OnHiResListener listener ) {
mHiResListener = listener;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Promise<Void> registerHandler(String address, Handler<? extends Message> handler);",
"@Override\n\tpublic void setHandler(String defaultHandler, String handlerName) {\n\n\t}",
"public void registerHandler(Object handler)\n {\n\n }",
"@Override\n\tpublic void RegisterHandler(HotSpotServerEventHandler handler) {\n\t\teventHandlers.add(handler);\n\t}",
"public void setDefaultHandler(PacketHandler handler) {\n hDefault=handler;\n }",
"@Override\n public void addHandlerListener(IHandlerListener handlerListener) {\n\n }",
"@Override\n\tpublic void addHandlerListener(IHandlerListener handlerListener) {\n\n\t}",
"protected void handlerAdded0(ChannelHandlerContext ctx) throws Exception {}",
"public void registerHandler(ReceivedDataHandler handler)\n {\n this.handler = handler;\n }",
"public void setDefaultHandler(ElementHandler handler) {\r\n defaultHandler = handler;\r\n }",
"public PacketHandler getDefaultHandler() {\n return hDefault;\n }",
"private void startHandler() {\n mHandler = new MessageHandler();\n }",
"@Override\r\n\tpublic void configHandler(Handlers me) {\n\r\n\t}",
"public void addHandler(EventHandler handler);",
"public void register() {\r\n\t\tHandlerSet hs = HandlerSet.getHandlerSet();\r\n\t\ths.addHandler(this);\r\n\t}",
"@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}",
"public void defaultHandle( Resolver resolver ){\n sendResponse( resolver );\n }",
"Map<String, Handler> handlers();",
"@Override\n public void handlerAdded(ChannelHandlerContext ctx) throws Exception {\n super.handlerAdded(ctx);\n logger.info(\"Added handler: \" + ctx.channel().remoteAddress());\n }",
"public interface HandlerRegistration {\n\n void removeHandler();\n\n}",
"public static void registerDefaultHandlers() {\n\t\tregisterDynamicLightHandler(EntityType.BLAZE, DynamicLightHandler.makeHandler(blaze -> 10, blaze -> true));\n\t\tregisterDynamicLightHandler(EntityType.CREEPER, DynamicLightHandler.makeCreeperEntityHandler(null));\n\t\tregisterDynamicLightHandler(EntityType.ENDERMAN, entity -> {\n\t\t\tint luminance = 0;\n\t\t\tif (entity.getCarriedBlock() != null)\n\t\t\t\tluminance = entity.getCarriedBlock().getLuminance();\n\t\t\treturn luminance;\n\t\t});\n\t\tregisterDynamicLightHandler(EntityType.ITEM,\n\t\t\t\tentity -> LambDynLights.getLuminanceFromItemStack(entity.getStack(), entity.isSubmergedInWater()));\n\t\tregisterDynamicLightHandler(EntityType.ITEM_FRAME, entity -> {\n\t\t\tvar world = entity.getWorld();\n\t\t\treturn LambDynLights.getLuminanceFromItemStack(entity.getHeldItemStack(), !world.getFluidState(entity.getBlockPos()).isEmpty());\n\t\t});\n\t\tregisterDynamicLightHandler(EntityType.GLOW_ITEM_FRAME, entity -> {\n\t\t\tvar world = entity.getWorld();\n\t\t\treturn Math.max(14, LambDynLights.getLuminanceFromItemStack(entity.getHeldItemStack(),\n\t\t\t\t\t!world.getFluidState(entity.getBlockPos()).isEmpty()));\n\t\t});\n\t\tregisterDynamicLightHandler(EntityType.MAGMA_CUBE, entity -> (entity.stretch > 0.6) ? 11 : 8);\n\t\tregisterDynamicLightHandler(EntityType.SPECTRAL_ARROW, entity -> 8);\n\t\tregisterDynamicLightHandler(EntityType.GLOW_SQUID,\n\t\t\t\tentity -> (int) MathHelper.clampedLerp(0.f, 12.f, 1.f - entity.getDarkTicksRemaining() / 10.f)\n\t\t);\n\t}",
"public void addDefaultHandlers(File directory) {\n addDefaultHandlers(directory.getPath());\n }",
"@Override\n\tpublic void handlerAdded(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"handlerAdded\");\n\t\tsuper.handlerAdded(ctx);\n\t}",
"public void setDefaultHandler( ExceptionHandler eh )\n {\n dh = eh;\n }",
"public void addDefaultHandlers(String directoryPath) {\n try {\n synchronized (mImplMonitor) {\n checkServiceLocked();\n mImpl.addDefaultHandlers(directoryPath);\n }\n } catch (RemoteException e) {\n throw new EmbeddedTestServerFailure(\n \"Failed to add default handlers and start serving files from \" + directoryPath\n + \": \" + e.toString());\n }\n }",
"public interface INetworkHandlerManager {\n public void registerHandler (String handlerName, INetworkHandler handler);\n public INetworkHandler getHandler (INetworkMessage message);\n}",
"CreateHandler()\n {\n }",
"@Override\n public void addHeartbeatHandler() {\n if (channel == null || !channel.isActive() || channel.pipeline() == null) {\n return;\n }\n\n ChannelPipeline pipeline = channel.pipeline();\n // re-attach the IdleStateHandler\n if (pipeline.get(IdleStateHandler.class.getSimpleName()) != null) {\n pipeline.remove(IdleStateHandler.class.getSimpleName());\n }\n // losing Heartbeat packet in succession for 3 times representing the connection is failed\n pipeline.addFirst(IdleStateHandler.class.getSimpleName(),\n new IdleStateHandler(getHeartbeatInterval() * 3, getHeartbeatInterval(), 0, TimeUnit.MILLISECONDS));\n\n // re-attach the HeartbeatHandler\n if (pipeline.get(HeartbeatHandler.class.getSimpleName()) != null) {\n pipeline.remove(HeartbeatHandler.class.getSimpleName());\n }\n if (pipeline.get(TCPMsgHandler.class.getSimpleName()) != null) {\n pipeline.addBefore(TCPMsgHandler.class.getSimpleName(), HeartbeatHandler.class.getSimpleName(),\n new HeartbeatHandler(this));\n }\n }",
"void registerEventbusHandlers();",
"public abstract void msgHandler(Message msg);",
"@Override\n\tpublic void setHandler(Incoming handler) {\n\t\tthis.handler = handler;\n\t}",
"public void setHandler(String handler) {\n this.Handler = handler;\n }",
"public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }",
"public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }",
"@Override\r\n\tpublic void attachHandlers() {\n\r\n\t}",
"public interface MessageHandler {\n default void handle(Message message, BlackjackPlayer player) {\n throw new RuntimeException(\"Unhandled Message: \" + message);\n }\n default void handle(UnparseableMessage message) {\n System.err.println(\"Could not parse message: \" + message);\n }\n void handle(Ping message);\n void handle(Pong message, BlackjackPlayer player);\n void handle(Name message);\n void handle(SetDisplayName message, BlackjackPlayer player);\n void handle(Start message, BlackjackPlayer player);\n void handle(ChoiceQuery message);\n void handle(Take message, BlackjackPlayer player);\n void handle(Pass message, BlackjackPlayer player);\n void handle(Play message, BlackjackPlayer player);\n void handle(GameOver message);\n void handle(Info message);\n}",
"public Handler getHandler();",
"private void addHandlers()\n {\n handlers.add(new FileHTTPRequestHandler());\n }",
"@Override\n public void addDefaultRoutes() {\n super.addDefaultRoutes();\n addRoute( \"/user\", UserResponder.class );\n addRoute( \"/user/:id\", UserResponder.class );\n addRoute( \"/user/help\", GeneralResponder.class );\n addRoute( \"/general/:param1/:param2\", GeneralResponder.class );\n addRoute( \"/photos/:customer_id/:photo_id\", null );\n addRoute( \"/test\", String.class );\n addRoute( \"/interface\", Responder.class ); // this will cause an error\n addRoute( \"/toBeDeleted\", String.class );\n removeRoute( \"/toBeDeleted\" );\n addRoute( \"/stream\", StreamUrl.class );\n addRoute( \"/browse/(.)+\", StaticPageTestResponder.class, new File( \"src/test/resources\" ).getAbsoluteFile() );\n }",
"default Handler asHandler() {\n return new HandlerBuffer(this);\n }",
"IHandler next();",
"abstract public TelnetServerHandler createHandler(TelnetSocket s);",
"@Override\n public List<MHandler> getHandlers()\n {\n return null;\n }",
"private void callHandlerAddedForAllHandlers() {\n /*\n r2 = this;\n monitor-enter(r2)\n r0 = 1\n r2.registered = r0 // Catch:{ all -> 0x0015 }\n io.netty.channel.DefaultChannelPipeline$PendingHandlerCallback r0 = r2.pendingHandlerCallbackHead // Catch:{ all -> 0x0015 }\n r1 = 0\n r2.pendingHandlerCallbackHead = r1 // Catch:{ all -> 0x0015 }\n monitor-exit(r2) // Catch:{ all -> 0x0015 }\n L_0x000a:\n if (r0 == 0) goto L_0x0012\n r0.execute()\n io.netty.channel.DefaultChannelPipeline$PendingHandlerCallback r0 = r0.next\n goto L_0x000a\n L_0x0012:\n return\n L_0x0013:\n monitor-exit(r2) // Catch:{ all -> 0x0015 }\n throw r0\n L_0x0015:\n r0 = move-exception\n goto L_0x0013\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p043io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers():void\");\n }",
"private void initSocketWithHandlers() {\n\t\tfor(String key: eventHandlerMap.keySet()) {\n\t\t\tmSocket.on(key, eventHandlerMap.get(key));\n\t\t}\n\t}",
"private void initHandlers(){\n\t\thandlers.put((byte) 0x02, new Cmd02());\n\t\t//handlers.put((byte) 0x03, new Cmd03());\n\t\thandlers.put((byte) 0x04, new Cmd04());\n\t\thandlers.put((byte) 0x05, new Cmd05());\n\t\thandlers.put((byte) 0x06, new Cmd06());\n\t\thandlers.put((byte) 0x07, new Cmd07());\n\t\thandlers.put((byte) 0x08, new Cmd08());\n\t\thandlers.put((byte) 0x80, new Cmd80());\n\t\thandlers.put((byte) 0x81, new Cmd81());\n\t\thandlers.put((byte) 0x82, new Cmd82());\n\t\thandlers.put((byte) 0x83, new Cmd83());\n\t\thandlers.put((byte) 0x84, new Cmd84());\n\t\thandlers.put((byte) 0x85, new Cmd85());\n\t\thandlers.put((byte) 0x86, new Cmd86());\n\t}",
"@Override\n\tpublic void accept(MessageHandlerVisitor visitor) {\n\n\t\tvisitor.visit(this, null, null, null);\n\t}",
"public void setHandler(ContentHandler handler) { }",
"public Hello(Handler handler){\n this.handler = handler;\n }",
"public static void regist(String name, AbstractBridgeHandler handler) {\n if (handler != null) handlers.put(name, handler);\n }",
"Promise<Void> unregisterHandler(String address, Handler<? extends Message> handler);",
"@Test\n public void testAddHandler() {\n System.out.println(\"addHandler\");\n String sa = \"testhandler\";\n SpineEbXmlHandler h = (EbXmlMessage m) -> {\n };\n instance.addHandler(sa, h);\n }",
"public Class<?> getHandler();",
"@Override\n\tpublic void channelRegistered(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"channelRegistered\");\n\t\tsuper.channelRegistered(ctx);\n\t}",
"private void addDefaultHandlers (AccTreeNode aNode, XAccessibleContext xContext)\n {\n if (false)\n {\n // Slow but complete version: try each handler type separately.\n aNode.addHandler (maContextHandler.createHandler (xContext));\n aNode.addHandler (maTextHandler.createHandler (xContext));\n aNode.addHandler (maEditableTextHandler.createHandler (xContext));\n aNode.addHandler (maComponentHandler.createHandler (xContext));\n aNode.addHandler (maExtendedComponentHandler.createHandler (xContext));\n aNode.addHandler (maActionHandler.createHandler (xContext));\n aNode.addHandler (maImageHandler.createHandler (xContext));\n aNode.addHandler (maTableHandler.createHandler (xContext));\n aNode.addHandler (maCellHandler.createHandler (xContext));\n aNode.addHandler (maHypertextHandler.createHandler (xContext));\n aNode.addHandler (maHyperlinkHandler.createHandler (xContext));\n aNode.addHandler (maSelectionHandler.createHandler (xContext));\n aNode.addHandler (maRelationHandler.createHandler (xContext));\n aNode.addHandler (maUNOHandler.createHandler (xContext));\n aNode.addHandler (maTreeHandler.createHandler (xContext));\n }\n else\n {\n // Exploit dependencies between interfaces.\n NodeHandler aHandler;\n aNode.addHandler (maContextHandler.createHandler (xContext));\n\n aHandler = maTextHandler.createHandler (xContext);\n if (aHandler != null)\n {\n aNode.addHandler (aHandler);\n aNode.addHandler (maEditableTextHandler.createHandler (xContext));\n aNode.addHandler (maHypertextHandler.createHandler (xContext));\n aNode.addHandler (maHyperlinkHandler.createHandler (xContext));\n }\n aHandler = maComponentHandler.createHandler (xContext);\n if (aHandler != null)\n {\n aNode.addHandler (aHandler);\n aNode.addHandler (maExtendedComponentHandler.createHandler (xContext));\n }\n aNode.addHandler (maActionHandler.createHandler (xContext));\n aNode.addHandler (maImageHandler.createHandler (xContext));\n aNode.addHandler (maTableHandler.createHandler (xContext));\n aNode.addHandler (maRelationHandler.createHandler (xContext));\n aNode.addHandler (maCellHandler.createHandler (xContext));\n aNode.addHandler (maSelectionHandler.createHandler (xContext));\n aNode.addHandler (maUNOHandler.createHandler (xContext));\n aNode.addHandler (maTreeHandler.createHandler (xContext));\n }\n }",
"public void addNotificationHandler(String serviceName, NotificationHandler handler);",
"@Override\n\tpublic void handlerAdded(ChannelHandlerContext ctx) throws Exception {\n\t\tSystem.out.println(\"new user:\" + ctx.name());\n\t}",
"public void addMessageHandler(MessageHandler handler) {\r\n\t\tif (handler == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor (MessageHandler h : handlers) {\r\n\t\t\tif (h == handler) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\thandlers.add(handler);\r\n\t}",
"public void handleMessage(Message message);",
"@Override\n public void handleMessage(Message message) {}",
"@Test\n public void TestHandleEmptyHandler() {\n final HandlerExecutor handlerExecutor = getExecutor();\n\n final HandlerResult result = handlerExecutor.handle(new VoiceRequest(\"123456789\", 99L, \"whatever\", \"\"));\n assertEquals(result.handlerType, HandlerType.NONE);\n }",
"@Override\n\tpublic void ClearHandler() {\n\t\teventHandlers.clear();\n\t\t\n\t}",
"@Override\n\tpublic void drainHandler(Handler<Void> handler) {\n\t\tSystem.out.println(\"-TARGETTEST set drainHandler\");\n\t}",
"protected abstract void registerCommands(CommandHandler handler);",
"protected abstract void runHandler();",
"protected LinkedHashMap<String, ChannelHandler> addTransformHandler() {\n return null;\n }",
"void addHandler( final String route, final Class<?> handler, final Object... initParams ) {\n Object[] params;\n if ( initParams != null ) {\n params = new Object[initParams.length + 2];\n params[0] = this;\n params[1] = new Config();\n for ( int x = 0; x < initParams.length; x++ ) {\n params[x + 2] = initParams[x];\n }\n } else {\n params = new Object[] { this, new Config() };\n }\n\n server.addRoute( route, 100, handler, params );\n }",
"@Override\n\tpublic void registerStompEndpoints(StompEndpointRegistry registry) {\n\t\tregistry.addEndpoint(\"/messages\");\n\n\t\t// Register additional fallback handling using sock-js\n\t\t// (http://myserver.com/ws/rest/messages)\n\t\tregistry.addEndpoint(\"/messages\").withSockJS();\n\n\t}",
"@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }",
"public void handle(int ID, Object message){}",
"public static void register()\r\n {\r\n // This handles ridden input controls, auto-recalling of pokemobs, and\r\n // auto-selection of moves.\r\n MinecraftForge.EVENT_BUS.addListener(EventsHandlerClient::onPlayerTick);\r\n\r\n // This one handles allowing the player to interact with mobs which are\r\n // larger than the vanilla hitboxes.\r\n MinecraftForge.EVENT_BUS.addListener(EventPriority.LOWEST, EventsHandlerClient::onMouseInput);\r\n\r\n // This one handles scrolling the message display while in chat.\r\n MinecraftForge.EVENT_BUS.addListener(EventPriority.LOWEST, EventsHandlerClient::onMouseScroll);\r\n\r\n // Here we handle the various keybindings for the mod\r\n MinecraftForge.EVENT_BUS.addListener(EventsHandlerClient::onKeyInput);\r\n\r\n // This renders the pokemob's icons over the pokecubes when alt is held\r\n // in an inventory.\r\n MinecraftForge.EVENT_BUS.addListener(EventPriority.LOWEST, EventsHandlerClient::onRenderGUIScreenPre);\r\n // And this does it for the hotbar.\r\n MinecraftForge.EVENT_BUS.addListener(EventPriority.LOWEST, EventsHandlerClient::onRenderHotbar);\r\n\r\n // Now for some additional client side handlers\r\n\r\n // Register the event for drawing the move messages\r\n MinecraftForge.EVENT_BUS.addListener(EventPriority.LOWEST, false, GuiInfoMessages::draw);\r\n // Register the handler for drawing things like evolution, etc\r\n MinecraftForge.EVENT_BUS.addListener(RenderMobOverlays::renderSpecial);\r\n // Register the handler for drawing selected box around targeted\r\n // entities for throwing cubes at\r\n MinecraftForge.EVENT_BUS.addListener(EventsHandlerClient::renderBounds);\r\n // Used to dismount shoulder mobs\r\n MinecraftForge.EVENT_BUS.addListener(EventsHandlerClient::onLeftClickEmpty);\r\n\r\n // Initialise this gui\r\n GuiDisplayPokecubeInfo.instance();\r\n MoveAnimationHelper.Instance();\r\n }",
"public int getHandler() {\n\t\treturn 1;\n\t}",
"public GenericHandler() {\n\n }",
"Handler<Q, R> handler();",
"public final void handle() {\n runHandler();\n }",
"private void createHandler()\r\n {\r\n serverHandler = new Handler(Looper.getMainLooper())\r\n {\r\n @Override\r\n public void handleMessage(Message inputMessage)\r\n {\r\n int percentage;\r\n switch (inputMessage.what)\r\n {\r\n case LISTENING:\r\n waiting.setVisibility(View.VISIBLE);\r\n statusText.setText(\"Oczekiwanie na połączenie\");\r\n break;\r\n case CONNECTED:\r\n waiting.setVisibility(View.INVISIBLE);\r\n progress.setVisibility(View.VISIBLE);\r\n statusText.setText(\"Przesyłanie pliku\");\r\n break;\r\n case PROGRESS:\r\n percentage = (int) inputMessage.obj;\r\n progress.setProgress(percentage);\r\n break;\r\n case DONE:\r\n messageDialog(\"Przesyłanie zakończone!\", DIALOG_MODE_DONE);\r\n break;\r\n case LISTENING_FAILED:\r\n if(acceptMessages)\r\n messageDialog(\"Nie udało się utworzyć gniazda\", DIALOG_MODE_ERROR);\r\n break;\r\n case SOCKET_ACCEPT_FAILED:\r\n if(acceptMessages)\r\n messageDialog(\"Wystąpił błąd połączenia!\\nPowrót\", DIALOG_MODE_ERROR);\r\n break;\r\n case EXTERNAL_STORAGE_ACCESS_FAILED:\r\n messageDialog(\"Brak dostępu do pamięci masowej!\\nPowrót\", DIALOG_MODE_ERROR);\r\n break;\r\n case FILE_TRANSFER_FAILED:\r\n if(acceptMessages)\r\n messageDialog(\"Wystąpił błąd podczas przesyłania danych!\\nPowrót\",\r\n DIALOG_MODE_ERROR);\r\n break;\r\n default:\r\n super.handleMessage(inputMessage);\r\n }\r\n }\r\n };\r\n }",
"protected TreeIconHandler createDefaultIconHandler()\n {\n return DEF_ICON_HANDLER;\n }",
"protected void handleMessage(Message msg) {}",
"@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }",
"@Override\n\tpublic void requestHandle(IPlayer player, IMessage message) {\n\t\t\n\t}",
"public MessageHandler() {\n }",
"public void bindHandlers() {\n\n _eventBus.addHandler(NewIncidentEvent.TYPE, new NewIncidentEventHandler() {\n\n @Override\n public void onNewIncidentEventHandler(NewIncidentEvent event) {\n\n newIncident(event.getIncident());\n //addTodo(event.getTodoTitle());\n }\n });\n\n _eventBus.addHandler(AddressSearchEvent.TYPE, new AddressSearchEventHandler() {\n\n @Override\n public void onAddressSearchEventHandler(AddressSearchEvent event) {\n requestAddress(event.getTypedAddress());\n //addTodo(event.getTodoTitle());\n }\n });\n\n _eventBus.addHandler(RepairCallEvent.TYPE, new RepairCallEventHandler() {\n\n @Override\n public void onRepairCallEventHandler(RepairCallEvent event) {\n\n updateIncident(event.getIncident());\n //addTodo(event.getTodoTitle());\n }\n });\n }",
"@Override\n public void registerClientCommands(CommandHandler handler) {\n new InGameCommands(handler);\n }",
"private void AddHandlersProcessing()\n {\n \n for(MessageHandler handler : actorData.MessageHandlers())\n {\n Location handlerProc_h = new Location(String.format(\"handlerProc_%s\", actorData.MessageHandlerName(handler)));\n handlerProc_h.AddFlow(new Flow(actorData.GetUrgentFlow()));\n handlerProc_h.AddInvarient(actorData.GetUrgentInvarient());\n comp.AddTransition(new HybridTransitionBuilder().\n SetOrigin(idleLoc).\n SetDestination(handlerProc_h).\n SetSynclabel(actorData.ExecuteLabelFor(handler)).\n // AddAssignment(actorData.SetBusyAssignment()).\n Build());\n \n CreateHandler(handler, comp, handlerProc_h);\n }\n }",
"public interface DefaultEntityHandler extends EntityHandler {\n\n default void handle(Header header) throws Exception {\n }\n\n default void handle(Bound bound) throws Exception {\n }\n\n default void handle(Node node) throws Exception {\n }\n\n default void handle(Way way) throws Exception {\n }\n\n default void handle(Relation relation) throws Exception {\n }\n\n}",
"void provideSAXEvents(ContentHandler handler) throws SAXException;",
"public void addServer(AbstractServer server) {\n // Iterate through all types of CorfuMsgType, registering the handler\n server.getHandler().getHandledTypes()\n .forEach(x -> {\n handlerMap.put(x, server);\n log.trace(\"Registered {} to handle messages of type {}\", server, x);\n });\n }",
"public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {\n }",
"@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}",
"public void registerTrapHandler(TrapHandler th) {\r\n\t\tm_TH = th;\r\n\t}",
"public interface Handler {\n void handleProductCreated(CommerceProtos.Message message, CommerceProtos.ProductCreated e);\n void handleSiteCreated(CommerceProtos.Message message, CommerceProtos.SiteCreated e);\n void handleCartCreated(CommerceProtos.Message message, CommerceProtos.CartCreated e);\n void handleCustomerCreated(CommerceProtos.Message message, CommerceProtos.CustomerCreated e);\n\t\tvoid handleProductAddToCart(CommerceProtos.Message message, CommerceProtos.ProductAddToCart e);\n\t\tvoid handleCartSuccessfulCheckout(CommerceProtos.Message message, CommerceProtos.CartSuccessfulCheckout e);\n }",
"public interface Handler {\n void handleRequest(String s);\n}",
"public void registerChatHandler(IChatHandler handler)\n\t{\n\t\tint[] ids = handler.getChatTypeList();\n\t\tfor (int id : ids)\n\t\t{\n\t\t\tif (Config.DEBUG)\n\t\t\t{\n\t\t\t\tLog.fine(\"Adding handler for chat type \" + id);\n\t\t\t}\n\t\t\t_datatable.put(id, handler);\n\t\t}\n\t}",
"public static void registerCallbackHandler(com.sybase.persistence.CallbackHandler handler)\n {\n DELEGATE.registerCallbackHandler(handler);\n }",
"public void onMessage(Message arg0) {\n\r\n\t}",
"@Override\n public HandlerList getHandlers() {\n return handlers;\n }",
"@Override\n public HandlerList getHandlers() {\n return handlers;\n }",
"public abstract void emit(EventsHandler handler);",
"protected void addHandlersBeforeSockJSHandler(Router router) {\n }",
"void onNewMessage(String message);",
"public interface MessageHandler {\n void onMessage(final byte messageType, final int messageId, final byte[] buffer, final int startIndex, final int length);\n}"
] | [
"0.6897281",
"0.6820985",
"0.67045987",
"0.6673677",
"0.6626892",
"0.6616554",
"0.64111906",
"0.6303454",
"0.62664914",
"0.6218066",
"0.6187345",
"0.61796933",
"0.6104855",
"0.60812795",
"0.6080244",
"0.6057276",
"0.6053112",
"0.5990671",
"0.5937582",
"0.58882767",
"0.5887335",
"0.5885121",
"0.58747864",
"0.5860804",
"0.58267546",
"0.58191746",
"0.581325",
"0.5807729",
"0.5767072",
"0.5762441",
"0.5755837",
"0.5747571",
"0.5738105",
"0.5738105",
"0.57292694",
"0.5725845",
"0.5715324",
"0.571188",
"0.5689656",
"0.56680596",
"0.5628382",
"0.5625847",
"0.5609329",
"0.5571784",
"0.5568439",
"0.5562934",
"0.55583906",
"0.55444056",
"0.55265915",
"0.55219185",
"0.5494932",
"0.54928243",
"0.5491148",
"0.54825586",
"0.5466034",
"0.5451939",
"0.54442155",
"0.54380214",
"0.5429693",
"0.54152274",
"0.54093057",
"0.54037017",
"0.54020125",
"0.5397455",
"0.5396327",
"0.53904593",
"0.5389656",
"0.5387387",
"0.53759086",
"0.5375497",
"0.53741413",
"0.5363849",
"0.53589606",
"0.53474236",
"0.5345691",
"0.5337939",
"0.5333733",
"0.53232247",
"0.5323125",
"0.53227043",
"0.53220147",
"0.5321232",
"0.53194356",
"0.5309166",
"0.5291619",
"0.5286102",
"0.5261008",
"0.5248686",
"0.5236858",
"0.522814",
"0.5220611",
"0.5211872",
"0.52079654",
"0.52054447",
"0.52052313",
"0.51958495",
"0.51958495",
"0.5179195",
"0.5175075",
"0.51664287",
"0.51585555"
] | 0.0 | -1 |
This is the entry point of every feather tools. The main activity catches the tool onClick listener and notify the filtermanager. | public void activateEffect( final EffectEntry tag ) {
if ( !getEnabled() || !isClosed() || mBitmap == null ) return;
if ( mCurrentEffect != null ) throw new IllegalStateException( "There is already an active effect. Cannot activate new" );
if ( mEffectLoader == null ) mEffectLoader = (EffectLoaderService) getService( EffectLoaderService.class );
final AbstractEffectPanel effect = mEffectLoader.load( tag );
if ( effect != null ) {
mCurrentEffect = effect;
mCurrentEntry = tag;
setCurrentState( STATE.OPENING );
prepareEffectPanel( effect, tag );
Tracker.recordTag( mCurrentEntry.name.name().toLowerCase( Locale.US ) + ": opened" );
mContext.getBottomBar().setOnPanelOpenListener( new OnPanelOpenListener() {
@Override
public void onOpened() {
setCurrentState( STATE.OPENED );
mContext.getBottomBar().setOnPanelOpenListener( null );
}
@Override
public void onOpening() {
mCurrentEffect.onOpening();
}
} );
mContext.getBottomBar().open();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == R.id.center) {\n centerMapFile();\n } else\n // Activate the filter control\n if (item.getItemId() == R.id.filter) {\n if (mic != null && mic.getActivationListener() != null) {\n mic.getActivationListener().onClick(item.getActionView());\n }\n } else \n // Drawer part\n if (item.getItemId() == android.R.id.home) {\n\n if (mDrawerList != null && mDrawerLayout.isDrawerOpen(mDrawerList)) {\n mDrawerLayout.closeDrawer(mDrawerList);\n } else {\n if (mDrawerList != null) {\n mDrawerLayout.openDrawer(mDrawerList);\n }\n if (mLayerMenu != null) {\n mDrawerLayout.closeDrawer(mLayerMenu);\n }\n }\n // layer menu part\n } else if (item.getItemId() == R.id.layer_menu_action) {\n if (mLayerMenu != null && mDrawerLayout.isDrawerOpen(mLayerMenu)) {\n mDrawerLayout.closeDrawer(mLayerMenu);\n } else {\n if (mLayerMenu != null) {\n mDrawerLayout.openDrawer(mLayerMenu);\n }\n if (mDrawerList != null) {\n mDrawerLayout.closeDrawer(mDrawerList);\n }\n }\n } else if (item.getItemId() == R.id.settings) {\n Intent pref = new Intent(this, EditPreferences.class);\n startActivity(pref);\n } else if (item.getItemId() == R.id.infoview) {\n Intent info = new Intent(this, InfoView.class);\n startActivity(info);\n } else if (item.getItemId() == R.id.exitview) {\n confirmExit();\n }\n return super.onOptionsItemSelected(item);\n \n }",
"public void clickonFilter() {\n\t\t\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.miFilters) {\n Toast.makeText(this, \"Clicked!\", Toast.LENGTH_SHORT).show();\n // Launch a second activity (age form)\n\n Intent i = new Intent(this, SearchFiltersActivity.class);\n i.putExtra(\"filter\", imageFilter);\n startActivityForResult(i, FILTERS_INTENT_CODE);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private void setlistener() {\n\t\timg_home.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i = new Intent(ManageCustomersActivity.this,\n\t\t\t\t\t\tHome_Activity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}\n\n\t\t});\n\t\tbtn_mc_genrate_invoice.setOnClickListener(new View.OnClickListener() {\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"himurtuza\" + filter_array);\n\t\t\t\tif (filter_array != null) {\n\t\t\t\t\tif (filter_array.length() == 0) {\n\t\t\t\t\t\tToast.makeText(activity,\n\t\t\t\t\t\t\t\tR.string.str_no_data_found_as_search,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (cd.isConnectingToInternet()) {\n\t\t\t\t\t\t\tnew generate_invoice_manage_customer().execute();\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tR.string.No_Internet_Connection,\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(activity,\n\t\t\t\t\t\t\tR.string.str_no_data_found_as_search,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) \n {\n if (mDrawerToggle.onOptionsItemSelected(item)) \n {\n return true;\n }\n // Handle action buttons\n switch(item.getItemId()) \n {\n case R.id.action_websearch:\n // create intent to perform web search for this planet\n Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n // catch event that there's no activity to handle intent\n if (intent.resolveActivity(getPackageManager()) != null) \n {\n startActivity(intent);\n } \n else\n {\n Toast.makeText(this, R.string.app_not_available, Toast.LENGTH_LONG).show();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent filter = new Intent(context, Filter.class);\n\t\t\t\tstartActivity(filter);\n\t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n MyAlarmManager.setAlarm(this, 10 * 1000);\n Toast.makeText(this, \"10秒後にアラームをセット\", Toast.LENGTH_SHORT).show();\n return true;\n } else if (id == R.id.action_sample) {\n for (DrugData data : DrugData.getSampleData()) {\n DbManager.register(this, data);\n }\n Toast.makeText(this, \"サンプルデータ登録\", Toast.LENGTH_SHORT).show();\n return true;\n } else if (id == R.id.action_beacon) {\n //Flicを繋げるとこ\n FlicManager.setAppCredentials(\"[email protected]\", \"Katsu992test\", \"testyou\");\n try {\n FlicManager.getInstance(this, new FlicManagerInitializedCallback() {\n @Override\n public void onInitialized(FlicManager manager) {\n manager.initiateGrabButton(MainActivity.this);\n }\n });\n } catch (FlicAppNotInstalledException err) {\n Toast.makeText(this, \"Flic App is not installed\", Toast.LENGTH_SHORT).show();\n }\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\t\n\tflightSelectImageButton.setOnClickListener(this);\n\t fligthtClick.setOnClickListener(this);\n\t\t\n\t}",
"@Override\n\t\t\t// On click function\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent(view.getContext(),\n\t\t\t\t\t\tFilterActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tfinish();\n\t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n //handle presses on the action bar items\n switch (item.getItemId()) {\n // if the item in tool bar is selected\n case R.id.activity_filter:\n // check which option is selected\n checkWhichIsChosen();\n // if there are more than one options are selected, then braek\n if(flag > 1){\n Toast.makeText(this,\"Warning: More than one option is chosen\" ,Toast.LENGTH_LONG).show();\n setErrorMessages();\n break;\n }\n // if there is only one option is selected, then save the mood event list in the file\n if(flag == 1){\n SaveFile saveFile = new SaveFile();\n saveFile.saveArrayList(getApplicationContext(), moodListAfterFilter, FILENAME);\n // save the options which the user chosen\n saveOption();\n }\n // if no option is selected, then delete the file.\n if (flag == 0){\n // save the option\n saveOption();\n deleteFile(\"filter.sav\");\n }\n // jump to main activity\n setResult(RESULT_OK);\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"private void startFilterCriteria() {\n\n\t\tLog.i(TAG, \"startFilterCriteria()\");\n\n\t\tFindUtilsImpl utils = new FindUtilsImpl();\n\t\tSet<String> tSet = utils.getTypeSet((ArrayList<BELEvent>) eventsListFind);\n\t\tArrayList<String> tList = new ArrayList<String>(cleanSet(tSet));\n\n\t\tString str = \"start FilterCriteria.class\";\n\t\tLog.i(TAG, \"Search Activity: \" +str);\n\n\t\t\tIntent intent = new Intent(context, FilterCriteria.class);\n\t\t\tintent.putStringArrayListExtra(\"TypesKey\", tList);\n\t\t\t//TODO capture activity not found exception\n\t\t\t//\t((Activity) context).startActivityForResult(intent,Constants.FIND_REQ);\n\t\t\tstartActivityForResult(intent,Constants.FIND_REQ);\n\n\t\t\tstr = \"startActivity(intent,Constants.FIND_REQ)\";\n\t\t\t//\tstr = \"startActivityForResult(intent,Constants.FIND_REQ)\";\n\t\t\tLog.e(\"Search Dlg: \", str);\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (myDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle action buttons\n switch(item.getItemId()) {\n case R.string.action_websearch:\n // create intent to perform web search for this planet\n Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n intent.putExtra(SearchManager.QUERY, getSupportActionBar().getTitle());\n // catch event that there's no activity to handle intent\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n } else {\n Toast.makeText(this, R.string.app_not_available, Toast.LENGTH_LONG).show();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle action buttons\n switch (item.getItemId()) {\n case R.id.action_websearch:\n // create intent to perform web search for this planet\n Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n // catch event that there's no activity to handle intent\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n } else {\n Toast.makeText(this, R.string.app_not_available, Toast.LENGTH_LONG).show();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"private void initProdAct(){\n SearchProduce = (Button)findViewById(R.id.SearchProduce);\n getSupportActionBar().setTitle(\"NutraLink\");\n SearchProduce.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v) {\n\n Intent toy = new Intent(Homescreen.this, FoodSearch.class);\n startActivity(toy);\n }\n });\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (getNavigationActivity().isDrawerVisible()) return super.onOptionsItemSelected(item);\n\n int id = item.getItemId();\n\n if (id == R.id.action_filter) {\n Intent intent = new Intent(getActivity(), FilterGlobalPostActivity.class);\n intent.putExtra(FilterGlobalPostActivity.POST_METHODS_KEY, postLoaderMethodList);\n startActivityForResult(intent, FILTER_REQUEST);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"void addFilter(IntentFilter filter);",
"@Override\n\tpublic void filterClick() {\n\t\t\n\t}",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n mainActivity();\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem i) {\n int id = i.getItemId();\n\n switch (i.getItemId()) {\n\n// case R.id.action_settings:\n// Intent intent = new Intent(this, HttpMainActivity.class);\n// startActivity(intent);\n// break;\n\n case R.id.menu_maintain_synchronicity:\n Intent intent4 = new Intent(HelpActivity.this, SynchListActivity.class);\n startActivityForResult(intent4, 4);\n break;\n\n case R.id.menu_maintain_events:\n maintainEvents();\n break;\n\n case R.id.menu_match_events:\n Intent intent6 = new Intent(HelpActivity.this, MatchKeywordsActivity.class);\n startActivityForResult(intent6, 6);\n break;\n\n case R.id.menu_import:\n Intent intent7 = new Intent(HelpActivity.this, DownloadJSON.class);\n Log.i(\"dolphinp\",\"intent7\");\n startActivity(intent7);\n break;\n// )\n// if (isOnline) {\n// requestData(\"http://10.0.0.2/feeds/synchItems.json\");\n// } else {\n// Toast.makeText(this,\"no network\",Toast.LENGTH_LONG).show();\n// }\n// break;\n\n default:\n break;\n }\n\n return super.onOptionsItemSelected(i);\n }",
"void start(Intent intent, IntentFilter filter, IIntentCallback callback, IEclipseContext context);",
"@Override\n\tpublic void filterClick() throws Exception {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent light = new Intent(MainActivity.this,Light.class);\n\t\t\t\tstartActivity(light);\n\t\t\t}",
"@Override\n public void onIconClick(View icon, float iconXPose, float iconYPose) {\n Intent intent = new Intent(context, MainActivity.class);\n intent.putExtra(Constants.FEED_ME, true);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n context.startActivity(intent);\n mMagnet.destroy();\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id == R.id.action_filter) {\n showFilterDialog();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n ActionBar bar1 = getSupportActionBar();\n\n bar1.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.white)));\n bar1.setTitle(Html.fromHtml(\"<font color='#7d2709'>Favorite Foods</font>\"));\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n setContentView(R.layout.activity_favorite_food);\n\n //Find the views\n changeViewSwitch = (Switch) findViewById(R.id.switchLayouts);\n //Set OnClick listener for the switch\n changeViewSwitch.setOnClickListener(this);\n\n currentView = (TextView) findViewById(R.id.switchViews);\n //Set the text of the switch\n currentView.setText(R.string.listView);\n\n filterFood = (ImageButton) (findViewById(R.id.orderListFood));\n\n this.recyclerView = (RecyclerView) findViewById(R.id.favFoodRecyclerView);\n recyclerView.setHasFixedSize(true);\n this.layoutManager = new LinearLayoutManager(this);\n\n foodModelList = new ArrayList<>();\n\n this.adapter = new ApiFoodAdapter(foodModelList, this);\n\n this.recyclerView.setAdapter(adapter);\n this.recyclerView.setLayoutManager(layoutManager);\n\n // starts the intent and sends the key to the food page.\n// final Intent intentToFood = new Intent(this, .class);\n\n //Set on click listener of the search bar\n findViewById(R.id.btnSearchFood).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n new SimpleSearchDialogCompat(FavoriteFood.this, \"Search...\", \"Search for food...\", null,\n initData(), new SearchResultListener<Searchable>() {\n @Override\n public void onSelected(BaseSearchDialogCompat baseSearchDialogCompat, Searchable searchable, int i) {\n Toast.makeText(FavoriteFood.this, \"\" + searchable.getTitle(), Toast.LENGTH_SHORT).show();\n /*\n ApiFoodAdapter adapter = (ApiFoodAdapter) recyclerView.getAdapter();\n List<FoodModel> list = adapter.getList();\n int position = 0;\n for(int j = 0; j<list.size();i++)\n {\n if(list.get(j).getName().equals(searchable.getTitle()))\n position = j;\n break;\n }\n */\n recyclerView.smoothScrollToPosition(i);\n\n baseSearchDialogCompat.dismiss();\n }\n }).show();\n }\n });\n\n runAsyncTask();\n sortArrayList();\n\n// ItemTouchHelper touchHelper = new ItemTouchHelper(new ItemTouchHelper.SimpleCallback(0,ItemTouchHelper.LEFT) {\n// @Override\n// public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder viewHolder1) {\n// return false;\n// }\n//\n// @Override\n// public void onSwiped(RecyclerView.ViewHolder target, int i) {\n// int position = target.getAdapterPosition();\n// foods.remove(position);\n// adapter.notifyItemRemoved(position);\n// adapter.notifyItemRangeChanged(position, foods.size());\n// }\n// });\n// touchHelper.attachToRecyclerView(recyclerView);\n }",
"public static interface OnToolListener {\n\n\t\t/**\n\t\t * On tool completed.\n\t\t */\n\t\tvoid onToolCompleted();\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(com.actionbarsherlock.view.MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Handle action buttons\n\t\tswitch (item.getItemId()) {\n\t\t// this is not a desirable approach!\n\t\tcase android.R.id.home:\n\t\t\t// Toast.makeText(this, \"Need to be implemented\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t/*\n\t\t\t * android.support.v4.app.FragmentTransaction ft =\n\t\t\t * getSupportFragmentManager().beginTransaction();\n\t\t\t * ft.replace(R.id.container, fmt); ft.commit();\n\t\t\t */\n\n\t\t\tbreak;\n\t\tcase R.id.action_websearch:\n\t\t\t// // create intent to perform web search for this planet\n\t\t\t// Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n\t\t\t// intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n\t\t\t// // catch event that there's no activity to handle intent\n\t\t\t// if (intent.resolveActivity(getPackageManager()) != null) {\n\t\t\t// startActivity(intent);\n\t\t\t// } else {\n\t\t\t// Toast.makeText(this, R.string.app_not_available,\n\t\t\t// Toast.LENGTH_LONG).show();\n\t\t\t// }\n\n\t\t\t// item.expandActionView();\n\t\t\treturn false;\n\t\tcase R.id.menu_exit:\n\t\t\tthis.exitApplication();\n\t\t\tbreak;\n\t\tcase R.id.action_share:\n\n\t\t\t// String message = \"Text I wan't to share.\";\n\t\t\t// Intent share = new Intent(Intent.ACTION_SEND);\n\t\t\t// share.setType(\"text/plain\");\n\t\t\t// share.putExtra(Intent.EXTRA_TEXT, message);\n\t\t\t// startActivity(Intent.createChooser(share,\n\t\t\t// \"Title of the dialog the system will open\"));\n\n\t\t\tbreak;\n\t\tcase R.id.menu_settings2:\n\t\t\tIntent intent3 = new Intent(this, SettingsPreferences.class);\n\t\t\tstartActivity(intent3);\n\t\t\tbreak;\n\t\tcase R.id.set_date:\n\n\t\t\tfinal CharSequence[] items;\n\t\t\titems = getResources().getTextArray(R.array.dates_for_police);\n\n\t\t\tAlertDialog.Builder builder = Global.giveMeDialog(this, \"Choose a month for police data\");\n\n\t\t\tbuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tint i = 0;\n\t\t\tfor (; i < items.length; i++) {\n\t\t\t\tif (items[i].equals(Global.POLICE_DATA_REQUEST_MONTH))\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tbuilder.setSingleChoiceItems(items, i, new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tGlobal.setPOLICE_DATA_REQUEST_MONTH(items[which].toString());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tbuilder.show();\n\n\t\t\tbreak;\n\t\tcase R.id.register_dialgo_action_bar:\n\t\t\tif (!Global.isRegistered(this)) {\n\t\t\t\tif (regDialog == null) {\n\t\t\t\t\tregDialog = new RegDialogFragment();\n\n\t\t\t\t\tregDialog.show(getSupportFragmentManager(), \"should be changed here\");\n\t\t\t\t} else {\n\t\t\t\t\tregDialog.show(getSupportFragmentManager(), \"should be changed here\");\n\t\t\t\t\t// Toast.makeText(this, DEBUG + \" ID Yes\",\n\t\t\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\titem.setVisible(false);\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.email_developer:\n\t\t\tIntent intent = new Intent(Intent.ACTION_SEND);\n\t\t\tintent.setType(\"message/rfc822\");\n\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, new String[] { \"[email protected]\" });\n\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, \"[DESURBS] - YOURSafe\");\n\t\t\tintent.putExtra(Intent.EXTRA_TEXT, \"Hi, Yang \\n\\n\");\n\t\t\ttry {\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Send mail...\"));\n\t\t\t} catch (android.content.ActivityNotFoundException ex) {\n\t\t\t\tToast.makeText(this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.survey_developer:\n\n\t\t\tString url = \"https://docs.google.com/forms/d/1HgHhfY-Xgt53xqMPCZC_Q_rL8AKUhNi9LiPXyhKkPq4/viewform\";\n\t\t\tintent = new Intent(Intent.ACTION_VIEW);\n\t\t\tintent.setData(Uri.parse(url));\n\t\t\tstartActivity(intent);\n\n\t\t\tbreak;\n\n\t\tcase R.id.menu_about:\n\t\t\tToast.makeText(this, \"This is Version \" + this.getString(R.string.version_name), Toast.LENGTH_SHORT).show();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\n\t}",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(FxService.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(FxService.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main2, menu);\n\n SearchManager searchManager =\n (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n final SearchView searchView =\n (SearchView) menu.findItem(R.id.app_bar_search).getActionView();\n searchView.setSearchableInfo(\n searchManager.getSearchableInfo(getComponentName()));\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n //Toast.makeText(Main2Activity.this,query,Toast.LENGTH_LONG).show();\n //adapter.filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n adapter.filter(newText);\n return false;\n }\n\n });\n\n\n\n return true;\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tIntent filter = new Intent(context, Filter.class);\n\t\t\t\tcontext.startActivity(filter);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n onItemSelected.onToolSelected(mToolList.get(getLayoutPosition()).getToolType());\n }",
"protected void setListener(){\r\n main_list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n activityStart(Constants.ACTIVITIES[position]);\r\n }\r\n });\r\n }",
"@Override\n\t\t\t\tpublic void onReceive( Context context, Intent intent )\n\t\t\t\t{\n\t\t\t\t\tString actionName = intent.getAction();\n\t\t\t\t\tif( actionName.equals( FINNISH_DEV_TOOLS ) )\n\t\t\t\t\t{\n\t\t\t\t\t\tstopSelf();\n\t\t\t\t\t}\n\t\t\t\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle item selection\n switch (item.getItemId()) {\n case R.id.action_about:\n // Create a pop up message with a button to close it\n // with information about the app\n AlertDialog.Builder builderAlert = new AlertDialog.Builder(ShowBeer.this);\n builderAlert.setMessage(R.string.about_this_app);\n builderAlert.setCancelable(true);\n builderAlert.setNeutralButton(\n \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alertInstance = builderAlert.create();\n alertInstance.show();\n return true;\n case R.id.action_debug:\n Intent intent = new Intent(ShowBeer.this, DebugActivity.class);\n intent.putExtra(\"DEBUG\", debugQueryText);\n startActivity(intent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R. menu.filter_menu, menu);\n MenuItem searchItem = menu.findItem(R. id.action_search);\n SearchView searchView = (SearchView)\n searchItem.getActionView();\n searchView.setIconifiedByDefault(true);\n searchView.setImeOptions(EditorInfo.IME_ACTION_DONE);\n // SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n adapteer.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n // adapter.getFilter().filter(newText);\n // filter recycler view when query submitted\n adapteer.getFilter().filter(newText);\n return false;\n }\n\n\n });\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_weather, menu);\n\n // Here we get the action view we defined\n myActionMenuItem = menu.findItem(R.id.Itm_SearchAction_Menu);\n View actionView = myActionMenuItem.getActionView();\n\n // We then get the edit text view that is part of the action view\n if(actionView != null) {\n myActionEditText = (EditText) actionView.findViewById(R.id.myActionEditText);\n if(myActionEditText != null) {\n myActionEditText.addTextChangedListener(new TextWatcher() {\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n String strWord = myActionEditText.getText().toString();\n if (TextUtils.isEmpty(strWord)) {\n mStrFilterWord = \"\";\n updatePrefs();\n } else {\n mStrFilterWord = strWord.toUpperCase(Locale.ENGLISH);\n }\n updateWeatherBasedOnCriteria();\n }\n\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n }\n }\n\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tintent = new Intent();\n\t\t\t\tintent.setClass(FancySelectFoodActivity.this,\n\t\t\t\t\t\tShopActivity.class);\n\t\t\t\tintent.putExtra(\"type\", eatWhat(temp - 1080) + \"\");\n\t\t\t\tFancySelectFoodActivity.this.startActivity(intent);\n\t\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_item, menu);\n MenuItem searchItem = menu.findItem(R.id.action_search);\n SearchView searchView = (SearchView) searchItem.getActionView();\n searchView.setImeOptions(EditorInfo.IME_ACTION_DONE);\n try{ searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n DeliveryReturnBySupervisorAdapter.getFilter().filter(newText);\n return false;\n }\n });\n }\n catch (Exception e)\n {\n e.printStackTrace();\n Intent intent_stay = new Intent(DeliveryReturnBySupervisor.this, DeliveryWithoutStatus.class);\n Toast.makeText(this, \"Page Loading...\", Toast.LENGTH_SHORT).show();\n startActivity(intent_stay);\n }\n return true;\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickMainLight();\n\t\t\t}",
"private void setUpListeners() {\n TextView listOfPlacesText = findViewById(R.id.list_of_places_text);\n listOfPlacesText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ScavengerHunt.this, ListOfPlaces.class);\n startActivity(intent);\n }\n });\n\n // Goes to List of Places activity\n ImageView topArrow = findViewById(R.id.top_arrow);\n topArrow.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ScavengerHunt.this, ListOfPlaces.class);\n startActivity(intent);\n }\n });\n\n // Goes to QR Scanner\n TextView checkOffText = findViewById(R.id.checkoff_place_text);\n checkOffText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (ContextCompat.checkSelfPermission(ScavengerHunt.this,\n Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) {\n Intent intent = new Intent(ScavengerHunt.this, ScanQRCode.class);\n startActivity(intent);\n } else {\n requestCameraPermission();\n }\n }\n });\n\n // Goes to QR Scanner\n ImageView bottomArrow = findViewById(R.id.bottom_arrow);\n bottomArrow.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ScavengerHunt.this, ScanQRCode.class);\n startActivity(intent);\n }\n });\n\n // Moves camera to Student Union when pressed (in case the user is off campus)\n ImageView pawImage = findViewById(R.id.paw);\n pawImage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(34.181309518547195, -117.32371486723423), 18));\n }\n });\n\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (item.getItemId()){\n case R.id.action_search:\n //to do\n Toast.makeText(this, \"You clicked search\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.action_filter:\n //to do\n Toast.makeText(this, \"You clicked filter\", Toast.LENGTH_SHORT).show();\n break;\n }\n\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0)\r\n\t\t\t{\r\n\t\t\t\tsaveUserDetails();\r\n\r\n\t\t\t\tActivity a = getActivity();\r\n\r\n\t\t\t\tif (a instanceof LauncherActivity)\r\n\t\t\t\t{\r\n\t\t\t\t\t((LauncherActivity) a).loadWeightMeasuringUI();\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n mDrawer.openDrawer(GravityCompat.START);\n return true;\n case R.id.filter_button:\n // Clear calendar data\n fDate = null;\n\n ft = fm.beginTransaction();\n ft.replace(R.id.flContent, filterFragment);\n ft.addToBackStack(null);\n ft.commit();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"void onEntry(FilterContext ctx) throws SoaException;",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case R.id.showArticle_options:\r\n\r\n Log.d(TAG, \"Started ArticleShowOptions\");\r\n Intent intent=new Intent(this, MarketplaceFilterActivity.class);\r\n startActivity(intent);\r\n\r\n //Hier intent für die activity des Zahnrades einfügen und in manifest parent activity festlegen für den \"simplen\" Rückweg\r\n\r\n return true;\r\n }\r\n\r\n// Intent implicitIntent = new Intent(this, ProfileSearch.class);\r\n// startActivity(implicitIntent);\r\n\r\n //noinspection SimplifiableIfStatement\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public void onClick(View view) {\n\n Intent intent_addProduct = new Intent(this, AddToolActivity.class);\n startActivity(intent_addProduct);\n }",
"@Override\n public void onClick(View v) {\n switch(v.getId()) {\n // When we click the gps mini button...\n case R.id.fab:\n searchCity();\n break;\n // Click the okay button\n case R.id.okay:\n dontShowThisAgain();\n // If you started this act as normal\n // i.e startActivity then this will\n // return null. If the user runs this on\n // inital app launch this will return null\n if (getCallingActivity() == null) {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n } else {\n setResult(RESULT_OK);\n finish();\n }\n\n break;\n default:\n break;\n }\n }",
"public void toBeam(){\n Intent intent = new Intent(this, Beam.class);\n startActivity(intent);\n }",
"private void ActionListeners() {\n addItem.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(Profile.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }\n });\n\n profilePic.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n showImageChooser();\n cancelBtn.setVisibility(View.VISIBLE);\n saveBtn.setVisibility(View.VISIBLE);\n }\n });\n\n tittle.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n setBtitle(true);\n setBname(false);\n nameInput.setVisibility(View.VISIBLE);\n nameInput.setHint(\"Job role\");\n scrollView.setVisibility(View.INVISIBLE);\n submenu.setVisibility(View.GONE);\n cancelBtn.setVisibility(View.VISIBLE);\n saveBtn.setVisibility(View.VISIBLE);\n }\n });\n\n name.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n setBtitle(false);\n setBname(true);\n nameInput.setVisibility(View.VISIBLE);\n scrollView.setVisibility(View.GONE);\n submenu.setVisibility(View.GONE);\n cancelBtn.setVisibility(View.VISIBLE);\n saveBtn.setVisibility(View.VISIBLE);\n\n }\n });\n\n saveBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (isBname()) {\n saveUserInformation();\n }\n if (Bimage){\n updatePicture(mAuth.getCurrentUser());\n }\n\n if (isBtitle()) {\n addTitle();\n }\n saveBtn.setVisibility(View.GONE);\n nameInput.setText(\"\");\n nameInput.setVisibility(View.GONE);\n cancelBtn.setVisibility(View.GONE);\n scrollView.setVisibility(View.VISIBLE);\n submenu.setVisibility(View.VISIBLE);\n\n }\n });\n\n qrButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n createAlert();\n }\n });\n\n cancelBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n saveBtn.setVisibility(View.GONE);\n cancelBtn.setVisibility(View.GONE);\n scrollView.setVisibility(View.VISIBLE);\n nameInput.setVisibility(View.GONE);\n submenu.setVisibility(View.VISIBLE);\n }\n });\n\n back.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Profile.this, MainActivity.class);\n startActivity(intent);\n overridePendingTransition(zunder.ebs.zunderapp.R.anim.push_right, zunder.ebs.zunderapp.R.anim.push_left);\n }\n });\n }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }",
"@Override\n public void onClick(View arg0) {\n Intent intent = new Intent(Main2Activity.this, com.sha.location.NotifyService.class);\n Main2Activity.this.startService(intent);\n }",
"private void setListeners() {\n try {\n\n viewButtonChennai = findViewById(R.id.viewButtonChennai);\n viewButtonMumbai = findViewById(R.id.viewButtonMumbai);\n viewButtonBangalore = findViewById(R.id.viewButtonBangalore);\n viewButtonNewDelhi = findViewById(R.id.viewButtonNewDelhi);\n\n viewButtonChennai.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n homeController.startFRGetDailyForecast(getString(R.string.city_chennai));\n\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n viewButtonMumbai.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n homeController.startFRGetDailyForecast(getString(R.string.city_mumbai));\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n viewButtonBangalore.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n homeController.startFRGetDailyForecast(getString(R.string.city_bangalore));\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n viewButtonNewDelhi.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n homeController.startFRGetDailyForecast(getString(R.string.city_newdelhi));\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n\n viewCardToday.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n HomeModel homeModel = (HomeModel) ObjectStore.I().Get(AppConstants.OBJ_HOME_MODEL, true);\n if (null != homeModel.dailyForecasts) {\n showToastOfTodayWeatherDetails(homeModel.dailyForecasts.getList().get(0));\n } else {\n Toast.makeText(HomeActivity.this, \"No Data to show\", Toast.LENGTH_SHORT).show();\n }\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n\n\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }",
"@Override\n protected void onStart()\n {\n\tsuper.onStart();\n\ttoolbar.setTitle(\"特殊文本生成器\");\n//\t\t设置标题\n\n//\t\t设置副标题\n\ttoolbar.setNavigationIcon(R.drawable.ic_arrow_back_white_24dp);\n//\t\t设置导航图标\n\ttoolbar.setNavigationOnClickListener(new OnClickListener()\n\t {\n\t\t@Override\n\t\tpublic void onClick(View p1)\n\t\t{\n\t\t finish();\n\t\t}\n\t });\n//\t\t设置导航按钮监听\n }",
"public void onAfterLayerAction(AGActivityLayerInterface filter, int action);",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n super.onCreateOptionsMenu(menu, menuInflater);\n menu.clear();\n menuInflater.inflate(R.menu.search_menu, menu);\n MenuItem searchItem = menu.findItem(R.id.actionSearch);\n SearchView searchView = (SearchView) searchItem.getActionView();\n // below line is to call set on query text listener method.\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n // inside on query text change method we are\n // calling a method to filter our recycler view.\n filter(newText);\n return true;\n }\n });\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_gradient) {\n\n //setContentView(new CanvasGradientEffects(MainActivity.this, 0));\n\n int count = new Random().nextInt(7);\n Toast.makeText(MainActivity.this, \"\" + count, Toast.LENGTH_SHORT).show();\n setContentView(new CanvasGradientEffects(MainActivity.this, count));\n\n\n return true;\n } else if (id == R.id.action_canvas) {\n\n CanvasDrawElements canvasView = new CanvasDrawElements(\n getApplicationContext());\n\n // //Text Mode\n //\n // canvasView.setMode(Mode.TEXT);\n //\n // canvasView.setDrawer(Drawer.PEN);\n\n // Draw Mode Circle\n\n // canvasView.setMode(Mode.DRAW);\n //\n // canvasView.setDrawer(Drawer.CIRCLE);\n\n // Draw Rectangles\n canvasView.setMode(Mode.DRAW);\n\n canvasView.setDrawer(Drawer.RECTANGLE);\n\n // Draw\n\n // canvasView.setMode(Mode.DRAW);\n //\n // canvasView.setDrawer(Drawer.ELLIPSE);\n\n // canvasView.setMode(Mode.DRAW);\n //\n // canvasView.setDrawer(Drawer.QUBIC_BEZIER);\n\n setContentView(canvasView);\n\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"public void onFilterSet(View view) {\n Spinner spnColor = (Spinner) findViewById(R.id.spnColor);\n Spinner spnImageSize = (Spinner) findViewById(R.id.spnImageSize);\n Spinner spnImageType = (Spinner) findViewById(R.id.spnImageType);\n EditText etSite = (EditText) findViewById(R.id.etSite);\n\n // load intent\n Intent data = new Intent();\n\n // FIXME: can I grab all the data at once and just build the object here? Instead of doing fromIntent? If so, make the image filter serializable\n String colorSpinner = spnColor.getSelectedItem().toString();\n String imageSizeSpinner = spnImageSize.getSelectedItem().toString();\n String imageTypeSpinner = spnImageType.getSelectedItem().toString();\n\n // don't set spinner defaults\n if (hasSpinnerPrompt(colorSpinner)) {\n colorSpinner = null;\n }\n if (hasSpinnerPrompt(imageSizeSpinner)) {\n imageSizeSpinner = null;\n }\n if (hasSpinnerPrompt(imageTypeSpinner)) {\n imageTypeSpinner = null;\n }\n\n data.putExtra(ImageFilter.COLOR, colorSpinner);\n data.putExtra(ImageFilter.SIZE, imageSizeSpinner);\n data.putExtra(ImageFilter.TYPE, imageTypeSpinner);\n data.putExtra(ImageFilter.SITE, etSite.getText().toString());\n\n setResult(RESULT_OK, data);\n\n this.finish();\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\t\t// Handle your other action bar items...\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.add_note:\n\t\t\tnewNote();\n\t\t\treturn true;\n\t\tcase R.id.search:\n\t\t\tsv.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onQueryTextSubmit(String query) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onQueryTextChange(String newText) {\n\t\t\t\t\tfilter(currentTab, newText);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"public void onPluginStart()\n\t{\n\t\tfor (Integer event : this.getNetworkCommands())\n\t\t\tCalicoEventHandler.getInstance().addListener(event.intValue(), this, CalicoEventHandler.ACTION_PERFORMER_LISTENER);\n\t\t\n\t\tCanvasStatusBar.addMenuButtonRightAligned(CreateCustomScrapButton.class);\n\t\t\n\t\t//Add an additional voice to the bubble menu\n\t\t//CGroup.registerPieMenuButton(SaveToPaletteButton.class);\n\t\t\n\t\t//Register to the events I am interested in from Calico's core events\n\t\t//Example: CalicoEventHandler.getInstance().addListener(NetworkCommand.VIEWING_SINGLE_CANVAS, this, CalicoEventHandler.PASSIVE_LISTENER);\n\n\t}",
"private ZapMenuItem getMenuToolsFilter() {\r\n\t\tif (menuToolsFilter == null) {\r\n\t\t\tmenuToolsFilter = new ZapMenuItem(\"menu.tools.filter\");\r\n\t\t\tmenuToolsFilter.addActionListener(new java.awt.event.ActionListener() { \r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \r\n\r\n\t\t\t\t\tFilterDialog dialog = new FilterDialog(getView().getMainFrame());\r\n\t\t\t\t dialog.setAllFilters(filterFactory.getAllFilter());\r\n\t\t\t\t dialog.showDialog(false);\r\n\r\n\t\t\t\t\tboolean startThread = false;\r\n\t\t\t\t\tfor (Filter filter : filterFactory.getAllFilter()) {\r\n\t\t\t\t\t\tif (filter.isEnabled()) {\r\n\t\t\t\t\t\t\tstartThread = true;\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\r\n\t\t\t\t\tif (startThread) {\r\n\t\t\t\t\t\tif (timerFilterThread == null) {\r\n\t\t\t\t\t\t\ttimerFilterThread = new TimerFilterThread(filterFactory.getAllFilter());\r\n\t\t\t\t\t\t\ttimerFilterThread.start();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (timerFilterThread != null) {\r\n\t\t\t\t\t\ttimerFilterThread.setStopped();\r\n\t\t\t\t\t\ttimerFilterThread = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t}\r\n\t\treturn menuToolsFilter;\r\n\t}",
"private void entryAction() {\n\t}",
"private void setupBtnListeners() {\n findViewById(R.id.btnAddValue).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n buttonAddValues();\n updateUI();\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n\n //Button to open blood pressure chart sets opens blood pressure chart activity\n findViewById(R.id.btnOpenBPChart).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent bpChart = new Intent(WeightActivity.this, BPChartActivity.class);\n startActivity(bpChart.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));\n mSettingsOrBPChartOpened = true;\n }\n });\n\n //Clicking date button opens date picker and closes keyboard\n findViewById(R.id.tvDate).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showDatePickerDialog();\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu icon){\n\r\n MenuInflater expand = getMenuInflater();\r\n\r\n expand.inflate(R.menu.top_menu, icon); //Referencing to the specific menu\r\n\r\n MenuItem search = icon.findItem(R.id.search_bar);\r\n\r\n SearchView searchView = (SearchView) search.getActionView(); //Displays the search view button\r\n\r\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\r\n\r\n\r\n @Override\r\n public boolean onQueryTextSubmit(String s) {//Begins filtering here\r\n\r\n adapterDevices.getFilter().filter(s);\r\n\r\n return false;\r\n }\r\n //Sends typed string in search bar to trigger search\r\n\r\n\r\n //Method is triggered if there is text change\r\n @Override\r\n public boolean onQueryTextChange(String s) {\r\n\r\n if(s.equals(\"\")){ //When search bar is empty again the page is reloaded\r\n\r\n Intent refresh = new Intent(getApplicationContext(), MyDevicesActivity.class);\r\n\r\n startActivity(refresh);\r\n\r\n finish();\r\n\r\n }\r\n return false;\r\n }\r\n });\r\n\r\n\r\n return true;\r\n\r\n\r\n }",
"@Override\n public void onDonePressed() {\n loadMainActivity();\n }",
"public void listener() {\n\t\tif (this.command.getMode().equals(Command.MODE_TRACK)) {\n\t\t\tFilterQuery filterQuery = new FilterQuery();\n\t\t\tfilterQuery.track(this.command.getKeywords().toArray(new String[this.command.getKeywords().size()]));\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.filter(filterQuery);\n\t\t} else if (this.command.getMode().equals(Command.MODE_SAMPLE)) {\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.sample();\n\t\t} else {\n\t\t\t// do search\n\t\t}\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n this.requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.log);\n this.alarmButton = (Button) this.findViewById(R.id.alarm);\n this.alarmButton.setOnClickListener(new View.OnClickListener() {\n \t@Override\n \tpublic void onClick(View v) {\n \tIntent intent = new Intent(\"android.intent.action.ALARM\");\n startActivity(intent);\n }\n });\n this.filterButton = (Button) this.findViewById(R.id.filter);\n this.filterButton.setOnClickListener(new View.OnClickListener() {\n \t@Override\n \tpublic void onClick(View v) {\n \tIntent intent = new Intent(\"android.intent.action.FILTER\");\n startActivity(intent);\n }\n });\n this.menuButton = (Button) this.findViewById(R.id.menu);\n this.menuButton.setOnClickListener(new View.OnClickListener() {\n \t@Override\n \tpublic void onClick(View v) {\n \tIntent intent = new Intent(\"android.intent.action.MENU\");\n startActivity(intent);\n }\n });\n showInput = (TextView) findViewById(R.id.showInput);\n showInput.setText(\"testing\");\n String input = \"\";\n Bundle extras = getIntent().getExtras();\n if (extras != null) {\n \tinput = extras.getString(\"data\");\n \tshowInput.setText(input);\n }\n }",
"private void startViewer() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.filterImages) {\n setfilterImages();\n }\n \n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickWorkLight();\n\t\t\t}",
"public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView((int) R.layout.upload_location_data_activity);\n Toolbar toolbar2 = (Toolbar) findViewById(R.id.toolbar);\n this.toolbar = toolbar2;\n setSupportActionBar(toolbar2);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n this.view = this.toolbar.getRootView();\n findViewById(R.id.uploadLocationBtn).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n new UploadLocationTask().execute(new Void[0]);\n }\n });\n findViewById(R.id.uploadBluetoothBtn).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n new UploadBluetoothTask().execute(new Void[0]);\n }\n });\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\r\n\t\tif(id==R.id.done)\r\n\t\t{\r\n\t\t\tString food=e1.getText().toString();\r\n\t\t\tString medicines=e2.getText().toString();\r\n\t\t\tString skin=e3.getText().toString();\r\n\t\t\tString animals=e4.getText().toString();\r\n\t\t\t\r\n\t\t\tModel_Allergies obj=new Model_Allergies(food, medicines, skin, animals);\r\n\t\t\thandler.insert_allergies(obj);\r\n\t\t\tCustomToast.printToast(this, \"Allergies sucessfully added\", 0,R.drawable.anydo);\r\n\t\t\tstartActivity(new Intent(this,Allergies.class));\r\n\t\t}\r\n\t\tif(id==android.R.id.home)\r\n\t\t\tonBackPressed();\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle action buttons\n switch (item.getItemId()) {\n case R.id.action_websearch:\n Toast.makeText(this, \"Search Web for planet \" + mTitle, Toast.LENGTH_SHORT).show();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override // android.support.v7.app.AppCompatActivity, android.support.v4.app.SupportActivity, android.support.v4.app.FragmentActivity\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n setFlag(getIntent());\n final TextView flagWidget = (TextView) findViewById(R.id.flag);\n ((Button) findViewById(R.id.getflag)).setOnClickListener(new View.OnClickListener() {\n /* class com.mobisec.nojumpstarts.MainActivity.AnonymousClass1 */\n\n public void onClick(View v) {\n flagWidget.setText(\"Getting flag....\");\n flagWidget.setTextColor(ViewCompat.MEASURED_STATE_MASK);\n try {\n MainActivity.this.getFlag();\n } catch (Exception e) {\n Log.e(\"MOBISEC\", \"Exception while getting the flag:\" + Log.getStackTraceString(e));\n flagWidget.setText(\"An error occurred when getting flag\");\n }\n }\n });\n }",
"public void doDrawerStuff() {\n Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar);\n setSupportActionBar(myToolbar);\n\n mPlanetTitles = getResources().getStringArray(R.array.planets_array);\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n\n\n mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,myToolbar, R.string.drawer_open, R.string.drawer_close) {\n\n /** Called when a drawer has settled in a completely closed state. */\n public void onDrawerClosed(View view) {\n super.onDrawerClosed(view);\n // getSupportActionBar().setTitle(mTitle);\n\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n\n /** Called when a drawer has settled in a completely open state. */\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n // getSupportActionBar().setTitle(mDrawerTitle);\n //invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n }\n };\n\n // Set the drawer toggle as the DrawerListener\n mDrawerLayout.setDrawerListener(mDrawerToggle);\n\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setHomeButtonEnabled(true);\n\n\n\n mDrawerList = (ListView) findViewById(R.id.left_drawer);\n\n // Set the adapter for the list view\n mDrawerList.setAdapter(new ArrayAdapter<String>(this,\n R.layout.drawer_list_item, mPlanetTitles));\n // Set the list's click listener\n mDrawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n\n\n\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.miFilter) {\n launchFilterOptions();\n } else if (id == R.id.miSaved) {\n launchSavedArticlesView();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\n\t\tswitch (item.getItemId()) {\n\t\tcase MENU_FILTER_ENABLE:\n\t\t\tLayoutInflater inflater = (LayoutInflater) FileChooser.this.getSystemService(LAYOUT_INFLATER_SERVICE);\n\t\t\tfinal View v = inflater.inflate(R.layout.smbserverinfo,null);\n\n\t\t\tnew AlertDialog.Builder(FileChooser.this)\n\t\t .setTitle(\"Filter Setting\")\n\t\t .setView(v)\n\t\t .setPositiveButton(\"Enter\", new DialogInterface.OnClickListener() \n\t\t {\n\t\t @Override\n\t\t public void onClick(DialogInterface dialog, int which) { \n\t\t\t\tEditText editText_year = (EditText) (v.findViewById(R.id.edittext_year));\n\t\t\t\tEditText editText_month = (EditText) (v.findViewById(R.id.edittext_month));\n\t\t\t\tEditText editText_date = (EditText) (v.findViewById(R.id.edittext_date));\n\t\t\t\tEditText editText_other = (EditText) (v.findViewById(R.id.edittext_other));\n\t\t\t\t\n\t\t\t\tif(\"\".equals(editText_year.getText().toString().trim()) || \"\".equals(editText_month.getText().toString().trim()) || \"\".equals(editText_date.getText().toString().trim()))\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Invalid Value ( Value = NULL )\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tchoose_year \t= Integer.valueOf(editText_year.getText().toString());\n\t\t\t\t\tchoose_month\t= Integer.valueOf(editText_month.getText().toString());\n\t\t\t\t\tchoose_date\t\t= Integer.valueOf(editText_date.getText().toString());\n\t\t\t\t\tchoose_other\t= Integer.valueOf(editText_other.getText().toString());\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"input year:\"+editText_year.getText().toString()+\" month: \"+editText_month.getText().toString()+\" date: \"+editText_date.getText().toString(), Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\n\t\t\t\tbNeedFilter = true;\n\t\t\t\tfill(currentDir);\n\t\t }\n\t\t })\n\t\t .show();\n\n\t\t\tbreak;\n\t\tcase MENU_FILTER_DISABLE:\n\t\t\tbNeedFilter = false;\n\t\t\tfill(currentDir);\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n setContentView(R.layout.main);\n \n /* ============================================================== */\n /* buttons */\n /* the closing button */\n closeButton = (Button) findViewById(R.id.close);\n closeButton.setOnTouchListener(new OnTouchListener() {\n public boolean onTouch(View v, MotionEvent e) {\n finish();\n return true;\n }\n });\n \n /* ============================================================== */\n /* Text Views */\n sampleRateText = (TextView) findViewById(R.id.sampleRateText);\n \n /* ============================================================== */\n /* seekbar */\n rateMultiplier = (SeekBar)this.findViewById(R.id.rateMultiplier);\n rateMultiplier.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {\n\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tInteractionModelSingleton.get().setRate(progress);\n\t\t\t\tsampleRateText.setText(InteractionModelSingleton.get().rateAsString());\n\t\t\t}\n\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\t\n\t\t\t}\n\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\t\n\t\t\t}\n \t\n \t\n });\n rateMultiplier.setProgress(InteractionModelSingleton.get().getRate());\n \n /* ============================================================== */\n /* Drop down menu */\n /*\n filterSpinner = (Spinner) findViewById(R.id.filterList);\n ArrayAdapter<CharSequence> filterAdapter = ArrayAdapter.createFromResource(this, R.array.filter_array, android.R.layout.simple_spinner_item);\n filterAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n filterSpinner.setAdapter(filterAdapter);\n filterSpinner.setOnItemSelectedListener(new OnItemSelectedListener () {\n\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint pos, long id) {\n\t\t\t\tString value = parent.getItemAtPosition(pos).toString();\n\t\t\t\tStepDetection detector = null;\n\t\t\t\tLog.i(TAG, \"Filter spinner had this selected: \" + parent.getItemAtPosition(pos).toString());\n\t\t\t\tif(!value.equals(\"No detection\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdetector = (StepDetection) Class.forName(\"be.ugent.csl.StepCounter.\"+value).newInstance();\n\t\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\t\tLog.e(TAG, \"Not allowed to for filter selection \" + value, e);\n\t\t\t\t\t} catch (InstantiationException e) {\n\t\t\t\t\t\tLog.e(TAG, \"Cannot instantiate for filter selection \" + value, e);\n\t\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t\tLog.e(TAG, \"Cannot find class for filter selection \" + value, e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\taccellMeterService.setFilter(detector);\n\t\t\t}\n\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t// TODO Auto-generated method stub\t\n\t\t\t}\n \t\n });\n */\n \n \n \tIntent i = new Intent(this, AccellMeterService.class);\n \t/* first we bind to the service to be able to talk to it through the local binding */\n \taccellMeterServiceBound = bindService(i, accellMeterServiceConnection, BIND_AUTO_CREATE);\n \tLog.i(InteractionModelSingleton.TAG, \"AccelMeterService bound\");\n \t\n \t/* we also need to start the service explicitly, with the same intent to make sure\n \t * the service keeps running even when the activity loses focus. \n \t */\n \tstartService(i);\t \n \tLog.i(InteractionModelSingleton.TAG, \"AccellMeterService started\");\n \n \t/* The log button */\n \tlogButton = (Button) findViewById(R.id.addMessageButton);\n \t\n \tfinal EditText data = (EditText) findViewById(R.id.messageData);\n\n \tlogLinesText = (TextView) findViewById(R.id.linesCount);\n \t\n \tlogButton.setOnClickListener(new OnClickListener() {\n \t\t@Override\n \t\tpublic void onClick(View v) {\n \t\t\tInteractionModelSingleton.get().logString(data.getText().toString());\n \t\t\tupdateLogCount();\n \t\t}\n \t});\n\n \t\n \tCheckBox logData = (CheckBox) findViewById(R.id.logData);\n \tlogData.setChecked(InteractionModelSingleton.get().isLogging());\n \tlogData.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n \t\t@Override\n \t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n \t\t\tInteractionModelSingleton.get().setLogging(isChecked);\n \t\t}\n \t});\n\n \tlogTask = new UpdateLogTask();\n \tlogTask.execute();\n \t\n \tButton clearButton = (Button) findViewById(R.id.clear);\n \tclearButton.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tInteractionModelSingleton.get().clearFile();\n\t\t\t\tupdateLogCount();\n\t\t\t}\n\t\t});\n }",
"@Override\n public void onClick(View v) {\n\n FavActionUtility favActionUtility = new FavActionUtility(getActivity());\n\n try {\n switch (v.getId()) {\n case R.id.text_phone:\n favActionUtility.dial(mPhoneField.getText().toString());\n break;\n case R.id.text_address:\n favActionUtility.mapOf(mAddressField.getText().toString(), mCityField.getText().toString());\n break;\n case R.id.text_yelp:\n favActionUtility.yelpSite(mYelpField.getText().toString());\n break;\n }\n } catch (Exception e) {\n favActionUtility.showErrorMessageInDialog(e.getMessage());\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tswitch(id){\n\t\t\tcase R.id.calendar:\n\t\t\t\tIntent intent = new Intent(MainActivity.this,CalendarActivity.class);\n\t\t\t\t//intent.putExtra(\"account\", account); \n\t\t\t\tstartActivity(intent);\n\t\t\t\tbreak;\n\t\t\tcase R.id.weather:\n\t\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\t\t\tpublic void onClick(View v){\n\t\t\t\tif (receiver==null) {\n\t\t\t\t\treceiver = new myReceiver();\n\t\t\t\t\tIntentFilter filter=new IntentFilter();\n\t\t\t\t\tfilter.addAction(\"com.chris.hadoop v\");\n\t\t\t\t\tmActivity.registerReceiver(receiver, filter);\n\t\t\t\t}\n\t\t\t\tIntent intent=new Intent(getActivity(),trafficMonitorService.class);\n\t\t\t\tmActivity.startService(intent);\n\t\t\t\tToast.makeText(mActivity,\" \",Toast.LENGTH_SHORT).show();\n\t\t\t}",
"@Override\n\t\t\tpublic void OnDialogClick() {\n\t\t\t\tIntent intent = new Intent(getContext(),\n\t\t\t\t\t\tCommonSelectDataActivity.class);\n\t\t\t\tintent.putExtra(CommonSelectDataActivity.TYPE, R.array.fylx);\n\n\t\t\t\t((Activity) getContext()).startActivityForResult(intent,\n\t\t\t\t\t\tKingTellerStaticConfig.SELECT_FYLX);\n\t\t\t\t((LinearLayout) getParent()).setTag(fylx);\n\t\t\t}",
"public void onMainClick(){\r\n\t\tmyView.advanceToMain();\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item){\n int id = item.getItemId();\n Intent myIntent;\n\n //adding the clickable menu by switch\n switch(id){\n //home button\n case R.id.actionHome:\n myIntent = new Intent(this, MainActivity.class);\n startActivity(myIntent);\n return true;\n //add button\n case R.id.actionAdd:\n myIntent = new Intent(this, addPage.class);\n startActivity(myIntent);\n return true;\n\n //filter button \n case R.id.actionFilter:\n Toast.makeText(this, \"Filter\", Toast.LENGTH_SHORT).show();\n return true;\n\n //past planner button\n case R.id.actionPastPlan:\n\n myIntent = new Intent(this, pastPlanners.class);\n startActivity(myIntent);\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\t//sets list elements to the String buildings\r\n\t\tsetListAdapter(new ArrayAdapter<String>(this, R.layout.buildings,\r\n\t\t\t\tthis.buildings));\r\n\r\n\t\tgetListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);\r\n\t\tgetListView().setTextFilterEnabled(true);\r\n\r\n\t\tgetListView().setOnItemClickListener(new OnItemClickListener() {\r\n\r\n \t/**\r\n \t * on click switch for calling the setup activity\r\n \t */\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\r\n\t\t\t\tswitch (arg2) {\r\n\t\t\t\tcase 0:// Mandeville\r\n\t\t\t\t\tArActivity.startWithSetup(AdminListActivity.this,\r\n\t\t\t\t\t\t\tnew ProjectSetup(new GeoObj(33.571266, -85.098664,\r\n\t\t\t\t\t\t\t\t\t330)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:// Excel\r\n\t\t\t\t\tArActivity.startWithSetup(AdminListActivity.this,\r\n\t\t\t\t\t\t\tnew ProjectSetup(new GeoObj(33.572109, -85.096022,\r\n\t\t\t\t\t\t\t\t\t330)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:// Health Services\r\n\t\t\t\t\tArActivity.startWithSetup(AdminListActivity.this,\r\n\t\t\t\t\t\t\tnew ProjectSetup(new GeoObj(33.571921, -85.098759,\r\n\t\t\t\t\t\t\t\t\t327)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:// UZ6\r\n\t\t\t\t\tArActivity.startWithSetup(AdminListActivity.this,\r\n\t\t\t\t\t\t\tnew ProjectSetup(new GeoObj(33.572658, -85.105679,\r\n\t\t\t\t\t\t\t\t\t318)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:// Parking\r\n\t\t\t\t\tArActivity.startWithSetup(AdminListActivity.this,\r\n\t\t\t\t\t\t\tnew ProjectSetup(new GeoObj(33.571976, -85.099870,\r\n\t\t\t\t\t\t\t\t\t321)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:// Career Services\r\n\t\t\t\t\tArActivity.startWithSetup(AdminListActivity.this,\r\n\t\t\t\t\t\t\tnew ProjectSetup(new GeoObj(33.574153, -85.097198,\r\n\t\t\t\t\t\t\t\t\t327)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:// University Police\r\n\t\t\t\t\tArActivity.startWithSetup(AdminListActivity.this,\r\n\t\t\t\t\t\t\tnew ProjectSetup(new GeoObj(33.571976, -85.099870,\r\n\t\t\t\t\t\t\t\t\t321)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:// My House\r\n\t\t\t\t\tArActivity.startWithSetup(AdminListActivity.this,\r\n\t\t\t\t\t\t\tnew ProjectSetup(new GeoObj(33.571421, -85.098935,\r\n\t\t\t\t\t\t\t\t\t328)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\tArActivity.startWithSetup(AdminListActivity.this,\r\n\t\t\t\t\t\t\tnew ProjectSetup(new GeoObj(33.74711, -84.898254)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 9:\r\n\t\t\t\t\tArActivity.startWithSetup(AdminListActivity.this,\r\n\t\t\t\t\t\t\tnew ProjectSetup(new GeoObj(33.74711, -84.898254)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tonIntentClass(activity, MainActivity.class, true);\n\t\t\t}",
"@Override\n\tpublic void addToolListener(ToolListener listener) {\n\t\t//do nothing\n\t}",
"void modifyToolbar(Toolbar toolbar){\r\n toolbar.setTitle(name);\r\n toolbar.inflateMenu(R.menu.menu_toolbar_package);\r\n\r\n //needed to send context to util classes\r\n final Context context = this;\r\n\r\n toolbar.setOnMenuItemClickListener(\r\n new Toolbar.OnMenuItemClickListener() {\r\n @Override\r\n public boolean onMenuItemClick(MenuItem item) {\r\n switch (item.getItemId())\r\n {\r\n case R.id.action_exit_fragment:\r\n onBackPressed();\r\n break;\r\n case R.id.action_phone:\r\n DialogUtil.makePhoneDialog(context,R.string.dialog_phone_title, R.string.dialog_phone_customer_positive, selectedTask.getReceiver().getPhone());\r\n break;\r\n case R.id.action_sms:\r\n DialogUtil.makeSMSDialog(context, selectedTask);\r\n break;\r\n default:break;\r\n }\r\n return true;\r\n }\r\n });\r\n\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(new Intent(LandSearch.this, Charts.class));\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == R.id.action_settings) {\n Intent intent = new Intent(MainActivity.this, Einstellungen.class);\n startActivity(intent);\n //Intent zu einer neuen Activity, welche dann entscheidet, ob Maps eingebelendet wird\n //wenn ja, welche Zoomstufe etc....\n }\n if (id == R.id.action_history) {\n Intent intent = new Intent(MainActivity.this, Verlauf.class);\n startActivity(intent);\n //Intent zu neuer Activity, Liste, die die Suchergebnisse speichert, Löschen ist möglich\n //einzelne Einträge und ganze Liste, falls leer soll entsprechender Inhalt angezeigt werden\n }\n if (id == R.id.action_impressum) {\n Intent intent = new Intent(MainActivity.this, Impressum.class);\n startActivity(intent);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t if (id == R.id.action_cpfusd) {\n\t\t\t\n\t \ttakeScreenshot();\n\t \t\n\t\t\t//Intent intent=new Intent(getApplicationContext(),MainActivity.class);\n\t\t\t//startActivity(intent);\n\n\t }\n\t return super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, AppManager.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}",
"@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link inflatorsActivity}\n Intent inflatorsIntent = new Intent(MainActivity.this, inflatorsActivity.class);\n // Start the new activity\n startActivity(inflatorsIntent);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\t//noinspection SimplifiableIfStatement\n\t\tIntent intent;\n\t\tswitch (id) {\n\t\t\tcase R.id.action_info:\n\t\t\t\tif(mBound) {\n\t\t\t\t\tStringBuffer message = new StringBuffer(getVersionInfo());\n\t\t\t\t\tmessage.append(mService.getConnectivityStatus().toString());\n\t\t\t\t\tMediaPlayerService.showMessageInPopup(message, Toast.LENGTH_LONG * 50, false);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\tcase R.id.action_settings:\n\t\t\t\tintent = new Intent(this, SettingsActivity.class);\n\t\t\t\tstartActivityForResult(intent, FavoriteStationsFrame.RESULT_SETTINGS);\n\t\t\t\treturn true;\n\t\t\t/*case R.id.action_add:\n\t\t\t\tintent = new Intent(this, SearchForStationsFrame.class);\n\t\t\t\tstartActivityForResult(intent, FavoriteStationsFrame.RESULT_ADD_STATIONS);\n\t\t\t\treturn true;*/\n\t\t\tcase R.id.action_help:\n\t\t\t\tintent = new Intent(this, HelpActivity.class);\n\t\t\t\tintent.putExtra(HelpActivity.ARG_SECTION_NUMBER, mViewPager.getCurrentItem());\n\t\t\t\tstartActivity(intent);\n\t\t\t\treturn true;\n\t\t\t/*case R.id.action_help1:\n\t\t\t\tintent = new Intent(this, HelpTabbedActivity.class);\n\t\t\t\tintent.putExtra(HelpTabbedActivity.PlaceholderFragment.ARG_SECTION_NUMBER, mViewPager.getCurrentItem());\n\t\t\t\tstartActivity(intent);\n\t\t\t\treturn true;*/\n\t\t\tcase android.R.id.home:\n\t\t\t\tif(mViewPager.getCurrentItem() == SEARCH_FOR_STATIONS)\n\t\t\t\t\tbreak;\n\t\t\tcase R.id.action_exit:\n\t\t\t\tHandler delayedPost = new Handler();\n\t\t\t\tdelayedPost.postDelayed(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texitApp();\n\t\t\t\t\t}\n\t\t\t\t}, 100);//exitApp();\n\t\t\t\treturn true;\n\t\t\tcase R.id.action_volume_down:\n\t\t\tcase R.id.action_volume_up:\n\t\t\t\tif(mBound)\n\t\t\t\t\tmService.changeVolumeLevel(id==R.id.action_volume_up);\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainDashBoardActivity.this, DealerSearchActivity.class);\n startActivity(intent);\n\n\n }",
"static IntentFilter m43011a() {\n return new IntentFilter(\"com.tonyodev.fetch.action_done\");\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_calculadora) {\r\n Calculadora calculadora = new Calculadora();\r\n setContentView(R.layout.calculadora);\r\n\r\n\r\n //*calculadora.onCreate(Bundle );*//\r\n\r\n Toast.makeText(getApplicationContext(),\r\n \"Calculadora está sendo implementado\",\r\n Toast.LENGTH_SHORT).show();\r\n\r\n\r\n return true;\r\n }\r\n if (id == R.id.action_cad_livro) {\r\n Cadastro_Livro cadastro_livro = new Cadastro_Livro();\r\n\r\n setContentView(R.layout.cadastro_livros);\r\n Toast.makeText(getApplicationContext(),\r\n \"Cadastro de Livro está sendo implementado\",\r\n Toast.LENGTH_SHORT).show();\r\n\r\n\r\n return true;\r\n }\r\n if (id == R.id.action_cad_autor) {\r\n Cadastro_Autor cadastro_autor = new Cadastro_Autor();\r\n setContentView(R.layout.calculadora);\r\n //*mostra uma mensagem na tela*//\r\n Toast.makeText(getApplicationContext(),\r\n \"Cadastro de Autores está sendo implementado\",\r\n Toast.LENGTH_SHORT).show();\r\n\r\n\r\n return true;\r\n }\r\n if (id == R.id.action_cad_editora) {\r\n Cadastro_Editora cadastro_editora = new Cadastro_Editora();\r\n setContentView(R.layout.calculadora);\r\n Toast.makeText(getApplicationContext(),\r\n \"Cadastro de Editoras está sendo implementado\",\r\n Toast.LENGTH_SHORT).show();\r\n\r\n return true;\r\n }\r\n if (id == R.id.action_cad_usuario) {\r\n Cadastro_Usuario cadastro_usuario = new Cadastro_Usuario();\r\n setContentView(R.layout.calculadora);\r\n Toast.makeText(getApplicationContext(),\r\n \"Cadastro de Usuário está sendo implementado\",\r\n Toast.LENGTH_SHORT).show();\r\n\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tIntent startSearch=new Intent(Launcher.this, SearchActivity.class);\n\t\t\t\t\tstartActivity(startSearch);\n\t\t\t\t}"
] | [
"0.6034093",
"0.584301",
"0.5804533",
"0.56797",
"0.563415",
"0.5576324",
"0.5538402",
"0.550864",
"0.54800034",
"0.5473313",
"0.54648554",
"0.5464729",
"0.54232097",
"0.54186344",
"0.5413434",
"0.5409135",
"0.5403678",
"0.5384796",
"0.535196",
"0.5320544",
"0.53202987",
"0.53044784",
"0.52986676",
"0.529317",
"0.52900225",
"0.5288309",
"0.52871",
"0.5273288",
"0.5270226",
"0.5270226",
"0.52690935",
"0.52489275",
"0.5244117",
"0.5238732",
"0.52344996",
"0.5233975",
"0.522875",
"0.52252305",
"0.5215369",
"0.5214333",
"0.51977074",
"0.5191338",
"0.51857066",
"0.5182056",
"0.51721203",
"0.51696956",
"0.5168935",
"0.514959",
"0.5147684",
"0.5142859",
"0.51413906",
"0.51348174",
"0.5134016",
"0.5126983",
"0.51260996",
"0.5125724",
"0.51192296",
"0.5118233",
"0.5106952",
"0.5106455",
"0.5090674",
"0.50875217",
"0.50821036",
"0.5078803",
"0.50778663",
"0.50754035",
"0.5065146",
"0.5064104",
"0.50613",
"0.50600743",
"0.50434744",
"0.5040541",
"0.5038686",
"0.5037982",
"0.503476",
"0.50321186",
"0.5027503",
"0.50261927",
"0.5022875",
"0.50218254",
"0.50198084",
"0.50187516",
"0.50171053",
"0.5012653",
"0.5011799",
"0.500708",
"0.5004751",
"0.49984238",
"0.49967277",
"0.49861848",
"0.49853146",
"0.4984875",
"0.49811214",
"0.49754277",
"0.49748096",
"0.4973156",
"0.49680042",
"0.49680033",
"0.4965993",
"0.49650458",
"0.49630713"
] | 0.0 | -1 |
Return the current bitmap. | public Bitmap getBitmap() {
return mBitmap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Bitmap getBitmap() {\n\t\treturn this.initialBitmap;\r\n\t}",
"public Bitmap getBitmapIn() {\r\n\t\treturn bitmapIn;\r\n\t}",
"public BufferedImage getCurrentImage(){\n\t\treturn getCurrentImage(System.currentTimeMillis()-lastUpdate);\n\t}",
"public Bitmap getImage(){\n return images[currentFrame];\n }",
"public Bitmap getBitmap(){\n return bitmap;\n }",
"public Bitmap getImage() {\n return image;\n }",
"public ColorImage getCurrentImage() {\n try {\n return currentImage.peek();\n } catch (EmptyStackException e) {\n return null;\n }\n }",
"Bitmap getBitmap(){\n Bitmap bm = frame;\n frame = null;\n return bm;\n }",
"public Picture picture() {\n return new Picture(current);\n }",
"public ImageIcon getCurrentImage() {\n\t\t\treturn this.currentImage;\n\t}",
"public Bitmap get() {\n Throwable throwable2222222;\n Object object;\n block4: {\n boolean bl2 = this.zali;\n if (bl2) return this.zalh;\n Object object2 = this.zalg;\n Object object3 = new ParcelFileDescriptor.AutoCloseInputStream(object2);\n object = new DataInputStream((InputStream)object3);\n int n10 = ((DataInputStream)object).readInt();\n object3 = new byte[n10];\n int n11 = ((DataInputStream)object).readInt();\n int n12 = ((DataInputStream)object).readInt();\n String string2 = ((DataInputStream)object).readUTF();\n string2 = Bitmap.Config.valueOf((String)string2);\n ((DataInputStream)object).read((byte[])object3);\n {\n catch (Throwable throwable2222222) {\n break block4;\n }\n catch (IOException iOException) {}\n {\n String string3 = \"Could not read from parcel file descriptor\";\n object2 = new IllegalStateException(string3, iOException);\n throw object2;\n }\n }\n BitmapTeleporter.zaa((Closeable)object);\n object = ByteBuffer.wrap((byte[])object3);\n object3 = Bitmap.createBitmap((int)n11, (int)n12, (Bitmap.Config)string2);\n object3.copyPixelsFromBuffer((Buffer)object);\n this.zalh = object3;\n this.zali = bl2 = true;\n return this.zalh;\n }\n BitmapTeleporter.zaa((Closeable)object);\n throw throwable2222222;\n }",
"public ImageArray getCurrentImage() {\n return currentIm;\n }",
"public Bitmap mo8781b() {\n if (this.f1291g) {\n return this.f1287c;\n }\n return this.f1286b;\n }",
"public byte[] bitmap();",
"protected BufferedImage snapshot() {\n\t\tBufferedImage bi = new BufferedImage(window.getContentPane().getWidth(), window.getContentPane().getHeight(), BufferedImage.TYPE_INT_RGB);\n\t\twindow.getContentPane().paint(bi.getGraphics());\n\t\treturn bi;\n\t}",
"public static Bitmap GetSignsBitmap()\r\n\t{\r\n\t\tBitmap signBmp = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t Resources res = CGameHelper.m_GameContext.getResources();\r\n\t if(res == null)\r\n\t \treturn signBmp;\r\n\t \r\n\t if(m_SignsBitmap == null)\r\n\t {\t\r\n\t \tm_SignsBitmap = BitmapFactory.decodeResource(res, R.drawable.signs);\r\n\t }\r\n\t signBmp = m_SignsBitmap;\r\n\t\t}\r\n\t\treturn signBmp;\r\n\t}",
"private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}",
"public static Bitmap GetDealSpriteBitmap()\r\n\t{\r\n\t\t// Load background desktop image from resouce\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(m_DealSpriteBitmap == null)\r\n\t\t\t{\r\n\t\t\t\tm_DealSpriteBitmap = BitmapFactory.decodeResource(res, R.drawable.face);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\timage = m_DealSpriteBitmap;\r\n\t\t} \r\n\t\treturn image;\r\n\t}",
"public static Bitmap GetTempCardNumberBitmap()\r\n\t{\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(m_TempCardNumberBitmap == null)\r\n\t\t\t{\r\n\t\t\t\tm_TempCardNumberBitmap = BitmapFactory.decodeResource(res, R.drawable.z);\r\n\t\t\t}\r\n\t\t\timage = m_TempCardNumberBitmap;\r\n\t\t} \r\n\t\treturn image;\r\n\t}",
"public Graphics getCurrentGraphics() {\r\n return currentGraphics;\r\n }",
"public javax.activation.DataHandler getPicture() {\r\n return localPicture;\r\n }",
"public BufferedImage getImage()\r\n\t{\r\n\t\treturn mImageBuffer;\r\n\t}",
"public Texture getCurrentFrame(){\n\t\treturn images[currentFrame];\n\t}",
"byte[] getCurrentPixel() {\n byte[] pixel = new byte[2];\n\n pixel[0] = ((byte) cursor.getX());\n pixel[1] = ((byte) cursor.getY());\n\n for (byte b : pixel) {\n\n if (b >= axisLength || b < 0) {\n return null;\n }\n }\n return pixel;\n }",
"private Bitmap getScreenshotBitmap() {\n if (!hasEnoughHeapMemoryForScreenshot()) return null;\n\n if (getWidth() <= 0 || getHeight() <= 0) return null;\n\n Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n draw(new Canvas(bitmap));\n return bitmap;\n }",
"public Tile getCurrent(){\n\t\tif(generated)\n\t\t\treturn deck.get(curr);\n\t\tthrow new RuntimeException(\"Deck must be generated before using it\");\n\t}",
"public Stack<ColorImage> getCurrentImageHistory() {\n return currentImage;\n }",
"public static Bitmap GetBasicCardNumberBitmap()\r\n\t{\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(m_BasicCardNumberBitmap == null)\r\n\t\t\t{\r\n\t\t\t\tm_BasicCardNumberBitmap = BitmapFactory.decodeResource(res, R.drawable.number);\r\n\t\t\t}\r\n\t image = m_BasicCardNumberBitmap;\r\n\t\t} \r\n\t\treturn image;\r\n\t}",
"public GoPlayingBoard getCurrentBoard() {\n \t\treturn currentBoard.clone();\n \t}",
"public BitmapField getBitmapField() {\n\t\treturn bitmapField;\n\t}",
"public Bitmap buildResultBitmap() {\n if(mTempBitmap!=null) return mTempBitmap;\n Bitmap bitmap ;\n if(mRotateAngle!=0) bitmap = Util.rotateBitmap(mDocumentBitmap,mRotateAngle);\n else bitmap = Bitmap.createBitmap(mDocumentBitmap);\n\n switch (mFilter) {\n case FILTER_MAGIC:\n bitmap = ScanUtils.getMagicColorBitmap(bitmap);\n break;\n case FILTER_GRAY_SCALE:\n bitmap = ScanUtils.getGrayBitmap(bitmap);\n break;\n case FILTER_BnW:\n bitmap = ScanUtils.getBWBitmap(bitmap);\n break;\n }\n\n return bitmap;\n }",
"public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }",
"public Bitmap decodeImage() {\n\t\treturn image == null ? null : image.decodeBitmap();\n\t}",
"public Image getImage() {\n\t\t// Check we have frames\n\t\tif(frames.size() == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn getFrame(currentFrameIndex).image;\n\t\t}\n\t}",
"public BufferedImage getCurrentFrame(){\n\t\tif(first)\n\t\t\treturn animation_frame[index];\n\t\telse\n\t\t\treturn animation_frame[0];\n\t\t\n\t}",
"public Rectangle getImage() {\n\t\treturn image;\n\t}",
"public final Object getCurrent()\n\t{\n\t\treturn getCapture();\n\t}",
"public BufferedImage getImage() {\n\t\tTelaInterna ti = ( TelaInterna )contentPane.getSelectedFrame();\n\t\tBufferedImage img;\n\t\timg = ti.getImage();\n\t\treturn img;\n\t}",
"public BufferedImage image(){\n\t\treturn shotPic;\n\t}",
"public Image getInstanceImage() {\r\n return this.image;\r\n }",
"private void loadBitmap() {\n\n BitmapDrawable bitmapDrawable = (BitmapDrawable) this.getDrawable();\n\n if (bitmapDrawable != null)\n image = bitmapDrawable.getBitmap();\n }",
"private Bitmap m6552d() {\n if (this.f5072i == null) {\n this.f5072i = m6555f();\n }\n return this.f5072i;\n }",
"public Bitmap getBitmap(@NonNull final String key) {\n return getBitmap(key, null);\n }",
"public Sprite getCurrentSprite() {\n\t\tif (this.getVx() <= 0) {\n\t\t\treturn getImages()[0];\n\t\t}\n\t\treturn getImages()[1];\n\t}",
"public Board getCurrentBoard() {\n return boardIterator.board;\n }",
"public Bitmap makeScreenshot() {\n renderer.setScreenshot();\n requestRender();\n return renderer.getLastScreenshot();\n }",
"public java.lang.String getIdleImage() {\n return localIdleImage;\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}",
"public BufferedImage getCurrentImage(long elapsed){\n\t\telapsed += millisIntoFrame;\n\t\tthis.millisIntoFrame = elapsed%millisPerFrame;\n\t\tif (looping){\n\t\t\tthis.currentFrame = (int) ((currentFrame+(elapsed/millisPerFrame))%images.length);\n\t\t}\n\t\telse{\n\t\t\tthis.currentFrame = (int) (currentFrame+(elapsed/millisPerFrame));\n\t\t\tif(currentFrame >= images.length){\n\t\t\t\tthis.currentFrame = images.length-1;\n\t\t\t\tthis.finished = true;\n\t\t\t}\n\t\t}\n\t\treturn images[currentFrame];\n\t}",
"public ImageInfo getImage() {\n return image;\n }",
"public abstract BufferedImage getSnapshot();",
"public Bitmap mo1282a() {\n Bitmap bitmap = (Bitmap) this.f9476f.m3537a();\n if (bitmap != null) {\n m11981a(Integer.valueOf(C0987h.m3406a(bitmap)), bitmap.getConfig());\n }\n return bitmap;\n }",
"public BufferedImage getPlan()\n { \n return imgPlan;\n }",
"public Drawable getImage(){\n\t\treturn mImage;\n\t}",
"public static Bitmap GetSmallFlowersBitmap()\r\n\t{\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(m_SmallFlowersBitmap == null)\r\n\t\t\t{\r\n\t\t\t\tm_SmallFlowersBitmap = BitmapFactory.decodeResource(res, R.drawable.flowers);\r\n\t\t\t}\r\n\t\t\timage = m_SmallFlowersBitmap;\r\n\t\t} \r\n\t\treturn image;\r\n\t}",
"public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }",
"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 }",
"public Bitmap getFinalShapesImage();",
"Bitmap m7900a(Bitmap bitmap);",
"public final ImageProcessor getImage() {\r\n return image;\r\n }",
"private Bitmap getBitmapFromMemCache(String key) {\n return mLruCache.get(key);\n }",
"Imagem getImagem();",
"public static Bitmap GetScoreSourceBitmap()\r\n\t{\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\t//image = BitmapFactory.decodeResource(res, R.drawable.scores);\r\n\t\t\tif(m_ScoreSourceBitmap == null)\r\n\t\t\t{\r\n\t\t\t\tm_ScoreSourceBitmap = BitmapFactory.decodeResource(res, R.drawable.scores);\r\n\t\t\t}\r\n\t\t\timage = m_ScoreSourceBitmap;\r\n\t\t} \r\n\t\treturn image;\r\n\t}",
"public static Bitmap get(String key) {\n Bitmap bitmap = getFromMemory(key);\n if (bitmap == null) {\n bitmap = getFromDisk(key);\n }\n return bitmap;\n }",
"public static Bitmap GetCardSoruceBitmap()\r\n\t{\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(IsPortraitMode())\r\n\t\t\t{\r\n\t\t\t\tif(m_CardBitmapProtrait == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tm_CardBitmapProtrait = BitmapFactory.decodeResource(res, R.drawable.card);\r\n\t\t\t\t}\r\n\t\t\t\timage = m_CardBitmapProtrait;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(m_CardBitmapLandscape == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tm_CardBitmapLandscape = BitmapFactory.decodeResource(res, R.drawable.card2);\r\n\t\t\t\t}\r\n\t\t\t\timage = m_CardBitmapLandscape;\r\n\t\t\t}\r\n\t\t} \r\n\t\treturn image;\r\n\t}",
"public static Bitmap getBitmap(String path) {\n Bitmap bitmap = null;\n try {\n Log.i(\"FileManager\", \"GetBitmap: \" + path);\n FileInputStream imgIS = new FileInputStream(new File(path));\n BufferedInputStream bufIS = new BufferedInputStream(imgIS);\n bitmap = BitmapFactory.decodeStream(bufIS);\n Log.i(\"FileManager\", \"GetBitmap Finished: \" + bitmap);\n } catch (FileNotFoundException e) { //catch fileinputstream exceptions\n e.printStackTrace();\n } //trying to get wallpaper from display cycle node\n return bitmap;\n }",
"public synchronized Bitmap get(ImageInfo paramK) {\n\t\tBitmap bitmap;\n//\t\tif (wrap != null) {\n//\t\t\tbitmap = wrap.getWrap();\n//\t\t\tif (bitmap != null && !bitmap.isRecycled()) {\n//\t\t\t\twrap.hit();\n//\t\t\t\tLog.v(\"GetBitmap\", \"GetBitmap1\");\n//\t\t\t} else {\n//\t\t\t\tbitmap = read(paramK);\n//\t\t\t\twrap.setWrap(bitmap);\n//\t\t\t\tmemoryCache.put(paramK, wrap);\n//\t\t\t\tLog.v(\"GetBitmap\", \"GetBitmap2\");\n//\t\t\t}\n//\t\t\tLog.v(\"GetBitmap\", \"GetBitmap3\");\n//\t\t} else {\n//\t\t\tbitmap = read(paramK);\n//\t\t\tmemoryCache.put(paramK, new BitmapWrap(bitmap));\n//\t\t\tLog.v(\"GetBitmap\", \"GetBitmap4\");\n//\t\t}\n\t\tbitmap =getBitmapFromCache(paramK);\n\t\tif(bitmap==null)\n\t\t{\n\t\t\tbitmap = read(paramK);\n\t\t\tif(bitmap!=null)\n\t\t\t{\n\t\t\t\taddImage2Cache(paramK,bitmap);\n\t\t\t}\n\t\t}\n\t\treturn bitmap;\n\t}",
"public final Class<Bitmap> mo2232mK() {\n return Bitmap.class;\n }",
"@Override\n\t\t\tpublic Bitmap getBitmap(String url) {\n\t\t\t\treturn cache.get(url);\n\t\t\t}",
"public Image getImage() {\r\n\t\treturn image;\r\n\t}",
"public Rectangle getCurrentRectangle() {\n return this.wotCharacter.getDrawable(this).getRectangle();\n }",
"public Map<?> getCurrentMap() {\n return this.currentArea;\n }",
"public Image getImage() {\n\t\treturn image;\n\t}",
"public Image getImage() {\n\t\treturn image;\n\t}",
"public Image getImage()\n {\n if (fill instanceof ImageFill)\n {\n return ((ImageFill) fill).getImage();\n }\n else\n {\n return null;\n }\n }",
"public BufferedImage getImage() {\n\t\t return img;\n\t}",
"public Bitmap getAvatarBitmap() {\n return mAvatarBitMap;\n }",
"public Image getImage() {\n\t\treturn image;\r\n\t}",
"public Image getSnapshot() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Matrix getCurrentImageViewMatrix() {\n\t\treturn mContext.getMainImage().getDisplayMatrix();\n\t}",
"public BufferedImage getImage() {\n\t\treturn this.image;\n\t}",
"public BufferedImage getImage() {\t\r\n\t\treturn this.image;\t\t\t\r\n\t}",
"public Image getImage() {\n\t\tif (State == \"NORMAL\") {\n\t\t\tBox = sBoxNormal.getImage();\n\t\t} else if (State == \"OK\") {\n\t\t\tBox = sBoxGoal.getImage();\n\t\t}\n\t\treturn Box;\n\t}",
"public BufferedImage getImage ( ) {\n\n BufferedImage img =\n param.Parameters.PROBLEM.getData(param.Parameters.STATE, program, 0, 0);\n\n System.gc();\n\n return img;\n \n }",
"public BufferedImage getBackgroundImage(){\n\t\treturn currentBackgroundImage;\n\t}",
"public BufferedImage bufferedImage() {\n return buffered;\n }",
"public Picture picture() {\n return pic;\n }",
"public static Bitmap GetLargeFlowersBitmap()\r\n\t{\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(m_LargeFlowersBitmap == null)\r\n\t\t\t{\r\n\t\t\t\tm_LargeFlowersBitmap = BitmapFactory.decodeResource(res, R.drawable.flowerl);\r\n\t\t\t}\r\n\t\t\timage = m_LargeFlowersBitmap;\r\n\t\t} \r\n\t\treturn image;\r\n\t}",
"@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}",
"public File getFileForPicture() {\r\n\t\tif(!isReady) prepare();\r\n\t\tif(!isReady) {\r\n\t\t\tLog.e(TAG,\"Not ready when taking picture\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tcurrentFile = new File(directory,getFileName());\r\n\t\treturn currentFile;\r\n\t}",
"public Image getBufferedBasicAvatar() {\n return bufferedBasicAvatar;\n }",
"public BufferedImage getImage() {\n return image;\n }",
"public GraphicsObjectWrapper<?> getCurrentWrapper(\n )\n {return GraphicsObjectWrapper.get(this);}",
"public Image getImage() {\r\n return image;\r\n }",
"Bitmap getThumbnail() {\n\t\treturn this.mThumbnail;\n\t}",
"@Override\n\tpublic final Image getImage() {\n\t\treturn this.getSprite().getImage();\n\t}",
"@Override\n\tpublic Bitmap fetch(String key) {\n\t\treturn (Bitmap) mMemoryCache.get(key);\n\t}",
"public Picture pic() {\n return pic;\n }",
"private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }",
"private Bitmap m6554e() {\n if (this.f5071h == null) {\n this.f5071h = m6555f();\n }\n return this.f5071h;\n }"
] | [
"0.8003209",
"0.7355034",
"0.7320539",
"0.7262836",
"0.72499365",
"0.70430523",
"0.70042735",
"0.700145",
"0.6881098",
"0.6839818",
"0.68345284",
"0.67457676",
"0.67219675",
"0.6711702",
"0.64854974",
"0.64121497",
"0.6400639",
"0.63126904",
"0.62737954",
"0.62657565",
"0.62240237",
"0.6223965",
"0.6207734",
"0.61934215",
"0.61882627",
"0.61599535",
"0.61517316",
"0.6139778",
"0.6139528",
"0.6132533",
"0.61312103",
"0.6124199",
"0.61131155",
"0.6095055",
"0.6062383",
"0.6050336",
"0.604103",
"0.6033593",
"0.60315967",
"0.60265726",
"0.6018593",
"0.6012619",
"0.6010864",
"0.5996233",
"0.5990576",
"0.59683985",
"0.595748",
"0.5956096",
"0.59285325",
"0.59280217",
"0.5895449",
"0.5888418",
"0.5887442",
"0.58856595",
"0.588347",
"0.5880772",
"0.5879083",
"0.58737093",
"0.58722043",
"0.58668816",
"0.5866838",
"0.5862481",
"0.5846502",
"0.5843315",
"0.5836286",
"0.5830528",
"0.58196735",
"0.5816568",
"0.5812198",
"0.5810587",
"0.5809954",
"0.5806823",
"0.58059686",
"0.58059686",
"0.5805568",
"0.57992774",
"0.5793667",
"0.5787412",
"0.57751817",
"0.577421",
"0.57672787",
"0.5766088",
"0.57547176",
"0.575021",
"0.57432103",
"0.5742113",
"0.5741189",
"0.5739975",
"0.5738048",
"0.57300293",
"0.572674",
"0.57183063",
"0.5716591",
"0.57153213",
"0.5707357",
"0.5707184",
"0.57016623",
"0.56990767",
"0.5694335",
"0.5683089"
] | 0.76920813 | 1 |
Return true if the main image has been modified by any of the feather tools. | public boolean getBitmapIsChanged() {
return mChanged;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isManipulated();",
"boolean isOssModified();",
"boolean hasPatch();",
"public boolean isTreeModified() {\n return FxContext.get().getTreeWasModified();\n }",
"public boolean shouldImageProcess() {\r\n\t\treturn table.getBoolean(SHOULD_IMAGE_PROCESS_KEY, false);\r\n\t}",
"boolean isModified();",
"boolean isModified();",
"public boolean hasBeenBinaryPatched() {\n //boolean ret = !buildID.startsWith(\"av3pVck1gb4eR\");\n MD5Digest digest = new MD5Digest();\n digest.update(instanceKeys.getBuildID());\n byte[] calculated = digest.getDigest();\n boolean ret = !Arrays.equals(calculated, buildDigest);\n //#ifdef FAKECONF\n ret = true;\n //#endif\n\n return ret;\n }",
"public final boolean imageUpdate(java.awt.Image image, int infoflags, int x, int y, int width, int height) {\r\n\treturn false;\r\n}",
"@Override\n\tpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {\n\t\treturn false;\n\t}",
"public\tboolean\tisModified() {\n\t\tif (getAddedProperties().size() > 0)\n\t\t\treturn\ttrue;\n\t\tif (getRemovedProperties().size() > 0)\n\t\t\treturn\ttrue;\n\t\tif (getAddedMethods().size() > 0)\n\t\t\treturn\ttrue;\n\t\tif (getRemovedMethods().size() > 0)\n\t\t\treturn\ttrue;\n\t\tif (getChangedMethods().size() > 0)\n\t\t\treturn\ttrue;\n\t\t\n\t\treturn\tfalse;\n\t}",
"boolean hasImageByTransform();",
"public boolean isModified();",
"public boolean isModified();",
"boolean shouldModify();",
"public boolean isMaybeModified() {\n if (Options.get().isModifiedDisabled())\n return !isUnknown(); // if we don't use the modified flag, use the fact that unknown implies non-modified\n return (flags & MODIFIED) != 0;\n }",
"public boolean hasChanges() {\n return Math.abs(this.x) > 1.0E-5f || Math.abs(this.y) > 1.0E-5f || Math.abs(this.scale - this.minimumScale) > 1.0E-5f || Math.abs(this.rotation) > 1.0E-5f || Math.abs(this.orientation) > 1.0E-5f;\n }",
"public boolean isModified()\n {\n // a class is only modifiable after it is loaded\n if (!m_fLoaded)\n {\n return m_fModified;\n }\n\n if (m_fModified || m_abClazz == null || m_pool.isModified())\n {\n return true;\n }\n\n // check all other VM sub-structures\n StringTable[] atbl = CONTAINED_TABLE;\n for (int i = 0; i < atbl.length; ++i)\n {\n Enumeration enmr = atbl[i].elements();\n while (enmr.hasMoreElements())\n {\n if (((VMStructure) enmr.nextElement()).isModified())\n {\n return true;\n }\n }\n }\n\n return false;\n }",
"public boolean isCheckingDirtyChildPainters()\n/* */ {\n/* 254 */ return this.checkForDirtyChildPainters;\n/* */ }",
"private boolean isDirty()\r\n {\r\n //\r\n return _modified;\r\n }",
"public boolean isSetWeatherImage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(WEATHERIMAGE$2) != 0;\n }\n }",
"public boolean hasImageByTransform() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }",
"public boolean isPaintable() {\n return modifiedEditor.isPaintable ();\n }",
"public boolean hasImageByTransform() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public final boolean isUpdated() {\n\t\treturn (m_flags & Updated) != 0 ? true : false;\n\t}",
"public boolean modified() {\r\n\t\treturn modified;\r\n\t}",
"public boolean isModified() {\n return MTBTypesKey_is_modified || \n type_is_modified || \n description_is_modified || \n tableName_is_modified || \n columnName_is_modified || \n createUser_is_modified || \n createDate_is_modified || \n updateUser_is_modified || \n updateDate_is_modified;\n }",
"public boolean isModified() {\r\n\t\treturn modified;\r\n\t}",
"default boolean isNeedToBeUpdated()\n {\n return getUpdateState().isUpdated();\n }",
"public boolean isToDeploy() {\r\n\t\treturn attachUpdates>0 || catUpdates>0 || catTransUpdates>0 || prodUpdates>0 || prodTransUpdates>0 || menuUpdates>0;\r\n\t}",
"public boolean isModified() {\n\t\treturn modified;\n\t\t}",
"protected boolean isDirty()\n/* */ {\n/* 284 */ boolean dirty = super.isDirty();\n/* 285 */ if (dirty) {\n/* 286 */ return true;\n/* */ }\n/* 288 */ if (isCheckingDirtyChildPainters()) {\n/* 289 */ for (Painter p : this.painters) {\n/* 290 */ if ((p instanceof AbstractPainter)) {\n/* 291 */ AbstractPainter ap = (AbstractPainter)p;\n/* 292 */ if (ap.isDirty()) {\n/* 293 */ return true;\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 298 */ return false;\n/* */ }",
"public boolean hasImage() {\n\t\treturn false;\n\t}",
"@Override\r\n public boolean doIsModified() {\r\n return this.updatedGroups.isEmpty();\r\n }",
"public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h)\r\n\t\t{\n\t\t\tif ((flags & ALLBITS) != 0) {\r\n\t\t\t\trepaint();\r\n\t\t\t}\r\n\t\t\treturn ((flags & (ALLBITS | ERROR)) == 0);\r\n\t\t}",
"public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h)\r\n\t\t{\n\t\t\tif ((flags & ALLBITS) != 0) {\r\n\t\t\t\trepaint();\r\n\t\t\t}\r\n\t\t\treturn ((flags & (ALLBITS | ERROR)) == 0);\r\n\t\t}",
"@WorkflowAction(loggable = false)\n public boolean isModified()\n throws WorkflowException, MappingException, RepositoryException, RemoteException;",
"public boolean stitchWillWork()\n {\n // get features\n ImageFeatures features = new ImageFeatures(this.vlImages.size());\n MatVector feature_find_masks = new MatVector(this.vlImages.size());\n computeImageFeatures(stitcher.featuresFinder(), this.vlImages, features, feature_find_masks);\n\n // get matches\n MatchesInfo matchesInfo = new MatchesInfo(this.vlImages.size());\n stitcher.featuresMatcher().apply2(features, matchesInfo, new UMat());\n stitcher.featuresMatcher().collectGarbage();\n\n // figure out if all the images should be in pano\n IntPointer indices = leaveBiggestComponent(features, matchesInfo, (float) stitcher.panoConfidenceThresh());\n// int[] ints = indices.getStringCodePoints();\n// System.out.println(indices.capacity());\n// System.out.println(\"len: \" + ints.length);\n// System.out.println(Arrays.toString(ints));\n\n // composePanorama relies on the fact that you will provide the same number of images as it determined the panorama should contain\n return indices.capacity() == this.vlImages.size();\n }",
"boolean hasAppliedModifier();",
"public boolean isModified() {\n boolean result = false;\n // check if general settings are modified\n if (generalModeKeepRadioButton.isSelected()) {\n result = settings.getGeneralSettings().getMode() != Mode.KEEP;\n } else if (generalModeUpdateRadioButton.isSelected()) {\n result = settings.getGeneralSettings().getMode() != Mode.UPDATE;\n } else if (generalModeReplaceRadioButton.isSelected()) {\n result = settings.getGeneralSettings().getMode() != Mode.REPLACE;\n }\n result = result || isCheckboxModified(generalLevelTypeCheckbox, settings.getGeneralSettings().getLevels().contains(Level.TYPE));\n result = result || isCheckboxModified(generalLevelMethodCheckbox, settings.getGeneralSettings().getLevels().contains(Level.METHOD));\n result = result || isCheckboxModified(generalLevelFieldCheckbox, settings.getGeneralSettings().getLevels().contains(Level.FIELD));\n result = result || isCheckboxModified(\n generalVisibilityPublicCheckbox, settings.getGeneralSettings().getVisibilities().contains(Visibility.PUBLIC));\n result = result || isCheckboxModified(\n generalVisibilityProtectedCheckbox, settings.getGeneralSettings().getVisibilities().contains(Visibility.PROTECTED));\n result = result || isCheckboxModified(\n generalVisibilityDefaultCheckbox, settings.getGeneralSettings().getVisibilities().contains(Visibility.DEFAULT));\n result = result || isCheckboxModified(\n generalVisibilityPrivateCheckbox, settings.getGeneralSettings().getVisibilities().contains(Visibility.PRIVATE));\n result = result || isCheckboxModified(generalOtherOverriddenMethodsCheckbox, settings.getGeneralSettings().isOverriddenMethods());\n result = result || isCheckboxModified(generalOtherSplittedClassName, settings.getGeneralSettings().isSplittedClassName());\n\n // check if templates settings are modified\n result = result || checkIfTableContentModified(classTemplatesTable.getSettings(),\n settings.getTemplateSettings().getClassTemplates());\n result = result || checkIfTableContentModified(constructorTemplatesTable.getSettings(),\n settings.getTemplateSettings().getConstructorTemplates());\n result = result || checkIfTableContentModified(methodTemplatesTable.getSettings(),\n settings.getTemplateSettings().getMethodTemplates());\n result = result || checkIfTableContentModified(fieldTemplatesTable.getSettings(),\n settings.getTemplateSettings().getFieldTemplates());\n\n return result;\n }",
"public boolean hasImage(){\n return imageResourceID != NO_IMAGE_PROVIED;\n\n }",
"public abstract boolean isRendered();",
"public boolean hasUpdated() {\n return fieldSetFlags()[5];\n }",
"public boolean isModified()\n\t{\n\t\treturn isModified;\n\t}",
"public boolean isModified() {\n return isModified;\n }",
"boolean hasImageByHandler();",
"public boolean isStModified() {\n return st_is_modified; \n }",
"public final boolean isModified() {\n return this.modified;\n }",
"public boolean isModified() {\n return roomstlogid_is_modified || \n\t\troomstid_is_modified || \n\t\troomid_is_modified || \n\t\tstatusdate_is_modified || \n\t\tst_is_modified || \n\t\tregbyid_is_modified || \n\t\tregdate_is_modified || \n\t\treservationroomid_is_modified || \n\t\troomtypeid_is_modified || \n\t\tblockroomid_is_modified || \n\t\tlogdate_is_modified;\n }",
"public boolean hasImageByHandler() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasLightWork() {\n/* 48 */ if (this.skyEngine != null && this.skyEngine.hasLightWork()) {\n/* 49 */ return true;\n/* */ }\n/* 51 */ return (this.blockEngine != null && this.blockEngine.hasLightWork());\n/* */ }",
"public boolean hasModifiedAt() {\n return modifiedAtBuilder_ != null || modifiedAt_ != null;\n }",
"public boolean update() {\n if(0==modified) return false;\n \n final int res = modified;\n if( (res&DIRTY_MODELVIEW)!=0 ) {\n setMviMvit();\n }\n modified=0;\n return res!=0;\n }",
"@java.lang.Override\n public boolean hasPatch() {\n return instance.hasPatch();\n }",
"boolean hasUpdateMask();",
"boolean hasUpdateMask();",
"boolean hasUpdateMask();",
"boolean hasUpdateMask();",
"@Override\n\tpublic boolean isMyImage() {\n\t\treturn false;\n\t}",
"public boolean isFlagged();",
"public boolean isMakeImage() {\n return makeImage;\n }",
"public boolean isSetImg() {\n return this.img != null;\n }",
"public boolean hasImageByHandler() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }",
"public abstract boolean teReproduces();",
"boolean hasUpdate();",
"boolean hasUpdate();",
"public boolean checkProgramChanged(){\r\n\t\tfor(int i = 0; i < paneCount(); i++) {\r\n\t\t\tif (!checkProgramChanged(i))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean hasImage() {\n return !getImageResourceIds().equals(\"\");\n }",
"@Override\n public Boolean hasEffect() {\n\treturn false;\n }",
"public boolean isDirty()\n\t{\n\t\tsynchronized (fileToSaveableMap)\n\t\t{\n\t\t\tfor (Saveable saveable: fileToSaveableMap.values())\n\t\t\t{\n\t\t\t\tif (saveable.isDirty())\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasImage() {\n return mAttractionImageResourceID != NO_IMAGE_AVAILABLE;\n }",
"public boolean isVisionChanged() {\n return visionChanged;\n }",
"boolean hasUpdateInodeFile();",
"public boolean isVisualFire ( ) {\n\t\treturn extract ( handle -> handle.isVisualFire ( ) );\n\t}",
"public boolean isDataChanged(){\r\n\t\t\r\n return customElementsForm.isSaveRequired();\r\n }",
"private boolean canChangeDocuments() {\n\n // If the text is modified, give the user a chance to\n // save it. Otherwise return true.\n\n if (fDocument.isModified()) {\n byte save = askSave(this, getTitle());\n if (save == YES) {\n return doSave();\n }\n else {\n return save == NO;\n }\n }\n else {\n return true;\n }\n }",
"public boolean isDataModified() {\r\n\t\tint stat = getPageDataStoresStatus();\r\n\r\n\t\tif (stat == DataStoreBuffer.STATUS_MODIFIED)\r\n\t\t\treturn true;\r\n\t\telse if (stat == DataStoreBuffer.STATUS_NEW_MODIFIED)\r\n\t\t\treturn true;\r\n\t\telse if (stat == DataStoreBuffer.STATUS_NEW)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"public boolean doModify() {\n return true;\n }",
"public boolean isProductVersionModified()\n\t{\n\t\treturn productVersionModified;\n\t}",
"public boolean hasImTrue() {\n return result.hasImTrue();\n }",
"public boolean isUpdate() {\r\n\t\treturn update;\r\n\t}",
"public boolean hasEffect(ItemStack is){\n\t\treturn true;\n\t}",
"public boolean isTypeModified() {\n return type_is_modified; \n }",
"public boolean isRun() {\n if (!isValid()) {\n return false;\n }\n else {\n if (tiles.get(0).getColour() == tiles.get(1).getColour()) {\n return true;\n } else {\n return false;\n }\n }\n }",
"@Override\n\tpublic boolean imageUpdate(Image arg0, int arg1, int arg2, int arg3, int arg4, int arg5) {\n\t\treturn false;\n\t}",
"public boolean isUpdateDateModified() {\n return updateDate_is_modified; \n }",
"boolean hasUpdateInode();",
"public boolean isGameUpdated() {\n if (gameUpdated) {\n gameUpdated = false;\n return true;\n }\n return false;\n }",
"public boolean hasFileInfo() {\n return fileInfoBuilder_ != null || fileInfo_ != null;\n }",
"public boolean isUpdateAllIntrospectedResources () {\n return updateAllIntrospectedResources;\n }",
"public boolean hasFileInfo() {\n return fileInfoBuilder_ != null || fileInfo_ != null;\n }",
"boolean isMotionImageryType();",
"private boolean shouldBuild(IResource resource) {\n \t\treturn resource.getType() == IResource.FILE && resource.getFileExtension().equals(\"gf\");\n \t}",
"public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(title, moduleCode, credits, memo, description, semester, tags);\n }",
"public boolean hasFileAttached()\n throws OculusException;",
"public void isImagePresent() {\r\n\t\t\t\r\n\t\t}",
"@Override\r\n public boolean hasContentModified(ContainerUser context)\r\n {\n return hasDescriptorPropertyChanged(ReportDescriptor.Prop.json.name());\r\n }",
"@Override\n public boolean isWorking() {\n return working && hasPlugin();\n }",
"@java.lang.Override\n public boolean hasModifiedAt() {\n return modifiedAt_ != null;\n }"
] | [
"0.6754513",
"0.6511757",
"0.628737",
"0.624725",
"0.6194792",
"0.61910695",
"0.61910695",
"0.61893815",
"0.614791",
"0.6129522",
"0.6129522",
"0.6113238",
"0.6108767",
"0.610631",
"0.610631",
"0.60731834",
"0.6071036",
"0.60202396",
"0.6014111",
"0.5993463",
"0.5968557",
"0.596548",
"0.5934004",
"0.592525",
"0.5920056",
"0.5913149",
"0.59036297",
"0.5898061",
"0.58979815",
"0.5879159",
"0.5858829",
"0.58493865",
"0.5839487",
"0.5833184",
"0.5824784",
"0.580404",
"0.580404",
"0.57717013",
"0.57563996",
"0.5749705",
"0.57289076",
"0.5722179",
"0.57070124",
"0.56885445",
"0.56757414",
"0.56599015",
"0.56595093",
"0.56587005",
"0.5657367",
"0.56528735",
"0.5636492",
"0.5631796",
"0.56258684",
"0.56134784",
"0.5608462",
"0.5603638",
"0.5603638",
"0.5603638",
"0.5603638",
"0.5598433",
"0.55902696",
"0.55897814",
"0.5588442",
"0.55868983",
"0.5584771",
"0.558341",
"0.558341",
"0.55692154",
"0.55575",
"0.555068",
"0.55450255",
"0.55446726",
"0.5544126",
"0.5533978",
"0.55206347",
"0.5514222",
"0.55118674",
"0.5507352",
"0.5502279",
"0.54980856",
"0.54954755",
"0.54943585",
"0.54912144",
"0.54895335",
"0.5488885",
"0.5488832",
"0.5488576",
"0.5487441",
"0.5483955",
"0.5481599",
"0.5481205",
"0.54799855",
"0.5479491",
"0.5476833",
"0.54630536",
"0.54599094",
"0.5459378",
"0.5454336",
"0.5452836",
"0.5451555"
] | 0.5526067 | 74 |
Return the active tool, null if there is not active tool. | @Override
public EffectEntry getCurrentEffect() {
return mCurrentEntry;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tool getActiveTool()\n {\n return GametableFrame.getGametableFrame().getGametableCanvas().getActiveTool();\n }",
"public Tool getCurrentTool() {\n return fCurrTool;\n }",
"public String getTool() {\n\t\treturn tool;\n\t}",
"public Tool getTool() {\n\treturn tool;\n }",
"public Tool tool() {\n return fTool;\n }",
"void setActiveTool(int tool) {\n this.activeTool = tool;\n }",
"public final int getToolID() {\n return toolID;\n }",
"public CommandLineTool getCommandLineToolInstance() {\n \treturn COMMAND_LINE_TOOL;\n }",
"public int getToolFlag() {\r\n return toolFlag;\r\n }",
"public String getToolname() {\r\n return toolname;\r\n }",
"public String getToolCommand();",
"public String getToolparam() {\r\n return toolparam;\r\n }",
"public String getToolnum() {\r\n return toolnum;\r\n }",
"public static Tool getTool(ItemStack item) {\n\t\tfor (final Tool t : tools)\n\t\t\tif (t.isTool(item))\n\t\t\t\treturn t;\n\n\t\treturn null;\n\t}",
"public String getToolisuse() {\r\n return toolisuse;\r\n }",
"public String getTooldept() {\r\n return tooldept;\r\n }",
"public ToolStatus getToolStatus() { return toolStatus;\n }",
"String getExternalToolName();",
"protected IDescriptor getActiveDescriptor() {\n if (editor != null) {\n return editor.getActiveDisplayPane().getDescriptor();\n }\n return null;\n }",
"public boolean isToolChangerOpen() {\n return toolChangerOpen;\n }",
"public static LinkTool getTool()\n {\n if (singleton == null) {\n // new Throwable(\"Warning: LinkTool.getTool: class not initialized by VUE\").printStackTrace();\n new LinkTool();\n }\n return singleton;\n }",
"private final ToggleableTool findTool(final ItemStack item) {\r\n\t\tfor (final ToggleableTool h : this.tools)\r\n\t\t\tif (h.equals(item))\r\n\t\t\t\treturn h;\r\n\r\n\t\treturn null;\r\n\t}",
"public String getToolhead() {\r\n return toolhead;\r\n }",
"public String getTooltype() {\r\n return tooltype;\r\n }",
"public String getToolteam() {\r\n return toolteam;\r\n }",
"public Tool getAdornmentTool() {\n\t\treturn renderingTool;\n\t}",
"public PLayer getToolLayer() {\n return toolLayer;\n }",
"public String getToolfilepath() {\r\n return toolfilepath;\r\n }",
"@Override\n\tpublic String getToolName() {\n\t\treturn name;\n\t}",
"public Layer getActiveLayer() {\n\t\treturn null;\n\t}",
"public boolean getActive()\n {\n return this.active;\n }",
"public Paint getTool(){\n return this.tool;\n }",
"public int getIndexTool() {\r\n return indexTool;\r\n }",
"public ToolBridge getToolBridge(long toolID){\n\t\tToolBridge toolBridge = null;\n\n\t\tIterator toolIterator = tools.iterator();\n\t\twhile(toolIterator.hasNext()){\n\t\t\tToolBridge tb = (ToolBridge) toolIterator.next();\n\t\t\tif(tb.getToolID() == toolID){\n\t\t\t\ttoolBridge = tb;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn toolBridge;\n\t}",
"public String getToolstandard() {\r\n return toolstandard;\r\n }",
"public java.lang.Boolean getActive() {\n return active;\n }",
"public String getToolfilename() {\r\n return toolfilename;\r\n }",
"public static IWorkbenchPage getActivePage() {\n\t\tIWorkbench wb = PlatformUI.getWorkbench();\t\t\n\t\tif(wb != null) {\n\t\t\tIWorkbenchWindow win = wb.getActiveWorkbenchWindow();\t\t\t\n\t\t\tif(win != null) {\n\t\t\t\tIWorkbenchPage page = win.getActivePage();\t\t\t\t\n\t\t\t\tif(page != null) {\n\t\t\t\t\treturn page;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String getActiveClass () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.activeClass);\r\n\t}",
"public final int getToolVersion() {\n return toolVersion;\n }",
"public String getTooldeptid() {\r\n return tooldeptid;\r\n }",
"public static Object getActiveGISProject() {\r\n Project project = ProjectPlugin.getPlugin().getProjectRegistry().getCurrentProject();\r\n \r\n if (project != null)\r\n return project;\r\n \r\n return ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject();\r\n }",
"public static int getDrawingTool(){ return selectedDrawingTool; }",
"public boolean getActive();",
"public boolean getActive();",
"public Active getActive() {\n return _active;\n }",
"public String getTooltypeid() {\r\n return tooltypeid;\r\n }",
"Optional<TXContext> findCurrent();",
"public static HystrixCommandKey getCurrentThreadExecutingCommand() {\n if (currentCommand == null) {\n // statics do \"interesting\" things across classloaders apparently so this can somehow be null ... \n return null;\n }\n return currentCommand.get().peek();\n }",
"public Boolean getActive() {\n return this.active;\n }",
"public Boolean getActive() {\n return this.active;\n }",
"public String getToolheadid() {\r\n return toolheadid;\r\n }",
"public static String getActiveProjectName() {\r\n Project project = ProjectPlugin.getPlugin().getProjectRegistry().getCurrentProject();\r\n \r\n if (project == null)\r\n project = ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject();\r\n \r\n return project.getName();\r\n }",
"public FirmwareFile getActiveFirmwareFile() {\n if (this.deviceFirmwareFiles.isEmpty()) {\n return null;\n }\n return this.deviceFirmwareFiles.last().getFirmwareFile();\n }",
"public Boolean getActive() {\n\t\treturn this.Active;\n\t}",
"public String getToolbar() {\n\t\treturn toolbar;\n\t}",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public static profile getActive(){\n return active;\n }",
"public static IWorkbenchWindow getActiveWorkbenchWindow() {\n if (getDefault() == null) {\n return null;\n }\n IWorkbench workBench = getDefault().getWorkbench();\n if (workBench == null) {\n return null;\n }\n return workBench.getActiveWorkbenchWindow();\n }",
"public synchronized IEditorPart getActiveEditor() {\n return activeEditorMap.get(currentWindow);\n }",
"public static IWorkbenchPage getActivePage() {\n IWorkbenchWindow window = getActiveWorkbenchWindow();\n if (window != null) {\n return window.getActivePage();\n }\n return null;\n }",
"private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }",
"protected SARLQuickfixProvider getTools() {\n\t\treturn this.tools.get();\n\t}",
"public String getToolteamid() {\r\n return toolteamid;\r\n }",
"public static ToolRegistery getInstance(){\n\t\treturn InstanceKeeper.instance;\n\t}",
"@Internal\n public Property<NativeToolChain> getToolChain() {\n return toolChain;\n }",
"public static String sActivePath() \r\n\t{\r\n\t\tString activePath = null;\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tactivePath = new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn activePath;\r\n\t}",
"public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }",
"public String getCurrentStage() {\n return getProperty(Property.CURRENT_STAGE);\n }",
"RenderTool getRenderTool();",
"public static IEditorPart getActiveEditor(){\r\n\t\tIWorkbench workbench = PlatformUI.getWorkbench();\r\n\t\tIWorkbenchWindow window = workbench.getActiveWorkbenchWindow();\r\n\t\tIWorkbenchPage page = window.getActivePage();\r\n\t\tIEditorPart editorPart = page.getActiveEditor();\r\n\t\treturn editorPart;\r\n\t}",
"public JToolBar getToolBar() {\n return toolBar;\n }",
"public static boolean isActive() {\n\t\treturn activated;\n\t}",
"public Options getActiveOpts() {\n return activeOpts;\n }",
"private String toolType() {\n\t\tfor (int toolId : mTools) {\n\t\t\tif (toolId == 267) return \"swords\";\n\t\t\tif (toolId == 292) return \"hoes\";\n\t\t\tif (toolId == 258) return \"axes\";\n\t\t\tif (toolId == 270) return \"pickaxes\";\n\t\t\tif (toolId == 257) return \"most picks\";\n\t\t\tif (toolId == 278) return \"high picks\";\n\t\t\tif (toolId == 256) return \"shovels\";\n\t\t}\n\t\treturn \"any tool\";\n\t}",
"public String getToolcheckstatus() {\r\n return toolcheckstatus;\r\n }",
"public String getToolString() {\r\n\t\treturn Utility.convertTo4Byte(ScoolConstants.NEW_WHITEBOARD_ACTION);\r\n\t}",
"public Boolean getActiveFlag() {\n\t\treturn activeFlag;\n\t}",
"public boolean getActiveNull() {\n return activeNull_;\n }",
"public Optional<QuayRepo> getToolFromQuay(final Tool tool) {\n final String repo = tool.getNamespace() + '/' + tool.getName();\n\n try {\n final QuayRepo quayRepo = repositoryApi.getRepo(repo, false);\n return Optional.of(quayRepo);\n } catch (ApiException e) {\n LOG.error(quayToken.getUsername() + \" could not read from \" + repo, e);\n }\n return Optional.empty();\n }",
"public boolean getActiveNull() {\n return activeNull_;\n }",
"public static IWorkbenchPage getActivePage() {\n\t IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow();\n\t if (window == null) {\n\t return null;\n\t }\n\t return window.getActivePage();\n\t}",
"public static Shell getActiveWorkbenchShell() {\n IWorkbenchWindow workBenchWindow = getActiveWorkbenchWindow();\n if (workBenchWindow == null) {\n return null;\n }\n return workBenchWindow.getShell();\n }",
"public XCDisplay getActiveDisplay() {\n\t\treturn activeDisplay;\n\t}",
"public Boolean getActiveflag() {\n return activeflag;\n }",
"public Integer getActiveTest() {\n\t return activeTest;\t\n\t}",
"@VisibleForTesting(otherwise = VisibleForTesting.NONE)\r\n LiveData<Task> getActiveTask();",
"public final BaseDodlesViewGroup getActiveLayer() {\n if (activeLayer == null) {\n activeLayer = getScene();\n }\n\n return activeLayer;\n }",
"public boolean isAutoActive()\n {\n return autoCommand != null && autoCommand.isActive();\n }",
"public ToolConsumer getConsumer() {\n\n return this.consumer;\n\n }",
"public static IProject getCurrentProject() {\n\t\tIProject activeProject = null;\n\t\tIWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tIEditorPart editorPart = window.getActivePage().getActiveEditor();\n\t\tif (editorPart != null) {\n\t\t\tIEditorInput input = editorPart.getEditorInput();\n\t\t\tif (input instanceof IFileEditorInput) {\n\t\t\t\tIFile file = ((IFileEditorInput) input).getFile();\n\t\t\t\tactiveProject = file.getProject();\n\t\t\t}\n\t\t}\n\t\treturn activeProject;\n\t}",
"public boolean getPollFocusedProgram() {\n String pollEnabled = settings.get(\"pollFocused\");\n \n return pollEnabled == null || pollEnabled.equals(\"true\");\n }",
"public AppDescriptor getSelected()\n {\n DefaultMutableTreeNode nodeSelected = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent();\n AppDescriptor appDesc = null;\n \n if( (nodeSelected != null) && (nodeSelected.getUserObject() instanceof AppDescriptor) )\n appDesc = (AppDescriptor) nodeSelected.getUserObject();\n \n return appDesc;\n }",
"public Sequence getActiveSequence() {\n\t\treturn activeSequence;\n\t}",
"public static boolean isActive(){\n return active;\n }",
"public boolean isProgramActive(String programId);",
"public final Brush getActiveBrush() {\n return activeBrush;\n }",
"protected Program getProgram() {\n final Holder<Program> holder = Holder.of( null );\n Hook.PROGRAM.run( holder );\n if ( holder.get() != null ) {\n return holder.get();\n }\n\n return Programs.standard();\n }",
"protected String getCurrentCode() {\n IDocument doc = EditorUtilities.getDocument(editor);\n if (doc != null) {\n return doc.get();\n }\n return null;\n }",
"public static Icon getToolWindow() {\n\t\tif (ApplicationInfo.getInstance().getBuild().getBaselineVersion() >= 182) {\n\t\t\treturn IconLoader.getIcon(\"/icons/org/antlr/intellij/plugin/toolWindowAntlr.svg\");\n\t\t}\n\n\t\treturn IconLoader.getIcon(\"/icons/org/antlr/intellij/plugin/antlr.png\");\n\t}",
"public String getToolremark() {\r\n return toolremark;\r\n }"
] | [
"0.8125013",
"0.7591143",
"0.7271299",
"0.7112257",
"0.7028241",
"0.6929161",
"0.65367573",
"0.6433011",
"0.6416984",
"0.63607997",
"0.62738097",
"0.6242683",
"0.6237923",
"0.6232981",
"0.6182981",
"0.61616546",
"0.61388755",
"0.6105423",
"0.59703046",
"0.59642977",
"0.59324664",
"0.5921263",
"0.58990467",
"0.58705395",
"0.5850908",
"0.5823784",
"0.5820715",
"0.5788291",
"0.5765111",
"0.57503176",
"0.5733482",
"0.5717764",
"0.5711171",
"0.56885195",
"0.5678692",
"0.56552595",
"0.56474465",
"0.5644683",
"0.5625727",
"0.5591427",
"0.55804867",
"0.55738807",
"0.55706316",
"0.5562593",
"0.5562593",
"0.55535054",
"0.55518705",
"0.5545398",
"0.55416125",
"0.55230653",
"0.55230653",
"0.55195135",
"0.55105656",
"0.5510251",
"0.5501209",
"0.54925746",
"0.5492425",
"0.5481523",
"0.5476522",
"0.543991",
"0.5438274",
"0.5433094",
"0.54263556",
"0.5406562",
"0.53850853",
"0.53792393",
"0.53712666",
"0.5359247",
"0.5353782",
"0.53456146",
"0.5341805",
"0.53412175",
"0.53335416",
"0.53325915",
"0.5331396",
"0.53217167",
"0.53076345",
"0.5306579",
"0.52897376",
"0.5284548",
"0.52783173",
"0.52630574",
"0.5262717",
"0.5258265",
"0.52570915",
"0.5254045",
"0.5254019",
"0.5245374",
"0.52423686",
"0.5236275",
"0.5212613",
"0.5206742",
"0.52007586",
"0.51992005",
"0.51946944",
"0.51915205",
"0.51841414",
"0.51837265",
"0.51827693",
"0.5173637",
"0.51602465"
] | 0.0 | -1 |
Return the current panel associated with the active tool. Null if there's no active tool | public AbstractEffectPanel getCurrentPanel() {
return mCurrentEffect;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCurrentPanel() {\n return this.currentPanel;\n }",
"public Tool getActiveTool()\n {\n return GametableFrame.getGametableFrame().getGametableCanvas().getActiveTool();\n }",
"@Override\n\tpublic Panel getPanel() {\n\t\treturn m_currentPanel;\n\t}",
"public Tool getCurrentTool() {\n return fCurrTool;\n }",
"public String getThePanel() {\r\n\t\treturn secretIt.currentS().puzzle();\r\n\t}",
"public AppPanel getPanel()\n\t\t{\n\t\t\treturn panel;\n\t\t}",
"public WizardPanelDescriptor getCurrentPanelDesc(){\n return currentPanel;\n }",
"public GridPanel getCurrentGraphPanel()\n\t{\n\t\tfor (Component comp : this.getComponents()) {\n\t\t\tif (comp.isVisible()) {\n\t\t\t\treturn (GridPanel) comp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public JPanel getCurrentPanel(){\n JPanel card = null;\n for (Component comp : contentPane.getComponents()) {\n if (comp.isVisible() == true) {\n return card;\n }\n }\n return null;\n }",
"private TestUnitPanel getSelectedPanel(){\n\t\t\n\t\tTestUnitPanel selectedPanel = (TestUnitPanel)tabbedPane.getComponentAt(tabbedPane.getSelectedIndex());\n\t\tConsoleLog.Print(\"[TestMonitor] returned Unit: \" + getUnitKey());\n\t\treturn selectedPanel;\n\t}",
"public ChatPanel getCurrentChat()\n {\n if(getChatTabCount() > 0)\n return (ChatPanel) chatTabbedPane.getSelectedComponent();\n else\n {\n int componentCount = mainPanel.getComponentCount();\n\n for (int i = 0; i < componentCount; i ++)\n {\n Component c = mainPanel.getComponent(i);\n\n if(c instanceof ChatPanel)\n return (ChatPanel) c;\n }\n }\n return null;\n }",
"public final Panel getPanel()\r\n\t{\r\n\t\treturn panel;\r\n\t}",
"public AbsBuilderLevelPanel getCurrentLevelPanel()\n\t{\n\t\tAbsBuilderLevelPanel card = null;\n\n\t\t//find the component that is set to visible (will be a JPanel\n\t\tfor (Component comp : pnlLevelSwitch.getComponents() ) {\n\t\t\tif (comp.isVisible() == true) {\n\t\t\t\tcard = (AbsBuilderLevelPanel)comp;\n\t\t\t}\n\t\t}\n\n\t\treturn card;\n\t}",
"public MainPanel getMainPanel() {\n return panel;\n }",
"public Tool tool() {\n return fTool;\n }",
"private JPanel getBasePanel() {\r\n\t\tif (basePanel == null) {\r\n\t\t\tbasePanel = new JPanel();\r\n\t\t\tbasePanel.setLayout(new BorderLayout());\r\n\t\t\tbasePanel.setBounds(new Rectangle(1, 1, 352, 129));\r\n\t\t\tbasePanel.add(getToolsToolBar(), BorderLayout.NORTH);\r\n\t\t\tbasePanel.add(getTotalSplitPane(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn basePanel;\r\n\t}",
"public Tool getTool() {\n\treturn tool;\n }",
"public JFXPanel getPanel()\n {\n return panel;\n }",
"public JPanel getMainPanelFromGameGUI() {\n\t\treturn gameView.getMainPanel();\n\t}",
"public String getPanelName()\n {\n return this.panelName;\n }",
"void setActiveTool(int tool) {\n this.activeTool = tool;\n }",
"public PanelFX getPanel() {\n return panel;\n }",
"public GamePanel getGamePanel() {\r\n return gamePanel;\r\n }",
"public JPanel getPanel()\n {\n return panel;\n }",
"public PLayer getToolLayer() {\n return toolLayer;\n }",
"org.parosproxy.paros.view.WorkbenchPanel getWorkbench() {\r\n\t\tif (paneStandard == null) {\r\n\t\t\tpaneStandard = new org.parosproxy.paros.view.WorkbenchPanel();\r\n\t\t\tpaneStandard.setLayout(new java.awt.CardLayout());\r\n\t\t\tpaneStandard.setName(\"paneStandard\");\r\n\t\t}\r\n\t\treturn paneStandard;\r\n\t}",
"public String getTool() {\n\t\treturn tool;\n\t}",
"public JPanel getPanel() {\n return panel;\n }",
"public int getPanelIndex(){\n\t\treturn tabbedPane.getSelectedIndex();\n\t}",
"public Pane<T> currentPane() {\n return currentPane(System.currentTimeMillis());\n }",
"protected IDescriptor getActiveDescriptor() {\n if (editor != null) {\n return editor.getActiveDisplayPane().getDescriptor();\n }\n return null;\n }",
"protected JPanel getPanel() {\n\t\treturn (JPanel) window.getContentPane();\n\t}",
"public Container getInfoPanel() {\n\t\treturn null;\n\t}",
"public FlexoPerspective getCurrentPerspective() {\n\t\tif (currentLocation != null) {\n\t\t\treturn currentLocation.getPerspective();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public synchronized IEditorPart getActiveEditor() {\n return activeEditorMap.get(currentWindow);\n }",
"JPanel getPanel();",
"public MenuPanel getMenuPanel() {return menuPanel;}",
"public GamePanel getGamePanel() {\n\t\treturn gamePanel;\n\t}",
"public boolean isPanelActive() {\n return getElement(container).getAttribute(\"class\").contains(\"rx-blade-expanded\");\n }",
"@Override\n\tpublic JPanel getPanel()\n\t{\n\t\treturn panel;\n\t}",
"public static int getDrawingTool(){ return selectedDrawingTool; }",
"public final BaseDodlesViewGroup getActiveLayer() {\n if (activeLayer == null) {\n activeLayer = getScene();\n }\n\n return activeLayer;\n }",
"public JPanel GetPanel() {\n\t\treturn JPprincipal;\n\t}",
"public final int getToolID() {\n return toolID;\n }",
"public Paint getTool(){\n return this.tool;\n }",
"public JPanel getMainPanel() {\n\t\treturn this.mainPanel;\n\t}",
"CartogramWizardPanelOne getPanelOne ()\n\t{\n\t\treturn mPanelOne;\n\t}",
"public MainPanel getMainPanel() {\n return mainPanel;\n }",
"public BoardView getActiveBoard() {\n if (activePlayer == Piece.COLOR.RED)\n return getRedBoard();\n else\n return getWhiteBoard();\n }",
"public Layer getActiveLayer() {\n\t\treturn null;\n\t}",
"public String getCurrentStage() {\n return getProperty(Property.CURRENT_STAGE);\n }",
"public PanelDisplayProject getDisplayProject(){\n return displayProject;\n }",
"public JPanel getJPanel();",
"public JPanel getJPanel();",
"public static IEditorPart getActiveEditor(){\r\n\t\tIWorkbench workbench = PlatformUI.getWorkbench();\r\n\t\tIWorkbenchWindow window = workbench.getActiveWorkbenchWindow();\r\n\t\tIWorkbenchPage page = window.getActivePage();\r\n\t\tIEditorPart editorPart = page.getActiveEditor();\r\n\t\treturn editorPart;\r\n\t}",
"public JPanel getPanel() {\n RepositoryPanel repositoryPanel = (RepositoryPanel) repositoryStep.getComponent();\n return repositoryPanel;\n }",
"public JPanel getPanel(){\n return panel;\n }",
"public static Object getActiveGISProject() {\r\n Project project = ProjectPlugin.getPlugin().getProjectRegistry().getCurrentProject();\r\n \r\n if (project != null)\r\n return project;\r\n \r\n return ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject();\r\n }",
"public HelpTopic getCurrentItem() {\n return position < 0 ? null : getItem(position);\n }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn toolbox;\n\t}",
"public static IProject getCurrentProject() {\n\t\tIProject activeProject = null;\n\t\tIWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tIEditorPart editorPart = window.getActivePage().getActiveEditor();\n\t\tif (editorPart != null) {\n\t\t\tIEditorInput input = editorPart.getEditorInput();\n\t\t\tif (input instanceof IFileEditorInput) {\n\t\t\t\tIFile file = ((IFileEditorInput) input).getFile();\n\t\t\t\tactiveProject = file.getProject();\n\t\t\t}\n\t\t}\n\t\treturn activeProject;\n\t}",
"@Override\n\tpublic Panel getPanel(GameSprite param1) {\n\t\treturn null;\n\t}",
"public JPanel getInfo() {\n return info;\n }",
"public JComponent getComponent() { return _panel; }",
"public XCDisplay getActiveDisplay() {\n\t\treturn activeDisplay;\n\t}",
"private JPanel getPanelSession() {\n if (panelContext == null) {\n panelContext = new JPanel();\n panelContext.setLayout(new GridBagLayout());\n\n if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption()\n == 0) {\n panelContext.setSize(180, 101);\n }\n\n panelContext.add(\n new JLabel(Constant.messages.getString(\"context.label.name\")),\n LayoutHelper.getGBC(0, 0, 1, 1.0D));\n panelContext.add(getTxtName(), LayoutHelper.getGBC(0, 1, 1, 1.0D));\n panelContext.add(getChkInScope(), LayoutHelper.getGBC(0, 2, 2, 1.0D));\n panelContext.add(\n new JLabel(Constant.messages.getString(\"context.label.desc\")),\n LayoutHelper.getGBC(0, 3, 1, 1.0D));\n panelContext.add(getTxtDescription(), LayoutHelper.getGBC(0, 4, 1, 1.0D, 1.0D));\n }\n return panelContext;\n }",
"public InfoView getInfoView() {\r\n return infoPanel;\r\n }",
"public Component getSelf(ExecutionCtrl exec);",
"public IPrivateTestCompView.IContextElement currentContextElement() {\r\n return (IPrivateTestCompView.IContextElement) getCurrentElement();\r\n }",
"CartogramWizardRunningPanel getRunningPanel ()\n\t{\t\n\t\treturn mRunningPanel;\n\t}",
"protected Screen getCurrentScreen() {\n return this.currentScreen;\n }",
"public Slide getCurrentSlide() {\n\t\treturn getSlide(currentSlideNumber);\n\t}",
"public ControlPanel controlPanel() {\n return this.controlPanel;\n }",
"@Override\n\tpublic JPanel obtenerPanel() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic JPanel obtenerPanel() {\n\t\treturn null;\n\t}",
"public BaseEditorPanel getEditorPanel ()\n {\n return _epanel;\n }",
"public WaveformViewer getActiveWaveformViewerPart() {\n\t\treturn waveformViewerPart;\n\t}",
"public static String getActiveProjectName() {\r\n Project project = ProjectPlugin.getPlugin().getProjectRegistry().getCurrentProject();\r\n \r\n if (project == null)\r\n project = ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject();\r\n \r\n return project.getName();\r\n }",
"public LauncherPanel getLauncherPanel(){\n return this.launcherPanel;\n }",
"public Plot getCurrentPlot() {\n final Plot plot = Identifiable.clone(getCurrentPlotRef());\n\n if (logger.isDebugEnabled()) {\n logger.debug(\"getCurrentPlot {}\", plot);\n }\n return plot;\n }",
"public EditPanel getEditPanel() { return ep; }",
"public SensorPanelPresenter getPanel(){\n return this.panel;\n }",
"public JPanel getMainPanel() {\n return mainPanel;\n }",
"public Component getSingleTab() {\r\n return singleTab;\r\n }",
"DomainArtifactsTabPanel.ArtifactRetrievalStatus getCurrentTabStatus() {\n if (jTabbedPane1.getSelectedComponent() instanceof MiniTimelinePanel) {\n return ((MiniTimelinePanel) jTabbedPane1.getSelectedComponent()).getStatus();\n } else if (jTabbedPane1.getSelectedComponent() instanceof DomainArtifactsTabPanel) {\n return ((DomainArtifactsTabPanel) jTabbedPane1.getSelectedComponent()).getStatus();\n }\n return null;\n }",
"public int getIndexTool() {\r\n return indexTool;\r\n }",
"@Override\npublic JPanel getSpecificPanel() {\n\treturn null;\n}",
"public String getTooldept() {\r\n return tooldept;\r\n }",
"protected JPanel getTopPanel() {\n List topComps = new ArrayList();\n getTopComponents(topComps);\n if (topComps.size() == 0) {\n return null;\n }\n JPanel topPanel = GuiUtils.left(GuiUtils.doLayout(topComps, 0, GuiUtils.WT_N, GuiUtils.WT_N));\n topPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n \n return McVGuiUtils.makeLabeledComponent(\"Options:\", topPanel);\n }",
"public static IWorkbenchPage getActivePage() {\n\t\tIWorkbench wb = PlatformUI.getWorkbench();\t\t\n\t\tif(wb != null) {\n\t\t\tIWorkbenchWindow win = wb.getActiveWorkbenchWindow();\t\t\t\n\t\t\tif(win != null) {\n\t\t\t\tIWorkbenchPage page = win.getActivePage();\t\t\t\t\n\t\t\t\tif(page != null) {\n\t\t\t\t\treturn page;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public TetrisPiece getCurrentPiece() {\n\t\treturn currentPiece;\n\t}",
"public synchronized IWorkbenchWindow getCurrentWindow() {\n return currentWindow;\n }",
"public JComponent getToolbarComponent()\n {\n return _box;\n }",
"public ToolBar getParent () {\r\n\tcheckWidget();\r\n\treturn parent;\r\n}",
"private ChatBox getCurrentChat() {\n if (!paneChatBox.getChildren().isEmpty()) {\n Node first = paneChatBox.getChildren().get(0);\n if (first instanceof ChatBox) {\n return (ChatBox) first;\n }\n }\n\n return null;\n }",
"public JPanel getJPanel() {\r\n\t\treturn jPanel;\r\n\t}",
"public SAPTopLevelTestObject getActiveWindow(){\n\t\treturn new SAPTopLevelTestObject(mainWnd);\n\t}",
"public JToolBar getToolBar() {\n return toolBar;\n }",
"public Plot getCurrentPlotRef() {\n Plot plot = getPlotRef(CURRENT_VIEW);\n if (plot == null) {\n plot = new Plot();\n plot.setId(CURRENT_VIEW);\n\n // define current pointers:\n plot.setSubsetDefinition(getCurrentSubsetDefinitionRef());\n plot.setPlotDefinition(getCurrentPlotDefinitionRef());\n\n addPlotRef(plot);\n }\n return plot;\n }",
"private int getCurrentWindow() {\n // Subscribe to window information\n AccessibilityServiceInfo info = mUiAutomation.getServiceInfo();\n info.flags |= AccessibilityServiceInfo.FLAG_RETRIEVE_INTERACTIVE_WINDOWS;\n mUiAutomation.setServiceInfo(info);\n\n AccessibilityNodeInfo activeWindowRoot = mUiAutomation.getRootInActiveWindow();\n\n for (AccessibilityWindowInfo window : mUiAutomation.getWindows()) {\n if (window.getRoot().equals(activeWindowRoot)) {\n return window.getId();\n }\n }\n throw new RuntimeException(\"Could not find active window\");\n }"
] | [
"0.7603983",
"0.72878456",
"0.7118698",
"0.7095997",
"0.688131",
"0.6826975",
"0.6746208",
"0.66852593",
"0.6679306",
"0.6575525",
"0.6562122",
"0.652386",
"0.64790636",
"0.6216165",
"0.6089839",
"0.6077692",
"0.6075351",
"0.6067555",
"0.60552007",
"0.6018494",
"0.60037786",
"0.59698075",
"0.5947728",
"0.5926829",
"0.59070545",
"0.58958685",
"0.5895353",
"0.5886601",
"0.5874945",
"0.581304",
"0.57910246",
"0.57742167",
"0.5765871",
"0.5762652",
"0.575844",
"0.5756842",
"0.57525736",
"0.5748163",
"0.57398134",
"0.5723995",
"0.5723143",
"0.5708937",
"0.5694296",
"0.56926686",
"0.56823474",
"0.5676147",
"0.56700605",
"0.56457186",
"0.56222874",
"0.56165916",
"0.5593669",
"0.55877",
"0.558759",
"0.558759",
"0.55724126",
"0.5566415",
"0.5548898",
"0.55361474",
"0.5532194",
"0.55171496",
"0.5502172",
"0.54910356",
"0.5483522",
"0.5471116",
"0.5455352",
"0.54493976",
"0.5444907",
"0.5435402",
"0.543455",
"0.54160714",
"0.54126436",
"0.5411478",
"0.5404279",
"0.54042655",
"0.54042655",
"0.5403977",
"0.53963494",
"0.5393822",
"0.53926",
"0.53781784",
"0.53770584",
"0.53753364",
"0.53676486",
"0.5361364",
"0.5354121",
"0.5347523",
"0.5344529",
"0.53278816",
"0.5316673",
"0.53132796",
"0.5313269",
"0.5310928",
"0.5307869",
"0.5307628",
"0.52938426",
"0.52914894",
"0.52833563",
"0.52817464",
"0.5281078",
"0.52787393"
] | 0.6611449 | 9 |
Return the current image transformation matrix. this is useful for those tools which implement ContentPanel and want to display the preview bitmap with the same zoom level of the main image | @Override
public Matrix getCurrentImageViewMatrix() {
return mContext.getMainImage().getDisplayMatrix();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix getTransform()\n {\n return transform;\n }",
"public Matrix4 getTransformMatrix() {\n return transformMatrix;\n }",
"public AffineTransform getTransform()\n/* */ {\n/* 194 */ return this.transform;\n/* */ }",
"public Transform getTransformation() {\n Transform t = Transform.newTranslation(position);\n t = t.compose(Transform.newScale(scale));\n t = t.compose(Transform.newXRotation(rotation.x));\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"public AffineTransform getTransform() {\n return new AffineTransform(transform);\n }",
"protected Matrix4 computeTransform() {\n return super.computeTransform();\n }",
"public AffineTransform getTransform()\r\n\t{\r\n\t\treturn _g2.getTransform();\r\n\t}",
"public Matrix4f getTranslationMat() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_translateMat;\n\t}",
"@Override\n\tpublic Mat GetTranslateMatrix()\n\t{\n\t\treturn mT;\n\t}",
"public double[][] convert_img_mat()\n\t{\n\t\tif(orderflag)\n\t\t{\n\t\t\tputpixel_1();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//rotate the image and get the pixels as usual form\t\n \t\tputpixel_2();\n\t\t}\n\treturn matrix;\n\t}",
"public abstract Matrix4f getCameraMatrix();",
"public final Transformation getTransformation() {\n\t\treturn transform;\n\t}",
"public RMTransform getTransform()\n{\n return new RMTransform(getX(), getY(), getRoll(), getWidth()/2, getHeight()/2,\n getScaleX(), getScaleY(), getSkewX(), getSkewY());\n}",
"protected Matrix4 computeTransform() {\n return internalGroup.computeTransform();\n }",
"public Mat4x4 getMatView() {\n Mat4x4 matCameraRotX = MatrixMath.matrixMakeRotationX(cameraRot.getX());\n Mat4x4 matCameraRotY = MatrixMath.matrixMakeRotationY(cameraRot.getY());\n Mat4x4 matCameraRotZ = MatrixMath.matrixMakeRotationZ(cameraRot.getZ());\n Mat4x4 matCameraRotXY = MatrixMath.matrixMultiplyMatrix(matCameraRotX, matCameraRotY);\n Mat4x4 matCameraRot = MatrixMath.matrixMultiplyMatrix(matCameraRotXY, matCameraRotZ);\n matCamera = calculateMatCamera(up, target, matCameraRot);\n matView = MatrixMath.matrixQuickInverse(matCamera);\n return matView;\n }",
"public Transformation getTransform() {\n\t\treturn mk;\n\t}",
"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 }",
"float[] getViewMatrix();",
"public AffineTransform getOldAffineTransform ( )\n {\n return oldAffineTransformation;\n }",
"public Transform getTransform() {return transform;}",
"abstract public Matrix4fc getViewMatrix();",
"public Matrix4f getScaleMat() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_scaleMat;\n\t}",
"public Matrix4f getWorldMatrix() {\n\n\t\t// First identity\n\t\tmTranformation.identity();\n\n\t\t// Translate\n\t\tmTranformation.translate(position);\n\n\t\t// Rotate object at the center of the texture\n\t\tfloat x = 0.5f * mWidth;\n\t\tfloat y = 0.5f * mHeight;\n\n\t\t// Do rotating\n\t\tmTranformation.translate(new Vector3f(x, y, 0));\n\t\tmTranformation.rotateZ((float) Math.toRadians(rotation.z));\n\t\tmTranformation.translate(new Vector3f(-x, -y, 0));\n\n\t\t// mTranformation.scale(scale, scale, 1);\n\t\tmTranformation.scaleAround(scale, x, y, 0);\n\n\t\treturn mTranformation;\n\t}",
"public float[] getViewMatrix() {\n\t\treturn viewMatrix;\n\t}",
"public AffineTransform getAffineTransform() {\n return affineTransform;\n }",
"public Transform getTransform () {\n\t\torg.jbox2d.common.Transform trans = body.getTransform();\n\t\ttransform.vals[Transform.POS_X] = trans.p.x;\n\t\ttransform.vals[Transform.POS_Y] = trans.p.y;\n\t\ttransform.vals[Transform.COS] = trans.q.c;\n\t\ttransform.vals[Transform.SIN] = trans.q.s;\n\t\treturn transform;\n\t}",
"public AffineTransform getInitialCtm(\n )\n {\n AffineTransform initialCtm;\n if(getScanner().getRenderContext() == null) // Device-independent.\n {\n initialCtm = new AffineTransform(); // Identity.\n }\n else // Device-dependent.\n {\n IContentContext contentContext = getScanner().getContentContext();\n Dimension2D canvasSize = getScanner().getCanvasSize();\n\n // Axes orientation.\n RotationEnum rotation = contentContext.getRotation();\n switch(rotation)\n {\n case Downward:\n initialCtm = new AffineTransform(1, 0, 0, -1, 0, canvasSize.getHeight());\n break;\n case Leftward:\n initialCtm = new AffineTransform(0, 1, 1, 0, 0, 0);\n break;\n case Upward:\n initialCtm = new AffineTransform(-1, 0, 0, 1, canvasSize.getWidth(), 0);\n break;\n case Rightward:\n initialCtm = new AffineTransform(0, -1, -1, 0, canvasSize.getWidth(), canvasSize.getHeight());\n break;\n default:\n throw new NotImplementedException();\n }\n\n // Scaling.\n Rectangle2D contentBox = contentContext.getBox();\n Dimension2D rotatedCanvasSize = rotation.transform(canvasSize);\n initialCtm.scale(\n rotatedCanvasSize.getWidth() / contentBox.getWidth(),\n rotatedCanvasSize.getHeight() / contentBox.getHeight()\n );\n\n // Origin alignment.\n initialCtm.translate(-contentBox.getMinX(), -contentBox.getMinY());\n }\n return initialCtm;\n }",
"public TransformationMatrix() {\n\t\ta11 = 1; a12 = 0; a13 = 0; a14 = 0;\n\t\ta21 = 0; a22 = 1; a23 = 0; a24 = 0;\n\t\ta31 = 0; a32 = 0; a33 = 1; a34 = 0;\n\t}",
"@Override\n\t\tpublic GLGroupTransform transforms() { return transforms; }",
"public Matrix getCurrentRotation() throws ManipulatorException;",
"private void getProperBaseMatrix(Matrix matrix) \r\n {\r\n \tif(mViewWidth == 0)\r\n \t\treturn;\r\n \t\r\n \tfloat w = mRoBitmap.getWidth();\r\n \tfloat h = mRoBitmap.getHeight();\r\n \t\r\n matrix.reset();\r\n // We limit up-scaling to 3x otherwise the result may look bad if it's\r\n // a small icon.\r\n float widthScale = (float)((float)mViewWidth / w);//Math.min((float)((float)mViewWidth / w), 3.0f);\r\n float heightScale = (float)((float)mViewHeight / h);//Math.min((float)((float)mViewHeight / h), 3.0f);\r\n float scale = Math.max(widthScale, heightScale);\r\n \r\n matrix.postConcat(mRoBitmap.getRotateMatrix());\r\n matrix.postScale(scale, scale);\r\n\r\n matrix.postTranslate(\r\n (mViewWidth - w * scale) / 2F,\r\n (mViewHeight - h * scale) / 2F);\r\n }",
"public Matrix4f getCameraMatrix() {\n\t\treturn mCameraMatrix;\n\t}",
"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}",
"Transforms getTransforms();",
"@Override\n\tpublic RectTransform getTransform() {\n\t\treturn (RectTransform) super.getTransform();\n\t}",
"public Transform getRotationTransformation() {\n Transform t = Transform.newXRotation(rotation.x);\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"private AffineTransform createTransform() {\n Dimension size = getSize();\n Rectangle2D.Float panelRect = new Rectangle2D.Float(\n BORDER,\n BORDER,\n size.width - BORDER - BORDER,\n size.height - BORDER - BORDER);\n AffineTransform tr = AffineTransform.getTranslateInstance(panelRect.getCenterX(), panelRect.getCenterY());\n double sx = panelRect.getWidth() / mapBounds.getWidth();\n double sy = panelRect.getHeight() / mapBounds.getHeight();\n double scale = min(sx, sy);\n tr.scale(scale, -scale);\n tr.translate(-mapBounds.getCenterX(), -mapBounds.getCenterY());\n return tr;\n }",
"public Mat getConvertedImage() {\n return this.convertedImage;\n }",
"public static Matrix getTransformMatrix(int width, int height, int rotation) {\n Matrix matrix = new Matrix();\n\n // Compute the center of the view finder\n float centerX = width / 2f;\n float centerY = height / 2f;\n\n // Correct preview output to account for display rotation\n float rotationDegrees =\n OrientationUtil.displayRotationToDegrees(rotation);\n matrix.postRotate(-rotationDegrees, centerX, centerY);\n\n return matrix;\n }",
"protected Matrix calculateTextureTransform(Size textureSize, Size previewSize) {\n float ratioTexture = (float) textureSize.width / (float) textureSize.height;\n float ratioPreview = (float) previewSize.width / (float) previewSize.height;\n\n float scaleX;\n float scaleY;\n\n // We scale so that either width or height fits exactly in the TextureView, and the other\n // is bigger (cropped).\n if (ratioTexture < ratioPreview) {\n scaleX = ratioPreview / ratioTexture;\n scaleY = 1;\n } else {\n scaleX = 1;\n scaleY = ratioTexture / ratioPreview;\n }\n\n Matrix matrix = new Matrix();\n\n matrix.setScale(scaleX, scaleY);\n\n // Center the preview\n float scaledWidth = textureSize.width * scaleX;\n float scaledHeight = textureSize.height * scaleY;\n float dx = (textureSize.width - scaledWidth) / 2;\n float dy = (textureSize.height - scaledHeight) / 2;\n\n // Perform the translation on the scaled preview\n matrix.postTranslate(dx, dy);\n\n return matrix;\n }",
"float[] getProjectionMatrix();",
"private void updateBaseMatrix(Drawable d) {\n ImageView imageView = getImageView();\n if (null == imageView || null == d) {\n return;\n }\n\n final float viewWidth = getImageViewWidth(imageView);\n final float viewHeight = getImageViewHeight(imageView);\n final int drawableWidth = d.getIntrinsicWidth();\n final int drawableHeight = d.getIntrinsicHeight();\n\n mBaseMatrix.reset();\n\n final float widthScale = viewWidth / drawableWidth;\n final float heightScale = viewHeight / drawableHeight;\n\n if (mScaleType == ScaleType.CENTER) {\n mBaseMatrix.postTranslate((viewWidth - drawableWidth) / 2F,\n (viewHeight - drawableHeight) / 2F);\n\n } else if (mScaleType == ScaleType.CENTER_CROP) {\n float scale = Math.max(widthScale, heightScale);\n mBaseMatrix.postScale(scale, scale);\n mBaseMatrix.postTranslate((viewWidth - drawableWidth * scale) / 2F,\n (viewHeight - drawableHeight * scale) / 2F);\n\n } else if (mScaleType == ScaleType.CENTER_INSIDE) {\n float scale = Math.min(1.0f, Math.min(widthScale, heightScale));\n mBaseMatrix.postScale(scale, scale);\n mBaseMatrix.postTranslate((viewWidth - drawableWidth * scale) / 2F,\n (viewHeight - drawableHeight * scale) / 2F);\n\n } else {\n RectF mTempSrc = new RectF(0, 0, drawableWidth, drawableHeight);\n RectF mTempDst = new RectF(0, 0, viewWidth, viewHeight);\n\n switch (mScaleType) {\n case FIT_CENTER:\n mBaseMatrix\n .setRectToRect(mTempSrc, mTempDst, ScaleToFit.CENTER);\n break;\n\n case FIT_START:\n mBaseMatrix.setRectToRect(mTempSrc, mTempDst, ScaleToFit.START);\n break;\n\n case FIT_END:\n mBaseMatrix.setRectToRect(mTempSrc, mTempDst, ScaleToFit.END);\n break;\n\n case FIT_XY:\n mBaseMatrix.setRectToRect(mTempSrc, mTempDst, ScaleToFit.FILL);\n break;\n\n default:\n break;\n }\n }\n\n resetMatrix();\n }",
"public abstract BufferedImage transform();",
"public void updateTransformMatrix(float[] fArr) {\n boolean z;\n float f;\n float f2;\n boolean z2 = true;\n if (!this.mVideoStabilizationCropped || !ModuleManager.isVideoModule()) {\n f2 = 1.0f;\n f = 1.0f;\n z = false;\n } else {\n f2 = MOVIE_SOLID_CROPPED_X * 1.0f;\n f = MOVIE_SOLID_CROPPED_Y * 1.0f;\n z = true;\n }\n if (this.mNeedCropped) {\n f2 *= this.mScaleX;\n f *= this.mScaleY;\n z = true;\n }\n if (this.mDisplayOrientation == 0) {\n z2 = z;\n }\n if (z2) {\n Matrix.translateM(fArr, 0, 0.5f, 0.5f, 0.0f);\n Matrix.rotateM(fArr, 0, (float) this.mDisplayOrientation, 0.0f, 0.0f, 1.0f);\n Matrix.scaleM(fArr, 0, f2, f, 1.0f);\n Matrix.translateM(fArr, 0, -0.5f, -0.5f, 0.0f);\n }\n }",
"public int[][] getMat() {\n // Note: java has no return read-only so we won't return matrix;\n // b\\c that would expose internal representation. Instead we will\n // copy each row into a new matrix, and return that.\n return Helper.cloneMatrix(matrix);\n }",
"public float[] getProjectionMatrix() {\n\t\treturn projectionMatrix;\n\t}",
"private void applyTransform() {\n GlStateManager.rotate(180, 1.0F, 0.0F, 0.0F);\n GlStateManager.translate(offsetX, offsetY - 26, offsetZ);\n }",
"public Matrix getMatrix() {\n Matrix matrix2 = new Matrix();\n matrix2.set(this.matrix);\n return matrix2;\n }",
"public Matrix getMatrix() {\n\t\treturn matrix;\n\t}",
"@Override\r\n protected Matrix4f genViewMatrix() {\r\n\r\n // refreshes the position\r\n position = calcPosition();\r\n\r\n // calculate the camera's coordinate system\r\n Vector3f[] coordSys = genCoordSystem(position.subtract(center));\r\n Vector3f right, up, forward;\r\n forward = coordSys[0];\r\n right = coordSys[1];\r\n up = coordSys[2];\r\n\r\n // we move the world, not the camera\r\n Vector3f position = this.position.negate();\r\n\r\n return genViewMatrix(forward, right, up, position);\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 }",
"@Override\n public AffineTransform getAffineTransform() {\n return null;\n }",
"public AffineTransform getTm(\n )\n {return tm;}",
"@Override\n public float[] getRotationMatrix(){\n float[] baseCorrection = Maths.buildRotationMatrix(new float[]{0, 1, 0, 0});\n\n float[] rotationX = {(float) Math.toDegrees(theta), 1, 0, 0};\n float[] rotationY = {(float) -Math.toDegrees(phi), 0, 1, 0};\n\n float[] rotationMatrix = new float[16];\n float[] coreMotionMatrix = Maths.buildRotationMatrix(rotationY, rotationX);\n Matrix.multiplyMM(rotationMatrix, 0, baseCorrection, 0, coreMotionMatrix, 0);\n\n return rotationMatrix;\n }",
"public float [][] GetMatrix() {\n \n\t/*\n\tinputs--\n\t*/\n\t\n\t/*\n\toutputs--\n\t\n\tmat_f_m :\n\t The self matrix\n\t*/\n\t\n\treturn this.mat_f_m;\n \n }",
"protected void applyMatrices () {\n combinedMatrix.set(projectionMatrix).mul(transformMatrix);\n getShader().setUniformMatrix(\"u_projTrans\", combinedMatrix);\n }",
"float[] getMVPMatrix();",
"public int[][] getTransitionMatrix() {\n\t\treturn null;\n\t}",
"public Matrix4 getProjectionMatrix() {\n return projectionMatrix;\n }",
"public int[][] getMatrix(){\n\t\treturn matrix;\n\t}",
"godot.wire.Wire.Transform2D getTransform2DValue();",
"public AffineTransform getCtm(\n )\n {return ctm;}",
"public static CvMat getPerspectiveTransform(double[] src, double[] dst, CvMat map_matrix) {\n // creating and releasing matrices via NIO here in this function...\n // this can easily become a bottleneck\n CvMat A = CvMat.create(8, 8);\n CvMat b = CvMat.create(8, 1);\n CvMat x = CvMat.create(8, 1);\n\n for(int i = 0; i < 4; ++i ) {\n A.put(i*8+0, src[i*2]); A.put((i+4)*8+3, src[i*2]);\n A.put(i*8+1, src[i*2+1]); A.put((i+4)*8+4, src[i*2+1]);\n A.put(i*8+2, 1); A.put((i+4)*8+5, 1);\n A.put(i*8+3, 0); A.put(i*8+4, 0); A.put(i*8+5, 0);\n A.put((i+4)*8+0, 0); A.put((i+4)*8+1, 0); A.put((i+4)*8+2, 0);\n\n A.put(i*8+6, -src[i*2] *dst[i*2]);\n A.put(i*8+7, -src[i*2+1]*dst[i*2]);\n A.put((i+4)*8+6, -src[i*2] *dst[i*2+1]);\n A.put((i+4)*8+7, -src[i*2+1]*dst[i*2+1]);\n\n b.put(i, dst[i*2]);\n b.put(i+4, dst[i*2+1]);\n }\n cxcore.cvSolve(A, b, x, cxcore.CV_LU);\n map_matrix.put(x);\n map_matrix.put(8, 1);\n\n return map_matrix;\n }",
"public AffineTransform getGraphicTx() {\n return transformManager.getGraphicTx();\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"public void rotate(double deg) {\n deg = deg % 360;\n// System.out.println(\"Stopni:\" + deg);\n double e = 0;\n double f = 0;\n\n// for(int i = 0; i < pixels.length; i++) {\n// for(int j = 0; j < pixels[i].length; j++) {\n// e += pixels[i][j].getX();\n// f += pixels[i][j].getY();\n// }\n// }\n //e = e / (pixels.length * 2);\n //f = f / (pixels[0].length * 2);\n e = pixels.length / 2;\n f = pixels[0].length / 2;\n System.out.println(e);\n System.out.println(f);\n\n// System.out.println(e + \":\" + f);\n Matrix affineTransform;\n Matrix translateMinus = Matrix.translateRotate(-e, -f);\n Matrix translatePlus = Matrix.translateRotate(e, f);\n Matrix movedTransform = Matrix.multiply(translateMinus, Matrix.rotate(deg));\n //movedTransform.display();\n affineTransform = Matrix.multiply(movedTransform, translatePlus);\n //affineTransform.display();\n\n for(int i = 0; i < pixels.length; i++) {\n for(int j = 0; j < pixels[i].length; j++) {\n double[][] posMatrix1 = {{pixels[i][j].getX()}, {pixels[i][j].getY()}, {1}};\n Matrix m1 = new Matrix(posMatrix1);\n Matrix result1;\n result1 = Matrix.multiply(Matrix.transpose(affineTransform.v), m1);\n\n pixels[i][j].setX(Math.round(result1.v[0][0]));\n pixels[i][j].setY(Math.round(result1.v[1][0]));\n }\n }\n\n\n }",
"public ArrayList<ArrayList<T>> getMatrix() {\n\t\treturn matrix;\n\t}",
"public void checkAndDisplayMatrix() {\n if (checkMatrixBounds()) {\n setImageViewMatrix(getDrawMatrix());\n }\n }",
"public RMTransform getTransformInverse() { return getTransform().invert(); }",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"Imagem getImagem();",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}",
"public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform() {\n return imageByTransform_;\n }",
"private Bitmap getScaledImage(Bitmap imageBitmap) {\n\t\tBitmap scaledBitmap = null;\n\t\ttry {\n\n\t\t\tMatrix matrix = new Matrix();\n\t\t\tmatrix.postRotate(90);\n\n\t\t\tBitmap rotatedBitmap = Bitmap.createScaledBitmap(imageBitmap, PHOTO_W, PHOTO_H, false);\n\t\t\tscaledBitmap = Bitmap.createBitmap(rotatedBitmap , 0, 0, rotatedBitmap.getWidth(), rotatedBitmap.getHeight(), matrix, true);\n\n\t\t} catch (Throwable e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn scaledBitmap;\n\t}",
"@SuppressWarnings(\"PMD.DefaultPackage\")\n TransformationContextImpl getTransformationContext() {\n return transformationContext;\n }",
"public AffineTransform3D getInverse()\r\n\t\t\tthrows NoninvertibleTransform3DException {\r\n\t\tAffineTransform3D inverseMat = new AffineTransform3D();\r\n\t\tdouble Det = getDeterminant();\r\n\r\n\t\tif (Det == 0) {\r\n\t\t\tthrow new NoninvertibleTransform3DException();\r\n\t\t}\r\n\t\tAffineTransform3D rv = new AffineTransform3D();\r\n\t\trv.M11 = (M23 * M34 * M42) - (M24 * M33 * M42) + (M24 * M32 * M43)\r\n\t\t\t\t- (M22 * M34 * M43) - (M23 * M32 * M44) + (M22 * M33 * M44);\r\n\t\trv.M12 = (M14 * M33 * M42) - (M13 * M34 * M42) - (M14 * M32 * M43)\r\n\t\t\t\t+ (M12 * M34 * M43) + (M13 * M32 * M44) - (M12 * M33 * M44);\r\n\t\trv.M13 = (M13 * M24 * M42) - (M14 * M23 * M42) + (M14 * M22 * M43)\r\n\t\t\t\t- (M12 * M24 * M43) - (M13 * M22 * M44) + (M12 * M23 * M44);\r\n\t\trv.M14 = (M14 * M23 * M32) - (M13 * M24 * M32) - (M14 * M22 * M33)\r\n\t\t\t\t+ (M12 * M24 * M33) + (M13 * M22 * M34) - (M12 * M23 * M34);\r\n\t\trv.M21 = (M24 * M33 * M41) - (M23 * M34 * M41) - (M24 * M31 * M43)\r\n\t\t\t\t+ (M21 * M34 * M43) + (M23 * M31 * M44) - (M21 * M33 * M44);\r\n\t\trv.M22 = (M13 * M34 * M41) - (M14 * M33 * M41) + (M14 * M31 * M43)\r\n\t\t\t\t- (M11 * M34 * M43) - (M13 * M31 * M44) + (M11 * M33 * M44);\r\n\t\trv.M23 = (M14 * M23 * M41) - (M13 * M24 * M41) - (M14 * M21 * M43)\r\n\t\t\t\t+ (M11 * M24 * M43) + (M13 * M21 * M44) - (M11 * M23 * M44);\r\n\t\trv.M24 = (M13 * M24 * M31) - (M14 * M23 * M31) + (M14 * M21 * M33)\r\n\t\t\t\t- (M11 * M24 * M33) - (M13 * M21 * M34) + (M11 * M23 * M34);\r\n\t\trv.M31 = (M22 * M34 * M41) - (M24 * M32 * M41) + (M24 * M31 * M42)\r\n\t\t\t\t- (M21 * M34 * M42) - (M22 * M31 * M44) + (M21 * M32 * M44);\r\n\t\trv.M32 = (M14 * M32 * M41) - (M12 * M34 * M41) - (M14 * M31 * M42)\r\n\t\t\t\t+ (M11 * M34 * M42) + (M12 * M31 * M44) - (M11 * M32 * M44);\r\n\t\trv.M33 = (M12 * M24 * M41) - (M14 * M22 * M41) + (M14 * M21 * M42)\r\n\t\t\t\t- (M11 * M24 * M42) - (M12 * M21 * M44) + (M11 * M22 * M44);\r\n\t\trv.M34 = (M14 * M22 * M31) - (M12 * M24 * M31) - (M14 * M21 * M32)\r\n\t\t\t\t+ (M11 * M24 * M32) + (M12 * M21 * M34) - (M11 * M22 * M34);\r\n\t\trv.M41 = (M23 * M32 * M41) - (M22 * M33 * M41) - (M23 * M31 * M42)\r\n\t\t\t\t+ (M21 * M33 * M42) + (M22 * M31 * M43) - (M21 * M32 * M43);\r\n\t\trv.M42 = (M12 * M33 * M41) - (M13 * M32 * M41) + (M13 * M31 * M42)\r\n\t\t\t\t- (M11 * M33 * M42) - (M12 * M31 * M43) + (M11 * M32 * M43);\r\n\t\trv.M43 = (M13 * M22 * M41) - (M12 * M23 * M41) - (M13 * M21 * M42)\r\n\t\t\t\t+ (M11 * M23 * M42) + (M12 * M21 * M43) - (M11 * M22 * M43);\r\n\t\trv.M44 = (M12 * M23 * M31) - (M13 * M22 * M31) + (M13 * M21 * M32)\r\n\t\t\t\t- (M11 * M23 * M32) - (M12 * M21 * M33) + (M11 * M22 * M33);\r\n\r\n\t\tDet = (1 / getDeterminant());\r\n\t\tinverseMat = ScalarMult(new AffineTransform3D(), Det); // MatrixScaling4(VectorInput(Det,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Det, Det),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Det)\r\n\t\trv = MatrixMult(rv, inverseMat);\r\n\t\treturn rv;\r\n\t}",
"public SVector3d getPositionCam() {\n\t\treturn transCamera;\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}",
"godot.wire.Wire.Transform getTransformValue();",
"public Transform getTransform(){\n switch (this){\n case promote_terminals: return new SubexpressionTransformation.TerminalChain();\n case promote_redundant: return new SubexpressionTransformation.RedundantChain();\n case promote_summary: return new SubexpressionTransformation.SummarisingChain();\n case promote_chomsky: return new SubexpressionTransformation.ChomskyChain();\n case filter: return new RelationFilterTransformation();\n case order: return new EvaluationOrderTransformation(true, true);\n default: throw new RuntimeException(\"Unreachable\");\n }\n }",
"public static Bitmap getMatrixBitmap(Bitmap src, ColorMatrix colorMatrix) {\n Bitmap bmp = Bitmap.createBitmap(src.getWidth(), src.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bmp);\n Paint paint = new Paint();\n paint.setColorFilter(new ColorMatrixColorFilter(colorMatrix));\n canvas.drawBitmap(src, 0, 0, paint);\n return bmp;\n }",
"public WorldToScreenTransform getWorldToScreenTransform() { return this; }",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (transformValueBuilder_ == null) {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n } else {\n if (typeCase_ == 14) {\n return transformValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"protected void compute_mvpMatrix(float[] VPMatrix) {\n Matrix.multiplyMM(tempMatrix, 0, modelMatrix, 0, accumulatedRotation, 0);\n\n // ... e applica la matrice che contiene il risultato della matrice view e di proiezione\n Matrix.multiplyMM(mvpMatrix, 0, VPMatrix, 0, tempMatrix, 0);\n }",
"public mat4 getMatrix() {\n return worldMatrix;\n }",
"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}",
"@java.lang.Override\n public godot.wire.Wire.Transform2D getTransform2DValue() {\n if (transform2DValueBuilder_ == null) {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n } else {\n if (typeCase_ == 9) {\n return transform2DValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }\n }",
"public SbMatrix\ngetObjectToImage( SoNode node) \n//\n////////////////////////////////////////////////////////////////////////\n{\n getMatrix(node);\n return matrixAction.getTextureMatrix();\n}",
"public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform() {\n if (imageByTransformBuilder_ == null) {\n return imageByTransform_;\n } else {\n return imageByTransformBuilder_.getMessage();\n }\n }",
"private void animateToStartMatrix() {\n\n final Matrix beginMatrix = new Matrix(getImageMatrix());\n beginMatrix.getValues(matrixValues);\n\n //difference in current and original values\n final float xsdiff = startValues[Matrix.MSCALE_X] - matrixValues[Matrix.MSCALE_X];\n final float ysdiff = startValues[Matrix.MSCALE_Y] - matrixValues[Matrix.MSCALE_Y];\n final float xtdiff = startValues[Matrix.MTRANS_X] - matrixValues[Matrix.MTRANS_X];\n final float ytdiff = startValues[Matrix.MTRANS_Y] - matrixValues[Matrix.MTRANS_Y];\n\n ValueAnimator anim = ValueAnimator.ofFloat(0, 1f);\n anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n\n final Matrix activeMatrix = new Matrix(getImageMatrix());\n final float[] values = new float[9];\n\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n float val = (Float) animation.getAnimatedValue();\n activeMatrix.set(beginMatrix);\n activeMatrix.getValues(values);\n values[Matrix.MTRANS_X] = values[Matrix.MTRANS_X] + xtdiff * val;\n values[Matrix.MTRANS_Y] = values[Matrix.MTRANS_Y] + ytdiff * val;\n values[Matrix.MSCALE_X] = values[Matrix.MSCALE_X] + xsdiff * val;\n values[Matrix.MSCALE_Y] = values[Matrix.MSCALE_Y] + ysdiff * val;\n activeMatrix.setValues(values);\n setImageMatrix(activeMatrix);\n }\n });\n anim.setDuration(RESET_DURATION);\n anim.start();\n }",
"Matrix4f getModelMatrix();",
"public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder() {\n return imageByTransform_;\n }",
"private static float[] projectionMatrixFromCameraIntrinsics(TangoCameraIntrinsics intrinsics) {\n // Uses frustumM to create a projection matrix taking into account calibrated camera\n // intrinsic parameter.\n // Reference: http://ksimek.github.io/2013/06/03/calibrated_cameras_in_opengl/\n float near = 0.1f;\n float far = 100;\n\n float xScale = near / (float) intrinsics.fx;\n float yScale = near / (float) intrinsics.fy;\n float xOffset = (float) (intrinsics.cx - (intrinsics.width / 2.0)) * xScale;\n // Color camera's coordinates has y pointing downwards so we negate this term.\n float yOffset = (float) -(intrinsics.cy - (intrinsics.height / 2.0)) * yScale;\n\n float m[] = new float[16];\n Matrix.frustumM(m, 0,\n xScale * (float) -intrinsics.width / 2.0f - xOffset,\n xScale * (float) intrinsics.width / 2.0f - xOffset,\n yScale * (float) -intrinsics.height / 2.0f - yOffset,\n yScale * (float) intrinsics.height / 2.0f - yOffset,\n near, far);\n return m;\n }",
"@java.lang.Override\n public godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"public static Matrix4f getProjectionMatrix() {\n\t\tfinal float FOV = (float) 45.0f;\n\t\tfinal float Z_NEAR = 0.01f;\n\t\tfinal float Z_FAR = 1000f;\n\t\tfloat aspectRatio = (float) WIDTH / HEIGHT;\n\t\tMatrix4f projectionMatrix = new Matrix4f().perspective(FOV, aspectRatio, Z_NEAR, Z_FAR);\n\t\treturn projectionMatrix;\n\t}",
"public TransformGroup getTransformGroup() {\r\n return transformGroup;\r\n }",
"void applyRotationMatrix() {\n for (int i = 0; i < coors.length; i++) {\n for (int j = 0; j < coors[i].length; j++) {\n newCoors[i][j] = coors[i][0] * R[j][0] + coors[i][1] * R[j][1] + coors[i][2] * R[j][2];\n }\n // add perspective\n float scale = map(Math.abs(newCoors[i][2]), 0, (float) (halfSize * Math.sqrt(3)), 1, 1.5f);\n if (newCoors[i][2] < 0) {\n scale = 2f - scale;\n }\n for (int j = 0; j < 2; j++) {\n newCoors[i][j] *= scale;\n }\n }\n // to R2\n // just dont use Z\n setPathAndAlpha();\n }",
"public float[] getModelMatrix() {\n return mModelMatrix;\n }",
"public com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder() {\n if (imageByTransformBuilder_ != null) {\n return imageByTransformBuilder_.getMessageOrBuilder();\n } else {\n return imageByTransform_;\n }\n }",
"@Override\n final public String getTransform() {\n String transform = ScijavaGsonHelper.getGson(context).toJson(rt, RealTransform.class);\n //logger.debug(\"Serialization result = \"+transform);\n return transform;\n }"
] | [
"0.7301042",
"0.7203587",
"0.6880001",
"0.67477906",
"0.66930085",
"0.6634291",
"0.6589747",
"0.6570487",
"0.64932835",
"0.6486526",
"0.64572614",
"0.6440587",
"0.6406176",
"0.6390279",
"0.6326855",
"0.6266789",
"0.6224056",
"0.62215656",
"0.6217105",
"0.6211477",
"0.614885",
"0.6128821",
"0.61213005",
"0.6100914",
"0.60636836",
"0.60512215",
"0.6043372",
"0.599809",
"0.59669924",
"0.5947443",
"0.59425795",
"0.59420395",
"0.59220004",
"0.58900297",
"0.58394897",
"0.58221996",
"0.5796571",
"0.5781257",
"0.5781213",
"0.5771186",
"0.57394165",
"0.5729498",
"0.5728177",
"0.5709954",
"0.5687854",
"0.55926406",
"0.5589285",
"0.5581361",
"0.55680203",
"0.5476354",
"0.5471828",
"0.54703516",
"0.5466964",
"0.54295397",
"0.54226094",
"0.54222786",
"0.5419339",
"0.5414824",
"0.5414409",
"0.53998405",
"0.5391971",
"0.53847796",
"0.5352429",
"0.5349322",
"0.53439033",
"0.53404677",
"0.5322687",
"0.53191745",
"0.5317759",
"0.5309491",
"0.5295541",
"0.5289794",
"0.5289696",
"0.5285181",
"0.5284111",
"0.52816814",
"0.5263914",
"0.5260516",
"0.52567095",
"0.52458316",
"0.523112",
"0.5224551",
"0.5215203",
"0.52008975",
"0.5191947",
"0.5186386",
"0.5183576",
"0.5177898",
"0.517045",
"0.5161204",
"0.51496804",
"0.51450485",
"0.5137162",
"0.513085",
"0.51172936",
"0.5112467",
"0.51110774",
"0.5110126",
"0.50943536",
"0.50900024"
] | 0.7405899 | 0 |
Return true if enabled. | public boolean getEnabled() {
return mCurrentState != STATE.DISABLED;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEnabled()\n {\n return mSettings.getBoolean(ENABLED, true);\n }",
"final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }",
"public boolean isEnabled()\r\n\t{\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled() {\n return mBundle.getBoolean(KEY_ENABLED, true);\n }",
"public boolean isEnable() {\n return _enabled;\n }",
"public Boolean isEnable() {\n\t\treturn enable;\n\t}",
"public boolean isEnabled() {\n\t\treturn enabled;\n\t}",
"public static boolean isEnabled() {\n return true;\n }",
"public boolean isEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled ( ) {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnable() {\n return enable;\n }",
"boolean hasEnabled();",
"public Boolean isEnable() {\n return this.enable;\n }",
"public boolean enabled(){\n return enabled;\n }",
"public boolean enabled() {\n return m_enabled;\n }",
"public boolean isEnabled() {\n\n return enabled;\n }",
"public boolean isEnabled () {\n return impl.isEnabled ();\n }",
"public boolean isEnabled() {\r\n return enabled;\r\n }",
"public boolean isEnabled() {\r\n return enabled;\r\n }",
"public Boolean isEnabled() {\r\r\n\t\treturn _isEnabled;\r\r\n\t}",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn this.enabled;\n\t}",
"public static boolean isEnabled()\n\t{\n\t\treturn App.getSPAPI().getBool(SPKey.ENABLED);\n\t}",
"public boolean isEnabled() {\n\t\treturn true;\n\t}",
"public Boolean enabled() {\n return this.enabled;\n }",
"public boolean isEnabled(){\n\t\treturn mEnabled;\n\t}",
"public boolean getEnabled(){\r\n\t\treturn enabled;\r\n\t}",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"public Boolean isEnabled() {\n return this.enabled;\n }",
"boolean getEnabled();",
"boolean getEnabled();",
"boolean getEnabled();",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\r\n return m_enabled;\r\n }",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn enabled;\n\t}",
"public boolean isEnabled() {\n return mEnabled;\n }",
"public boolean isEnabled() {\n return mEnabled;\n }",
"public boolean getEnabled() {\r\n \t\tif (status == AlternativeStatus.ADOPTED) {\r\n \t\t\treturn true;\r\n \t\t} else {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}",
"public boolean isEnabled() {\n return myEnabled;\n }",
"public String isEnabled() {\n return this.isEnabled;\n }",
"public java.lang.Boolean getEnabled() {\n return enabled;\n }",
"public Boolean isEnabled() {\n return this.isEnabled;\n }",
"public Boolean getEnabled() {\r\n return enabled;\r\n }",
"public Boolean getEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return isEnabled;\n }",
"public boolean isEnabled() { return _enabled; }",
"public String getEnabled() {\r\n\t\treturn enabled;\r\n\t}",
"public boolean isEnabled() {\n return m_Enabled;\n }",
"public boolean getEnabled() {\n return enabled;\n }",
"public boolean isEnabled() {\n return enabled;\n }",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"boolean isEnabled();",
"public boolean isEnabled(){\n return enabled;\n }",
"public boolean isEnabled() {\r\n\t\treturn sensor.isEnabled();\r\n\t}",
"public boolean enabled() {\r\n\t\treturn engaged;\r\n\t}",
"public boolean isEnabled() { return this.myEnabled; }",
"public Boolean getEnabled() {\n return this.enabled;\n }",
"public Boolean getEnabled() {\n return this.enabled;\n }",
"@DISPID(79)\r\n\t// = 0x4f. The runtime will prefer the VTID if present\r\n\t@VTID(77)\r\n\tboolean enabled();",
"public Boolean enable() {\n return this.enable;\n }",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn isEnabled;\n\t}",
"public Boolean getIsEnable() {\n\t\treturn isEnable;\n\t}",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public boolean isEnabled();",
"public boolean isEnabled() {\n\t\treturn false;\n\t}",
"public boolean isEnabled() {\n\t\treturn false;\n\t}",
"@Override\n public boolean isEnabled() {\n return this.enabled;\n }",
"public boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"public boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"private boolean isEnabled() {\n return isEnabled;\n }",
"public boolean isEnabled() {\n for (Transmitter t : getTransmitters()) {\n if (t.getTxStatus() == TxStatus.ENABLED) {\n return true;\n }\n }\n\n return false;\n }",
"@DISPID(37)\r\n\t// = 0x25. The runtime will prefer the VTID if present\r\n\t@VTID(42)\r\n\tboolean enabled();",
"public Boolean getEnable() {\n\t\treturn enable;\n\t}",
"public boolean isLockerEnable(){\n return getBooleanValue(KEY_LOCKER_ENABLE);\n }",
"public String getIsEnable() {\n return isEnable;\n }",
"public boolean isEnabled() {\n boolean enabled = parent.getDefaultEnabled();\n String propName = parent.getToggleProperty();\n if (propName != null) {\n Project proj = parent.getProject();\n if (proj != null) {\n String propValue = proj.getProperty(propName);\n if (propValue != null) {\n Boolean booleanValue = new Boolean(propValue);\n enabled = booleanValue.booleanValue();\n }\n }\n }\n\n return enabled;\n }",
"public Boolean getEnable() {\n return this.enable;\n }"
] | [
"0.83706313",
"0.82628727",
"0.8219882",
"0.82063514",
"0.8168259",
"0.8151658",
"0.8147765",
"0.8135091",
"0.8135081",
"0.8135081",
"0.8100524",
"0.80989945",
"0.8078046",
"0.80426645",
"0.7990899",
"0.79830694",
"0.7950184",
"0.794639",
"0.792678",
"0.792678",
"0.79252064",
"0.79026294",
"0.79026294",
"0.79026294",
"0.79026294",
"0.79026294",
"0.79026294",
"0.79026294",
"0.79026294",
"0.79026294",
"0.79026294",
"0.789196",
"0.7884102",
"0.7873187",
"0.78657866",
"0.78521734",
"0.7846675",
"0.7845373",
"0.7845373",
"0.7845373",
"0.78404343",
"0.78404343",
"0.78404343",
"0.7817649",
"0.7817649",
"0.7804254",
"0.7775788",
"0.7775788",
"0.7775788",
"0.7760216",
"0.7760216",
"0.7759698",
"0.77535915",
"0.77328825",
"0.7703211",
"0.76945263",
"0.7689768",
"0.76896656",
"0.76803696",
"0.7677833",
"0.76686865",
"0.7665856",
"0.76404727",
"0.7639612",
"0.7626266",
"0.7626266",
"0.7626266",
"0.7626266",
"0.7626266",
"0.7626266",
"0.7626266",
"0.7626266",
"0.76253504",
"0.76234627",
"0.7616744",
"0.7600137",
"0.7558552",
"0.7558552",
"0.7549899",
"0.754406",
"0.75330627",
"0.7531929",
"0.75219136",
"0.75219136",
"0.75219136",
"0.75219136",
"0.75219136",
"0.7505899",
"0.7505899",
"0.7496892",
"0.7486793",
"0.7486793",
"0.7477283",
"0.7452617",
"0.7450706",
"0.7374285",
"0.7354186",
"0.7346606",
"0.7333994",
"0.72890615"
] | 0.7410735 | 95 |
Return the service, if previously registered using ServiceLoader. | @SuppressWarnings("unchecked")
@Override
public <T> T getService( Class<T> cls ) {
try {
return (T) mServiceLoader.getService( (Class<EffectContextService>) cls );
} catch ( IllegalAccessException e ) {
e.printStackTrace();
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static synchronized PlatformInit getService() {\n\t\tif(theService == null || theService.initialised)\n\t\t\treturn theService;\n\t\treturn null;\n\t}",
"public Service getService() {\n return serviceInstance;\n }",
"public Object getService() {\n return service;\n }",
"private Service getService() {\n return service;\n }",
"Object getService(String serviceName);",
"public Service getService() {\n\t\treturn _service;\n\t}",
"public AbstractService getService() {\n return service;\n }",
"public static void loadService() {\n Optional<EconomyService> optService = Sponge.getServiceManager().provide(EconomyService.class);\n if(optService.isPresent()) {\n service = optService.get();\n isLoaded = true;\n } else {\n isLoaded = false;\n }\n }",
"Object getService(String serviceName, boolean checkExistence);",
"public Object getService(String serviceName);",
"public static PlatformInit getService(Context ctx, PlatformServiceListener listener) {\n\t\tPlatformInit foundService = null;\n\t\t/* synchronously check, and add listener if necessary */\n\t\tsynchronized(PlatformInit.class) {\n\t\t\tif(theService == null || !theService.initialised) {\n\t\t\t\tif(listener != null)\n\t\t\t\t\tserviceListeners.add(listener);\n\t\t\t} else {\n\t\t\t\tfoundService = theService;\n\t\t\t}\n\t\t}\n\t\t/* start service if necessary */\n\t\tif(theService == null) {\n\t\t\tConfig.init(ctx);\n\t\t\tctx.startService(new Intent(ctx, PlatformInit.class));\n\t\t}\n\t\t/* return synchronously obtained instance */\n\t\treturn foundService;\n\t}",
"public String getService() {\n\t\treturn service.get();\n\t}",
"public Class getServiceClass() { return serviceClass; }",
"public Service getService(final String serviceName) {\n final String[] arr = serviceName.split(\"::\");\n if (arr.length != 2) {\n logger.error(\n \"Servicename didnt match pattern 'archive::service': {}\",\n serviceName);\n return null;\n }\n final Archive archive = getArchive(arr[0]);\n if (archive != null) {\n return archive.getService(arr[1]);\n }\n logger.error(\"Could not find archive '{}'\", arr[0]);\n return null;\n }",
"private PrivilegedLSAFactory retrieveLSAFactoryService(\n\t\t\tfinal BundleContext context) {\n\t\tlsaFactoryRef = context.getServiceReference(PrivilegedLSAFactory.class);\n\t\tif (lsaFactoryRef == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot retrieve a reference to \"\n\t\t\t\t\t+ \"PrivilegedLSAFactory service.\");\n\t\t}\n\n\t\tif (lsaFactoryRef != null) {\n\t\t\tlog(\"LSA Factory ACQUIRED\");\n\t\t}\n\n\t\treturn context.getService(lsaFactoryRef);\n\t}",
"public static Service getInstance()\n\t{\n\t\tif (serviceInstance == null)\n\t\t{\n\t\t\tserviceInstance = new Service(LocalDao.getInstance());\n\t\t}\n\t\treturn serviceInstance;\n\t}",
"public interface ServiceProvider {\n\n /**\n * This method allows to define a priority for a registered ServiceProvider instance. When multiple providers are\n * registered in the system the provider with the highest priority value is taken.\n *\n * @return the provider's priority (default is 0).\n */\n int getPriority();\n\n /**\n * Access a list of services, given its type. The bootstrap mechanism should\n * order the instance for precedence, hereby the most significant should be\n * first in order. If no such services are found, an empty list should be\n * returned.\n *\n * @param serviceType the service type.\n * @return The instance to be used, never {@code null}\n */\n <T> List<T> getServices(Class<T> serviceType);\n\n /**\n * Access a single service, given its type. The bootstrap mechanism should\n * order the instance for precedence, hereby the most significant should be\n * first in order and returned. If no such services are found, null is\n * returned.\n *\n * @param serviceType the service type.\n * @return The instance, (with highest precedence) or {@code null}, if no such service is available.\n */\n default <T> T getService(Class<T> serviceType) {\n return getServices(serviceType).stream().findFirst().orElse(null);\n }\n}",
"public Service getService(Object serviceKey) throws RemoteException {\n Service theService = (Service) serviceList.get(serviceKey);\n return theService;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public Service getService() {\n\t\treturn this;\n\t}",
"ClassOfService getClassOfService();",
"public Service getService()\n {\n return (Service) getSource();\n }",
"public ServiceInstance lookupInstance(String serviceName);",
"@Override\n\tpublic <ITF> Optional<ITF> getService(Class<ITF> itfClass, String servicePath) {\n\t\treturn IRegistryProvider.INSTANCE.getService(itfClass, servicePath);\n\t}",
"@Override\n\tpublic void loadService() {\n\t\t\n\t}",
"private static synchronized InitiatorService getInitiatorService()\n {\n if (initiatorService.get() == null) {\n initiatorService.set(new InitiatorService());\n }\n return initiatorService.get();\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"public Service getService(String id) {\n Service service = catalog.getService(id);\n Assert.notNull(service, \"No service with id '%s' found\", id);\n return service;\n }",
"public final Service getService(final String name) {\r\n Service x, y;\r\n\r\n for (x = this.m_services[name.hashCode()\r\n & (this.m_services.length - 1)]; x != null; x = x.m_next) {\r\n for (y = x; y != null; y = y.m_equal) {\r\n if (name.equals(y.m_name))\r\n return y;\r\n }\r\n }\r\n\r\n return null;\r\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation1();\n\t\t}",
"public static ServiceFactory getInstance(){\n\t\tif(instance == null)\n\t\t\tinstance = new ServiceFactory();\n\t\treturn instance;\n\t}",
"private HttpService getHTTPService() {\n\t\tHttpService sobjHTTPService = null;\n\t\tServiceReference srefHTTPService = bc\n\t\t\t\t.getServiceReference(HttpService.class.getName());\n\n\t\tif (srefHTTPService != null) {\n\t\t\tsobjHTTPService = (HttpService) bc.getService(srefHTTPService);\n\t\t} else {\n\t\t\tlogger.error(\"Could not find a HTTP service\");\n\t\t\treturn null;\n\t\t}\n\n\t\tif (sobjHTTPService == null) {\n\t\t\tlogger.error(\"Could retrieve the HTTP service\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn sobjHTTPService;\n\t}",
"protected Class getOnlineService () throws ClassNotFoundException {\n String className = config.getString(\"CLIENT_IMPL\");\n Class serviceClass = Class.forName(className);\n return serviceClass;\n }",
"private Object obtainService(String osgiURL)\r\n\t\t\t\tthrows InvalidSyntaxException {\r\n\t\t\tOSGiURLParser urlParser = new OSGiURLParser(osgiURL);\r\n\t\t\ttry {\r\n\t\t\t\turlParser.parse();\r\n\t\t\t}\r\n\t\t\tcatch (IllegalStateException stateException) {\r\n\t\t\t\tlogger.log(Level.SEVERE, \"An exception occurred while trying to parse this osgi URL\", stateException);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tif (urlParser.getServiceInterface() == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\treturn getService(m_bundleContext, urlParser);\r\n\t\t}",
"public java.lang.String getServiceClass() {\n return serviceClass;\n }",
"protected <T> T getService(Class<T> clazz) {\n \tfinal ServiceReference<T> ref = bundleContext.getServiceReference(clazz);\n \tassertNotNull(\"getService(\" + clazz.getName() + \") must find ServiceReference\", ref);\n \tfinal T result = (bundleContext.getService(ref));\n \tassertNotNull(\"getService(\" + clazz.getName() + \") must find service\", result);\n \treturn result;\n }",
"public static TargetService getService() {\n FacesContext context = FacesContext.getCurrentInstance();\n return (TargetService) context.getApplication().evaluateExpressionGet(\n context, \"#{targetServiceNH}\", TargetService.class);\n }",
"public Class getServiceClass()\n {\n return serviceClass;\n }",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"@Override\n public <T> T getToolService(Class<T> serviceClass)\n {\n if (serviceClass.isAssignableFrom(getClass()))\n {\n return (T)this;\n }\n return null;\n }",
"java.lang.String getServiceName();",
"java.lang.String getServiceName();",
"public Class getServiceInterface() {\n return null;\n }",
"public java.lang.CharSequence getService() {\n return service;\n }",
"public ResourceService getResourceService() {\n return resourceService;\n }",
"public TTSService getService() {\n return TTSService.this;\n }",
"public String getServiceName();",
"public java.lang.CharSequence getService() {\n return service;\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n }\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n }\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n }\n }",
"@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation2();\n\t\t}",
"<T extends Service> T getService(Class<T> type)\n throws ServiceNotAvailableException, LoginFailedException;",
"public static Service newInstance() {\n return newInstance(DEFAULT_PROVIDER_NAME);\n }",
"String getServiceName();",
"String getServiceName();",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"<T> T getService(Class<T> type);",
"public synchronized ServiceProxy lookup(String serviceId, String version) {\n \tServiceProxy serviceProxy = lookup(null, version, serviceId, getOperation(), (TransportType) null); \n \treturn serviceProxy;\n\t}",
"public IServerService getService() {\n return ServerService.this;\n }",
"public io.openslice.tmf.sim638.model.Service retrieveService(String serviceID) {\r\n\t\tlogger.info(\"will retrieve Service instance from catalog serviceID=\" + serviceID );\r\n\t\ttry {\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( CATALOG_GET_SERVICE_BY_ID, serviceID);\r\n\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"Service object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tio.openslice.tmf.sim638.model.Service serviceInstance = toJsonObj( (String)response, io.openslice.tmf.sim638.model.Service.class); \r\n\t\t\t//logger.debug(\"retrieveService response is: \" + response);\r\n\t\t\treturn serviceInstance;\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve Service details from catalog. \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public YAWLServiceReference getYawlService(String yawlServiceID) {\n return _yawlServices.get(yawlServiceID);\n }",
"public boolean getUseGlobalService();",
"<T> T getService(Class<T> type, boolean checkExistence);",
"private void loadService() {\n if (!isServiceRunning(ShakeService.class)) {\n Intent intent = new Intent(this, ShakeService.class);\n this.startService(intent);\n }\n }",
"public abstract String getServiceName();",
"public com.sohlman.liferay.foobar.service.FooService getFooService() {\n return fooService;\n }",
"protected ParameterService getParameterService() {\n if (this.parameterService == null) {\n this.parameterService = KraServiceLocator.getService(ParameterService.class);\n }\n return this.parameterService;\n }",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service consulterService(Integer idService) {\n\t\tService service= (Service) serviceRepository.findOne(idService);\r\n\t\tif(service==null) throw new RuntimeException(\"Service introuvable\");\r\n\t\treturn (sn.ucad.master.assurance.bo.Service) service;\r\n\t}",
"public String getService(){\n\t\t return service;\n\t}",
"public Object lookup()\r\n {\n if (applicationInstance != null)\r\n return applicationInstance;\r\n\r\n ApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(flex.messaging.FlexContext.getServletConfig().getServletContext());\r\n if (appContext == null)\r\n {\r\n if (Log.isError())\r\n Log.getLogger(\"Configuration\").error(\r\n \"SpringFactory - not able to look up the WebApplicationContext for Spring. Check your web.xml to ensure Spring is installed properly in this web application.\");\r\n return null;\r\n }\r\n String beanName = getSource();\r\n\r\n try\r\n {\r\n Object inst;\r\n if (appContext.isSingleton(beanName))\r\n {\r\n if (Log.isDebug())\r\n Log.getLogger(\"Configuration\").debug(\r\n \"SpringFactory creating singleton component with spring id: \" + beanName + \" for destination: \" + getId());\r\n // We have a singleton instance but no one has initialized it yet.\r\n // We need to sync to prevent two threads from potentially initializing\r\n // the instance at the same time and to ensure we only return\r\n // initialized instances.\r\n synchronized (this)\r\n {\r\n // Someone else got to this before us\r\n if (applicationInstance != null)\r\n return applicationInstance;\r\n inst = appContext.getBean(beanName);\r\n if (inst instanceof FlexConfigurable)\r\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\r\n applicationInstance = inst;\r\n }\r\n }\r\n else\r\n {\r\n if (Log.isDebug())\r\n Log.getLogger(\"Configuration\").debug(\r\n \"SpringFactory creating non-singleton component with spring id: \" + beanName + \" for destination: \" + getId());\r\n inst = appContext.getBean(beanName);\r\n if (inst instanceof FlexConfigurable)\r\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\r\n }\r\n return inst;\r\n }\r\n catch (NoSuchBeanDefinitionException nexc)\r\n {\r\n ServiceException e = new ServiceException();\r\n String msg = \"Spring service named '\" + beanName + \"' does not exist.\";\r\n e.setMessage(msg);\r\n e.setRootCause(nexc);\r\n e.setDetails(msg);\r\n e.setCode(\"Server.Processing\");\r\n throw e;\r\n }\r\n catch (BeansException bexc)\r\n {\r\n ServiceException e = new ServiceException();\r\n String msg = \"Unable to create Spring service named '\" + beanName + \"' \";\r\n e.setMessage(msg);\r\n e.setRootCause(bexc);\r\n e.setDetails(msg);\r\n e.setCode(\"Server.Processing\");\r\n throw e;\r\n }\r\n }",
"public synchronized C getService(boolean waitForService, C defaultImpl) {\r\n try {\r\n if (waitForService && (tracker == null)) {\r\n while (tracker == null) {\r\n this.wait();\r\n }\r\n }\r\n if (tracker != null) { // Activated.\r\n if (waitForService)\r\n return tracker.waitForService(0);\r\n C ctx = tracker.getService();\r\n if (ctx != null)\r\n return ctx;\r\n }\r\n } catch (InterruptedException ex) {\r\n // Stop waiting. \r\n }\r\n return defaultImpl;\r\n }",
"public static ServiceLocator instance() {\n\t\tif(instance == null){\n\t\t\tinstance = new ServiceLocator();\n\t\t\tinstance.initializeCache();\n\n\t\t\tinstance.initializeCache();\n\t\t\tinstance.loadFileApplication(RESOURCE_BUNDLE_DEVELOPMENT);\n\t\t\t//instance.loadFileApplication(RESOURCE_BUNDLE_CHEMIN);\t\t\t\n\t\t}\n\n\t\treturn instance;\t\n\t}",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"private static synchronized ParticipantService getParticipantService()\n {\n if (participantService.get() == null) {\n participantService.set(new ParticipantService());\n }\n return participantService.get();\n }",
"java.lang.String getService();",
"java.lang.String getService();",
"java.lang.String getService();",
"public static QueryService getInstance() {\n\t \t// Use the service loader to load an implementation if one is available\n\t \t// Place a file called uk.ac.ox.it.ords.api.structure.service.CommentService in src/main/resources/META-INF/services\n\t \t// containing the classname to load as the CommentService implementation. \n\t \t// By default we load the Hibernate/Postgresql implementation.\n\t \t//\n\t \tif (provider == null){\n\t \t\tServiceLoader<QueryService> ldr = ServiceLoader.load(QueryService.class);\n\t \t\tfor (QueryService service : ldr) {\n\t \t\t\t// We are only expecting one\n\t \t\t\tprovider = service;\n\t \t\t}\n\t \t}\n\t \t//\n\t \t// If no service provider is found, use the default\n\t \t//\n\t \tif (provider == null){\n\t \t\tprovider = new QueryServiceImpl();\n\t \t}\n\t \t\n\t \treturn provider;\n\t }",
"public LocationService getService()\n {\n return LocationService.this;\n }",
"public Text getService() {\n return service;\n }",
"public String getServiceName()\n {\n return serviceName;\n }",
"@Override\n\tprotected BaseService getService() {\n\t\treturn null;\n\t}",
"public Reference serviceProvider() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_SERVICE_PROVIDER);\n }",
"public static ServiceLocator getInstance() {\r\n\t\tif(serviceLocator == null) {\r\n\t\t\tserviceLocator = new ServiceLocator();\r\n\t\t}\r\n\t\treturn serviceLocator;\r\n\t}",
"public String getServiceName()\r\n {\r\n return serviceName;\r\n }",
"MainService getService() {\n return MainService.this;\n }",
"public Service getService(Locator locator) throws InvalidLocatorException, SecurityException\n {\n // Handle recorded service locators here. Handle all other locators in\n // the super-class.\n if (log.isDebugEnabled())\n {\n log.debug(\"DVRSIManagerDelegate.getService(\" + locator + \") class \" + locator.getClass());\n }\n \n if (locator instanceof RecordedServiceLocator)\n {\n RecordedService service = getRecordedService((RecordedServiceLocator)locator);\n if (service == null)\n {\n throw new InvalidLocatorException(locator, \"Recorded service not found\");\n }\n return service;\n }\n \n return null;\n }"
] | [
"0.69980586",
"0.69215196",
"0.6919272",
"0.67722046",
"0.669885",
"0.66868275",
"0.6651964",
"0.66250086",
"0.653619",
"0.6489126",
"0.64886636",
"0.6428965",
"0.63662124",
"0.6338375",
"0.6336081",
"0.6333511",
"0.6316798",
"0.63080615",
"0.6293594",
"0.6293594",
"0.6293594",
"0.62929577",
"0.6292662",
"0.62923276",
"0.62691337",
"0.62683594",
"0.6266099",
"0.62537414",
"0.62347984",
"0.62347984",
"0.62347984",
"0.6215313",
"0.61801505",
"0.61471635",
"0.61471635",
"0.61471635",
"0.6146298",
"0.61124766",
"0.6098638",
"0.60818493",
"0.6081205",
"0.6079269",
"0.6062244",
"0.6046973",
"0.60467833",
"0.6046624",
"0.6046624",
"0.6046624",
"0.6043105",
"0.60275257",
"0.60275257",
"0.5981282",
"0.5961291",
"0.59582996",
"0.59563494",
"0.5948648",
"0.59299326",
"0.59082025",
"0.59082025",
"0.59082025",
"0.5905364",
"0.5890048",
"0.5882808",
"0.5878876",
"0.5878876",
"0.58597654",
"0.58597654",
"0.58597654",
"0.5838275",
"0.5836582",
"0.58323294",
"0.58254915",
"0.5823255",
"0.58195543",
"0.5818597",
"0.5804496",
"0.5802133",
"0.58014095",
"0.57918197",
"0.5776834",
"0.57616645",
"0.5760521",
"0.5758098",
"0.5756585",
"0.5754435",
"0.5754435",
"0.57532984",
"0.57378346",
"0.57378346",
"0.57378346",
"0.5733918",
"0.57269305",
"0.5725256",
"0.57015634",
"0.5695961",
"0.5682113",
"0.5680359",
"0.5658879",
"0.5655324",
"0.56529176"
] | 0.5946191 | 56 |
Return true if there's no active tool. | public boolean isClosed() {
return ( mCurrentState == STATE.CLOSED_CANCEL ) || ( mCurrentState == STATE.CLOSED_CONFIRMED );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean hasTools() {\n return hasTools(getAIUnit());\n }",
"public boolean hasActive() {\n return activeBuilder_ != null || active_ != null;\n }",
"public boolean isToolChangerOpen() {\n return toolChangerOpen;\n }",
"public boolean hasActive() {\n return active_ != null;\n }",
"boolean hasActive();",
"public boolean checkActive() {\n\t\treturn active;\n\t}",
"static synchronized boolean isRegistered(Tool tool) {\n\t\treturn getTool(tool.getItem()) != null;\n\t}",
"public boolean hasActivePokemon() {\n return activePokemonBuilder_ != null || activePokemon_ != null;\n }",
"boolean supportsExternalTool();",
"public boolean isAutoActive()\n {\n return autoCommand != null && autoCommand.isActive();\n }",
"public boolean hasTarget(){\n\t\treturn this.targetComponent != null;\n\t}",
"public Tool getActiveTool()\n {\n return GametableFrame.getGametableFrame().getGametableCanvas().getActiveTool();\n }",
"public final boolean hasTool(Player player) {\n\t\tfor (final ItemStack item : player.getInventory().getContents())\n\t\t\tif (this.isTool(item))\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}",
"boolean hasCurrentAction();",
"boolean hasCommand();",
"boolean hasCommand();",
"public boolean isMainProgram() {\n return this.getName() == null;\n }",
"public boolean requiresActiveSys() {\n\t\treturn false;\n\t}",
"public boolean hasMain() {\n\t\treturn main;\n\t}",
"public boolean hasCurrentAction() {\n return currentActionBuilder_ != null || currentAction_ != null;\n }",
"public boolean hasCommand() {\n return this.command != null;\n }",
"@java.lang.Override\n public boolean hasCurrentAction() {\n return currentAction_ != null;\n }",
"boolean hasActiveView();",
"@java.lang.Override\n public boolean hasActivePokemon() {\n return activePokemon_ != null;\n }",
"public static boolean controlManager() {\n boolean empty = false;\n\n if(OnAirPlane.isEmpty()) {\n empty = true;\n }\n return empty;\n }",
"public boolean hasActiveTx()\n{\n\treturn depth > 0;\n}",
"public boolean isProgramActive(String programId);",
"public boolean isNeedsAlert() {\n return current.needsAlert();\n }",
"private static boolean hasTools(AIUnit aiUnit) {\n return aiUnit.getUnit().hasAbility(\"model.ability.improveTerrain\");\n }",
"public boolean isUseable()\n {\n if (state == 0)\n {\n return true;\n }\n return false;\n }",
"public int getToolFlag() {\r\n return toolFlag;\r\n }",
"public boolean getActive();",
"public boolean getActive();",
"public static boolean inactivateStartGuide(){\n long inactivationTime = 1494536399000L;\r\n long currentTime = System.currentTimeMillis();\r\n boolean inactive = currentTime > inactivationTime;\r\n Log.i(StartPrefsHelper.class.getName(), \"Start Guide inactive: \" + inactive + \", inactivationTime: \" + new Date(inactivationTime) + \", currentTime: \" + new Date(currentTime));\r\n return inactive;\r\n }",
"static public boolean isLaunched()\n\t{\n\t\tif (g_currentLaunch == null)\n\t\t return false;\n\t\telse\n\t\t return true;\n\t}",
"void setActiveTool(int tool) {\n this.activeTool = tool;\n }",
"protected boolean isToolbarNeeded() {\n return true;\n }",
"public boolean isGraphActive()\n { \n return false;\n }",
"boolean hasUsage();",
"public boolean hasTarget() {\n return target != null;\n }",
"boolean isUsed();",
"boolean isUsed();",
"@SuppressWarnings(\"SameReturnValue\")\n private boolean isXposedActive() {\n return false;\n }",
"boolean hasContext();",
"boolean hasContext();",
"public boolean hasGui() {\n return hasGui;\n }",
"public boolean isActive(){\n\t\treturn false;\n\t}",
"public boolean hasActiveMASC() {\n for (final Enumeration<MoveStep> i = getSteps(); i.hasMoreElements(); ) {\n final MoveStep step = i.nextElement();\n if (step.isUsingMASC()) {\n return true;\n }\n }\n return false;\n }",
"boolean hasExecution();",
"boolean hasStartingConfig() {\n return startCfg_ != null;\n }",
"boolean hasActionCommand();",
"public final boolean hasToolInHand(final Player player) {\n\t\treturn this.isTool(player.getItemInHand());\n\t}",
"public boolean isExternalCommand() {\n Boolean external = KEY_EXTERNAL_OR_FUNCTION.get(this);\n return external != null && external && !isFunctionCall();\n }",
"public boolean needSetup() {\n\t\treturn needsSetup;\n\t}",
"public boolean isSetAlgorithm() {\n return this.algorithm != null;\n }",
"public static boolean getShowOnlyActiveAlgorithms() {\n\n return m_bShowOnlyActiveAlgorithms;\n\n }",
"private boolean isCurrent(){\n return (getPageTitle().size() > 0);\n }",
"@Override\n public boolean activate() {\n //When will this activate?\n return Areas.FALADOR.contains(ctx.players.local().tile())\n && ctx.widgets.component(1371,0).visible()\n && !ctx.objects.select().name(\"Waterpump\").within(6.0).isEmpty();\n }",
"public boolean isCurrent() {\n return osName.startsWith(name());\n }",
"public boolean scriptGenerationAvailable() {\n return scriptHistory == null && simConfigFile != null && simSpec != null;\n }",
"@Override\r\n\tpublic boolean isCurrent() {\n\t\treturn false;\r\n\t}",
"boolean hasMode();",
"public static boolean hasTarget() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tv\").getDouble(0) == 0 ? false : true;\n }",
"public final boolean isTool(final ItemStack item) {\n\t\treturn ItemUtil.isSimilar(this.getItem(), item);\n\t}",
"public boolean getExists() {\n try {\n return getExecutable(new Launcher.LocalLauncher(new StreamTaskListener(new NullStream()))) != null;\n } catch(IOException ex) {\n return false;\n } catch(InterruptedException e) {\n return false;\n }\n }",
"public boolean hasSelectedTile()\r\n\t{\r\n\t\treturn (selectedTile != null);\r\n\t}",
"public boolean noTarget()\n\t{\n\t\treturn getAggroListRP().isEmpty();\n\t}",
"public boolean isActive() {\n return (m_state != INACTIVE_STATE);\n }",
"public static boolean isSetup() {\n return setup;\n }",
"public boolean canBeUsed(){\n\t\treturn !(this.isUsed);\n\t}",
"boolean check() {\n return check(Env.empty);\n }",
"public boolean isInCheck() {\n\t\treturn false;\n\t}",
"@Override\n public boolean active() {\n return false;\n }",
"public boolean isActivated()\n {\n return this.currentState;\n }",
"public static boolean isActive() {\n\t\treturn activated;\n\t}",
"public boolean isUseHotStart() {\n return useHotStart;\n }",
"@Override\n public boolean isWorking() {\n return working && hasPlugin();\n }",
"boolean hasServiceCmd();",
"boolean hasBuild();",
"boolean hasPipelineRunContext();",
"boolean isActive();",
"boolean isActive();",
"boolean isActive();",
"boolean hasStartingInfo();",
"@Override\n public boolean isNullSigActive() {\n if (!isShutDown()) {\n for (Mounted m : getMisc()) {\n EquipmentType type = m.getType();\n if (type.hasFlag(MiscType.F_NULLSIG) && m.curMode().equals(\"On\") && m.isReady()) {\n return true;\n }\n }\n }\n return false;\n }",
"boolean hasAction();",
"boolean hasAction();",
"public boolean isSoft();",
"public boolean active(){\r\n\t\treturn active;\r\n\t}",
"public boolean isActiveOrAbsent() {\n return !isInactive();\n }",
"public boolean getPollFocusedProgram() {\n String pollEnabled = settings.get(\"pollFocused\");\n \n return pollEnabled == null || pollEnabled.equals(\"true\");\n }",
"private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }",
"private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }",
"public boolean isCalendarToolInitialized(String siteId){\n\t\tSite site = getSite(siteId);\n\t\tif (getGoogleCalendarID(site) != null){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isActive(){\r\n\t\treturn active_;\r\n\t}",
"public boolean isStopped() {\n return m_runner == null;\n }",
"public boolean isUndoAvailable() {\n\t\treturn lastCommand != null;\n\t}",
"public boolean hasPlugin() {\n return plugin != null;\n }",
"boolean hasUses();",
"public boolean isInCheckMate() {\n\t\treturn this.isInCheck && !hasEscapeMoves();\n\t}",
"@Override\n\tpublic boolean zIsActive() throws HarnessException {\n\t\tif ( !MyApplication.zIsLoaded() )\n\t\t\tthrow new HarnessException(\"Admin Console application is not active!\");\n\n\n\t\tboolean present = sIsElementPresent(\"\");\n\t\tif ( !present ) {\n\t\t\treturn (false);\n\t\t}\n\n\t\tString attrs = sGetAttribute(\"\");\n\t\tif ( !attrs.contains(\"ZSelected\") ) {\n\t\t\treturn (false);\n\t\t}\n\n\t\treturn (true);\n\n\t}"
] | [
"0.71508956",
"0.678689",
"0.6726762",
"0.6575199",
"0.65175146",
"0.64162153",
"0.6413929",
"0.6409144",
"0.6380754",
"0.6331027",
"0.63166744",
"0.6283515",
"0.6279294",
"0.62599677",
"0.62338096",
"0.62338096",
"0.62263596",
"0.6145433",
"0.61296535",
"0.6099015",
"0.60620093",
"0.6053458",
"0.6046072",
"0.6016002",
"0.60079324",
"0.60002756",
"0.59753466",
"0.59742165",
"0.595184",
"0.59493804",
"0.59439886",
"0.59381574",
"0.59381574",
"0.59346724",
"0.5931843",
"0.5930581",
"0.59174263",
"0.5917206",
"0.5908566",
"0.58983254",
"0.5895059",
"0.5895059",
"0.5891867",
"0.58905053",
"0.58905053",
"0.58821446",
"0.5880967",
"0.58611655",
"0.5839724",
"0.58371496",
"0.5833942",
"0.5827917",
"0.581726",
"0.5813198",
"0.5796205",
"0.5784569",
"0.577857",
"0.5778229",
"0.57659477",
"0.57637984",
"0.5752829",
"0.574565",
"0.5730907",
"0.57266384",
"0.5724155",
"0.5723896",
"0.5719643",
"0.57179606",
"0.5709871",
"0.5697355",
"0.5696808",
"0.56953615",
"0.5679226",
"0.567715",
"0.566795",
"0.5666693",
"0.56653744",
"0.56626004",
"0.5660294",
"0.5659622",
"0.56565964",
"0.56565964",
"0.56565964",
"0.56549853",
"0.5646954",
"0.5645812",
"0.5645812",
"0.5631735",
"0.5631131",
"0.5623542",
"0.5618986",
"0.5613805",
"0.5613805",
"0.5613026",
"0.56118435",
"0.56101197",
"0.5609967",
"0.56093115",
"0.56041867",
"0.5601955",
"0.56008667"
] | 0.0 | -1 |
return true if there's one active tool. | public boolean isOpened() {
return mCurrentState == STATE.OPENED;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static synchronized boolean isRegistered(Tool tool) {\n\t\treturn getTool(tool.getItem()) != null;\n\t}",
"public boolean isToolChangerOpen() {\n return toolChangerOpen;\n }",
"private boolean hasTools() {\n return hasTools(getAIUnit());\n }",
"public Tool getActiveTool()\n {\n return GametableFrame.getGametableFrame().getGametableCanvas().getActiveTool();\n }",
"public boolean isProgramActive(String programId);",
"boolean supportsExternalTool();",
"public final boolean hasTool(Player player) {\n\t\tfor (final ItemStack item : player.getInventory().getContents())\n\t\t\tif (this.isTool(item))\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}",
"boolean hasActive();",
"public boolean hasActive() {\n return activeBuilder_ != null || active_ != null;\n }",
"public boolean isAutoActive()\n {\n return autoCommand != null && autoCommand.isActive();\n }",
"void setActiveTool(int tool) {\n this.activeTool = tool;\n }",
"public boolean hasActive() {\n return active_ != null;\n }",
"public final boolean isTool(final ItemStack item) {\n\t\treturn ItemUtil.isSimilar(this.getItem(), item);\n\t}",
"public boolean getActive();",
"public boolean getActive();",
"boolean hasActiveView();",
"public int getToolFlag() {\r\n return toolFlag;\r\n }",
"boolean hasCommand();",
"boolean hasCommand();",
"boolean hasCurrentAction();",
"public boolean checkActive() {\n\t\treturn active;\n\t}",
"public boolean isMainProgram() {\n return this.getName() == null;\n }",
"public boolean hasActivePokemon() {\n return activePokemonBuilder_ != null || activePokemon_ != null;\n }",
"public Tool getCurrentTool() {\n return fCurrTool;\n }",
"public final boolean hasToolInHand(final Player player) {\n\t\treturn this.isTool(player.getItemInHand());\n\t}",
"public String getTool() {\n\t\treturn tool;\n\t}",
"protected boolean isActive(String appName) {\n return appFile(appName, \"active\").exists();\n }",
"private static boolean hasTools(AIUnit aiUnit) {\n return aiUnit.getUnit().hasAbility(\"model.ability.improveTerrain\");\n }",
"public boolean hasTarget(){\n\t\treturn this.targetComponent != null;\n\t}",
"public boolean getActive()\n {\n return this.active;\n }",
"boolean isActive();",
"boolean isActive();",
"boolean isActive();",
"static public boolean isCurrentLaunch(ILaunch launch)\n\t{\n\t\tif ((g_currentLaunch == null) || (g_currentLaunch != launch))\n\t\t return false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public static boolean isActive() {\n\t\treturn activated;\n\t}",
"static public boolean isLaunched()\n\t{\n\t\tif (g_currentLaunch == null)\n\t\t return false;\n\t\telse\n\t\t return true;\n\t}",
"public boolean activate();",
"public boolean isCurrent() {\n return osName.startsWith(name());\n }",
"public Tool getTool() {\n\treturn tool;\n }",
"public static boolean inactivateStartGuide(){\n long inactivationTime = 1494536399000L;\r\n long currentTime = System.currentTimeMillis();\r\n boolean inactive = currentTime > inactivationTime;\r\n Log.i(StartPrefsHelper.class.getName(), \"Start Guide inactive: \" + inactive + \", inactivationTime: \" + new Date(inactivationTime) + \", currentTime: \" + new Date(currentTime));\r\n return inactive;\r\n }",
"boolean hasActionCommand();",
"boolean hasServiceCmd();",
"public boolean hasMain() {\n\t\treturn main;\n\t}",
"private boolean checkToolOnHost(ArrayList<SimpleEntry> toolCheck) throws TNotFoundEx{\n\t\tint result=13;\n\t\tString cmd=\"\";\n\t\tboolean pass=true;\n\t\tfor(SimpleEntry s: toolCheck){\n\t\t\tcmd = s.getValue().toString();\n\t\t\tresult = this.commando.executeProcessListPrintOP(cmd, false);\n\n\t\t\t\tif (result != 0){\n\t\t\t\t\tOutBut.printError(\"Tool \"+s.getKey().toString()+\" does not exist on the host, please install it first\");\n\t\t\t\t\tpass=false;\n\t\t\t\t}\n\t\t\t}\n\t\treturn pass;\n\t}",
"boolean hasContext();",
"boolean hasContext();",
"public String getToolname() {\r\n return toolname;\r\n }",
"public boolean getExists() {\n try {\n return getExecutable(new Launcher.LocalLauncher(new StreamTaskListener(new NullStream()))) != null;\n } catch(IOException ex) {\n return false;\n } catch(InterruptedException e) {\n return false;\n }\n }",
"public boolean hasCurrentAction() {\n return currentActionBuilder_ != null || currentAction_ != null;\n }",
"@Override\n public boolean activate() {\n //When will this activate?\n return Areas.FALADOR.contains(ctx.players.local().tile())\n && ctx.widgets.component(1371,0).visible()\n && !ctx.objects.select().name(\"Waterpump\").within(6.0).isEmpty();\n }",
"public ToolStatus getToolStatus() { return toolStatus;\n }",
"public boolean active(){\r\n\t\treturn active;\r\n\t}",
"boolean isExecutable();",
"public final boolean isActive() {\n synchronized (this.lifecycleMonitor) {\n return this.active;\n }\n }",
"public String getToolisuse() {\r\n return toolisuse;\r\n }",
"public boolean isActive(){\r\n\t\treturn active_;\r\n\t}",
"boolean hasUsage();",
"boolean hasMode();",
"public boolean isUseable()\n {\n if (state == 0)\n {\n return true;\n }\n return false;\n }",
"boolean isUsed();",
"boolean isUsed();",
"public boolean isCommand()\n {\n return aCommands.containsKey(this);\n }",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"private boolean determineActiveRecipe() {\n boolean result = false;\n\n if (this.recipeKey != null) {\n if (Prefab.proxy.getServerConfiguration().recipeConfiguration.containsKey(this.recipeKey)) {\n result = Prefab.proxy.getServerConfiguration().recipeConfiguration.get(this.recipeKey);\n }\n }\n\n return result;\n }",
"public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}",
"public boolean hasActiveMASC() {\n for (final Enumeration<MoveStep> i = getSteps(); i.hasMoreElements(); ) {\n final MoveStep step = i.nextElement();\n if (step.isUsingMASC()) {\n return true;\n }\n }\n return false;\n }",
"public boolean isActive( ) {\n\t\treturn active;\n\t}",
"public boolean hasCommand() {\n return this.command != null;\n }",
"public boolean getPollFocusedProgram() {\n String pollEnabled = settings.get(\"pollFocused\");\n \n return pollEnabled == null || pollEnabled.equals(\"true\");\n }",
"public boolean isPanelActive() {\n return getElement(container).getAttribute(\"class\").contains(\"rx-blade-expanded\");\n }",
"public boolean isActive() {\n\t\treturn active;\n\t}",
"public boolean isExternalCommand() {\n Boolean external = KEY_EXTERNAL_OR_FUNCTION.get(this);\n return external != null && external && !isFunctionCall();\n }",
"public boolean isMapActive(int id) {\n\t\tPreferences.loadSettings(getActivity());\n\t\tif (Preferences.activeDeployment == id) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n\t}",
"private Boolean isExternalBackendRunning() {\n\t\ttry {\n\t\t\tHttpResponse response = this.http.get(this.guid);\n\t\t\tif (HTTP.getCode(response) != 200) {\n\t\t\t\tHTTP.release(response);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn HTTP.getString(response).equals(Backend.OUTPUT_GUID);\n\t\t} catch (IOException exception) {\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean isSplitActive() {\n ActivityManager.RunningTaskInfo runningTaskInfo;\n SplitScreenTaskOrganizer splitScreenTaskOrganizer = this.mSplits;\n ActivityManager.RunningTaskInfo runningTaskInfo2 = splitScreenTaskOrganizer.mPrimary;\n return (runningTaskInfo2 == null || (runningTaskInfo = splitScreenTaskOrganizer.mSecondary) == null || (runningTaskInfo2.topActivityType == 0 && runningTaskInfo.topActivityType == 0)) ? false : true;\n }",
"public boolean setToolCommand(String command);",
"boolean hasExecution();",
"public boolean isActive() {\r\n\t\treturn active;\r\n\t}",
"public boolean isActive() { return true; }",
"public boolean isActive() {\n\t\treturn stateMachine.isActive();\n\t}",
"protected boolean isToolbarNeeded() {\n return true;\n }",
"boolean hasBuild();",
"@Override\n\tpublic boolean zIsActive() throws HarnessException {\n\t\tif ( !MyApplication.zIsLoaded() )\n\t\t\tthrow new HarnessException(\"Admin Console application is not active!\");\n\n\n\t\tboolean present = sIsElementPresent(\"\");\n\t\tif ( !present ) {\n\t\t\treturn (false);\n\t\t}\n\n\t\tString attrs = sGetAttribute(\"\");\n\t\tif ( !attrs.contains(\"ZSelected\") ) {\n\t\t\treturn (false);\n\t\t}\n\n\t\treturn (true);\n\n\t}",
"public boolean isCalendarToolInitialized(String siteId){\n\t\tSite site = getSite(siteId);\n\t\tif (getGoogleCalendarID(site) != null){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isActive(){\n\t\treturn active;\n\t}",
"boolean hasStartingInfo();",
"public boolean isActivated()\n {\n return this.currentState;\n }"
] | [
"0.6952034",
"0.68977803",
"0.68516475",
"0.68177205",
"0.67097545",
"0.66587025",
"0.65968245",
"0.65883696",
"0.65568584",
"0.6521341",
"0.635184",
"0.6318809",
"0.63070405",
"0.6281503",
"0.6281503",
"0.62714195",
"0.6182467",
"0.6177696",
"0.6177696",
"0.616881",
"0.6162351",
"0.6108436",
"0.60131013",
"0.601132",
"0.5993898",
"0.591207",
"0.590197",
"0.5890818",
"0.5888159",
"0.58355874",
"0.58300704",
"0.58300704",
"0.58300704",
"0.5794276",
"0.57844335",
"0.5782337",
"0.5781988",
"0.57818484",
"0.57581687",
"0.5756298",
"0.575194",
"0.57421464",
"0.5741136",
"0.573865",
"0.57378465",
"0.57378465",
"0.5725323",
"0.57220435",
"0.5721891",
"0.571286",
"0.5709475",
"0.5707986",
"0.57038075",
"0.5689023",
"0.5685471",
"0.5678675",
"0.56718236",
"0.56683946",
"0.56557155",
"0.56449735",
"0.56449735",
"0.5643868",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.56400496",
"0.5625099",
"0.5624506",
"0.56238854",
"0.5614058",
"0.5613658",
"0.5607377",
"0.55983216",
"0.55965364",
"0.55945987",
"0.5593954",
"0.55925065",
"0.5592334",
"0.5581606",
"0.5577077",
"0.5576936",
"0.5566608",
"0.5558364",
"0.55577314",
"0.5557008",
"0.55519015",
"0.5547078",
"0.5542966",
"0.5538786",
"0.55326164"
] | 0.0 | -1 |
Current activity is asking to apply the current tool. | public void onApply() {
logger.info( "FilterManager::onapply" );
if ( !getEnabled() || !isOpened() ) return;
if ( mCurrentEffect == null ) throw new IllegalStateException( "there is no current effect active in the context" );
if ( !mCurrentEffect.isEnabled() ) return;
if ( mCurrentEffect.getIsChanged() ) {
mCurrentEffect.onSave();
mChanged = true;
} else {
onCancel();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void toolAccepted()\n {\n printOut(cliToolsManager.simpleQuestionsMaker(\"Strumento accettato\", 40, true));\n }",
"protected void performApply() {\n\n for (int i = 0; i < providers.getItemCount(); i++) {\n\n //TODO: The checkboxes are buggy. Sometimes the provider in the table - representation\n // seems not to be the correct VilArgumentProvier.\n if (providers.getItem(i).getChecked()) {\n VilArgumentProvider.getProvider(i).setActive(true);\n } else {\n VilArgumentProvider.getProvider(i).setActive(false);\n }\n \n //the arguments are in column 4..\n try {\n //Set the free arguments\n VilArgumentProvider.getProvider(i).setFreeArguments(providers.getItem(i).getText(4).trim().toString());\n } catch (NullPointerException e) {\n VilArgumentProvider.getProvider(i).setFreeArguments(\"\");\n }\n \n EASyPreferenceStore.persistVilArgumentProviderStates();\n }\n }",
"private void trySupplyCurrentActivity(){\n // Provides the current activity to the mMapView when a callback is requested.\n mMapView.setOnSupplyCurrentActivityListener(new MapView.OnSupplyCurrentActivityListener() {\n @Override\n public Activity onSupplyCurrentActivity() {\n return MapActivity.this;\n }\n });\n }",
"public void handleActionApply() {\n\t\t// it's important to perform handleActionOk\n\t\t// and not handleActionApply here\n\t\tsuper.handleActionOk();\n\t\tnewModeOkApply();\n\t\t// afterwards reopen the bean editor\n\t\tnew OpenCurrentBillingPeriod().execute();\n\t}",
"public void toolDone() {\n setTool(fDefaultToolButton.tool(), fDefaultToolButton.name());\n setSelected(fDefaultToolButton);\n }",
"void setActiveTool(int tool) {\n this.activeTool = tool;\n }",
"private void applyHint() {\r\n\t\tif (this.client.getTurn().getMoves().size() != 0) {\r\n\t\t\tthis.client.submitTurn();\r\n\t\t} else { \r\n\t\t\tUtil.println(\"This could not been applied to the server.\");\r\n\t\t}\r\n\t}",
"protected void activeActivity() {\n\t\tLog.i(STARTUP, \"active activity\");\n\t\tcheckActiveActivity();\n\t}",
"public Tool getActiveTool()\n {\n return GametableFrame.getGametableFrame().getGametableCanvas().getActiveTool();\n }",
"@Override\n public void onPositiveClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n quitThisActivity();\n }",
"public Tool getCurrentTool() {\n return fCurrTool;\n }",
"private Intent m34056c(Context context) {\n Intent intent = new Intent(\"miui.intent.action.APP_PERM_EDITOR\");\n intent.putExtra(\"extra_pkgname\", context.getPackageName());\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(\"com.miui.securitycenter\", \"com.miui.permcenter.permissions.AppPermissionsEditorActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }",
"public void accomplishGoal() {\r\n isAccomplished = true;\r\n }",
"public boolean isApplied() {\n return selectedDatasetNumbers.size() > 1;\n }",
"public boolean isToolChangerOpen() {\n return toolChangerOpen;\n }",
"public boolean onIntentChosen(Intent intent, ResolveInfo resolveInfo) {\n return false;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\n\t\tIntent intent = new Intent();\n\t\tintent.setClass(MainActivity.this, LockScreenActivity.class);\n\t\tintent.putExtra(LockScreenActivity.BlockedPackageName, \"proauth_settings\");\n\t\tstartActivityForResult(intent, 0);\n\t\t\n\t\treturn true;\n\t}",
"public void setCurrentApplyDate(java.util.Date currentApplyDate) {\n this.currentApplyDate = currentApplyDate;\n }",
"@Override\n public boolean applies() {\n return true;\n }",
"@Override\n\t\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\t\tif(item.toString() == \"Cancel Paired\")\n\t\t\t{\n\t\t\t\tpaired_cancel(mBtDevChosen);\n\t\t\t}\n\t\t\telse if(item.toString()== \"Pair and Connect\")\n\t\t\t{\n\t\t\t\tactivity_result_set(mBtDevChosen);\n\t\t\t}\n\t\t\treturn super.onContextItemSelected(item);\n\t\t}",
"@SystemAPI\n\tboolean needsApproval();",
"public Button getBtApply() {\n\t\treturn btApply;\n\t}",
"private void initToLastToolRun() {\n\n try {\n\n final String p = Application.getToolManager().getLastToolName();\n\n if (p == null) {\n return;\n }\n\n fToolSelectorTree.selectTool(p);\n\n } catch (Throwable t) {\n klog.warn(t);\n }\n }",
"public void clickApplyButtonInAboutMe() throws UIAutomationException{\t\r\n\t\telementController.requireElementSmart(fileName,\"Apply Button In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Apply Button In About Me\");\r\n\t\tUIActions.click(fileName,\"Apply Button In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Apply Button In About Me\");\r\n\t/*\ttry\r\n\t\t{\r\n\t\t\tThread.sleep(3500);\r\n\t\t}\r\n\t\tcatch(Exception e){}\r\n\t\telementController.requireElementSmart(fileName,\"No Changes Applied Notification\",GlobalVariables.configuration.getAttrSearchList(), \"No Changes Applied Notification\");\r\n\t\tString tabTextInPage=UIActions.getText(fileName,\"No Changes Applied Notification\",GlobalVariables.configuration.getAttrSearchList(), \"No Changes Applied Notification\");\r\n\t\tString tabTextInXML=dataController.getPageDataElements(fileName,\"No Changes Notification Name\" , \"Name\");\r\n\t\tif(!tabTextInPage.contains(tabTextInXML)){\r\n\t\t\tthrow new UIAutomationException( \"'\"+tabTextInXML +\"' not found\");\r\n\t\t}*/\r\n\t\t}",
"public boolean applyDialog() {\n\n\t\tif (!editorsAreValid())\n\t\t\treturn false;\n\t\t\t\n\t\ttry {\n\t\t\tconnection.callRPC(GDL_CONFIGURE_PROC_,\n\t\t\t\tnew Object[]{editedItem, getResultStructures(), connection.retrieveSession()},\n\t\t\t\t30000);\n\t\t} catch (Exception e) {\n\t\t\tTrace.exception(e);\n\t\t\treturn false;\n\t\t}\n\t\tchangedAttributes.clear();\n\t\treturn true;\n\t}",
"boolean hasCurrentAction();",
"private void showRequestPermissionRationaleDialog(){\n new AlertDialog.Builder(this)\n .setMessage(\"Permissions needed to use application features.\")\n .setPositiveButton(\"Allow\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n startAppSettingsConfigActivity();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .setCancelable(false)\n .create()\n .show();\n }",
"@OnClick(R.id.setUserProfileEdits)\n public void onConfirmEditsClick() {\n if (UserDataProvider.getInstance().getCurrentUserType().equals(\"Volunteer\")){\n addSkills();\n addCauses();\n }\n updateUserData();\n // get intent information from previous activity\n\n// Intent intent = new Intent(getApplicationContext(), LandingActivity.class);\n\n\n// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n finish();\n// startActivity(intent);\n }",
"@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }",
"@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }",
"public void cancelThemeApply(boolean z) {\n if (this.screenType != 2) {\n Theme.applyPreviousTheme();\n NotificationCenter.getGlobalInstance().removeObserver(this, NotificationCenter.didSetNewWallpapper);\n if (this.screenType == 1) {\n if (this.editingTheme) {\n Theme.ThemeAccent themeAccent = this.accent;\n themeAccent.accentColor = this.backupAccentColor;\n themeAccent.accentColor2 = this.backupAccentColor2;\n themeAccent.myMessagesAccentColor = this.backupMyMessagesAccentColor;\n themeAccent.myMessagesGradientAccentColor1 = this.backupMyMessagesGradientAccentColor1;\n themeAccent.myMessagesGradientAccentColor2 = this.backupMyMessagesGradientAccentColor2;\n themeAccent.myMessagesGradientAccentColor3 = this.backupMyMessagesGradientAccentColor3;\n themeAccent.myMessagesAnimated = this.backupMyMessagesAnimated;\n themeAccent.backgroundOverrideColor = this.backupBackgroundOverrideColor;\n themeAccent.backgroundGradientOverrideColor1 = this.backupBackgroundGradientOverrideColor1;\n themeAccent.backgroundGradientOverrideColor2 = this.backupBackgroundGradientOverrideColor2;\n themeAccent.backgroundGradientOverrideColor3 = this.backupBackgroundGradientOverrideColor3;\n themeAccent.backgroundRotation = this.backupBackgroundRotation;\n themeAccent.patternSlug = this.backupSlug;\n themeAccent.patternIntensity = this.backupIntensity;\n }\n Theme.saveThemeAccents(this.applyingTheme, false, true, false, false);\n } else {\n if (this.accent != null) {\n Theme.saveThemeAccents(this.applyingTheme, false, this.deleteOnCancel, false, false);\n }\n this.parentLayout.rebuildAllFragmentViews(false, false);\n if (this.deleteOnCancel) {\n Theme.ThemeInfo themeInfo = this.applyingTheme;\n if (themeInfo.pathToFile != null && !Theme.isThemeInstalled(themeInfo)) {\n new File(this.applyingTheme.pathToFile).delete();\n }\n }\n }\n if (!z) {\n finishFragment();\n }\n } else if (!z) {\n finishFragment();\n }\n }",
"private void activationON() {\n\n switch(afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.activatedContents();\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.activatedContents();\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.activatedContents();\n shell.layout();\n break;\n default: break;\n }\n\n }",
"public java.util.Date getCurrentApplyDate() {\n return currentApplyDate;\n }",
"protected void execute() {\n \tTmSsAutonomous.getInstance().showAlgInfo();\n \tshowPreferenceSettings(); //P.println(\"[Preferences info TBD]\");\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == Constants.RESULT_OK_START_OVER) {\n startOver();\n }\n else if(resultCode ==Constants.REQUESTCODE_SETTINGS){\n // do nothing\n }\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Log.d(\"TAG\", \"onActivityResult: \");\n if(requestCode==REQUEST_CHECK_SETTINGS && resultCode== Activity.RESULT_OK)\n getCurrentLocation();\n if(requestCode==REQUEST_CHECK_SETTINGS && resultCode==Activity.RESULT_CANCELED)\n Toast.makeText(getContext(), \"Please enable Location settings...!!!\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n\tprotected boolean isCanFinish() {\n\t\tIntent intent = new Intent();\n\t\tintent.setAction(et.getText().toString().trim());\n\t\tsetResult(RESULT_OK, intent);\n\t\treturn true;\n\t}",
"@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(MainActivity.this);\n final SharedPreferences.Editor editor = prefs.edit();\n\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_change_setup) {\n editor.putString(\"INIT_SETUP\", \"1\");\n editor.apply();\n\n Intent intent = new Intent(MainActivity.this, SetupActivity.class);\n startActivity(intent);\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(PACKAGE, Utils.getAppPackageName(getApplicationContext()), null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivityForResult(intent, PERMISSIONS_REQUEST_CODE);\n }",
"@Override\r\n public String feedbackApplicable() {\r\n String result = super.feedbackApplicable();\r\n if (result.isEmpty()) {\r\n AppSettings current = getApplication().getSettings();\r\n\r\n boolean currentFull = current.isFullscreen();\r\n boolean goFull = !currentFull && isFullscreen();\r\n if (goFull) {\r\n return \"Can't go from windowed to fullscreen.\";\r\n }\r\n\r\n int currentHeight = current.getHeight();\r\n boolean heightChange = currentHeight != height();\r\n if (heightChange) {\r\n return \"Can't apply height change.\";\r\n }\r\n\r\n int currentWidth = current.getWidth();\r\n boolean widthChange = currentWidth != width();\r\n if (widthChange) {\r\n return \"Can't apply width change.\";\r\n }\r\n }\r\n\r\n return result;\r\n }",
"private void haveFun() {\n\t\tint action = inputPrompt.funActivities(money);\r\n\t\tthis.money -= action;\r\n\t\t//has better effect depending on how much money you have spent\r\n\t\tthis.mentalHealth += FUNHEALTH + action;\r\n\t\tdailyTime--;\r\n\t\tinputPrompt.mainInfo(energy, physHealth, mentalHealth, money);\r\n\t\t\r\n\t}",
"public PendingMaintenanceAction withCurrentApplyDate(java.util.Date currentApplyDate) {\n this.currentApplyDate = currentApplyDate;\n return this;\n }",
"public boolean isNeedsAlert() {\n return current.needsAlert();\n }",
"public void apply() {\n tempIsKiosk = fetchBoolean(PREFKEY_IS_KIOSK);\n tempIsTablet = fetchBoolean(PREFKEY_IS_TABLET);\n tempSSL = fetchBoolean(PREFKEY_HTTP_SSL);\n tempFetched = fetchBoolean(PREFKEY_RES_FETCHED);\n tempHttpPort = fetchString(PREFKEY_HTTP_PORT);\n tempHttpHost = fetchString(PREFKEY_HTTP_HOST);\n temppassword = fetchString(PREFKEY_PASSWORD);\n tempUsername = fetchString(PREFKEY_USERNAME);\n tempBootstrap = fetchString(PREFKEY_BOOTSTRAP);\n roomSelected = fetchString(PREFKEY_ROOM_SELECTED);\n toIgnore = fetchString(PREFKEY_TO_IGNORE);\n isImageDownloaded = fetchBoolean(PREFKEY_IS_IMAGE_DOWNLOADED);\n isImageLan = fetchBoolean(PREFKEY_IS_IMAGE_LAN);\n }",
"private boolean arEngineAbilityCheck() {\n boolean isInstallArEngineApk = AREnginesApk.isAREngineApkReady(this);\n if (!isInstallArEngineApk && isRemindInstall) {\n Toast.makeText(this, \"Please agree to install.\", Toast.LENGTH_LONG).show();\n finish();\n }\n Log.d(TAG, \"Is Install AR Engine Apk: \" + isInstallArEngineApk);\n if (!isInstallArEngineApk) {\n startActivity(new Intent(this, ConnectAppMarketActivity.class));\n isRemindInstall = true;\n }\n return AREnginesApk.isAREngineApkReady(this);\n }",
"public boolean onConfirmClicked(DialogActivity dialog)\n {\n return mApplyButton.performClick();\n }",
"private void tutorialCheck() {\n SharedPreferences sp = getApplicationContext().getSharedPreferences(getApplicationContext().getString(R.string.app_name), MODE_PRIVATE);\n if (sp.contains(\"Tutorial_Complete\")) {\n if (sp.getBoolean(\"Tutorial_Complete\", false)) {\n return;\n }\n }\n Intent intent = new Intent(this, TutorialPanel.class);\n startActivity(intent);\n }",
"@Override\n\tpublic void apply1() {\n\t\tSystem.out.println(\"work apply1\");\n\t}",
"void askDefaultProduction();",
"private Intent m34059f(Context context) {\n Intent intent = new Intent(\"com.meizu.safe.security.SHOW_APPSEC\");\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setComponent(new ComponentName(\"com.meizu.safe\", \"com.meizu.safe.security.AppSecActivity\"));\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n Intent intent;\n isOptionSelected = true;\n switch (item.getItemId()) {\n case R.id.about:\n intent = new Intent(this, AboutActivity.class);\n break;\n case R.id.dawson_website:\n intent = new Intent(Intent.ACTION_VIEW,\n Uri.parse(this.getString(R.string.urlToDawson)));\n break;\n case R.id.settings:\n intent = new Intent(this, SettingsActivity.class);\n break;\n default:\n isOptionSelected = super.onOptionsItemSelected(item);\n return isOptionSelected;\n }\n //will only reach here is isOptionsSelected = true;\n if (checkIfChanged()) {\n showDialog(intent);\n return true;\n } else {\n launchActivity(intent);\n finish();\n return true;\n }\n\n }",
"private void alertDialogeForAskingPermissions() {\n builder.setMessage(getResources().getString(R.string.app_name) + \" needs access to \" + permissions[0] + \", \" + permissions[1]).setTitle(R.string.permissions_required);\n\n //Setting message manually and performing action on button click\n //builder.setMessage(\"Do you want to close this application ?\")\n builder.setCancelable(false)\n .setPositiveButton(R.string.later, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n // Action for 'Later'\n //Saving later boolean value as true, also saving time of pressed later\n Date dateObj = new Date();\n long timeNow = dateObj.getTime();\n editor.putLong(getResources().getString(R.string.later_pressed_time), timeNow);\n editor.putBoolean(getResources().getString(R.string.later), true);\n editor.commit();\n dialog.cancel();\n }\n })\n .setNegativeButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }",
"public String getApplyId() {\n return applyId;\n }",
"@Override\n\tpublic long apply(ICreationCondition condition, ICreationData action, boolean optional, long apply) {\n\t\treturn apply;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to a click on the \"Labor Rates\" menu option\n case R.id.labor_rates:\n Intent intentLabor = new Intent(MainActivity.this, LaborRatesActivity.class);\n startActivity(intentLabor);\n return true;\n\n // Respond to a click on the \"Edit Pay Period Dates\" menu option\n case R.id.edit_pay_period_dates:\n Intent intentEditPayPeriod = new Intent(MainActivity.this, EditPayPeriodActivity.class);\n startActivity(intentEditPayPeriod);\n return true;\n\n // Respond to a click on the \"Order By\" menu option\n case R.id.order_by:\n Intent intentOrderBy = new Intent(MainActivity.this, OrderByActivity.class);\n startActivity(intentOrderBy);\n return true;\n\n // Respond to a click on the \"End Pay Period\" menu option\n case R.id.end_pay_period:\n\n //!!!!!THIS IS JUST A TEMPORARY INTENT TO SEE THE REPAIR ORDER ACTIVITY!!!!\n Intent intentRepairOrder = new Intent(MainActivity.this, RepairOrderActivity.class);\n startActivity(intentRepairOrder);\n\n\n //!!!!!THIS IS JUST A TEMPORARY INTENT TO SEE THE ARCHIVED PAY PERIOD ACTIVITY!!!!\n //Intent intentArchivedPayPeriod = new Intent(MainActivity.this, ArchivedPayPeriodActivity.class);\n //startActivity(intentArchivedPayPeriod);\n\n\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"abstract boolean shouldTaskActivate();",
"public void interactWhenApproaching() {\r\n\t\t\r\n\t}",
"public final void mo32362c() {\n Editor edit = PreferenceManager.getDefaultSharedPreferences(C13499h.m39721g()).edit();\n edit.putString(\"com.facebook.appevents.SourceApplicationInfo.callingApplicationPackage\", this.f34929a);\n edit.putBoolean(\"com.facebook.appevents.SourceApplicationInfo.openedByApplink\", this.f34930b);\n edit.apply();\n }",
"@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}",
"boolean requestIfNeeded(Activity activity, Permission permission);",
"void applyChanges() {\n trainFunction.setAlias(txtAlias.getText());\n trainFunction.getConfiguration().setAddress(txtAddress.getValue());\n\n trainFunction.getConfiguration().setBit(selectBit.getSelected().orElse(null));\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(GuideActivity.this,MainActivity.class);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NO_USER_ACTION);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\tMyApplication.getApp().getSysSpUtil().setIsFirstTime(false);\r\n\t\t\t\tfinish();\r\n\t\t\t}",
"@Override\n\tpublic void approveAcceptedOffer(String matriculation) {\n\t\tofferman.approveAcceptedOffer(matriculation);\n\t\t\n\t}",
"public boolean activate();",
"@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void activity() {\n\t\tSystem.out.println(\"relaxing\");\n\t}",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface paramDialogInterface, int paramInt) {\n\t\t\t\t\tIntent myIntent = new Intent( Settings.ACTION_SECURITY_SETTINGS );\r\n context.startActivity(myIntent);\r\n \r\n Constants.IS_FROM_GPSLOCATION=true;\r\n //checkForProviders(mLocationManager);\r\n //to check once more for providers\r\n //getGPSLocation(context);\r\n\t\t\t\t}",
"private void editPoint() {\n Snackbar.make(coordinatorLayout, R.string.feature_not_available, Snackbar.LENGTH_SHORT).show();\n }",
"private void applyOrSaveRules() {\n final boolean enabled = Api.isEnabled(this);\n final Context ctx = getApplicationContext();\n\n Api.generateRules(ctx, Api.getApps(ctx, null), true);\n\n if (!enabled) {\n Api.setEnabled(ctx, false, true);\n setDirty(false);\n return;\n }\n Api.updateNotification(Api.isEnabled(getApplicationContext()), getApplicationContext());\n new RunApply().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n prefs.edit().putBoolean(\"prefs_shown_star_tip\", true).apply();\n //Using apply (instead of commit), because we don't want to stall the UI-thread.\n //apply will make the change in memory, and then save it to persistent story\n //on a background thread.\n }",
"@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}",
"public boolean shouldExecute() {\n return this.goalOwner.getTeam() == null ? false : super.shouldExecute();\n }",
"public void confirmLightning() {\n selectedLightning = true;\n }",
"public boolean setToolCommand(String command);",
"@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}",
"protected boolean findDefault(DisplayResolveInfo info) {\r\n List<IntentFilter> intentList = new ArrayList<IntentFilter>();\r\n List<ComponentName> prefActList = new ArrayList<ComponentName>();\r\n final String packageName = info.ri.activityInfo.packageName;\r\n \r\n mPm.getPreferredActivities(intentList, prefActList, packageName);\r\n if (prefActList.size() <= 0) {\r\n \treturn false;\r\n } // End of if\r\n \treturn true;\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch(item.getItemId()) {\n\n case R.id.menumain_addTask:\n //calling taskEditRequest() method and passing null parameter\n taskEditRequest(null);\n break;\n case R.id.menumain_duration:\n break;\n case R.id.menumain_about:\n break;\n case R.id.menumain_settings:\n break;\n case R.id.menumain_generate:\n break;\n default:\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n if (id == R.id.action_myinfo){\n return true;\n }\n if (id == R.id.action_myschedule){\n// Intent it = new Intent(SwipePlot.this,Choice.class);\n// Bundle bundle = new Bundle();\n// if(myid!=null) {\n// bundle.putString(\"memberid\", myid);\n// bundle.putString(\"my_google_id\",my_google_id);\n// bundle.putString(\"my_supervise_id\",my_supervise_id);\n// }else{\n// bundle.putString(\"memberid\", current_id);\n// bundle.putString(\"my_google_id\",my_google_id);\n// bundle.putString(\"my_supervise_id\",my_supervise_id);\n// }\n// it.putExtras(bundle);\n// startActivity(it);\n return true;\n }\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n TaskDatabase td = new TaskDatabase(this);\n if (item.getItemId() == android.R.id.home && !new_reward.getText().toString().equals(\"\") && Skb.getProgress() != 0 && test2 == -1) {\n td.open();\n td.insertGoal(new_reward.getText().toString(),Skb.getProgress(),hidden.getText().toString());\n } else if (item.getItemId() == android.R.id.home && !new_reward.getText().toString().equals(\"\") && Skb.getProgress() != 0) {\n td.open();\n td.update_goals(test2,new_reward.getText().toString(),Skb.getProgress(),hidden.getText().toString());\n }\n finish(); // close this activity and return to preview activity (if there is any)\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}",
"public int getToolFlag() {\r\n return toolFlag;\r\n }",
"@Override // com.oppo.enterprise.mdmcoreservice.utils.defaultapp.DefaultApp\n public void clearPreferredActivity(PackageManager pm, String currentDefault) {\n super.clearPreferredActivity(pm, currentDefault);\n if (Build.VERSION.SDK_INT >= 23) {\n setDefaultBrowserPackageName(pm, null, UserHandle.myUserId());\n }\n }",
"protected CommandResult doExecuteWithResult(IProgressMonitor progressMonitor, IAdaptable info) {\r\n\t\tif (!_isCapability) {\r\n\t\t\tnubEditPopUp = new RequirementsPopupDialog(_shell, (Unit) _dmo,\r\n\t\t\t\t\t_initialLocation != null ? _initialLocation : estimate(_editPart, TOP_RIGHT));\r\n\t\t} else if (_dmo instanceof Unit) {\r\n\t\t\tnubEditPopUp = new CapabilitiesPopupDialog(_shell, (Unit) _dmo,\r\n\t\t\t\t\t_initialLocation != null ? _initialLocation : estimate(_editPart, BOTTOM_LEFT));\r\n\t\t}\r\n\r\n\t\tif (nubEditPopUp != null) {\r\n\t\t\tnew UnitFlyOutPropertiesToggler((Unit) _dmo, _domain,\r\n\t\t\t\t\t(UnitFlyOutPropertiesTogglerDialog) nubEditPopUp);\r\n\t\t\tnubEditPopUp.open();\r\n\t\t\tif (initialSelectionProvider != null && nubEditPopUp instanceof ISetSelectionTarget) {\r\n\t\t\t\t((ISetSelectionTarget) nubEditPopUp).selectReveal(initialSelectionProvider\r\n\t\t\t\t\t\t.getSelection());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn CommandResult.newOKCommandResult();\r\n\t}",
"public boolean onOptionsItemSelected(MenuItem item) {\n Intent i = null;\n switch (item.getItemId()) {\n\n case R.id.brush_settings:\n i = new Intent(this,SettingsActivity.class);\n break;\n\n case R.id.new_painting:\n //Display a dialog to ask if the user wants to start a new painting\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"New Painting\");\n builder.setMessage(\"Are you sure you want a new painting?\").setPositiveButton(\n \"Yes\", (dialog, id) -> touchArea.newPainting()).setNegativeButton(\n \"No\", (dialog, id) -> {});\n AlertDialog dialog = builder.create();\n dialog.show();\n break;\n\n case R.id.load_painting:\n Intent files = new Intent(this, loading_screen.class);\n this.startActivityForResult(files, REQUEST_CODE);\n break;\n\n case R.id.save_painting:\n String str = toXML();\n i = new Intent(this, save_screen.class);\n i.putExtra(\"Painting\",str);\n break;\n\n case R.id.undo_painting:\n touchArea.undo();\n break;\n\n case R.id.redo_painting:\n touchArea.redo();\n break;\n }\n if (i != null){\n this.startActivity(i);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"public Intent getAssistIntent(boolean inclContext) {\n try {\n Intent intent = new Intent(Intent.ACTION_ASSIST);\n if (inclContext) {\n IActivityTaskManager am = ActivityTaskManager.getService();\n Bundle extras = am.getAssistContextExtras(ActivityManager.ASSIST_CONTEXT_BASIC);\n if (extras != null) {\n intent.replaceExtras(extras);\n }\n }\n return intent;\n } catch (RemoteException re) {\n throw re.rethrowFromSystemServer();\n }\n }",
"private void pickCurrentPlace() {\n if (mMap == null) {\n return;\n }\n\n if (mLocationPermissionGranted) {\n getDeviceLocation();\n } else {\n getLocationPermission();\n }\n }",
"private void callPermissionSettings() {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", HomeActivity.this.getApplicationContext().getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 300);\n }",
"@Override\r\n public void onNewIntent(Intent intent){\r\n \t\r\n \tthis.activateExamBoard(intent);\r\n }",
"public boolean onOptionsItemSelected(MenuItem item){\n\t\t//field by ZAIFU\n Intent intent = new Intent();\n \n\t switch(item.getItemId()){\n\t case R.id.UserHelp:\n\t intent = new Intent(ResultActivity.this,InstructionActivity.class);\n\t startActivity(intent);\n\t return true; \n\t \n\t }\n\t return false;\n\t}",
"private void setDozeMode() {\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n Intent intent = new Intent();\n String packageName = getPackageName();\n PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE);\n\n if (!powerManager.isIgnoringBatteryOptimizations(packageName)) {\n intent.setAction(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS);\n intent.setData(Uri.parse(\"package:\" + packageName));\n startActivity(intent);\n }\n }\n }",
"@Override\n\t\t\tpublic boolean onPrepareActionMode(ActionMode arg0, Menu arg1) {\n\t\t\t\treturn false;\n\t\t\t}",
"public static void currentAty(){\n Logger logger = Logger.getLogger(InitialDriver.class);\n logger.info(\"Current Activity --> \" + driver.currentActivity());\n }",
"public void cmdOk() {\n\n\t\tif (!m_actionscombo.isValueInModel()) {\n\t\t\tString msg = I18N.getLocalizedMessage(\"Invalid Action Name\");\n\t\t\tString title = I18N.getLocalizedMessage(\"Error\");\n\t\t\tJOptionPane.showMessageDialog(null, msg, title, JOptionPane.ERROR_MESSAGE);\n\t\t} else\n\t\t\tsuper.cmdOk();\n\t}",
"boolean supportsExternalTool();",
"public String getToolCommand();",
"public void onActive() {\n Methods.showMessage(\"Warning\", \"Welcome Back!\", \"Please Continue Filling Out Your Questionanire!\");\n }"
] | [
"0.6081087",
"0.5949856",
"0.58030623",
"0.5744229",
"0.5720706",
"0.5623782",
"0.560407",
"0.5564249",
"0.5391701",
"0.5298012",
"0.52949864",
"0.5274181",
"0.5261978",
"0.5228804",
"0.52052027",
"0.51975185",
"0.5193858",
"0.518019",
"0.51648206",
"0.5149125",
"0.51416606",
"0.5135209",
"0.51319766",
"0.5121541",
"0.5118635",
"0.50872374",
"0.50681883",
"0.50651795",
"0.50474924",
"0.50474924",
"0.5046367",
"0.50404996",
"0.5027396",
"0.5025707",
"0.5022512",
"0.5013687",
"0.5013212",
"0.5012957",
"0.50086623",
"0.5001443",
"0.49967933",
"0.49932355",
"0.49823397",
"0.49765658",
"0.49763477",
"0.49583983",
"0.49549866",
"0.4953359",
"0.4951663",
"0.4950486",
"0.49429512",
"0.49355003",
"0.49343705",
"0.4925158",
"0.49154758",
"0.49147218",
"0.49081206",
"0.49063513",
"0.48917264",
"0.48903537",
"0.48903537",
"0.48887587",
"0.48869395",
"0.48856965",
"0.48816133",
"0.4873097",
"0.48626596",
"0.48626596",
"0.48623374",
"0.48544535",
"0.48507142",
"0.48476565",
"0.48457605",
"0.48435178",
"0.48411134",
"0.48400354",
"0.48380113",
"0.48279777",
"0.48274237",
"0.4823024",
"0.48197672",
"0.4817111",
"0.48146558",
"0.48112154",
"0.48111537",
"0.48077536",
"0.48067826",
"0.4799421",
"0.4797493",
"0.47950462",
"0.4794079",
"0.47873586",
"0.47872275",
"0.47817442",
"0.47800976",
"0.4780022",
"0.4779485",
"0.47752652",
"0.4773672",
"0.47718996"
] | 0.5039572 | 32 |
Parent activity just received a onBackPressed event. If there's one active tool, it will be asked to manage the onBackPressed event. If the active tool onBackPressed method return a false then try to close it. | public boolean onBackPressed() {
if ( isClosed() ) return false;
if ( mCurrentState != STATE.DISABLED ) {
if ( isOpened() ) {
if ( !mCurrentEffect.onBackPressed() ) onCancel();
}
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onBackPressed() {\n this.getParent().onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n this.getParent().onBackPressed();\n }",
"public abstract boolean onBackPressed(boolean isSystemBackKey);",
"public abstract boolean onBackPressed();",
"@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}",
"@Override public void onBackPressed() {\n boolean handled = container.onBackPressed();\n if (!handled) {\n finish();\n }\n }",
"@Override\n\tpublic void onBackPressed() {\n\n\t\tboolean exit = mPreferences.getBoolean(Key.CB_EXIT, true);\n\t\t// If no confirmation required or user pressing for second time, then\n\t\t// exit app.\n\t\tif (exit && !mExitTrue) {\n\t\t\tmExitTrue = true;\n\t\t\tmToastExit = Toast.makeText(cxt,\n\t\t\t\t\tgetResources().getString(R.string.confirm_exit_msg),\n\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\tmToastExit.show();\n\t\t\tnew Timer(\"cancelExit\").schedule(new TimerTask() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tHome.this.mExitTrue = false;\n\t\t\t\t}\n\t\t\t}, 2000);\n\t\t} else {\n\t\t\tif (mToastExit != null) {\n\t\t\t\tmToastExit.cancel();\n\t\t\t}\n\t\t\tsuper.onBackPressed();\n\t\t}\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\r\n public void onBackPressed() {\r\n \t// Handle the back button click event such that if user \r\n \t// is performing an IMCI or CCM assessment then a confirmation dialog \r\n \t// will be displayed to confirm that the user wishes to exit the \r\n \t// patient assessment\r\n \texitAssessmentDialogHandler();\r\n }",
"boolean onBackPressed();",
"boolean onBackPressed();",
"@Override\n public void onBackPressed() {\n if (!mTouchAnyWhere) {\n super.onBackPressed();\n return;\n }\n\n goBackDialog();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}",
"@Override\n public void onBackPressed() {\n leaveDialog(this);\n }",
"@Override\n public void onBackPressed() {\n\n if( edf != null ) {\n if( edf.onBackPressed() ) {\n super.onBackPressed();\n }\n }\n }",
"@Override\n public boolean onBackPressed() {\n /*if (openedLine < 0) {\n return false;\n } else {\n //closeDetail();\n return true;\n }*/\n getActivity().finish();\n return true;\n }",
"@Override\n\t\tpublic boolean handleBackPressed() {\n\t\t\treturn false;\n\t\t}",
"@Override\n public void onBackPressed() {\n showQuitDialog();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }",
"public void onBackPressed() {\n C0486WU wu = this.f2780c;\n if (wu != null) {\n wu.mo1418b();\n }\n finish();\n Share_IP.super.onBackPressed();\n setResult(0, new Intent());\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(true);\r\n\t\tsuper.onBackPressed();\r\n\t}",
"@Override\n public void onBackPressed() {\n this.finish();\n }",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"@Override\n public void onBackPressed() {\n if (result != null && result.isDrawerOpen()) {\n result.closeDrawer();\n } else {\n super.onBackPressed();\n }\n }",
"@Override\n public void onBackPressed() {\n if (result != null && result.isDrawerOpen()) {\n result.closeDrawer();\n } else {\n super.onBackPressed();\n }\n }",
"@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, WorkSpace.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.putExtra(\"Close this app\", true);\n startActivity(intent);\n finish();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(false);\n\t}",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Closing app!\")\n .setMessage(\"Are you sure you want to exit the application?\")\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // If user chooses to quit, clear activity call stack and remove all active tasks.\n if (getIntent().getExtras() != null && getIntent().getExtras().getBoolean(\"EXIT\", false)) {\n setResult(0);\n finishAndRemoveTask();\n } else {\n finishAndRemoveTask();\n }\n }\n\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }",
"public void onBackPressed() {\n\t\tLog.d(USER_TAG, \"onBackPressed\");\n\t\tmoveTaskToBack(true);\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}",
"@Override\n public void onBackPressed() {\n //noinspection ConstantConditions\n if (MenuActivityHelper.onBackPressed(this)) {\n super.onBackPressed();\n }\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}",
"@Override\n public void onBackPressed() {\n confirmExit();\n }",
"@Override\n public void onBackPressed() {\n if (backPressed >= 1) {\n finishAffinity();\n super.onBackPressed();\n\n\n } else {\n // clean up\n backPressed = backPressed + 1;\n Toast.makeText(this, getString(R.string.press_back_exit),\n Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onBackPressed() {\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n if (drawer.isDrawerOpen(GravityCompat.START) || drawer.isDrawerOpen(GravityCompat.END)) {\n drawer.closeDrawers();\n } else if (mCommentsOpen) {\n Fragment fragment = getSupportFragmentManager()\n .findFragmentByTag(Constants.TAG_FRAG_FULL_DISPLAYER);\n // should never be null since comments cannot be open\n if (fragment != null) {\n ((FragmentFullDisplay) fragment).closeComments();\n }\n } else if (mIs404) {\n // If hosting a 404 page, we want to leave activity not just pop 404 page off backstack\n finish();\n } else if (Constants.REQUEST_SAVED.equalsIgnoreCase(mCurrSubbredit) && !isSubmissionOpen()) {\n // Start over since paginator might break\n // This is to prevent the following:\n // View Saved -> tab out for long time -> back in, need to reauthenticate reddit client\n // -> press back -> frontpage now showing Saved items since old paginator\n startOver();\n } else {\n super.onBackPressed();\n }\n }",
"public void onBackPressed()\n {\n hideSystemUI(activity);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n public void onBackPressed() {\n this.moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n gameAlertDialog.show(\"EXIT\");\n exitAlertVisible = true;\n }",
"public void onBackPressed() {\n // do nothing. We want to force user to stay in this activity and not drop out.\n }",
"@Override\n\tpublic boolean onBackPressed() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onBackPressed() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\t if (keyCode == KeyEvent.KEYCODE_BACK) {\n\t\t\t ManagerActivity.getAppManager().finishAllActivity();\n\t\t return true;\n\t\t }\n\t\t return super.onKeyDown(keyCode, event);\n\t}",
"@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }",
"protected void onBackKey() {\n if (!mUi.onBackKey()) {\n WebView subwindow = mTabControl.getCurrentSubWindow();\n if (subwindow != null) {\n if (subwindow.canGoBack()) {\n subwindow.goBack();\n } else {\n dismissSubWindow(mTabControl.getCurrentTab());\n }\n } else {\n goBackOnePageOrQuit();\n }\n }\n }",
"@Override\r\n public void onBackPressed() {\n setResult(Activity.RESULT_OK);\r\n this.finish();\r\n super.onBackPressed();\r\n }",
"@Override\n public void onBackPressed()\n {\n \t//Emulate the progressDialog.setCancelable(false) behavior\n \t//If the first view is being shown\n \tif(viewSwitcher.getDisplayedChild() == 0)\n \t{\n \t\t//Do nothing\n \t\treturn;\n \t}\n \telse\n \t{\n \t\t//Finishes the current Activity\n \t\tsuper.onBackPressed();\n \t}\n }",
"@Override\n public void onBackPressed() {\n replaceUseCase(meetingManager);\n replaceUseCase(traderManager);\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n LogHelper.logD(TAG, \"onBackPressed called\");\n }",
"@Override\n public void onBackPressed() {\n Log.d(TAG, \"onBackPressed: Back button pressed\");\n if (this.mDrawerLayout.isDrawerOpen(GravityCompat.START)) {\n mDrawerLayout.closeDrawer(GravityCompat.START);\n } else {\n // Create an alertDialog to ask the user if he want to exit the app\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.alert_dialog_title);\n builder.setMessage(R.string.alert_dialog_message);\n builder.setPositiveButton(\n R.string.positive_button,\n (dialog, which) -> {\n Intent a = new Intent(Intent.ACTION_MAIN);\n a.addCategory(Intent.CATEGORY_HOME);\n a.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(a);\n }\n ).setNegativeButton(\n R.string.negative_button,\n (dialog, which) -> dialog.cancel()\n );\n\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\t\n\t\tif (arrHistory.size() != 0) {\n \tString viewName = arrHistory.get(arrHistory.size() -1);\n \tObject obj = arrHistoryObj.get(arrHistoryObj.size() -1);\n \t\n \tif (viewName.equals(\"PhotoDetailView\")) {\n \t\t((PhotoDetailView)obj).onBack();\n \t}\n \tif (viewName.equals(\"SubmitView\")) {\n \t\t((SubmitView)obj).onClose();\n \t}\n }\n\t\telse {\n\t\t\t\n\t\t\tAlertDialog.Builder dialog = new AlertDialog.Builder(this);\n\t\t\tdialog.setTitle(getResources().getString(R.string.do_you_want_to_exit_this_app));\n\t\t\tdialog.setPositiveButton(getResources().getString(R.string.NO), new DialogInterface.OnClickListener() {\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t\tdialog.cancel();\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tdialog.setNegativeButton(getResources().getString(R.string.YES), new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tdialog.show();\n\n\t\t}\n\t}",
"@Override\r\n public void onBackPressed() {\n moveTaskToBack(true);\r\n }",
"@Override\n public void onBackPressed() {\n\n // Looks for a drawer layout in the view\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n\n // If started then close\n if (drawer.isDrawerOpen(GravityCompat.START)) {\n drawer.closeDrawer(GravityCompat.START);\n } else {\n // Use the original command\n super.onBackPressed();\n }\n }",
"private void returnBack()\n {\n getActivity().onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n if (dragLayMenuLateral.isDrawerOpen(GravityCompat.START)) {\n dragLayMenuLateral.closeDrawer(GravityCompat.START);\n } else {\n super.onBackPressed();\n }\n }",
"public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"private void backPressHandling() {\r\n FragmentManager manager = getSupportFragmentManager();\r\n if (manager.getBackStackEntryCount() <= 1) {\r\n finish();\r\n } else {\r\n manager.popBackStack();\r\n }\r\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tUtils.postLeftToRight(BaseActivity.this);\n\t}",
"@Override\n public void handleOnBackPressed() {\n getActivity().finish();\n }",
"@Override\n public void handleOnBackPressed() {\n }",
"@Override\n public void onBackPressed()\n {\n onStop();\n super.onBackPressed();\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tArticleLatestMoreDetailActivity.this.finish();\r\n\t\tsuper.onBackPressed();\r\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treturn;\n\t}",
"@Override\n\tpublic boolean onBackPressedListener() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t finish();\n\t}",
"public void onBackPressed()\n {\n Log.v(TAG, \"onBackPressed......Called\");\n main.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n /*startAppAd.onBackPressed();\n super.onBackPressed();*/\n\n if(blnExit)\n {\n super.onBackPressed();\n return;\n }\n this.blnExit = true;\n // startAppAd.onBackPressed();\n\n\n Toast.makeText(ActHome.this,\"Please click BACK again to EXIT.\",Toast.LENGTH_SHORT).show();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n blnExit = false;\n }\n },2000);\n }",
"@Override\n public void onBackPressed() {\n \t\n \tif(this.backIndex==0)\n \t{\n \t\tif(this.presentFeatureCode.equals(\"MAINMENU\"))\n \t\t{\n \t\t\tAlertDialog.Builder adb_4=new AlertDialog.Builder(Home.this);\n \t Log.v(\"Track21\", \"Clicked1\");\n \t adb_4.setTitle(\"Exit\");\n \t Log.v(\"Track31\", \"Clicked2\");\n \t adb_4.setMessage(\"Log Out?\");\n \t adb_4.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n \t {\n \t public void onClick(DialogInterface paramDialogInterface, int paramInt)\n \t {\n \t \t Intent myIntent = new Intent(Home.this, SignIn.class);\n \t startActivity(myIntent);\n \t finish();\n \t }\n \t });\n \t adb_4.setNegativeButton(\"No\", new DialogInterface.OnClickListener()\n \t {\n \t public void onClick(DialogInterface paramDialogInterface, int paramInt)\n \t {\n \t \t /*Intent myIntent = new Intent(SetUp.this, SetUp.class);\n \t SetUp.this.startActivity(myIntent);\n \t finish();*/\n \t paramDialogInterface.dismiss();\n \t Log.v(\"backIndex in Home cancelled Going Back =\", \"\" + backIndex);\n \t }\n \t });\n \t \n \t adb_4.show();\n \t\t}\n \t\telse\n \t\t{\n\t \t\tIntent intent_=new Intent(Home.this, Home.class);\n\t \t intent_.putExtra(\"keyy\", Home.this.keyy);\n\t\t startActivity(intent_);\n\t\t finish();\n \t\t}\n \t}\n \telse\n \t{\n \t\tIntent intent_=new Intent(Home.this, Home.class);\n \t intent_.putExtra(\"keyy\", Home.this.keyy);\n \t\t\n\t startActivity(intent_);\n\t finish();\n \t}\n }",
"@Override\n public void onBackPressed() {\n if (dwly.isDrawerOpen(GravityCompat.START)) {\n dwly.closeDrawer(GravityCompat.START);\n } else {\n ClickCerrarSesion();\n }\n }",
"@Override\n public void onBackPressed() {\n Intent intent = getIntent();\n setResult(0,intent);\n\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n System.exit(0);\n\t}",
"@Override\n public void onBackPressed() {\n new goBack().execute(0);\n }",
"public void onActivityBackPressed() {\n super.onBackPressed();\n }",
"private void backToMain() {\n // https://stackoverflow.com/questions/5446565\n // Checks to see if they are still on this activity\n if (getWindow().getDecorView().getRootView().isShown()) {\n onBackPressed();\n }\n }",
"public void Exit() {\r\n \tsuper.onBackPressed();\r\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tIntent intent = new Intent(GameModeActivity.this, MenuActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}",
"public boolean onBackPressed() {\n \treturn m_renderer.onBackPressed();\n }",
"public static void goBack() {\n\t\tif (touchGUI.getTouchModel().getGuiModel().isDialogShown()) {\n\t\t\ttouchGUI.getTouchModel().getGuiModel().closeActiveDialog();\n\t\t} else {\n\t\t\t// else go to last view in history\n\t\t\tif (!appWidget.goBack()) {\n\t\t\t\t// if history is empty -> close app\n\t\t\t\tphoneGap.exitApp();\n\t\t\t}\n\t\t}\n\n\t\tlaf.updateUndoSaveButtons();\n\t\ttouchGUI.updateViewSizes();\n\t}"
] | [
"0.7554845",
"0.7554845",
"0.7543961",
"0.75291526",
"0.752013",
"0.7504012",
"0.74766195",
"0.7460095",
"0.7455781",
"0.7432648",
"0.7432648",
"0.74271166",
"0.7426889",
"0.7378878",
"0.73701864",
"0.7349065",
"0.733108",
"0.7315484",
"0.7310146",
"0.7310146",
"0.7299416",
"0.7297583",
"0.72904503",
"0.72834474",
"0.727995",
"0.727995",
"0.7265067",
"0.7264803",
"0.7259639",
"0.7254656",
"0.72432995",
"0.7233965",
"0.722972",
"0.722972",
"0.7225614",
"0.72201467",
"0.72148705",
"0.72038776",
"0.71865195",
"0.7185483",
"0.7185483",
"0.7185483",
"0.71818846",
"0.71799994",
"0.7166309",
"0.7158632",
"0.7158632",
"0.7157716",
"0.715554",
"0.71551085",
"0.7153152",
"0.7151763",
"0.71391994",
"0.7136786",
"0.71361846",
"0.712892",
"0.7123777",
"0.7122398",
"0.7120385",
"0.7117372",
"0.7111492",
"0.7108662",
"0.7108662",
"0.71077585",
"0.7106563",
"0.7103198",
"0.7096056",
"0.70905334",
"0.7089602",
"0.7079966",
"0.7078195",
"0.70736957",
"0.7071968",
"0.70679045",
"0.7066928",
"0.7060884",
"0.7059196",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.7046959",
"0.704456",
"0.7042405",
"0.7039497",
"0.703568",
"0.7035298",
"0.70294833",
"0.7027454",
"0.7022187"
] | 0.73341274 | 16 |
Main activity asked to cancel the current operation. | public void onCancel() {
if ( !getEnabled() || !isOpened() ) return;
if ( mCurrentEffect == null ) throw new IllegalStateException( "there is no current effect active in the context" );
if ( !mCurrentEffect.onCancel() ) {
cancel();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cancel() {\n\t\tfinish();\n\t}",
"@Override\n\t\t\tpublic void cancel() {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"public synchronized void cancel() {\n }",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public synchronized void cancelExecution() {\n this.status = EXECUTION_CANCELED;\n if (this.context != null)\n context.close(true);\n }",
"public void cancel()\n\t{\n\t}",
"public void cancelTrip() {\n\t\n\t\t// TODO - fill in here\n\t\tIntent intent = new Intent();\n\t\tsetResult(RESULT_CANCELED,intent);\n\t\tfinish();\n\t}",
"public void cancel() {\n\t}",
"@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\tfinish();\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n cancelCurrentTask();\n }",
"@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}",
"@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}",
"@Override\n public void cancel() {\n }",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"@Override\n\tpublic void cancel() {\n\t\t\n\t}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"public void onCancelClicked(View v) {\n\t\tToast.makeText(getApplicationContext(), \"Cancelled\", Toast.LENGTH_SHORT)\n\t\t\t\t.show();\n\t\t// Close the activity.\n\t\t/*\n\t\t * if (MainActivity.sharedPreferences.getBoolean(MainActivity.MY_BOO,\n\t\t * true)){ Intent i = new Intent(this, MainActivity.class);\n\t\t * MainActivity.sharedPreferences.edit().putBoolean(MainActivity.MY_BOO,\n\t\t * true).commit(); startActivity(i); finish(); } else{ finish(); }\n\t\t */\n\t\tfinish();\n\t}",
"public void cancel() {\n btCancel().push();\n }",
"private void cancel() {\n setResult(RESULT_CANCELED, null);\n dbHelper.rollback();\n finish();\n }",
"public void cancel() {\n\t\tcancel(false);\n\t}",
"@Override\n public void cancel() {\n\n }",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"private void onCancel() {\n System.exit(0);\r\n dispose();\r\n }",
"public void cancel();",
"@Override\n public void onClick(View v) {\n aManager.cancel(pIntent);\n Toast.makeText(getApplicationContext(), \"Cancel\", Toast.LENGTH_SHORT).show();\n }",
"private final void cancelRecipe() {\n setResult(RESULT_CANCELED);\n finish();\n }",
"public boolean cancel();",
"@Override\n public void cancel() {\n }",
"@Override\n public void cancel() {\n\n }",
"@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }",
"public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}",
"@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"public abstract boolean cancel();",
"public void cancelarIniciarSesion(){\n System.exit(0);\n }",
"public void cancel(){\n \tLog.v(TAG, \"Cancel request\");\n \t// Cancel the initialization task\n \tif(initTask != null){\n \t\tLog.i(TAG, \"initTask was not null.\");\n \t\tinitTask.cancel(true);\n \t\tinitTask = null;\n \t}\n }",
"void cancelOriginal();",
"private void cancel(){\n // Toast toast = Toast.makeText(getApplicationContext(),\"Pressed cancel\",Toast.LENGTH_SHORT);\n // toast.show();\n Intent intent = new Intent();\n setResult(RESULT_CANCELED, intent);\n finish();\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n // dismiss the progress dialog\n MyTask.this.cancel(true);\n finish();\n pDialog.dismiss();\n // Tell the system about cancellation\n\n }",
"public void cancelEntry(View view)\n {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"public void cancel(){\n cancelled = true;\n }",
"public void cancel() {\r\n\t\tbStop = true;\r\n\t}",
"public void cancel() {\n\t\tinterrupt();\n\t}",
"public void onCancel();",
"public void cancel() {\n\t\tcancelled = true;\n\t}",
"protected abstract void onCancel();",
"public void cancel()\n {\n this.controller.cancelDownloads();\n\n // Synchronised to avoid a race condition\n synchronized(this.cancelledMonitor)\n {\n // Set the cancelled field to true\n this.cancelled = true;\n }\n theLogger.info(\"Cancel request recieved from UI\");\n }",
"public void cancel(View v) {\n finish();\n }",
"public void cancelButtonClicked(View view){\n setResult(RESULT_CANCELED, null);\n finish();\n }",
"public void onCancelClicked() {\n close();\n }",
"public void Cancel(View v)\n\t{\n\t\tfinish();\n\t}",
"public void cancelExecution() {\n \n \t\tcancelOrKillExecution(true);\n \t}",
"public void onCancelClicked(View view) {\n //ends activity\n finish();\n }",
"public void cancel(View view) {\n\t\tfinish();\n\t}",
"void onCancel();",
"public void onClickCancel(View view) {\n this.finish();\n }",
"public native static int cancel();",
"public void cancelButtonPressed(ActionEvent event) throws IOException {\n returnToMainScreen(event);\n }",
"public void cancelTask() {\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save?\", null,\r\n JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTask();\r\n }\r\n todoListGui();\r\n }",
"@Override\n public void cancel() {\n super.cancel();\n\n /** Flag cancel user request\n */\n printingCanceled.set(true);\n\n /** Show a warning message\n */\n JOptionPane.showMessageDialog( MainDemo.this , \"Lorem Ipsum printing task canceled\", \"Task canceled\" , JOptionPane.WARNING_MESSAGE );\n }",
"@Override\n public void onCancel() {\n }",
"public void cancelButtonPressed(View view) {\r\n\t\tthis.finish();\r\n\t}",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"public void cancel() {\n writeData(ESC.CMD_CANCEL);\n }",
"private void cancel(ActionEvent e){\r\n // Clear textfields\r\n clearFields();\r\n // If coming from appt management screen, go back there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n // Otherwise, set the current client to null and go to the landing page \r\n else {\r\n currClient = null;\r\n LandingPage.returnToLandingPage();\r\n }\r\n }",
"@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tLog.d(\"cancel\", \"cancel my task\");\n\t\t\n\t\t}",
"protected void onCancelled()\n {\n Update activity = (Update)m_ctx;\n activity.DeploymentFinished(false, m_ErrorCode);\n }",
"public void cancel() {\n if (mCurrentTest != null && mCurrentTest.isRunning()) {\n Log.i(TAG, \"cancel: Cancelling test \\\"\" + mCurrentTest.getName() + \"\\\"...\");\n mCurrentTest.cancel();\n }\n }",
"public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }",
"public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"void onCancelClicked();",
"private void cancelSaveStation() {\n MainActivity.new_station = false;\n Intent cancelStation = new Intent(addStationActivity.this, MainActivity.class);\n startActivity(cancelStation);\n }",
"@Override\n protected void onCancel() {\n }",
"public void onCancelButtonClick() {\n close();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n executor.cancel();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\tif (downloadHelper != null) {\n\t\t\t\t\t\tdownloadHelper.cancel(true);\n\t\t\t\t\t\tLog.d(\"task download\", \"---------Cancel----\");\n\t\t\t\t\t}\n\t\t\t\t}",
"protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"private void cancel() {\n recoTransaction.cancel();\n }",
"@Override\n\t\tpublic void onCancel() {\n \n \t}",
"@Override\r\n\t\tpublic void onCancel() {\n\t\t}",
"public void cancelCurrentComputation(){\n\t\tft.cancel(true);\n\t}",
"public void cancel( String reason );",
"private void onCancel() {\n cancelDisposalProcess();\n }",
"@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}"
] | [
"0.77679384",
"0.74533385",
"0.73696935",
"0.7317305",
"0.7317305",
"0.7317305",
"0.7317305",
"0.7317305",
"0.7317305",
"0.7246026",
"0.7239677",
"0.72382504",
"0.71894777",
"0.7184106",
"0.7160186",
"0.71242905",
"0.7108929",
"0.71029276",
"0.70951945",
"0.708437",
"0.708437",
"0.708437",
"0.708437",
"0.708437",
"0.7082857",
"0.70609546",
"0.704949",
"0.704949",
"0.704949",
"0.70493466",
"0.70455736",
"0.7024076",
"0.7021738",
"0.700912",
"0.7006018",
"0.7006018",
"0.7006018",
"0.69955176",
"0.69874287",
"0.6981064",
"0.6974141",
"0.69579756",
"0.6953823",
"0.694051",
"0.69193596",
"0.6907047",
"0.69067824",
"0.68914855",
"0.688522",
"0.6883196",
"0.6877908",
"0.68418664",
"0.68338346",
"0.68272924",
"0.68197703",
"0.68117017",
"0.6798548",
"0.67753696",
"0.67416525",
"0.67415476",
"0.6720825",
"0.6719807",
"0.6712482",
"0.6708783",
"0.6680484",
"0.66757596",
"0.6674918",
"0.66550136",
"0.6645774",
"0.66375643",
"0.6619185",
"0.66128236",
"0.6599516",
"0.6586658",
"0.6584673",
"0.65816855",
"0.6575183",
"0.6570322",
"0.6562096",
"0.65599984",
"0.655873",
"0.6554673",
"0.655136",
"0.65508366",
"0.6546859",
"0.6544822",
"0.65414524",
"0.6533792",
"0.65184855",
"0.65169936",
"0.65065736",
"0.6501986",
"0.6498344",
"0.6498344",
"0.6497809",
"0.6497507",
"0.6494552",
"0.6492158",
"0.6483578",
"0.64788103",
"0.6478767"
] | 0.0 | -1 |
Sets the next bitmap. | void setNextBitmap( Bitmap bitmap ) {
setNextBitmap( bitmap, true );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setNextBitmap( Bitmap bitmap, boolean update ) {\n\t\tsetNextBitmap( bitmap, update, null );\n\t}",
"void setNextBitmap( Bitmap bitmap, boolean update, Matrix matrix ) {\n\t\tlogger.log( \"setNextBitmap\", bitmap, update, matrix );\n\n\t\tif ( null != mBitmapChangeListener ) mBitmapChangeListener.onBitmapChange( bitmap, update, matrix );\n\n\t\tif ( !mBitmap.equals( bitmap ) ) {\n\t\t\tlogger.warning( \"[recycle] original Bitmap: \" + mBitmap );\n\t\t\tmBitmap.recycle();\n\t\t\tmBitmap = null;\n\t\t}\n\t\tmBitmap = bitmap;\n\t}",
"public void setNext(Tile next){\n\t\tthis.next=next;\n\t}",
"void setNext(MapElement next) {\n this.next = next;\n }",
"void setNext(IBitmapCacheHandler next);",
"public void setBitmap(Bitmap bitmap) {\n\t\t\n\t}",
"void setNext(Cell next) {\n if (this.next == null) {\n this.next = next;\n }\n }",
"public void next()\n\t{\n\t\tSystem.err.print(\"-\");\n\t\tif(pp.available())\n\t\t{\n\t\t\tSystem.err.print(\"+\");\n\t\t\timg_header=pp.getFrameHeader();\n\t\t\tbi=pp.getFrame();\n\t\t\tip[ip_index].setImage(bi);\n\t\t\tip[ip_index].repaint();\n\t\t\tip_index++;\n\t\t\t//ip_index%=cols*rows;\n\t\t\tip_index%=tiles;\n\t\t\tpp.next();\n\t\t}\n\t\tif(panel_glass.isVisible() || is_paused)\n\t\t{\n\t\t\tupdateInfoPanel();\n\t\t\tpanel_buffer_fill.setValue(pp.getBufferFillLevel());\n\t\t\tpanel_buffer_fill.repaint();\n\t\t\tif(is_paused)\n\t\t\t{\n\t\t\t\ttry{Thread.sleep(10);}catch(Exception e){}\n\t\t\t}\n\t\t}\n\t}",
"public static void initNext() { //ініціалізація лічильника нульовим значенням\n next = 0;\n }",
"public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }",
"public void setNextCell(Cell next)\r\n {\r\n this.next = next;\r\n }",
"public void next(){\n\t\tboundIndex = (boundIndex+1)%buttonBounds.length;\n\t\tupdateButtonBounds();\n\t}",
"public void setNext(GameNode next) {\n this.next = next;\n }",
"private void setNext(WeakOrderQueue next)\r\n/* 242: */ {\r\n/* 243:268 */ assert (next != this);\r\n/* 244:269 */ this.next = next;\r\n/* 245: */ }",
"private void markBitmap(int frameNo){\n int bit = frameNo/32;\n int mask = frameNo%32;\n bitMap[bit] = bitMap[bit]|MASK[mask];\n }",
"public abstract void setNextBlockResource(int resourceNum);",
"public void resultImgSet(Bitmap bitmap) {\n fpResultImg.setImageBitmap(bitmap);\n }",
"public void setNext(Cell link)\n { next = link; }",
"public void setNext(Node n) { next = n; }",
"private void populateFromSprite() {\n long start = System.currentTimeMillis();\n int bitSetIndex = 0;\n BufferedImage bImage = (BufferedImage) sprite.m_image;\n //BufferedImage img = ImageIO.read(new File(\"assets/LoopBitmap.bmp\"));\n int color;\n // Loop through image according to scale\n for(int i = 0; i < sprite.getWidth(); i+=scale) {\n for(int j = 0; j < sprite.getHeight(); j+= scale) {\n // Get color at pixel i, j, if black set Bitmap index to true.\n color = bImage.getRGB(i, j);\n if(color == Color.BLACK.getRGB()) { //tempColor.equals(Color.black)) {\n this.set(bitSetIndex, true);\n //System.out.println(\"'BLACK' Color = \"+color + \" i=\"+ i + \", j=\"+j);\n }\n bitSetIndex++;\n }\n }\n long end = System.currentTimeMillis();\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n// System.out.println(\"BITMAP DONE :)\");\n// System.out.println(\"Time to build = \"+(end-start)+\"ms\");\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }",
"void setImage(Bitmap bitmap);",
"protected native MagickImage nextImage() throws MagickException;",
"private Picture getNextPicture() {\n if (this.curImageIndex == this.pictures.size()) {\n this.curImageIndex = 0;\n }\n\n Picture nextPicture = this.pictures.get(this.curImageIndex);\n this.curImageIndex++;\n return nextPicture;\n }",
"public void setNext(Variable next){\n\t\tthis.next = next;\n\t}",
"void setNext(HashNode newNext){\n\t\tnext = newNext; \n\t}",
"private void setNext(Node n) {\n\t\t\tnext = n;\n\t\t}",
"private void setImage(Bitmap image) {\n }",
"private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}",
"public void setMuNext (int value) {\r\n Mu_next = value;\r\n }",
"public void setImage(Bitmap bitmap) {\n this.bitmap = bitmap;\n }",
"public void run() {\n sight.setImageBitmap(bmp);\n // old = null;\n }",
"public void setNext(Node next){\n\t\tthis.next = next;\n\t}",
"@Override\n public void renderNextImage() {\n }",
"void setNextValue() {\n this.value = this.value * 2;\n }",
"public void setBitmapRight(Bitmap b){\n\t\timgRight = b;\n\t\tright.setBitmap(b);\n\t\tinvalidate();\n\t}",
"@Override public void setNextNode(BTreeNode nextNode) {\n // no required in case of non leaf node\n }",
"public void setNext(Node newNode){\n\t\t\tnext = newNode;\n\t\t}",
"public void setNext(Node next)\r\n\t{\r\n\t\tthis.next = next;\r\n\t}",
"public void setNext(DNode newNext) { next = newNext; }",
"public void setBitmap(Bitmap bitmap){\n this.bitmap = Bitmap.createScaledBitmap(bitmap,(int)(bitmap.getWidth()*bitmapScale),(int)(bitmap.getHeight()*bitmapScale),false);\n //TODO:Update hitBox to scale to new bitmap\n }",
"@FXML\r\n private void Next_Image() {\r\n ImageView imagev = (ImageView) hbox.getChildren().get(image_index);\r\n img_v.setImage(imagev.getImage());\r\n if (transitor_next_last) {\r\n image_index += 2;\r\n }\r\n image_index += 2;\r\n transitor_next_last = false;\r\n if (image_index == hbox.getChildren().size()) {\r\n image_index = 0;\r\n }\r\n\r\n }",
"public void setNext(Node next) {\n\t\tthis.next = next;\n\t}",
"public void setNextNode(Node<T> next) {\n itsNext = next;\n }",
"public void setNext(Node<T> next) {\n this.next = next;\n }",
"public void setNext(Node<T> next) {\r\n this.next = next;\r\n }",
"private void setReadyNext() {\n\t\tint nextIndex=getNextIndex();\r\n\t\tLog.d(TAG, \"setReadyNext: \"+nextIndex);\r\n\t\tmApplications.get(nextIndex).resetToBackPlace();\r\n\t\tif(mApplications.get(nextIndex).getReady() == -1)\r\n\t\t\tsetTexId(nextIndex);\r\n\t}",
"public void setNext(Node next)\n\t{\n\t\tthis.next = next;\n\t}",
"public void setNext(Node<T> next) {\n\t\tthis.next = next;\n\t}",
"public void setNext(Node next) {\n this.next = next;\n }",
"public void setNext(Node n) {\n next = n;\n }",
"public void setNextData(Data nextData)\r\n\t\t{\r\n\t\t\tthis.nextData = nextData;\r\n\t\t}",
"public void setCurrentImage(int index) {\n if ((index >= 0) && (index < mTexIdArray.length)) {\n mTexId = mTexIdArray[index];\n }\n }",
"public void setNext(Vertex next) {\n\t\tthis.next = next;\n\t}",
"public void setNextElement(Element<T> nextElement) \n\t{\n\t\tthis.nextElement = nextElement;\n\t}",
"public void next() {\n\t\t}",
"public Pixel next() {\n\t\treturn (isEmpty()) ? null : iterator().next();\n\t}",
"public void setNextColorlist(LinkedList<Integer> nextColorList) {\n\t\tthis.nextColorList = nextColorList;\n\t}",
"public static void setNextCircle(int nextCircle) {\n\t\tblockContext.nextCircle = nextCircle;\n\t}",
"public void setNext(LLNode<T> next) {\n this.next = next;\n }",
"public void setNext(MyNode<? super E> _next)\n\t{\n\t\tthis.next = _next;\n\t\t//this.next = _next;\n\t}",
"public void setNext(CommitNode x){\r\n\t\tnext = x;\r\n\t}",
"public void setNext(IDLink<T> c){\n \tnpointer = c;\n }",
"public void nextSet(){\n this.fillVector();\n }",
"public void setNext(SimpleNode next) {\n this.next = next;\n }",
"public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}",
"@WorkerThread @UiThread\n public void setBitmap(String url, Bitmap bitmap) {\n synchronized (this) {\n this.bitmaps.put(url, bitmap);\n }\n\n // Tell all registered views that a bitmap changed\n notifyViews(Event.BITMAP_CHANGED);\n }",
"public void setNext(ListNode<E> next)\n {\n nextNode = next;\n }",
"public void setNextY(int myNextY){\r\n nextY = myNextY;\r\n }",
"public void showNextImageSet(View view) { // when \"Next\" button is clicked, shows new set of images\n displayingCarMakes.clear();\n displayingImageIndexes.clear();\n\n // resetting the car image for picking an image again\n userPickedCarImage = false;\n\n // if next is touched repeatedly, this will prevent the countdown timer messing up\n if (toggleCountdown) {\n if (roundCountDownTimer != null) {\n roundCountDownTimer.cancel();\n }\n runTimer(20000);\n }\n showImageSet();\n }",
"public void setNext(Node<E> next) { this.next = next; }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void setNext(Linkable nextObject);",
"private void setNextElement(Object entry)\n {\n __m_NextElement = entry;\n }",
"private void setNextSuccessor() {\n if (lastBlock != null) // if it is the first block, do nothing\n lastBlock.addSuccessor(currentBlock);\n blocks.add(currentBlock); // Add currentBlock to the global list of blocks\n lastBlock = currentBlock;\n }",
"public void setNext(ListNode<Item> next) {\n this.next = next;\n }",
"public void setNext(ListNode next)\r\n {\r\n this.next = next;\r\n }",
"void setNext(Entry entry)\n {\n m_eNext = entry;\n }",
"public void setThisManual()\n { \n actual = 1;\n \n nextPage = new Label();\n addObject(nextPage, 1132, 2001);\n \n prePage = new Label();\n addObject(prePage, 122, 2007);\n \n prePage.setImage(new GreenfootImage(\"\", 0, null, null));\n nextPage.setImagine(\"sipka1\");\n \n callMenu = new CallMenu();\n addObject(callMenu, 667, 60);\n }",
"public void setCurrentNext(int CurrentNext) {\n\t\tset_Value(\"CurrentNext\", new Integer(CurrentNext));\n\t}",
"public void setNext(Node n)\r\n\t{\r\n\t\tnext = n;\r\n\t}",
"public void setNext(DListNode2 next1){\r\n this.next = next1;\r\n }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void setNext(ListElement<T> next)\n\t{\n\t\tthis.next = next;\n\t}",
"public void setNext(final LinkedNode<T> theNode) {\n\t myNextNode = theNode;\n }",
"public void setNext(Level next) {\n\t\tthis.next = next;\n\t}",
"public void setIndexNextBoard(int index) throws IllegalArgumentException;",
"@Nullable PixelChange getNextPixelChange();",
"public void setNext(ListElement next)\n\n\t {\n\t this.next = next;\n\t }",
"@Override\n public void setNextImageRetriever(ImageRetriever retriever) {\n nextRetriever = retriever;\n }",
"private void nextButtonActionPerformed() {//GEN-FIRST:event_nextButtonActionPerformed\r\n getNextPicture();\r\n\r\n }",
"public ImageObj nextImage() {\n if (position == model.getImageList().size() - 1) {\n position = 0;\n }\n else {\n position++;\n }\n return model.getImageList().get(position);\n }",
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}",
"void setNext (ListNode newNext) { /* package access */ \n\t\tnext = newNext;\n\t}",
"public void nextFrame() {\r\n if (frame < maxFrames - 1) {\r\n frame++;\r\n } else {\r\n frame = 0;\r\n }\r\n }",
"public void setNext(Version next){\n\t\tif (next == null){\n\t\t\tLog.e(NAME, \"Invalid parameters for 'setNext' method!\");\n\t\t\treturn;\n\t\t}\n\t\tthis.next = next;\n\t}",
"private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }",
"public void setImages(Bitmap[] images){\n this.images=images;\n currentFrame=0;\n startTime=System.nanoTime();\n }",
"public void setNext(Node<D> n){\n\t\tnext = n;\n\t}",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\timgView.setImageBitmap(pngBM);\n\t\t\t\t\t\t}"
] | [
"0.7866842",
"0.7630723",
"0.65835696",
"0.63873875",
"0.6296895",
"0.61072403",
"0.608323",
"0.6021907",
"0.60206014",
"0.59583646",
"0.5935971",
"0.5841145",
"0.582696",
"0.5808433",
"0.576138",
"0.5748932",
"0.5729061",
"0.5702188",
"0.5699564",
"0.56877947",
"0.5681869",
"0.5659743",
"0.56298167",
"0.5618121",
"0.56180924",
"0.56024647",
"0.5595254",
"0.5592709",
"0.5590643",
"0.5583155",
"0.55654395",
"0.5547578",
"0.5541931",
"0.5539792",
"0.55149674",
"0.5514681",
"0.5509752",
"0.55048573",
"0.5504037",
"0.5492873",
"0.5492352",
"0.54836094",
"0.5483589",
"0.54719734",
"0.5469",
"0.5466202",
"0.5466137",
"0.54652345",
"0.545469",
"0.5442553",
"0.54407394",
"0.54335445",
"0.5432527",
"0.5431606",
"0.5410885",
"0.5400618",
"0.53917015",
"0.5385617",
"0.53809386",
"0.53785783",
"0.5373071",
"0.53667855",
"0.5355939",
"0.5353441",
"0.53524524",
"0.53473675",
"0.53456557",
"0.5338019",
"0.5328574",
"0.5317542",
"0.5314489",
"0.5306754",
"0.5305453",
"0.5301847",
"0.52955955",
"0.52829474",
"0.5282397",
"0.5279247",
"0.5279119",
"0.52785164",
"0.52595866",
"0.52452165",
"0.52452165",
"0.52391905",
"0.5237571",
"0.5229516",
"0.52248603",
"0.52222526",
"0.52211124",
"0.5218142",
"0.52153826",
"0.52132183",
"0.521275",
"0.52025336",
"0.5198213",
"0.51911175",
"0.518985",
"0.5184357",
"0.5183234",
"0.51823413"
] | 0.83155215 | 0 |
Sets the next bitmap. | void setNextBitmap( Bitmap bitmap, boolean update ) {
setNextBitmap( bitmap, update, null );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setNextBitmap( Bitmap bitmap ) {\n\t\tsetNextBitmap( bitmap, true );\n\t}",
"void setNextBitmap( Bitmap bitmap, boolean update, Matrix matrix ) {\n\t\tlogger.log( \"setNextBitmap\", bitmap, update, matrix );\n\n\t\tif ( null != mBitmapChangeListener ) mBitmapChangeListener.onBitmapChange( bitmap, update, matrix );\n\n\t\tif ( !mBitmap.equals( bitmap ) ) {\n\t\t\tlogger.warning( \"[recycle] original Bitmap: \" + mBitmap );\n\t\t\tmBitmap.recycle();\n\t\t\tmBitmap = null;\n\t\t}\n\t\tmBitmap = bitmap;\n\t}",
"public void setNext(Tile next){\n\t\tthis.next=next;\n\t}",
"void setNext(MapElement next) {\n this.next = next;\n }",
"void setNext(IBitmapCacheHandler next);",
"public void setBitmap(Bitmap bitmap) {\n\t\t\n\t}",
"void setNext(Cell next) {\n if (this.next == null) {\n this.next = next;\n }\n }",
"public void next()\n\t{\n\t\tSystem.err.print(\"-\");\n\t\tif(pp.available())\n\t\t{\n\t\t\tSystem.err.print(\"+\");\n\t\t\timg_header=pp.getFrameHeader();\n\t\t\tbi=pp.getFrame();\n\t\t\tip[ip_index].setImage(bi);\n\t\t\tip[ip_index].repaint();\n\t\t\tip_index++;\n\t\t\t//ip_index%=cols*rows;\n\t\t\tip_index%=tiles;\n\t\t\tpp.next();\n\t\t}\n\t\tif(panel_glass.isVisible() || is_paused)\n\t\t{\n\t\t\tupdateInfoPanel();\n\t\t\tpanel_buffer_fill.setValue(pp.getBufferFillLevel());\n\t\t\tpanel_buffer_fill.repaint();\n\t\t\tif(is_paused)\n\t\t\t{\n\t\t\t\ttry{Thread.sleep(10);}catch(Exception e){}\n\t\t\t}\n\t\t}\n\t}",
"public static void initNext() { //ініціалізація лічильника нульовим значенням\n next = 0;\n }",
"public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }",
"public void setNextCell(Cell next)\r\n {\r\n this.next = next;\r\n }",
"public void next(){\n\t\tboundIndex = (boundIndex+1)%buttonBounds.length;\n\t\tupdateButtonBounds();\n\t}",
"public void setNext(GameNode next) {\n this.next = next;\n }",
"private void setNext(WeakOrderQueue next)\r\n/* 242: */ {\r\n/* 243:268 */ assert (next != this);\r\n/* 244:269 */ this.next = next;\r\n/* 245: */ }",
"private void markBitmap(int frameNo){\n int bit = frameNo/32;\n int mask = frameNo%32;\n bitMap[bit] = bitMap[bit]|MASK[mask];\n }",
"public abstract void setNextBlockResource(int resourceNum);",
"public void resultImgSet(Bitmap bitmap) {\n fpResultImg.setImageBitmap(bitmap);\n }",
"public void setNext(Cell link)\n { next = link; }",
"public void setNext(Node n) { next = n; }",
"private void populateFromSprite() {\n long start = System.currentTimeMillis();\n int bitSetIndex = 0;\n BufferedImage bImage = (BufferedImage) sprite.m_image;\n //BufferedImage img = ImageIO.read(new File(\"assets/LoopBitmap.bmp\"));\n int color;\n // Loop through image according to scale\n for(int i = 0; i < sprite.getWidth(); i+=scale) {\n for(int j = 0; j < sprite.getHeight(); j+= scale) {\n // Get color at pixel i, j, if black set Bitmap index to true.\n color = bImage.getRGB(i, j);\n if(color == Color.BLACK.getRGB()) { //tempColor.equals(Color.black)) {\n this.set(bitSetIndex, true);\n //System.out.println(\"'BLACK' Color = \"+color + \" i=\"+ i + \", j=\"+j);\n }\n bitSetIndex++;\n }\n }\n long end = System.currentTimeMillis();\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n// System.out.println(\"BITMAP DONE :)\");\n// System.out.println(\"Time to build = \"+(end-start)+\"ms\");\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }",
"void setImage(Bitmap bitmap);",
"protected native MagickImage nextImage() throws MagickException;",
"private Picture getNextPicture() {\n if (this.curImageIndex == this.pictures.size()) {\n this.curImageIndex = 0;\n }\n\n Picture nextPicture = this.pictures.get(this.curImageIndex);\n this.curImageIndex++;\n return nextPicture;\n }",
"public void setNext(Variable next){\n\t\tthis.next = next;\n\t}",
"void setNext(HashNode newNext){\n\t\tnext = newNext; \n\t}",
"private void setNext(Node n) {\n\t\t\tnext = n;\n\t\t}",
"private void setImage(Bitmap image) {\n }",
"private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}",
"public void setMuNext (int value) {\r\n Mu_next = value;\r\n }",
"public void setImage(Bitmap bitmap) {\n this.bitmap = bitmap;\n }",
"public void run() {\n sight.setImageBitmap(bmp);\n // old = null;\n }",
"public void setNext(Node next){\n\t\tthis.next = next;\n\t}",
"@Override\n public void renderNextImage() {\n }",
"void setNextValue() {\n this.value = this.value * 2;\n }",
"public void setBitmapRight(Bitmap b){\n\t\timgRight = b;\n\t\tright.setBitmap(b);\n\t\tinvalidate();\n\t}",
"@Override public void setNextNode(BTreeNode nextNode) {\n // no required in case of non leaf node\n }",
"public void setNext(Node newNode){\n\t\t\tnext = newNode;\n\t\t}",
"public void setNext(Node next)\r\n\t{\r\n\t\tthis.next = next;\r\n\t}",
"public void setNext(DNode newNext) { next = newNext; }",
"public void setBitmap(Bitmap bitmap){\n this.bitmap = Bitmap.createScaledBitmap(bitmap,(int)(bitmap.getWidth()*bitmapScale),(int)(bitmap.getHeight()*bitmapScale),false);\n //TODO:Update hitBox to scale to new bitmap\n }",
"@FXML\r\n private void Next_Image() {\r\n ImageView imagev = (ImageView) hbox.getChildren().get(image_index);\r\n img_v.setImage(imagev.getImage());\r\n if (transitor_next_last) {\r\n image_index += 2;\r\n }\r\n image_index += 2;\r\n transitor_next_last = false;\r\n if (image_index == hbox.getChildren().size()) {\r\n image_index = 0;\r\n }\r\n\r\n }",
"public void setNext(Node next) {\n\t\tthis.next = next;\n\t}",
"public void setNextNode(Node<T> next) {\n itsNext = next;\n }",
"public void setNext(Node<T> next) {\n this.next = next;\n }",
"public void setNext(Node<T> next) {\r\n this.next = next;\r\n }",
"private void setReadyNext() {\n\t\tint nextIndex=getNextIndex();\r\n\t\tLog.d(TAG, \"setReadyNext: \"+nextIndex);\r\n\t\tmApplications.get(nextIndex).resetToBackPlace();\r\n\t\tif(mApplications.get(nextIndex).getReady() == -1)\r\n\t\t\tsetTexId(nextIndex);\r\n\t}",
"public void setNext(Node next)\n\t{\n\t\tthis.next = next;\n\t}",
"public void setNext(Node<T> next) {\n\t\tthis.next = next;\n\t}",
"public void setNext(Node next) {\n this.next = next;\n }",
"public void setNext(Node n) {\n next = n;\n }",
"public void setNextData(Data nextData)\r\n\t\t{\r\n\t\t\tthis.nextData = nextData;\r\n\t\t}",
"public void setCurrentImage(int index) {\n if ((index >= 0) && (index < mTexIdArray.length)) {\n mTexId = mTexIdArray[index];\n }\n }",
"public void setNext(Vertex next) {\n\t\tthis.next = next;\n\t}",
"public void setNextElement(Element<T> nextElement) \n\t{\n\t\tthis.nextElement = nextElement;\n\t}",
"public void next() {\n\t\t}",
"public Pixel next() {\n\t\treturn (isEmpty()) ? null : iterator().next();\n\t}",
"public void setNextColorlist(LinkedList<Integer> nextColorList) {\n\t\tthis.nextColorList = nextColorList;\n\t}",
"public static void setNextCircle(int nextCircle) {\n\t\tblockContext.nextCircle = nextCircle;\n\t}",
"public void setNext(LLNode<T> next) {\n this.next = next;\n }",
"public void setNext(MyNode<? super E> _next)\n\t{\n\t\tthis.next = _next;\n\t\t//this.next = _next;\n\t}",
"public void setNext(CommitNode x){\r\n\t\tnext = x;\r\n\t}",
"public void setNext(IDLink<T> c){\n \tnpointer = c;\n }",
"public void nextSet(){\n this.fillVector();\n }",
"public void setNext(SimpleNode next) {\n this.next = next;\n }",
"public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}",
"@WorkerThread @UiThread\n public void setBitmap(String url, Bitmap bitmap) {\n synchronized (this) {\n this.bitmaps.put(url, bitmap);\n }\n\n // Tell all registered views that a bitmap changed\n notifyViews(Event.BITMAP_CHANGED);\n }",
"public void setNext(ListNode<E> next)\n {\n nextNode = next;\n }",
"public void setNextY(int myNextY){\r\n nextY = myNextY;\r\n }",
"public void showNextImageSet(View view) { // when \"Next\" button is clicked, shows new set of images\n displayingCarMakes.clear();\n displayingImageIndexes.clear();\n\n // resetting the car image for picking an image again\n userPickedCarImage = false;\n\n // if next is touched repeatedly, this will prevent the countdown timer messing up\n if (toggleCountdown) {\n if (roundCountDownTimer != null) {\n roundCountDownTimer.cancel();\n }\n runTimer(20000);\n }\n showImageSet();\n }",
"public void setNext(Node<E> next) { this.next = next; }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void setNext(Linkable nextObject);",
"private void setNextElement(Object entry)\n {\n __m_NextElement = entry;\n }",
"private void setNextSuccessor() {\n if (lastBlock != null) // if it is the first block, do nothing\n lastBlock.addSuccessor(currentBlock);\n blocks.add(currentBlock); // Add currentBlock to the global list of blocks\n lastBlock = currentBlock;\n }",
"public void setNext(ListNode<Item> next) {\n this.next = next;\n }",
"public void setNext(ListNode next)\r\n {\r\n this.next = next;\r\n }",
"void setNext(Entry entry)\n {\n m_eNext = entry;\n }",
"public void setThisManual()\n { \n actual = 1;\n \n nextPage = new Label();\n addObject(nextPage, 1132, 2001);\n \n prePage = new Label();\n addObject(prePage, 122, 2007);\n \n prePage.setImage(new GreenfootImage(\"\", 0, null, null));\n nextPage.setImagine(\"sipka1\");\n \n callMenu = new CallMenu();\n addObject(callMenu, 667, 60);\n }",
"public void setCurrentNext(int CurrentNext) {\n\t\tset_Value(\"CurrentNext\", new Integer(CurrentNext));\n\t}",
"public void setNext(Node n)\r\n\t{\r\n\t\tnext = n;\r\n\t}",
"public void setNext(DListNode2 next1){\r\n this.next = next1;\r\n }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void setNext(ListElement<T> next)\n\t{\n\t\tthis.next = next;\n\t}",
"public void setNext(final LinkedNode<T> theNode) {\n\t myNextNode = theNode;\n }",
"public void setNext(Level next) {\n\t\tthis.next = next;\n\t}",
"public void setIndexNextBoard(int index) throws IllegalArgumentException;",
"@Nullable PixelChange getNextPixelChange();",
"public void setNext(ListElement next)\n\n\t {\n\t this.next = next;\n\t }",
"@Override\n public void setNextImageRetriever(ImageRetriever retriever) {\n nextRetriever = retriever;\n }",
"private void nextButtonActionPerformed() {//GEN-FIRST:event_nextButtonActionPerformed\r\n getNextPicture();\r\n\r\n }",
"public ImageObj nextImage() {\n if (position == model.getImageList().size() - 1) {\n position = 0;\n }\n else {\n position++;\n }\n return model.getImageList().get(position);\n }",
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}",
"void setNext (ListNode newNext) { /* package access */ \n\t\tnext = newNext;\n\t}",
"public void nextFrame() {\r\n if (frame < maxFrames - 1) {\r\n frame++;\r\n } else {\r\n frame = 0;\r\n }\r\n }",
"public void setNext(Version next){\n\t\tif (next == null){\n\t\t\tLog.e(NAME, \"Invalid parameters for 'setNext' method!\");\n\t\t\treturn;\n\t\t}\n\t\tthis.next = next;\n\t}",
"private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }",
"public void setImages(Bitmap[] images){\n this.images=images;\n currentFrame=0;\n startTime=System.nanoTime();\n }",
"public void setNext(Node<D> n){\n\t\tnext = n;\n\t}",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\timgView.setImageBitmap(pngBM);\n\t\t\t\t\t\t}"
] | [
"0.83155215",
"0.7630723",
"0.65835696",
"0.63873875",
"0.6296895",
"0.61072403",
"0.608323",
"0.6021907",
"0.60206014",
"0.59583646",
"0.5935971",
"0.5841145",
"0.582696",
"0.5808433",
"0.576138",
"0.5748932",
"0.5729061",
"0.5702188",
"0.5699564",
"0.56877947",
"0.5681869",
"0.5659743",
"0.56298167",
"0.5618121",
"0.56180924",
"0.56024647",
"0.5595254",
"0.5592709",
"0.5590643",
"0.5583155",
"0.55654395",
"0.5547578",
"0.5541931",
"0.5539792",
"0.55149674",
"0.5514681",
"0.5509752",
"0.55048573",
"0.5504037",
"0.5492873",
"0.5492352",
"0.54836094",
"0.5483589",
"0.54719734",
"0.5469",
"0.5466202",
"0.5466137",
"0.54652345",
"0.545469",
"0.5442553",
"0.54407394",
"0.54335445",
"0.5432527",
"0.5431606",
"0.5410885",
"0.5400618",
"0.53917015",
"0.5385617",
"0.53809386",
"0.53785783",
"0.5373071",
"0.53667855",
"0.5355939",
"0.5353441",
"0.53524524",
"0.53473675",
"0.53456557",
"0.5338019",
"0.5328574",
"0.5317542",
"0.5314489",
"0.5306754",
"0.5305453",
"0.5301847",
"0.52955955",
"0.52829474",
"0.5282397",
"0.5279247",
"0.5279119",
"0.52785164",
"0.52595866",
"0.52452165",
"0.52452165",
"0.52391905",
"0.5237571",
"0.5229516",
"0.52248603",
"0.52222526",
"0.52211124",
"0.5218142",
"0.52153826",
"0.52132183",
"0.521275",
"0.52025336",
"0.5198213",
"0.51911175",
"0.518985",
"0.5184357",
"0.5183234",
"0.51823413"
] | 0.7866842 | 1 |
Sets the next bitmap. | void setNextBitmap( Bitmap bitmap, boolean update, Matrix matrix ) {
logger.log( "setNextBitmap", bitmap, update, matrix );
if ( null != mBitmapChangeListener ) mBitmapChangeListener.onBitmapChange( bitmap, update, matrix );
if ( !mBitmap.equals( bitmap ) ) {
logger.warning( "[recycle] original Bitmap: " + mBitmap );
mBitmap.recycle();
mBitmap = null;
}
mBitmap = bitmap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setNextBitmap( Bitmap bitmap ) {\n\t\tsetNextBitmap( bitmap, true );\n\t}",
"void setNextBitmap( Bitmap bitmap, boolean update ) {\n\t\tsetNextBitmap( bitmap, update, null );\n\t}",
"public void setNext(Tile next){\n\t\tthis.next=next;\n\t}",
"void setNext(MapElement next) {\n this.next = next;\n }",
"void setNext(IBitmapCacheHandler next);",
"public void setBitmap(Bitmap bitmap) {\n\t\t\n\t}",
"void setNext(Cell next) {\n if (this.next == null) {\n this.next = next;\n }\n }",
"public void next()\n\t{\n\t\tSystem.err.print(\"-\");\n\t\tif(pp.available())\n\t\t{\n\t\t\tSystem.err.print(\"+\");\n\t\t\timg_header=pp.getFrameHeader();\n\t\t\tbi=pp.getFrame();\n\t\t\tip[ip_index].setImage(bi);\n\t\t\tip[ip_index].repaint();\n\t\t\tip_index++;\n\t\t\t//ip_index%=cols*rows;\n\t\t\tip_index%=tiles;\n\t\t\tpp.next();\n\t\t}\n\t\tif(panel_glass.isVisible() || is_paused)\n\t\t{\n\t\t\tupdateInfoPanel();\n\t\t\tpanel_buffer_fill.setValue(pp.getBufferFillLevel());\n\t\t\tpanel_buffer_fill.repaint();\n\t\t\tif(is_paused)\n\t\t\t{\n\t\t\t\ttry{Thread.sleep(10);}catch(Exception e){}\n\t\t\t}\n\t\t}\n\t}",
"public static void initNext() { //ініціалізація лічильника нульовим значенням\n next = 0;\n }",
"public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }",
"public void setNextCell(Cell next)\r\n {\r\n this.next = next;\r\n }",
"public void next(){\n\t\tboundIndex = (boundIndex+1)%buttonBounds.length;\n\t\tupdateButtonBounds();\n\t}",
"public void setNext(GameNode next) {\n this.next = next;\n }",
"private void setNext(WeakOrderQueue next)\r\n/* 242: */ {\r\n/* 243:268 */ assert (next != this);\r\n/* 244:269 */ this.next = next;\r\n/* 245: */ }",
"private void markBitmap(int frameNo){\n int bit = frameNo/32;\n int mask = frameNo%32;\n bitMap[bit] = bitMap[bit]|MASK[mask];\n }",
"public abstract void setNextBlockResource(int resourceNum);",
"public void resultImgSet(Bitmap bitmap) {\n fpResultImg.setImageBitmap(bitmap);\n }",
"public void setNext(Cell link)\n { next = link; }",
"public void setNext(Node n) { next = n; }",
"private void populateFromSprite() {\n long start = System.currentTimeMillis();\n int bitSetIndex = 0;\n BufferedImage bImage = (BufferedImage) sprite.m_image;\n //BufferedImage img = ImageIO.read(new File(\"assets/LoopBitmap.bmp\"));\n int color;\n // Loop through image according to scale\n for(int i = 0; i < sprite.getWidth(); i+=scale) {\n for(int j = 0; j < sprite.getHeight(); j+= scale) {\n // Get color at pixel i, j, if black set Bitmap index to true.\n color = bImage.getRGB(i, j);\n if(color == Color.BLACK.getRGB()) { //tempColor.equals(Color.black)) {\n this.set(bitSetIndex, true);\n //System.out.println(\"'BLACK' Color = \"+color + \" i=\"+ i + \", j=\"+j);\n }\n bitSetIndex++;\n }\n }\n long end = System.currentTimeMillis();\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n// System.out.println(\"BITMAP DONE :)\");\n// System.out.println(\"Time to build = \"+(end-start)+\"ms\");\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }",
"void setImage(Bitmap bitmap);",
"protected native MagickImage nextImage() throws MagickException;",
"private Picture getNextPicture() {\n if (this.curImageIndex == this.pictures.size()) {\n this.curImageIndex = 0;\n }\n\n Picture nextPicture = this.pictures.get(this.curImageIndex);\n this.curImageIndex++;\n return nextPicture;\n }",
"public void setNext(Variable next){\n\t\tthis.next = next;\n\t}",
"void setNext(HashNode newNext){\n\t\tnext = newNext; \n\t}",
"private void setNext(Node n) {\n\t\t\tnext = n;\n\t\t}",
"private void setImage(Bitmap image) {\n }",
"private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}",
"public void setMuNext (int value) {\r\n Mu_next = value;\r\n }",
"public void setImage(Bitmap bitmap) {\n this.bitmap = bitmap;\n }",
"public void run() {\n sight.setImageBitmap(bmp);\n // old = null;\n }",
"public void setNext(Node next){\n\t\tthis.next = next;\n\t}",
"@Override\n public void renderNextImage() {\n }",
"void setNextValue() {\n this.value = this.value * 2;\n }",
"public void setBitmapRight(Bitmap b){\n\t\timgRight = b;\n\t\tright.setBitmap(b);\n\t\tinvalidate();\n\t}",
"@Override public void setNextNode(BTreeNode nextNode) {\n // no required in case of non leaf node\n }",
"public void setNext(Node newNode){\n\t\t\tnext = newNode;\n\t\t}",
"public void setNext(Node next)\r\n\t{\r\n\t\tthis.next = next;\r\n\t}",
"public void setNext(DNode newNext) { next = newNext; }",
"public void setBitmap(Bitmap bitmap){\n this.bitmap = Bitmap.createScaledBitmap(bitmap,(int)(bitmap.getWidth()*bitmapScale),(int)(bitmap.getHeight()*bitmapScale),false);\n //TODO:Update hitBox to scale to new bitmap\n }",
"@FXML\r\n private void Next_Image() {\r\n ImageView imagev = (ImageView) hbox.getChildren().get(image_index);\r\n img_v.setImage(imagev.getImage());\r\n if (transitor_next_last) {\r\n image_index += 2;\r\n }\r\n image_index += 2;\r\n transitor_next_last = false;\r\n if (image_index == hbox.getChildren().size()) {\r\n image_index = 0;\r\n }\r\n\r\n }",
"public void setNext(Node next) {\n\t\tthis.next = next;\n\t}",
"public void setNextNode(Node<T> next) {\n itsNext = next;\n }",
"public void setNext(Node<T> next) {\n this.next = next;\n }",
"public void setNext(Node<T> next) {\r\n this.next = next;\r\n }",
"private void setReadyNext() {\n\t\tint nextIndex=getNextIndex();\r\n\t\tLog.d(TAG, \"setReadyNext: \"+nextIndex);\r\n\t\tmApplications.get(nextIndex).resetToBackPlace();\r\n\t\tif(mApplications.get(nextIndex).getReady() == -1)\r\n\t\t\tsetTexId(nextIndex);\r\n\t}",
"public void setNext(Node next)\n\t{\n\t\tthis.next = next;\n\t}",
"public void setNext(Node<T> next) {\n\t\tthis.next = next;\n\t}",
"public void setNext(Node next) {\n this.next = next;\n }",
"public void setNext(Node n) {\n next = n;\n }",
"public void setNextData(Data nextData)\r\n\t\t{\r\n\t\t\tthis.nextData = nextData;\r\n\t\t}",
"public void setCurrentImage(int index) {\n if ((index >= 0) && (index < mTexIdArray.length)) {\n mTexId = mTexIdArray[index];\n }\n }",
"public void setNext(Vertex next) {\n\t\tthis.next = next;\n\t}",
"public void setNextElement(Element<T> nextElement) \n\t{\n\t\tthis.nextElement = nextElement;\n\t}",
"public void next() {\n\t\t}",
"public Pixel next() {\n\t\treturn (isEmpty()) ? null : iterator().next();\n\t}",
"public void setNextColorlist(LinkedList<Integer> nextColorList) {\n\t\tthis.nextColorList = nextColorList;\n\t}",
"public static void setNextCircle(int nextCircle) {\n\t\tblockContext.nextCircle = nextCircle;\n\t}",
"public void setNext(LLNode<T> next) {\n this.next = next;\n }",
"public void setNext(MyNode<? super E> _next)\n\t{\n\t\tthis.next = _next;\n\t\t//this.next = _next;\n\t}",
"public void setNext(CommitNode x){\r\n\t\tnext = x;\r\n\t}",
"public void setNext(IDLink<T> c){\n \tnpointer = c;\n }",
"public void nextSet(){\n this.fillVector();\n }",
"public void setNext(SimpleNode next) {\n this.next = next;\n }",
"public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}",
"@WorkerThread @UiThread\n public void setBitmap(String url, Bitmap bitmap) {\n synchronized (this) {\n this.bitmaps.put(url, bitmap);\n }\n\n // Tell all registered views that a bitmap changed\n notifyViews(Event.BITMAP_CHANGED);\n }",
"public void setNext(ListNode<E> next)\n {\n nextNode = next;\n }",
"public void setNextY(int myNextY){\r\n nextY = myNextY;\r\n }",
"public void showNextImageSet(View view) { // when \"Next\" button is clicked, shows new set of images\n displayingCarMakes.clear();\n displayingImageIndexes.clear();\n\n // resetting the car image for picking an image again\n userPickedCarImage = false;\n\n // if next is touched repeatedly, this will prevent the countdown timer messing up\n if (toggleCountdown) {\n if (roundCountDownTimer != null) {\n roundCountDownTimer.cancel();\n }\n runTimer(20000);\n }\n showImageSet();\n }",
"public void setNext(Node<E> next) { this.next = next; }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void setNext(Linkable nextObject);",
"private void setNextElement(Object entry)\n {\n __m_NextElement = entry;\n }",
"private void setNextSuccessor() {\n if (lastBlock != null) // if it is the first block, do nothing\n lastBlock.addSuccessor(currentBlock);\n blocks.add(currentBlock); // Add currentBlock to the global list of blocks\n lastBlock = currentBlock;\n }",
"public void setNext(ListNode<Item> next) {\n this.next = next;\n }",
"public void setNext(ListNode next)\r\n {\r\n this.next = next;\r\n }",
"void setNext(Entry entry)\n {\n m_eNext = entry;\n }",
"public void setThisManual()\n { \n actual = 1;\n \n nextPage = new Label();\n addObject(nextPage, 1132, 2001);\n \n prePage = new Label();\n addObject(prePage, 122, 2007);\n \n prePage.setImage(new GreenfootImage(\"\", 0, null, null));\n nextPage.setImagine(\"sipka1\");\n \n callMenu = new CallMenu();\n addObject(callMenu, 667, 60);\n }",
"public void setCurrentNext(int CurrentNext) {\n\t\tset_Value(\"CurrentNext\", new Integer(CurrentNext));\n\t}",
"public void setNext(Node n)\r\n\t{\r\n\t\tnext = n;\r\n\t}",
"public void setNext(DListNode2 next1){\r\n this.next = next1;\r\n }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void setNext(ListElement<T> next)\n\t{\n\t\tthis.next = next;\n\t}",
"public void setNext(final LinkedNode<T> theNode) {\n\t myNextNode = theNode;\n }",
"public void setNext(Level next) {\n\t\tthis.next = next;\n\t}",
"public void setIndexNextBoard(int index) throws IllegalArgumentException;",
"@Nullable PixelChange getNextPixelChange();",
"public void setNext(ListElement next)\n\n\t {\n\t this.next = next;\n\t }",
"@Override\n public void setNextImageRetriever(ImageRetriever retriever) {\n nextRetriever = retriever;\n }",
"private void nextButtonActionPerformed() {//GEN-FIRST:event_nextButtonActionPerformed\r\n getNextPicture();\r\n\r\n }",
"public ImageObj nextImage() {\n if (position == model.getImageList().size() - 1) {\n position = 0;\n }\n else {\n position++;\n }\n return model.getImageList().get(position);\n }",
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}",
"void setNext (ListNode newNext) { /* package access */ \n\t\tnext = newNext;\n\t}",
"public void nextFrame() {\r\n if (frame < maxFrames - 1) {\r\n frame++;\r\n } else {\r\n frame = 0;\r\n }\r\n }",
"public void setNext(Version next){\n\t\tif (next == null){\n\t\t\tLog.e(NAME, \"Invalid parameters for 'setNext' method!\");\n\t\t\treturn;\n\t\t}\n\t\tthis.next = next;\n\t}",
"private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }",
"public void setImages(Bitmap[] images){\n this.images=images;\n currentFrame=0;\n startTime=System.nanoTime();\n }",
"public void setNext(Node<D> n){\n\t\tnext = n;\n\t}",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\timgView.setImageBitmap(pngBM);\n\t\t\t\t\t\t}"
] | [
"0.83155215",
"0.7866842",
"0.65835696",
"0.63873875",
"0.6296895",
"0.61072403",
"0.608323",
"0.6021907",
"0.60206014",
"0.59583646",
"0.5935971",
"0.5841145",
"0.582696",
"0.5808433",
"0.576138",
"0.5748932",
"0.5729061",
"0.5702188",
"0.5699564",
"0.56877947",
"0.5681869",
"0.5659743",
"0.56298167",
"0.5618121",
"0.56180924",
"0.56024647",
"0.5595254",
"0.5592709",
"0.5590643",
"0.5583155",
"0.55654395",
"0.5547578",
"0.5541931",
"0.5539792",
"0.55149674",
"0.5514681",
"0.5509752",
"0.55048573",
"0.5504037",
"0.5492873",
"0.5492352",
"0.54836094",
"0.5483589",
"0.54719734",
"0.5469",
"0.5466202",
"0.5466137",
"0.54652345",
"0.545469",
"0.5442553",
"0.54407394",
"0.54335445",
"0.5432527",
"0.5431606",
"0.5410885",
"0.5400618",
"0.53917015",
"0.5385617",
"0.53809386",
"0.53785783",
"0.5373071",
"0.53667855",
"0.5355939",
"0.5353441",
"0.53524524",
"0.53473675",
"0.53456557",
"0.5338019",
"0.5328574",
"0.5317542",
"0.5314489",
"0.5306754",
"0.5305453",
"0.5301847",
"0.52955955",
"0.52829474",
"0.5282397",
"0.5279247",
"0.5279119",
"0.52785164",
"0.52595866",
"0.52452165",
"0.52452165",
"0.52391905",
"0.5237571",
"0.5229516",
"0.52248603",
"0.52222526",
"0.52211124",
"0.5218142",
"0.52153826",
"0.52132183",
"0.521275",
"0.52025336",
"0.5198213",
"0.51911175",
"0.518985",
"0.5184357",
"0.5183234",
"0.51823413"
] | 0.7630723 | 2 |
Replace the current bitmap. | public void onReplaceImage( final Bitmap bitmap, int[] originalSize ) {
if ( !getEnabled() || !isClosed() ) throw new IllegalStateException( "Cannot replace bitmap. Not active nor closed!" );
LocalDataService dataService = getService( LocalDataService.class );
if ( ( mBitmap != null ) && !mBitmap.isRecycled() ) {
logger.warning( "[recycle] original Bitmap: " + mBitmap );
mBitmap.recycle();
mBitmap = null;
}
mChanged = false;
mBitmap = bitmap;
dataService.setSourceImageSize( originalSize );
HiResService service = getService( HiResService.class );
if ( mHiResEnabled && service.isRunning() ) {
service.replace( mSessionId, mApiKey, dataService.getSourceImageUri() );
}
if ( null != mHiResListener ) {
mHiResListener.OnLoad( dataService.getSourceImageUri() );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\n sight.setImageBitmap(bmp);\n // old = null;\n }",
"void setNextBitmap( Bitmap bitmap, boolean update, Matrix matrix ) {\n\t\tlogger.log( \"setNextBitmap\", bitmap, update, matrix );\n\n\t\tif ( null != mBitmapChangeListener ) mBitmapChangeListener.onBitmapChange( bitmap, update, matrix );\n\n\t\tif ( !mBitmap.equals( bitmap ) ) {\n\t\t\tlogger.warning( \"[recycle] original Bitmap: \" + mBitmap );\n\t\t\tmBitmap.recycle();\n\t\t\tmBitmap = null;\n\t\t}\n\t\tmBitmap = bitmap;\n\t}",
"public void restore() {\n currentIm= originalIm.copy();\n }",
"public void setBitmap(Bitmap bitmap) {\n\t\t\n\t}",
"void setNextBitmap( Bitmap bitmap, boolean update ) {\n\t\tsetNextBitmap( bitmap, update, null );\n\t}",
"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 void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void recycleBitmapData(){\n\t\tif(bmpData != null){\n\t\t\tbmpData.recycle();\n\t\t\tbmpData = null;\n\t\t}\n\t}",
"public final void restore() {\r\n\t\tbi_image.restore();\r\n\t}",
"public void redraw() {\n\t\tif(this.getGraphics() != null){\n\t\t\tthis.getGraphics().drawImage(imageBuffer, 0, 0, this); // Swap\n\t\t}\n\t}",
"void setImage(Bitmap bitmap);",
"@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\n\t\tcanvas.drawBitmap(bitmap_new, 0, 0, paint);\n\t}",
"public static Bitmap recycleOldBitmapIfDifferent(Bitmap oldBitmap, Bitmap newBitmap) {\n if (oldBitmap != newBitmap) {\n recycle(oldBitmap);\n }\n return newBitmap;\n }",
"public void recycle() {\n \tif (mPreviousBitmap != null) {\n\t \tmPreviousBitmap.recycle(); \n\t \tmPreviousBitmap = null;\n \t}\n \tif (mCurrentBitmap != null) {\n\t \tmCurrentBitmap.recycle();\n\t mCurrentBitmap = null;\n \t}\n }",
"public void setBitmap(Bitmap bitmap){\n this.bitmap = Bitmap.createScaledBitmap(bitmap,(int)(bitmap.getWidth()*bitmapScale),(int)(bitmap.getHeight()*bitmapScale),false);\n //TODO:Update hitBox to scale to new bitmap\n }",
"public void reload() {\n mHandle = new Texture(mBitmap, mMinMode, mMagMode, mWrapS, mWrapT).getHandle();\n }",
"void setNextBitmap( Bitmap bitmap ) {\n\t\tsetNextBitmap( bitmap, true );\n\t}",
"public static void forceClearBitmap() {\n System.gc();\n System.runFinalization();\n System.gc();\n }",
"private void refreshBitmap(Bitmap bm, String path, ImageView imageView) {\r\n Message message = Message.obtain();\r\n ImgBeanHolder holder=new ImgBeanHolder();\r\n holder.bitmap=bm;\r\n holder.path=path;\r\n holder.imageView=imageView;\r\n message.obj=holder;\r\n mUIHandler.sendMessage(message);\r\n }",
"public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }",
"public void redraw() {\n\t\timgDisplay = null;\n\t\trepaint();\n\t}",
"@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}",
"public void update(Bitmap bitmap) {\r\n\t\tbufferStrat = this.canvas.getBufferStrategy();\r\n\r\n\t\tGraphics graphics = bufferStrat.getDrawGraphics();\r\n\t\tgraphics.drawImage(bitmap.getImage(), 0, 0, width * scale, height * scale, null);\r\n\t\tgraphics.dispose();\r\n\r\n\t\tbufferStrat.show();\r\n\t}",
"public void changeState() {\n if (!isDead) {\n Bitmap temp = getBitmap();\n setBitmap(stateBitmap);\n stateBitmap = temp;\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}",
"public void clear() {\n\t\tsetImageResource(R.drawable.barcode);\n\t\tthis.setScaleType(ScaleType.CENTER);\n\t}",
"public void resultImgSet(Bitmap bitmap) {\n fpResultImg.setImageBitmap(bitmap);\n }",
"@Override\n protected void onPostExecute(Bitmap Re) {\n t34.setImageBitmap(Re);\n }",
"public void changePhoto() {\r\n\t\tisPictFetche = false;\r\n\t\tlaPhoto = new Photo();\r\n\t\tlaPhotoCandidate = new Photo();\r\n\t}",
"Bitmap getBitmap(){\n Bitmap bm = frame;\n frame = null;\n return bm;\n }",
"public void setBitmapRight(Bitmap b){\n\t\timgRight = b;\n\t\tright.setBitmap(b);\n\t\tinvalidate();\n\t}",
"public void showbitmap2() {\n \t\tImageView i = (ImageView)findViewById(R.id.frame2);\n \t\ti.setImageBitmap(mBitmap2);\n \t}",
"@WorkerThread @UiThread\n public void setBitmap(String url, Bitmap bitmap) {\n synchronized (this) {\n this.bitmaps.put(url, bitmap);\n }\n\n // Tell all registered views that a bitmap changed\n notifyViews(Event.BITMAP_CHANGED);\n }",
"private void setImage(Bitmap image) {\n }",
"public void setImage(Bitmap bitmap) {\n this.bitmap = bitmap;\n }",
"private void setBitmapViewFull(Bitmap bitmap) {\n\n\t\t\tmCanvas.drawBitmap(bitmap, 0, 0, null);\n\t\t\tmCanvas.drawBitmap(bitmap, null, screenRect, null);\n\n\t\t\tif (DEBUG) {\n\t\t\t\tmCanvas.drawRect(recordRect, mRectPaint);\n\t\t\t\tmCanvas.drawRect(playRect, mRectPaint);\n\t\t\t}\n\t\t\tinvalidate();\n\t\t}",
"public abstract void setUpBitmap(Context context);",
"public static Bitmap recycle(Bitmap bitmap) {\n if (bitmap != null) {\n bitmap.recycle();\n }\n return null;\n }",
"public void actualizarImagen() {\n\t\tentidadGrafica.actualizarImagen(this.valor);\n\t}",
"public final void replaceImage(final ImageProcessor newImage) {\r\n this.image = newImage;\r\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\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\timageView.setImageBitmap(bitmap);\n\t\t\t\t\t}",
"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 }",
"private void clearCanvas() {\n updateImageSize(mScale);\n }",
"public void put(@NonNull final String key, final Bitmap value) {\n put(key, value, -1);\n }",
"public void changeBackground(Bitmap bg){\n Drawable newbackground = new BitmapDrawable(getResources(), bg);\n this.setBackground(newbackground);\n\n }",
"private void markBitmap(int frameNo){\n int bit = frameNo/32;\n int mask = frameNo%32;\n bitMap[bit] = bitMap[bit]|MASK[mask];\n }",
"public void showbitmap4() {\n \n \t}",
"private Bitmap ensureGLCompatibleBitmap(Bitmap bitmap) {\n\t\tif (bitmap == null || bitmap.getConfig() != null) {\n\t\t\treturn bitmap;\n\t\t}\n\t\tBitmap newBitmap = bitmap.copy(Config.ARGB_8888, false);\n\t\tbitmap.recycle();\n\t\tSystem.gc();\n\t\t//Log.i(TAG, \"***bitmap**\" + (bitmap == null) + \" \" + (newBitmap == null));\n\t\treturn newBitmap;\n\t}",
"private void setImage() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n Bitmap originalBm = BitmapFactory.decodeFile(tempFile.getAbsolutePath(), options);\n // Log.d(TAG, \"setImage : \" + tempFile.getAbsolutePath());\n\n myImage.setImageBitmap(originalBm);\n\n /**\n * tempFile 사용 후 null 처리를 해줘야 합니다.\n * (resultCode != RESULT_OK) 일 때 tempFile 을 삭제하기 때문에\n * 기존에 데이터가 남아 있게 되면 원치 않은 삭제가 이뤄집니다.\n */\n System.out.println(\"setImage : \" + tempFile.getAbsolutePath());\n fileSource = tempFile.getAbsolutePath();\n myImageSource = fileSource;\n check++;\n tempFile = null;\n\n }",
"@Override\n\tprotected void onPostExecute(Bitmap bitmap) {\n\t\tif (imageViewReference != null && bitmap != null) {\n\t\t\tfinal ImageView imageView = imageViewReference.get();\n\t\t\tif (imageView != null) {\n\t\t\t\timageView.setImageBitmap(bitmap);\n\t\t\t\timageView.setVisibility(View.VISIBLE);\n\t\t\t\tmybitmap = bitmap;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tpreserved(bitmap);\n\t\t}",
"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}",
"public void swap() {\n\t\tPGraphics tmp = this.src;\n\t\tthis.src = this.dst;\n\t\tthis.dst = tmp;\n\t}",
"@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (imageViewReference != null && bitmap != null) {\n final ImageView imageView = imageViewReference.get();\n if (imageView != null) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }",
"public static void updateImageView(Context context, ImageView imageView, Bitmap newBitmap, Bitmap frame) {\n Bitmap originalBitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap();\n\n ThumbnailUtils thumbnailUtils = new ThumbnailUtils();\n Bitmap thumbnail = thumbnailUtils.extractThumbnail(newBitmap, originalBitmap.getWidth(), originalBitmap.getWidth());\n\n Bitmap combinedBitmap = Bitmap.createBitmap(frame.getWidth(), frame.getHeight(), frame.getConfig());\n Canvas canvas = new Canvas(combinedBitmap);\n canvas.drawBitmap(thumbnail, 0, 0, null);\n canvas.drawBitmap(frame, new Matrix(), null);\n\n imageView.setImageDrawable(new BitmapDrawable(context.getResources(), combinedBitmap));\n }",
"@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n\n // Add bitmap to cache\n if (bitmap != null) {\n synchronized (sHardBitmapCache) {\n sHardBitmapCache.put(resourceId, bitmap);\n }\n }\n\n if (imageViewReference != null) {\n ImageView imageView = imageViewReference.get();\n BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView);\n // Change bitmap only if this process is still associated with it\n if (this == bitmapDownloaderTask) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }",
"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 void clearImage() {\n IntStream.range(0, bytes.length).forEach(i -> bytes[i] = CLEAR_BYTE);\n }",
"private void setPic() {\n int targetW = 210;\n int targetH = 320;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n bitmap = RotateBitmap(bitmap,270);\n preview.setImageBitmap(bitmap);\n }",
"public void setImageBitmapInto(Bitmap bitmap, View view) {\n ((ImageView) view).setImageBitmap(bitmap);\n }",
"public void updateLayer() {\n bufferedImage = null;\n repaint();\n panelResized();\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\timgView.setImageBitmap(pngBM);\n\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void putBitmap(String url, Bitmap bitmap) {\n\t\t\t\tcache.put(url, bitmap);\n\t\t\t}",
"public void setDefaultBitmap(Bitmap bitmap) {\n mController.setDefaultBitmap(bitmap);\n }",
"@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n if (imageViewReference != null && bitmap != null) {\n final ImageView imageView = imageViewReference.get();\n final BitmapWorkerTask bitmapWorkerTask =\n getBitmapWorkerTask(imageView);\n if (this == bitmapWorkerTask && imageView != null) {\n if (bitmap != null) {\n imageView.setImageBitmap(bitmap);\n } else {\n imageView.setImageResource(R.drawable.forbes_default);\n }\n }\n }\n }",
"public void putFrame()\n {\n if (currImage != null)\n {\n super.putFrame(currImage, faceRects, new Scalar(0, 255, 0), 0);\n }\n }",
"private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageView.setImageBitmap(bitmap);\n imageView.invalidate();\n }",
"private void reloadCanvas() {\n reloadCanvas(1f);\n }",
"@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n mBitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n // 8888 means that color is stored suing 8 bits (1 byte) for alpha, red, green, blue\n mCanvas = new Canvas(mBitmap);\n mBitmap.eraseColor(Color.WHITE);\n }",
"public void setBitmapIn(Bitmap bitmapIn) {\r\n\t\tthis.bitmapIn = bitmapIn;\r\n\t}",
"private void updateFingerprintImage(FingerprintImage fi) {\n\n try {\n byte[] fpBmp = null;\n Bitmap bitmap;\n if (fi == null || (fpBmp = fi.convert2Bmp()) == null || (bitmap = BitmapFactory.decodeByteArray(fpBmp, 0, fpBmp.length)) == null) {\n //loger.addRecordToLog(\"updateFingerprintImage sin huella \");\n bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.sinhuella);\n }\n mHandler.sendMessage(mHandler.obtainMessage(MSG_UPDATE_IMAGE, bitmap));\n\n } catch (Exception e) {\n\n //loger.addRecordToLog(\"Exception updateFingerprintImage : \" + e.getMessage());\n\n //mFingerprintImage.setImageResource( R.drawable.errornuevahuella );\n\n //e.printStackTrace();\n\n }\n\n }",
"@Override\r\n public void run() {\n imageView1.setImageBitmap(bitmap);\r\n }",
"public void mo8098a(Bitmap bitmap, Bitmap bitmap2) {\n if (bitmap2 != null) {\n C2342x.m9083a((View) this, (Drawable) new BitmapDrawable(getContext().getResources(), bitmap2));\n } else {\n C2342x.m9082a((View) this, 0);\n }\n if (bitmap != null) {\n this.f6228b = bitmap.getWidth();\n this.f6229c = bitmap.getHeight();\n this.f6227a.setImageBitmap(Bitmap.createBitmap(bitmap));\n return;\n }\n this.f6227a.setImageDrawable(null);\n }",
"public void desaturar(View v){\n bitmap= blancoNegro(bitmap);\n iv.setImageBitmap(bitmap);\n }",
"@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n if (imageViewReference != null && bitmap != null) {\n final ImageView imageView = imageViewReference.get();\n final BitmapWorkerTask bitmapWorkerTask =\n getBitmapWorkerTask(imageView);\n if (this == bitmapWorkerTask && imageView != null) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }",
"@Override\n public void run() {\n imgFinger.setImageBitmap(bitmap);\n }",
"private void reloadCanvas(float scale) {\n mScale = scale;\n updateImageSize(mScale);\n }",
"private void displayCurrentPicture() {\r\n\t\tglobalContainer.setWidget(0, 0, getCurrentPicture());\r\n\t}",
"public void act() {\n setImage(myGif.getCurrentImage());\n }",
"public void showbitmap3() {\n \n \t}",
"public void displayNewImage() {\n\t\tthis.canvas.display();\n\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}",
"private void setPic() {\n int targetW = mainImageView.getWidth();\n int targetH = mainImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n// bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mainImageView.setImageBitmap(bitmap);\n\n// bmOptions.inBitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n// mainImageView.setImageBitmap(bmOptions.inBitmap);\n }",
"boolean restoreBufferedImage();",
"void deleteCurrentImageBuffered();",
"void reDraw();",
"void mo12205a(Bitmap bitmap);",
"private void setPic()\n {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n int scaleFactor = Math.min(photoW/384, photoH/512);\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n imageCapture.setImageBitmap(bitmap);\n }",
"public void clear() {\n\t\tfor(int i=0;i<getWidth();i++) {\n\t\t\tfor(int j=0;j<getHeight();j++) {\n\t\t\t\tbImage.setRGB(i, j, 0xffffffff);\n\t\t\t}\n\t\t}\n\t}",
"Bitmap m7900a(Bitmap bitmap);",
"public void setPreview(Bitmap bitmap) {\n m_thumbnail.setImageBitmap(bitmap);\n crossFadeThumbnail();\n }",
"public void process(Bitmap bitmap) {\n this.bitmap = getCompressedBitmap(bitmap);\n execute();\n }",
"private void rebuildImageIfNeeded() {\n Rectangle origRect = this.getBounds(); //g.getClipBounds();\n// System.out.println(\"origRect \" + origRect.x + \" \" + origRect.y + \" \" + origRect.width + \" \" + origRect.height);\n\n backBuffer = createImage(origRect.width, origRect.height);\n// System.out.println(\"Image w \" + backBuffer.getWidth(null) + \", h\" + backBuffer.getHeight(null));\n Graphics backGC = backBuffer.getGraphics();\n backGC.setColor(Color.BLACK);\n backGC.fillRect(0, 0, origRect.width, origRect.height);\n// updateCSysEntList(combinedRotatingMatrix);\n paintWorld(backGC);\n }",
"public synchronized void setPictureFromCache() {\n Runnable run = new Runnable() {\n @Override\n public void run() {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n if (file != null) {\n Bitmap myBitmap = BitmapFactory.decodeFile(file.getAbsolutePath());\n if (imageView != null) {\n //imageView.setImageDrawable(new BitmapDrawable(null, myBitmap));\n new ResizeImage(imageView, file.getAbsolutePath()).setImageView();\n }\n }\n }\n };\n new Handler(context.getMainLooper()).post(run);\n }",
"public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}",
"public void setBitmapLeft(Bitmap b){\n\t\timgLeft = b;\n\t\tleft.setBitmap(b);\n\t\tinvalidate();\n\t}",
"@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n\n addBitmapToCache(url, bitmap);\n \n // write to cache file at the same time\n // Defect: Because transfer into bitmap, we can't save as GIF with transparent background\n // saveBitmapToCacheFile(url, bitmap);\n \n if (imageViewReference != null) {\n ImageView imageView = imageViewReference.get();\n BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView);\n // Change bitmap only if this process is still associated with it\n // Or if we don't use any bitmap to task association (NO_DOWNLOADED_DRAWABLE mode)\n if ((this == bitmapDownloaderTask) || (mode != Mode.CORRECT)) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }"
] | [
"0.6561622",
"0.6557135",
"0.64462215",
"0.6424878",
"0.64205426",
"0.6395174",
"0.63183796",
"0.6245924",
"0.6245924",
"0.62297535",
"0.61645406",
"0.61528164",
"0.6151935",
"0.6143272",
"0.6136257",
"0.6104715",
"0.60930675",
"0.6083803",
"0.6069375",
"0.60080355",
"0.6003681",
"0.5982475",
"0.5932861",
"0.5923481",
"0.59040964",
"0.58717513",
"0.584673",
"0.5821716",
"0.5815772",
"0.578012",
"0.5775641",
"0.5765748",
"0.5764727",
"0.5743899",
"0.57398933",
"0.5738615",
"0.57263434",
"0.5725711",
"0.57114655",
"0.57111347",
"0.5705493",
"0.5695715",
"0.5673238",
"0.563611",
"0.5630188",
"0.56262404",
"0.5619562",
"0.56084937",
"0.5606274",
"0.56032413",
"0.55918074",
"0.5584312",
"0.5573635",
"0.5569208",
"0.5562723",
"0.55612403",
"0.5552536",
"0.5551825",
"0.5530523",
"0.5525206",
"0.55038273",
"0.5491849",
"0.54905033",
"0.5489291",
"0.54818976",
"0.54777324",
"0.5454242",
"0.54542357",
"0.54520446",
"0.5448919",
"0.5442312",
"0.5434337",
"0.54333806",
"0.5429772",
"0.5427548",
"0.54255986",
"0.542286",
"0.5416754",
"0.5413862",
"0.5386967",
"0.5374644",
"0.53718346",
"0.5369722",
"0.5368641",
"0.53680867",
"0.5362199",
"0.5362103",
"0.53531104",
"0.5352368",
"0.5351659",
"0.53469557",
"0.5343796",
"0.5340694",
"0.53395545",
"0.5337334",
"0.5334028",
"0.533067",
"0.5329041",
"0.53226715",
"0.5322263"
] | 0.6230479 | 9 |
Run a Runnable on the main UI thread. | @Override
public void runOnUiThread( final Runnable action ) {
if ( mContext != null ) ( (Activity) mContext ).runOnUiThread( action );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void runOnUiThread(Runnable runnable);",
"public static void runOnUIThread(\n final Runnable r)\n {\n NullCheck.notNull(r);\n final Looper looper = NullCheck.notNull(Looper.getMainLooper());\n final Handler h = new Handler(looper);\n h.post(r);\n }",
"private static void runLater(Runnable runnable) {\n Display display = Display.findDisplay(Thread.currentThread());\n if (display != null) {\n display.asyncExec(runnable);\n } else {\n AdtPlugin.log(IStatus.WARNING, \"Could not find display\");\n }\n }",
"@Override\n public void runOnUiThread(Runnable r) {\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateUI();\n\t\t\t\t\t\t}",
"public abstract void postToMainThread(@NonNull Runnable runnable);",
"public void runOnUiThread(Runnable action) {\n h.post(action);\n }",
"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}",
"public void executeOnMainThread(@NonNull Runnable runnable) {\r\n if (isMainThread()) {\r\n runnable.run();\r\n } else {\r\n postToMainThread(runnable);\r\n }\r\n }",
"public void run(){\n //logic to execute in a thread \n }",
"@Override\n public void run() {\n mRunnable.onPreExecute();\n mExecutor.onPreExecuteCallback(mRunnable);\n }",
"public final void run() {\r\n }",
"void runInThread(Runnable runnable) {\n try {\n Thread thread = new Thread(runnable::run);\n thread.start();\n } catch (Exception ex) {\n log.info(ex.getMessage());\n }\n\n }",
"@Override\n public void run() {\n mRunnable.onPostExecute();\n mExecutor.onPostExecuteCallback(mRunnable);\n }",
"public void startThread(View view) {\n //startNormalThread();\n startRunnableThread();\n }",
"@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }",
"@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }",
"@Override\r\n\tpublic void run() {\n\t\tshowViewer();\r\n\t}",
"@Override\n public void run() {\n final WeakHandler wh = hw.getThat();\n final Runnable r = runnable.get();\n if (wh == null || r == null) {\n return;\n }\n r.run();\n }",
"public interface MainThread {\n void post(Runnable runnable);\n}",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}",
"public void runOnUiThread(Runnable action) {\n synchronized(action) {\n mActivity.runOnUiThread(action);\n try {\n action.wait();\n } catch (InterruptedException e) {\n Log.v(TAG, \"waiting for action running on UI thread is interrupted: \" +\n e.toString());\n }\n }\n }",
"private void runOnMainThread(Runnable task)\n {\n if (Thread.currentThread() == mHandler.getLooper().getThread())\n task.run();\n else\n mHandler.post(task);\n }",
"@Override\n\tpublic void run()\n\t{\n\t}",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\r\n public void run() {}",
"@Override\n public void run()\n {\n super.run();\n }",
"public void run() {\n\t\tthis.launch( null );\n\t}",
"@Override\r\n public void run() {\n }",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t}",
"@Override\n\tpublic void run() {\n\t}",
"@Override\r\n\tpublic void run() {\n\t}",
"@Override\r\n\tpublic void run() {\n\t}",
"@Override\n public void run() {\n Log.d(TAG, \"requestLayout(): MainScene placeholder runnable\");\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n if (!this.m_running) {\n this.m_running = true;\n this.pollingLooper();\n }\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n\tpublic void run() {\n\t\tLog.i(tag, \"run\");\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(mThread==null){\n\t\t\t\t\tmThread=new Thread(runnable);\n\t\t\t\t\tmThread.start();\n\t\t\t\t}else{\n\t\t\t\t\tToast.makeText(getApplication(), getApplication().getString(R.string.thread_started), Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\t\tpublic void run() {\n\t\t\tSystem.out.println(\"updateThread\");\r\n\t\t\thandler.postDelayed(updateThread, 3000);\r\n\t\t}",
"@Override\n\tpublic void run()\n\t{\n\n\t}",
"public void run () { run (true); }",
"public void run() {\n\t\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsetStatusMessage(UI.EMPTY_STRING);\r\n\t\t\t\t}",
"public void run() {\n\t\t\t\t\t\tif (!compositeUnderDisplay.isDisposed()) {\n\t\t\t\t\t\t\tfinal DeviceUI ui = (DeviceUI) compositeUnderDisplay;\n\t\t\t\t\t\t\tui.updateTimers(deviceUnderDisplay, kind, duration);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@Override\n public void run() {\n }",
"public void run() {\r\n }",
"@Override\n public void run()\n {\n\n }",
"private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }",
"public void run() {\n Looper.prepare();\n backgroundHandler = new Handler(); //Handler processes only runnables. It is not required to implement handleMessage(msg)\n Looper.loop();\n }",
"public void testDefaultsToMainThread() throws Exception {\n\n Executor executor = new LooperExecutor();\n final CountDownLatch latch = new CountDownLatch(1);\n executor.execute(new Runnable() {\n @Override\n public void run() {\n assertEquals(\"running on ui thread\", Looper.getMainLooper(), Looper.myLooper());\n latch.countDown();\n }\n });\n latch.await();\n }",
"public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}",
"public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}",
"public static void invokeLater(Runnable runnable) {\n Toolkit.getEventQueue().postEvent(\n new InvocationEvent(Toolkit.getDefaultToolkit(), runnable));\n }",
"public void run() {\n \t\t\t\t\t\t((AbstractTreeViewer)getViewer()).refresh();\n \t\t\t\t\t}",
"@Override\n public void run()\n {\n }",
"@Override\n public void run()\n {\n }",
"@Override\npublic void run() {\n perform();\t\n}",
"public void run() {\n super.run();\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"public void run(){\n\t}",
"@Override\r\n\tpublic void run() {\n\r\n\t}",
"void runInAudioThread(Runnable runnable) {\n executor.execute(runnable);\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"private void runThread(String msg) {\n\n new Thread() {\n public void run() {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n ((TextView)findViewById(R.id.Resultext)).setText(msg);\n }\n });\n\n }\n }.start();\n }",
"public static void goToAWTThread(Runnable runnable)\n\t{\n\t\tif (!SwingUtilities.isEventDispatchThread())\n\t\t{\n\t\t\t//Thread.dumpStack();\n\t\t\t/*System.err.println(\n\t\t\t\"WARNING ! : you try to render on a different thread than the\"+\n\t\t\t\"thread that creates the renderView. Making an invokeLater to\"+\n\t\t\t\" render on the thread that creates the renderView\");*/\n\t\t\ttry {\n\t\t\t\tSwingUtilities.invokeAndWait(runnable);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage(), ex);\n\t\t\t} catch (InvocationTargetException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tLOGGER.log(Level.SEVERE, ex.getMessage(), ex);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\trunnable.run();\n\t}",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }"
] | [
"0.7262829",
"0.7065604",
"0.6944305",
"0.6832593",
"0.68090343",
"0.6732508",
"0.6709126",
"0.66439086",
"0.6614808",
"0.6501008",
"0.6423874",
"0.63983977",
"0.6348641",
"0.6322119",
"0.63167715",
"0.6248038",
"0.623502",
"0.6226748",
"0.62245715",
"0.6221155",
"0.6178717",
"0.6177046",
"0.61607033",
"0.6139198",
"0.61133236",
"0.61133236",
"0.61133236",
"0.6102243",
"0.6081592",
"0.60778904",
"0.60727435",
"0.6070472",
"0.6070472",
"0.6070472",
"0.6070472",
"0.6070472",
"0.6067482",
"0.6067482",
"0.6066217",
"0.6063403",
"0.6061347",
"0.6061347",
"0.6055335",
"0.60530764",
"0.60530764",
"0.60529095",
"0.60346365",
"0.60346365",
"0.60346365",
"0.60346365",
"0.60346365",
"0.60346365",
"0.60346365",
"0.60321224",
"0.60301787",
"0.6030133",
"0.60225224",
"0.60211706",
"0.60142434",
"0.60137504",
"0.60132575",
"0.60079855",
"0.60046196",
"0.5998166",
"0.59943366",
"0.59865564",
"0.59863555",
"0.59863555",
"0.5978028",
"0.59760237",
"0.59706753",
"0.59706753",
"0.5970445",
"0.59701204",
"0.5966773",
"0.5966773",
"0.59624606",
"0.59618443",
"0.59526294",
"0.59514916",
"0.59514916",
"0.59514916",
"0.59514916",
"0.59460336",
"0.59460336",
"0.59460336",
"0.59460336",
"0.59460336",
"0.59460336",
"0.59460336",
"0.59460336",
"0.59460336",
"0.5943742",
"0.5938766",
"0.5938611",
"0.59337044",
"0.59337044",
"0.59337044",
"0.59337044",
"0.59337044"
] | 0.6282241 | 15 |
Sets the current state. | private void setCurrentState( final STATE newState ) {
if ( newState != mCurrentState ) {
final STATE previousState = mCurrentState;
mCurrentState = newState;
switch ( newState ) {
case OPENING:
mCurrentEffect.setOnPreviewListener( this );
mCurrentEffect.setOnApplyResultListener( this );
mCurrentEffect.setOnErrorListener( this );
mCurrentEffect.setOnProgressListener( this );
if ( mCurrentEffect instanceof ContentPanel ) ( (ContentPanel) mCurrentEffect ).setOnReadyListener( this );
mHandler.sendEmptyMessage( FilterManager.STATE_OPENING );
break;
case OPENED:
mCurrentEffect.onActivate();
mHandler.sendEmptyMessage( FilterManager.STATE_OPENED );
if ( !( mCurrentEffect instanceof ContentPanel ) ) {
mHandler.sendEmptyMessage( STATE_READY );
}
break;
case CLOSING:
mHandler.sendEmptyMessage( FilterManager.STATE_CLOSING );
mCurrentEffect.onDeactivate();
if ( mCurrentEffect instanceof ContentPanel ) {
( (ContentPanel) mCurrentEffect ).setOnReadyListener( null );
}
mHandler.postDelayed( new Runnable() {
@Override
public void run() {
if ( null != mBitmapChangeListener ) mBitmapChangeListener.onClearColorFilter();
mContext.getDrawingImageContainer().removeAllViews();
mContext.deactivatePopupContainer();
}
}, 100 );
break;
case CLOSED_CANCEL:
case CLOSED_CONFIRMED:
mContext.getOptionsPanelContainer().removeAllViews();
if ( previousState != STATE.DISABLED ) {
mCurrentEffect.onDestroy();
mCurrentEffect.setOnPreviewListener( null );
mCurrentEffect.setOnApplyResultListener( null );
mCurrentEffect.setOnErrorListener( null );
mCurrentEffect.setOnProgressListener( null );
mCurrentEffect = null;
mCurrentEntry = null;
}
mHandler.sendEmptyMessage( FilterManager.STATE_CLOSED );
if ( ( newState == STATE.CLOSED_CONFIRMED ) && ( previousState != STATE.DISABLED ) ) if ( mToolListener != null ) mToolListener.onToolCompleted();
System.gc();
break;
case DISABLED:
mHandler.sendEmptyMessage( FilterManager.STATE_DISABLED );
break;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCurrentState(State state) {\n currentState = state;\n }",
"void setState(int state);",
"public void setState(int state);",
"public void setState(int state);",
"public static void setState(States state) {\r\n\t\tcurrentState = state;\r\n\t}",
"protected void setCurrentState(boolean currentState) {\n this.currentState = currentState;\n }",
"public void setState(State state) { model.setState(state); }",
"public void setCurrentState(State currentState) {\n \t\tthis.currentState = currentState;\n \t}",
"public void setState(State newState) {this.state = newState;}",
"void setState(State state);",
"public void setState(Integer state) {\r\n this.state = state;\r\n }",
"public void setState(Integer state) {\r\n this.state = state;\r\n }",
"private void setState( int state )\n {\n m_state.setState( state );\n }",
"public void setCurrentState(State currentState) {\n\t\tthis.currentState = currentState;\n\t}",
"public void setCurrentState(State currentState) {\n\t\tthis.currentState = currentState;\n\t}",
"@Override\n\tpublic void setState(STATE state) {\n\n\t}",
"public void setState(Integer state) {\n\t\tthis.state = state;\n\t}",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(final State state);",
"public void setState(int state) {\n \t\tthis.state = state;\n \t}",
"public void setState(State state) {\n\t\tthis.state = state;\n\t}",
"void setState(Object state);",
"public void setState(State state) {\n this.state = state;\n }",
"public void setState(State state) {\n this.state = state;\n }",
"public synchronized void set() {\n this.currentState = EventState.UP;\n notify();\n }",
"public void SetState(int s) {\n this.state=LS[s];\n }",
"public void setState(int state) {\n m_state = state;\n }",
"private void setState(State newState) {\n mStateStartTime = System.currentTimeMillis();\n\n // Update the UI with the name of the current state\n mCurrentStateTextView.setText(newState.name());\n\n // Opportunity to do stuff when a new state is set.\n switch (newState) {\n case READY:\n break;\n case RUNNING_A_SCRIPT:\n runScript();\n break;\n case SEEKING_HOME:\n break;\n case SUCCESS:\n break;\n }\n mState = newState;\n }",
"public void setState (State state) {\n synchronized (this) {\n this.state = state;\n }\n }",
"public void setState(int state) {\n\t\t\tmState = state;\n\t\t}",
"public void setCurrentState(String currentState) {\n\t\tthis.currentState = currentState;\n\t}",
"public void setState(State state) {\n synchronized (stateLock){\n this.state = state;\n }\n }",
"private void setCurrentState(StateEnum state)\n {\n m_CurrentState = state;\n m_DoneInit = false;\n switch(m_CurrentState)\n {\n case QB:\n m_A1Label.setText( \"PS\");\n m_A2Label.setText( \"PC\");\n m_A3Label.setText( \"ACC\");\n m_A4Label.setText( \"APB\");\n m_Sim1Label.setText( \"Sim Run\");\n m_Sim2Label.setText( \"Sim Pass\");\n m_Sim3Label.setText( \"Sim Pocket\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( true);\n m_Sim4UpDown.setEnabled( false);\n \n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( true);\n m_APBBox.setEnabled( true);\n break;\n case SKILL:\n m_A1Label.setText( \"BC\");\n m_A2Label.setText( \"REC\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"Sim Rush\");\n m_Sim2Label.setText( \"Sim Catch\");\n m_Sim3Label.setText( \"<HTML> Sim Punt<br>return</HTML>\");\n m_Sim4Label.setText( \"<HTML> Sim Kick<br>return</HTML>\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( true);\n m_Sim4UpDown.setEnabled( true);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case OLINE:\n m_A1Label.setText( \"\");\n m_A2Label.setText( \"\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"\");\n m_Sim2Label.setText( \"\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( false);\n m_Sim2UpDown.setEnabled( false);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_PS_BC_PI_KABox.setEnabled( false);\n m_PC_REC_QU_KABox.setEnabled( false);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case DEFENSE:\n m_A1Label.setText( \"PI\");\n m_A2Label.setText( \"QU\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"<HTML> Sim Pass<br>rush </HTML>\");\n m_Sim2Label.setText( \"Sim Coverage\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case KICKER:\n m_A1Label.setText( \"KA\");\n m_A2Label.setText( \"AKB\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"Sim KA\");\n m_Sim2Label.setText( \"\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( false);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n }\n m_DoneInit = true;\n }",
"protected final void setState(State s) {\n state = s;\n }",
"@Override\n public void setState(int state) {\n synchronized(LOCK_STATE) {\n this.state = state;\n }\n }",
"public void setStateToActive() {\n state = VALID_STATES[0];\n }",
"public void setState(int state) {\n\t\tif (state == CHASE)\n\t\t\tthis.state = CHASE;\n\t\telse if (state == RUN) \n\t\t\tthis.state = RUN;\n\t}",
"void setState(boolean state);",
"public void setState(String state);",
"public void setState(int i) {\n this.mState = i;\n }",
"public static void SetState (int state) {\n\t\t source = state;\n\t\t}",
"public void setState(StateController state) {\n this.state = state;\n }",
"void setState(SimulationState state) {\n\t\tthis.state = state;\n\t}",
"public void setState(States s) {\n\t\tthis.state = s;\n\t}",
"public void setState(Context.ContextState state)\n\t{\n\t this.state = state;\n\t}",
"protected void setState(final State state) {\n this.state.set(state);\n }",
"public void setState(int newState) {\n state = newState;\n }",
"public void setState(NodeState state) {\n this.state = state;\n }",
"private void setState(State newState) {\n state = newState;\n switch (newState) {\n case IDLE:\n toggleReco.setText(\"Tap to speak.\");\n break;\n case LISTENING:\n toggleReco.setText(getResources().getString(R.string.listening));\n break;\n case PROCESSING:\n toggleReco.setText(getResources().getString(R.string.processing));\n break;\n }\n }",
"public void setState(boolean state) {\n\t\tthis.state = state;\n\t}",
"@Override\n\tpublic void setState(State state) \n\t\t{ current = new PuzzleState(state.getString(state.getState()),\n\t\t\t\t\t\t\t\t\tstate.getString(state.getGoalState())); \n\t\t}",
"public void setState(final StateReference state);",
"void setState(String state);",
"@Override\n\tpublic void setLastState(STATE state) {\n\n\t}",
"public void setState(@NotNull State state) {\n this.state = state;\n }",
"public void setState(StateEnum val) {\n state = val;\n }",
"protected void setState(int value) {\r\n\t\tdState = value;\r\n\t\tstateChanged();\r\n\t\t\r\n\t\t// System debug\r\n\t\tSystem.out.println(\"State changed: \" + STATUS[dState]);\r\n\t}",
"public void getState();",
"public void setState(String s) {\r\n\t\tstate = s;\t\t\r\n\t}",
"@Override protected void setState(State s) {\n session.setState(s);\n super.setState(s);\n }",
"public void setCurrentState(final StateName nextState) {\n if (availableStates.containsKey(nextState)) { // for safety.\n curState = availableStates.get(nextState);\n }\n }",
"void __setState(int i)\n {\n m_state = i;\n }",
"public void setState(String state){\n this.state = state;\n }",
"public void setState(Boolean state) {\n this.state = state;\n }",
"public void setState(File state) {\r\n\t\tthis.state = state;\r\n\t}",
"public void changeState() {\n if (!isDead) {\n Bitmap temp = getBitmap();\n setBitmap(stateBitmap);\n stateBitmap = temp;\n }\n }",
"public void setState(GameState s) {\n this.state = s;\n }",
"public void updateState();",
"public void setaState(Integer aState) {\n this.aState = aState;\n }",
"public void setState(Byte state) {\n this.state = state;\n }",
"public void setState(Byte state) {\n this.state = state;\n }",
"void currentStateChanged();",
"public void set(GameState state){\n states.pop();\n states.push(state);\n }",
"public void setState(PlayerState state) {\n this.state = state;\n }",
"public void applyNewState() {\n this.setAlive(this.newState);\n }",
"public void setStateContext(State s);",
"private synchronized void setState(int state) {\n if (D) Log.d(TAG, \"setState() \" + mState + \" -> \" + state);\n mState = state;\n\n // Give the new state to the Handler so the UI Activity can update\n mHandler.obtainMessage(RemoteBluetooth.MESSAGE_STATE_CHANGE, state, -1).sendToTarget();\n }",
"public void setState(String state) {\r\n\t\tthis.state = state;\r\n\t}",
"public void setState(String state) {\r\n\t\tthis.state = state;\r\n\t}",
"private void SetState(VehicleState state) {\n this.state = state;\n }",
"public void setState(String state)\r\n\t{\r\n\t\tthis.state = state;\r\n\t}",
"public void setState(String state)\r\n\t{\r\n\t\tthis.state=state;\r\n\t}",
"public void setActive() {\n setState(true);\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setMyState(MesiStates theMesiState)\n\t{\n\t\tmyMesiState = theMesiState;\n\t}",
"public void setState(String state)\n\t{\n\t\tState = state;\n\t}",
"public int setCurrentState(int[][] state) {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tthis.currentState[i][j] = state[i][j];\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}",
"public static void setState(GameState state) {\r\n\t\tgameState = state;\r\n\t}",
"public void setState(String state)\n\t{\n\t\tthis.state = state; \n\t}",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }"
] | [
"0.7822123",
"0.7716895",
"0.76805645",
"0.76805645",
"0.75865567",
"0.75851035",
"0.7563019",
"0.75600296",
"0.7456805",
"0.74383897",
"0.74381435",
"0.74381435",
"0.74290425",
"0.7419567",
"0.7419567",
"0.73751277",
"0.7369308",
"0.7363639",
"0.7363639",
"0.7363639",
"0.7363639",
"0.7363639",
"0.7363639",
"0.73618877",
"0.7343226",
"0.733934",
"0.7322857",
"0.730253",
"0.730253",
"0.72768277",
"0.72725123",
"0.7257479",
"0.72565925",
"0.71605176",
"0.7151566",
"0.71176594",
"0.7085133",
"0.70607257",
"0.70374626",
"0.70368356",
"0.70305324",
"0.70245445",
"0.7021973",
"0.7019813",
"0.7013657",
"0.69629866",
"0.6960426",
"0.6953798",
"0.69484496",
"0.6942002",
"0.6938424",
"0.69255686",
"0.6921497",
"0.6916314",
"0.69126797",
"0.69104767",
"0.6903103",
"0.68953305",
"0.68929404",
"0.68908185",
"0.6887874",
"0.68821657",
"0.6865968",
"0.6863657",
"0.6857993",
"0.68483895",
"0.68482065",
"0.6844973",
"0.68397874",
"0.68128955",
"0.6809344",
"0.6805699",
"0.6802051",
"0.6792534",
"0.6788752",
"0.6788752",
"0.67719495",
"0.6767095",
"0.67650616",
"0.67603517",
"0.6759276",
"0.67519736",
"0.6737994",
"0.6737994",
"0.6737562",
"0.6735335",
"0.67242616",
"0.6715835",
"0.6702044",
"0.6702044",
"0.6700315",
"0.6698374",
"0.6695485",
"0.66908157",
"0.66857",
"0.66716635",
"0.66716635",
"0.66716635",
"0.66716635",
"0.66716635",
"0.66716635"
] | 0.0 | -1 |
Sets the on tool listener. | public void setOnToolListener( final OnToolListener listener ) {
mToolListener = listener;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setListener() {\n\t}",
"@Override\n\tpublic void addToolListener(ToolListener listener) {\n\t\t//do nothing\n\t}",
"public void addToolListener(ToolListener listener, String toolEvent) {\n\t\t//do nothing\n\t}",
"void setListener(Listener listener);",
"public static interface OnToolListener {\n\n\t\t/**\n\t\t * On tool completed.\n\t\t */\n\t\tvoid onToolCompleted();\n\t}",
"private void setListener() {\n\t\tmSlidingLayer.setOnInteractListener(this);\r\n\t\tmMsgNotifySwitch.setOnCheckedChangeListener(this);\r\n\t\tmMsgSoundSwitch.setOnCheckedChangeListener(this);\r\n\t\tmShowHeadSwitch.setOnCheckedChangeListener(this);\r\n\t\tmAccountSetting.setOnClickListener(this);\r\n\t\tmMyProfile.setOnClickListener(this);\r\n\t\tmFaceJazzEffect.setOnClickListener(this);\r\n\t\tmAcountInfo.setOnClickListener(this);\r\n\t\tmFeedBack.setOnClickListener(this);\r\n\t\tmExitAppBtn.setOnClickListener(this);\r\n\r\n\t}",
"@Override\n\tpublic void setListener() {\n\n\t}",
"public void setServiceListener(Listener listener) {\n \t\tlocalListener = listener;\n \t}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"@Override\r\n\tpublic void setListener() {\n\r\n\t}",
"public void setOnInfoListener(OnInfoListener onInfoListener) {\n synchronized (this) {\n this.mOnInfoListener = onInfoListener;\n if (onInfoListener != null) {\n this.createListeners();\n }\n return;\n }\n }",
"@Override\n\tprotected void setListener() {\n\n\t}",
"@Override\n\tprotected void setListener() {\n\n\t}",
"public static void setListener(QuadConsumer listener) {\n\t\t\n\t\tnotificationListener = listener;\n\t\t\n\t}",
"public void addMapToolSelectListener(MapToolSelectionListener listener) {\n MapToolSelectionListener[] listeners = eventListeners.getListeners(MapToolSelectionListener.class);\n if (!Arrays.asList(listeners).contains(listener)) {\n eventListeners.add(MapToolSelectionListener.class, listener);\n }\n }",
"public void setListener(Listener listener) {\n this.mListener = listener;\n }",
"public void setListener(Listener listener) {\n this.mListener = listener;\n }",
"public void setCommandListner( CommandListener l )\n {\n this.listener = l;\n }",
"private void setListeners() {\n\n }",
"public void setOnAppChangeListener(OnAppChangeListener mListener) {\r\n\t\tthis.m_listener = mListener;\r\n\t}",
"@Reference(\n name = \"listener.manager.service\",\n service = org.apache.axis2.engine.ListenerManager.class,\n cardinality = ReferenceCardinality.OPTIONAL,\n policy = ReferencePolicy.DYNAMIC,\n unbind = \"unsetListenerManager\")\n protected void setListenerManager(ListenerManager listenerManager) {\n if (log.isDebugEnabled()) {\n log.debug(\"Listener manager bound to the API manager component\");\n }\n APIManagerConfigurationService service = ServiceReferenceHolder.getInstance().getAPIManagerConfigurationService();\n if (service != null) {\n service.getAPIManagerConfiguration().reloadSystemProperties();\n }\n }",
"void setActiveTool(int tool) {\n this.activeTool = tool;\n }",
"public void setOnInfoListener(IMediaPlayer.OnInfoListener l) {\n mOnInfoListener = l;\n }",
"public void setExamEventListener(ExamEventListener listener) {\n mExamEventListener = listener;\n }",
"@Override\n public void setListener(@NonNull final ExpandableLayoutListener listener) {\n this.listener = listener;\n }",
"public void setTool(Tool t) {\n\ttool = t;\n }",
"public void setTool(final Tool theTool) {\n removeMouseListener(myCurrentTool);\n removeMouseMotionListener(myCurrentTool);\n myCurrentTool = theTool;\n addMouseListener(myCurrentTool);\n addMouseMotionListener(myCurrentTool);\n }",
"public void setListener(LineListener listener) {\n\t\tplayer.setListener(listener);\n\t}",
"public void setOnConfigureClickListener(OnConfigureClickListener listener) {\n this.listener = listener;\n }",
"public void setOnPropertyChangedListener(OnPropertyChangedListener l){\n _onPropertyChange = l;\n }",
"protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }",
"public synchronized void setModelListener(ModelListener ml) \r\n\t{\r\n\t\tmodelListener = ml;\r\n\t}",
"public void setOnItemSelectedListener(OnItemSelectedListener listener) {\n mExternalOnItemSelectedListener = listener;\n }",
"public void setListener(IAlgorithmListener listener);",
"public void setListener(LocationListener listener) {\n this.listener = listener;\n }",
"public void setOnEventListener(OnEventListener onEventListener) {\n synchronized (this) {\n this.mOnEventListener = onEventListener;\n if (onEventListener != null) {\n this.createListeners();\n }\n return;\n }\n }",
"protected void setListener(final AdvancedWebviewListener listener, final int requestCodeFilePicker) {\n mWebListener = listener;\n mRequestCodeFilePicker = requestCodeFilePicker;\n }",
"public void addONDEXListener(ONDEXListener l) {\n listeners.add(l);\n }",
"public void setControlListener(ControlListener c) { cListener = c; }",
"public void setUseTool(ToolCardEvent event)\n {\n useTool = event;\n }",
"public void setChangeListener(ChangeListener listener) {\n this.listener = listener;\n qs.addChangeListener(listener);\n }",
"public void setOnRunnerStatusUpdateListener(OnApplicationStatusUpdateListener listener) {\n if (listener == null) {\n listener = new DummyApplicationStatusUpdateListener();\n }\n this.listener = listener;\n }",
"public void setEventHandler(PInputEventListener listener) {\n if (layerListening != null) {\n layerListening.removeInputEventListener(currentListener);\n layerListening = null;\n } else {\n removeInputEventListener(currentListener);\n }\n currentListener = listener;\n addInputEventListener(currentListener);\n }",
"public void setListener(ButtonListener buttonListener) {\n\t\tthis.buttonListener = buttonListener;\n\t}",
"public void setScreenListener(ScreenListener listener) {\n\t\tthis.listener = listener;\n\t}",
"public void setListener(CompassListener l) {\n listener = l;\n }",
"@SuppressWarnings(\"UnusedDeclaration\") // Used by Bridge by reflection for debug purposes.\r\n public static void setDefaultListener(MethodListener listener) {\r\n sDefaultListener = listener;\r\n }",
"public void setListener(OpenCompositionFragmentCallbackListener listener) {\n this.listener = listener;\n }",
"public void setModuleListener(ModuleListener listener);",
"public void setOnDateSetListener(DatePickerDialog.OnDateSetListener onDateSetListener){\n this.dateSetListener = onDateSetListener;\n }",
"public void attachListener(TaskListener listener) {\n this.mListener = listener;\n }",
"public void setOnTickListener(OnTickListener listener)\r\n\t{\r\n\t\ttickListener = listener;\r\n\t}",
"public void setGameEventListener(GameEventListener eventListener) {\n\t\tthis.eventListener = eventListener;\n\t}",
"public void setOnColorChangedListener(OnColorChangedListener listener) {\n\t\tmListener = listener;\n\t}",
"public void setViewListener( ViewListener vListen ) {\n\t\tthis.vListen = vListen;\n\t}",
"public void setAdornmentTool(Tool tool) {\n\t\tthis.renderingTool = tool;\n\t}",
"public void setOnLocationServiceListener (LocationServiceListener listener)\n {\n this.mListeners.add(listener);\n }",
"public void setOnExceptionListener(OnExceptionListener l) {\n this.exceptionListener = l;\n }",
"@Override\n\tpublic void setPresenter(Presenter listener) {\n\t\tthis.listener = listener;\n\t}",
"public void setToolStatus(ToolStatus toolStatus) {\n this.toolStatus = toolStatus;\n }",
"public int addListener(Value listener) {\n\n IApplication adapter = new IApplication() {\n private boolean execute(Value jsObject, String memberName, Object... args) {\n if (jsObject == null)\n return true;\n Value member = jsObject.getMember(memberName);\n if (member == null) {\n return true;\n }\n Value result = plugin.executeInContext(member, app);\n return result != null && result.isBoolean() ? result.asBoolean() : true;\n }\n\n @Override\n public boolean appStart(IScope app) {\n return execute(listener, \"appStart\", app);\n }\n\n @Override\n public boolean appConnect(IConnection conn, Object[] params) {\n return execute(listener, \"appConnect\", conn, params);\n }\n\n @Override\n public boolean appJoin(IClient client, IScope app) {\n return execute(listener, \"appJoin\", client, app);\n }\n\n @Override\n public void appDisconnect(IConnection conn) {\n execute(listener, \"appDisconnect\", conn);\n }\n\n @Override\n public void appLeave(IClient client, IScope app) {\n execute(listener, \"appLeave\", client, app);\n }\n\n @Override\n public void appStop(IScope app) {\n execute(listener, \"appStop\", app);\n }\n\n @Override\n public boolean roomStart(IScope room) {\n return execute(listener, \"roomStart\", room);\n }\n\n @Override\n public boolean roomConnect(IConnection conn, Object[] params) {\n return execute(listener, \"roomConnect\", conn, params);\n }\n\n @Override\n public boolean roomJoin(IClient client, IScope room) {\n return execute(listener, \"roomJoin\", client, room);\n }\n\n @Override\n public void roomDisconnect(IConnection conn) {\n execute(listener, \"roomDisconnect\", conn);\n }\n\n @Override\n public void roomLeave(IClient client, IScope room) {\n execute(listener, \"roomLeave\", client, room);\n }\n\n @Override\n public void roomStop(IScope room) {\n execute(listener, \"roomStop\", room);\n }\n };\n this.app.addListener(adapter);\n this.listeners.add(adapter);\n return this.listeners.indexOf(adapter);\n }",
"ServiceLocator setListener(Consumer<ServiceInstance> listener) {\n\t\tthis.listener = listener;\n\t\tif (fallback != null) {\n\t\t\tfallback.setListener(listener);\n\t\t}\n\t\treturn this;\n\t}",
"public void setToolparam(String toolparam) {\r\n this.toolparam = toolparam;\r\n }",
"public void setOnAttachStateChangeListener(C0311d listener) {\n this.f1127b = listener;\n }",
"public void addJaakEnvironmentListener(JaakEnvironmentListener listener) {\n\t\tsynchronized (this.listeners) {\n\t\t\tthis.listeners.add(listener);\n\t\t}\n\t}",
"public void setFindTestListener(FindTestListener listener) {\n\tthis.findTestListener = listener;\r\n}",
"public void setListener(EndlessListener listener) {\n this.listener = listener;\n }",
"public void setListener(@Nonnull PreprocessorListener listener) {\r\n this.listener = listener;\r\n Source s = source;\r\n while (s != null) {\r\n // s.setListener(listener);\r\n s.init(this);\r\n s = s.getParent();\r\n }\r\n }",
"public void setAgentEventListener(AgentEventListener ael) {\r\n agentEventListener = ael;\r\n }",
"private void setListener() {\n Log.d(TAG, \"TAG - MainActivity - setListener()\");\n\n if (buttonShow != null) {\n buttonShow.setOnClickListener( view -> showPicture());\n }\n }",
"public void setListener(AdListener listener) {\n synchronized (this) {\n this.listener = listener;\n }\n }",
"@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}",
"@Override\n protected void setListener() {\n findView(R.id.btnClear).setOnClickListener(this);\n findView(R.id.btnSave).setOnClickListener(this);\n\n ivGraffit.setOnTouchListener(new GraffitTouchListener());\n }",
"public void setOnClickListener(View.OnClickListener listener) {\n this.listener = listener;\n }",
"public void setOnClickListener(View.OnClickListener listener) {\n this.listener = listener;\n }",
"public void setConnectionEstablishedListener()\r\n\t{\r\n\t\tchatModel.getConnectionEstablishedProperty().addListener(\r\n\t\t\t\tnew ChangeListener<Object>()\r\n\t\t\t\t{\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\tObservableValue<? extends Object> observable,\r\n\t\t\t\t\t\t\tObject oldValue, Object newValue)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (chatModel.isConnectionEstablished())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tenableChat();\r\n\t\t\t\t\t\t\tdeconnecterButton.setDisable(false);\r\n\t\t\t\t\t\t\tbuttonConnexion.setDisable(true);\r\n\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdisableChat();\r\n\t\t\t\t\t\t\tbuttonConnexion.setDisable(false);\r\n\t\t\t\t\t\t\tdeconnecterButton.setDisable(true);\r\n\t\t\t\t\t\t\tserver.closeServerSockets();\r\n\t\t\t\t\t\t\tserver.startOpenSocketThread();\r\n\t\t\t\t\t\t\tserver.startReceiveMessageThread();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t}",
"private void setupLogging(BuildListener listener) {\n this.listener = listener;\n }",
"@Override\n\tpublic void removeToolListener(ToolListener listener) {\n\t\t//do nothing\n\t}",
"@Override\n public void setCryptoEventsListener(@Nullable CryptoEventListener listener) {\n mMxEventDispatcher.setCryptoEventsListener(listener);\n }",
"public void setEventManager(GameEventManager eventManager) {\n this.eventManager = eventManager;\n }",
"@Input(\"onOn\")\n synchronized public void onOn() {\n try {\n _switchJMXSource.setValue(true);\n } catch (PropertyVetoException e) {}\n }",
"public synchronized void setOutListener(LineListener outListener) {\n if (outListener != null) {\n this.outListener = outListener;\n }\n }",
"public void setLaunchGameButtonListener(LaunchGameListener launchGameButtonListener){\r\n\t\tthis.launchGameListener = launchGameButtonListener;\r\n\t}",
"public void setToolfilename(String toolfilename) {\r\n this.toolfilename = toolfilename;\r\n }",
"public void on() {\n\n\t}",
"@Override\r\n protected void setListener() {\n logout.setOnClickListener(this);\r\n update.setOnClickListener(this);\r\n cleanCache.setOnClickListener(this);\r\n pushSwitch.setOnCheckedChangeListener(this);\r\n feedback.setOnClickListener(this);\r\n }",
"public void addAnalysisServerListener(AnalysisServerListener listener);",
"public void mo25054a(C8109a listener) {\n this.f16619m = listener;\n }",
"public void setProcessingEventListener(ProcessingEventListener listener){\n this.listener = listener;\n }",
"public void setToolnum(String toolnum) {\r\n this.toolnum = toolnum;\r\n }",
"public ConnListener( MasterServerManager serverManager )\n {\n this.serverManager = serverManager;\n }",
"public void setListener(NumberCellGeneratorListener listener) {\n mListener = listener;\n }",
"@Override\n\tpublic void getListener(){\n\t}",
"@Override\n public void setListener() {\n if (generalTitleLabel == null) return;\n generalTitleLabel.setOnClickListener(this);\n }",
"public void registerListener(PreferenceListener listener) {\n this.listener = listener;\n }",
"public void addListener(AwaleListener awaleListener) {\r\n\tthis.listeners.add(awaleListener);\r\n }",
"public void setRequestListener(IRequestListener requestListener) {\n this.requestListener = requestListener;\n }",
"public void setAlarmListener(LightAlarmDeviceListener alarmListener) {\n this.alarmListener = alarmListener;\n }",
"public void setListener(JmsRequestorListener listener) {\n this.listener = listener;\n }",
"public void setChangeListener();"
] | [
"0.69507205",
"0.6872443",
"0.6862696",
"0.6690904",
"0.6633232",
"0.65534407",
"0.65501857",
"0.6450387",
"0.6438711",
"0.6438711",
"0.6363724",
"0.63388705",
"0.63388705",
"0.62685347",
"0.6234418",
"0.6214683",
"0.6214683",
"0.61988443",
"0.6193992",
"0.61259407",
"0.6099421",
"0.6036146",
"0.60360855",
"0.60220355",
"0.6020095",
"0.6016763",
"0.5997994",
"0.5982446",
"0.59712595",
"0.5970104",
"0.58985126",
"0.58983815",
"0.5891155",
"0.58821136",
"0.5866326",
"0.5854327",
"0.5844859",
"0.5818",
"0.5814063",
"0.57919437",
"0.57742465",
"0.57688826",
"0.5767056",
"0.576442",
"0.57459605",
"0.57443",
"0.5736172",
"0.5691576",
"0.5669807",
"0.565601",
"0.56531274",
"0.56520295",
"0.5650221",
"0.56461453",
"0.564546",
"0.5623572",
"0.5611802",
"0.56114066",
"0.5608379",
"0.56063753",
"0.5604128",
"0.5600173",
"0.5595347",
"0.55949616",
"0.558848",
"0.55874515",
"0.5575549",
"0.557199",
"0.5569866",
"0.55668193",
"0.55564606",
"0.55551606",
"0.5546083",
"0.55355734",
"0.55355734",
"0.5522099",
"0.5521291",
"0.5509426",
"0.5495071",
"0.54942745",
"0.54921234",
"0.54815346",
"0.54734606",
"0.54647905",
"0.5464611",
"0.54626065",
"0.5441181",
"0.5428291",
"0.54245496",
"0.5422403",
"0.5421182",
"0.54074323",
"0.54052",
"0.54028964",
"0.53989744",
"0.5387384",
"0.5376869",
"0.53554255",
"0.5353643",
"0.5349689"
] | 0.8552054 | 0 |
Main Activity configuration changed We want to dispatch the configuration event also to the opened panel. | public boolean onConfigurationChanged( Configuration newConfig ) {
boolean result = false;
logger.info( "onConfigurationChanged: " + newConfig.orientation + ", " + mConfiguration.orientation );
if ( mCurrentEffect != null ) {
if ( mCurrentEffect.isCreated() ) {
logger.info( "onConfigurationChanged, sending event to ", mCurrentEffect );
mCurrentEffect.onConfigurationChanged( newConfig, mConfiguration );
result = true;
}
}
mConfiguration = new Configuration( newConfig );
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void handleConfigurationChanged(Configuration config);",
"public abstract void handleActivityConfigurationChanged(IBinder activityToken,\n Configuration overrideConfig, int displayId);",
"@Override\r\n public void onConfigurationChanged(Configuration newConfig){\r\n super.onConfigurationChanged(newConfig);\r\n ExamManager.activateTicket();\r\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n\n // After configuration change has occurred\n mDrawerToggle.onConfigurationChanged(newConfig);\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n this.drawerToggle.onConfigurationChanged(newConfig);\n }",
"@Override\n public void onChangedConfiguration(Configuration newConfig) {\n if (mAlert == null) return;\n\n mAlert.stop();\n mAlert = null;\n }",
"public void notifyConfigChange() {\n }",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t\t// setContentView(R.layout.main);\n\n\t\t// InitializeUI();\n\t}",
"void onConfigChanged(ConfigUpdate update);",
"@Override\r\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\r\n\t\tmDrawerToggle.onConfigurationChanged(newConfig);\r\n\t}",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n \tsuper.onConfigurationChanged(newConfig);\n \t\n \tLog.e(\"LIFECYCLE = \", this.getClass().toString() + \".onConfigurationChanged\");\n \treturn;\n }",
"private void fireConfigChanged()\n {\n ScmEventBus.getInstance().post(\n new RepositoryHandlerConfigChangedEvent<C>(config));\n }",
"public void preOnConfigurationChanged() {\n if (getDockedDividerController() != null) {\n getDockedDividerController().onConfigurationChanged();\n }\n if (getPinnedStackController() != null) {\n getPinnedStackController().onConfigurationChanged();\n }\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n setLayout();\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n mDrawerToggle.onConfigurationChanged(newConfig);\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n Log.d(\"TheKing-->\", \"configuration changed super called\");\n }",
"void configurationUpdated();",
"public void changed() {\n // from ChangeHandler\n configSave.enable();\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n Log.d(TAG, TAG + \" onConfigurationChanged\");\n }",
"public void onConfigurationChanged(Configuration newConfig) {\n\t\t super.onConfigurationChanged(newConfig);\n\t}",
"protected void fireConfigUpdated()\r\n {\r\n List executeListeners = new ArrayList(listeners);\r\n \r\n for (int i=0; i < executeListeners.size(); i++)\r\n {\r\n IConfigurationListener listener = (IConfigurationListener) executeListeners.get(i);\r\n listener.configUpdated();\r\n }\r\n }",
"void configurationChanged(WMSLayerConfigChangeEvent event);",
"@Override\r\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\r\n\t\tthis.setContentView(root);\r\n\t}",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n\n // Pass any configuration change to the drawer toggle\n mDrawerToggle.onConfigurationChanged(newConfig);\n\n //If there's a custom view, then set the customViewContainer as the content view.\n if (mCustomView != null) {\n setContentView(mCustomViewContainer);\n\n //TODO: Better handling of rotation including maintenance of play/pause state. \n }\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n }",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t super.onConfigurationChanged(newConfig);\n\t}",
"@Override\r\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\r\n\t}",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t super.onConfigurationChanged(newConfig);\n\t //setContentView(R.layout.main);\n\t}",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t}",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t}",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t}",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t}",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t}",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n }",
"@Override\r\n public void onConfigurationChanged(Configuration config) {\r\n Log.d(LOGTAG, \"onConfigurationChanged\");\r\n super.onConfigurationChanged(config);\r\n\r\n vuforiaAppSession.onConfigurationChanged();\r\n }",
"@SubscribeEvent(priority=EventPriority.NORMAL, receiveCanceled=true)\n\tpublic void onConfigChange(OnConfigChangedEvent event)\n\t{\n\t\tif(event.getModID().equals(Reference.MOD_ID))\n\t\t{\n\t\t\tConfig.config.save();\n\t\t\tConfig.configSync();\n\t\t\t\n\t\t\t//Only run the following code if a world is running and if running on a client; this should make it so the sync only runs when accessing the \"mod options...\" button from the pause menu\n\t\t\tif(event.isWorldRunning() && LizzyAnvil.proxy.isClient())\n\t\t\t{\n\t\t\t\tConfig.sendConfigSyncRequest(); //send an empty packet to the server that initiates the config sync (only initiates if it is a dedicated server)\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void config() {\n\t\tinter.setState(inter.getConfig());\r\n\t}",
"public void navToConfigurator(ActionEvent actionEvent) {\n ADFUtils.setSessionScopeValue(\"currView\", \"config\");\n\n }",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\n\t\tIntent it = new Intent(this, MeasureAppWindowSize.class);\n\t\tstartActivity(it);\n\t\tfinish();\n\t}",
"@Override\n public void configurationChanged(Map<String, ConfiguredVariableItem> changed) {\n LOG.debug(\"External configuration changes are received '{}'\", changed);\n // updating heart-beat-delay parameter\n updateParameter(changed, HB_DELAY_FULL_NAME, i -> setHeartbeatDelay(i.get(Integer.class)));\n config.putAll(changed);\n }",
"@Override\n\tpublic void onConfigurationUpdate() {\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (updateConfigurationFromGUI(config)) {\n // switch to log tab\n tabbedPane.setSelectedComponent(logPanel);\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n // do work\n executeConversion(config);\n }\n });\n }\n }",
"public void onConfigurationChanged(Configuration configuration) {\n this.mAdViewApi.onConfigurationChanged(configuration);\n }",
"@Override\n public void widgetSelected(SelectionEvent e) {\n updateLaunchConfigurationDialog();\n }",
"@Override\n public void widgetSelected(SelectionEvent e) {\n updateLaunchConfigurationDialog();\n }",
"@SubscribeEvent\r\n\t\tpublic static void onConfigChanged(final ConfigChangedEvent.OnConfigChangedEvent event) {\r\n\t\t\tif (event.getModID().equals(Reference.MOD_ID)) {\r\n\t\t\t\tConfigManager.sync(Reference.MOD_ID, Config.Type.INSTANCE);\r\n\t\t\t}\r\n\t\t}",
"public void displayConfigurationPanel(){\n\t\tthis.panelConfiguration = new PanelConfiguration(this.mainFrame);\n\t\tthis.add(this.panelConfiguration,BorderLayout.CENTER);\n\t}",
"@Override\n\tpublic void setConfigChanged(boolean changed) {\n\t\t//do nothing\n\t}",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t\t//Checks the orientation of the screen\n\t\tif(newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE){\n\t\t\t\n\t\t\tToast.makeText(this, \"landscapte\",Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}else if(newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){\n\t\t\t\n\t\t\tToast.makeText(this,\"portrait\",Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}\n\t\t//Checks whether a hardware keyboard is available\n\t\tif(newConfig.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_NO){\n\t\t\t\n\t\t\tToast.makeText(this, \"keyboard visible\",Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}else if(newConfig.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_YES){\n\t\t\t\n\t\t\tToast.makeText(this,\"keyboard hidden\",Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public interface ConfigurationListener {\n void onConfigurationChanged(WeatherSetting pref, Object newValue);\n}",
"@Override\n\tpublic boolean hasConfigChanged() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t\t\n\t\tsetVolumeControlStream(AudioManager.STREAM_ALARM);\n setContentView(R.layout.alarm_system_ringtone);\n\n getRingtoneInfo(this);\n initData();\n initView();\n\t}",
"protected void onUserSettingsChanged(@Observes UserSettingsChangedEvent usc)\n {\n loadMenu();\n }",
"public void setPanelConfiguration(){\n\t\tthis.panelConfiguration.setStructurePanel();\n\t\tthis.panelConfiguration.setPanelConfiguration();\n\t}",
"@Override\n\tpublic void onApplicationEvent(ApplicationReadyEvent event) \n\t{\n\n\t\tHystrixCommandProperties.Setter().withExecutionTimeoutInMilliseconds(20000);\n\t\tConfigurationManager.getConfigInstance().setProperty(\"execution.isolation.thread.timeoutInMilliseconds\", \"20000\");\n\n\t\tSystem.out.println(\"1 value>>>>>>>>>>>>>>>>>>>>>>>>>>>> \");\n\t\t/*\t\tAbstractConfiguration manager = ConfigurationManager.getConfigInstance();\n\t\tfor (String key : event.getKeys())\n\t\t{\n\t\t\tfor (ConfigurationListener listener : manager.getConfigurationListeners()) \n\t\t\t{\n\t\t\t\tObject source = event.getSource();\n\t\t\t\t// TODO: Handle add vs set vs delete?\n\t\t\t\tint type = AbstractConfiguration.EVENT_SET_PROPERTY;\n\t\t\t\tString value = env.getProperty(key);\n\n\t\t\t\tSystem.out.println(\"value>>>>>>>>>>>>>>>>>>>>>>>>>>>> \"+value);\n\n\t\t\t\tboolean beforeUpdate = false;\n\t\t\t\tlistener.configurationChanged(new ConfigurationEvent(source, type, key, value, beforeUpdate));\n\t\t\t}\n\t\t}*/\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent event) {\n\t\ttry {\n\t\t\t// System.out.println(\"Let's check the configuration\");\n\t\t\tMap<String, String> remarks = getDiscussionDAO()\n\t\t\t\t\t.checkConfiguration();\n\t\t\t// System.out.println(\"We have \" + remarks.size() +\n\t\t\t// \" configuration errors\");\n\t\t\t// for (String key : remarks.keySet())\n\t\t\t// System.out.println(\" - \" + key + \": \" + remarks.get(key));\n\n\t\t\tif (remarks.size() > 0) {\n\t\t\t\tEditPropertiesFrame epf = new EditPropertiesFrame();\n\t\t\t\tepf.setProperties(getDiscussionDAO().getConfiguration());\n\t\t\t\tepf.setRemarks(remarks);\n\t\t\t\tepf.pack();\n\t\t\t\tepf.setVisible(true);\n\t\t\t} else {\n\t\t\t\ttask = new BackGroundDAOTask(new Subtask(\n\t\t\t\t\t\tgetDiscussionTableModel(), getDiscussionDAO()) {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void perform(IDAOProgressMonitor progressMonitor)\n\t\t\t\t\t\t\tthrows DAOException {\n\t\t\t\t\t\tgetDiscussionTableModel().addDiscussions(\n\t\t\t\t\t\t\t\tgetDiscussionDAO().getMoreDiscussions(\n\t\t\t\t\t\t\t\t\t\tprogressMonitor));\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String getName() {\n\t\t\t\t\t\treturn NAME;\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t\t// task.addPropertyChangeListener(this);\n\t\t\t\ttask.execute();\n\t\t\t}\n\t\t} catch (DAOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"void onSettings(ProcessingConfiguration configuration);",
"public abstract void updatePendingConfiguration(Configuration config);",
"public void configChanged ()\n {\n// log.info(\"Config changed \" + _tree.getSelectedNode().getConfig(),\n// \"lastValue\", _lastValue);\n ManagedConfig oldLastValue = _lastValue;\n _lastValue = (ManagedConfig)\n ((ManagedConfig)_tree.getSelectedNode().getConfig()).clone();\n maybePostUndo(\n new ConfigEdit(ConfigEdit.Type.CHANGE, group, _lastValue, oldLastValue));\n\n DirtyGroupManager.setDirty(group, true);\n _tree.selectedConfigChanged();\n }",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n\n helpPopulate(defaultIndex);\n }",
"private void testChangeConfig()\n {\n didChange = false;\n VideoOutputPort vop = hostRef.getMainVideoOutputPort(hscreenDef);\n if (vop != null && vop instanceof VideoOutputSettings)\n {\n VideoOutputSettings vops = (VideoOutputSettings) vop;\n VideoOutputConfiguration current = vops.getOutputConfiguration();\n VideoOutputPortListener listener;\n vops.addListener(listener = new VideoOutputPortListener()\n {\n public void configurationChanged(VideoOutputPort source, VideoOutputConfiguration oldConfig,\n VideoOutputConfiguration newConfig)\n {\n didChange = true; // change exception occurred\n print(\"Video Output Port Listener called for Configuration Changed\");\n }\n\n public void connectionStatusChanged(VideoOutputPort source, boolean status)\n {\n print(\"Video Output Port Listener called for Connection Status Changed\");\n }\n\n public void enabledStatusChanged(VideoOutputPort source, boolean status)\n {\n print(\"Video Output Port Listener called for Enabled Status Changed\");\n }\n });\n\n // try to change configuration\n try\n {\n vops.setOutputConfiguration(current); // set video to current\n\n try\n {\n Thread.sleep(300);\n }\n catch (InterruptedException ie)\n {\n }\n }\n catch (java.lang.SecurityException se)\n {\n print(\"Security Exception caught \" + se); // need\n // MonitorAppPermission(\"deviceController\")\n }\n catch (org.ocap.hardware.device.FeatureNotSupportedException fnse)\n {\n print(\"Feature Not Supported Exception caught \" + fnse);\n }\n catch (java.lang.IllegalArgumentException iae)\n {\n print(\"Illegal Argument Exception caught \" + iae);\n }\n // remove listener\n vops.removeListener(listener);\n\n notifyTestComplete(didChange ? 0 : 1, \"Did not receive configurationChanged exception\");\n }\n }",
"@Override\r\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\r\n\t\tandroid.view.ViewGroup.LayoutParams layoutParams = mContentLayout.getLayoutParams();\r\n\t\tlayoutParams.height = (int) getResources().getDimension(R.dimen.folder_edit_view_height);\r\n\t\tlayoutParams.width = (int) getResources().getDimension(R.dimen.folder_edit_view_width);\r\n\t\tmContentLayout.setLayoutParams(layoutParams);\r\n\t\tif (mGridView != null) {\r\n\t\t\tmGridView.changeOrientation();\r\n\t\t\tmGridView.removeAllViews();\r\n\t\t\tif (mList == null) {\r\n\t\t\t\tinitList();\r\n\t\t\t} else {\r\n\t\t\t\tmGridView.initLayoutData(mList.size());\r\n\t\t\t\tsetAdapter();\r\n\t\t\t\tmIndicator.setTotal(mGridView.getScreenCount());\r\n\t\t\t\tmIndicator.setCurrent(0);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" update in progress ...\", parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" update requested.\" );\n // start the update thread\n final UpdateConfigurationFileThread updateThread = new UpdateConfigurationFileThread();\n updateThread.configurationFileName = configurationFileName;\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" updated.\", parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }",
"protected void init(){\n\t\n\t\tsetBounds(getControllerScreenPosition());\n\t\taddComponentListener(new ComponentListener(){\n\n\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint w = arg0.getComponent().getWidth();\n\t\t\t\tint h = arg0.getComponent().getHeight();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_W, String.valueOf(w));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_H, String.valueOf(h));\t \t\t\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint x = arg0.getComponent().getX();\n\t\t\t\tint y = arg0.getComponent().getY();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\t\t\t \t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_X, String.valueOf(x));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_Y, String.valueOf(y));\t \t\t\n\t\t\t}\n\n\t\t\tpublic void componentShown(ComponentEvent arg0) {}\n\t\t\tpublic void componentHidden(ComponentEvent arg0) {}\n\t\t\t\n\t\t});\n\t\t\n\t\tthis.addWindowListener(new WindowAdapter(){\n\t\t\n\t\t\tpublic void windowClosing(WindowEvent evt){\n\t\t\t\tstoreAppSettings();\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tchangeSettings();\n\t\t\t\t}",
"public abstract void changeConfiguration(Configuration configuration);",
"@Override\n\tpublic void settingsChanged(AbstractSettings settings) {\n\t}",
"public void fireUISettingsChanged() {\n UISettingsListener[] listeners= myListenerList.getListeners(UISettingsListener.class);\n for (UISettingsListener listener : listeners) {\n listener.uiSettingsChanged(this);\n }\n }",
"@Override\n\tprotected void updateLaunchConfigurationDialog() {\n\t\tsuper.updateLaunchConfigurationDialog();\n\t}",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n\n // Checks the orientation of the screen\n if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n // Set Layout both the Fragments in one screen in 1/3 and 2/3\n setLayout();\n } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){\n //Set Layout only Fragment First Fragment if click show only second fragment\n setLayout();\n }\n }",
"@Test\n\tpublic void testDiagramConfigurationEvent() {\n\t\tassertThat(ml.wasDiagramConfigurationChanged(), is(equalTo(false)));\n\n\t\t// Test an add event\n\t\tdiagram.modify(\"Set Diagram Configuration\",\n\t\t\t\tm -> m.setDiagramConfiguration(\n\t\t\t\t\t\tnew DiagramConfigurationBuilder(new CustomDiagramType(), false).addAadlProperty(\"test::test2\")\n\t\t\t\t\t\t\t\t.build()));\n\n\t\tassertThat(ml.wasDiagramConfigurationChanged(), is(equalTo(true)));\n\t}",
"@Override\n public void changed(ChangeEvent event, Actor actor) {\n // If player press setting's button, it change to settings screen\n game.goSettingsScreen();\n }",
"private void configActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_configActionPerformed\n java.awt.EventQueue.invokeLater(() -> {\n if (dialog == null) {\n dialog = new ConfigurationDlg(this, true);\n }\n dialog.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent e) {\n dialog.dispose();\n }\n });\n dialog.setVisible(true);\n });\n }",
"@Override\r\n\tpublic void onPanelOpened(Panel panel) {\n\r\n\t}",
"public interface ConfigurationView {\n\n void onUpdateConfiguration(Configuration configuration);\n}",
"public void simulatorStateChangeHook()\r\n {\n if (view.isCASelected())\r\n {\r\n view.synchronizeCAView();\r\n }\r\n view.synchronizeView();\r\n }",
"@Override\n public void onConfigurationChange(MVP.RequiredViewOps view) {\n // Reset the mView WeakReference.\n mView = new WeakReference<>(view);\n }",
"private void goalsConfigButton(){\n if(!goalsOpened){\n goalsUI = new GoalsUI(this, false);\n goalsOpened = true;\n }\n }",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareChangePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // looking for the configuration file object\n ConfigurationFile configurationFile = software.getConfigurationFile( event.getActionCommand() );\n if ( configurationFile == null )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"configurationfile.notfound\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n if ( configurationFile.isBlocker() )\n {\n configurationFile.setBlocker( false );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Set not blocker for software \" + name + \" configuration file \" + configurationFile.getName() );\n }\n else\n {\n configurationFile.setBlocker( true );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Set blocker for software \" + name + \" configuration file \" + configurationFile.getName() );\n }\n // change the update flag\n parent.getEnvironmentWindow().setUpdated( true );\n // update the journal pane\n parent.getEnvironmentWindow().updateJournalPane();\n // update the pane\n update();\n }",
"public abstract void updatePendingActivityConfiguration(IBinder activityToken,\n Configuration overrideConfig);",
"@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tnotOrientationChange=false;\n\t super.onConfigurationChanged(newConfig);\n\t}",
"protected void tryConfigChange(final boolean goOffline) {\n\r\n if (ApplicationManager.getApplication().isDispatchThread()) {\r\n UICompat.getInstance().editVcsConfiguration(getProject(), getVcs().getConfigurable());\r\n } else {\r\n ApplicationManager.getApplication().invokeAndWait(new Runnable() {\r\n @Override\r\n public void run() {\r\n UICompat.getInstance().editVcsConfiguration(getProject(), getVcs().getConfigurable());\r\n }\r\n }, ModalityState.NON_MODAL);\r\n }\r\n }",
"static void updateConfig(FileConfiguration config)\n\t{\n\t\tProfessionListener.config = config;\n\t}",
"public void prepareFrame() {\n config = new Configuration();\n\n // create the frame\n frame = new JFrame(\"Sensor Network Visualization and Diagnostic Tool\");\n frame.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }\n });\n\n // create the menu bar\n JMenuBar menubar = new JMenuBar();\n frame.setJMenuBar(menubar);\n \n configuration = new JMenu(\"Configuration\");\n menubar.add(configuration);\n configuration.setMnemonic(KeyEvent.VK_C);\n\n configNew = new JMenuItem(\"New\", KeyEvent.VK_N);\n configNew.setActionCommand(\"New Configuration\");\n configNew.setToolTipText(\"New Configuration\");\n configNew.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n newConfiguration();\n }\n });\n configuration.add(configNew);\n\n configEdit = new JMenuItem(\"Edit\", KeyEvent.VK_E);\n configEdit.setActionCommand(\"Edit Configuration\");\n configEdit.setToolTipText(\"Edit Configuration\");\n configEdit.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n editConfiguration(DEFAULT_DB_CONFIG_TABLE);\n }\n });\n configuration.add(configEdit);\n\n configLoad = new JMenuItem(\"Load\", KeyEvent.VK_L);\n configLoad.setActionCommand(\"Load Configuration\");\n configLoad.setToolTipText(\"Load Configuration\");\n configLoad.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n loadConfiguration(DEFAULT_DB_CONFIG_TABLE);\n }\n });\n configuration.add(configLoad);\n\n configSave = new JMenuItem(\"Save\", KeyEvent.VK_S);\n configSave.setActionCommand(\"Save Configuration\");\n configSave.setToolTipText(\"Save Configuration\");\n configSave.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n saveConfiguration(DEFAULT_DB_CONFIG_TABLE);\n }\n });\n configuration.add(configSave);\n configSave.setEnabled(false);\n\n configuration.addSeparator();\n\n configClose = new JMenuItem(\"Close\", KeyEvent.VK_C);\n configClose.setActionCommand(\"Close Configuration\");\n configClose.setToolTipText(\"Close Configuration\");\n configClose.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n closeConfiguration();\n }\n });\n configuration.add(configClose);\n configClose.setEnabled(false);\n\n configuration.addSeparator();\n\n configExit = new JMenuItem(\"Exit\", KeyEvent.VK_X);\n configExit.setActionCommand(\"Exit\");\n configExit.setToolTipText(\"Exit Application\");\n configExit.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n exitConfiguration();\n }\n });\n configuration.add(configExit);\n\n Vector configNames = getConfigurations(DEFAULT_DB_CONFIG_TABLE);\n if (configNames.size() == 0) {\n configEdit.setEnabled(false);\n configLoad.setEnabled(false);\n }\n\n frame.getContentPane().add(createToolBar(), BorderLayout.NORTH);\n\n frame.setSize(400,200);\n frame.setVisible(true);\n }",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareChangePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // get the configuration file object\n ConfigurationFile configurationFile = software.getConfigurationFile( event.getActionCommand() );\n if ( configurationFile == null )\n {\n return;\n }\n // get the configuration file index\n int index = software.getUpdatePlan().indexOf( configurationFile );\n if ( index == 0 || index == -1 || software.getUpdatePlan().size() < 2 )\n {\n return;\n }\n // get the previous update unit\n Object previous = software.getUpdatePlan().get( index - 1 );\n // switch update unit\n software.getUpdatePlan().set( index, previous );\n software.getUpdatePlan().set( index - 1, configurationFile );\n // update the pane\n update();\n }",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareUpdatePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if some change has not yet been saved\n if ( parent.getEnvironmentWindow().isUpdated() )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.notsaved\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n final String configurationFileName = event.getActionCommand();\n // display confirm window\n KalumetConsoleApplication.getApplication().getDefaultWindow().getContent().add(\n new ConfirmWindow( new ActionListener()\n {\n public void actionPerformed( ActionEvent event )\n {\n // add a message into the log pane and the journal\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" update in progress ...\", parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" update requested.\" );\n // start the update thread\n final UpdateConfigurationFileThread updateThread = new UpdateConfigurationFileThread();\n updateThread.configurationFileName = configurationFileName;\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" updated.\", parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }\n } ) );\n }",
"void onConfigureClick(long id);",
"protected void configEvent(String[] aKey) {}",
"@Override // com.android.server.wm.WindowContainer, com.android.server.wm.ConfigurationContainer\n public void onParentChanged() {\n }",
"public void doConfigure_update(RunData data, Context context)\n\t{\n\t\t// access the portlet element id to find our state\n\t\tString peid = ((JetspeedRunData)data).getJs_peid();\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState(peid);\n\n\t\t// we are done with customization... back to the main (browse) mode\n\t\tstate.setAttribute(STATE_MODE, MODE_LIST);\n\n\t\t// commit the change\n\t\t// saveOptions();\n\t\tcancelOptions();\n\n\t}",
"private void config() {\n\t}",
"public void Admin_Configuration()\n\t{\n\t\tAdmin_Configuration.click();\n\t}",
"public void postInit(FMLPostInitializationEvent event)\n\t{\n\t\tif (config.hasChanged())\n\t\t{\n\t\t\tconfig.save();\n\t\t}\n\t}",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareChangePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // looking for the configuration file object\n ConfigurationFile configurationFile = software.getConfigurationFile( event.getActionCommand() );\n if ( configurationFile == null )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"configurationfile.notfound\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n if ( configurationFile.isActive() )\n {\n configurationFile.setActive( false );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Disable software \" + name + \" command \" + configurationFile.getName() );\n }\n else\n {\n configurationFile.setActive( true );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Enable software \" + name + \" command \" + configurationFile.getName() );\n }\n // change the update flag\n parent.getEnvironmentWindow().setUpdated( true );\n // update the journal pane\n parent.getEnvironmentWindow().updateJournalPane();\n // update the pane\n update();\n }",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareChangePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // get the configuration file object\n ConfigurationFile configurationFile = software.getConfigurationFile( event.getActionCommand() );\n if ( configurationFile == null )\n {\n return;\n }\n // get the configuration file index\n int index = software.getUpdatePlan().indexOf( configurationFile );\n if ( index == -1 || index == ( software.getUpdatePlan().size() - 1 )\n || software.getUpdatePlan().size() < 2 )\n {\n return;\n }\n // get the next update unit\n Object next = software.getUpdatePlan().get( index + 1 );\n // switch update unit\n software.getUpdatePlan().set( index, next );\n software.getUpdatePlan().set( index + 1, configurationFile );\n // update the pane\n update();\n }"
] | [
"0.7186122",
"0.6980927",
"0.68799734",
"0.68083555",
"0.67295444",
"0.6708087",
"0.6702271",
"0.6680678",
"0.6659032",
"0.66474617",
"0.66274965",
"0.6601278",
"0.65999246",
"0.6575717",
"0.65660316",
"0.65575075",
"0.65135247",
"0.6374937",
"0.63747567",
"0.63641375",
"0.6363279",
"0.63595086",
"0.6331403",
"0.6326433",
"0.6309898",
"0.63081795",
"0.62936217",
"0.62391746",
"0.6209681",
"0.6209681",
"0.6209681",
"0.6209681",
"0.6209681",
"0.620447",
"0.620447",
"0.620447",
"0.620447",
"0.620447",
"0.620447",
"0.61596286",
"0.6135602",
"0.61098725",
"0.61090904",
"0.60954064",
"0.6092256",
"0.60859823",
"0.6063417",
"0.60543096",
"0.60099655",
"0.60099655",
"0.5942326",
"0.59070057",
"0.586265",
"0.585537",
"0.585212",
"0.5746765",
"0.5737153",
"0.5706861",
"0.57055396",
"0.5697719",
"0.56883264",
"0.5668091",
"0.56481206",
"0.5626774",
"0.5625536",
"0.561585",
"0.55931437",
"0.5592166",
"0.5589449",
"0.55835664",
"0.5555258",
"0.55533284",
"0.5537136",
"0.5536258",
"0.55336034",
"0.54937434",
"0.5478387",
"0.5467803",
"0.54582804",
"0.5453123",
"0.5441725",
"0.5431192",
"0.54234016",
"0.5422971",
"0.54214114",
"0.5409958",
"0.5401213",
"0.5399639",
"0.5388211",
"0.5377129",
"0.5377057",
"0.53755707",
"0.5362425",
"0.5362124",
"0.5343219",
"0.53425264",
"0.5334403",
"0.53236264",
"0.53224695",
"0.5318638"
] | 0.5789596 | 55 |
A plugin or theme has been installed/removed or replaced Notify the internal pluginservice about the new plugin. All the classes which have a listener attached to the PluginService will be notified too. | public void onPluginChanged( Intent intent ) {
logger.info( "onReceive", intent );
logger.info( "data", intent.getData() );
updateInstalledPlugins( intent.getExtras() );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void firePluginAdded()\n\t{\n\t\tfor (PluginListener pl : this.pluginListeners)\n\t\t{\n\t\t\tpl.pluginAdded(pluginEvent);\n\t\t}\n\t}",
"protected abstract void onPluginEnable();",
"void firePluginsMonitored()\n {\n // Set that at least one iteration was done. That means that \"all available\" plugins\n // have been loaded by now.\n if ( !XMPPServer.getInstance().isSetupMode() )\n {\n executed = true;\n }\n\n for ( final PluginManagerListener listener : pluginManagerListeners )\n {\n firePluginsMonitored(listener);\n }\n }",
"public void onInstalled() {\n }",
"public void firePluginRemoved()\n\t{\n\t\tfor (PluginListener pl : this.pluginListeners)\n\t\t{\n\t\t\tpl.pluginRemoved(pluginEvent);\n\t\t}\t\n\t}",
"public void notifyServiceChanged() {\r\n\t\t\tgetLoaderManager().restartLoader(0, null, this);\t\r\n\t\t}",
"public void startPlugin() {\n\t\t// add a new ResourceChangeListener\n\t\tCheops.getInstance().addResourceChangeListener();\n\t}",
"void firePluginCreatedEvent( String name, Plugin plugin )\n {\n for ( final PluginListener listener : pluginListeners )\n {\n try\n {\n listener.pluginCreated( name, plugin );\n }\n catch ( Exception ex )\n {\n Log.warn( \"An exception was thrown when one of the pluginManagerListeners was notified of a 'created' event for plugin '{}'!\", name, ex );\n }\n }\n }",
"private void notifyChange() {\n\t\tif (OllieProvider.isImplemented()) {\n\t\t\tOllie.getContext().getContentResolver().notifyChange(OllieProvider.createUri(getClass(), id), null);\n\t\t}\n\t}",
"void onHisNotify();",
"protected void onOSGiConnected() {\n osgiNotified = true;\n }",
"private void process() {\n final PluginsDialog dialog = new PluginsDialog();\n dialog.show();\n }",
"public void startPlugin() {\n classesDisponibles = new HashMap[types.length];\n try { // enregistrer le service d'acces aux depot de jars\n ServicesRegisterManager.registerService(Parameters.JAR_REPOSITORY_MANAGER, this);\n rescanRepository(); // creer les listes de classes disponibles a partir du depot\n }\n catch (ServiceInUseException mbiue) {\n System.err.println(\"Jar Repository Manager service created twice\");\n }\n }",
"@Override\n public void onServiceConnected() {\n forceUpdate();\n }",
"public void serviceChanged(ServiceEvent event)\n {\n ServiceReference serviceRef = event.getServiceReference();\n\n // if the event is caused by a bundle being stopped, we don't want to\n // know\n if (serviceRef.getBundle().getState() == Bundle.STOPPING)\n {\n return;\n }\n\n Object service = GuiActivator.bundleContext.getService(serviceRef);\n\n // we don't care if the source service is not a protocol provider\n if (!(service instanceof ProtocolProviderService))\n {\n return;\n }\n\n switch (event.getType())\n {\n case ServiceEvent.REGISTERED:\n addAccount((ProtocolProviderService) service, parentMenu);\n break;\n case ServiceEvent.UNREGISTERING:\n removeAccount((ProtocolProviderService) service, parentMenu);\n break;\n }\n }",
"public void registerEvents(Citizens plugin);",
"@Override\n\t\t\t\t\tpublic void onUpdateFound(boolean newVersion, String whatsNew) {\n\t\t\t\t\t}",
"public interface Plugin {\n\n /**************************************************************************\n * Method: starting\n * <p>\n * Starting a plugin requires this method.\n **************************************************************************/\n public void starting();\n\n /**************************************************************************\n * Method: stopping\n * <p>\n * Stopping a plugin will happen with this method. Be it an 'emergency-stopping'\n * or you just want to turn it off.\n **************************************************************************/\n public void stopping();\n\n /**************************************************************************\n * Method: setPluginManager\n * <p>\n * To let the Plugin interact with the program we need to give something\n * with what it can work. The PluginManager is the best 'something' because\n * it knows what kind of information the Plugins are allowed to get. And\n * with the plugin manager We have specified what information the plugins\n * are allowed to use.\n **************************************************************************/\n public void setPluginManager(PluginManager pluginManager);\n}",
"public interface Plugin {\n /**\n * What is the name of this plugin?\n *\n * The framework will use this name when storing the versions\n * (code version and schema version) in the database, and, if\n * this is the Application Plugin, in the help menu, main frame\n * title bar, and other displays wherever the application name\n * is shown.\n *\n * The column used to store this in the database is 40\n * characters wide.\n *\n * @return the name of this plugin\n */\n String getName();\n\n /**\n * What is the version number of this plugin's code?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the code version of this plugin\n */\n String getVersion();\n\n /**\n * Allow a plugin to provide any plugin-specific application\n * context files.\n *\n * Can return null or an empty list if there are none.\n * The elements of the list are paths to resources inside the\n * plugin's jar, e.g. org/devzendo/myapp/app.xml\n *\n * @return a list of any application contexts that the plugin\n * needs to add to the SpringLoader, or null, or empty list.\n */\n List<String> getApplicationContextResourcePaths();\n\n /**\n * Give the SpringLoader to the plugin, after the\n * application contexts for all plugins have been loaded\n * @param springLoader the SpringLoader\n */\n void setSpringLoader(final SpringLoader springLoader);\n\n /**\n * Obtain the SpringLoader for plugin use\n * @return the SpringLoader\n */\n SpringLoader getSpringLoader();\n\n /**\n * What is the database schema version of this plugin?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the database schema version of this plugin\n */\n String getSchemaVersion();\n\n /**\n * Shut down the plugin, freeing any resources. Called by the\n * framework upon system shutdown.\n */\n void shutdown();\n}",
"@Override\n\tpublic void addPlugin(ComponentPlugin plugin) throws Exception {\n\n\t}",
"public void onServiceRegistered() {\r\n \t// Nothing to do here\r\n }",
"@Override\r\n public void onEnable() {\n getLogger().info((TextFormat.GREEN + \"Custom Messages plugin has been enabled.\"));\r\n getServer().getPluginManager().registerEvents(this, this); // Registering the plugin's events\r\n\r\n // Config\r\n saveDefaultConfig();\r\n config = getConfig();\r\n\r\n // Checking config's version - Hard coded\r\n if (config.getInt(\"Version\") != currentConfig){\r\n getLogger().warn(TextFormat.RED + \"Outdated config, please consider updating the plugin.\");\r\n getServer().getPluginManager().disablePlugin(this);\r\n }\r\n }",
"public static void registerEvents(JavaPlugin instance) {\n PluginManager pm = instance.getServer().getPluginManager();\n }",
"private void checkForUpdates() {\n UpdateManager.register(this);\n }",
"private void checkForUpdates() {\n UpdateManager.register(this);\n }",
"@Override\n public void onPluginEnable(PluginEnableEvent event) {\n if (!this.Methods.hasMethod()) {\n if(this.Methods.setMethod(event.getPlugin())) {\n // You might want to make this a public variable inside your MAIN class public Method Method = null;\n // then reference it through this.plugin.Method so that way you can use it in the rest of your plugin ;)\n ConnectFour.Method = this.Methods.getMethod();\n Log.info(\"Using: \" + ConnectFour.Method.getName() + \" - \" + ConnectFour.Method.getVersion());\n }\n }\n }",
"public void onServiceConnected();",
"@Override\n\tpublic void addListenerPlugin(ForumEventListener listener) throws Exception {\n\n\t}",
"public void notifyKi(){\n this.kiPlugin.gamerFoundASet();\n }",
"private void onOK() {\n if (TextUtil.isEmpty(nick.getText())) {\n showMessage(\"插件名称\");\n return;\n }\n if (TextUtil.isEmpty(name.getText())) {\n showMessage(\"插件代号\");\n return;\n }\n if (TextUtil.isEmpty(version.getText())) {\n showMessage(\"插件版本\");\n return;\n }\n if (TextUtil.isEmpty(path.getText())) {\n showMessage(\"插件路径\");\n return;\n }\n String nickV = nick.getText();\n String nameV = name.getText();\n String versionV = version.getText();\n UploadPluginDto dto = RequestManagement.uploadPlugin(selectFile, nameV, versionV, nickV);\n if (dto != null && dto.getResult() != null) {\n if (pluginPanel != null) {\n pluginPanel.addItem(dto.getResult());\n }\n }\n dispose();\n }",
"@FxThread\n private void onFinishLoading() {\n pluginSystem.getPlugins().stream()\n .filter(EditorPlugin.class::isInstance)\n .map(EditorPlugin.class::cast)\n .forEach(editorPlugin -> editorPlugin.onFinishLoading(pluginSystem));\n }",
"public void onUninstalled() {\n }",
"@Override\r\n public boolean isPluginEnabled()\r\n {\n return true;\r\n }",
"public void onServiceConnected(ComponentName className, IBinder service) {\n mService = new Messenger(service);\n mBound = true;\n }",
"public void onServiceConnected(ComponentName className, IBinder service) {\n mService = new Messenger(service);\n mBound = true;\n }",
"public void onServiceConnected(ComponentName className, IBinder service) {\n\t mBoundAutopilotService = new Messenger(service);\n\t //mCallbackText.setText(\"Attached.\");\n\n\t // We want to monitor the service for as long as we are\n\t // connected to it.\n\t try {\n\t Message msg = Message.obtain(null, autopilotService.MSG_REGISTER_CLIENT);\n\t msg.replyTo = mMessenger;\n\t mBoundAutopilotService.send(msg);\n\n\t // Give it some value as an example.\n\t //msg = Message.obtain(null, autopilotService.MSG_ECHO, this.hashCode(), 0);\n\t //mBoundAutopilotService.send(msg);\n\t msg = Message.obtain(null, autopilotService.MSG_IS_SERVICE_RUNNING, 0, 0);\n\t mBoundAutopilotService.send(msg);\n\t Log.i(\"anemoi\", \"Here 0\");\n\t } catch (RemoteException e) {\n\t // In this case the service has crashed before we could even\n\t // do anything with it; we can count on soon being\n\t // disconnected (and then reconnected if it can be restarted)\n\t // so there is no need to do anything here.\n\t }\n\t Log.i(\"anemoi\", \"Buuu\");\n\t }",
"@Override\n \tpublic void OnPluginEnabled()\n \t{\n \t\tfor (CustomJukebox jukebox : this.repository.getJukeboxes())\n \t\t\tthis.jukeboxes.add(jukebox);\n \t}",
"public void onThemeChanged()\n\t{\n\t\tthemeChanged = true;\n\t}",
"public void postInstallHook() {\n }",
"@Override\r\n\tpublic void configPlugin(Plugins me) {\n\r\n\t}",
"public void notifyAdapters();",
"@Override\n public void notifyServiceCreated(){\n List<Fragment> frags = getChildFragmentManager().getFragments();\n for(Fragment frag : frags){\n if(frag instanceof BasePanelFragment){\n ((BasePanelFragment)frag).notifyServiceCreated();\n }\n }\n }",
"public void onEnable()\n\t{\n\t\t//Tells the user that the plugin is starting up.\n\t\tlog.info(\"Started up.\");\n\t}",
"public void onThemeChanged()\n\t{\n\t}",
"public interface Plugin {\n void doUsefil();\n}",
"@Override\n\t\t\t\tpublic void onServiceConnected(ComponentName p1, IBinder p2)\n\t\t\t\t{\n\t\t\t\t}",
"public interface Plugin {\n\n /**\n * Invoked when plugin is loaded\n */\n void Initialize();\n\n /**\n * Get plugin name\n * @return plugin name\n */\n String getName();\n\n /**\n * Show the issue management window\n * @param pmsIssue Notification for which the window should be displayed\n * @see PMSIssue\n * @param pmsUser User data\n * @see PMSUser\n *\n * @return window instance\n * @see Stage\n */\n Stage getIssueWindow(PMSIssue pmsIssue, PMSUser pmsUser);\n\n /**\n * Get a PMSManage object to control the project management system\n * @return PMSManage object\n */\n PMSManage getPMSManage();\n\n\n /**\n * When program is shutting down\n */\n void Free();\n}",
"public void pluginComponentAdded(PluginComponentEvent event)\n {\n PluginComponentFactory factory = event.getPluginComponentFactory();\n\n Component comp = (Component)factory.getPluginComponentInstance(\n ChatWindow.this).getComponent();\n\n // If this component has been already added, we have nothing more to do\n // here.\n if (comp.getParent() != null)\n return;\n\n if (factory.getContainer().equals(Container.CONTAINER_CHAT_WINDOW)\n || factory.getContainer().equals(\n Container.CONTAINER_CHAT_STATUS_BAR))\n {\n Object borderLayoutConstraints = UIServiceImpl\n .getBorderLayoutConstraintsFromContainer(\n factory.getConstraints());\n\n this.addPluginComponent(comp,\n factory.getContainer(),\n borderLayoutConstraints);\n }\n }",
"public void onUpdateFound(final String newVersion);",
"public interface FJPluginInterface\r\n{\r\n\t/**\r\n\t * When the plugin is loaded, the pluin's implementation of this method\r\n\t * will be invoked. If nothing needs to be done on startup in a plugin,\r\n\t * keep the method empty. For instance you might do all the work in the\r\n\t * constructor, or you could wait for user input, which will make this\r\n\t * method unnecessary.\r\n\t */\r\n\tpublic void start();\r\n\t\r\n\t/**\r\n\t * Invoked when a plugin is unloaded and another plugin is loaded or when\r\n\t * Flask Jaws is terminated. Useful for shutting down sockets and readers\r\n\t * when you exit your plugin. If nothing needs to be done upon exit or no\r\n\t * cleaning needs to be done, this method may be left empty.\r\n\t * <p>\r\n\t * If a plugin supports networking of any kind, it should call\r\n\t * {@link se.mansehr.flaskjaws.pluginclasses.FJNetwork#close()} in this method.\r\n\t */\r\n\tpublic void stop();\r\n\t\r\n\t/**\r\n\t * Whenever there's a plugin loaded and you select a menu item from the\r\n\t * menu bar, this method will be called. It should pause the plugin\r\n\t * implementing this method. If no pausing is neccessary, it can be\r\n\t * implemented as an emtpy method.\r\n\t */\r\n\tpublic void pause();\r\n\t\r\n\t/**\r\n\t * Has the opposite function as {@link #pause()}, it resumes the plugin\r\n\t * once the actions invoked by selecting a menu item is done.\r\n\t */\r\n\tpublic void resume();\r\n}",
"@Override\n public void onPluginEnable(PluginEnableEvent event) {\n if (!EconServerListener.Methods.hasMethod()) {\n if(EconServerListener.Methods.setMethod(event.getPlugin())) {\n // You might want to make this a public variable inside your MAIN class public Method Method = null;\n // then reference it through this.plugin.Method so that way you can use it in the rest of your plugin ;)\n this.plugin.Method = EconServerListener.Methods.getMethod();\n System.out.println(\"[\" + plugin.name + \"] Payment method found (\" + this.plugin.Method.getName() + \" version: \" + this.plugin.Method.getVersion() + \")\");\n EconomyHandler.currencyEnabled = true;\n }\n }\n }",
"@Override\n public PluginInformation getPluginInformation() {\n return super.getPluginInformation();\n }",
"public void run() {\n\t\tnew UsageCheckAdapter(EventSourceID.CD_PLUGIN_UNINSTALL);\n\t\t\n\t\tInstallationView view = CodeGeneratorActivator.getDefault().getInstallationView();\n\t\tview.uninstallPlugin();\n\t}",
"public interface PluginInterface {\n\n public void attach(Activity proxyActivity);\n\n public void onCreate(Bundle saveInstanceState);\n\n public void onStart();\n\n public void onResume();\n\n public void onPause();\n\n public void onStop();\n\n public void onDestroy();\n\n public void onSaveInstanceState(Bundle outSate);\n\n public boolean onTouchEvent(MotionEvent event);\n\n public void onBackPressed();\n\n\n}",
"public void serviceChanged(ServiceEvent event)\n {\n Object service = SystrayActivator.bundleContext\n .getService( event.getServiceReference());\n \n if (! (service instanceof ProtocolProviderService))\n return;\n \n ProtocolProviderService provider = (ProtocolProviderService)service;\n \n if (event.getType() == ServiceEvent.REGISTERED)\n addAccount(provider);\n \n if (event.getType() == ServiceEvent.UNREGISTERING)\n removeAccount(provider);\n }",
"public interface Plugin\n{\n\tpublic String getPluginName();\n}",
"public void loadPluginsStartup();",
"public void onPluginStart()\n\t{\n\t\tfor (Integer event : this.getNetworkCommands())\n\t\t\tCalicoEventHandler.getInstance().addListener(event.intValue(), this, CalicoEventHandler.ACTION_PERFORMER_LISTENER);\n\t\t\n\t\tCanvasStatusBar.addMenuButtonRightAligned(CreateCustomScrapButton.class);\n\t\t\n\t\t//Add an additional voice to the bubble menu\n\t\t//CGroup.registerPieMenuButton(SaveToPaletteButton.class);\n\t\t\n\t\t//Register to the events I am interested in from Calico's core events\n\t\t//Example: CalicoEventHandler.getInstance().addListener(NetworkCommand.VIEWING_SINGLE_CANVAS, this, CalicoEventHandler.PASSIVE_LISTENER);\n\n\t}",
"protected final void notifyContentChanged() {\n // notify all listeners (including parents)\n for (DialogModuleChangeListener listener : listeners) {\n listener.onContentChanged();\n }\n }",
"public void notifyStartup();",
"@FxThread\n private void onAfterCreateJavaFxContext() {\n pluginSystem.getPlugins().stream()\n .filter(EditorPlugin.class::isInstance)\n .map(EditorPlugin.class::cast)\n .forEach(editorPlugin -> editorPlugin.onAfterCreateJavaFxContext(pluginSystem));\n }",
"@Override\n\t\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\t}",
"public void serviceChanged(ServiceEvent event) {\n // Get a reference to the affected service\n ServiceReference affectedService = event.getServiceReference();\n \n // Find out what happened to the service\n switch (event.getType()) {\n // New service was registered\n case ServiceEvent.REGISTERED:\n metricRegistered(affectedService);\n break;\n // An existing service is unregistering\n case ServiceEvent.UNREGISTERING:\n metricUnregistering(affectedService);\n break;\n // The configuration of an existing service was modified\n case ServiceEvent.MODIFIED:\n metricModified (affectedService);\n }\n }",
"@Override\n public boolean register() {\n Bukkit.getPluginManager().registerEvents(\n new MassiveCoreFactionsListener(),\n FactionsBridge.get().getDevelopmentPlugin()\n );\n return true;\n }",
"@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n\n messengerService = new Messenger(service);\n messengerServiceBound = true;\n }",
"public FoodLvlChangeListner(Plugin p)\n\t{\n\t\tBukkit.getPluginManager().registerEvents(this, p);\n\t\tplugin = p;\n\t}",
"public boolean hookPlugin(String id, ILog log) {\n\t\tsynchronized(this.hookedPlugins) {\n\t\t\tif (log == null || id == null || this.hookedPlugins.containsKey(id))\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\tPluginLogListener listener = new PluginLogListener(log,getLogger(id));\n\t\t\tthis.hookedPlugins.put(id,listener);\n\t\t}\t\t\n\t\treturn true;\n\t}",
"@Override\n\tpublic void onUpdate(Context context, AppWidgetManager appWidgetManager,\n\tint[] appWidgetIds) {\n\t\t\n\n\t\t/**\n\t\t * Starting a service that defines the onupdate function\n\t\t */\n\t\t context.startService(new Intent(context, UpdateService.class)); \n\t}",
"public void onServiceConnected() {\r\n\t\tapiEnabled = true;\r\n\r\n\t\t// Display the list of calls\r\n\t\tupdateList();\r\n }",
"public GuiListener(@NotNull Plugin plugin) {\n this.plugin = plugin;\n }",
"interface PlatformServiceListener {\n\t\tpublic void onServiceAvailable(PlatformInit service);\n\t}",
"void firePluginDestroyedEvent( String name, Plugin plugin )\n {\n for ( final PluginListener listener : pluginListeners )\n {\n try\n {\n listener.pluginDestroyed( name, plugin );\n }\n catch ( Exception ex )\n {\n Log.warn( \"An exception was thrown when one of the pluginManagerListeners was notified of a 'destroyed' event for plugin '{}'!\", name, ex );\n }\n }\n }",
"public void onServiceConnected(ComponentName className, IBinder service) {\n \tmServiceMessenger = new Messenger(service);\r\n // We want to monitor the service for as long as we are\r\n // connected to it.\r\n try {\r\n Message message = Message.obtain(null, WATCHiTServiceInterface.REGISTER_CLIENT);\r\n message.replyTo = mMessenger;\r\n mServiceMessenger.send(message);\r\n } catch (RemoteException e) {\r\n // In this case the service has crashed before we could even\r\n // do anything with it; we can count on soon being\r\n // disconnected (and then reconnected if it can be restarted)\r\n // so there is no need to do anything here.\r\n }\r\n // Toast.makeText(MainActivity.this, R.string.remote_service_bound, Toast.LENGTH_SHORT).show();\r\n }",
"public void notifyListeners(Type type) {\n for (WorkspaceListener listener : listeners) {\n listener.update(type);\n }\n }",
"public interface PackageStatusNotifier {\n\n /* loaded from: classes.dex */\n public interface Listener {\n void onPackageChanged(String str, int i);\n }\n}",
"@Override\n\tpublic void firePluginEvent(PluginEvent event) {\n\t\t//do nothing\n\t}",
"private void hockeyAppCheckForUpdates() {\n UpdateManager.register(this);\n }",
"@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}",
"public void notifyChangementJoueurs();",
"public void notifyConfigChange() {\n }",
"@Override\n public void doUpdate(NotificationMessage notification) {\n \n }",
"public void onServiceConnected(ComponentName arg0, IBinder service) {\n\t\t\tLog.d(\"ShimmerService\", \"Service connected\");\n\t\t\tLocalBinder binder = (ShimmerService.LocalBinder) service;\n\t\t\tmService = binder.getService();\n\t\t\tmServiceBind = true;\n\t\t\tmService.setHandlerMain(mHandler);\n\t\t\t// update the view\n\t\t}",
"protected final void notifyReadyStateChanged() {\n // notify all listeners (including parents)\n for (DialogModuleChangeListener listener : listeners) {\n listener.onReadyStateChanged();\n }\n }",
"public interface CommercialUpdateNotificationService {\n void notify(Commercial commercial);\n}",
"private void notifyLocationProviderStatusUpdated(boolean isLocationProviderAvailable) {\n }",
"public void addPluginListener( PluginListener listener )\n {\n pluginListeners.add( listener );\n }",
"@Override\n public void onProviderInstalled() {\n }",
"void addPlugin(BaseComponentPlugin baseComponent);",
"private boolean reloadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) {\r\n PluginManager pluginManager = Bukkit.getServer().getPluginManager();\r\n Plugin plugin = getPlugin(pluginName);\r\n if (plugin == null) {\r\n manager.sendMessage(player, \"A plugin with the name '\" + pluginName + \"' could not be found.\");\r\n return true;\r\n }\r\n pluginManager.disablePlugin(plugin);\r\n pluginManager.enablePlugin(plugin);\r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' was successfully reloaded.\");\r\n m_plugin.cachePluginDetails();\r\n return true;\r\n }",
"@Override\n\tpublic void onConfigurationUpdate() {\n\t}",
"public void setPlugin(Plugin plugin)\r\n\t{\r\n\t\tthis.plugin = plugin;\r\n\t}",
"private void notifyListeners() {\n IDisplayPaneContainer container = (IDisplayPaneContainer) activeEditorMap\n .get(currentWindow);\n for (IVizEditorChangedListener listener : changeListeners) {\n listener.editorChanged(container);\n }\n }",
"public interface PluginManager<P extends REIPlugin<?>> extends ParentReloadable<P> {\n @Environment(EnvType.CLIENT)\n static PluginManager<REIClientPlugin> getClientInstance() {\n return ClientInternals.getPluginManager();\n }\n \n static PluginManager<REIPlugin<?>> getInstance() {\n return Internals.getPluginManager();\n }\n \n static PluginManager<REIServerPlugin> getServerInstance() {\n return Internals.getServerPluginManager();\n }\n \n static List<PluginManager<? extends REIPlugin<?>>> getActiveInstances() {\n return EnvExecutor.getEnvSpecific(() -> () -> Arrays.asList(getInstance(), getClientInstance(), getServerInstance()),\n () -> () -> Arrays.asList(getInstance(), getServerInstance()));\n }\n \n static boolean areAnyReloading() {\n return CollectionUtils.anyMatch(getActiveInstances(), PluginManager::isReloading);\n }\n \n boolean isReloading();\n \n <T extends Reloadable<? super P>> T get(Class<T> reloadableClass);\n \n List<REIPluginProvider<P>> getPluginProviders();\n \n Iterable<P> getPlugins();\n \n @ApiStatus.Internal\n PluginView<P> view();\n}",
"public interface LessonPluginCallback {\n\n void initPlugin(PluginViewItem item);\n\n void initState(PluginViewItem item);\n\n boolean click(View view);\n}",
"synchronized private void tryRegisterPlugin(String name, Class<IKomorebiPlugin> pluginClass){\r\n\t\t\r\n\t\t// check status\r\n\t\tKomorebiPluginStatus pStatus = pluginClass.getAnnotation(KomorebiPluginStatus.class);\r\n\t\tif(pStatus != null){\r\n\t\t\tif(pStatus.disabled()){\r\n\t\t\t\tLogger.getLogger(LOGGER_NAME).info(\"Plugin '\"+pluginClass.getName()+\"' is disabled.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// check if configuration consumer is correctly implemented\r\n\t\ttry{\r\n\t\t\tConstructor<IKomorebiPlugin> c = pluginClass.getConstructor();\r\n\t\t\tIKomorebiPlugin pi = c.newInstance();\r\n\t\t\tif(pi.isConfigConsumer() && !IKomorebiConfigurationConsumer.class.isAssignableFrom(pluginClass)){\r\n\t\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' does not adhere to defined standards (configuration consumer) and will be omitted.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}catch(NoSuchMethodException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' does not adhere to defined standards (default constructor) and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}catch(InvocationTargetException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' caused an error (\"+e.getMessage()+\") and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}catch(IllegalAccessException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' caused an error (\"+e.getMessage()+\") and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}catch(InstantiationException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' caused an error (\"+e.getMessage()+\") and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(IKomorebiStorage.class.isAssignableFrom(pluginClass)){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).info(\"Registered storage PlugIn '\"+pluginClass.getName()+\"'\");\r\n\t\t\tif(!pluginRegister.containsKey(PluginType.STORAGE)){\r\n\t\t\t\t// if submap does not already exist it has to be created\r\n\t\t\t\tpluginRegister.put(PluginType.STORAGE, new HashMap<String, Class<IKomorebiPlugin>>());\r\n\t\t\t}\r\n\t\t\tpluginRegister.get(PluginType.STORAGE).put(name, pluginClass);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn;\r\n\t}",
"public interface Plugin {\n\n\t/**\n\t * Returns a description of the plugin, to be shown as a tooltip and/or in the\n\t * help menu.\n\t * \n\t * @return\n\t */\n\tString getDescription();\n\n\t/**\n\t * A label for buttons and menu entries\n\t * \n\t * @return\n\t */\n\tString getName();\n\n\tIkon getIkon();\n\n}",
"@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer3 has received update!\");\r\n\t}",
"private void initPluginComponents()\n {\n // Make sure that we don't miss any event.\n GuiActivator.getUIService().addPluginComponentListener(this);\n\n pluginPanelEast.setLayout(\n new BoxLayout(pluginPanelEast, BoxLayout.Y_AXIS));\n pluginPanelSouth.setLayout(\n new BoxLayout(pluginPanelSouth, BoxLayout.Y_AXIS));\n pluginPanelWest.setLayout(\n new BoxLayout(pluginPanelWest, BoxLayout.Y_AXIS));\n\n this.getContentPane().add(pluginPanelEast, BorderLayout.EAST);\n this.getContentPane().add(pluginPanelWest, BorderLayout.WEST);\n this.mainPanel.add(pluginPanelSouth, BorderLayout.SOUTH);\n\n // Search for plugin components registered through the OSGI bundle\n // context.\n Collection<ServiceReference<PluginComponentFactory>> serRefs;\n String osgiFilter\n = \"(|(\" + Container.CONTAINER_ID + \"=\"\n + Container.CONTAINER_CHAT_WINDOW.getID() + \")(\"\n + Container.CONTAINER_ID + \"=\"\n + Container.CONTAINER_CHAT_STATUS_BAR.getID() + \"))\";\n\n try\n {\n serRefs\n = GuiActivator.bundleContext.getServiceReferences(\n PluginComponentFactory.class,\n osgiFilter);\n }\n catch (InvalidSyntaxException ex)\n {\n serRefs = null;\n logger.error(\"Could not obtain plugin component reference.\", ex);\n }\n\n if ((serRefs != null) && !serRefs.isEmpty())\n {\n for (ServiceReference<PluginComponentFactory> serRef : serRefs)\n {\n PluginComponentFactory factory\n = GuiActivator.bundleContext.getService(serRef);\n Component comp\n = (Component)\n factory\n .getPluginComponentInstance(ChatWindow.this)\n .getComponent();\n\n // If this component has been already added, we have nothing\n // more to do here.\n if (comp.getParent() != null)\n return;\n\n Object borderLayoutConstraints\n = UIServiceImpl.getBorderLayoutConstraintsFromContainer(\n factory.getConstraints());\n\n addPluginComponent(\n comp,\n factory.getContainer(),\n borderLayoutConstraints);\n }\n }\n }",
"private void notifyWidget() {\n if (getActivity() != null) {\n ComponentName widget = new ComponentName(getActivity().getApplication(),\n RecipeWidgetProvider.class);\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(getActivity());\n int[] ids = appWidgetManager.getAppWidgetIds(widget);\n appWidgetManager.notifyAppWidgetViewDataChanged(ids, R.id.widget_list);\n RecipeWidgetProvider widgetProvider = new RecipeWidgetProvider();\n widgetProvider.updateWidget(getActivity().getApplication(), ids);\n }\n }",
"private void notifyUpdated() {\n if (mChanged) {\n mChanged = false;\n mObserver.onChanged(this);\n }\n }"
] | [
"0.67049235",
"0.6614268",
"0.6348828",
"0.6327515",
"0.63219506",
"0.6242664",
"0.61951727",
"0.5976774",
"0.58896625",
"0.58612114",
"0.58456415",
"0.58065766",
"0.5729667",
"0.57145137",
"0.57019776",
"0.56858563",
"0.5682807",
"0.5681259",
"0.56645757",
"0.56564695",
"0.5651773",
"0.5649813",
"0.56493074",
"0.56326556",
"0.56326556",
"0.56308496",
"0.56189823",
"0.5611771",
"0.5598901",
"0.5575544",
"0.55526966",
"0.5544287",
"0.55369836",
"0.5530126",
"0.5530126",
"0.55268097",
"0.5515558",
"0.54985446",
"0.5498255",
"0.5492362",
"0.5488578",
"0.54668415",
"0.54655546",
"0.54620034",
"0.5457625",
"0.5450595",
"0.5446441",
"0.5431151",
"0.5431032",
"0.5424339",
"0.542349",
"0.54186016",
"0.5418143",
"0.54032236",
"0.5389086",
"0.5382635",
"0.5373567",
"0.5366025",
"0.5363432",
"0.5359896",
"0.5356551",
"0.535648",
"0.535027",
"0.534756",
"0.53415567",
"0.53403646",
"0.5313066",
"0.53035",
"0.5301869",
"0.52939457",
"0.52921695",
"0.52805483",
"0.5274637",
"0.5273348",
"0.52681077",
"0.52625203",
"0.52511597",
"0.52449363",
"0.5244072",
"0.52360797",
"0.5234913",
"0.5226502",
"0.52234477",
"0.5222312",
"0.5216663",
"0.52131605",
"0.5210976",
"0.52062356",
"0.5205893",
"0.51959056",
"0.51938456",
"0.5191777",
"0.5191387",
"0.5178304",
"0.51758707",
"0.5173875",
"0.51669943",
"0.516304",
"0.5160589",
"0.51590776"
] | 0.690996 | 0 |
override the toString() method | @Override
public String toString() {
return "User{" +
"Id=" + Id +
", name='" + name + '\'' +
", email='" + email + '\'' +
", phoneNumber=" + phoneNumber +
", gender=" + gender +
", age=" + age +
", boardingPass=" + boardingPass +
"'}'\n";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override String toString();",
"@Override public String toString();",
"@Override\r\n String toString();",
"@Override\n String toString();",
"@Override\n String toString();",
"@Override\r\n\tpublic String toString();",
"@Override\r\n public String toString();",
"@Override\n\tString toString();",
"@Override\n\tpublic String toString();",
"@Override\n public String toString();",
"@Override\n public String toString();",
"@Override\n String toString();",
"@Override\n\tpublic abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}",
"@Override\r\n public String toString() {\n return super.toString();\r\n }",
"@Override\n\tpublic abstract String toString ();",
"@Override\r\n public String toString() {\n return super.toString();\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}",
"@Override\r\n public String toString() {\r\n return super.toString();\r\n }",
"@Override\r\n public String toString() {\r\n return super.toString();\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString(){\n\n\t}",
"public String toString() ;",
"public String toString() {\r\n\t\t\r\n\t\treturn super.toString();\r\n\t\t\r\n\t}",
"public String toString() {\n \t\treturn super.toString();\n \t}",
"@Override\n public abstract String toString();",
"@Override\n public String toString() {\n return super.toString();\n }",
"@Override\n public String toString() {\n return super.toString();\n }",
"@Override\n public String toString() {\n return super.toString();\n }",
"@Override\n public String toString() {\n return super.toString();\n }",
"@Override\n public synchronized String toString() {\n return super.toString();\n }",
"public String toString() {\t\t\t\t\t\r\n\t\treturn super.toString();\r\n\t}",
"@Override\n public String toString () {\n return super.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}",
"@Override\n public String toString() {\n return toString(false, true, true, null);\n }",
"public String toString() {\n return super.toString();\n }",
"public String toString() {\n\t\treturn super.toString();\n\t}",
"public String toString() {\n\t\treturn super.toString();\n\t}",
"public String toString() {\n\t}",
"@Override\n public String toString(){\n return toString(false);\n }",
"@Override\n public String toString() {\n return (super.toString());\n\n }",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"public String toString()\n {\n return super.toString();\n }",
"public String toString()\n {\n return super.toString();\n }",
"@Override\npublic String toString() {\n\treturn super.toString();\n}",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}",
"@Override\n public String toString() {\n return new Gson().toJson(this);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}",
"@Override\n public String toString()\n {\n return this.toLsString();\n }",
"@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }",
"public String toString(){\r\n\t\tString output=\"\";\r\n\t\toutput+=super.toString();\r\n\t\treturn output;\r\n\t}",
"@Override\n public String toString() {\n return super.toString(); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();"
] | [
"0.93914187",
"0.92737275",
"0.92512286",
"0.9167179",
"0.9167179",
"0.9099127",
"0.9082653",
"0.90361404",
"0.899346",
"0.8945232",
"0.8945232",
"0.8916795",
"0.8877801",
"0.88388276",
"0.88388276",
"0.88388276",
"0.88388276",
"0.88388276",
"0.88388276",
"0.88388276",
"0.88186014",
"0.8789025",
"0.8786444",
"0.87728786",
"0.8769425",
"0.8769425",
"0.8769425",
"0.8769425",
"0.8769425",
"0.8769425",
"0.87430775",
"0.8725668",
"0.8725668",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.8713341",
"0.86399126",
"0.8637716",
"0.863538",
"0.86315566",
"0.86303973",
"0.86303055",
"0.86303055",
"0.86303055",
"0.86303055",
"0.86118764",
"0.8582567",
"0.8560435",
"0.8504032",
"0.8481653",
"0.8447687",
"0.84434944",
"0.84434944",
"0.84344727",
"0.84181136",
"0.8417658",
"0.84076333",
"0.8390634",
"0.8377997",
"0.8377997",
"0.83773994",
"0.83450186",
"0.83341134",
"0.8293533",
"0.8276704",
"0.82686734",
"0.8261633",
"0.82563436",
"0.8252491",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845",
"0.82500845"
] | 0.0 | -1 |
Action for Cancel button. | @Action
public void acCancel() {
setChangeObj(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cancelButtonActionPerformed(ActionEvent e) {\n }",
"void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }",
"void btnCancel();",
"void onCancelClicked();",
"private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}",
"public void onCancelClick()\r\n {\r\n\r\n }",
"CancelAction getCancelAction();",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}",
"void onCancelButtonPressed();",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}",
"@Override\n public void OnCancelButtonPressed() {\n }",
"public void handleCancelButton(ActionEvent e) {\n\t\tclose();\n\t}",
"@Override\n public void OnCancelButtonPressed() {\n }",
"HasClickHandlers getCancelButton();",
"public void onCancelButtonClick() {\n close();\n }",
"public void onCancelClicked() {\n close();\n }",
"public void handleCancelButton(ActionEvent actionEvent) throws IOException {\n ScreenLoader.display(\"customerSearchScreen\",\"Customer Search\",actionEvent);\n }",
"public void cancelButtonPressed(ActionEvent event) throws IOException {\n returnToMainScreen(event);\n }",
"private void jButton_CancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_CancelActionPerformed\n // TODO add your handling code here:\n }",
"public void clickOnCancelButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Cancel\"));\r\n\t}",
"@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }",
"@Override\r\n\tprotected void onCancelActionSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Cancel button implementation\");\r\n\t}",
"@FXML\r\n void actionCancelButton(ActionEvent event) throws IOException {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Alert\");\r\n alert.setContentText(\"Do you want to cancel your changes and return to the main screen?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n returnToMainScreen(event);\r\n }\r\n }",
"private Component cancelButton(){\n cancelButton = new Button(\"cancelButton\"){\n @Override\n public void onSubmit() {\n super.onSubmit();\n personFormPanel.clearFormValues();\n }\n };\n //Reset default form processing: validation and model update\n cancelButton.setDefaultFormProcessing(false);\n return cancelButton;\n }",
"public void cancel() {\n writeData(ESC.CMD_CANCEL);\n }",
"public void cancelButtonAction(ActionEvent event){\n Stage stage = (Stage) cancelButton.getScene().getWindow();\n stage.close();\n }",
"public void setCancel(javafx.event.ActionEvent actionEvent) {\n backToMenu(actionEvent);\n }",
"public void cancel()\n\t{\n\t}",
"public void onClickCancel()\n\t{\n\t\tsetVisible(false);\n\t\tdispose();\t\n\t}",
"public void onCancelClicked() {\r\n // Get a reference to the stage\r\n Stage stage = (Stage) btnCancel.getScene().getWindow();\r\n // Close the window\r\n stage.close();\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(cancel.getText());\n\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}",
"@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }",
"public void onCancel();",
"public void cancelButtonPressed(View view) {\r\n\t\tthis.finish();\r\n\t}",
"public void cancelButtonPressed(ActionEvent actionEvent) throws IOException {\n mainMenuWindow.returnToMainMenu(actionEvent);\n }",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }",
"private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }",
"public void cancel() {\n btCancel().push();\n }",
"public javax.swing.JButton getBtnCancel() {\n return btnCancel;\n }",
"private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}",
"void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }",
"void onCancel();",
"public void setCancelAction(ActionListener action) {\n\t\t\n\t}",
"protected abstract void onCancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"private void decorateCancelButton() {\n cancelButton.setVisible(false);\n ResourceUtils.resButton(cancelButton, Res.getString(\"cancel\"));\n cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196)));\n cancelButton.setForeground(new Color(73, 113, 196));\n cancelButton.setFont(new Font(\"Dialog\", Font.BOLD, 10));\n \n cancelButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n cancelTransfer();\n }\n });\n \n cancelButton.addMouseListener(new MouseAdapter() {\n public void mouseEntered(MouseEvent e) {\n cancelButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\n \n }\n \n public void mouseExited(MouseEvent e) {\n cancelButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }\n });\n \n }",
"@Override\n\tpublic void cancel() {\n\t\t\n\t}",
"protected abstract void handleCancel();",
"public void cancel(Button.ClickEvent event) {\n Notification.show(\"Cancelled\", Notification.Type.TRAY_NOTIFICATION);\n view.getContactList().select(null);\n }",
"public void cancelPressed() {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"Albums.fxml\"));\r\n\t\ttry{\r\n\t\t\tParent parent = (Parent) loader.load();\r\n\t\t\tAlbumsController controller = loader.<AlbumsController>getController();\r\n\t\t\tScene scene = new Scene(parent);\r\n\t\t\t\r\n\t\t\t// ok is the button pressed action event\r\n\t\t\tStage stage = (Stage) ((Node) ok).getScene().getWindow();\r\n\t\t\tcontroller.start(stage,AlbumsController.getCurrentUser());\r\n\t\t\tstage.setScene(scene);\r\n\t\t\tstage.centerOnScreen();\r\n\t\t\tstage.show();\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\texception.printStackTrace();\r\n\t\t}\t\r\n\t}",
"public void cancel() {\n\t}",
"@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}",
"public void clickedCancel(View view) {\n \treturnResult(Activity.RESULT_CANCELED);\n }",
"private void btnCancelActionPerformed(ActionEvent e) {\n processWindowEvent(new WindowEvent(this,WindowEvent.WINDOW_CLOSING));\n }",
"public Object getBtnCancel() {\n return btnCancel;\n }",
"public abstract boolean cancel();",
"public void onCancelPressed(View view) {\n finish();\n }",
"@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}",
"public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickCancel();\n\t\t\t}",
"public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"public JButtonOperator btCancel() {\n if (_btCancel==null) {\n _btCancel = new JButtonOperator(this, Bundle.getStringTrimmed(\"org.openide.Bundle\", \"CTL_CANCEL\"));\n }\n return _btCancel;\n }",
"private Component getCancelButton() {\n\t\tif (cancelButton == null) {\r\n\t\t\tcancelButton = new JButton();\r\n\t\t\tcancelButton.setText(\"Cancel\");\r\n\t\t\tcancelButton.addActionListener(new ActionListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t \r\n\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn cancelButton;\r\n\t}",
"@Override\n\tprotected void cancel() {\n\t\tsuper.cancel();\n\t\tif(ELSComfirmDialog.showConfirmDlg(GetPanelUtil.getFunctionPanel(this),\n\t\t\t\t\"取消添加\", \"确认退出新增界面?\")){\n\t\t\tback();\n\t\t}\n\t}",
"private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed\n this.dispose();\n }",
"@FXML\n private void Cancel(ActionEvent e) {\n Stage stage = (Stage) btnCancel.getScene().getWindow();\n stage.hide();\n stage.close();\n }",
"@Override\r\n\t\tpublic void onCancel() {\n\t\t}",
"@Override\n\t\tpublic void onCancel() {\n \n \t}",
"public void cancel( String reason );",
"public void onCancel() {\n\t\t\t\t\t}",
"public void cancel();",
"public void onCancelPressed(View v) {\n finish();\n }",
"public void cancelDialog() {dispose();}",
"@Override\n public void cancel() {\n }",
"private void cancel(ActionEvent e){\r\n // Clear textfields\r\n clearFields();\r\n // If coming from appt management screen, go back there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n // Otherwise, set the current client to null and go to the landing page \r\n else {\r\n currClient = null;\r\n LandingPage.returnToLandingPage();\r\n }\r\n }",
"public String getCancelReason() {\n return cancelReason;\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\tif (e.getSource() == button1) {\r\n\t\t\tcancel();\r\n\t\t}\r\n\t}",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void onCancel() {\n Log.w(tag, \"post cancel\" + this.getRequestURI());\n cancelmDialog();\n super.onCancel();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmListener.onCancelPressed();\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@FXML\n\tprivate void cancelButtonAction(ActionEvent clickEvent) throws IOException {\n\t\t\n\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Pressing OK will exit to the Main Screen without Saving input.\\n\\n\" + \"Are you sure you want to exit?\");\n\t\t\n\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\n\t\tif (result.isPresent() && result.get() == ButtonType.OK) {\n\t\t\t\n\t\t\tString buttonId = ((Button)clickEvent.getSource()).getId();\n\t\t\tSceneSelector.loadScene(buttonId);\n\t\t}\n\t}",
"public boolean cancel();",
"public javax.swing.JButton getCancelBtn() {\n\t\treturn cancelBtn;\n\t}"
] | [
"0.8303044",
"0.82837737",
"0.82590556",
"0.81451356",
"0.814405",
"0.8119098",
"0.811594",
"0.79297745",
"0.78919744",
"0.7885027",
"0.78391755",
"0.7687486",
"0.7658327",
"0.7651064",
"0.7600984",
"0.7587857",
"0.75639904",
"0.7544679",
"0.75306845",
"0.749404",
"0.74939495",
"0.7411932",
"0.74090856",
"0.73745114",
"0.7335094",
"0.7301277",
"0.7292361",
"0.72870433",
"0.72836447",
"0.7282316",
"0.7256945",
"0.7255667",
"0.7244855",
"0.72366405",
"0.7226719",
"0.72174096",
"0.71919304",
"0.71785885",
"0.71785885",
"0.71785885",
"0.7175888",
"0.7174898",
"0.71674013",
"0.71663797",
"0.71627116",
"0.7158398",
"0.7151411",
"0.7150306",
"0.71420896",
"0.7142073",
"0.7137206",
"0.7137206",
"0.7137206",
"0.7137206",
"0.7137206",
"0.7137206",
"0.7134008",
"0.7131452",
"0.7115214",
"0.71097106",
"0.7093653",
"0.7088909",
"0.70814466",
"0.70758224",
"0.7069587",
"0.7067782",
"0.706268",
"0.7052468",
"0.7034087",
"0.7033584",
"0.7028628",
"0.7026323",
"0.7024807",
"0.7015157",
"0.70086384",
"0.69995",
"0.6994798",
"0.6992649",
"0.69892573",
"0.6985347",
"0.6984193",
"0.6981397",
"0.6969414",
"0.69674075",
"0.696077",
"0.6960209",
"0.69519866",
"0.69500196",
"0.6946809",
"0.6944095",
"0.6940662",
"0.6940662",
"0.6940662",
"0.69399047",
"0.6939433",
"0.69393396",
"0.6937249",
"0.6936526",
"0.693486"
] | 0.73578185 | 24 |
Action for OK button. | @Action
public void acOk() {
if (checkFormattedTextFieldNullNoSupposed(jftfCoord1, -1e5, 1e5)) {
return;
}
if (checkFormattedTextFieldNullNoSupposed(jftfCoord2, -1e5, 1e5)) {
return;
}
if (checkTextField(jtfName)) {
return;
}
getTempObj().setType(jcbType.getSelectedIndex());
getTempObj().setCoord1(getDoubleFromFormattedTextField(jftfCoord1));
getTempObj().setCoord2(getDoubleFromFormattedTextField(jftfCoord2));
getTempObj().setName(jtfName.getText());
setChangeObj(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void okButtonClicked();",
"public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}",
"protected abstract boolean onOkClicked();",
"public void cmdOk() {\n\n\t\tif (!m_actionscombo.isValueInModel()) {\n\t\t\tString msg = I18N.getLocalizedMessage(\"Invalid Action Name\");\n\t\t\tString title = I18N.getLocalizedMessage(\"Error\");\n\t\t\tJOptionPane.showMessageDialog(null, msg, title, JOptionPane.ERROR_MESSAGE);\n\t\t} else\n\t\t\tsuper.cmdOk();\n\t}",
"protected void okPressed() {\n\t\tconfig.setExportThreadCount(txtThreadCount.getSelection());\n\t\tconfig.setImportThreadCount(txtMaxImportThreadCountPerTable.getSelection());\n\t\tconfig.setCommitCount(txtCommitCount.getSelection());\n\t\tif (txtPageCount != null) {\n\t\t\tconfig.setPageFetchCount(txtPageCount.getSelection());\n\t\t}\n\t\tif (txtFileMaxSize != null) {\n\t\t\tconfig.setMaxCountPerFile(txtFileMaxSize.getSelection());\n\t\t}\n\t\tconfig.setImplicitEstimate(btnImplicitEstimate.getSelection());\n\t\tsuper.okPressed();\n\t}",
"void onOkButtonPressed();",
"@Override\r\n\tprotected void onOkSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Ok button implementation\");\r\n\t}",
"@FXML public void handleOk() {\n\t\tSystem.out.println(\"OK clicked!\");\n\t\t\n\t\tif (checkParameters().equals(ErrorCode.BatchSize)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Batch Size]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.ConfidenceFactor)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Confidence Factor]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.MinNumObj)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Min Num Obj]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumDecimalPlaces)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Decimal Places]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.NumFolds)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Num Folds]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Seed)) {\n\t\t\tAlertBox.display(\"Error\", \"Please make sure to set valid values for the parameters [Seed]\", \"OK\");\n\t\t} else if (checkParameters().equals(ErrorCode.Fine)) {\n\t\t\tsaveParameters();\n\t\t\tClassifiersWindowsManager.stage.close();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttext.setText(ok.getText());\n\t\t\t}",
"protected abstract void pressedOKButton( );",
"public void OnOkClick()\r\n {\r\n\r\n }",
"protected Button getOkButton()\r\n\t{\r\n\t\treturn okButton;\r\n\t}",
"public void handleActionOk() {\n\t\tsuper.handleActionOk();\n\t\tnewModeOkApply();\n\t\tthis.getDocumentView().close();\n\t}",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n actualizarEntidad(this.entidad);\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }",
"@Override\n\tpublic void okPressed() {\n\t\t_text = _noteTextField.getText();\n\t\tsetReturnCode(OK);\n\t\tclose();\n\t}",
"private void jButtonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOkActionPerformed\n \n }",
"private void onOK() {\n isOkClicked = true;\n dispose();\n }",
"private void onOkButtonPressed() {\n\t\tconfirm = true;\n\t\tif (template.getAskDimension()) {\n\t\t\ttry {\n\t\t\t\twidth = Integer.parseInt(widthInputField.getFieldString());\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\twidthInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\theight = Integer.parseInt(heightInputField.getFieldString());\n\t\t\t\theightInputField.setFieldColor(GameFrame.getStandardFieldColor());\n\t\t\t} catch (Exception except) {\n\t\t\t\theightInputField.setFieldColor(GameFrame.getWrongFieldColor());\n\t\t\t\tconfirm = false;\n\t\t\t}\n\t\t\tif(!confirm)\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (template.getAskLoading()) {\n\t\t\tint result = savefileChooser.showOpenDialog(this);\n\t\t\tif (result != JFileChooser.APPROVE_OPTION) {\n\t\t\t\tconfirm = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\n\t}",
"public static void okButtonAction(ActionContext actionContext){\n World world = World.getInstance();\n Thing form = actionContext.getObject(\"form\");\n Shell shell = actionContext.getObject(\"shell\");\n \n Thing dataObject = world.getThing(\"xworker.app.test.dataObject.thing.Sex\");\n form.doAction(\"setDataObject\", actionContext, \"dataObject\", dataObject);\n shell.pack();\n }",
"protected void okPressed()\n\t{\n\t\t((NewProjectComposite) this.getDialogArea()).updateProject(project);\n\t\tsuper.okPressed();\n\t}",
"public JButton getOkButton(){\n\t\treturn okButton;\n\t}",
"@FXML\n\tprivate void handleOk() {\n\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\n\t}",
"private void okButtonActionPerformed() {\n\n saveConsoleText(consoleTextArea);\n\n setVisible(false);\n\n if (mainFrame == null && !isBasicUI) {\n System.exit(0);\n }\n }",
"void CloseOkDialog();",
"protected void okPressed() {\r\n \t\tArrayList resources= new ArrayList(10);\r\n \t\tfindCheckedResources(resources, (IContainer)fTree.getInput());\r\n \t\tif (fWorkingSet == null)\r\n \t\t\tfWorkingSet= new WorkingSet(getText().getText(), resources.toArray());\r\n \t\telse if (fWorkingSet instanceof WorkingSet) {\r\n \t\t\t// Add not accessible resources\r\n \t\t\tIResource[] oldResources= fWorkingSet.getResources();\r\n \t\t\tfor (int i= 0; i < oldResources.length; i++)\r\n \t\t\t\tif (!oldResources[i].isAccessible())\r\n \t\t\t\t\tresources.add(oldResources[i]);\r\n \r\n \t\t\t((WorkingSet)fWorkingSet).setName(getText().getText());\r\n \t\t\t((WorkingSet)fWorkingSet).setResources(resources.toArray());\r\n \t\t}\r\n \t\tsuper.okPressed();\r\n \t}",
"public void submitText() {\r\n \t\tthis.dialog.clickOK();\r\n \t}",
"public void actionPerformed(ActionEvent e) {\n\t\toptionPane.setValue(okString);\n\t}",
"private void okAction()\r\n\t{\r\n\t\tString navn = txfInput[0].getText().trim();\r\n\r\n\t\tint telefonNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttelefonNr = Integer.parseInt(txfInput[1].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString vej = txfInput[2].getText().trim();\r\n\r\n\t\tint nr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tnr = Integer.parseInt(txfInput[3].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString etage = txfInput[4].getText().trim();\r\n\r\n\t\tint postNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tpostNr = Integer.parseInt(txfInput[5].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString by = txfInput[6].getText().trim();\r\n\t\tString land = txfInput[7].getText().trim();\r\n\r\n\t\tif (navn.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Navn er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (telefonNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Telefon nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\telse if (vej.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Vej er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (nr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (postNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Post Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (by.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"By er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (land.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Land er tom\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tFirma firma = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfirma = lvwFirmaer.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\r\n\t\tLedsager ledsager = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tledsager = lvwLedsagere.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif (deltager != null)\r\n\t\t{\r\n\t\t\tService.updateDeltager(deltager, firma, ledsager, navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t} else\r\n\t\t{\r\n\t\t\tService.createDeltager(navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t}\r\n\r\n\t\tthis.hide();\r\n\t}",
"@FXML\n\tprivate void handleOk() {\n\t\tif (isValidInput()) {\n\t\t\tsaveCurrentAcknowledgment();\n\t\t\t\n\t\t\tif (isNew) {\n\t\t\t\tmain.getDbHelper().insertAcknowledgment(acknowledgment);\n\t\t\t\tmain.getAcknowledgmentData().clear();\n\t\t\t\tmain.getAcknowledgmentData().addAll(main.getDbHelper().retrieveAcknowledgmentList());\n\t\t\t} else {\n\t\t\t\tmain.getDbHelper().updateAcknowledgment(acknowledgment);\n\t\t\t\tmain.getAcknowledgmentData().clear();\n\t\t\t\tmain.getAcknowledgmentData().addAll(main.getDbHelper().retrieveAcknowledgmentList());\t\n\t\t\t}\n\t\t\t\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}",
"void okButton_actionPerformed(ActionEvent e)\n\t{\n\t\tpropertiesEditPanel.saveChanges();\n\t\tcloseDlg();\n\t\tokPressed = true;\n }",
"public void okPressed() {\r\n\t\t\r\n\t\tif (albumname.getText().trim().toString().equals(\"\")) {\r\n\t\t\t\r\n\t\t\tAlert alert = new Alert(AlertType.WARNING);\r\n\t\t\talert.setTitle(\"ALERT\");\r\n\t\t\talert.setHeaderText(\"Error\");\r\n\t\t\talert.setContentText(\"Must enter an album name.\");\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tString albumName = albumname.getText().trim().toString();\r\n\t\t\r\n\t\tif (checkForDuplicateAlbumNames(albumName)==true) {\r\n\t\t\tAlert alert = new Alert(AlertType.WARNING);\r\n\t\t\talert.setTitle(\"ALERT\");\r\n\t\t\talert.setHeaderText(\"Duplicate Names\");\r\n\t\t\talert.setContentText(\"An album already has that name. \\n Enter a new name.\");\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tAlbum newalbum = new Album(albumName);\r\n\t\tAlbumsController.getCurrentUser().addAlbumToUser(newalbum);\r\n\t\tLoginController.saveData(LoginController.users);\r\n\t\t\r\n\t\t\r\n\t\t//go to albums controller and load corresponding fxml\r\n\t\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"Albums.fxml\"));\r\n\t\t\t\ttry{\r\n\t\t\t\t\tParent parent = (Parent) loader.load();\r\n\t\t\t\t\tAlbumsController controller = loader.<AlbumsController>getController();\r\n\t\t\t\t\tScene scene = new Scene(parent);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// ok is the button pressed action event\r\n\t\t\t\t\tStage stage = (Stage) ((Node) ok).getScene().getWindow();\r\n\t\t\t\t\tcontroller.start(stage,AlbumsController.getCurrentUser());\r\n\t\t\t\t\tstage.setScene(scene);\r\n\t\t\t\t\tstage.centerOnScreen();\r\n\t\t\t\t\tstage.show();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception exception) {\r\n\t\t\t\t\texception.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"public JButton getOkButton() {\n return okButton;\n }",
"public void clickedOk(View view) {\n \t\n \t// validate the data set\n \tif (!getData()) return;\n \t\n \t// confirm values that are in range, but possibly wrong\n \tif (!confirmData(0)) return;\n \t\n \t// success\n \t\treturnResult(Activity.RESULT_OK);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n Object source = e.getSource();\n if (source == confirmButton) {\n var newResult = new Result(result, name.getText());\n try {\n newResult.saveResult();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }\n }",
"@FXML\n\tprivate void handleOk() {\n\t\tif (isInputValid()) {\n\t\t\titem.setDate(DateUtil.parse(dateField.getText()));\n\t\t\titem.setCategory(categoryField.getSelectionModel().getSelectedItem());\n\t\t\titem.setUse(useField.getText());\n\t\t\t\n\t\t\tString textBefore = amountField.getText();\n\t\t\tString textAfter = null;\n\t\t\tif(textBefore.contains(\",\")) {\n\t\t\t\ttextAfter = textBefore.replace(\",\", \".\");\n\t\t\t} else {\n\t\t\t\ttextAfter = textBefore;\n\t\t\t}\n\t\t\titem.setAmount(Double.parseDouble(textAfter));\n\t\t\titem.setDistributionKind(distributionKindField.getText());\n\n\t\t\tokClicked = true;\n\t\t\tdialogStage.close();\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (e.getActionCommand().equals(\"确定\"))\r\n\t\t\t\t\tonOK();\r\n\t\t\t\tif (e.getActionCommand().equals(\"取消\"))\r\n\t\t\t\t\tonCancel();\r\n\t\t\t\tif (e.getActionCommand().equals(\"应用\"))\r\n\t\t\t\t\tonApply();\r\n\t\t\t}",
"void okButton_actionPerformed(ActionEvent e) {\n setItskey(keyTextField.getText());\n setItsvalue(valueTextField.getText());\n setUserAction(OK);\n setVisible(false);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this out\");\n }",
"@FXML\n private void handleOk() {\n if (isInputValid()) {\n gem.setGemName(gemNameField.getText());\n gem.setGemValue(Integer.parseInt(gemValueField.getText()));\n gem.setDescription(gemDescripField.getText());\n\n okClicked = true;\n dialogStage.close();\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this\");\n }",
"public boolean isOkClicked() {\r\n\t\treturn okClicked;\r\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public boolean isOkClicked() {\n\t\treturn okClicked;\n\t}",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed OK\",\n Toast.LENGTH_SHORT).show();\n }",
"public void clickOnSuccessOkBtn() throws Exception {\r\n\t\r\n\t\t\tclickOnButton(btnOKSuccess);\r\n\t\t\tlog(\"clicked on OK button and object is:-\" + btnOKSuccess.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t}",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public boolean isOkClicked() {\r\n return okClicked;\r\n }",
"public void ok() {\n btOK().push();\n }",
"private JButton getBtnOK() {\n if (btnOK == null) {\n btnOK = new JButton();\n btnOK.setText(\" OK \");\n btnOK.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n selected = true;\n setVisible(false);\n }\n });\n getRootPane().setDefaultButton(btnOK);\n }\n return btnOK;\n }",
"private JButton getOkButton() {\n\t\tif (okButton == null) {\n\t\t\tokButton = new JButton();\n\t\t\tokButton.setText(\"OK\");\n\t\t\tokButton.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tdoOK();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn okButton;\n\t}",
"public boolean isOkClicked() {\n return okClicked;\n }",
"public boolean isOkClicked() {\n return okClicked;\n }",
"public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}",
"public boolean getOK() {\n return userAction.equals(OK);\n }",
"@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tupdateOkState();\r\n\t\t\t}",
"@FXML\n\tprivate void handleOk() {\n\t\ttry {\n\t\t\ttypeDAO.supprimerType(new Type(listIdType.get(comboboxtype.getSelectionModel().getSelectedIndex()),\"\",\"\"));\n\t\t\tnew Popup(\"Type \"+comboboxtype.getValue()+\" supprimer !\");\n\t\t} catch (ConnexionBDException e) {\n\t\t\tnew Popup(e.getMessage());\n\t\t}\n\t\tokClicked = true;\n\t\tdialogStage.close();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJOptionPane.showConfirmDialog(null, \"BOTAO CLICADO\", \"VALOR\", JOptionPane.PLAIN_MESSAGE);\n\n\t\t}",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n \temployee.setId(Integer.parseInt(idLabel.getText()));\r\n \temployee.setFirstName(firstNameField.getText());\r\n \temployee.setLastName(lastNameField.getText());\r\n \temployee.setIndustry(industryField.getText());\r\n \temployee.setWorkType(workTypeField.getText());\r\n \temployee.setAddress(addressField.getText());\r\n \t\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n if (button.getText().toString().equals(\"OK\")) {\n this.dispose();\n }\n\n else {\n ip = null;\n this.dispose();\n }\n }",
"private JButton getJButtonOk() {\n\t\tif (jButtonOk == null) {\n\t\t\tjButtonOk = new JButton();\n\t\t\tjButtonOk.setText(\"I agree\");\n\t\t\tjButtonOk.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = true;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonOk;\n\t}",
"public void okButtonRegisterHandler( ActionListener actionListener )\r\n\t{\r\n\t\t// register event handler for the OK Button\r\n\t\tokButton.addActionListener( actionListener );\r\n\t}",
"private RButton getOkButton() {\n if (okButton == null) {\n okButton = new RButton();\n okButton.setText(\"<%= ivy.cms.co(\\\"/Buttons/ok\\\") %>\");\n okButton.setName(\"okButton\");\n }\n return okButton;\n }",
"void setOk();",
"private void okPressed() {\n String destPath = pathField.getText();\n \n // Resolves destination folder\n // TODO: move those I/O bound calls to job as they can lock the main thread\n Object ret[] = FileToolkit.resolvePath(destPath, mainFrame.getActiveTable().getCurrentFolder());\n // The path entered doesn't correspond to any existing folder\n if (ret==null || (files.size()>1 && ret[1]!=null)) {\n showErrorDialog(Translator.get(\"this_folder_does_not_exist\", destPath));\n return;\n }\n \n AbstractFile destFolder = (AbstractFile)ret[0];\n String newName = (String)ret[1];\n \t\t\n // Retrieve default action when a file exists in destination, default choice\n // (if not specified by the user) is 'Ask'\n int defaultFileExistsAction = fileExistsActionComboBox.getSelectedIndex();\n if(defaultFileExistsAction==0)\n defaultFileExistsAction = FileCollisionDialog.ASK_ACTION;\n else\n defaultFileExistsAction = DEFAULT_ACTIONS[defaultFileExistsAction-1];\n // We don't remember default action on purpose: we want the user to specify it each time,\n // it would be too dangerous otherwise.\n \t\t\n startJob(destFolder, newName, defaultFileExistsAction);\n }",
"void ShowOkDialog(String title, String message, OnClickListener listener);",
"public void actionPerformed(ActionEvent oEvent) {\n if (oEvent.getActionCommand().equals(\"OK\")) {\n try {\n addFinishedData();\n } catch (ModelException e) {\n ErrorGUI oHandler = new ErrorGUI(this);\n oHandler.writeErrorMessage(e);\n return;\n }\n\n //Close this window\n this.setVisible(false);\n this.dispose();\n }\n else if (oEvent.getActionCommand().equals(\"Cancel\")) {\n //Close this window\n this.setVisible(false);\n this.dispose();\n } \n }",
"@Override\n\tpublic boolean performOk() {\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\t// Set the values from the fields\n\t\tpreferenceStore.setValue(DEFAULT_PASSWORD_LENGTH, spiLength.getSelection());\n\t\tpreferenceStore.setValue(USE_LOWERCASE_LETTERS, btnUseLowercase.getSelection());\n\t\tpreferenceStore.setValue(USE_UPPERCASE_LETTERS, btnUserUppercase.getSelection());\n\t\tpreferenceStore.setValue(USE_DIGITS, btnUseDigits.getSelection());\n\t\tpreferenceStore.setValue(USE_SYMBOLS, btnUseSymbols.getSelection());\n\t\tpreferenceStore.setValue(USE_EASY_TO_READ, btnUseEaseToRead.getSelection());\n\t\tpreferenceStore.setValue(USE_HEX_ONLY, btnUseHexOnly.getSelection());\n\n\t\t// Return true to allow dialog to close\n\t\treturn true;\n\t}",
"private JButton getOkButton() {\n if (okButton == null) {\n okButton = new JButton();\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n canceled = false;\n dispose();\n }\n });\n }\n return okButton;\n }",
"private void okEvent() {\n\t\tYAETMMainView.PRIVILEGE = (String)loginBox.getSelectedItem();\n\t\tshowMain();\n\t\tcloseDialog();\n\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\tcon.setResult(btnName);\n\t\t\t}",
"public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }",
"public JButtonOperator btOK() {\n if (_btOK==null) {\n _btOK = new JButtonOperator(this, Bundle.getStringTrimmed(\"org.openide.Bundle\", \"CTL_OK\"));\n }\n return _btOK;\n }",
"private void onOK() {\n show.setText(null);\n String s = (new ArithmeticExpressions(text.getText()).checkExpression());\n System.out.println(s);\n show.setText(s);\n }",
"private JButton getJButtonOK() {\n\t\tif (jButtonOK == null) {\n\t\t\tjButtonOK = new JButton();\n\t\t\tjButtonOK.setLocation(new Point(100, 200));\n\t\t\tjButtonOK.setText(\"OK\");\n\t\t\tjButtonOK.addActionListener( new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tcloseFrameSobre();\n\t\t\t\t}\n\t\t\t});\n\t\t\tjButtonOK.setSize(new Dimension(100, 30));\n\t\t}\n\t\treturn jButtonOK;\n\t}",
"protected void buttonPressed(String label)\r\n\t\t{\r\n\t\t\tif(label.equals(\"OK\"))\r\n\t\t\t{\r\n\t\t\t\t// Retrieve the mapping cell type setting\r\n\t\t\t\tString type = typeFilter.getSelectedButton();\r\n\t\t\t\tInteger typeSetting = type.equals(\"All\") ? MappingController.ALL : type.equals(\"System\") ? MappingController.SYSTEM : MappingController.USER;\r\n\t\t\t\t\r\n\t\t\t\t// Retrieve the mapping cell focus setting\r\n\t\t\t\tString focus = focusFilter.getSelectedButton();\r\n\t\t\t\tInteger focusSetting = focus.equals(\"All\") ? MappingController.ALL : focus.equals(\"Focused\") ? MappingController.FOCUSED : MappingController.UNFOCUSED;\r\n\t\t\t\t\r\n\t\t\t\t// Retrieve the mapping cell visibility setting\r\n\t\t\t\tString visibility = visibilityFilter.getSelectedButton();\r\n\t\t\t\tInteger visibilitySetting = visibility.equals(\"All\") ? MappingController.ALL : visibility.equals(\"Visible\") ? MappingController.VISIBLE : MappingController.HIDDEN;\r\n\t\t\t\t\r\n\t\t\t\t// Select or delete mapping cells\r\n\t\t\t\tif(mode.equals(SELECT))\r\n\t\t\t\t\tMappingController.selectMappingCells(harmonyModel, typeSetting, focusSetting, visibilitySetting);\r\n\t\t\t\telse MappingController.deleteMappingCells(harmonyModel, typeSetting, focusSetting, visibilitySetting);\r\n\t\t\t}\r\n\t\t\tdispose();\r\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"保存成功\");\n\t\t}",
"private JButton addOKButton(String actionCommand) {\n JButton button = new JButton(\"OK\");\n button.setActionCommand(\"OK \" + actionCommand);\n return button;\n }",
"private void btnConfirmActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"@Test\n\tpublic void testClickOnOkayButton() {\n\n\t\tvar prompt = openPrompt();\n\t\tprompt.getOkayButton().click();\n\t\tassertNoDisplayedModalDialog();\n\t\tassertPromptInputApplied();\n\t}",
"@FXML\n private void handleOk() {\n System.out.println(\"handleOk AdresEditController\");\n if (isInputValid()) {\n //aby udalo sie select\n adres.setPrev_adres_id(adres.getAdres_id());\n\n adres.setAdres_id(Integer.parseInt(adres_id_textField.getText()));\n adres.setWojewodztwo(wojewodztwo_textField.getText());\n adres.setMiejscowosc(miejscowosc_textField.getText());\n adres.setUlica(ulica_textField.getText());\n adres.setKraj(kraj_textField.getText());\n adres.setKod_pocztowy(kod_pocztowy_textField.getText());\n\n adres.update();\n\n okClicked = true;\n dialogStage.close();\n }\n }",
"@Override\r\n\tprotected void okPressed() {\r\n\t\tcomputeResult();\r\n\t\tObject obj[] = getResult();\r\n\t\t\r\n\t\tif (obj != null && obj.length > 0) {\r\n\t\t\tif (ensureXSDTypeNamespaceMappings ( obj[0] ) == false) {\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\thandleAddImport ( obj[0] );\r\n\t\t\t\r\n\t\t\t// only if we have a mapping do we dismiss the dialog\r\n\t\t\tsuper.okPressed();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void actionPerformed(ActionEvent e) {\n if(e.getSource() == confirmButton) {\n setVisible(false); // causes all the add text \n }\n else if(e.getSource() == exitButton) {\n System.exit(0);\n }\n }",
"protected GuiTestObject okbutton() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"));\n\t}",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n video.setName(nameField.getText());\r\n video.setUrl(urlField.getText());\r\n\r\n okClicked = true;\r\n dialogStage.close();\r\n }\r\n }",
"public void actionPerformed(ActionEvent e) {\r\n String command = e.getActionCommand();\r\n if (command.equals(\"OK\")) {\r\n if (validateData()) {\r\n validData = true;\r\n setVisible(false);\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n TASKAggInfo agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n }\r\n }\r\n else if (command.equals(\"Cancel\")) {\r\n setVisible(false);\r\n }\r\n }",
"public void handleYesConfirmButtonAction(ActionEvent event) {\n if (updateItemPane.isVisible()){\n deleteItem();\n this.clearUpdateItemFields();\n }\n else if(updateCopyPane.isVisible()){\n deleteCopy();\n this.clearUpdateCopyFields();\n }\n maskPane.setVisible(false);\n confirmPane.setVisible(false);\n }",
"@FXML\n private void handleOKPressed() {\n\n if (Authenticator.validatePassword(accountId.getText(), password.getText())) {\n application.accountLogging(accountId.getText());\n confirmLogin = true;\n dialogStage.close();\n } else {\n errorMessage.setVisible(true);\n }\n }",
"private JButton getJButtonOK() {\r\n\t\tif (jButtonOK == null) {\r\n\t\t\tjButtonOK = new JButton();\r\n\t\t\tjButtonOK.setText(BOTONCREAR);\r\n\t\t\tjButtonOK.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tcambiarPass();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonOK;\r\n\t}",
"private javax.swing.JButton getBtnOK() {\r\n\tif (ivjBtnOK == null) {\r\n\t\ttry {\r\n\t\t\tivjBtnOK = new javax.swing.JButton();\r\n\t\t\tivjBtnOK.setName(\"BtnOK\");\r\n\t\t\tivjBtnOK.setText(\"OK\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjBtnOK;\r\n}",
"public void actionPerformed(ActionEvent e)\n { /* actionPerformed */\n String\n cmd= e.getActionCommand();\n \n /* [1] see which button was pushed and do the right thing,\n * hide window and return default/altered data */\n if (cmd.equals(\" Cancel\") || cmd.equals(\"Continue\"))\n { /* send default data back - data is already stored into this.data */\n this.setVisible(false); /* hide frame which can be shown later */\n } /* send default data back */\n else\n if(cmd.equals(\"Ok\"))\n { /* hide window and return data back entered by user */\n data= textField.getText(); /* altered data returned */\n this.setVisible(false); /* hide frame which can be shown later*/\n }\n alertDone= true;\n }",
"@FXML\r\n\tprivate void handleOk() {\r\n\tif (isDateInputValid()) {\r\n\t\t\tLocalDate date = startdate.getValue();\r\n\t\t\tLocalDate findate = enddate.getValue();\r\n\t\t\tleavedata.setStartdate(date);\r\n\t\t\tleavedata.setEnddate(findate);\r\n\r\n\t\t\tEmployee employee = namefield.getSelectionModel().getSelectedItem();\r\n\t\t\tleavedata.setEmployee(employee);\r\n\t\t\t\r\n\t\t\tokClicked = true;\r\n\t\t\trosterService.addLeaveData(leavedata);\r\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\t\talert.setTitle(\"Information Dialog\");\r\n\t\t\talert.setHeaderText(null);\r\n\t\t\talert.setContentText(\"Update Succesfull\");\r\n\t\t\talert.showAndWait();\r\n\t\t\tdialogStage.close();\r\n\t\t}\r\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n setOnVacationOk(atc, guiD, sm);\n }",
"private void mIesireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mIesireActionPerformed\n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa parasiti aplicatia?\", \"Confirmare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }"
] | [
"0.82498163",
"0.7735042",
"0.76717913",
"0.76620084",
"0.7599956",
"0.7563331",
"0.74849004",
"0.74773395",
"0.74751794",
"0.7474995",
"0.7465549",
"0.7388835",
"0.7280969",
"0.7170516",
"0.7117098",
"0.71012646",
"0.70957196",
"0.70934623",
"0.7088997",
"0.7025616",
"0.69952047",
"0.6992246",
"0.6980184",
"0.6979802",
"0.69740874",
"0.69634575",
"0.69555646",
"0.6937122",
"0.69261175",
"0.6891192",
"0.68709856",
"0.68388915",
"0.68368363",
"0.68296874",
"0.6813652",
"0.6811795",
"0.6809463",
"0.6801886",
"0.6792261",
"0.6783658",
"0.6771277",
"0.6734777",
"0.6734777",
"0.6734777",
"0.6734777",
"0.6734777",
"0.6721343",
"0.67201716",
"0.6680152",
"0.6680152",
"0.6680152",
"0.6680152",
"0.6656856",
"0.6642127",
"0.6636973",
"0.66298014",
"0.66298014",
"0.6628894",
"0.66180193",
"0.66107595",
"0.6602099",
"0.65851897",
"0.6578124",
"0.65752745",
"0.65649825",
"0.65646917",
"0.65539247",
"0.6551504",
"0.65437317",
"0.6541729",
"0.65348744",
"0.6489703",
"0.64848614",
"0.6482156",
"0.64698875",
"0.64673406",
"0.64513326",
"0.6447988",
"0.6431476",
"0.6422944",
"0.64195436",
"0.64192796",
"0.64152735",
"0.64128953",
"0.64013016",
"0.6397447",
"0.6395078",
"0.63949335",
"0.63941234",
"0.63807017",
"0.63666713",
"0.63145417",
"0.63138324",
"0.63083124",
"0.6304115",
"0.6303661",
"0.62961775",
"0.62842923",
"0.6272987",
"0.62667274"
] | 0.6850384 | 31 |
CHECKSTYLE:OFF 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() {
jbtnOk = new javax.swing.JButton();
jbtnCancel = new javax.swing.JButton();
jftfCoord1 = new javax.swing.JFormattedTextField();
jftfCoord2 = new javax.swing.JFormattedTextField();
jcbType = new javax.swing.JComboBox();
jtfName = new javax.swing.JTextField();
jlbType = new javax.swing.JLabel();
jlbCoord1 = new javax.swing.JLabel();
jlbCoord2 = new javax.swing.JLabel();
jlbText = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ru.gss.pmfsearcher.PMFSearcherApp.class).getContext().getResourceMap(DlgReperEdit.class);
setTitle(resourceMap.getString("Form.title")); // NOI18N
setModal(true);
setName("Form"); // NOI18N
setResizable(false);
javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(ru.gss.pmfsearcher.PMFSearcherApp.class).getContext().getActionMap(DlgReperEdit.class, this);
jbtnOk.setAction(actionMap.get("acOk")); // NOI18N
jbtnOk.setName("jbtnOk"); // NOI18N
jbtnCancel.setAction(actionMap.get("acCancel")); // NOI18N
jbtnCancel.setName("jbtnCancel"); // NOI18N
jftfCoord1.setName("jftfCoord1"); // NOI18N
jftfCoord2.setName("jftfCoord2"); // NOI18N
jcbType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Точка", "Интервал" }));
jcbType.setName("jcbType"); // NOI18N
jtfName.setText(resourceMap.getString("jtfName.text")); // NOI18N
jtfName.setName("jtfName"); // NOI18N
jlbType.setText(resourceMap.getString("jlbType.text")); // NOI18N
jlbType.setName("jlbType"); // NOI18N
jlbCoord1.setText(resourceMap.getString("jlbCoord1.text")); // NOI18N
jlbCoord1.setName("jlbCoord1"); // NOI18N
jlbCoord2.setText(resourceMap.getString("jlbCoord2.text")); // NOI18N
jlbCoord2.setName("jlbCoord2"); // NOI18N
jlbText.setText(resourceMap.getString("jlbText.text")); // NOI18N
jlbText.setName("jlbText"); // NOI18N
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(16, 16, 16)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jbtnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jbtnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jlbCoord2)
.addComponent(jlbCoord1)
.addComponent(jlbType))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jcbType, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jftfCoord2, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jftfCoord1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)))
.addComponent(jlbText)
.addComponent(jtfName, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jlbType)
.addComponent(jcbType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jftfCoord1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jlbCoord1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jftfCoord2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jlbCoord2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jlbText)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jtfName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jbtnOk)
.addComponent(jbtnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
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 MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public GUIForm() { \n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public frmRectangulo() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public UploadForm() {\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 FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public PatientUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public Ablak() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UI() {\n initComponents();\n }",
"private FrmMainForm() {\n }",
"public ScheduleForm() {\n initComponents();\n }",
"public Modification() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n 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 FrmInCadLocal() {\n initComponents();\n }",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public uitax() {\n initComponents();\n }",
"private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\n\t}",
"public formdatamahasiswa() {\n initComponents();\n }",
"public Designer() {\n initComponents();\n }",
"public kunde() {\n initComponents();\n }",
"public cargamasiva() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public asignatura() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public Pregunta23() {\n initComponents();\n }",
"public frmAfiliado() {\n initComponents();\n \n }",
"public sinavlar2() {\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmAdminAccount() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public Carrera() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public soal2GUI() {\n initComponents();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public Soru1() {\n initComponents();\n }",
"public KullaniciSil() {\n initComponents();\n }",
"public AnaPencere() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public MainForm() {\n initComponents();\n \n Utility.centerScreen(this);\n myself = this;\n }",
"public FrmKashidashi() {\n initComponents();\n }",
"public ValidFrequencyForm() {\r\n initComponents();\r\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public DesigningSec() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public frmDashBoard() {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public FrCadFabricante() {\n initComponents();\n }",
"private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }",
"public frmPessoa() {\n initComponents();\n }",
"public form2() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public C_AdminForm() {\n initComponents();\n }",
"public JMCF() {\n initComponents();\n }",
"public PDMRelationshipForm() {\r\n initComponents();\r\n }",
"public nokno() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }"
] | [
"0.7394902",
"0.730535",
"0.730535",
"0.730535",
"0.72993475",
"0.72569805",
"0.7242906",
"0.7213646",
"0.71623415",
"0.71535647",
"0.7134446",
"0.709741",
"0.7095053",
"0.70120686",
"0.70061785",
"0.6997782",
"0.6991662",
"0.69877446",
"0.69771487",
"0.69716275",
"0.69444615",
"0.6865857",
"0.6860077",
"0.6841213",
"0.68297654",
"0.6826997",
"0.6824258",
"0.682107",
"0.6819012",
"0.6817695",
"0.68074006",
"0.6801719",
"0.6797682",
"0.6796937",
"0.6795269",
"0.6785045",
"0.6784733",
"0.6763316",
"0.67632",
"0.6748005",
"0.67439884",
"0.6742051",
"0.67412084",
"0.6736795",
"0.6730366",
"0.67296404",
"0.67286575",
"0.67281115",
"0.67220026",
"0.67173773",
"0.67132425",
"0.67113215",
"0.67077",
"0.67003864",
"0.6699526",
"0.6699114",
"0.6698134",
"0.6695147",
"0.66942716",
"0.66911894",
"0.66911745",
"0.66900206",
"0.6688825",
"0.6686845",
"0.6686845",
"0.66849375",
"0.6677891",
"0.6675608",
"0.6675048",
"0.66748136",
"0.6671474",
"0.6670716",
"0.66663325",
"0.6665632",
"0.6665431",
"0.66652",
"0.66628844",
"0.66624445",
"0.66595906",
"0.665843",
"0.66536754",
"0.6650463",
"0.66492695",
"0.6646186",
"0.66317934",
"0.66316456",
"0.6630866",
"0.6629417",
"0.6623116",
"0.6619173",
"0.6618105",
"0.6611244",
"0.6609261",
"0.66081524",
"0.66076267",
"0.6602227",
"0.65959644",
"0.65907",
"0.6590258",
"0.65901",
"0.65845734"
] | 0.0 | -1 |
/ renamed from: b | static float m51586b(float f, float f2, float f3) {
return ((f2 - f) * f3) + f;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
/ renamed from: b | static int m51587b(int i, int i2, float f) {
return Math.round(((float) (i2 - i)) * f) + i;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
Called when the activity is first created. | @Override
public void onCreate(Bundle icicle) {
Log.d(TAG, "onCreate()");
super.onCreate(icicle);
// Process past states
Intent intent = getIntent();
if (icicle != null) {
LogHelper.d(TAG, "Launch by saved instance state");
mParentItem = icicle.getParcelable(MusicUtils.TAG_PARENT_ITEM);
mWithTabs = icicle.getBoolean(MusicUtils.TAG_WITH_TABS);
MusicUtils.updateNowPlaying(this);
} else if (intent != null) {
LogHelper.d(TAG, "Launch by intent");
mParentItem = intent.getParcelableExtra(MusicUtils.TAG_PARENT_ITEM);
mWithTabs = intent.getBooleanExtra(MusicUtils.TAG_WITH_TABS, false);
}
if (mParentItem == null) {
LogHelper.d(TAG, "Launch by default parameters");
mParentItem = DEFAULT_PARENT_ITEM;
mWithTabs = true;
}
if (mWithTabs) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
}
setTitle(mParentItem.getDescription().getTitle());
setVolumeControlStream(AudioManager.STREAM_MUSIC);
// Init layout
LogHelper.d(TAG, "init layout");
setContentView(R.layout.media_picker_activity);
MusicUtils.updateButtonBar(this, R.id.songtab);
// Init the ListView
Log.d(TAG, "Creating ListView");
mTrackList = getListView();
mTrackList.setCacheColorHint(0);
mTrackList.setTextFilterEnabled(true);
mBrowseListAdapter = (TrackBrowseAdapter) getLastNonConfigurationInstance();
if (mBrowseListAdapter == null) {
mBrowseListAdapter = new TrackBrowseAdapter(this, R.layout.track_list_item);
}
setListAdapter(mBrowseListAdapter);
// don't set the album art until after the view has been layed out
mTrackList.post(new Runnable() {
public void run() {
mTrackList.setBackgroundColor(Color.WHITE);
mTrackList.setCacheColorHint(0);
}
});
// Create media browser
Log.d(TAG, "Creating MediaBrowser");
mMediaBrowser = new MediaBrowser(this, new ComponentName(this, MediaPlaybackService.class),
mConnectionCallback, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"protected void onCreate() {\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}",
"@Override\n public void onCreate()\n {\n\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n initData();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}",
"protected void onFirstTimeLaunched() {\n }",
"@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"@Override\n public void onCreate() {\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}",
"@Override\n public void onCreate() {\n\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}",
"public void onCreate() {\n }",
"@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}",
"@Override\n\tpublic void onCreate() {\n\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }",
"@Override\n public void onCreate()\n {\n\n\n }",
"@Override\n\tprotected void onCreate() {\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}",
"public void onCreate();",
"public void onCreate();",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }",
"@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}",
"@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }",
"public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }",
"@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }",
"@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}",
"@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}",
"@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }"
] | [
"0.791686",
"0.77270156",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7637394",
"0.7637394",
"0.7629958",
"0.76189965",
"0.76189965",
"0.7543775",
"0.7540053",
"0.7540053",
"0.7539505",
"0.75269467",
"0.75147736",
"0.7509639",
"0.7500879",
"0.74805456",
"0.7475343",
"0.7469598",
"0.7469598",
"0.7455178",
"0.743656",
"0.74256307",
"0.7422192",
"0.73934627",
"0.7370002",
"0.73569906",
"0.73569906",
"0.7353011",
"0.7347353",
"0.7347353",
"0.7333878",
"0.7311508",
"0.72663945",
"0.72612154",
"0.7252271",
"0.72419256",
"0.72131634",
"0.71865886",
"0.718271",
"0.71728176",
"0.7168954",
"0.7166841",
"0.71481615",
"0.7141478",
"0.7132933",
"0.71174103",
"0.7097966",
"0.70979583",
"0.7093163",
"0.7093163",
"0.7085773",
"0.7075851",
"0.7073558",
"0.70698684",
"0.7049258",
"0.704046",
"0.70370424",
"0.7013127",
"0.7005552",
"0.7004414",
"0.7004136",
"0.69996923",
"0.6995201",
"0.69904065",
"0.6988358",
"0.69834954",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69783133",
"0.6977392",
"0.69668365",
"0.69660246",
"0.69651115",
"0.6962911",
"0.696241",
"0.6961096",
"0.69608897",
"0.6947069",
"0.6940148",
"0.69358927",
"0.6933102",
"0.6927288",
"0.69265485",
"0.69247025"
] | 0.0 | -1 |
assumes node is full | public void split(Node thisNode) // split the node
{
int moving = (neworder / 2) - 1;
DataItem itemB, itemC;
Node parent, child;
int itemIndex;
Node newRight = new Node(); // make new node
for(int i = 0; i < moving; i++)
{
itemC = thisNode.removeItem();
newRight.insertItem(itemC);
}
for(int i = 0; i <= moving; i++)
{
child = thisNode.disconnectChild((neworder-1)-i);
newRight.connectChild(moving-i, child);
}
itemB = thisNode.removeItem(); // this node
if(thisNode==root) // if this is the root,
{
root = new Node(); // make new root
parent = root; // root is our parent
root.connectChild(0, thisNode); // connect to parent
}
else // this node not the root
parent = thisNode.getParent(); // get parent
// deal with parent
itemIndex = parent.insertItem(itemB); // item B to parent
int n = parent.getNumItems(); // total items?
for(int j=n-1; j>itemIndex; j--) // move parent's
{ // connections
Node temp = parent.disconnectChild(j); // one child
parent.connectChild(j+1, temp); // to the right
}
// connect newRight to parent
parent.connectChild(itemIndex+1, newRight);
// deal with newRight
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean isFull() {\n\t\tif(nodeCount == this.MAX_SIZE) return true; \n\t\telse return false;\n\t}",
"private int size(Node node) {\n if (node == null) return 0;\n else return node.size;\n }",
"@Override\n public boolean isFull() {\n return false;\n }",
"public boolean isFull() { return false; }",
"@Override\n public Node getFullNode() {\n return getBasicNode();\n }",
"@Override\n public int nodeSize() {\n return this.nodes.size();\n }",
"boolean isFull() {return pointer==size;}",
"@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}",
"@Override\n\tpublic int nodeSize() {\n\t\treturn this.Nodes.size();\n\t}",
"@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }",
"boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }",
"private int size(Node nodeX) {\n return nodeX == null ? 0 : nodeX.size;\n }",
"public boolean isFull() {\n return false;\n }",
"public int nodeSize()\n{\n\treturn getNodes().size();\n}",
"@Override\n public boolean isMissingNode() { return false; }",
"public boolean isFull() {\r\n\t\treturn false;\r\n\t}",
"public boolean isFull(){\n\t\treturn false;\n\t}",
"public boolean isFull() {\n\t\treturn false;\n\t}",
"@Override\n public boolean isFull(){\n return (count == size);\n \n }",
"public boolean isFull() {\r\n\t\treturn cur_index == size;\r\n\t}",
"public void deallocateNode(){\n this.processId = NO_PROCESS;\n this.full = false;\n }",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"@Override\n\tpublic int size() {\n\t\treturn nodeCount;\n\t}",
"void clickOnEmptyNode(Node node);",
"public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }",
"private int size(Node x) {\r\n if (x == null) return 0;\r\n else return x.size;\r\n }",
"public void setAsEmpty(){\n\t\tnodeStatus = Status.empty;\n\t\tunitNum=-1;\n\t}",
"@Override\n public boolean isEmpty() {\n return this.numNodes == 0;\n }",
"private int size(Node x) {\n\t\t\tif(x==null)return 0;\n\t\t\treturn x.N;\n\t\t}",
"public boolean isFull()\r\n\t\t{\r\n\t\t\tint count = 0;\r\n\t\t\tData currentData = head;\r\n\t\t\twhile (currentData != null)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\t\t\treturn (count > 2); //if the count is > 2 then it is full\r\n\t\t}",
"private boolean isTreeFull() {\n // The number of leaf nodes required to store the whole vector\n // (each leaf node stores 32 elements).\n int requiredLeafNodes = (totalSize >>> 5);\n\n // The maximum number of leaf nodes we can have in a tree of this\n // depth (each interior node stores 32 children).\n int maxLeafNodes = (1 << treeDepth);\n\n return (requiredLeafNodes > maxLeafNodes);\n }",
"@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }",
"@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }",
"public boolean isFull() {\n\t\treturn end != null;\n\t}",
"private int size(Node x) {\n if (x == null)\n return 0;\n return x.size;\n }",
"private int size(Node x) {\n if (x == null) return 0;\n else return x.N;\n }",
"@Override\n public int size() {\n return this.numNodes;\n }",
"private Node() {\n // Start empty.\n element = null;\n }",
"private void overflow(TFNode node) {\r\n if (node.getNumItems() > node.getMaxItems()) {\r\n split(node);\r\n }\r\n }",
"boolean isFull()\n\t{\n\t\treturn rear==size-1;\n\t}",
"public boolean isFull() {\n return size == cnt;\n }",
"private boolean isFull() {\n\t\treturn nbmsg==getSize();\n\t}",
"int size(BTNode node) {\n if (node == null) {\n return 0;\n }\n return 1 + size(node.left) + size(node.right);\n }",
"public boolean isAllocated(int node) {\n\t\t\treturn node < 0 || n2i[node] != Integer.MAX_VALUE;\n\t\t}",
"private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}",
"public boolean isFull() {\n\t\treturn(this.size == this.capacity);\n\t}",
"public int numberOfFullNodes() {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfFullNodes(root);\r\n\t}",
"@Override\n public boolean isFull() {\n return heapSize == heap.length;\n }",
"protected void notifyChildRemoval(FONode node) {\n //nop\n }",
"public void clear( CachedNode node );",
"public int size(){\n return nodes.size();\n }",
"Node(){\r\n\t\tdata = null;\r\n\t\tnext = null;\r\n\t}",
"public boolean checkEmpty() \n { \n return header.rightChild == nullNode; \n }",
"int getNodeCount();",
"int getNodeCount();",
"Node(){\n\t\t\tthis.array = new Node[256];\n\t\t\tthis.val = null;\n\t\t}",
"public abstract int getNodeRowCount();",
"boolean hasNextNode()\r\n\t{\n\t\tif (getLink() == null) return false;\r\n\t\telse return true;\r\n\t}",
"public boolean empty() {\n if(root==EXT_NODE) {\r\n \treturn true;\r\n }\r\n return false;\r\n }",
"public boolean isFull() {\n return (e+1)%buf.length == b;\n }",
"private boolean isFull(BinaryNode<AnyType> t)\r\n\t{\r\n\t\tif(t==null)\r\n\t\t\treturn true;\r\n\r\n\t\tif(t.left==null && t.right==null)\r\n\t\t\treturn true;\r\n\r\n\t\tif((t.left!=null)&&(t.right!=null))\r\n\t\t{\r\n\t\t\treturn(isFull(t.left)&&(isFull(t.right)));\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n public int getSize() {\n return nodos.size();\n }",
"public boolean isFull() {\n if((this.tail+1)%this.size==this.head)\n return true;\n return false;\n }",
"public boolean checkLastNodeStatus()\r\n {\r\n return visitedNodes.isEmpty();\r\n }",
"@Override\n public boolean isEmpty() {\n return (that.rootNode == null);\n }",
"public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }",
"@Override\n\tpublic int remainingCapacity() {\n\t\treturn 0;\n\t}",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public boolean hasNode() {\n return nodeBuilder_ != null || node_ != null;\n }",
"public boolean hasNode() {\n return nodeBuilder_ != null || node_ != null;\n }",
"private void addIfEmpty(Element e) {\n Node<Element> new_node = new Node<>(header, e, trailer);\n\n header.setNextNode(new_node);\n trailer.setPrevNode(new_node);\n }",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn getNumberOfNodes() == 0;\r\n\t}",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}",
"public boolean isFull() {\n\t\treturn numElements==data.length;\n\t}",
"public boolean isFull(){\n \treturn count==capacity;\n }",
"public Node(int id, int index, int size){\n processId = id;\n startIndex = index;\n this.size = size;\n this.full = true;\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\tif(nodeCount == 0) return true;\n\t\telse return false;\n\t}",
"@Override\r\n public void nodeActivity() {\n }",
"public void writeNode() throws IOException {\n // seek to end of file\n file.seek(offset);\n // write offset data\n file.writeLong(offset);\n // write numKeys data\n file.writeLong(numKeys);\n // write children offset\n for (int i = 0; i < children.length; i++){\n file.writeLong(children[i]);\n }\n // write key data\n for (int i = 0; i < keys.length; i++){\n if (keys[i] == null){\n file.writeLong(-1);\n file.writeInt(0);\n }\n else{\n file.writeLong(keys[i].getKey());\n file.writeInt(keys[i].getFrequency());\n }\n }\n\n //The node has been updated -- move it to the front of the cache\n if (cache != null){\n cache.addObject(this);\n }\n\n\n }",
"boolean hasNode();",
"boolean hasNode();",
"public int nodeCount(){\r\n\t\treturn size;\r\n\t}",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"boolean isFull();",
"@Override\r\n\tpublic boolean isFull() {\r\n\r\n\t\treturn data.size() >= maxQueue;\r\n\t}",
"public int totalNumNodes () { throw new RuntimeException(); }",
"private boolean ifFull() {\n return items.length == size;\n }",
"public boolean isFull()\n {\n return heapSize == heap.length;\n }",
"@Override\n\tpublic int getNodeCount()\n\t{\n\t\treturn nodeList.size();\n\t}"
] | [
"0.70723885",
"0.6490197",
"0.63891953",
"0.623055",
"0.61996055",
"0.61968046",
"0.61742854",
"0.61414963",
"0.6123844",
"0.6107496",
"0.6082286",
"0.6067285",
"0.6019729",
"0.6014874",
"0.6005006",
"0.59629536",
"0.59354824",
"0.59192836",
"0.5918045",
"0.5914214",
"0.59055585",
"0.5872436",
"0.5872436",
"0.5872436",
"0.5872436",
"0.5872436",
"0.5872436",
"0.5866753",
"0.58486384",
"0.5842513",
"0.58300686",
"0.58285743",
"0.58186305",
"0.58142984",
"0.58097535",
"0.5808837",
"0.5788281",
"0.5788281",
"0.5775941",
"0.57719356",
"0.57609046",
"0.5757018",
"0.5733129",
"0.5716227",
"0.5706563",
"0.5700666",
"0.5696092",
"0.5696062",
"0.5686111",
"0.56713754",
"0.56695026",
"0.5666674",
"0.5664401",
"0.566315",
"0.5652419",
"0.5642124",
"0.5612158",
"0.56062436",
"0.5605591",
"0.5605591",
"0.5598709",
"0.55955565",
"0.55953044",
"0.5593076",
"0.5591182",
"0.5581641",
"0.55808794",
"0.55768275",
"0.55721897",
"0.55674154",
"0.55629003",
"0.5559651",
"0.5554356",
"0.5552535",
"0.5552535",
"0.55499697",
"0.55476403",
"0.554452",
"0.55378973",
"0.5537688",
"0.55365336",
"0.55297875",
"0.5528716",
"0.5522608",
"0.55184627",
"0.55184627",
"0.5514859",
"0.5509894",
"0.5509894",
"0.5509894",
"0.5509894",
"0.5509894",
"0.5509894",
"0.5509894",
"0.5509894",
"0.5509894",
"0.5509501",
"0.5504827",
"0.55027",
"0.54960865",
"0.54920775"
] | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
view = inflater.inflate(R.layout.fragment_news, container, false);
init();
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.0 | -1 |
Set User attributes before test case start executing | @Before
public void setUp() {
questionDetail.setClosingReason("none");
questionDetail.setStatus("open");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setupUser() {\n }",
"@BeforeEach\n\t public void setUser() {\n\t\tpasswordEncoder=new BCryptPasswordEncoder();\n\t\tuser=new AuthUser();\n\t\tuser.setId(1L);\n\t\tuser.setFirstName(\"Mohammad\");\n\t\tuser.setLastName(\"Faizan\");\n\t\tuser.setEmail(\"[email protected]\");\n\t\tuser.setPassword(passwordEncoder.encode(\"faizan@123\"));\n\t\tuser.setAccountNonExpired(true);\n\t\tuser.setAccountNonLocked(true);\n\t\tuser.setCredentialsNonExpired(true);\n\t\tuser.setEnabled(true);\n\t\tSet<Role> roles=new HashSet<>();\n\t\tRole role=new Role();\n\t\trole.setId(1L);\n\t\trole.setName(\"USER\");\n\t\troles.add(role);\n\t\tuser.setRoles(roles);\n\t\t\n\t}",
"private void initUser() {\n\t}",
"private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }",
"@Before\n public void init() {\n user = new User();\n user.setId(5);\n user.setUsername(\"username\");\n user.setPassword(\"password\");\n user.setName(\"name\");\n user.setSurname(\"surname\");\n user.setCityId(1);\n user.setEmail(\"[email protected]\");\n user.setPhone(\"phone...\");\n JacksonTester.initFields(this, new ObjectMapper());\n }",
"@Before\n public void beforeClass(){\n\n UserNameAndPassword userNameAndPassword = new UserNameAndPassword();\n\n userNameAndPassword.addUserToList();\n\n }",
"@Before\n public void setUp() throws Exception {\n instance = new User();\n }",
"@Override\n @Before\n public void setUp() throws Exception {\n super.setUp();\n\n entityManager = getEntityManager();\n\n logger = Logger.getLogger(getClass());\n\n instance = new UserServiceImpl();\n TestsHelper.setField(instance, \"logger\", logger);\n TestsHelper.setField(instance, \"entityManager\", entityManager);\n TestsHelper.setField(instance, \"supervisorRoleName\", supervisorRoleName);\n TestsHelper.setField(instance, \"adminRoleName\", adminRoleName);\n }",
"public void initUser(ActiveSession user) {\n this.user = user;\n }",
"@Override\n \tpublic void setUp() throws Exception{\n \t\tLog.i(\"got to top of setup\", \"yay\");\n \t\t\n \t\tLog.i(\"solo\", \"created solo\");\n \t\t\n \t\tLog.i(\"user name\", \"set user name\");\n \t\tIntent i = new Intent();\n \t\ti.putExtra(\"groupname\", \"GroupForTestingOnly\");\n \t\ti.putExtra(\"gm\", \"UseForTestingOnly\");\n \t\tsetActivityIntent(i);\n \t\tsolo = new Solo(getInstrumentation(), getActivity());\n \t\tSaveSharedPreference.setPersistentUserName(getActivity(), VALID_USERNAME);\n \t\tLog.i(\"set the intent\", \"what?\");\n \t}",
"@BeforeAll\n public static void initAll() {\n emf = Persistence.createEntityManagerFactory(\"test-resource-local\");\n propertyName = User_.username.getName();\n emf.close();\n validator = Validation.buildDefaultValidatorFactory().getValidator();\n }",
"public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getProperty(\"chromeDriverPath\"));\r\n\t\tsetGeckoDriverPath(Config.getProperty(\"geckoDriverPath\"));\r\n\t\tsetIeDriverPath(Config.getProperty(\"ieDriverPath\"));\r\n\t}",
"@BeforeEach\n public void setUp() {\n testUserLoginRes = new LoginData(\n CURRENT_USER.getUserId(),\n CURRENT_USER.getPassword()\n );\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tvalidUser = new User();\n\t\tvalidUser.firstName = \"Foo\";\n\t\tvalidUser.lastName = \"Bar\";\n\t\tvalidUser.address = \"123 4th Street\";\n\t\tvalidUser.city = \"Calgary\";\n\t\tvalidUser.province = \"Alberta\";\n\t\tvalidUser.country = \"Canada\";\n\t\tvalidUser.email = \"[email protected]\";\n\t\tvalidUser.postalCode = \"H3Z2K6\";\n\t\tvalidUser.userName = \"foo\";\n\t\tvalidUser.setPassword(\"foobar\");\n\t}",
"@Before\n\tpublic void initialize() {\n\t\tuser_reg = new UserRegistration();\n\t}",
"@Override\r\n protected void setUp() throws Exception {\r\n super.setUp();\r\n\r\n userClientPK = new UserClientPK();\r\n }",
"public static void setUserDetails(UserSetup userSetup) {\n\n }",
"@BeforeEach\n void setUp() {\n //Database database = Database.getInstance();\n //database.createDatabase(\"adhound.sql\");\n userData = new UserData();\n\n newUser = new User(\"[email protected]\", \"testPassword\", \"testFirstName\", \"testLastName\", \"123-456-7890\", \"987-654-3210\", \"[email protected]\", \"123 Test Street\", \"testCity\", 33, \"12345\");\n\n ValidatorFactory factory = Validation.buildDefaultValidatorFactory();\n validator = factory.getValidator();\n }",
"@Before\n public void init() {\n Ebean.deleteAll(userQuery.findList());\n Ebean.deleteAll(userOptionalQuery.findList());\n \n userOptional = new OtoUserOptional();\n Ebean.save(userOptional);\n testUser = new OtoUser();\n testUser.setOptional(userOptional);\n Ebean.save(testUser);\n }",
"@Test\n public void validSetFlightInformation() {\n testUser.setUsername(\"username\");\n testUser.setLastName(\"lastname\");\n testUser.setPassword(\"password\");\n testUser.setFirstName(\"firstname\");\n\n Assertions.assertEquals(\"username\", testUser.getUsername());\n Assertions.assertEquals(\"lastname\", testUser.getLastName());\n Assertions.assertEquals(\"password\", testUser.getPassword());\n Assertions.assertEquals(\"firstname\", testUser.getFirstName());\n }",
"@Before\n public void fillSomeDataIntoOurDb() {\n entityManager.persist(user);\n }",
"@Test\n public void testSetUser() {\n System.out.println(\"setUser\");\n User user = null;\n ModelController instance = new ModelController();\n instance.setUser(user);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testSetUsername() {\n System.out.println(\"setName\");\n user.setUsername(\"maugv\");\n assertEquals(\"maugv\", user.getUsername());\n }",
"@BeforeEach\n public void setUp() throws ParseException {\n user.setUserId(1l);\n user.setFirstName(\"John\");\n user.setLastName(\"Doe\");\n user.setEmail(\"[email protected]\");\n user.setPassword(\"$2a$10$EblZqNptyYvcLm/VwDCVAuBjzZOI7khzdyGPBr08PpIi0na624b8.\");\n // user.setSecurityQuestion(\"Favorite numbers.\");\n // user.setSecurityAnswer(\"$2a$10$EblZqNptyYvcLm/VwDCVAuBjzZOI7khzdyGPBr08PpIi0na624b8.\");\n user.setDateCreated(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(\"1955-11-05 06:00:00\"));\n user.setLastLoginDate(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(\"1955-11-05 06:00:00\"));\n user.setAdminComments(\"John is a program participant.\");\n user.setIsEmailVerified(Boolean.TRUE);\n user.setIsAccountVerified(Boolean.TRUE);\n user.setIsLocked(Boolean.FALSE);\n // Setup validation of each method's validation annotations\n ValidatorFactory factory = Validation.buildDefaultValidatorFactory();\n validator = factory.getValidator();\n }",
"private void setUserData(){\n }",
"@BeforeMethod\n public void setUp() throws Exception {\n UserInterface.init();\n\n testUser = UserInterface.getUserInfo();\n testGoals = UserInterface.getGoals();\n Random rnd = new Random();\n\n if(testGoals.size() > 1) {\n randomGoalID = rnd.nextInt(testGoals.size() - 1);\n testGoal = testGoals.get(randomGoalID);\n }\n else {\n UserInterface.addGoal(\"ValidName\", \"ValidDesciption\");\n randomGoalID = 0;\n reloadTestGoal();\n }\n }",
"@BeforeEach\n\tpublic void setup() {\n\t\tuser= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username\", \n\t\t\t\t\"password\");\n\t\tuser_diverso= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username_diverso\", \n\t\t\t\t\"password\");\n\t\tuser_uguale= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username\", \n\t\t\t\t\"password\");\n\t\t\n\t\tfruitore =new Fruitore(user);\n\t\tfruitore_uguale =new Fruitore(user_uguale);\n\t\tfruitore_diverso =new Fruitore(user_diverso);\n\t}",
"@Before\n public void setup() {\n mockMvc = MockMvcBuilders.webAppContextSetup(webContext).build();\n\n regularUser = new User();\n regularUser.setUsername(\"regularUser\");\n regularUser.setPassword(\"testPassword1!\");\n regularUser.setRole(\"USER\");\n\n adminUser = new User();\n adminUser.setUsername(\"adminUser\");\n adminUser.setPassword(\"testPassword1!\");\n adminUser.setRole(\"ADMIN\");\n\n auth = mock(Authentication.class);\n securityContext = mock(SecurityContext.class);\n SecurityContextHolder.setContext(securityContext);\n }",
"@Before\r\n public void setup() {\r\n dbwMock.userId = \"testUser\";\r\n dbw = new DatabaseWrapper(dbwMock);\r\n\r\n context = ApplicationProvider.getApplicationContext();\r\n\r\n book = new Book();\r\n\r\n requester = new Profile();\r\n }",
"@Test\r\n public void testSetUserId() {\r\n System.out.println(\"setUserId\");\r\n int userId = 0;\r\n \r\n instance.setUserId(userId);\r\n assertEquals(userId , instance.getUserId());\r\n \r\n }",
"@BeforeClass\n\tpublic static void setUpClass(){\n\t\tserviceLang = new LocatorRemoteEjbServices().getServiceLanguage();\n\t\t\n\t\tuser = new User();\n\t\tserviceUser = new LocatorRemoteEjbServices().getServiceUser();\n\t}",
"@Before\r\n\tpublic void set_up(){\n\t}",
"@BeforeMethod\n\tpublic void testSetUp()\n\t{\n\t\tcommonUtilities.invokeBrowser();\n\t\tloginPage.login(ReadPropertiesFile.getPropertyValue(\"username\"), ReadPropertiesFile.getPropertyValue(\"password\"));\n\t}",
"@BeforeEach\n public void setup() {\n token = new TokenInfo();\n token.setNetid(\"lbecheanu\");\n token.setRole(\"student\");\n }",
"@Override\n public void setUp() throws Exception\n {\n transactionService = (TransactionService) ctx.getBean(\"TransactionService\");\n subscriptionService = (SubscriptionService) ctx.getBean(\"SubscriptionService\");\n personService = (PersonService) ctx.getBean(\"PersonService\");\n\n AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getSystemUserName());\n\n txn = transactionService.getNonPropagatingUserTransaction(false);\n txn.begin();\n\n createPerson(USER_BOB);\n createPerson(USER_TOM);\n createPerson(USER_LISA);\n }",
"protected void setUp() \r\n {\n System.out.println(\"Setting up User Test !\");\r\n \t//lProps = new Properties();\t\r\n //lProps.put(Context.INITIAL_CONTEXT_FACTORY,lContextFactory);\r\n //lProps.put(Context.PROVIDER_URL,lURL);\r\n //lProps.put(Context.URL_PKG_PREFIXES,lPrefixes);\r\n try\r\n {\r\n lProps.list(System.out);\r\n lIC = new InitialContext(lProps);\r\n //sLog.debug(\"Created Initial Context\");\r\n System.out.println(\"Created Initial Context-looking for UserHome\");\r\n Object homeObj = lIC.lookup(lJndiName);\r\n System.out.println(\"got Object!\");\r\n lHome = (UserHome) PortableRemoteObject.narrow(homeObj,UserHome.class); \r\n \r\n //lSessionHome = (PJVTProducerSessionHome) lIC.lookup(lJndiName);\r\n \r\n System.out.println(\"User Home:\"+lHome.toString());\r\n \r\n }\r\n catch(Throwable t)\r\n {\r\n t.printStackTrace();\r\n }\r\n\t}",
"@Before\n public void setUp() throws Exception {\n userDao = DatabaseAccess.createOracleDatabase().createUserDaoOperator();\n }",
"@Before\n public void setUp() throws IllegalAccessException {\n FieldUtils.writeDeclaredField(dtoConverter,\n \"defaultUsername\", \"testinguser\", true);\n FieldUtils.writeDeclaredField(dtoConverter,\n \"defaultLatitude\", 52.31, true);\n FieldUtils.writeDeclaredField(dtoConverter,\n \"defaultLongitude\", 85.10, true);\n\n when(user.username()).thenReturn(\"tester\");\n when(user.id()).thenReturn(0);\n\n when(location.latitude()).thenReturn(51.28f);\n when(location.longitude()).thenReturn(0.0f);\n }",
"@Before\r\n\tpublic void setUp(){\n\t\tSystem.out.println(this.context);\r\n\t\tSystem.out.println(this);\r\n\t\t//this.userdao = context.getBean(\"userDao\",UserDao.class);\r\n\t\t\r\n\r\n\t\tthis.user1 = new User(\"kimhk1\",\"김형국1\",\"kimhoung1\"); \r\n\t\tthis.user2 = new User(\"kimhk2\",\"김형국2\",\"kimhoung2\");\t\t\r\n\t\tthis.user3 = new User(\"kimhk3\",\"김형국3\",\"kimhoung3\");\t\t\r\n\t\t\r\n\t\tDataSource dataSource = new SConnectionMaker(\"jdbc:oracle:thin:@localhost:1521:ORCL\",\"scott\",\"tiger\");\r\n\t\tuserdao.setDataSource(dataSource);\r\n\t}",
"public void setCreateUser(User createUser)\r\n/* */ {\r\n/* 151 */ this.createUser = createUser;\r\n/* */ }",
"@Before\n public void SetUp()\n {\n Mockito.reset(userServiceMock);\n Mockito.clearInvocations(userServiceMock);\n mockMvc = MockMvcBuilders.webAppContextSetup(webConfiguration).build();\n }",
"@Override\n public void onStart(Application app) {\n if (User.find.findRowCount() == 0) {\n Ebean.save((List<?>) Yaml.load(\"initial-data.yml\"));\n }\n initializeVerificationDetails();\n }",
"private void loadUserData() {\n\t\tuserData = new UserData();\n }",
"void setPassedUser(User passedUser);",
"@BeforeClass\n public void setUp() {\n userRepo.deleteAll();\n roleRepo.deleteAll();\n permissionRepo.deleteAll();\n // define permissions\n final Permission p1 = new Permission();\n p1.setName(\"VIEW_USER_ROLES\");\n permissionRepo.save(p1);\n // define roles\n final Role roleAdmin = new Role();\n roleAdmin.setName(\"ADMIN\");\n roleAdmin.getPermissions().add(p1);\n roleRepo.save(roleAdmin);\n // define user\n final User user = new User();\n user.setActive(true);\n user.setCreated(System.currentTimeMillis());\n user.setEmail(USER_EMAIL);\n user.setName(USER_NAME);\n user.setPassword(passwordService.encryptPassword(USER_PWD));\n user.getRoles().add(roleAdmin);\n user.setSolde(BigDecimal.valueOf(100.0));\n userRepo.save(user);\n\n }",
"@Before\n public void init() throws MxException {\n InjectorContainer.get().injectMembers( this );\n InjectorContainer.set( iInjector );\n testTaskDefinitionResource.setEJBContext( ejbContext );\n\n setAuthorizedUser( AUTHORIZED );\n setUnauthorizedUser( UNAUTHORIZED );\n\n initializeTest();\n\n Mockito.when( ejbContext.getCallerPrincipal() ).thenReturn( principal );\n Mockito.when( principal.getName() ).thenReturn( AUTHORIZED );\n constructTaskDefinitions();\n }",
"private UserPrefernce(){\r\n\t\t\r\n\t}",
"@Before\n\tpublic void init() {\n\t\tuserDao=new UsersDAO();\n\t\tentityManager=mock(EntityManager.class);\n\t\tuserDao.setEntityManager(entityManager);\n\t\t\n\t}",
"@Test\n public void testSetUserId1() {\n user1.setUserId(1);\n assertEquals(\"Id should be 1\", 1, user1.getUserId());\n }",
"protected void setUp() {\r\n auditDetail = new AuditDetail();\r\n }",
"@Before\n public void setup() {\n PowerMockito.mockStatic(FacesContext.class);\n when(FacesContext.getCurrentInstance()).thenReturn(fc);\n\n PowerMockito.mockStatic(ExternalContext.class);\n when(fc.getExternalContext()).thenReturn(ec);\n\n navigationBean = new NavigationBean();\n\n sessionUser = new SessionUserBean();\n sessionUser.setUserID(SAMPLE_ID);\n sessionUser.setLanguage(SAMPLE_LANGUAGE);\n navigationBean.setSessionUser(sessionUser);\n }",
"@Before\n public void setup(){\n\n mockUserRepo = mock(UserRepository.class);\n mockSession = mock(UserSession.class);\n mockValidator = mock(InputValidator.class);\n sut = new UserService( mockUserRepo, mockSession, mockValidator);\n\n }",
"public void initData(UserManager userManager) {\n this.userManager = userManager;\n }",
"@BeforeMethod\n\tpublic void NavigateToCreateUserTest() {\n\t\ttry {\n\t\t\tassertTrue(CreateUserCukes.clickCreateUserTab(wd));\n\t\t\tassertTrue(CreateUserCukes.loadedCreateUserTab(wd));\n\n\t\t} catch (Throwable e) {\n\t\t\tfail(\"Error: Failed to navigate to Create User tab\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Before\n public void setup() throws Exception {\n this.mvc = webAppContextSetup(webApplicationContext).build();\n userRepository.deleteAll();\n //roleRepository.deleteAll();\n User joe = new User(\"joe\", \"1234\", \"admin\");\n User andy = new User(\"andy\", \"1234\", \"admin\");\n //roleRepository.save(new Role(\"ROLE_ADMIN\"));\n //roleRepository.save(new Role(\"ROLE_USER\"));\n userRepository.save(joe);\n userRepository.save(andy);\n Mockito.when(userRepository.findByUsername(joe.getUsername())).thenReturn(joe);\n Mockito.when(userRepository.findByUsername(andy.getUsername())).thenReturn(andy);\n }",
"@BeforeClass\n\tpublic static void setUp() {\n\t\tuserRepository = Mockito.mock(UserRepository.class);\n\t\tuserService = new UserService(userRepository);\n\t}",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"@BeforeClass\n\tpublic static void setUpValues() throws Exception {\n\t\tl = new Login();\n\t}",
"@Override\r\n\t@BeforeTest\r\n\tpublic void startSetting() {\n\t\tSystem.out.println(\"开始系统设置测试\");\r\n\t}",
"@PostConstruct\n public void initUsers() {\n List<MyUser> users = Stream.of(\n new MyUser(\"1\",\"Vaibhav\",\"Vaibhav\"),\n new MyUser(\"2\",\"Abhishek\",\"Abhishek\"),\n new MyUser(\"3\",\"admin\",\"admin\")\n ).collect(Collectors.toList());\n repository.saveAll(users);\n }",
"@BeforeClass\n public void setUp() {\n userRepo.deleteAll();\n roleRepo.deleteAll();\n permissionRepo.deleteAll();\n // define permissions\n final Permission p1 = new Permission();\n p1.setName(\"VIEW_USER_ROLES\");\n permissionRepo.save(p1);\n // define roles\n final Role roleAdmin = new Role();\n roleAdmin.setName(\"ADMIN\");\n roleAdmin.getPermissions().add(p1);\n roleRepo.save(roleAdmin);\n // define user\n final User user = new User();\n user.setActive(true);\n user.setCreated(System.currentTimeMillis());\n user.setEmail(USER_EMAIL);\n user.setName(USER_NAME);\n user.setPassword(passwordService.encryptPassword(USER_PWD));\n user.getRoles().add(roleAdmin);\n userRepo.save(user);\n }",
"private void initObjects() {\n inputValidation = new InputValidation(activity);\n databaseHelper = new DatabaseHelper(activity);\n user = new User();\n }",
"public void setUser(User user) { this.user = user; }",
"@BeforeClass (alwaysRun = true)\n public void dataPreparation()\n {\n serverHealth.isServerReachable();\n serverHealth.assertServerIsOnline();\n\n // Before we start testing the live indexing we need to use the reindexing component to index the system nodes.\n Step.STEP(\"Index system nodes.\");\n AlfrescoStackInitializer.reindexEverything();\n\n Step.STEP(\"Create a test user and private site.\");\n testUser = dataUser.createRandomTestUser();\n testSite = helper.createPrivateSite(testUser);\n }",
"@Before\n public void initBeforeEach() throws RegistrationFailedException, LoginFailedException {\n\n AuthenticationFacade authenticationFacade = serviceRegistry.getAuthenticationFacade();\n\n RegisterCommand registerCommand = RegisterCommand\n .builder()\n .clearTxtPassword(password)\n .confirmationClearTxtPassword(password)\n .username(username)\n .email(email)\n .build();\n\n authenticationFacade.register(registerCommand);\n\n // Get the id of the user Chau\n\n LoginCommand loginCommand = LoginCommand.builder()\n .clearTxtPassword(password)\n .username(username)\n .build();\n\n currentUserDTO = authenticationFacade.login(loginCommand);\n }",
"private final void doSetup() {\r\n \tsetEnvironmentVariables();\r\n \t\r\n \tcreateAppWindows();\r\n \t\r\n \tcreateAppPages();\r\n\r\n \t//Set the default resource bundle. This necessary even for non-L10N tests, because even they\r\n \t// need to call localizeFieldLocators()\r\n\t\tsetResourceBundle(DDConstants.DEFAULT_L10N_BUNDLE);\r\n\t\t\r\n\t\t//MUST be called after super.setup!!!\r\n \t//NOTE that ddUser is the equivalent of a user that is found in the setup screen.\r\n \t// The user that logs in to the app is known as the auto user. Until we figure out\r\n \t// whether that model applies, don't call this.\r\n \t//setDDUser();\r\n }",
"@Before\n public void setUp() {\n if (userRepository.count() > 0)\n return;\n List<Home> homes = new ArrayList<Home>();\n for (int i = 0; i < 4; i++) {\n Home home = new Home();\n home.setTown(\"town\" + i);\n home = homeRepository.save(home);\n homes.add(home);\n }\n for (int i = 0; i < 24; i++) {\n User user = new User();\n user.setUsername(\"john\" + i);\n user.setRole(UserRole.values()[i % 3]);\n user.setStatus(UserStatus.values()[i % 2]);\n if (i > 3)\n user.setHome(homes.get(i % 4));\n user.setVisible(i % 2 == 0);\n userRepository.save(user);\n }\n }",
"@Before\r\n public void initTestMethod(){\r\n entityManager = entityManagerFactory.createEntityManager();\r\n entityTransaction = entityManager.getTransaction();\r\n \r\n entityTransaction.begin();\r\n Post post = new Post();\r\n post.setUserId(1l);\r\n post.setCreatedAt(new GregorianCalendar(2015,5,7).getTime());\r\n post.setDescription(\"PEOPLE ARE BAD AT TAKING OVER FROM AUTONOMOUS CARS.\");\r\n post.setLikes(5);\r\n \r\n assertNotNull(\"User object is initialized.\", post);\r\n assertSame(\"User ID is same\", 1l, post.getUserId());\r\n entityManager.persist(post);\r\n entityTransaction.commit(); \r\n\r\n \r\n \r\n }",
"@BeforeClass(alwaysRun = true)\n public void beforeClass() {\n JdiSite.homePage.open();\n JdiSite.login(User.PETER);\n }",
"public void setUser(UserModel param) {\n localUserTracker = true;\n\n this.localUser = param;\n }",
"public void setUser(UserModel param) {\n localUserTracker = true;\n\n this.localUser = param;\n }",
"public void setUser(UserModel param) {\n localUserTracker = true;\n\n this.localUser = param;\n }",
"private void initUserInstance(User user){\n Fridge fridge = DatabaseHelper.getDatabaseInstance().takeFridgeOfUser(user);\n //print the printable\n Log.i(\"login_fridge\", fridge.toString());\n //assign fridge to user\n user.setFridge(fridge);\n\n //populate Instance class with current user\n Instance.getSingletonInstance().setCurrentUser(user);\n }",
"@Override\r\n\t@BeforeMethod\r\n\tpublic void initSetting() {\n\t\tSystem.out.println(\"start\");\r\n\t\toTest.initSetting();\r\n\t}",
"@PrePersist\n void beforeInsert() {\n System.out.println(\"SETTING DEFAULT VALUES FOR USER\");\n emailConfirmed = false;\n deleted = false;\n _2FaEnabled = false;\n verificationToken = VerificationTokenGenerator.generateVerificationToken();\n }",
"@Before\r\n\t public void setUp(){\n\t }",
"@Test\n public void testSetUsername() {\n System.out.println(\"setUsername\");\n String username = \"\";\n Manager instance = new Manager();\n instance.setUsername(username);\n \n fail(\"The test case is a prototype.\");\n }",
"@Before\n public void setup() {\n //用于初始化@Mock注解修饰的组件\n MockitoAnnotations.initMocks(this);\n\n requestVO = new RoleRequestVO();\n requestVO.setName(\"ROLE_ADMIN\");\n\n role = new Role();\n role.setName(\"ROLE_ADMIN\");\n role.setId(new Random().nextLong());\n }",
"public void flagUser() {\n\t\tsuper.flagUser();\n\t}",
"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 }",
"protected final void runAsUser( String userName ) {\n authenticationTestingUtil.switchToUser( this.applicationContext, userName );\n }",
"protected void runBeforeTest() {}",
"@Test\n public void testSetUsername1() {\n user1.setUsername(\"a\");\n assertEquals(\"Username should be a\", \"a\", user1.getUsername());\n }",
"@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }",
"@BeforeGroups(groups = { \"NewUser\" }, value = { \"NewUser\" })\n public void preNewUser(ITestContext itc) {\n System.out.println(\"BEFOREGROUPS perfroming pre groups init\");\n// m_inj = Guice.createInjector(new JUnitModule(), new RequestModule(),\n// new GenericModule(), new SecurityModule());\n// itc.setAttribute(\"injector\", m_inj);\n }",
"@BeforeMethod\n\tpublic void setup() {\n\t\tinitialization();\n\t\tloginpage = new LoginPage();\n\t\tcontactpage=new ContactPage();\n\t\ttestutil = new TestUtil();\n\t\thomepage=loginpage.login(prop.getProperty(\"username\"), prop.getProperty(\"password\"));\n\t}",
"@Override\n public boolean preHandle(HttpServletRequest request, HttpServletResponse response,\n Object handler) throws Exception {\n String testUser = request.getParameter(\"testUser\");\n if (testUser == null || testUser.isEmpty()\n || testUser.equalsIgnoreCase(\"undefined\")) {\n testUser = \"default\";\n }\n Map<String, String> userAttrs = m_userAttributes.get(testUser);\n String user = userAttrs.get(\"username\");\n String group = userAttrs.get(\"usergroup\");\n WebUtils.setSessionAttribute(request, \"currentuser\", user);\n WebUtils.setSessionAttribute(request, \"currentgroup\", group);\n return true;\n }",
"public void setCreateUser(String newVal) {\n if ((newVal != null && this.createUser != null && (newVal.compareTo(this.createUser) == 0)) || \n (newVal == null && this.createUser == null && createUser_is_initialized)) {\n return; \n } \n this.createUser = newVal; \n\n createUser_is_modified = true; \n createUser_is_initialized = true; \n }",
"private void initialData() {\n\n// if (MorphiaObject.datastore.createQuery(SecurityRole.class).countAll() == 0) {\n// for (final String roleName : Arrays\n// .asList(controllers.Application.USER_ROLE)) {\n// final SecurityRole role = new SecurityRole();\n// role.roleName = roleName;\n// MorphiaObject.datastore.save(role);\n// }\n// }\n }",
"@Before public void setUp() { }",
"@BeforeMethod\n\tpublic void setup()\n\t{\n\t\tinitialization();\n\t\tlogin_page=new Loginpage();\n\t\thome_page=login_page.verifylogin(prop.getProperty(\"username\"), prop.getProperty(\"password\"));\t\n\t}",
"@Test\r\n public void testSetUserOccupation()\r\n {\r\n System.out.println(\"setUserOccupation\");\r\n String userOccupation = \"Nurse\";\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setUserOccupation(userOccupation);\r\n assertEquals(userOccupation, instance.getUserOccupation());\r\n }",
"public static void test(User user) {\n\t\t User u=new User();\n\t\t u=user;\n\t\t u.setName(\"ruoshui\");\n\t }",
"protected void init() {\n setUUIDString();\n setNoteCreatedAt();\n setNoteUpdatedAt();\n setCreator(ParseUser.getCurrentUser());\n addAuthor(ParseUser.getCurrentUser());\n setACL(new ParseACL(ParseUser.getCurrentUser()));\n }",
"@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }",
"@Override\r\n\t@Before\r\n\tpublic void testInit() {\t\r\n\t\tsuper.testInit();\r\n\t\tsessionController.login(testHospitalAdmin, getCampus(0));\r\n\t\tadminController.addDoctor(\"Frank\");\r\n\r\n\t\tsessionController.login(testC1Nurse1, getCampus(0));\r\n\t\ttestPatient2 = nurseController.registerNewPatient(\"Bob\");\r\n\t\ttestPatient3 = nurseController.registerNewPatient(\"Clair\");\r\n\t\ttestPatient4 = nurseController.registerNewPatient(\"Dennis\");\r\n\t\ttestPatient5 = nurseController.registerNewPatient(\"Eric\");\r\n\t\t\r\n\t}",
"@Before\n\t public void setUp() {\n\t }",
"public static void setUp(boolean userIdIsNumber, ServiceCacherInterface cacheManager, AccessControllerInterface securityGuard,\n\t\t\tServicePrePostProcessorInterface prePostProcessor, boolean simulateWithData) {\n\n\t\tlogger.info(\"Service Agent is being set-up......\");\n\t\tinstance = new ServiceAgent(userIdIsNumber, cacheManager, securityGuard, prePostProcessor, simulateWithData);\n\t\tif (userIdIsNumber) {\n\t\t\tDUMMY_USER = Value.newIntegerValue(100);\n\t\t} else {\n\t\t\tDUMMY_USER = Value.newTextValue(\"100\");\n\t\t}\n\t\tif (simulateWithData) {\n\t\t\tlogger.info(\n\t\t\t\t\t\"Service Agent is set up to use local data to simulate service execution. Service actions will be ignored\");\n\t\t}\n\n\t}",
"@BeforeClass\n public static void classSetUp() {\n printTestClassHeader();\n uri = Const.ActionURIs.ADMIN_INSTRUCTORACCOUNT_ADD;\n // removeAndRestoreTypicalDataInDatastore();\n }"
] | [
"0.7615263",
"0.74385816",
"0.7315453",
"0.7196731",
"0.692136",
"0.69133013",
"0.69030267",
"0.6851184",
"0.6778803",
"0.67591965",
"0.67445844",
"0.66783565",
"0.66747624",
"0.66435456",
"0.66315186",
"0.660014",
"0.6575282",
"0.65661687",
"0.65052533",
"0.64411515",
"0.6438104",
"0.6419147",
"0.6407093",
"0.638772",
"0.638228",
"0.6371369",
"0.6371267",
"0.6358762",
"0.63466966",
"0.62989265",
"0.6278385",
"0.6271989",
"0.6254264",
"0.62419116",
"0.62300414",
"0.6222704",
"0.6206691",
"0.6184166",
"0.61700416",
"0.6160933",
"0.6149557",
"0.6143628",
"0.6132032",
"0.61188465",
"0.6112101",
"0.6082507",
"0.6078925",
"0.6073383",
"0.6056862",
"0.60449815",
"0.6044384",
"0.6037937",
"0.6034681",
"0.6019701",
"0.6008194",
"0.6004946",
"0.600306",
"0.600306",
"0.600306",
"0.5991263",
"0.5987032",
"0.598206",
"0.5980611",
"0.5979356",
"0.59765214",
"0.59754443",
"0.59748787",
"0.5974697",
"0.59721017",
"0.59698856",
"0.5967888",
"0.5966427",
"0.5966427",
"0.5966427",
"0.59624535",
"0.5947475",
"0.59380764",
"0.59267527",
"0.59264904",
"0.5921523",
"0.5920272",
"0.59131837",
"0.5907128",
"0.59061766",
"0.5903968",
"0.5899984",
"0.5893496",
"0.5886184",
"0.58798754",
"0.5878292",
"0.5874981",
"0.58722",
"0.58705664",
"0.58704793",
"0.58693415",
"0.58689076",
"0.5867055",
"0.58632433",
"0.58618116",
"0.58611",
"0.58501655"
] | 0.0 | -1 |
Base callback to process API responses | public interface APIRequestCallback {
/**
* Success callback. Request is considered as successful when response code is between 200 and 299
*
* @param responseCode Response code, from 200 to 299
* @param response Serialized response of type or null in case when response could not be serialized into json element
*/
void onSuccess(int responseCode, int requestCode, Response<JsonElement> response);
/**
* General failure callback
*
* @param errorDetails {@link GoSellError} representing a failure reason
*/
void onFailure(int requestCode, GoSellError errorDetails);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Response callback() throws Exception;",
"@Override\n public void onResponse(JSONObject response) {\n processResponse(response);\n }",
"@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}",
"@Override\n public void onResponse(ArrayList<DummyObject> dummyObjectArrayList) {\n onApiResponse(dummyObjectArrayList);\n }",
"@Override\n\tpublic void handleResponse() {\n\t\t\n\t}",
"public void onResponse(Response response) throws Exception;",
"@Override\n public void onResponse(String response, int id) {\n processData(response);\n\n }",
"public interface ResponseCallback {\r\n\t\t/**\r\n\t\t * Callback invoked when a response is returned by the request\r\n\t\t * @param response The returned response\r\n\t\t */\r\n\t\tpublic void onResponse(Response response) throws Exception;\r\n\t}",
"public abstract void actionReal(HttpResponseCallback callback);",
"@Override\n public void processResult(HttpResponseMessage response) {\n }",
"private JsonNode processCallbackResponse(final JsonNode resp) {\n if (this.callbackHandler == null) {\n throw new JsiiException(\"Cannot process callback since callbackHandler was not set\");\n }\n\n Callback callback = JsiiObjectMapper.treeToValue(resp.get(\"callback\"), NativeType.forClass(Callback.class));\n\n JsonNode result = null;\n String error = null;\n try {\n result = this.callbackHandler.handleCallback(callback);\n } catch (Exception e) {\n if (e.getCause() instanceof InvocationTargetException) {\n error = e.getCause().getCause().getMessage();\n } else {\n error = e.getMessage();\n }\n }\n\n ObjectNode completeResponse = JsonNodeFactory.instance.objectNode();\n completeResponse.put(\"cbid\", callback.getCbid());\n if (error != null) {\n completeResponse.put(\"err\", error);\n }\n if (result != null) {\n completeResponse.set(\"result\", result);\n }\n\n ObjectNode req = JsonNodeFactory.instance.objectNode();\n req.set(\"complete\", completeResponse);\n\n return requestResponse(req);\n }",
"private JsonNode processCallbackResponse(final JsonNode resp) {\n if (this.callbackHandler == null) {\n throw new JsiiError(\"Cannot process callback since callbackHandler was not set\");\n }\n\n Callback callback = JsiiObjectMapper.treeToValue(resp.get(\"callback\"), NativeType.forClass(Callback.class));\n\n JsonNode result = null;\n String error = null;\n String name = null;\n try {\n result = this.callbackHandler.handleCallback(callback);\n } catch (Exception e) {\n if (e.getCause() instanceof InvocationTargetException) {\n error = e.getCause().getCause().getMessage();\n } else {\n error = e.getMessage();\n }\n\n name = e instanceof JsiiError\n ? JsiiException.Type.JSII_FAULT.toString()\n : JsiiException.Type.RUNTIME_ERROR.toString();\n }\n\n ObjectNode completeResponse = JsonNodeFactory.instance.objectNode();\n completeResponse.put(\"cbid\", callback.getCbid());\n if (error != null) {\n completeResponse.put(\"err\", error);\n completeResponse.put(\"name\", name);\n }\n if (result != null) {\n completeResponse.set(\"result\", result);\n }\n\n ObjectNode req = JsonNodeFactory.instance.objectNode();\n req.set(\"complete\", completeResponse);\n\n return requestResponse(req);\n }",
"@Override\n\t\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\t\n\t\t\t\t}",
"public interface ApiCallback {\n\n void apiCompleted(UploadStatusApiResponse response);\n}",
"@Override\n\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n public void onResponse(JSONArray response) {\n parseData(response, requestCount);\r\n }",
"public interface HandleResponse {\n void downloadComplete(String output, DownloadImageJson.TaskType task);\n void imageDownloadComplete(float scale_x, float scale_y);\n void removeFromTtsList(Boundary b);\n void setUsername(String output);\n}",
"@Override\n public void onResponse(Response response) throws IOException {\n }",
"@Override\n public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) {\n }",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\n public void onResponse(String response) {\n }",
"public void onApiRequestSuccess(T result);",
"@Override\n public void onResponse(String response) {\n finalData(response);\n }",
"public void onRequestResponse(Response response) { }",
"@Override\n public void onResponse(JSONArray response) {\n parseData(response);\n }",
"@Override\n public void onResponse(String response) {\n }",
"@Override\n public void onResponse(String response) {\n }",
"@Override\n public void onResponse(String response) {\n }",
"@Override\n public void onResponse(String response)\n {\n\n }",
"@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }",
"@Override\n public void onResponse(String response) {\n }",
"@Override\n public void onResponse(String response) {\n }",
"@Override\n public void onResponse(JSONArray response) {\n ;\n }",
"@Override\n\t\t\t\t\t\tpublic void onResponse(String response) {\n\t\t\t\t\t\t\tparseRespense(response);\n\t\t\t\t\t\t}",
"private CallResponse() {\n initFields();\n }",
"void onResponse(String response, int requestId);",
"public interface BaseResponseListener<T,F> {\n void onParseSuccess(Response<F> response);\n\n void onRequestErrorCode(int errorCode);\n}",
"@Override\n\t\t\t\t\tpublic void onResponse(String response) {\n\n\t\t\t\t\t}",
"void callback(RequestResult rResult, String error);",
"@Override\n public void onResponse(JSONObject response) {\n procesarRespuesta(response);\n Log.i(TAG, \"processanddo respuesta...\" + response);\n }",
"public interface AsyncResponse\n{\n void onAsyncJsonFetcherComplete(int mode, JSONArray json, boolean jsonException);\n}",
"@Override\n public void onResponse(String response) {\n Utils.logApiResponseTime(calendar, tag + \" \" + url);\n mHandleSuccessResponse(tag, response);\n\n }",
"@Override\n public void onResponse(JSONObject jsonObject)\n {\n }",
"public abstract void onReceiveResponse(ExchangeContext context);",
"public interface MyCallbackInterface {\n //its supposed to send the JSON object on request completed\n void onRequestCompleted(JSONArray result);\n }",
"public interface APICallBack {\n public void run(JSONArray array);\n}",
"public interface ResponseCallback<T> {\n void onResponse(T result);\n}",
"public interface AsyncResponse {\n void processFinish(HttpJson output);\n}",
"public interface API_CallBack {\n\n void ArrayData(ArrayList arrayList);\n\n void OnSuccess(String responce);\n\n void OnFail(String responce);\n\n\n}",
"public void parseResponse();",
"public abstract void handle(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ApiException, IOException;",
"@Override\n public void containerResponse(BaseResponse parameters) {\n }",
"@Override\n public void onResponse(Call<Response> call, retrofit2.Response<Response> response) {\n }",
"public interface AsyncResultsResponse {\n void processResult(ArrayList<HashMap<String, String>> resultList, int flag);\n}",
"public abstract void handle(Request request, Response response) throws Exception;",
"void setCallback(IResponseCallback<WalletDataDecl.ListResultTmpl<Response>> cb);",
"@Override\n public void onResponse(String response) {\n if(null != listener){\n listener.onComplete(mRespHandler.parse(response));\n }\n }",
"public abstract Response[] collectResponse();",
"@Override\n public void onResponse(JSONObject response) {\n\n if (callbackFunction == METHOD_CALLBACK_LOGIN)\n processResponse(response);\n else if (callbackFunction == METHOD_CALLBACK_PASSWORD)\n processResponsePwd(response,alert,mView);\n else\n processResponsePwd2(response,alert,mView);\n\n }",
"@Override\r\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n\r\n\r\n }",
"void onCompleted(T response);",
"@Override\n public void onResponse(String response) {\n System.out.println(\"Recieved Response: \" + response);\n }",
"@Override\n\tpublic void onParser(JSONArray response) {\n\n\t}",
"public interface IApiCallback {\n void success(List<Beauty> beauties);\n\n void failure(Throwable e);\n\n void cancel();\n\n void networkError();\n}",
"@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}",
"void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data);",
"protected void adaptResponse(Response response, IndexShard indexShard) {\n\n }",
"@Override\n public void onResponse(String response) {\n parseData(url, response);\n }",
"public interface ArtistResponseListener {\n\t// you can define any parameter as per your requirement\n\tpublic void callbackArtistResponse(List<Artist>artistList);\n}",
"public interface EPAsyncResponseListener {\n public void getJokesfromEndpoint(String result);\n}",
"public interface ResponseCallback {\n void onSucceed(String tag, ResultDataBean resultDataBean);\n void error(String tag,String errorMessage );\n //TODO 如果需要可以把一下加上\n// void onFailed(String tag);\n// void onFinish(String tag);\n// void onStart(String tag);\n}",
"void onResponse(Call<T> call, T response);",
"@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n String decoded = null;\n try {\n decoded = new String(response, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n Log.d(TAG, \"API call onSuccess = \" + statusCode + \", Headers: \" + headers[0] + \", response.length: \" + response.length +\n \", decoded:\" + response);\n userDidLeave();\n }",
"public interface ResultCallback {\n public void onsuccess(Response response);\n public void onfail(Exception e);\n}",
"@Override\n public void onResponse(String response) {\n Log.i(Constant.TAG_MAIN, \"Get JSON respone: \" + response);\n\n }",
"public interface AsyncResponse {\n void processFinish(double calories, double date);\n}",
"public interface RequestCallback {\n void callback(String response);\n}",
"@Override\n\tpublic void onResponse(BaseResponse baseResp) {\n\t\tSystem.out.println(\"onResponse() --> baseResp.toString() = \" + baseResp.toString()); \n System.out.println(\"onResponse() --> baseResp.errCode = \" + baseResp.errCode); \n System.out.println(\"onResponse() --> baseResp.errMsg = \" + baseResp.errMsg); \n System.out.println(\"onResponse() --> baseResp.reqPackageName = \" + baseResp.reqPackageName); \n System.out.println(\"onResponse() --> baseResp.transaction = \" + baseResp.transaction); \n switch (baseResp.errCode) {\n case WBConstants.ErrorCode.ERR_OK:\n Toast.makeText(this, \"成功!!\", Toast.LENGTH_LONG).show();\n break;\n case WBConstants.ErrorCode.ERR_CANCEL:\n Toast.makeText(this, \"用户取消!!\", Toast.LENGTH_LONG).show();\n break;\n case WBConstants.ErrorCode.ERR_FAIL:\n Toast.makeText(this, baseResp.errMsg + \":失败!!\", Toast.LENGTH_LONG).show();\n break;\n }\n\n\t}",
"public interface ApiCallBack {\n void onSuccess(ApiResponse response);\n void onFailure();\n}",
"@Override\n public void onResponseSuccess(final String resp) {\n }",
"@Override\n protected void deliverResponse(JSONObject response) {\n listener.onResponse(response);\n System.out.println(\"response \"+response);\n }",
"public interface Api {\n\n @GET(Constants.DATA)\n void getData(Callback<FiveHundResponse> callback);\n\n}",
"public interface ResponseHandlerInterface {\n\n /**\n * Returns data whether request completed successfully\n *\n * @param response HttpResponse object with data\n * @throws java.io.IOException if retrieving data from response fails\n */\n void sendResponseMessage(HttpResponse response) throws IOException;\n\n /**\n * Notifies callback, that request started execution\n */\n void sendStartMessage();\n\n /**\n * Notifies callback, that request was completed and is being removed from thread pool\n */\n void sendFinishMessage();\n\n /**\n * Notifies callback, that request (mainly uploading) has progressed\n *\n * @param bytesWritten number of written bytes\n * @param bytesTotal number of total bytes to be written\n */\n void sendProgressMessage(int bytesWritten, int bytesTotal);\n\n /**\n * Notifies callback, that request was cancelled\n */\n void sendCancelMessage();\n\n /**\n * Notifies callback, that request was handled successfully\n *\n * @param statusCode HTTP status code\n * @param headers returned headers\n * @param responseBody returned data\n */\n void sendSuccessMessage(int statusCode, Header[] headers, byte[] responseBody);\n\n /**\n * Returns if request was completed with error code or failure of implementation\n *\n * @param statusCode returned HTTP status code\n * @param headers returned headers\n * @param responseBody returned data\n * @param error cause of request failure\n */\n void sendFailureMessage(int statusCode, Header[] headers, byte[] responseBody, Throwable error);\n\n /**\n * Notifies callback of retrying request\n *\n * @param retryNo number of retry within one request\n */\n void sendRetryMessage(int retryNo);\n\n /**\n * Returns URI which was used to request\n *\n * @return uri of origin request\n */\n public URI getRequestURI();\n\n /**\n * Returns Header[] which were used to request\n *\n * @return headers from origin request\n */\n public Header[] getRequestHeaders();\n\n /**\n * Helper for handlers to receive Request URI info\n *\n * @param requestURI claimed request URI\n */\n public void setRequestURI(URI requestURI);\n\n /**\n * Helper for handlers to receive Request Header[] info\n *\n * @param requestHeaders Headers, claimed to be from original request\n */\n public void setRequestHeaders(Header[] requestHeaders);\n\n /**\n * Can set, whether the handler should be asynchronous or synchronous\n *\n * @param useSynchronousMode whether data should be handled on background Thread on UI Thread\n */\n void setUseSynchronousMode(boolean useSynchronousMode);\n\n /**\n * Returns whether the handler is asynchronous or synchronous\n *\n * @return boolean if the ResponseHandler is running in synchronous mode\n */\n boolean getUseSynchronousMode();\n}",
"void faild_response();",
"public void setResponseCallback(ApiCallback callback) {\n responseCallback = callback;\n }",
"@Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }",
"@MainThread\n @SuppressWarnings(\"WeakerAccess\")\n protected void onSuccess(@NonNull final BaseResponse<R, E, D> baseResponse) {\n onCallback(baseResponse);\n }",
"public interface OnRestCallback {\n void onNetSuccess(int requestCode, int responseCode, String data);\n void onNetError(int requestCode, int responseCode, String error);\n}",
"void onRequestCompleted(JSONArray result);",
"public interface OnJSONObjectResponseListener {\n\n void onResponse(JSONObject response, String errorMessage);\n}",
"@Override\r\n\t\t\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t\t\tlistonResponse(arg0);\r\n\t\t\t\t\t\trefreshView.onRefreshComplete();\r\n\t\t\t\t\t}",
"private interface OnJSONResponseCallback {\n void onJSONResponse(boolean success, JSONObject response);\n }",
"@Override\r\n\t\t\t\t\tpublic void onResponse(HttpResponse resp) {\n\t\t\t\t\t\tLog.i(\"HttpPost\", \"Success\");\r\n\r\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onResponse(String s) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public interface AsyncResponse {\n void processFinish(RoadInfo output);\n }",
"@Override\n\tpublic void onResp(BaseResp arg0) {\n\t\tswitch (arg0.getType()) {\n\t\t\tcase ConstantsAPI.COMMAND_SENDAUTH: {\n\t\t\t\tswitch (arg0.errCode) {\n\t\t\t\tcase BaseResp.ErrCode.ERR_OK: {\n\t\t\t\t\tSendAuth.Resp result = (SendAuth.Resp) arg0;\n\t\t\t\t\t// call jni\n\t\t\t\t\tSetAccountInfo(result.code);\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase BaseResp.ErrCode.ERR_USER_CANCEL:\n\t\t\t\tdefault: {\n\t\t\t\t\t// �����版�剧ず��诲��������\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ConstantsAPI.COMMAND_SENDMESSAGE_TO_WX:\n\t\t\t\t//SetMessaegRespInfo();\n\t\t\t\tSendMessageToWX.Resp result = (SendMessageToWX.Resp)arg0;\n\t\t\t\t\n\t\t\t\tif(BaseResp.ErrCode.ERR_OK == arg0.errCode){\n\t\t\t\t\t SetMessaegRespInfo( result.transaction );\n\t\t\t\t}\n\t\t\t\t\n\t\t\tbreak;\n\t\t\n\t\t}\n\t\tfinish();\n\t}",
"public interface ResponseCallback<T> {\n void success(T data);\n void error(int status);\n}",
"void handleRequest();",
"public interface HttpResponseCallBack<T> {\n\n public void onHttpResult(T response);\n\n}"
] | [
"0.71514535",
"0.71312445",
"0.6941562",
"0.687923",
"0.6733523",
"0.6723265",
"0.66890097",
"0.6655398",
"0.66525304",
"0.66401106",
"0.66377914",
"0.66284513",
"0.66202635",
"0.65815",
"0.65656716",
"0.6552827",
"0.6551204",
"0.65375715",
"0.6531045",
"0.6520689",
"0.6520689",
"0.6458116",
"0.64553785",
"0.6446158",
"0.6409898",
"0.6400457",
"0.6400171",
"0.6400171",
"0.6400171",
"0.6398705",
"0.6376313",
"0.63750935",
"0.6360233",
"0.63415325",
"0.63336897",
"0.63276327",
"0.62654734",
"0.6243931",
"0.623766",
"0.62305915",
"0.6222203",
"0.621021",
"0.62101537",
"0.6170655",
"0.6157972",
"0.6153932",
"0.6153777",
"0.6141285",
"0.6124134",
"0.6112741",
"0.61058235",
"0.60990834",
"0.6098596",
"0.60946167",
"0.60842013",
"0.6076758",
"0.60726964",
"0.6068375",
"0.6063126",
"0.60577923",
"0.60549617",
"0.6049605",
"0.60493237",
"0.6039725",
"0.60378414",
"0.6032143",
"0.6024196",
"0.60179865",
"0.6016867",
"0.600039",
"0.5994914",
"0.59901285",
"0.5988634",
"0.5986993",
"0.59811884",
"0.5969472",
"0.5958155",
"0.59477663",
"0.59446144",
"0.5934775",
"0.5933136",
"0.5921434",
"0.5916365",
"0.59161174",
"0.5901627",
"0.5891128",
"0.58883077",
"0.5884794",
"0.58756167",
"0.58722174",
"0.5868475",
"0.58676994",
"0.58612925",
"0.58580446",
"0.5857035",
"0.58542514",
"0.58519936",
"0.58474076",
"0.58441204",
"0.584196"
] | 0.64657974 | 21 |
Success callback. Request is considered as successful when response code is between 200 and 299 | void onSuccess(int responseCode, int requestCode, Response<JsonElement> response); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSuccessful() {\n return code >= 200 && code < 300;\n }",
"public boolean isSuccessful() {\n return responseCode >= 200 && responseCode < 300;\n }",
"@Override\n public void onSuccess(int statusCode , Header[] headers , JSONObject response)\n {\n }",
"@Override\n public void onSuccess(int statusCode, cz.msebera.android.httpclient.Header[] headers, JSONObject response) {\n try {\n String status = response.getString(\"status\");\n if (status.contains(\"status not ok\")) {\n lt.error();\n Toast.makeText(activity, response.getString(\"error\"), Toast.LENGTH_LONG).show();\n } else {\n lt.success();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"public void setAsSuccessful_OK(){\n setStatus(200);\n }",
"public abstract void onSuccess(int statusCode, byte[] content);",
"@Override\n public void onSuccess(int statusCode , Header[] headers , JSONArray response)\n {\n }",
"@Override\n\t\tpublic boolean isSuccess() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onSuccess() {\n\n\t\t\t\t\t\t\t\t\t\t}",
"protected boolean isSuccessCode(int code) {\n return code >= 200 && code <= 399;\n }",
"boolean isSuccessful();",
"public boolean isSuccess();",
"public boolean isSuccess();",
"private void postValidationResponseCodeSuccess() throws APIRestGeneratorException\r\n\t{\r\n\t\tfinal Iterator<String> iterator = this.localResponses.getResponsesMap().keySet().iterator() ;\r\n\t\tboolean found \t\t\t\t = false ;\r\n\t\t\r\n\t\twhile (iterator.hasNext() && !found)\r\n\t\t{\r\n\t\t\tfinal String codeKey = iterator.next() ;\r\n\t\t\tfound \t\t\t\t = ConstantsMiddle.RESP_CODE_SUCCESS.equals(codeKey) ;\r\n\t\t}\r\n\t\t\r\n\t\tif (!found)\r\n\t\t{\r\n\t\t\tfinal String errorString = \"The path '\" + this.pathValue + \"' ('\" + this.pathOp + \"' operation) \" +\r\n\t\t\t\t\t\t\t\t\t \"needs a defined response with code \" + ConstantsMiddle.RESP_CODE_SUCCESS ;\r\n\t\t\t\r\n\t\t\tResponsesPostValidator.LOGGER.error(errorString) ;\r\n\t \tthrow new APIRestGeneratorException(errorString) ;\r\n\t\t}\r\n\t}",
"@Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n Toast.makeText(getActivity().getApplicationContext(),\n \"Jam SUCCEEDED!\", Toast.LENGTH_SHORT)\n .show();\n }",
"protected boolean isSuccessful(Response response) {\n if (response == null) {\n return false;\n }\n //System.out.println(\" Get Status is \" + response.getStatus());\n return response.getStatus() == 200;\n }",
"@Override\n public int getStatus() {\n return this.SUCCESS;\n }",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean getSuccess();",
"boolean getSuccess();",
"boolean getSuccess();",
"boolean getSuccess();",
"@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n String decoded = null;\n try {\n decoded = new String(response, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n Log.d(TAG, \"API call onSuccess = \" + statusCode + \", Headers: \" + headers[0] + \", response.length: \" + response.length +\n \", decoded:\" + response);\n userDidLeave();\n }",
"@Override\n public void onSucceed(Object valor) {\n }",
"@Override\n public void onSuccess() {\n }",
"@Override\n\t\t\t\t\t\tpublic void onSuccess(int arg0, Header[] arg1,\n\t\t\t\t\t\t\t\tbyte[] arg2) {\n\t\t\t\t\t\t\tif (arg0 == 200) {\n\t\t\t\t\t\t\t\tString str = new String(arg2);\n\t\t\t\t\t\t\t\tSystem.out.println(\"坐标提交接口返回 ---> \" + str);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"@Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response)\n {\n super.onSuccess(statusCode, headers, response);\n System.out.println(\"申请预订接口=\" + response);\n }",
"@Override\n public void onSuccess() {\n }",
"@Override\n public void onSuccess() {\n }",
"@Override\n public void onSuccess() {\n }",
"@Override\n public void onSuccess() {\n }",
"@Override\n public void onSuccess() {\n }",
"@Override\n public void onSuccess() {\n }",
"public Response callback() throws Exception;",
"@Override\n\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\t byte[] responseBody) {\n\t\t\t\tsetImdHeartBeat();\n\t\t\t}",
"@Override\n\tpublic void onSuccess() {\n\n\t}",
"void sendSuccessMessage(int statusCode, Header[] headers, byte[] responseBody);",
"@Override\n\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\t byte[] responseBody) {\n\t\t\t\tLog.e(\"xx\", new String(responseBody));\n\n\n\n\n\t\t\t}",
"public SuccessResponse() {\r\n super(HttpStatus.OK, \"Successfully processed the request.\");\r\n }",
"@Override\n\tpublic BaseResponse testResponse() {\n\t\treturn setResultSuccess();\n\t}",
"@Override\n public void onSuccess() {\n }",
"public void requestDone(Request request, boolean isSuccessful);",
"@Test(priority=1)\r\n\tpublic void validateStatusCode()\r\n\t{\r\n\t\tgiven()\r\n\t\t.get(\"https://reqres.in/api/users/2\")\r\n\t\t.then()\r\n\t\t.statusCode(200);\r\n\t\t\r\n\t}",
"void onServiceSuccess(MasterResponse masterResponse, int taskCode);",
"@Test\n\tpublic void verifyStatusCode() {\n\t\tAssert.assertEquals(response.getStatusCode(), 200);\n\t}",
"public boolean isSuccessful()\n\t{\n\t\tif (response.get(\"Result\").equals(\"APPROVED\") && !response.get(\"MESSAGE\").equals(\"DUPLICATE\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public void success(String data) {\n }",
"@Override\n\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\t byte[] responseBody) {\n\t\t\t\tLog.e(\"xx\", new String(responseBody));\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\t byte[] responseBody) {\n\t\t\t\tLog.e(\"xx\", new String(responseBody));\n\n\t\t\t}",
"@Test\n\tpublic void requestDataForCustomer12212_checkResponseCode_expect200() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}",
"public boolean isSuccess() {\n\t\tif (Status.OK == status) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }",
"@Override\n public void onSuccess(int statusCode, Header[] headers, JSONArray timeline) {\n }",
"@Override\n public void onSuccess(Boolean result) {\n\n }",
"public abstract void onSuccess(String code);",
"@Override\r\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tJSONArray response) {\n\t\t\t\t\t\trepairInitBelowLayout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\trepairInitBelow2Layout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\tgetTopicDetailsInfos(response,\"init\");\r\n\t\t\t\t\t\tFlag = \"ok\";\r\n\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t}",
"public boolean isHttpOK(){\n return getStatusCode() == HttpURLConnection.HTTP_OK;\n }",
"boolean hasIsSuccess();",
"public boolean isResponseSuccess(int statusCode) {\r\n return statusCode == HttpStatus.SC_NO_CONTENT || statusCode == HttpStatus.SC_CREATED || statusCode == HttpStatus.SC_OK;\r\n }",
"@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n Log.e(\"JSON\", new String(response));\n\n\n }",
"private int getSuccessCode(String method) {\n if (\"POST\".equals(method)) {\n return 201;\n } else {\n return 200;\n }\n }",
"@Override\n\t\t\tpublic void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\t\t\t\ttry {\n\n\t\t\t\t\tif (statusCode == 200) {\n\t\t\t\t\t\tif (response != null) {\n\t\t\t\t\t\t\tif (response.has(\"status\")) {\n\t\t\t\t\t\t\t\tif (response.getInt(\"status\") == 1) {\n\t\t\t\t\t\t\t\t\tshowCustomToast(response.getString(\"message\"));\n\n\t\t\t\t\t\t\t\t\tmhandle.postDelayed(runnbale, 1000);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tshowCustomToast(response.getString(\"message\"));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tshowCustomToast(R.string.toast1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t\tdismissLoadingDialog();\n\t\t\t}",
"@Override\n\tpublic void onSuccess(TAResponse response) {\n\t}",
"protected void handleSuccessMessage(Response response) {\n\t\tonRequestResponse(response);\n\t}",
"@Override\n\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\t byte[] responseBody) {\n\t\t\t\tLog.e(\"xx\",new String(responseBody));\n\n\n\t\t\t}",
"@Override\n\tpublic void onSuccess(Response okhttpResponse, T t) {\n\t\tonComplete(okhttpResponse, t);\n\t}",
"@Override\n public void onSuccess(int arg0, Header[] arg1, byte[] arg2) {\n CustomDialog.closeProgressDialog();\n JSONObject jsonObject;\n try {\n postState = true;\n jsonObject = new JSONObject(new String(arg2));\n String code = (String) jsonObject.get(\"code\");\n String str = (String) jsonObject.get(\"retinfo\");\n if (Constant.RESULT_CODE.equals(code)) {\n CustomToast.showShortToast(mContext, str);\n Intent i = new Intent();\n i.putExtra(\"flage\", true);\n setResult(2016, i);\n CrmVisitorSignAddInfoActivity.this.finish();\n } else {\n CustomToast.showShortToast(mContext, str);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"@Test\n\tpublic void testStatusCode() {\n\t\tgiven().\n\t\tget(Endpoint.GET_COUNTRY).then().statusCode(200);\n\t}",
"@Override\n\t\t\tpublic void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\t\t\t\ttry {\n\n\t\t\t\t\tif (statusCode == 200) {\n\t\t\t\t\t\tif (response != null) {\n\t\t\t\t\t\t\tif (response.has(\"status\")) {\n\t\t\t\t\t\t\t\tif (response.getInt(\"status\") == 1) {\n\t\t\t\t\t\t\t\t\tshowCustomToast(response.getString(\"message\"));\n\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tshowCustomToast(response.getString(\"message\"));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tshowCustomToast(R.string.toast1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t\tdismissLoadingDialog();\n\t\t\t}",
"protected abstract boolean isExpectedResponseCode(int httpStatus);",
"@Override\n public void onResponseSuccess(final String resp) {\n }",
"@Test(priority=1)\n\tpublic void teststatuscode() {\n\t\t\n\t\twhen()\n\t\t\t.get(\"http://jsonplaceholder.typicode.com/posts/1\")\n\t\t.then()\n\t\t\t.statusCode(200);\n\t\t\t//.log().all();\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\t\t\t\tnew HttpResultService(arg0.result,\n\t\t\t\t\t\t\t\t\tnew myHttpResultCallBack() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onData(boolean validity,\n\t\t\t\t\t\t\t\t\t\t\t\tObject obj) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tsuper.onData(validity, obj);\n\t\t\t\t\t\t\t\t\t\t\tif (validity) {\n\t\t\t\t\t\t\t\t\t\t\t\tArrayList<Recv_phoneCheck> list = (ArrayList<Recv_phoneCheck>) obj;\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Recv_phoneCheck item : list) {\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDao_Contacts\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.updatePhoneIfo(item);\n\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (DbException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// catch block\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tP.v(getClass()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getName()\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\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\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onFinally() {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tupLoadPhones();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}, Recv_phoneCheck.class, true);\n\t\t\t\t\t\t}",
"@Test\r\n\tpublic void testResponseCode(){\r\n\t\t\r\n\t\tint code = get(api1).getStatusCode();\r\n\t\tSystem.out.println(\"Code: \"+code);\r\n\t\tAssert.assertEquals(code, 200);\r\n\t}",
"public boolean performOk() {\r\n\t\treturn super.performOk();\r\n\t}",
"@Override\n\tpublic void endSuccess() {\n\t\t\n\t}",
"@Override\r\n public void onSuccess(RestRequest request, RestResponse result) {\n result.consumeQuietly();\r\n runOnUiThread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // Network component doesn’t report app layer status.\r\n // Use the Mobile SDK RestResponse.isSuccess() method to check\r\n // whether the REST request itself succeeded.\r\n\r\n try {\r\n\r\n Log.d(\"APITest\", \"success entered\");\r\n\r\n }\r\n catch (Exception e) {\r\n //showError(MainActivity.this, e);\r\n }\r\n\r\n }\r\n });\r\n\r\n }",
"@Override\n public void onSuccess(Response response) {\n if (Responses.isServerErrorRange(response)\n || (Responses.isQosStatus(response) && !Responses.isTooManyRequests(response))) {\n OptionalInt next = incrementHostIfNecessary(pin);\n instrumentation.receivedErrorStatus(pin, channel, response, next);\n } else {\n instrumentation.successfulResponse(channel.stableIndex());\n }\n }",
"@Test\n\t\tpublic void testRestSuccessfulResponse() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getValidResponse();\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertFalse(flag);\n\t\t\t\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@Override\n\tpublic int FunctionCall() {\n\t\tint s=success;\n\t\t\n\t\treturn s;\n\n\t}",
"private boolean isSuccessful(SocketMessage response) {\r\n if (\"success\".equals(response.getValue(\"status\"))) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }",
"@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }",
"void xhrOk();",
"@Override\n\t\t\tpublic void onSuccess(int arg0, Header[] arg1, byte[] arg2) {\n\t\t\t\tBaseCallback callback = new Gson().fromJson(new String(arg2), BaseCallback.class);\n\t\t\t\tif(callback.getResult().equals(\"1\")){\n\t\t\t\t\tToastTool.showWithMessage(\"上架成功\", context);\n\t\t\t\t}else{\n\t\t\t\t\tToastTool.showWithMessage(\"上架失败,请重试\", context);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onSuccess(Object t) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONObject jsonObject = new JSONObject(t.toString());\n\t\t\t\t\t\t\tString code = JsonGetInfo.getJsonString(jsonObject,\n\t\t\t\t\t\t\t\t\t\"code\");\n\t\t\t\t\t\t\tString msg = JsonGetInfo.getJsonString(jsonObject,\n\t\t\t\t\t\t\t\t\t\"msg\");\n\t\t\t\t\t\t\tif (!\"\".equals(msg)) {\n\t\t\t\t\t\t\t\tToast.makeText(SaveReceipptActivity.this, msg,\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (\"1\".equals(code)) {\n\t\t\t\t\t\t\t\tsetResult(1);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsuper.onSuccess(t);\n\t\t\t\t\t}",
"@Override\n\t\tpublic void asyncRequestSuccess(long id, Object response)\n\t\t\t\tthrows ConnectorException {\n\t\t\t\n\t\t}",
"public void setSuccess(boolean value) {\r\n this.success = value;\r\n }",
"public void setSuccess(boolean success) {\n this.success = success;\n }",
"public void setSuccess(boolean success) {\n this.success = success;\n }",
"@Override\n\t\tpublic void onSuccess(ResponseInfo<String> arg0)\n\t\t{\n\t\t\tHealthUtil.LOG_D(getClass(), \"result=\" + arg0.result);\n\t\t\tif (dialog.isShowing())\n\t\t\t{\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\t\t\tswitch (responseCode)\n\t\t\t{\n\t\t\tcase GET_LIST:\n\t\t\t\treturnMsg(arg0.result, GET_LIST);\n\t\t\t\tbreak;\n\t\t\tcase GET_LIST_MORE:\n\t\t\t\treturnMsg(arg0.result, GET_LIST_MORE);\n\t\t\t\tbreak;\n\t\t\tcase ADD_REGISTER_ORDER:\n\t\t\t\treturnMsg(arg0.result, ADD_REGISTER_ORDER);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] server_response) {\n try {\n progress.dismiss();\n String response = String.valueOf(new String(server_response, \"UTF-8\"));\n // parse response\n XMLParser parser = new XMLParser();\n Document doc = parser.getDomElement(response, url);\n\n if (doc == null) {\n Dialog.simpleWarning(Lang.get(\"returned_xml_failed\"));\n } else {\n NodeList successNode = doc.getElementsByTagName(\"success\");\n if (successNode.getLength() > 0) {\n Element success = (Element) successNode.item(0);\n Config.context.setTitle(Title);\n\n login_form.setVisibility(View.VISIBLE);\n profile_layer.setVisibility(View.GONE);\n\n Account.logout();\n\n Dialog.toast(success.getTextContent());\n\n menu_logout.setVisible(false);\n menu_remove_account.setVisible(false);\n\n if (Config.activeInstances.contains(\"MyListings\")) {\n Config.activeInstances.remove(\"MyListings\");\n MyListings.removeInstance();\n\n Utils.removeContentView(\"MyListings\");\n }\n loginForm(login_form, Config.context);\n\n LoginManager.getInstance().logOut();\n dialog.dismiss();\n } else {\n NodeList errorNode = doc.getElementsByTagName(\"error\");\n\n if (errorNode.getLength() > 0) {\n // handle errors\n Element error = (Element) errorNode.item(0);\n Dialog.simpleWarning(Lang.get(error.getTextContent()));\n }\n }\n }\n\n } catch (UnsupportedEncodingException e1) {\n\n }\n }",
"int getStatusCode( );",
"void callback(RequestResult rResult, String error);"
] | [
"0.724153",
"0.71272206",
"0.6829606",
"0.67826575",
"0.6753042",
"0.6752802",
"0.66150045",
"0.6600206",
"0.6554003",
"0.6511548",
"0.6465724",
"0.64618313",
"0.64618313",
"0.64475965",
"0.6446425",
"0.64143825",
"0.64091295",
"0.63993835",
"0.63993835",
"0.63993835",
"0.63993835",
"0.63993835",
"0.63993835",
"0.63993835",
"0.6395001",
"0.6395001",
"0.6395001",
"0.6395001",
"0.63691485",
"0.6363272",
"0.6355389",
"0.6344622",
"0.6319749",
"0.631952",
"0.6312004",
"0.6312004",
"0.6312004",
"0.6312004",
"0.63010883",
"0.6292551",
"0.62919414",
"0.62834746",
"0.6272231",
"0.62616974",
"0.62370694",
"0.62343055",
"0.6225787",
"0.6225775",
"0.621961",
"0.6211698",
"0.6208457",
"0.6195288",
"0.61915517",
"0.6184036",
"0.6184036",
"0.6179885",
"0.6179789",
"0.6173462",
"0.6172176",
"0.615886",
"0.6155928",
"0.61353886",
"0.6132466",
"0.6130724",
"0.6130465",
"0.61294496",
"0.6118257",
"0.60987157",
"0.6097316",
"0.60937995",
"0.60877085",
"0.60746354",
"0.60650086",
"0.6052147",
"0.6051346",
"0.60396415",
"0.60370547",
"0.6027446",
"0.60192555",
"0.6014726",
"0.601139",
"0.60078126",
"0.5989696",
"0.5988742",
"0.59798485",
"0.59789383",
"0.5973647",
"0.59617245",
"0.59617245",
"0.59447557",
"0.5938269",
"0.593238",
"0.5923735",
"0.592076",
"0.5916544",
"0.5916544",
"0.58986115",
"0.5897275",
"0.5879298",
"0.5875908"
] | 0.67746156 | 4 |
Creating Save file if doesnt exist. | public ArrayList load() {
File savefile = new File("bookings.txt");
try {
if (savefile.createNewFile()) {
System.out.println("Save file doesnt exist, creating...");
try {
FileWriter writer = new FileWriter(savefile);
for (int x = 0; x <= 89; x = x + 1) {
String stringbuild = (x + ",false,none");
writer.write(stringbuild + "\n");
}
writer.flush();
writer.close();
} catch (IOException ex) {
Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);
}
} else {
System.out.println("Save file exists. Will load...");
}
} catch (IOException ex) {
Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);
}
System.out.println("Loading Started...");
ArrayList Seats = new ArrayList();
ArrayList Seats_Bronze = new ArrayList();
ArrayList Seats_Silver = new ArrayList();
ArrayList Seats_Gold = new ArrayList();
try {
File file = new File("bookings.txt");
FileReader filereader = new FileReader(file);
BufferedReader bufferedreader = new BufferedReader(filereader);
String buffer;
while ((buffer = bufferedreader.readLine()) != null) {
String[] buffersplit = buffer.split(",", -1);
int index = Integer.parseInt(buffersplit[0]);
if (index < 30) {
//System.out.println("Bronze @ "+index);
Seat_Bronze bseat_ = new Seat_Bronze();
bseat_.setID(index);
bseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);
Seats_Bronze.add(bseat_);
} else if (59 >= index && index > 29) {
//System.out.println("Silver @ "+index);
Seat_Silver sseat_ = new Seat_Silver();
sseat_.setID(index);
sseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);
Seats_Silver.add(sseat_);
} else {
//System.out.println("Gold @"+index);
Seat_Gold gseat_ = new Seat_Gold();
gseat_.setID(index);
gseat_.setBooked(Boolean.parseBoolean(buffersplit[1]), buffersplit[2]);
Seats_Gold.add(gseat_);
}
}
Seats.add(Seats_Bronze);
Seats.add(Seats_Silver);
Seats.add(Seats_Gold);
System.out.println("Loading Complete.");
System.out.println("Loaded B/S/G: " + Seats_Bronze.size() + "/" + Seats_Silver.size() + "/" + Seats_Gold.size());
return Seats;
} catch (FileNotFoundException ex) {
Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(ParseBookings.class.getName()).log(Level.SEVERE, null, ex);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void createSaveDirIfNotExisting() {\n\t\tFile dir = new File(\"save\");\n\t\tif (!dir.exists()) {\n\t\t\t// directory does not exist => create!\n\t\t\tdir.mkdir();\n\t\t}\n\t}",
"public static void createSaveFile( )\n {\n try\n {\n new File( \"data\" ).mkdirs( );\n PrintWriter writer = new PrintWriter( \"data/\" + Game.instance.getCurrentSaveFile( ).SAVEFILENAME + \".txt\", \"UTF-8\" );\n writer.println( \"dkeys: \" + Game.START_DIAMOND_KEY_COUNT );\n writer.close( );\n }\n catch ( IOException e )\n {\n e.printStackTrace( );\n System.exit( 1 );\n }\n }",
"private static void prepareSaveFile(String filename) {\n\t\tFile f = new File(filename);\n\t\tif(!f.exists()) {\n\t\t\ttry {\n\t\t\t\tf.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"void createFile()\n {\n //Check if file already exists\n try {\n File myObj = new File(\"src/main/java/ex45/exercise45_output.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());// created\n } else {\n System.out.println(\"File already exists.\"); //exists\n }\n //Error check\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }",
"public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;",
"private void checkIfLocationExists() {\n try {\n File file = new File(saveLocation);\n if(!file.exists()) file.mkdirs();\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }",
"private void createFile(PonsFileFactory ponsFileFactory, Profile profile){\n moveX(profile);\n ponsFileFactory.setProfile(profile);\n String text = ponsFileFactory.createPonsFile();\n String profileName = profile.getName();\n WriteFile.write(text,pathTextField.getText() + \"/\" + profileName.substring(0,profileName.indexOf(\".\")));\n }",
"public static void existeFichero(){\n File fichero = new File(\"config.ser\");\n\n try{\n\n if (fichero.exists()) {\n recuperarFecha();\n }\n else {\n fichero.createNewFile();\n }\n }catch(IOException ex){\n System.out.println(\"Excepcion al crear el fichero: \" + ex);\n }\n\n }",
"File getSaveFile();",
"public static boolean createFile() throws IOException {\n String bytes = \"\";\n byte[] write = bytes.getBytes(); //Salva i bytes della stringa nel byte array\n if(!fileName.exists()){\n Path filePath = Paths.get(fileName.toString()); //Converte il percorso in stringa\n Files.write(filePath, write); // Creare il File\n Main.log(\"File \\\"parametri\\\" creato con successo in \" + fileName.toString());\n return true;\n }\n return false;\n }",
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"public void testSaverLoader_save_new()\n {\n TestObj obj = new TestObj(); \n File file = new File(TEST_FILENAME); \n file.delete();\n assertFalse(file.exists());\n try {\n SaverLoader.save(file, obj);\n }\n catch(IOException e) {\n Debug.println(\"Error saving file: \" + e.getMessage());\n }\n assertTrue(file.exists());\n file.delete();\n }",
"public static void CreateFile(){\n try{\n new File(\"wipimages\").mkdir();\n logscommissions.createNewFile();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"CreateFile Failed\\n\");\n }\n }",
"@SuppressWarnings(\"unused\")\r\n\tprivate static File createFile(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile currentFile = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// check if it is a valid file\r\n\t\tif (currentFile == null) {\r\n\t\t\tSystem.out.println(\"Could not create the file\");\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\r\n\t\t// hopefully things went perfect\r\n\t\treturn currentFile;\r\n\r\n\t}",
"public boolean create()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn file.createNewFile() ;\n\t\t}\n\t\tcatch( IOException ex )\n\t\t{\n\t\t\tex.printStackTrace() ;\n\t\t\treturn false ;\n\t\t}\n\t}",
"public void createFile() throws IOException {\n String newName = input.getText();\n File user = new File(\"SaveData\\\\UserData\\\\\" + newName + \".txt\");\n\n if (user.exists() && !user.isDirectory()) {\n input.setStyle(\"-fx-border-color: red\");\n }\n if (user.exists() && !user.isDirectory() || newName.isEmpty()) {\n input.setStyle(\"-fx-border-color: red\");\n ERROR_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n\n }\n else {\n input.setStyle(\"-fx-border-color: default\");\n playerList.getItems().addAll(newName);\n PrintWriter newUser = new PrintWriter(new FileWriter(\"SaveData\\\\UserData\\\\\" + newName + \".txt\"));\n newUser.write(\"0 0 0 0 icon0 car\");\n newUser.close();\n MAIN_MENU_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }\n }",
"int create_and_check_save_file_workers() throws IOException {\n save_file_workers = new File(\"./magic_shifts_maker_save_workers\");\n if(save_file_workers.exists())\n return -1;\n else\n {\n if(save_file_workers.createNewFile())\n return 0;\n else return 1;\n }\n }",
"private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }",
"public static File createPlayerFile(){\n try {\n playerFile = new File(System.getProperty(\"user.dir\") + \"/PlayerFiles/\" + \".txt\"); //creates player file, can it run on android?\n playerFile.createNewFile();\n }catch (IOException e){\n e.printStackTrace();\n }\n finally {\n return playerFile;\n }\n }",
"File getSaveLocation();",
"void save(File file);",
"void saveToFile(String filename) throws IOException;",
"void save(String filename);",
"@Override\n public File createFile(String path) throws IOException {\n String pathStr=path+fileSeparator+\"Mail.json\";\n File file = new File(pathStr);\n file.createNewFile();\n return file;\n }",
"public static void CreateFile (String filename) {\r\n\t\t try {\r\n\t\t File myObj = new File(filename + \".txt\");\r\n\t\t if (myObj.createNewFile()) {\r\n\t\t System.out.println(\"File created: \" + myObj.getName());\r\n\t\t } else {\r\n\t\t System.out.println(\"File already exists.\");\r\n\t\t }\r\n\t\t } catch (IOException e) {\r\n\t\t System.out.println(\"An error occurred.\");\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }",
"private void testSaveFile() {\n System.out.println(\"------ TESTING : saveFile(String filename) ------\");\n try{\n if(!iTestFileList.saveFile(sFile)) {\n throw new RuntimeException(\"FAILED -> saveFile(String filename) not working correctly\");\n }\n }catch (RuntimeException e){\n System.out.print(e.getMessage());\n }\n }",
"Saver() throws IOException\n\t\t{\n\t\t\tthis(new File(file.getParentFile(),\n\t\t\t\t\"#\" + file.getName() + \"#save#\"));\n\t\t}",
"public void createFile(String fname) {\n\t\tprintMsg(\"running createFiles() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\t// Check if the scratch directory exists, create it if it doesn't\n\t\tPath rootpath = Paths.get(theRootPath);\n\t\tcreateScratchDirectory(rootpath);\n\n\t\t// Check if the file name is null or empty, if it is, use default name\n\t\tPath filepath = null;\n\t\tif(fname == null || fname.isEmpty()) {\n\t\t\tfilepath = Paths.get(rootpath + System.getProperty(\"file.separator\") + theFilename);\n\t\t} else {\n\t\t\tfilepath = Paths.get(rootpath + System.getProperty(\"file.separator\") + fname);\n\t\t}\n\t\t\n\t\t// Create file\n\t\ttry {\n\t\t\t// If file exists already, don't override it.\n\t\t\tif(!Files.exists(filepath)) {\n\t\t\t\tFiles.createFile(filepath);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"public boolean create() {\n boolean operation = false;\n try {\n File file = new File( fileName );\n file.createNewFile();\n\n if ( this.open() == false ) {\n throw new Exception(\"File created but still has issues opening the file\");\n } else {\n writeFirstLine(\"\");\n }\n\n operation = true;\n } catch( Exception error ) {\n System.out.println(error.toString());\n operation = false;\n }\n\n return operation;\n }",
"private static void createFile(String fileType) throws Exception {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\");\n LocalDateTime now = LocalDateTime.now();\n File xmlFile = new File(System.getProperty(\"user.dir\")+\"/data/saved/\"+dtf.format(now) + fileType + \".xml\");\n OutputFormat out = new OutputFormat();\n out.setIndent(5);\n FileOutputStream fos = new FileOutputStream(xmlFile);\n XML11Serializer serializer = new XML11Serializer(fos, out);\n serializer.serialize(xmlDoc);\n\n }",
"void save(String fileName);",
"private File createDestinationFile() {\n\t\tSystem.out.print(\"Please enter the name of the output file that will be created to hold the modified/correct inventory: \");\n\t\tString fileName = sc.nextLine();\n\t\tFile file = new File(fileName);\n\t\twhile (file.exists()) {\n\t\t\tSystem.out.println(\"----->A file with the name of \\\"\" + fileName + \"\\\" [size = \" + file.length() + \" bytes; path = \" + file.getAbsolutePath() + \"] already exists.<-----\");\n\t\t\tSystem.out.print(\"Please input a new file name: \");\n\t\t\tfileName = sc.nextLine();\n\t\t\tfile = new File(fileName);\n\t\t}\n\t\treturn file;\n\t}",
"public void testCreateFileSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"fileCreationId shouldn't be null or empty\", fileCreationId != null\r\n && fileCreationId.trim().length() != 0);\r\n filePersistence.closeFile(fileCreationId);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }",
"private void save() {\n File personFile = mainApp.getFilmFilePath();\n if (personFile != null) {\n mainApp.saveFilmDataToFile(personFile);\n } else {\n saveAs();\n }\n }",
"public void autoSave(){\n\t\ttry {\n\t\t\t//read in file\n\t\t\tFile file = new File(System.getProperty(\"user.dir\")+\"/Default.scalcsave\");\n\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\toutput.close();\n\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void createFile(File file) throws IOException {\n if (!file.exists()) {\n file.createNewFile();\n }\n }",
"public void createNoteBookFile(NoteBook myNoteBook) throws DaoException {\n\t\tFile notebookFile = new File(FILE_NAME);\n\t\tif (notebookFile.exists()) {\n\t\t\tnotebookFile.delete();\n\t\t}\n\t\ttry {\n\t\t\tnotebookFile.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\tthrow new DaoException(\"Create NoteBook file error\", e);\n\t\t}\n\t}",
"@Test\n public void CreateFile() throws Exception {\n createFile(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\",\n readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\"));\n File file = new File(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\");\n Assert.assertTrue(file.exists());\n }",
"static Path createBackupDirectory(Path savegame) {\r\n\t\tPath backupDirectory = Paths.get(savegame.getParent() + \"\\\\Backups\");\r\n\t\tif (!Files.isDirectory(backupDirectory)) {\r\n\t\t\ttry {\r\n\t\t\t\tFiles.createDirectory(backupDirectory);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Error: couldn't create Backup directory\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (Files.isDirectory(backupDirectory)) {\r\n\t\t\tSystem.out.println(\"Created Backup Directory..\");\r\n\t\t}\r\n\t\treturn backupDirectory;\r\n\t}",
"public void saveGame(File fileLocation);",
"@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n private static void fileExists(String filepath) throws IOException {\r\n File file = new File(filepath + filePath);\r\n if (!file.exists()) {\r\n file.createNewFile();\r\n }\r\n }",
"public void createFile(File file) {\n\t\tif (file.exists())\n\t\t\treturn;\n\t\ttry {\n\t\t\tfile.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void checkIfXslCreated() {\n final File extStore = Environment.getExternalStorageDirectory();\n File myFile = new File(extStore.getAbsolutePath() + \"/backup/\" + fileName);\n\n if (myFile.exists()) {\n Log.d(\"YES\", \"YES\");\n } else {\n Log.d(\"NO\", \"NO\");\n }\n }",
"private void createCatalogFileIfNoneExists(){\n\t\t\n\t\tinOut = new IOUtility();\n\t\t\n\t\tif (inOut.checkLocalCache()) {\n\t\t\tcatalog = inOut.readCatalogFromFile();\n\t\t}\n\n\t\telse {\n\n\t\t\ttry {\n\t\t\t\tinOut.createCatalogFile();\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\t\n\t}",
"@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}",
"private void createFile() {\n if (mDriveServiceHelper != null) {\n Log.d(\"error\", \"Creating a file.\");\n\n mDriveServiceHelper.createFile()\n .addOnSuccessListener(fileId -> readFile(fileId))\n .addOnFailureListener(exception ->\n Log.e(\"error\", \"Couldn't create file.\", exception));\n }\n }",
"public void ifFileExistsAndCreate() {\n DbHelper dbHelper = new DbHelper(context);\n File file = new File(directory_path);\n if (!file.exists()) {\n file.mkdirs();\n }\n SQLiteToExcel sqliteToExcel2 = new SQLiteToExcel(context, dbHelper.getDatabaseName(), directory_path);\n sqliteToExcel2.exportAllTables(fileName, new SQLiteToExcel.ExportListener() {\n\n @Override\n public void onStart() {\n Log.d(\"start\", \"Started Exported\");\n\n }\n\n @Override\n public void onCompleted(String filePath) {\n Log.d(\"succesfully\", \"Successfully Exported\");\n }\n\n @Override\n public void onError(Exception e) {\n Log.d(\"error\", e.getMessage());\n\n }\n });\n }",
"public abstract T create(T file, boolean doPersist) throws IOException;",
"public void createStorageFile() throws IoDukeException {\n PrintWriter writer = null;\n try {\n writer = getStorageFile();\n } catch (IOException e) {\n throw new IoDukeException(\"Error opening task file for reading\");\n } finally {\n if (writer != null) {\n writer.close();\n }\n }\n }",
"public void save() {\n Path root = Paths.get(storagePath);\n try {\n Files.copy(file.getInputStream(), root.resolve(file.getOriginalFilename()),\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void createFiles() {\r\n try {\r\n FileWriter file = new FileWriter(registerNumber + \".txt\");\r\n file.write(\"Name : \" + name + \"\\n\");\r\n file.write(\"Surname : \" + surname + \"\\n\");\r\n file.write(\"Registration Number : \" + registerNumber + \"\\n\");\r\n file.write(\"Position : \" + position + \"\\n\");\r\n file.write(\"Year of Start : \" + yearOfStart + \"\\n\");\r\n file.write(\"Total Salary : \" + Math.round(totalSalary) + \".00 TL\" +\"\\n\");\r\n file.close();\r\n }\r\n catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void makeSessionFile() {\n sessionData = new File(wnwData, \"session.dat\");\n try {\n sessionData.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n sessionData.setWritable(true);\n }",
"public void saveFile(){\n\t\t// the files name\n\t\tString fileName = nameOfFile.getText();\n\t\tString folderName = saveTo.getText();\n\t\tString pattern = \"^[a-zA-Z0-9_]*$\";\n\t\tString seperator = System.getProperty(\"file.separator\");\n\t\t\t\t\t\n\t\t//checks if file name is valid\n\t\tif (!fileName.matches(pattern)){\n\t\t\tif (mf != null){\n\t\t\t\tmf.dispose();\n\t\t\t}\n\t\t\tmf = new MessageFrame(getX()+368,getY()-150,\"Error\", \"ERROR 7:\", \"Invalid Name!\");\n\t\t\tmf.setVisible(true);\n\t\t\treturn;\n\t\t}else if (fileName.equals(\"\")){\n\t\t\tif (mf != null){\n\t\t\t\tmf.dispose();\n\t\t\t}\n\t\t\tmf = new MessageFrame(getX()+368,getY()-150,\"Error\", \"ERROR 1:\", \"Please enter name for new file!\");\n\t\t\tmf.setVisible(true);\n\t\t\treturn;\n\t\t}\n\t\t// makes sure the file is a .mp3 file\n\t\tfileName = fileName + \".mp3\";\n\t\t\t\t\t\n\t\tif(!folderName.equals(\"\")){\n\t\t\tfileName = folderName + seperator + fileName;\n\t\t}\n\t\t// used to check if the file exists\n\t\t\t\t\t\n\t\tFile tmpFile = new File(fileName);\n\t\tFile tmpDir = new File(folderName);\n\t\t\t\t\t\n\t\t// checks if file already exists or file is a directory\n\t\tif (tmpFile.exists() && !tmpFile.isDirectory()){\n\t\t\tif(mf != null){\n\t\t\t\tmf.dispose();\n\t\t\t}\n\t\t\tMessageFrame mf = new MessageFrame(getX()+368,getY()-150,\"Error\", \"ERROR 3:\", \"File Already Exists!\");\n\t\t\tmf.setVisible(true);\n\t\t\treturn;\n\t\t}else if (!tmpDir.exists()){\n\t\t\tif(mf != null){\n\t\t\t\tmf.dispose();\n\t\t\t}\n\t\t\tMessageFrame mf = new MessageFrame(getX()+368,getY()-150,\"Error\", \"ERROR 4\", \"Folder does not Exists!\");\n\t\t\tmf.setVisible(true);\n\t\t\treturn;\n\t\t}\n\t\t\t\t\t\n\t\t// Creates the wave file the user requests\n\t\tSaveSpeech ss = new SaveSpeech(message, fileName,statuslbl,progressBar, voice, rate, pitchStart, pitchEnd);\n\t\tss.execute();\n\t\tthisFrame.dispose();\n\t}",
"public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private static void createTestFile(String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tFileWriter writer = new FileWriter(file);\n\t\twriter.write(\"Jenkins Test : \"+new Date() + \" ==> Writing : \" + Math.random());\n\t\twriter.flush();\n\t\twriter.close();\n\t}",
"@Override\n public File getSaveFile()\n {\n return null;\n }",
"private void createConfig() {\n try {\n if (!getDataFolder().exists()) {\n getDataFolder().mkdirs();\n }\n File file = new File(getDataFolder(), \"config.yml\");\n if (!file.exists()) {\n getLogger().info(\"config.yml not found :( Creating one with default values...\");\n saveDefaultConfig();\n } else {\n getLogger().info(\"config.yml found :) Loading...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n\n }",
"public boolean save(String file);",
"synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }",
"public void saveGame(){\r\n Scanner in = new Scanner(System.in);\r\n Boolean nameIsFine = false;\r\n String filename;\r\n int input;\r\n do {\r\n System.out.println(\"Filename?\");\r\n filename = this.savePath + File.separator + this.getFilename() + \".ser\";\r\n File newFile = new File(filename);\r\n if(newFile.exists()) {\r\n System.out.println(\"This file already exists.\");\r\n System.out.println(\"Do you want to change the file name?\");\r\n System.out.println(\"Yes: '1', No: '0'.\");\r\n input = in.nextInt();\r\n if (input == 0) {\r\n nameIsFine = true;\r\n } else {\r\n if (input != 1){\r\n System.out.println(\"This is not an option.\");\r\n }\r\n System.out.println(\"Give a different filename.\");\r\n }\r\n } else {\r\n nameIsFine = true;\r\n }\r\n } while(!nameIsFine);\r\n this.save(filename);\r\n }",
"private void saveToFile(File file) throws IOException {\n FileWriter fileWriter = null;\n try {\n fileWriter = new FileWriter(file);\n fileWriter.write(getSaveString());\n }\n finally {\n if (fileWriter != null) {\n fileWriter.close();\n }\n }\n }",
"private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void save(String fileName) throws IOException;",
"private void saveGame() throws FileNotFoundException {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showSaveDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\t\tif (file != null) {\r\n\t\t\tFileWriter fileWriter = new FileWriter(convertToStringArrayList(), file);\r\n\t\t\tfileWriter.writeFile();\r\n\t\t}\r\n\r\n\t}",
"private static File safeOpenFile() throws IOException {\n\t\tPath path = Paths.get(PropertyUtil.getConfigPath() + \"/config\");\n\n\t\tif (!Files.exists(path)) {\n\t\t\tFiles.createDirectories(path.getParent());\n\t\t\tFiles.createFile(path);\n\t\t\tlogger.debug(\"Creating {}\", path.toAbsolutePath());\n\t\t}\n\n\t\treturn path.toFile();\n\t}",
"private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }",
"public static File saveFile(String name, String data) {\n if (name == null) {\n name = \"\";\n }\n String fullyQualifiedName = name;\n\n // if filename is not absolute use current path as base dir\n if (!new File(fullyQualifiedName).isAbsolute()) {\n fullyQualifiedName = Paths.get(\"\").toAbsolutePath() + \"/\" + name;\n }\n try {\n // create subdirs (if there any)\n if (fullyQualifiedName.contains(\"/\")) {\n File f = new File(fullyQualifiedName.substring(0, fullyQualifiedName.lastIndexOf(\"/\")));\n f.mkdirs();\n }\n File file = new File(fullyQualifiedName);\n file.createNewFile();\n FileUtils.write(file, data, \"UTF-8\");\n log.info(\"Wrote: {}\", file.getAbsolutePath());\n return file;\n } catch (IOException e) {\n log.error(\"Could not create file {}\", name, e);\n return null;\n }\n }",
"public boolean createFile() {\n String filename = name + \".ics\";\n String directory = \"Calendar-Files\";\n String userHome = System.getProperty(\"user.home\") + \"/Desktop/\";\n System.out.println(\"Generating Event File...\");\n \n try {\n File folder = new File(userHome, directory);\n\n // if no folder exists, create it\n if (!folder.exists()) {\n folder.mkdir();\n }\n\n // change file location\n File file = new File(userHome + \"/\" + directory, filename);\n\n // if no file exists, create it\n if (!file.exists()) {\n file.createNewFile();\n }\n\n // write the content string to the event file\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(createContent());\n bw.close();\n }\n catch (IOException e) {\n return false;\n }\n return true;\n }",
"protected void ensureExistence() {\n if (folder.exists()) return;\n\n Base.showWarning(_(\"Sketch Disappeared\"),\n _(\"The sketch folder has disappeared.\\n \" +\n \"Will attempt to re-save in the same location,\\n\" +\n \"but anything besides the code will be lost.\"), null);\n try {\n folder.mkdirs();\n modified = true;\n\n for (int i = 0; i < codeCount; i++) {\n code[i].save(); // this will force a save\n }\n calcModified();\n\n } catch (Exception e) {\n Base.showWarning(_(\"Could not re-save sketch\"),\n _(\"Could not properly re-save the sketch. \" +\n \"You may be in trouble at this point,\\n\" +\n \"and it might be time to copy and paste \" +\n \"your code to another text editor.\"), e);\n }\n }",
"private void createSaveData(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(\"0-0-0-0-0\");\n writer.newLine();\n writer.write(\".....-.....-.....-.....-.....\");\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void CreateNewFile() {\n\tcheckState();\n\t\n\tif (CanR=CanW=true)\n\t{\n\t\t\n\t\ttry {\n\t\t root = Environment.getExternalStorageDirectory();\n\t\t \n\t\t if (root.canWrite()){\n\t\t gpxfile = new File(root, \"Speed_SD.csv\");\n\t\t gpxwriter = new FileWriter(gpxfile,true);\n\t\t out = new BufferedWriter(gpxwriter);\nout.append(\"\"+\",\"+\"\"+\",\"+\"\");\n\t\t out.newLine();\n\t\t }\n\t\t} catch (IOException e) {\n\t\t //Log.e(, \"Could not write file \" + e.getMessage());\ne.printStackTrace();\n\t\t\n\t}\n\t\t\n}\n\t\t}",
"@Override\n public String createFile(String date, String todaysDate) throws FlooringMasteryPersistenceException{\n \n return \"You are in Training mode, cannot create file\";\n }",
"void saveAs() {\n writeFile.Export();\n }",
"public void saveTemplate(String filename){\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"savingTemplate\");\n blueprint = currentTemplate.createBlueprint();\n //make sure we have correct extension\n filename = FileManager.removeExtension(filename);\n if (isInspecting){\n filename = filename + \".in\";\n } else {\n filename = filename + \".bp\";\n }\n boolean hasSaved = FileManager.createTemplate(filename, blueprint);\n if (hasSaved){\n Toast.makeText(this, \"Saved\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(this, \"Did not save\", Toast.LENGTH_LONG).show();\n }\n }",
"private static void isFileExistOrCreatIt(String fileName) {\n if (!fileName.endsWith(\".json\")){\n throw new IllegalArgumentException(\"Invalid file name\");\n }\n File file = new File(\"src//main//resources\"+\"//\"+fileName);\n if(!file.exists()){\n try{\n file.createNewFile();\n }catch (IOException e){\n e.printStackTrace();\n }\n\n }\n }",
"public void saveNewRollManager()\n\t{\n\t JFileChooser chooser = new JFileChooser(); //allows the user to choose a file\n\t chooser.setCurrentDirectory(new File(\"/home/me/Documents\"));\t//sets the directory of where to find the file\n\t int retrival = chooser.showSaveDialog(null);\n\t if (retrival == JFileChooser.APPROVE_OPTION) {\n\t try \n\t {\n\t FileWriter fw = new FileWriter(chooser.getSelectedFile()+\".txt\");\n\t fw.write (getCourseToFileString ( ));\n\t for(Student b : getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t \t;\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t }\n\t \n\t}",
"public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}",
"public boolean createNewFile(File file) throws IOException {\n if (\"/probes/.ready\".equals(file.getPath())) {\n return true;\n }\n return file.createNewFile();\n }",
"public static String getNewSaveName() {\n if (!new File(DIRECTORY_NAME).exists()) {\n boolean success = (new File(DIRECTORY_NAME)).mkdirs();\n if (!success) {\n JOptionPane.showMessageDialog(null, \"Failed to create directory '\" + DIRECTORY_NAME + \"'\");\n return null;\n }\n }\n\n File f;\n String firstPart = DIRECTORY_NAME + \"/\" + SERIALIZED_NAME;\n String s;\n\n // Keep running until an unused name is found\n while (true) {\n // Construct another file name\n s = firstPart + ++count + NAME_EXTENSION;\n\n // Check if file exist\n f = new File(s);\n if (!f.exists()) {\n return s; // return the name if exist\n }\n }\n\n }",
"public void testCreateFileNullPointerException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.createFile(null, \"valid\");\r\n fail(\"if fileLocation is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.createFile(\"valid\", null);\r\n fail(\"if persistenceName is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }",
"private File loadFile() throws IOException {\r\n File file = new File(filePath);\r\n if (!file.exists()) {\r\n File dir = new File(fileDirectory);\r\n dir.mkdir();\r\n File newFile = new File(filePath);\r\n newFile.createNewFile();\r\n return newFile;\r\n } else {\r\n return file;\r\n }\r\n }",
"@Override\n public void saveFile(Object o, File file, String ext)\n throws IOException {\n dest = file;\n }",
"private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}",
"public abstract void save(FileWriter fw) throws IOException;",
"public void saveNewFile() {\n\t\tJFileChooser choose = new JFileChooser();\n\t\tif(choose.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\ttry {\n\t\t\t\tdir=choose.getCurrentDirectory().toString();\n\t\t\t\tString fileName =dir+ \"\\\\\" + choose.getSelectedFile().getName();\n\t\t\t File file = new File(fileName);\n\t\t\t if(file.exists()) {\n\t\t\t \tint confirm = JOptionPane.showConfirmDialog(null, \n\t\t\t \t\t\t\"File already exists. Do you want to overwrite it?\",\n\t\t\t \t\t\t\"Choose one\",JOptionPane.YES_NO_OPTION);\n\t\t\t \tif(confirm == JOptionPane.NO_OPTION)return;\n\t\t\t }\n\t\t\t\tPrintWriter writer = new PrintWriter(file);\n\t\t\t\twriter.write(frame.textArea.getText());\n\t\t\t\twriter.close();\n\t\t\t\tframe.setTitle(choose.getSelectedFile().getName()+\"-Text Editor\");\n\t\t\t\tframe.originalText=frame.textArea.getText();\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void saveStory(StoryModel storyModel){\n try {\n File file = new File(getFilePath(storyModel.getStoryId()));\n file.createNewFile();\n FileOutputStream fos;\n fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(storyModel);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void createFile(String name)\n {\n file = new File(name);\n try\n {\n if(file.exists())\n {\n file.delete();\n file.createNewFile();\n }else file.createNewFile();\n \n fileWriter = new FileWriter(file);\n fileWriter.append(\"Generation, \");\n fileWriter.append(\"Fitness, \");\n fileWriter.append(\"Average\\n\");\n \n }catch (IOException e) \n {\n System.out.println(e);\n }\n \n }",
"public static File fileFromPathOrCreate(String path) throws IOException {\n File propFile = new File(path);\n if (!propFile.exists()) {\n propFile.createNewFile();\n }\n return propFile;\n }",
"public void saveFile() {\t\n\t\tString fileloc = \"\";\n\t\tif(!prf.foldername.getText().equals(\"\"))\n\t\t\tfileloc += prf.foldername.getText()+\"/\";\n\t\tfileloc += ((MinLFile) tabbedPane.getSelectedComponent()).filename;;\t\t\n\t\tFile fl = new File(fileloc);\n\t\t\n\t\ttry {\n\t\t\tif(fl.exists()) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"The file with this name already exists, do you want to overwrite it?\", \"Save File\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tFiles.delete(fl.toPath());\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\t\tbw.close();\n\t\t\t\t\t\tfw.close();\n\t\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = 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} else {\n\t\t\t\ttry {\n\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The specified folder doesnt exist.\");\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void save(FileIO fileIO)\r\n\t{\n\t\t\r\n\t}",
"public void createFile (String filePath){\n try{\n File newFile = new File(filePath);\n if(newFile.createNewFile()){\n System.out.println(\"File created: \"+newFile.getName());\n } else {\n System.out.println(\"File already exists.\");\n }\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }",
"private static void checkHistoryDirectory()\n throws FileNotFoundException {\n Path path = Paths.get(HISTORY_FILE_PATH); //creates Path instance\n try {\n Files.createDirectories(Paths.get(DIRECTORY));\n Files.createFile(path); //creates file at specified location\n } catch (IOException e) {\n readHistoryData();\n }\n }",
"public void crearPrimerFichero(){\n File f=new File(getApplicationContext().getFilesDir(),\"datos.json\");\n // si no existe lo creo\n if(!f.exists()) {\n String filename = \"datos.json\";\n String fileContents = \"[]\";\n FileOutputStream outputStream;\n\n try {\n outputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n outputStream.write(fileContents.getBytes());\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n }",
"public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\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 }",
"static void save() {\n String fileName, line = \"\"; char answer;\n System.out.print(\"Enter file name to save: \"); fileName = scan.nextLine();\n File file = new File(fileName);\n \n if ( file.isFile() ) {\n System.out.printf(\"WARNING: %s exists.\\n\", fileName);\n System.out.print(\"Overwrite (y/n)? \");\n \n while (line.length() < 1) line = scan.nextLine().toUpperCase();\n answer = line.charAt(0);\n\n switch (answer) {\n case 'N': save(); // reprompt\n case 'Y': break; // save the file\n default: save();\n }\n }\n pgmInf.savePgmFileAs(fileName);\n System.out.println(\"Terrain file saved.\");\n }",
"public final static void createNullFile(String nFile) {\r\n File file = new File(nFile);\r\n try {\r\n if (!file.exists())\r\n file.createNewFile();\r\n }\r\n catch (IOException ex) {\r\n }\r\n }",
"void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }",
"private static String checkSaveGameFolder() {\n\t\tString user = System.getProperty(\"user.name\");\n\t\tString saveGameFolder = \"C:/Users/\" + user\n\t\t\t\t+ \"/Documents/Paradox Interactive/Victoria II/save games/\";\n\t\tif (new File(saveGameFolder).exists())\n\t\t\treturn saveGameFolder;\n\t\telse\n\t\t\treturn \"\";\n\n\t}"
] | [
"0.7797733",
"0.69774806",
"0.6873903",
"0.67964876",
"0.6543093",
"0.6514757",
"0.6435335",
"0.64108884",
"0.641021",
"0.6408699",
"0.63584405",
"0.632789",
"0.62612593",
"0.62364465",
"0.6159476",
"0.61257064",
"0.61081153",
"0.60910314",
"0.6084307",
"0.6071396",
"0.6069108",
"0.6057653",
"0.6054554",
"0.6037496",
"0.60219085",
"0.6016929",
"0.5996555",
"0.5983323",
"0.59816647",
"0.5973533",
"0.59706235",
"0.59693485",
"0.5964623",
"0.59569156",
"0.59310365",
"0.58955777",
"0.588725",
"0.58854",
"0.5862045",
"0.5846134",
"0.58370316",
"0.5831332",
"0.5824821",
"0.57961506",
"0.5793549",
"0.5789071",
"0.5788421",
"0.5761136",
"0.57607794",
"0.57597274",
"0.57453275",
"0.5744289",
"0.5739802",
"0.5739038",
"0.57340986",
"0.5731057",
"0.5725752",
"0.571615",
"0.57143855",
"0.570557",
"0.5703694",
"0.57027394",
"0.569975",
"0.5699313",
"0.56975156",
"0.56934774",
"0.5689728",
"0.5686214",
"0.5685681",
"0.5679357",
"0.5677752",
"0.56638426",
"0.56530255",
"0.56376874",
"0.56364715",
"0.56276417",
"0.5623942",
"0.5621596",
"0.5619462",
"0.5612075",
"0.56116533",
"0.5609168",
"0.5609058",
"0.56078625",
"0.5601732",
"0.55944705",
"0.55930525",
"0.55912215",
"0.55879354",
"0.5586234",
"0.55856615",
"0.5584298",
"0.558375",
"0.5578022",
"0.55767393",
"0.55764383",
"0.5571236",
"0.55652326",
"0.55473626",
"0.5545453",
"0.5543975"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
@Transactional
public void delete(TopicContent entity) {
topicContentDao.delete(entity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
@Transactional
public void deleteAll() {
topicContentDao.deleteAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<TopicContent> findAll() {
return topicContentDao.findAll();
} | {
"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}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.